Skip to content

Commit b7e2d6d

Browse files
chore(skill): sync workleap-squide skill with docs [skip ci]
1 parent a66a04a commit b7e2d6d

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

agent-skills/workleap-squide/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: |
1111
(7) Squide hooks for event bus, environment variables, feature flags, logging, or bootstrapping state
1212
(8) Error boundaries or modular architecture in Squide applications
1313
metadata:
14-
version: 1.26
14+
version: 1.27
1515
---
1616

1717
# Squide Framework

agent-skills/workleap-squide/references/hooks-api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ as declared. See `references/runtime-api.md`.
5252

5353
**Note:** `useRenderedNavigationItems` invokes these callbacks with the arguments shown above, but your implementation may declare fewer parameters and ignore the rest (for example, `(item, key) => ...`). You cannot supply extra custom context parameters via `useRenderedNavigationItems`; instead, access external values (like route params or location) through closures or React hooks within the component that calls `useRenderedNavigationItems`.
5454

55+
**`key`:** the item's `$id` when it declares one, otherwise a default computed from the item's `index` and
56+
`level`. That default works in most cases, but being positional it cannot guarantee the menu won't flicker
57+
when a deferred registration update changes the items — always declare an `$id`.
58+
5559
**Render props:** the `item` argument is either a `NavigationLinkRenderProps` or a `NavigationSectionRenderProps` (both exported from `@squide/firefly`). Use `isNavigationLink` to discriminate them.
5660

5761
| Type | Properties |

agent-skills/workleap-squide/references/integrations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ The displayed language is usually derived from a per-user setting stored remotel
525525
2. Once the session is loaded, switch to the preferred language it carries.
526526

527527
```tsx
528-
import { AppRouter, useChangeLanguage, useIsBootstrapping, useProtectedDataQueries } from "@squide/firefly";
528+
import { AppRouter, useIsBootstrapping, useProtectedDataQueries } from "@squide/firefly";
529+
import { useChangeLanguage } from "@squide/i18next";
529530
import { useEffect } from "react";
530531
import { Outlet } from "react-router";
531532

agent-skills/workleap-squide/references/runtime-api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,22 @@ runtime.registerPublicRoute({
118118
});
119119
```
120120

121+
**`$visibility`.** A route that declares no `$visibility` is `protected`. `registerPublicRoute` is the
122+
recommended way to register a **root** public route; a nested route declares its visibility through the
123+
option itself:
124+
125+
```tsx
126+
runtime.registerPublicRoute({
127+
path: "/layout",
128+
element: <Layout />,
129+
children: [{
130+
$visibility: "public",
131+
path: "/page-1",
132+
element: <Page />
133+
}]
134+
});
135+
```
136+
121137
### Navigation Registration
122138

123139
#### registerNavigationItem(item, options?)

0 commit comments

Comments
 (0)