@streamoid/ui 0.6.37 → 0.6.39
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.css +11 -0
- package/dist/index.d.mts +51 -21
- package/dist/index.d.ts +51 -21
- package/dist/index.js +20 -10
- package/dist/index.mjs +20 -10
- 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.css
CHANGED
|
@@ -4412,6 +4412,17 @@ button.ScSidebarShell_actionRow:hover {
|
|
|
4412
4412
|
border: 1px dashed var(--alias-text-and-icons-tertiary, #9e9e9e);
|
|
4413
4413
|
border-radius: var(--radius-full, 999px);
|
|
4414
4414
|
}
|
|
4415
|
+
.ScArtifaxSidebar_versionText {
|
|
4416
|
+
margin: 0;
|
|
4417
|
+
padding: var(--spacing-xxs, 0.125rem) var(--spacing-md, 0.5rem);
|
|
4418
|
+
font-size: 0.75rem;
|
|
4419
|
+
line-height: 1rem;
|
|
4420
|
+
text-align: center;
|
|
4421
|
+
color: var(--alias-text---icons-muted, #7a7a7a);
|
|
4422
|
+
overflow: hidden;
|
|
4423
|
+
text-overflow: ellipsis;
|
|
4424
|
+
white-space: nowrap;
|
|
4425
|
+
}
|
|
4415
4426
|
|
|
4416
4427
|
/* src/SC-Sidebar Switch menu/ScSidebarSwitchMenu.module.css */
|
|
4417
4428
|
.ScSidebarSwitchMenu_scSidebarSwitchMenu,
|
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,38 +1035,68 @@ 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;
|
|
1064
|
+
/** Host-owned block above the credit warning — onboarding, an upgrade
|
|
1065
|
+
* prompt. Rendered in both the expanded and collapsed rails. */
|
|
1066
|
+
preFooterContent?: ReactNode;
|
|
1067
|
+
/** Build/version label under the footer. Omit to draw none. */
|
|
1068
|
+
versionText?: string;
|
|
1069
|
+
/** Mobile drawer: the footer stands down, as it does on the generic rail —
|
|
1070
|
+
* the profile and collapse controls belong to the drawer's own chrome. */
|
|
1071
|
+
isMobile?: boolean;
|
|
1064
1072
|
openSections?: Record<string, boolean>;
|
|
1065
1073
|
onSectionToggle?: (sectionId: string, open: boolean) => void;
|
|
1066
1074
|
className?: string;
|
|
1067
1075
|
style?: CSSProperties;
|
|
1068
1076
|
}
|
|
1069
|
-
declare const
|
|
1077
|
+
declare const ScAppSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, preFooterContent, versionText, isMobile, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1078
|
+
/** @deprecated Use {@link ScAppSidebar}. */
|
|
1079
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, preFooterContent, versionText, isMobile, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1080
|
+
/** @deprecated Use {@link AppSidebarMenuItem}. */
|
|
1081
|
+
type ArtifaxMenuItem = AppSidebarMenuItem;
|
|
1082
|
+
/** @deprecated Use {@link AppSidebarSection}. */
|
|
1083
|
+
type ArtifaxSection = AppSidebarSection;
|
|
1084
|
+
/** @deprecated Use {@link AppSidebarIconContext}. */
|
|
1085
|
+
type ArtifaxSidebarIconContext = AppSidebarIconContext;
|
|
1086
|
+
/** @deprecated Use {@link AppSidebarIconRenderer}. */
|
|
1087
|
+
type ArtifaxSidebarIconRenderer = AppSidebarIconRenderer;
|
|
1088
|
+
/** @deprecated Use {@link AppSidebarIconMap}. */
|
|
1089
|
+
type ArtifaxSidebarIconMap = AppSidebarIconMap;
|
|
1090
|
+
/** @deprecated Use {@link AppSidebarProfile}. */
|
|
1091
|
+
type ArtifaxSidebarProfile = AppSidebarProfile;
|
|
1092
|
+
/** @deprecated Use {@link AppSidebarAppIdentity}. */
|
|
1093
|
+
type ArtifaxSidebarAppIdentity = AppSidebarAppIdentity;
|
|
1094
|
+
/** @deprecated Use {@link AppSidebarCreditWarning}. */
|
|
1095
|
+
type ArtifaxSidebarCreditWarning = AppSidebarCreditWarning;
|
|
1096
|
+
/** @deprecated Use {@link AppSidebarAssistantCta}. */
|
|
1097
|
+
type ArtifaxSidebarAssistantCta = AppSidebarAssistantCta;
|
|
1098
|
+
/** @deprecated Use {@link IScAppSidebarProps}. */
|
|
1099
|
+
type IScArtifaxSidebarProps = IScAppSidebarProps;
|
|
1070
1100
|
|
|
1071
1101
|
interface CatalogixNavItem {
|
|
1072
1102
|
id: string;
|
|
@@ -2334,4 +2364,4 @@ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
2334
2364
|
*/
|
|
2335
2365
|
declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2336
2366
|
|
|
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 };
|
|
2367
|
+
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,38 +1035,68 @@ 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;
|
|
1064
|
+
/** Host-owned block above the credit warning — onboarding, an upgrade
|
|
1065
|
+
* prompt. Rendered in both the expanded and collapsed rails. */
|
|
1066
|
+
preFooterContent?: ReactNode;
|
|
1067
|
+
/** Build/version label under the footer. Omit to draw none. */
|
|
1068
|
+
versionText?: string;
|
|
1069
|
+
/** Mobile drawer: the footer stands down, as it does on the generic rail —
|
|
1070
|
+
* the profile and collapse controls belong to the drawer's own chrome. */
|
|
1071
|
+
isMobile?: boolean;
|
|
1064
1072
|
openSections?: Record<string, boolean>;
|
|
1065
1073
|
onSectionToggle?: (sectionId: string, open: boolean) => void;
|
|
1066
1074
|
className?: string;
|
|
1067
1075
|
style?: CSSProperties;
|
|
1068
1076
|
}
|
|
1069
|
-
declare const
|
|
1077
|
+
declare const ScAppSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, preFooterContent, versionText, isMobile, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1078
|
+
/** @deprecated Use {@link ScAppSidebar}. */
|
|
1079
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, preFooterContent, versionText, isMobile, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
1080
|
+
/** @deprecated Use {@link AppSidebarMenuItem}. */
|
|
1081
|
+
type ArtifaxMenuItem = AppSidebarMenuItem;
|
|
1082
|
+
/** @deprecated Use {@link AppSidebarSection}. */
|
|
1083
|
+
type ArtifaxSection = AppSidebarSection;
|
|
1084
|
+
/** @deprecated Use {@link AppSidebarIconContext}. */
|
|
1085
|
+
type ArtifaxSidebarIconContext = AppSidebarIconContext;
|
|
1086
|
+
/** @deprecated Use {@link AppSidebarIconRenderer}. */
|
|
1087
|
+
type ArtifaxSidebarIconRenderer = AppSidebarIconRenderer;
|
|
1088
|
+
/** @deprecated Use {@link AppSidebarIconMap}. */
|
|
1089
|
+
type ArtifaxSidebarIconMap = AppSidebarIconMap;
|
|
1090
|
+
/** @deprecated Use {@link AppSidebarProfile}. */
|
|
1091
|
+
type ArtifaxSidebarProfile = AppSidebarProfile;
|
|
1092
|
+
/** @deprecated Use {@link AppSidebarAppIdentity}. */
|
|
1093
|
+
type ArtifaxSidebarAppIdentity = AppSidebarAppIdentity;
|
|
1094
|
+
/** @deprecated Use {@link AppSidebarCreditWarning}. */
|
|
1095
|
+
type ArtifaxSidebarCreditWarning = AppSidebarCreditWarning;
|
|
1096
|
+
/** @deprecated Use {@link AppSidebarAssistantCta}. */
|
|
1097
|
+
type ArtifaxSidebarAssistantCta = AppSidebarAssistantCta;
|
|
1098
|
+
/** @deprecated Use {@link IScAppSidebarProps}. */
|
|
1099
|
+
type IScArtifaxSidebarProps = IScAppSidebarProps;
|
|
1070
1100
|
|
|
1071
1101
|
interface CatalogixNavItem {
|
|
1072
1102
|
id: string;
|
|
@@ -2334,4 +2364,4 @@ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
2334
2364
|
*/
|
|
2335
2365
|
declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2336
2366
|
|
|
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 };
|
|
2367
|
+
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,
|
|
@@ -6250,18 +6251,19 @@ var ScArtifaxSidebar_default = {
|
|
|
6250
6251
|
creditWarningSlot: "ScArtifaxSidebar_creditWarningSlot",
|
|
6251
6252
|
footerToggle: "ScArtifaxSidebar_footerToggle",
|
|
6252
6253
|
footerCollapsed: "ScArtifaxSidebar_footerCollapsed",
|
|
6253
|
-
placeholderIcon: "ScArtifaxSidebar_placeholderIcon"
|
|
6254
|
+
placeholderIcon: "ScArtifaxSidebar_placeholderIcon",
|
|
6255
|
+
versionText: "ScArtifaxSidebar_versionText"
|
|
6254
6256
|
};
|
|
6255
6257
|
|
|
6256
6258
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
6257
6259
|
var import_icons38 = require("@streamoid/icons");
|
|
6258
6260
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6259
|
-
function
|
|
6261
|
+
function AppSidebarPlaceholderIcon() {
|
|
6260
6262
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { "aria-hidden": "true", className: ScArtifaxSidebar_default.placeholderIcon });
|
|
6261
6263
|
}
|
|
6262
6264
|
function resolveIcon2(iconMap, item, active, expanded) {
|
|
6263
6265
|
const renderer = iconMap?.[item.iconKey];
|
|
6264
|
-
if (renderer == null) return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6266
|
+
if (renderer == null) return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(AppSidebarPlaceholderIcon, {});
|
|
6265
6267
|
if (typeof renderer === "function") {
|
|
6266
6268
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: renderer({ item, active, expanded }) });
|
|
6267
6269
|
}
|
|
@@ -6295,7 +6297,7 @@ function SectionHeader2({
|
|
|
6295
6297
|
}
|
|
6296
6298
|
);
|
|
6297
6299
|
}
|
|
6298
|
-
var
|
|
6300
|
+
var ScAppSidebar = ({
|
|
6299
6301
|
expanded,
|
|
6300
6302
|
onToggle,
|
|
6301
6303
|
resizable = false,
|
|
@@ -6312,6 +6314,9 @@ var ScArtifaxSidebar = ({
|
|
|
6312
6314
|
appIdentity,
|
|
6313
6315
|
toggleIcon,
|
|
6314
6316
|
hideToggle = false,
|
|
6317
|
+
preFooterContent,
|
|
6318
|
+
versionText,
|
|
6319
|
+
isMobile = false,
|
|
6315
6320
|
openSections,
|
|
6316
6321
|
onSectionToggle,
|
|
6317
6322
|
className,
|
|
@@ -6408,6 +6413,7 @@ var ScArtifaxSidebar = ({
|
|
|
6408
6413
|
] }, section.id);
|
|
6409
6414
|
})
|
|
6410
6415
|
] }),
|
|
6416
|
+
preFooterContent,
|
|
6411
6417
|
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6412
6418
|
CreditWarningBanner,
|
|
6413
6419
|
{
|
|
@@ -6419,8 +6425,8 @@ var ScArtifaxSidebar = ({
|
|
|
6419
6425
|
}
|
|
6420
6426
|
) }) : null,
|
|
6421
6427
|
assistantCta ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScAskAgentSlot, { cta: assistantCta }) : null,
|
|
6422
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScHDivider, {}),
|
|
6423
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
6428
|
+
!isMobile ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScHDivider, {}) : null,
|
|
6429
|
+
!isMobile ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
6424
6430
|
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6425
6431
|
"button",
|
|
6426
6432
|
{
|
|
@@ -6455,7 +6461,8 @@ var ScArtifaxSidebar = ({
|
|
|
6455
6461
|
children: resolveToggleIcon2(toggleIcon, true)
|
|
6456
6462
|
}
|
|
6457
6463
|
) : null
|
|
6458
|
-
] })
|
|
6464
|
+
] }) : null,
|
|
6465
|
+
versionText ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: ScArtifaxSidebar_default.versionText, children: versionText }) : null
|
|
6459
6466
|
]
|
|
6460
6467
|
}
|
|
6461
6468
|
)
|
|
@@ -6490,6 +6497,7 @@ var ScArtifaxSidebar = ({
|
|
|
6490
6497
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
|
|
6491
6498
|
] }, section.id))
|
|
6492
6499
|
] }),
|
|
6500
|
+
preFooterContent,
|
|
6493
6501
|
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6494
6502
|
CreditWarningBanner,
|
|
6495
6503
|
{
|
|
@@ -6501,8 +6509,8 @@ var ScArtifaxSidebar = ({
|
|
|
6501
6509
|
}
|
|
6502
6510
|
) }) : null,
|
|
6503
6511
|
assistantCta ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
|
|
6504
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScHDivider, {}),
|
|
6505
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
6512
|
+
!isMobile ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScHDivider, {}) : null,
|
|
6513
|
+
!isMobile ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
6506
6514
|
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6507
6515
|
"button",
|
|
6508
6516
|
{
|
|
@@ -6532,7 +6540,8 @@ var ScArtifaxSidebar = ({
|
|
|
6532
6540
|
children: resolveToggleIcon2(toggleIcon, false)
|
|
6533
6541
|
}
|
|
6534
6542
|
) : null
|
|
6535
|
-
] })
|
|
6543
|
+
] }) : null,
|
|
6544
|
+
versionText ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: ScArtifaxSidebar_default.versionText, children: versionText }) : null
|
|
6536
6545
|
]
|
|
6537
6546
|
}
|
|
6538
6547
|
)
|
|
@@ -6540,6 +6549,7 @@ var ScArtifaxSidebar = ({
|
|
|
6540
6549
|
}
|
|
6541
6550
|
);
|
|
6542
6551
|
};
|
|
6552
|
+
var ScArtifaxSidebar = ScAppSidebar;
|
|
6543
6553
|
|
|
6544
6554
|
// src/SC-Catalogix-Sidebar/ScCatalogixSidebar.tsx
|
|
6545
6555
|
var import_react19 = require("react");
|
package/dist/index.mjs
CHANGED
|
@@ -6083,18 +6083,19 @@ var ScArtifaxSidebar_default = {
|
|
|
6083
6083
|
creditWarningSlot: "ScArtifaxSidebar_creditWarningSlot",
|
|
6084
6084
|
footerToggle: "ScArtifaxSidebar_footerToggle",
|
|
6085
6085
|
footerCollapsed: "ScArtifaxSidebar_footerCollapsed",
|
|
6086
|
-
placeholderIcon: "ScArtifaxSidebar_placeholderIcon"
|
|
6086
|
+
placeholderIcon: "ScArtifaxSidebar_placeholderIcon",
|
|
6087
|
+
versionText: "ScArtifaxSidebar_versionText"
|
|
6087
6088
|
};
|
|
6088
6089
|
|
|
6089
6090
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
6090
6091
|
import { SiconCollapse as SiconCollapse3, SiconDown, SiconUp } from "@streamoid/icons";
|
|
6091
6092
|
import { Fragment as Fragment17, jsx as jsx53, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6092
|
-
function
|
|
6093
|
+
function AppSidebarPlaceholderIcon() {
|
|
6093
6094
|
return /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: ScArtifaxSidebar_default.placeholderIcon });
|
|
6094
6095
|
}
|
|
6095
6096
|
function resolveIcon2(iconMap, item, active, expanded) {
|
|
6096
6097
|
const renderer = iconMap?.[item.iconKey];
|
|
6097
|
-
if (renderer == null) return /* @__PURE__ */ jsx53(
|
|
6098
|
+
if (renderer == null) return /* @__PURE__ */ jsx53(AppSidebarPlaceholderIcon, {});
|
|
6098
6099
|
if (typeof renderer === "function") {
|
|
6099
6100
|
return /* @__PURE__ */ jsx53(Fragment17, { children: renderer({ item, active, expanded }) });
|
|
6100
6101
|
}
|
|
@@ -6128,7 +6129,7 @@ function SectionHeader2({
|
|
|
6128
6129
|
}
|
|
6129
6130
|
);
|
|
6130
6131
|
}
|
|
6131
|
-
var
|
|
6132
|
+
var ScAppSidebar = ({
|
|
6132
6133
|
expanded,
|
|
6133
6134
|
onToggle,
|
|
6134
6135
|
resizable = false,
|
|
@@ -6145,6 +6146,9 @@ var ScArtifaxSidebar = ({
|
|
|
6145
6146
|
appIdentity,
|
|
6146
6147
|
toggleIcon,
|
|
6147
6148
|
hideToggle = false,
|
|
6149
|
+
preFooterContent,
|
|
6150
|
+
versionText,
|
|
6151
|
+
isMobile = false,
|
|
6148
6152
|
openSections,
|
|
6149
6153
|
onSectionToggle,
|
|
6150
6154
|
className,
|
|
@@ -6241,6 +6245,7 @@ var ScArtifaxSidebar = ({
|
|
|
6241
6245
|
] }, section.id);
|
|
6242
6246
|
})
|
|
6243
6247
|
] }),
|
|
6248
|
+
preFooterContent,
|
|
6244
6249
|
creditWarning ? /* @__PURE__ */ jsx53("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx53(
|
|
6245
6250
|
CreditWarningBanner,
|
|
6246
6251
|
{
|
|
@@ -6252,8 +6257,8 @@ var ScArtifaxSidebar = ({
|
|
|
6252
6257
|
}
|
|
6253
6258
|
) }) : null,
|
|
6254
6259
|
assistantCta ? /* @__PURE__ */ jsx53(ScAskAgentSlot, { cta: assistantCta }) : null,
|
|
6255
|
-
/* @__PURE__ */ jsx53(ScHDivider, {}),
|
|
6256
|
-
/* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
6260
|
+
!isMobile ? /* @__PURE__ */ jsx53(ScHDivider, {}) : null,
|
|
6261
|
+
!isMobile ? /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
6257
6262
|
appIdentity ? /* @__PURE__ */ jsx53(
|
|
6258
6263
|
"button",
|
|
6259
6264
|
{
|
|
@@ -6288,7 +6293,8 @@ var ScArtifaxSidebar = ({
|
|
|
6288
6293
|
children: resolveToggleIcon2(toggleIcon, true)
|
|
6289
6294
|
}
|
|
6290
6295
|
) : null
|
|
6291
|
-
] })
|
|
6296
|
+
] }) : null,
|
|
6297
|
+
versionText ? /* @__PURE__ */ jsx53("p", { className: ScArtifaxSidebar_default.versionText, children: versionText }) : null
|
|
6292
6298
|
]
|
|
6293
6299
|
}
|
|
6294
6300
|
)
|
|
@@ -6323,6 +6329,7 @@ var ScArtifaxSidebar = ({
|
|
|
6323
6329
|
/* @__PURE__ */ jsx53("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
|
|
6324
6330
|
] }, section.id))
|
|
6325
6331
|
] }),
|
|
6332
|
+
preFooterContent,
|
|
6326
6333
|
creditWarning ? /* @__PURE__ */ jsx53("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx53(
|
|
6327
6334
|
CreditWarningBanner,
|
|
6328
6335
|
{
|
|
@@ -6334,8 +6341,8 @@ var ScArtifaxSidebar = ({
|
|
|
6334
6341
|
}
|
|
6335
6342
|
) }) : null,
|
|
6336
6343
|
assistantCta ? /* @__PURE__ */ jsx53(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
|
|
6337
|
-
/* @__PURE__ */ jsx53(ScHDivider, {}),
|
|
6338
|
-
/* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
6344
|
+
!isMobile ? /* @__PURE__ */ jsx53(ScHDivider, {}) : null,
|
|
6345
|
+
!isMobile ? /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
6339
6346
|
appIdentity ? /* @__PURE__ */ jsx53(
|
|
6340
6347
|
"button",
|
|
6341
6348
|
{
|
|
@@ -6365,7 +6372,8 @@ var ScArtifaxSidebar = ({
|
|
|
6365
6372
|
children: resolveToggleIcon2(toggleIcon, false)
|
|
6366
6373
|
}
|
|
6367
6374
|
) : null
|
|
6368
|
-
] })
|
|
6375
|
+
] }) : null,
|
|
6376
|
+
versionText ? /* @__PURE__ */ jsx53("p", { className: ScArtifaxSidebar_default.versionText, children: versionText }) : null
|
|
6369
6377
|
]
|
|
6370
6378
|
}
|
|
6371
6379
|
)
|
|
@@ -6373,6 +6381,7 @@ var ScArtifaxSidebar = ({
|
|
|
6373
6381
|
}
|
|
6374
6382
|
);
|
|
6375
6383
|
};
|
|
6384
|
+
var ScArtifaxSidebar = ScAppSidebar;
|
|
6376
6385
|
|
|
6377
6386
|
// src/SC-Catalogix-Sidebar/ScCatalogixSidebar.tsx
|
|
6378
6387
|
import { useState as useState16 } from "react";
|
|
@@ -12416,6 +12425,7 @@ export {
|
|
|
12416
12425
|
ScAppCardV3,
|
|
12417
12426
|
ScAppField,
|
|
12418
12427
|
ScAppListingCard,
|
|
12428
|
+
ScAppSidebar,
|
|
12419
12429
|
ScAppSwitchPanel,
|
|
12420
12430
|
ScAppSwitchRow,
|
|
12421
12431
|
ScAppcardLogos,
|