diff --git a/src/pages/sdk/ui/functions/OcAccountMenu.mdx b/src/pages/sdk/ui/functions/OcAccountMenu.mdx index 3577602..07cd665 100644 --- a/src/pages/sdk/ui/functions/OcAccountMenu.mdx +++ b/src/pages/sdk/ui/functions/OcAccountMenu.mdx @@ -15,7 +15,7 @@ export const metadata = { function OcAccountMenu(props: OcAccountMenuProps): any; ``` -Defined in: [account-menu.tsx:456](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L456) +Defined in: [account-menu.tsx:533](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L533) Connected variant — pulls the session from `useOcSession()`. This is what every consumer site with `` mounted should diff --git a/src/pages/sdk/ui/functions/OcAccountMenuView.mdx b/src/pages/sdk/ui/functions/OcAccountMenuView.mdx index 0283bba..a57324f 100644 --- a/src/pages/sdk/ui/functions/OcAccountMenuView.mdx +++ b/src/pages/sdk/ui/functions/OcAccountMenuView.mdx @@ -15,7 +15,7 @@ export const metadata = { function OcAccountMenuView(__namedParameters: OcAccountMenuViewProps): any; ``` -Defined in: [account-menu.tsx:494](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L494) +Defined in: [account-menu.tsx:571](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L571) Presentational variant — takes a session as an explicit prop. Use this when your site runs its own auth context (e.g. ochk.io's diff --git a/src/pages/sdk/ui/interfaces/OcAccountMenuViewProps.mdx b/src/pages/sdk/ui/interfaces/OcAccountMenuViewProps.mdx index b8b9fa0..7042827 100644 --- a/src/pages/sdk/ui/interfaces/OcAccountMenuViewProps.mdx +++ b/src/pages/sdk/ui/interfaces/OcAccountMenuViewProps.mdx @@ -11,7 +11,7 @@ export const metadata = { # Interface: OcAccountMenuViewProps -Defined in: [account-menu.tsx:479](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L479) +Defined in: [account-menu.tsx:556](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L556) ## Extends @@ -28,7 +28,7 @@ Defined in: [account-menu.tsx:479](https://github.com/orangecheck/oc-packages/bl | <a id="property-popoverclassname"></a> `popoverClassName?` | `string` | - | [`OcAccountMenuProps`](OcAccountMenuProps.mdx).[`popoverClassName`](OcAccountMenuProps.mdx#property-popoverclassname) | [account-menu.tsx:185](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L185) | | <a id="property-primarynavlinks"></a> `primaryNavLinks?` | readonly [`OcAccountMenuItem`](OcAccountMenuItem.mdx)[] | Centered primary nav links (typically dashboard · docs · spec). Rendered inside the popover at viewport widths below `sm` (640px) — these are the same links the `` row shows inline at sm+, but at ultra-small widths the inline row hides and this popover section takes its place. The result: one dropdown surface owns navigation on phones, no separate hamburger drawer required. | [`OcAccountMenuProps`](OcAccountMenuProps.mdx).[`primaryNavLinks`](OcAccountMenuProps.mdx#property-primarynavlinks) | [account-menu.tsx:154](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L154) | | <a id="property-secondarynavlinks"></a> `secondaryNavLinks?` | readonly [`OcAccountMenuItem`](OcAccountMenuItem.mdx)[] | Tertiary nav links (about / contact / status / privacy / etc.). Always visible inside the popover. Folds the legacy mobile-only hamburger drawer's contents into the same dropdown as everything else, so there's exactly one nav surface to learn. | [`OcAccountMenuProps`](OcAccountMenuProps.mdx).[`secondaryNavLinks`](OcAccountMenuProps.mdx#property-secondarynavlinks) | [account-menu.tsx:161](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L161) | -| <a id="property-session"></a> `session` | [`OcAccountMenuSession`](OcAccountMenuSession.mdx) | The session to render. When using `` directly (rather than the connected ``), pass an adapter over your local auth context. | - | [account-menu.tsx:485](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L485) | +| <a id="property-session"></a> `session` | [`OcAccountMenuSession`](OcAccountMenuSession.mdx) | The session to render. When using `` directly (rather than the connected ``), pass an adapter over your local auth context. | - | [account-menu.tsx:562](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L562) | | <a id="property-showfamilydashboard"></a> `showFamilyDashboard?` | `boolean` | When `true` (default), shows a `family dashboard ↗` link to `https://ochk.io/dashboard`. Set `false` for `home` (already there) or for sites that don't want it. | [`OcAccountMenuProps`](OcAccountMenuProps.mdx).[`showFamilyDashboard`](OcAccountMenuProps.mdx#property-showfamilydashboard) | [account-menu.tsx:167](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L167) | | <a id="property-signinlabel"></a> `signInLabel?` | `string` | Label for the anonymous "sign in" affordance. Default `'sign in'`. | [`OcAccountMenuProps`](OcAccountMenuProps.mdx).[`signInLabel`](OcAccountMenuProps.mdx#property-signinlabel) | [account-menu.tsx:124](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L124) | | <a id="property-signinurl"></a> `signInUrl?` | `string` | Where the anonymous "sign in" affordance points. Default `'/signin'` — works with every site's in-place `` page. Pass `'https://ochk.io/signin'` if you want to bounce to the auth host instead. | [`OcAccountMenuProps`](OcAccountMenuProps.mdx).[`signInUrl`](OcAccountMenuProps.mdx#property-signinurl) | [account-menu.tsx:122](https://github.com/orangecheck/oc-packages/blob/main/ui/src/account-menu.tsx#L122) |