@streamoid/ui 0.6.37 → 0.6.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/AGENTS.md +2 -2
- package/dist/docs/{ScArtifaxSidebar.md → ScAppSidebar.md} +23 -9
- package/dist/docs/components.json +4 -5
- package/dist/index.d.mts +43 -21
- package/dist/index.d.ts +43 -21
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/docs/AGENTS.md
CHANGED
|
@@ -165,9 +165,9 @@ theme-aware (dark on `:root`, light override) — never hardcode a colour.
|
|
|
165
165
|
## sidebar
|
|
166
166
|
|
|
167
167
|
- **`CreditWarningBanner`** — use when you need the "you're nearly out of credits" nudge in a sidebar rail, in either expanded or collapsed form.
|
|
168
|
+
- **`ScAppSidebar`** — use when you are building any Streamoid app shell, or you need a sidebar whose sections the user can collapse. This is the rail the products are converging on.
|
|
168
169
|
- **`ScAppSwitchPanel`** — use when you need the "go to another Streamoid product" list — in `StreamoidSidebar`'s `switchPanel`, or in your own portalled flyout.
|
|
169
170
|
- also documented here: `ScAppSwitchRow`, `scAppSwitchOrder`, `createStreamoidAppSwitchUtilities`, `streamoidAppSwitchTagline`, `formatStreamoidAppVersion`, `streamoidChangelogUrl`, `STREAMOID_CHANGELOG_URLS`, `STREAMOID_CHANGELOG_URL`, `STREAMOID_STATUS_PAGE_URL`
|
|
170
|
-
- **`ScArtifaxSidebar`** — use when you are working on the Artifax (or Tactix) shell, or you need a sidebar whose sections the user can collapse.
|
|
171
171
|
- **`ScAskAgentButton`** — use when you need the assistant-panel CTA **outside** a DS sidebar. Inside one, use the sidebar's `assistantCta` prop instead.
|
|
172
172
|
- also documented here: `ScAskAgentSlot`, `AssistantCta`
|
|
173
173
|
- **`ScCatalogixSidebar`** _(legacy)_ — use when essentially never in new code. It is useful mainly as a worked example of how to preset `StreamoidSidebar`.
|
|
@@ -205,7 +205,7 @@ theme-aware (dark on `:root`, light override) — never hardcode a colour.
|
|
|
205
205
|
| `ScAppCardV3` | `ScAppCard`, `ScAppListingCard`, `ScBriefCard`, `ScAppCardForCopilot` |
|
|
206
206
|
| `ScAppSwitchPanel` | `ScSidebarSwitchMenu`, `StreamoidWorkspaceSwitcher`, `ScWorkspaceSwitchCard`, `ScAppListingCard`, `ScAppCard` |
|
|
207
207
|
| `ScAppcardLogos` | `ProductWordmark`, `ScStreamoidWordmark`, `ScStreamoidMascot`, `ScCxoCopilotLogo`, `ScAppCard` |
|
|
208
|
-
| `
|
|
208
|
+
| `ScAppSidebar` | `StreamoidSidebar`, `ScCatalogixSidebar`, `ScArtifaxInvite`, `ScSidebar` |
|
|
209
209
|
| `ScAskAgentButton` | `ScButton`, `ScCxoCopilotLogo`, `ScQuickPrompt`, `ScSidebarMenu` |
|
|
210
210
|
| `ScBadges` | `ScBeacon`, `ScSelectionPill`, `ScTaxonomyPill`, `ScRole`, `ScButton` |
|
|
211
211
|
| `ScBeacon` | `ScBadges`, `ScProgressBar` |
|
|
@@ -1,31 +1,45 @@
|
|
|
1
1
|
---
|
|
2
|
-
component:
|
|
2
|
+
component: ScAppSidebar
|
|
3
3
|
package: "@streamoid/ui"
|
|
4
4
|
category: sidebar
|
|
5
5
|
status: stable
|
|
6
6
|
renders: div
|
|
7
|
-
tags: [sidebar,
|
|
7
|
+
tags: [sidebar, nav, shell, rail, collapsible-sections, accordion, collapse]
|
|
8
8
|
related: [StreamoidSidebar, ScSideBarLogoUnit, ScAppSwitchPanel, ScSidebarMenu, ScAskAgentButton, CreditWarningBanner]
|
|
9
9
|
do_not_confuse_with: [StreamoidSidebar, ScCatalogixSidebar, ScArtifaxInvite, ScSidebar]
|
|
10
10
|
used_by: [artifax]
|
|
11
11
|
required_props: [expanded, onToggle, sections]
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
#
|
|
14
|
+
# ScAppSidebar
|
|
15
15
|
|
|
16
|
-
**
|
|
16
|
+
**A product's app-shell sidebar — the one shell with collapsible, labelled nav
|
|
17
17
|
sections.** Same silhouette as `StreamoidSidebar` (256px rounded card / 56px rail,
|
|
18
18
|
logo slot, credit banner, gradient assistant CTA, profile + inline collapse toggle),
|
|
19
19
|
but the nav is an accordion of uppercase-labelled sections, and it has **no
|
|
20
20
|
`switchPanel` slot** — the app switcher is the host's job.
|
|
21
21
|
|
|
22
|
+
## It was called `ScArtifaxSidebar`, and nothing in it was ever Artifax-specific
|
|
23
|
+
|
|
24
|
+
The logos, sections, icon map, profile, app identity and credit warning all arrive
|
|
25
|
+
as props. Only the NAME was product-bound — which is why Photogenix looked like it
|
|
26
|
+
needed a fourth rail beside `ScCatalogixSidebar` and `StreamoidSidebar`. That
|
|
27
|
+
duplication has already cost one bug fixed twice (#45, then #47 against the
|
|
28
|
+
component Artifax actually renders) and one regression caused by fixing the wrong
|
|
29
|
+
copy.
|
|
30
|
+
|
|
31
|
+
`ScArtifaxSidebar` and the `Artifax*` type names remain as **deprecated aliases**
|
|
32
|
+
of the same component, so Artifax builds across the rename. Build new hosts on
|
|
33
|
+
`ScAppSidebar`.
|
|
34
|
+
|
|
22
35
|
## TL;DR for agents
|
|
23
36
|
|
|
24
|
-
- **Reach for it when:** you are
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(`StreamoidSidebar`'s `switchPanel` — this component has none
|
|
37
|
+
- **Reach for it when:** you are building any Streamoid app shell, or you need a
|
|
38
|
+
sidebar whose sections the user can collapse. This is the rail the products are
|
|
39
|
+
converging on.
|
|
40
|
+
- **Don't reach for it when:** you need the built-in app-switch overlay
|
|
41
|
+
(`StreamoidSidebar`'s `switchPanel` — this component has none; hosts render
|
|
42
|
+
`ScAppSwitchPanel` themselves).
|
|
29
43
|
- **Four things that will bite you:**
|
|
30
44
|
1. Uncontrolled open-state is captured **once, at mount**. Sections that arrive
|
|
31
45
|
later (async nav) render **closed**.
|
|
@@ -217,17 +217,16 @@
|
|
|
217
217
|
"alsoExports": [],
|
|
218
218
|
"exported": true
|
|
219
219
|
},
|
|
220
|
-
"
|
|
221
|
-
"doc": "
|
|
220
|
+
"ScAppSidebar": {
|
|
221
|
+
"doc": "ScAppSidebar.md",
|
|
222
222
|
"source": "src/SC-Artifax-Sidebar",
|
|
223
223
|
"category": "sidebar",
|
|
224
224
|
"status": "stable",
|
|
225
225
|
"renders": "div",
|
|
226
|
-
"summary": "
|
|
227
|
-
"reachForWhen": "you are
|
|
226
|
+
"summary": "A product's app-shell sidebar — the one shell with collapsible, labelled nav sections.",
|
|
227
|
+
"reachForWhen": "you are building any Streamoid app shell, or you need a sidebar whose sections the user can collapse. This is the rail the products are converging on.",
|
|
228
228
|
"tags": [
|
|
229
229
|
"sidebar",
|
|
230
|
-
"artifax",
|
|
231
230
|
"nav",
|
|
232
231
|
"shell",
|
|
233
232
|
"rail",
|
package/dist/index.d.mts
CHANGED
|
@@ -993,38 +993,38 @@ type StreamoidSidebarPopoverPosition = CSSProperties & {
|
|
|
993
993
|
*/
|
|
994
994
|
declare function useStreamoidSidebarPopoverPosition(sidebarRef: RefObject<HTMLElement | null>, { placement, width, gap, inset, }: StreamoidSidebarPopoverPositionOptions): StreamoidSidebarPopoverPosition;
|
|
995
995
|
|
|
996
|
-
interface
|
|
996
|
+
interface AppSidebarMenuItem {
|
|
997
997
|
id: string;
|
|
998
998
|
label: string;
|
|
999
999
|
iconKey: string;
|
|
1000
1000
|
}
|
|
1001
|
-
interface
|
|
1001
|
+
interface AppSidebarSection {
|
|
1002
1002
|
id: string;
|
|
1003
1003
|
label?: string;
|
|
1004
1004
|
collapsible?: boolean;
|
|
1005
1005
|
defaultOpen?: boolean;
|
|
1006
|
-
items:
|
|
1006
|
+
items: AppSidebarMenuItem[];
|
|
1007
1007
|
}
|
|
1008
|
-
interface
|
|
1009
|
-
item:
|
|
1008
|
+
interface AppSidebarIconContext {
|
|
1009
|
+
item: AppSidebarMenuItem;
|
|
1010
1010
|
active: boolean;
|
|
1011
1011
|
expanded: boolean;
|
|
1012
1012
|
}
|
|
1013
|
-
type
|
|
1014
|
-
type
|
|
1015
|
-
interface
|
|
1013
|
+
type AppSidebarIconRenderer = (context: AppSidebarIconContext) => ReactNode;
|
|
1014
|
+
type AppSidebarIconMap = Record<string, ReactNode | AppSidebarIconRenderer>;
|
|
1015
|
+
interface AppSidebarProfile {
|
|
1016
1016
|
name: string;
|
|
1017
1017
|
subtitle?: string;
|
|
1018
1018
|
avatar?: ReactNode;
|
|
1019
1019
|
onClick?: () => void;
|
|
1020
1020
|
}
|
|
1021
1021
|
/** Dedicated footer surface for the current product/app switcher. */
|
|
1022
|
-
interface
|
|
1022
|
+
interface AppSidebarAppIdentity {
|
|
1023
1023
|
content: ReactNode;
|
|
1024
1024
|
onClick?: () => void;
|
|
1025
1025
|
ariaLabel?: string;
|
|
1026
1026
|
}
|
|
1027
|
-
interface
|
|
1027
|
+
interface AppSidebarCreditWarning {
|
|
1028
1028
|
availableCredits: number;
|
|
1029
1029
|
remainingPct: number;
|
|
1030
1030
|
level?: "warning" | "danger";
|
|
@@ -1035,29 +1035,29 @@ interface ArtifaxSidebarCreditWarning {
|
|
|
1035
1035
|
* Artifax and Streamoid sidebars cannot drift. Kept as a named alias because
|
|
1036
1036
|
* this type is public API — consumers import it by this name.
|
|
1037
1037
|
*/
|
|
1038
|
-
type
|
|
1039
|
-
interface
|
|
1038
|
+
type AppSidebarAssistantCta = AssistantCta;
|
|
1039
|
+
interface IScAppSidebarProps {
|
|
1040
1040
|
expanded: boolean;
|
|
1041
1041
|
onToggle: () => void;
|
|
1042
1042
|
/** Enable the shared reversible drag/click control on the right edge. */
|
|
1043
1043
|
resizable?: boolean;
|
|
1044
1044
|
/** Controlled resize callback. Falls back to `onToggle` when omitted. */
|
|
1045
1045
|
onExpandedChange?: (expanded: boolean) => void;
|
|
1046
|
-
sections:
|
|
1047
|
-
iconMap?:
|
|
1046
|
+
sections: AppSidebarSection[];
|
|
1047
|
+
iconMap?: AppSidebarIconMap;
|
|
1048
1048
|
activeItemId?: string;
|
|
1049
|
-
onItemSelect?: (item:
|
|
1049
|
+
onItemSelect?: (item: AppSidebarMenuItem, sectionId: string) => void;
|
|
1050
1050
|
expandedLogo?: ReactNode;
|
|
1051
1051
|
collapsedLogo?: ReactNode;
|
|
1052
|
-
creditWarning?:
|
|
1052
|
+
creditWarning?: AppSidebarCreditWarning | null;
|
|
1053
1053
|
/** Gradient call-to-action above the profile row (e.g. "Ask CXO"). Omit to
|
|
1054
1054
|
* hide it. Rendered in both expanded (icon + label pill) and collapsed
|
|
1055
1055
|
* (icon-only square) states. */
|
|
1056
|
-
assistantCta?:
|
|
1057
|
-
profile?:
|
|
1056
|
+
assistantCta?: AppSidebarAssistantCta | null;
|
|
1057
|
+
profile?: AppSidebarProfile;
|
|
1058
1058
|
/** Current product identity and app-switcher trigger. This intentionally
|
|
1059
1059
|
* bypasses the fixed-size profile avatar so wordmarks retain their width. */
|
|
1060
|
-
appIdentity?:
|
|
1060
|
+
appIdentity?: AppSidebarAppIdentity;
|
|
1061
1061
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
1062
1062
|
/** Hide the legacy footer collapse button when the resize edge is enabled. */
|
|
1063
1063
|
hideToggle?: boolean;
|
|
@@ -1066,7 +1066,29 @@ interface IScArtifaxSidebarProps {
|
|
|
1066
1066
|
className?: string;
|
|
1067
1067
|
style?: CSSProperties;
|
|
1068
1068
|
}
|
|
1069
|
-
declare const
|
|
1069
|
+
declare const ScAppSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1070
|
+
/** @deprecated Use {@link ScAppSidebar}. */
|
|
1071
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1072
|
+
/** @deprecated Use {@link AppSidebarMenuItem}. */
|
|
1073
|
+
type ArtifaxMenuItem = AppSidebarMenuItem;
|
|
1074
|
+
/** @deprecated Use {@link AppSidebarSection}. */
|
|
1075
|
+
type ArtifaxSection = AppSidebarSection;
|
|
1076
|
+
/** @deprecated Use {@link AppSidebarIconContext}. */
|
|
1077
|
+
type ArtifaxSidebarIconContext = AppSidebarIconContext;
|
|
1078
|
+
/** @deprecated Use {@link AppSidebarIconRenderer}. */
|
|
1079
|
+
type ArtifaxSidebarIconRenderer = AppSidebarIconRenderer;
|
|
1080
|
+
/** @deprecated Use {@link AppSidebarIconMap}. */
|
|
1081
|
+
type ArtifaxSidebarIconMap = AppSidebarIconMap;
|
|
1082
|
+
/** @deprecated Use {@link AppSidebarProfile}. */
|
|
1083
|
+
type ArtifaxSidebarProfile = AppSidebarProfile;
|
|
1084
|
+
/** @deprecated Use {@link AppSidebarAppIdentity}. */
|
|
1085
|
+
type ArtifaxSidebarAppIdentity = AppSidebarAppIdentity;
|
|
1086
|
+
/** @deprecated Use {@link AppSidebarCreditWarning}. */
|
|
1087
|
+
type ArtifaxSidebarCreditWarning = AppSidebarCreditWarning;
|
|
1088
|
+
/** @deprecated Use {@link AppSidebarAssistantCta}. */
|
|
1089
|
+
type ArtifaxSidebarAssistantCta = AppSidebarAssistantCta;
|
|
1090
|
+
/** @deprecated Use {@link IScAppSidebarProps}. */
|
|
1091
|
+
type IScArtifaxSidebarProps = IScAppSidebarProps;
|
|
1070
1092
|
|
|
1071
1093
|
interface CatalogixNavItem {
|
|
1072
1094
|
id: string;
|
|
@@ -2334,4 +2356,4 @@ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
2334
2356
|
*/
|
|
2335
2357
|
declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2336
2358
|
|
|
2337
|
-
export { type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAppIdentity, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type AssistantCta, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type DescriptionVisibility, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardForCopilotProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSwitchPanelProps, type IScAppcardLogosProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScAskAgentButtonProps, type IScBadgesProps, type IScBeaconProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCatalogixSidebarProps, type IScCatalogixStoreHeaderProps, type IScCatalogixStoreTableListProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCounterProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScCxoCopilotLogoProps, type IScCxoWordmarkProps, type IScDefaultCardProps, type IScDrawerProps, type IScFieldButtonProps, type IScFileFieldProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScInChatListProps, type IScInChatMessageProps, type IScInfoPopupProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMappingCardProps, type IScMediaApprovalProps, type IScMediaSelectProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScModalProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPaginationProps, type IScPairtextProps, type IScPanelResizeHandleProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScPopoverArrowProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfilePopupProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSelectOption, type IScSelectProps, type IScSelectionListProps, type IScSelectionPillGroupProps, type IScSelectionPillOption, type IScSelectionPillProps, type IScSelectionProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSidebarSwitchMenuProps, type IScSliderProps, type IScStoreCardProps, type IScStrLogoProps, type IScStreamoidMascotProps, type IScStreamoidWordmarkProps, type IScSubAgentProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTabsProps, type IScTaxonomyPillProps, type IScTextAreaProps, type IScTextFieldProps, type IScThinkingStepIconProps, type IScTodoItem, type IScTodoListProps, type IScToggleSwitchProps, type IScVDividerProps, type IScValueMappingL1Props, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, type IcListIconState, InvoiceHistoryMobile, NscWorkspaceSwitch, PANEL_RESIZE_STEP_PX, type PanelResizeEdge, type PanelResizeGesture, type PanelWidthBounds, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, STREAMOID_CHANGELOG_URL, STREAMOID_CHANGELOG_URLS, STREAMOID_STATUS_PAGE_URL, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, type ScAppSwitchUtilities, ScAppcardLogos, ScArtifaxInvite, ScArtifaxSidebar, ScAskAgentButton, ScAskAgentSlot, ScBadges, ScBeacon, type ScBeaconTone, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCatalogixStoreHeader, ScCatalogixStoreTableList, ScCheckField, ScCheckbox, ScCounter, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScCxoCopilotLogo, ScCxoWordmark, ScDefaultCard, ScDp, type ScDpProps, ScDrawer, ScFieldButton, ScFileField, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScInChatList, ScInChatMessage, ScInfoPopup, ScIntialProfileCover, ScLogoUnit, ScMappingCard, ScMediaApproval, ScMediaSelect, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScModal, ScOnlyField, ScOnlyIcon, ScPagination, ScPairtext, ScPanelResizeHandle, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScPopoverArrow, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfilePopup, type ScProfilePopupThemeMode, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSelect, ScSelection, ScSelectionList, ScSelectionPill, ScSelectionPillGroup, ScSettingsNav, ScSettingsTabComp, type ScShellThemeMode, ScSideBarLogoUnit, ScSidebar, ScSidebarAppIdentity, type ScSidebarAppIdentityProps, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarResizeHandle, type ScSidebarResizeHandleProps, ScSidebarSearchTrigger, type ScSidebarSearchTriggerProps, ScSidebarSwitchMenu, ScSidebarWorkspaceTrigger, type ScSidebarWorkspaceTriggerProps, ScSlider, ScStoreCard, ScStrLogo, ScStreamoidMascot, ScStreamoidWordmark, ScSubAgent, type ScTab, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTabs, ScTaxonomyPill, ScTextArea, ScTextField, ScThinkingStepIcon, ScTodoList, ScToggleSwitch, ScVDivider, ScValueMappingL1, ScVersion, ScWorkspaceAccountMenu, type ScWorkspaceAccountMenuProps, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SelectionListState, type SidebarAppIdentityConfig, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProduct, type SidebarProfileConfig, type SidebarResizeGestureResult, type SidebarResizeGestureState, type SidebarSectionConfig, type StreamoidAnchorRect, type StreamoidAnchoredPopover, type StreamoidAnchoredPopoverArrow, type StreamoidAnchoredPopoverGeometry, type StreamoidAnchoredPopoverPosition, type StreamoidAnchoredPopoverPositionOptions, type StreamoidAppSwitchProduct, type StreamoidPanelWidthOptions, type StreamoidPanelWidthState, StreamoidSidebar, type StreamoidSidebarPopoverPlacement, type StreamoidSidebarPopoverPosition, type StreamoidSidebarPopoverPositionOptions, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, clampPanelWidth, createStreamoidAppSwitchUtilities, formatStreamoidAppVersion, formatSubAgentLabel, hasCollapsedMark, resolveAnchoredPopoverArrow, resolveAnchoredPopoverPosition, resolvePanelResize, resolvePanelResizeKey, scAppSwitchOrder, streamoidAppSwitchTagline, streamoidChangelogUrl, useStreamoidAnchoredPopover, useStreamoidAnchoredPopoverPosition, useStreamoidPanelWidth, useStreamoidSidebarPopoverPosition, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
|
2359
|
+
export { type AppSidebarAppIdentity, type AppSidebarAssistantCta, type AppSidebarCreditWarning, type AppSidebarIconContext, type AppSidebarIconMap, type AppSidebarIconRenderer, type AppSidebarMenuItem, type AppSidebarProfile, type AppSidebarSection, type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAppIdentity, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type AssistantCta, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type DescriptionVisibility, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardForCopilotProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSidebarProps, type IScAppSwitchPanelProps, type IScAppcardLogosProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScAskAgentButtonProps, type IScBadgesProps, type IScBeaconProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCatalogixSidebarProps, type IScCatalogixStoreHeaderProps, type IScCatalogixStoreTableListProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCounterProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScCxoCopilotLogoProps, type IScCxoWordmarkProps, type IScDefaultCardProps, type IScDrawerProps, type IScFieldButtonProps, type IScFileFieldProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScInChatListProps, type IScInChatMessageProps, type IScInfoPopupProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMappingCardProps, type IScMediaApprovalProps, type IScMediaSelectProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScModalProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPaginationProps, type IScPairtextProps, type IScPanelResizeHandleProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScPopoverArrowProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfilePopupProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSelectOption, type IScSelectProps, type IScSelectionListProps, type IScSelectionPillGroupProps, type IScSelectionPillOption, type IScSelectionPillProps, type IScSelectionProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSidebarSwitchMenuProps, type IScSliderProps, type IScStoreCardProps, type IScStrLogoProps, type IScStreamoidMascotProps, type IScStreamoidWordmarkProps, type IScSubAgentProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTabsProps, type IScTaxonomyPillProps, type IScTextAreaProps, type IScTextFieldProps, type IScThinkingStepIconProps, type IScTodoItem, type IScTodoListProps, type IScToggleSwitchProps, type IScVDividerProps, type IScValueMappingL1Props, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, type IcListIconState, InvoiceHistoryMobile, NscWorkspaceSwitch, PANEL_RESIZE_STEP_PX, type PanelResizeEdge, type PanelResizeGesture, type PanelWidthBounds, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, STREAMOID_CHANGELOG_URL, STREAMOID_CHANGELOG_URLS, STREAMOID_STATUS_PAGE_URL, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, ScAppSidebar, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, type ScAppSwitchUtilities, ScAppcardLogos, ScArtifaxInvite, ScArtifaxSidebar, ScAskAgentButton, ScAskAgentSlot, ScBadges, ScBeacon, type ScBeaconTone, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCatalogixStoreHeader, ScCatalogixStoreTableList, ScCheckField, ScCheckbox, ScCounter, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScCxoCopilotLogo, ScCxoWordmark, ScDefaultCard, ScDp, type ScDpProps, ScDrawer, ScFieldButton, ScFileField, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScInChatList, ScInChatMessage, ScInfoPopup, ScIntialProfileCover, ScLogoUnit, ScMappingCard, ScMediaApproval, ScMediaSelect, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScModal, ScOnlyField, ScOnlyIcon, ScPagination, ScPairtext, ScPanelResizeHandle, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScPopoverArrow, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfilePopup, type ScProfilePopupThemeMode, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSelect, ScSelection, ScSelectionList, ScSelectionPill, ScSelectionPillGroup, ScSettingsNav, ScSettingsTabComp, type ScShellThemeMode, ScSideBarLogoUnit, ScSidebar, ScSidebarAppIdentity, type ScSidebarAppIdentityProps, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarResizeHandle, type ScSidebarResizeHandleProps, ScSidebarSearchTrigger, type ScSidebarSearchTriggerProps, ScSidebarSwitchMenu, ScSidebarWorkspaceTrigger, type ScSidebarWorkspaceTriggerProps, ScSlider, ScStoreCard, ScStrLogo, ScStreamoidMascot, ScStreamoidWordmark, ScSubAgent, type ScTab, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTabs, ScTaxonomyPill, ScTextArea, ScTextField, ScThinkingStepIcon, ScTodoList, ScToggleSwitch, ScVDivider, ScValueMappingL1, ScVersion, ScWorkspaceAccountMenu, type ScWorkspaceAccountMenuProps, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SelectionListState, type SidebarAppIdentityConfig, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProduct, type SidebarProfileConfig, type SidebarResizeGestureResult, type SidebarResizeGestureState, type SidebarSectionConfig, type StreamoidAnchorRect, type StreamoidAnchoredPopover, type StreamoidAnchoredPopoverArrow, type StreamoidAnchoredPopoverGeometry, type StreamoidAnchoredPopoverPosition, type StreamoidAnchoredPopoverPositionOptions, type StreamoidAppSwitchProduct, type StreamoidPanelWidthOptions, type StreamoidPanelWidthState, StreamoidSidebar, type StreamoidSidebarPopoverPlacement, type StreamoidSidebarPopoverPosition, type StreamoidSidebarPopoverPositionOptions, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, clampPanelWidth, createStreamoidAppSwitchUtilities, formatStreamoidAppVersion, formatSubAgentLabel, hasCollapsedMark, resolveAnchoredPopoverArrow, resolveAnchoredPopoverPosition, resolvePanelResize, resolvePanelResizeKey, scAppSwitchOrder, streamoidAppSwitchTagline, streamoidChangelogUrl, useStreamoidAnchoredPopover, useStreamoidAnchoredPopoverPosition, useStreamoidPanelWidth, useStreamoidSidebarPopoverPosition, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
package/dist/index.d.ts
CHANGED
|
@@ -993,38 +993,38 @@ type StreamoidSidebarPopoverPosition = CSSProperties & {
|
|
|
993
993
|
*/
|
|
994
994
|
declare function useStreamoidSidebarPopoverPosition(sidebarRef: RefObject<HTMLElement | null>, { placement, width, gap, inset, }: StreamoidSidebarPopoverPositionOptions): StreamoidSidebarPopoverPosition;
|
|
995
995
|
|
|
996
|
-
interface
|
|
996
|
+
interface AppSidebarMenuItem {
|
|
997
997
|
id: string;
|
|
998
998
|
label: string;
|
|
999
999
|
iconKey: string;
|
|
1000
1000
|
}
|
|
1001
|
-
interface
|
|
1001
|
+
interface AppSidebarSection {
|
|
1002
1002
|
id: string;
|
|
1003
1003
|
label?: string;
|
|
1004
1004
|
collapsible?: boolean;
|
|
1005
1005
|
defaultOpen?: boolean;
|
|
1006
|
-
items:
|
|
1006
|
+
items: AppSidebarMenuItem[];
|
|
1007
1007
|
}
|
|
1008
|
-
interface
|
|
1009
|
-
item:
|
|
1008
|
+
interface AppSidebarIconContext {
|
|
1009
|
+
item: AppSidebarMenuItem;
|
|
1010
1010
|
active: boolean;
|
|
1011
1011
|
expanded: boolean;
|
|
1012
1012
|
}
|
|
1013
|
-
type
|
|
1014
|
-
type
|
|
1015
|
-
interface
|
|
1013
|
+
type AppSidebarIconRenderer = (context: AppSidebarIconContext) => ReactNode;
|
|
1014
|
+
type AppSidebarIconMap = Record<string, ReactNode | AppSidebarIconRenderer>;
|
|
1015
|
+
interface AppSidebarProfile {
|
|
1016
1016
|
name: string;
|
|
1017
1017
|
subtitle?: string;
|
|
1018
1018
|
avatar?: ReactNode;
|
|
1019
1019
|
onClick?: () => void;
|
|
1020
1020
|
}
|
|
1021
1021
|
/** Dedicated footer surface for the current product/app switcher. */
|
|
1022
|
-
interface
|
|
1022
|
+
interface AppSidebarAppIdentity {
|
|
1023
1023
|
content: ReactNode;
|
|
1024
1024
|
onClick?: () => void;
|
|
1025
1025
|
ariaLabel?: string;
|
|
1026
1026
|
}
|
|
1027
|
-
interface
|
|
1027
|
+
interface AppSidebarCreditWarning {
|
|
1028
1028
|
availableCredits: number;
|
|
1029
1029
|
remainingPct: number;
|
|
1030
1030
|
level?: "warning" | "danger";
|
|
@@ -1035,29 +1035,29 @@ interface ArtifaxSidebarCreditWarning {
|
|
|
1035
1035
|
* Artifax and Streamoid sidebars cannot drift. Kept as a named alias because
|
|
1036
1036
|
* this type is public API — consumers import it by this name.
|
|
1037
1037
|
*/
|
|
1038
|
-
type
|
|
1039
|
-
interface
|
|
1038
|
+
type AppSidebarAssistantCta = AssistantCta;
|
|
1039
|
+
interface IScAppSidebarProps {
|
|
1040
1040
|
expanded: boolean;
|
|
1041
1041
|
onToggle: () => void;
|
|
1042
1042
|
/** Enable the shared reversible drag/click control on the right edge. */
|
|
1043
1043
|
resizable?: boolean;
|
|
1044
1044
|
/** Controlled resize callback. Falls back to `onToggle` when omitted. */
|
|
1045
1045
|
onExpandedChange?: (expanded: boolean) => void;
|
|
1046
|
-
sections:
|
|
1047
|
-
iconMap?:
|
|
1046
|
+
sections: AppSidebarSection[];
|
|
1047
|
+
iconMap?: AppSidebarIconMap;
|
|
1048
1048
|
activeItemId?: string;
|
|
1049
|
-
onItemSelect?: (item:
|
|
1049
|
+
onItemSelect?: (item: AppSidebarMenuItem, sectionId: string) => void;
|
|
1050
1050
|
expandedLogo?: ReactNode;
|
|
1051
1051
|
collapsedLogo?: ReactNode;
|
|
1052
|
-
creditWarning?:
|
|
1052
|
+
creditWarning?: AppSidebarCreditWarning | null;
|
|
1053
1053
|
/** Gradient call-to-action above the profile row (e.g. "Ask CXO"). Omit to
|
|
1054
1054
|
* hide it. Rendered in both expanded (icon + label pill) and collapsed
|
|
1055
1055
|
* (icon-only square) states. */
|
|
1056
|
-
assistantCta?:
|
|
1057
|
-
profile?:
|
|
1056
|
+
assistantCta?: AppSidebarAssistantCta | null;
|
|
1057
|
+
profile?: AppSidebarProfile;
|
|
1058
1058
|
/** Current product identity and app-switcher trigger. This intentionally
|
|
1059
1059
|
* bypasses the fixed-size profile avatar so wordmarks retain their width. */
|
|
1060
|
-
appIdentity?:
|
|
1060
|
+
appIdentity?: AppSidebarAppIdentity;
|
|
1061
1061
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
1062
1062
|
/** Hide the legacy footer collapse button when the resize edge is enabled. */
|
|
1063
1063
|
hideToggle?: boolean;
|
|
@@ -1066,7 +1066,29 @@ interface IScArtifaxSidebarProps {
|
|
|
1066
1066
|
className?: string;
|
|
1067
1067
|
style?: CSSProperties;
|
|
1068
1068
|
}
|
|
1069
|
-
declare const
|
|
1069
|
+
declare const ScAppSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1070
|
+
/** @deprecated Use {@link ScAppSidebar}. */
|
|
1071
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1072
|
+
/** @deprecated Use {@link AppSidebarMenuItem}. */
|
|
1073
|
+
type ArtifaxMenuItem = AppSidebarMenuItem;
|
|
1074
|
+
/** @deprecated Use {@link AppSidebarSection}. */
|
|
1075
|
+
type ArtifaxSection = AppSidebarSection;
|
|
1076
|
+
/** @deprecated Use {@link AppSidebarIconContext}. */
|
|
1077
|
+
type ArtifaxSidebarIconContext = AppSidebarIconContext;
|
|
1078
|
+
/** @deprecated Use {@link AppSidebarIconRenderer}. */
|
|
1079
|
+
type ArtifaxSidebarIconRenderer = AppSidebarIconRenderer;
|
|
1080
|
+
/** @deprecated Use {@link AppSidebarIconMap}. */
|
|
1081
|
+
type ArtifaxSidebarIconMap = AppSidebarIconMap;
|
|
1082
|
+
/** @deprecated Use {@link AppSidebarProfile}. */
|
|
1083
|
+
type ArtifaxSidebarProfile = AppSidebarProfile;
|
|
1084
|
+
/** @deprecated Use {@link AppSidebarAppIdentity}. */
|
|
1085
|
+
type ArtifaxSidebarAppIdentity = AppSidebarAppIdentity;
|
|
1086
|
+
/** @deprecated Use {@link AppSidebarCreditWarning}. */
|
|
1087
|
+
type ArtifaxSidebarCreditWarning = AppSidebarCreditWarning;
|
|
1088
|
+
/** @deprecated Use {@link AppSidebarAssistantCta}. */
|
|
1089
|
+
type ArtifaxSidebarAssistantCta = AppSidebarAssistantCta;
|
|
1090
|
+
/** @deprecated Use {@link IScAppSidebarProps}. */
|
|
1091
|
+
type IScArtifaxSidebarProps = IScAppSidebarProps;
|
|
1070
1092
|
|
|
1071
1093
|
interface CatalogixNavItem {
|
|
1072
1094
|
id: string;
|
|
@@ -2334,4 +2356,4 @@ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
2334
2356
|
*/
|
|
2335
2357
|
declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2336
2358
|
|
|
2337
|
-
export { type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAppIdentity, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type AssistantCta, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type DescriptionVisibility, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardForCopilotProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSwitchPanelProps, type IScAppcardLogosProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScAskAgentButtonProps, type IScBadgesProps, type IScBeaconProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCatalogixSidebarProps, type IScCatalogixStoreHeaderProps, type IScCatalogixStoreTableListProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCounterProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScCxoCopilotLogoProps, type IScCxoWordmarkProps, type IScDefaultCardProps, type IScDrawerProps, type IScFieldButtonProps, type IScFileFieldProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScInChatListProps, type IScInChatMessageProps, type IScInfoPopupProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMappingCardProps, type IScMediaApprovalProps, type IScMediaSelectProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScModalProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPaginationProps, type IScPairtextProps, type IScPanelResizeHandleProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScPopoverArrowProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfilePopupProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSelectOption, type IScSelectProps, type IScSelectionListProps, type IScSelectionPillGroupProps, type IScSelectionPillOption, type IScSelectionPillProps, type IScSelectionProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSidebarSwitchMenuProps, type IScSliderProps, type IScStoreCardProps, type IScStrLogoProps, type IScStreamoidMascotProps, type IScStreamoidWordmarkProps, type IScSubAgentProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTabsProps, type IScTaxonomyPillProps, type IScTextAreaProps, type IScTextFieldProps, type IScThinkingStepIconProps, type IScTodoItem, type IScTodoListProps, type IScToggleSwitchProps, type IScVDividerProps, type IScValueMappingL1Props, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, type IcListIconState, InvoiceHistoryMobile, NscWorkspaceSwitch, PANEL_RESIZE_STEP_PX, type PanelResizeEdge, type PanelResizeGesture, type PanelWidthBounds, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, STREAMOID_CHANGELOG_URL, STREAMOID_CHANGELOG_URLS, STREAMOID_STATUS_PAGE_URL, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, type ScAppSwitchUtilities, ScAppcardLogos, ScArtifaxInvite, ScArtifaxSidebar, ScAskAgentButton, ScAskAgentSlot, ScBadges, ScBeacon, type ScBeaconTone, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCatalogixStoreHeader, ScCatalogixStoreTableList, ScCheckField, ScCheckbox, ScCounter, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScCxoCopilotLogo, ScCxoWordmark, ScDefaultCard, ScDp, type ScDpProps, ScDrawer, ScFieldButton, ScFileField, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScInChatList, ScInChatMessage, ScInfoPopup, ScIntialProfileCover, ScLogoUnit, ScMappingCard, ScMediaApproval, ScMediaSelect, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScModal, ScOnlyField, ScOnlyIcon, ScPagination, ScPairtext, ScPanelResizeHandle, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScPopoverArrow, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfilePopup, type ScProfilePopupThemeMode, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSelect, ScSelection, ScSelectionList, ScSelectionPill, ScSelectionPillGroup, ScSettingsNav, ScSettingsTabComp, type ScShellThemeMode, ScSideBarLogoUnit, ScSidebar, ScSidebarAppIdentity, type ScSidebarAppIdentityProps, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarResizeHandle, type ScSidebarResizeHandleProps, ScSidebarSearchTrigger, type ScSidebarSearchTriggerProps, ScSidebarSwitchMenu, ScSidebarWorkspaceTrigger, type ScSidebarWorkspaceTriggerProps, ScSlider, ScStoreCard, ScStrLogo, ScStreamoidMascot, ScStreamoidWordmark, ScSubAgent, type ScTab, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTabs, ScTaxonomyPill, ScTextArea, ScTextField, ScThinkingStepIcon, ScTodoList, ScToggleSwitch, ScVDivider, ScValueMappingL1, ScVersion, ScWorkspaceAccountMenu, type ScWorkspaceAccountMenuProps, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SelectionListState, type SidebarAppIdentityConfig, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProduct, type SidebarProfileConfig, type SidebarResizeGestureResult, type SidebarResizeGestureState, type SidebarSectionConfig, type StreamoidAnchorRect, type StreamoidAnchoredPopover, type StreamoidAnchoredPopoverArrow, type StreamoidAnchoredPopoverGeometry, type StreamoidAnchoredPopoverPosition, type StreamoidAnchoredPopoverPositionOptions, type StreamoidAppSwitchProduct, type StreamoidPanelWidthOptions, type StreamoidPanelWidthState, StreamoidSidebar, type StreamoidSidebarPopoverPlacement, type StreamoidSidebarPopoverPosition, type StreamoidSidebarPopoverPositionOptions, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, clampPanelWidth, createStreamoidAppSwitchUtilities, formatStreamoidAppVersion, formatSubAgentLabel, hasCollapsedMark, resolveAnchoredPopoverArrow, resolveAnchoredPopoverPosition, resolvePanelResize, resolvePanelResizeKey, scAppSwitchOrder, streamoidAppSwitchTagline, streamoidChangelogUrl, useStreamoidAnchoredPopover, useStreamoidAnchoredPopoverPosition, useStreamoidPanelWidth, useStreamoidSidebarPopoverPosition, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
|
2359
|
+
export { type AppSidebarAppIdentity, type AppSidebarAssistantCta, type AppSidebarCreditWarning, type AppSidebarIconContext, type AppSidebarIconMap, type AppSidebarIconRenderer, type AppSidebarMenuItem, type AppSidebarProfile, type AppSidebarSection, type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, type ArtifaxSidebarAppIdentity, type ArtifaxSidebarAssistantCta, type ArtifaxSidebarCreditWarning, type ArtifaxSidebarIconContext, type ArtifaxSidebarIconMap, type ArtifaxSidebarIconRenderer, type ArtifaxSidebarProfile, type AssistantCta, type CatalogixNavItem, type CatalogixSidebarCreditWarning, type CatalogixSidebarIconContext, type CatalogixSidebarIconMap, type CatalogixSidebarIconRenderer, type CatalogixSidebarProfile, type CatalogixSwitchApp, CreditWarningBanner, type CreditWarningBannerProps, type DescriptionVisibility, type IInvoiceHistoryMobileProps, type IScAccessProps, type IScAppCardForCopilotProps, type IScAppCardProps, type IScAppCardV3Props, type IScAppFieldProps, type IScAppListingCardProps, type IScAppSidebarProps, type IScAppSwitchPanelProps, type IScAppcardLogosProps, type IScArtifaxInviteProps, type IScArtifaxSidebarProps, type IScAskAgentButtonProps, type IScBadgesProps, type IScBeaconProps, type IScBillingHistoryHeaderProps, type IScBillingHistoryTableListProps, type IScBillingLogsTableHeaderProps, type IScBillingLogsTableListProps, type IScBriefCardProps, type IScButtonProps, type IScCalendarDateCompsProps, type IScCalendarProps, type IScCatalogixInviteProps, type IScCatalogixSidebarProps, type IScCatalogixStoreHeaderProps, type IScCatalogixStoreTableListProps, type IScCheckFieldProps, type IScCheckboxProps, type IScCounterProps, type IScCreditsUsageCardMobileProps, type IScCreditsUsageCardProps, type IScCxoCopilotLogoProps, type IScCxoWordmarkProps, type IScDefaultCardProps, type IScDrawerProps, type IScFieldButtonProps, type IScFileFieldProps, type IScGoogleSignInProps, type IScGuideProps, type IScHDividerProps, type IScHeaderProps, type IScImageFieldProps, type IScInChatListProps, type IScInChatMessageProps, type IScInfoPopupProps, type IScIntialProfileCoverProps, type IScLogoUnitProps, type IScMappingCardProps, type IScMediaApprovalProps, type IScMediaSelectProps, type IScMenuOptionsProps, type IScMobileBottomActionProps, type IScMobileTopNavProps, type IScModalProps, type IScOnlyFieldProps, type IScOnlyIconProps, type IScPaginationProps, type IScPairtextProps, type IScPanelResizeHandleProps, type IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, type IScPopoverArrowProps, type IScProfileImageUpdateProps, type IScProfileOptionsProps, type IScProfilePopupProps, type IScProfileProps, type IScProfileSettingsCompProps, type IScProfileV2MobileProps, type IScProgressBarProps, type IScQuickPromptProps, type IScRadioProps, type IScReferralCardMobileProps, type IScReferralTableHeaderProps, type IScReferralTableListProps, type IScRoleMobileProps, type IScRoleProps, type IScSelectOption, type IScSelectProps, type IScSelectionListProps, type IScSelectionPillGroupProps, type IScSelectionPillOption, type IScSelectionPillProps, type IScSelectionProps, type IScSettingsNavProps, type IScSettingsTabCompProps, type IScSideBarLogoUnitProps, type IScSidebarIconsProps, type IScSidebarMenuProps, type IScSidebarProfileProps, type IScSidebarProps, type IScSidebarSwitchMenuProps, type IScSliderProps, type IScStoreCardProps, type IScStrLogoProps, type IScStreamoidMascotProps, type IScStreamoidWordmarkProps, type IScSubAgentProps, type IScTabCompProps, type IScTabFieldProps, type IScTabSwitcherProps, type IScTableHeaderProps, type IScTableListMobileProps, type IScTableListProps, type IScTabsProps, type IScTaxonomyPillProps, type IScTextAreaProps, type IScTextFieldProps, type IScThinkingStepIconProps, type IScTodoItem, type IScTodoListProps, type IScToggleSwitchProps, type IScVDividerProps, type IScValueMappingL1Props, type IScVersionProps, type IScWorkspaceCardProps, type IScWorkspaceSettingsMobileProps, type IScWorkspaceSwitchMobileProps, type IScWorkspaceSwitchMobileV2Props, type IUsageHistoryMobileProps, type IcListIconState, InvoiceHistoryMobile, NscWorkspaceSwitch, PANEL_RESIZE_STEP_PX, type PanelResizeEdge, type PanelResizeGesture, type PanelWidthBounds, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, STREAMOID_CHANGELOG_URL, STREAMOID_CHANGELOG_URLS, STREAMOID_STATUS_PAGE_URL, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, ScAppSidebar, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, type ScAppSwitchUtilities, ScAppcardLogos, ScArtifaxInvite, ScArtifaxSidebar, ScAskAgentButton, ScAskAgentSlot, ScBadges, ScBeacon, type ScBeaconTone, ScBillingHistoryHeader, ScBillingHistoryTableList, ScBillingLogsTableHeader, ScBillingLogsTableList, ScBriefCard, ScButton, ScCalendar, ScCalendarDateComps, ScCatalogixInvite, ScCatalogixSidebar, ScCatalogixStoreHeader, ScCatalogixStoreTableList, ScCheckField, ScCheckbox, ScCounter, ScCreditsUsageCard, ScCreditsUsageCardMobile, ScCxoCopilotLogo, ScCxoWordmark, ScDefaultCard, ScDp, type ScDpProps, ScDrawer, ScFieldButton, ScFileField, ScGoogleSignIn, ScGuide, ScHDivider, ScHeader, ScImageField, ScInChatList, ScInChatMessage, ScInfoPopup, ScIntialProfileCover, ScLogoUnit, ScMappingCard, ScMediaApproval, ScMediaSelect, ScMenuOptions, ScMobileBottomAction, ScMobileTopNav, ScModal, ScOnlyField, ScOnlyIcon, ScPagination, ScPairtext, ScPanelResizeHandle, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, ScPopoverArrow, ScProfile, ScProfileImageUpdate, ScProfileOptions, ScProfilePopup, type ScProfilePopupThemeMode, ScProfileSettingsComp, ScProfileV2Mobile, ScProgressBar, ScQuickPrompt, ScRadio, ScReferralCardMobile, ScReferralTableHeader, ScReferralTableList, ScRole, ScRoleMobile, ScSelect, ScSelection, ScSelectionList, ScSelectionPill, ScSelectionPillGroup, ScSettingsNav, ScSettingsTabComp, type ScShellThemeMode, ScSideBarLogoUnit, ScSidebar, ScSidebarAppIdentity, type ScSidebarAppIdentityProps, ScSidebarIcons, ScSidebarMenu, ScSidebarProfile, ScSidebarResizeHandle, type ScSidebarResizeHandleProps, ScSidebarSearchTrigger, type ScSidebarSearchTriggerProps, ScSidebarSwitchMenu, ScSidebarWorkspaceTrigger, type ScSidebarWorkspaceTriggerProps, ScSlider, ScStoreCard, ScStrLogo, ScStreamoidMascot, ScStreamoidWordmark, ScSubAgent, type ScTab, ScTabComp, ScTabField, ScTabSwitcher, ScTableHeader, ScTableList, ScTableListMobile, ScTabs, ScTaxonomyPill, ScTextArea, ScTextField, ScThinkingStepIcon, ScTodoList, ScToggleSwitch, ScVDivider, ScValueMappingL1, ScVersion, ScWorkspaceAccountMenu, type ScWorkspaceAccountMenuProps, ScWorkspaceCard, ScWorkspaceSettingsMobile, ScWorkspaceSwitchCard, type ScWorkspaceSwitchCardProps, ScWorkspaceSwitchMobile, ScWorkspaceSwitchMobileV2, type SelectionListState, type SidebarAppIdentityConfig, type SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProduct, type SidebarProfileConfig, type SidebarResizeGestureResult, type SidebarResizeGestureState, type SidebarSectionConfig, type StreamoidAnchorRect, type StreamoidAnchoredPopover, type StreamoidAnchoredPopoverArrow, type StreamoidAnchoredPopoverGeometry, type StreamoidAnchoredPopoverPosition, type StreamoidAnchoredPopoverPositionOptions, type StreamoidAppSwitchProduct, type StreamoidPanelWidthOptions, type StreamoidPanelWidthState, StreamoidSidebar, type StreamoidSidebarPopoverPlacement, type StreamoidSidebarPopoverPosition, type StreamoidSidebarPopoverPositionOptions, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, clampPanelWidth, createStreamoidAppSwitchUtilities, formatStreamoidAppVersion, formatSubAgentLabel, hasCollapsedMark, resolveAnchoredPopoverArrow, resolveAnchoredPopoverPosition, resolvePanelResize, resolvePanelResizeKey, scAppSwitchOrder, streamoidAppSwitchTagline, streamoidChangelogUrl, useStreamoidAnchoredPopover, useStreamoidAnchoredPopoverPosition, useStreamoidPanelWidth, useStreamoidSidebarPopoverPosition, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
ScAppCardV3: () => ScAppCardV3,
|
|
37
37
|
ScAppField: () => ScAppField,
|
|
38
38
|
ScAppListingCard: () => ScAppListingCard,
|
|
39
|
+
ScAppSidebar: () => ScAppSidebar,
|
|
39
40
|
ScAppSwitchPanel: () => ScAppSwitchPanel,
|
|
40
41
|
ScAppSwitchRow: () => ScAppSwitchRow,
|
|
41
42
|
ScAppcardLogos: () => ScAppcardLogos,
|
|
@@ -6256,12 +6257,12 @@ var ScArtifaxSidebar_default = {
|
|
|
6256
6257
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
6257
6258
|
var import_icons38 = require("@streamoid/icons");
|
|
6258
6259
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6259
|
-
function
|
|
6260
|
+
function AppSidebarPlaceholderIcon() {
|
|
6260
6261
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", className: ScArtifaxSidebar_default.placeholderIcon });
|
|
6261
6262
|
}
|
|
6262
6263
|
function resolveIcon2(iconMap, item, active, expanded) {
|
|
6263
6264
|
const renderer = iconMap?.[item.iconKey];
|
|
6264
|
-
if (renderer == null) return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6265
|
+
if (renderer == null) return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AppSidebarPlaceholderIcon, {});
|
|
6265
6266
|
if (typeof renderer === "function") {
|
|
6266
6267
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: renderer({ item, active, expanded }) });
|
|
6267
6268
|
}
|
|
@@ -6295,7 +6296,7 @@ function SectionHeader2({
|
|
|
6295
6296
|
}
|
|
6296
6297
|
);
|
|
6297
6298
|
}
|
|
6298
|
-
var
|
|
6299
|
+
var ScAppSidebar = ({
|
|
6299
6300
|
expanded,
|
|
6300
6301
|
onToggle,
|
|
6301
6302
|
resizable = false,
|
|
@@ -6540,6 +6541,7 @@ var ScArtifaxSidebar = ({
|
|
|
6540
6541
|
}
|
|
6541
6542
|
);
|
|
6542
6543
|
};
|
|
6544
|
+
var ScArtifaxSidebar = ScAppSidebar;
|
|
6543
6545
|
|
|
6544
6546
|
// src/SC-Catalogix-Sidebar/ScCatalogixSidebar.tsx
|
|
6545
6547
|
var import_react19 = require("react");
|
package/dist/index.mjs
CHANGED
|
@@ -6089,12 +6089,12 @@ var ScArtifaxSidebar_default = {
|
|
|
6089
6089
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
6090
6090
|
import { SiconCollapse as SiconCollapse3, SiconDown, SiconUp } from "@streamoid/icons";
|
|
6091
6091
|
import { Fragment as Fragment17, jsx as jsx53, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6092
|
-
function
|
|
6092
|
+
function AppSidebarPlaceholderIcon() {
|
|
6093
6093
|
return /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: ScArtifaxSidebar_default.placeholderIcon });
|
|
6094
6094
|
}
|
|
6095
6095
|
function resolveIcon2(iconMap, item, active, expanded) {
|
|
6096
6096
|
const renderer = iconMap?.[item.iconKey];
|
|
6097
|
-
if (renderer == null) return /* @__PURE__ */ jsx53(
|
|
6097
|
+
if (renderer == null) return /* @__PURE__ */ jsx53(AppSidebarPlaceholderIcon, {});
|
|
6098
6098
|
if (typeof renderer === "function") {
|
|
6099
6099
|
return /* @__PURE__ */ jsx53(Fragment17, { children: renderer({ item, active, expanded }) });
|
|
6100
6100
|
}
|
|
@@ -6128,7 +6128,7 @@ function SectionHeader2({
|
|
|
6128
6128
|
}
|
|
6129
6129
|
);
|
|
6130
6130
|
}
|
|
6131
|
-
var
|
|
6131
|
+
var ScAppSidebar = ({
|
|
6132
6132
|
expanded,
|
|
6133
6133
|
onToggle,
|
|
6134
6134
|
resizable = false,
|
|
@@ -6373,6 +6373,7 @@ var ScArtifaxSidebar = ({
|
|
|
6373
6373
|
}
|
|
6374
6374
|
);
|
|
6375
6375
|
};
|
|
6376
|
+
var ScArtifaxSidebar = ScAppSidebar;
|
|
6376
6377
|
|
|
6377
6378
|
// src/SC-Catalogix-Sidebar/ScCatalogixSidebar.tsx
|
|
6378
6379
|
import { useState as useState16 } from "react";
|
|
@@ -12416,6 +12417,7 @@ export {
|
|
|
12416
12417
|
ScAppCardV3,
|
|
12417
12418
|
ScAppField,
|
|
12418
12419
|
ScAppListingCard,
|
|
12420
|
+
ScAppSidebar,
|
|
12419
12421
|
ScAppSwitchPanel,
|
|
12420
12422
|
ScAppSwitchRow,
|
|
12421
12423
|
ScAppcardLogos,
|