@streamoid/ui 0.6.20 → 0.6.21
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/index.css +34 -2
- package/dist/index.d.mts +21 -3
- package/dist/index.d.ts +21 -3
- package/dist/index.js +65 -5
- package/dist/index.mjs +65 -5
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -3932,9 +3932,10 @@
|
|
|
3932
3932
|
display: flex;
|
|
3933
3933
|
flex-direction: column;
|
|
3934
3934
|
align-items: stretch;
|
|
3935
|
-
width: var(--sc-workspace-menu-width, 336px);
|
|
3936
|
-
max-height: calc(
|
|
3935
|
+
width: min(var(--sc-workspace-menu-width, 336px), calc(100vw - 32px));
|
|
3936
|
+
max-height: calc(100dvh - 80px);
|
|
3937
3937
|
overflow-y: auto;
|
|
3938
|
+
overscroll-behavior: contain;
|
|
3938
3939
|
padding: var(--spacing-xl, 12px);
|
|
3939
3940
|
gap: var(--spacing-lg, 10px);
|
|
3940
3941
|
border: 0.5px solid var(--alias-border-subtle, #242424);
|
|
@@ -4232,6 +4233,37 @@ button.ScSidebarShell_actionRow:hover {
|
|
|
4232
4233
|
.ScArtifaxSidebar_profileMain:hover {
|
|
4233
4234
|
background: var(--alias-fill-neutral-neutral, #1a1a1a);
|
|
4234
4235
|
}
|
|
4236
|
+
.ScArtifaxSidebar_appIdentityMain {
|
|
4237
|
+
display: flex;
|
|
4238
|
+
flex: 1 1 0;
|
|
4239
|
+
min-width: 0;
|
|
4240
|
+
min-height: 3rem;
|
|
4241
|
+
align-items: center;
|
|
4242
|
+
padding: var(--spacing-md, 0.5rem) var(--spacing-xl, 0.75rem);
|
|
4243
|
+
border: none;
|
|
4244
|
+
border-radius: var(--radius-3xl, 1rem);
|
|
4245
|
+
background: transparent;
|
|
4246
|
+
color: inherit;
|
|
4247
|
+
cursor: pointer;
|
|
4248
|
+
}
|
|
4249
|
+
.ScArtifaxSidebar_appIdentityMain:hover,
|
|
4250
|
+
.ScArtifaxSidebar_appIdentityCollapsed:hover {
|
|
4251
|
+
background: var(--alias-fill-neutral-neutral, #1a1a1a);
|
|
4252
|
+
}
|
|
4253
|
+
.ScArtifaxSidebar_appIdentityCollapsed {
|
|
4254
|
+
display: flex;
|
|
4255
|
+
width: 3rem;
|
|
4256
|
+
height: 3rem;
|
|
4257
|
+
flex-shrink: 0;
|
|
4258
|
+
align-items: center;
|
|
4259
|
+
justify-content: center;
|
|
4260
|
+
padding: var(--spacing-md, 0.5rem);
|
|
4261
|
+
border: none;
|
|
4262
|
+
border-radius: var(--radius-3xl, 1rem);
|
|
4263
|
+
background: transparent;
|
|
4264
|
+
color: inherit;
|
|
4265
|
+
cursor: pointer;
|
|
4266
|
+
}
|
|
4235
4267
|
.ScArtifaxSidebar_profileRowCollapsed {
|
|
4236
4268
|
display: flex;
|
|
4237
4269
|
align-items: center;
|
package/dist/index.d.mts
CHANGED
|
@@ -497,6 +497,12 @@ interface SidebarProfileConfig {
|
|
|
497
497
|
avatar?: ReactNode;
|
|
498
498
|
onClick?: () => void;
|
|
499
499
|
}
|
|
500
|
+
/** Dedicated footer surface for the current product/app switcher. */
|
|
501
|
+
interface SidebarAppIdentityConfig {
|
|
502
|
+
content: ReactNode;
|
|
503
|
+
onClick?: () => void;
|
|
504
|
+
ariaLabel?: string;
|
|
505
|
+
}
|
|
500
506
|
interface SidebarIconContext {
|
|
501
507
|
item: SidebarMenuItemConfig;
|
|
502
508
|
active: boolean;
|
|
@@ -521,6 +527,9 @@ interface StreamoidSidebarProps {
|
|
|
521
527
|
expandedLogo?: ReactNode;
|
|
522
528
|
collapsedLogo?: ReactNode;
|
|
523
529
|
profile?: SidebarProfileConfig;
|
|
530
|
+
/** Current product identity and app-switcher trigger. This intentionally
|
|
531
|
+
* bypasses the fixed-size profile avatar so wordmarks retain their width. */
|
|
532
|
+
appIdentity?: SidebarAppIdentityConfig;
|
|
524
533
|
versionText?: string;
|
|
525
534
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
526
535
|
/** Footer = profile (flex-1) + a SEPARATE collapse-toggle button beside it,
|
|
@@ -553,7 +562,7 @@ interface StreamoidSidebarProps {
|
|
|
553
562
|
/** Explicit state override per top item id — takes priority over activeItemId/highlightedItemIds for top items */
|
|
554
563
|
topItemStates?: Record<string, "default" | "active" | "hover" | "default-highlight" | "default-active">;
|
|
555
564
|
}
|
|
556
|
-
declare function StreamoidSidebar({ expanded, onToggle, resizable, onExpandedChange, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, toggleInProfile, hideFooter, assistantCta, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): React$1.JSX.Element;
|
|
565
|
+
declare function StreamoidSidebar({ expanded, onToggle, resizable, onExpandedChange, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, appIdentity, versionText, toggleIcon, toggleInProfile, hideFooter, assistantCta, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): React$1.JSX.Element;
|
|
557
566
|
|
|
558
567
|
declare const SIDEBAR_RESIZE_THRESHOLD_PX = 24;
|
|
559
568
|
interface SidebarResizeGestureState {
|
|
@@ -674,6 +683,12 @@ interface ArtifaxSidebarProfile {
|
|
|
674
683
|
avatar?: ReactNode;
|
|
675
684
|
onClick?: () => void;
|
|
676
685
|
}
|
|
686
|
+
/** Dedicated footer surface for the current product/app switcher. */
|
|
687
|
+
interface ArtifaxSidebarAppIdentity {
|
|
688
|
+
content: ReactNode;
|
|
689
|
+
onClick?: () => void;
|
|
690
|
+
ariaLabel?: string;
|
|
691
|
+
}
|
|
677
692
|
interface ArtifaxSidebarCreditWarning {
|
|
678
693
|
availableCredits: number;
|
|
679
694
|
remainingPct: number;
|
|
@@ -705,6 +720,9 @@ interface IScArtifaxSidebarProps {
|
|
|
705
720
|
* (icon-only square) states. */
|
|
706
721
|
assistantCta?: ArtifaxSidebarAssistantCta | null;
|
|
707
722
|
profile?: ArtifaxSidebarProfile;
|
|
723
|
+
/** Current product identity and app-switcher trigger. This intentionally
|
|
724
|
+
* bypasses the fixed-size profile avatar so wordmarks retain their width. */
|
|
725
|
+
appIdentity?: ArtifaxSidebarAppIdentity;
|
|
708
726
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
709
727
|
/** Hide the legacy footer collapse button when the resize edge is enabled. */
|
|
710
728
|
hideToggle?: boolean;
|
|
@@ -713,7 +731,7 @@ interface IScArtifaxSidebarProps {
|
|
|
713
731
|
className?: string;
|
|
714
732
|
style?: CSSProperties;
|
|
715
733
|
}
|
|
716
|
-
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
734
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
717
735
|
|
|
718
736
|
interface CatalogixNavItem {
|
|
719
737
|
id: string;
|
|
@@ -1981,4 +1999,4 @@ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1981
1999
|
*/
|
|
1982
2000
|
declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1983
2001
|
|
|
1984
|
-
export { type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, 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 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 IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, 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, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, 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, 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, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, 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 SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProduct, type SidebarProfileConfig, type SidebarResizeGestureResult, type SidebarResizeGestureState, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, formatSubAgentLabel, hasCollapsedMark, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
|
2002
|
+
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 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 IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, 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, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, 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, 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, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, 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, StreamoidSidebar, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, formatSubAgentLabel, hasCollapsedMark, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
package/dist/index.d.ts
CHANGED
|
@@ -497,6 +497,12 @@ interface SidebarProfileConfig {
|
|
|
497
497
|
avatar?: ReactNode;
|
|
498
498
|
onClick?: () => void;
|
|
499
499
|
}
|
|
500
|
+
/** Dedicated footer surface for the current product/app switcher. */
|
|
501
|
+
interface SidebarAppIdentityConfig {
|
|
502
|
+
content: ReactNode;
|
|
503
|
+
onClick?: () => void;
|
|
504
|
+
ariaLabel?: string;
|
|
505
|
+
}
|
|
500
506
|
interface SidebarIconContext {
|
|
501
507
|
item: SidebarMenuItemConfig;
|
|
502
508
|
active: boolean;
|
|
@@ -521,6 +527,9 @@ interface StreamoidSidebarProps {
|
|
|
521
527
|
expandedLogo?: ReactNode;
|
|
522
528
|
collapsedLogo?: ReactNode;
|
|
523
529
|
profile?: SidebarProfileConfig;
|
|
530
|
+
/** Current product identity and app-switcher trigger. This intentionally
|
|
531
|
+
* bypasses the fixed-size profile avatar so wordmarks retain their width. */
|
|
532
|
+
appIdentity?: SidebarAppIdentityConfig;
|
|
524
533
|
versionText?: string;
|
|
525
534
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
526
535
|
/** Footer = profile (flex-1) + a SEPARATE collapse-toggle button beside it,
|
|
@@ -553,7 +562,7 @@ interface StreamoidSidebarProps {
|
|
|
553
562
|
/** Explicit state override per top item id — takes priority over activeItemId/highlightedItemIds for top items */
|
|
554
563
|
topItemStates?: Record<string, "default" | "active" | "hover" | "default-highlight" | "default-active">;
|
|
555
564
|
}
|
|
556
|
-
declare function StreamoidSidebar({ expanded, onToggle, resizable, onExpandedChange, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, versionText, toggleIcon, toggleInProfile, hideFooter, assistantCta, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): React$1.JSX.Element;
|
|
565
|
+
declare function StreamoidSidebar({ expanded, onToggle, resizable, onExpandedChange, config, iconMap, activeItemId, highlightedItemIds, onItemSelect, moreIcon, onMoreClick, expandedLogo, collapsedLogo, profile, appIdentity, versionText, toggleIcon, toggleInProfile, hideFooter, assistantCta, preFooterContent, bodyContent, showBody, switchPanel, switchPanelOpen, onSwitchPanelClose, isMobile, className, style, topItems, topItemStates, }: StreamoidSidebarProps): React$1.JSX.Element;
|
|
557
566
|
|
|
558
567
|
declare const SIDEBAR_RESIZE_THRESHOLD_PX = 24;
|
|
559
568
|
interface SidebarResizeGestureState {
|
|
@@ -674,6 +683,12 @@ interface ArtifaxSidebarProfile {
|
|
|
674
683
|
avatar?: ReactNode;
|
|
675
684
|
onClick?: () => void;
|
|
676
685
|
}
|
|
686
|
+
/** Dedicated footer surface for the current product/app switcher. */
|
|
687
|
+
interface ArtifaxSidebarAppIdentity {
|
|
688
|
+
content: ReactNode;
|
|
689
|
+
onClick?: () => void;
|
|
690
|
+
ariaLabel?: string;
|
|
691
|
+
}
|
|
677
692
|
interface ArtifaxSidebarCreditWarning {
|
|
678
693
|
availableCredits: number;
|
|
679
694
|
remainingPct: number;
|
|
@@ -705,6 +720,9 @@ interface IScArtifaxSidebarProps {
|
|
|
705
720
|
* (icon-only square) states. */
|
|
706
721
|
assistantCta?: ArtifaxSidebarAssistantCta | null;
|
|
707
722
|
profile?: ArtifaxSidebarProfile;
|
|
723
|
+
/** Current product identity and app-switcher trigger. This intentionally
|
|
724
|
+
* bypasses the fixed-size profile avatar so wordmarks retain their width. */
|
|
725
|
+
appIdentity?: ArtifaxSidebarAppIdentity;
|
|
708
726
|
toggleIcon?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
709
727
|
/** Hide the legacy footer collapse button when the resize edge is enabled. */
|
|
710
728
|
hideToggle?: boolean;
|
|
@@ -713,7 +731,7 @@ interface IScArtifaxSidebarProps {
|
|
|
713
731
|
className?: string;
|
|
714
732
|
style?: CSSProperties;
|
|
715
733
|
}
|
|
716
|
-
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
734
|
+
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScArtifaxSidebarProps) => JSX.Element;
|
|
717
735
|
|
|
718
736
|
interface CatalogixNavItem {
|
|
719
737
|
id: string;
|
|
@@ -1981,4 +1999,4 @@ interface IScProfilePopupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1981
1999
|
*/
|
|
1982
2000
|
declare const ScProfilePopup: React$1.ForwardRefExoticComponent<IScProfilePopupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1983
2001
|
|
|
1984
|
-
export { type AppcardProduct, type ArtifaxMenuItem, type ArtifaxSection, 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 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 IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, 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, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, 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, 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, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, 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 SidebarConfig, type SidebarIconContext, type SidebarIconMap, type SidebarIconRenderer, type SidebarMenuItemConfig, type SidebarProduct, type SidebarProfileConfig, type SidebarResizeGestureResult, type SidebarResizeGestureState, type SidebarSectionConfig, StreamoidSidebar, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, formatSubAgentLabel, hasCollapsedMark, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
|
2002
|
+
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 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 IScPendingActionProps, type IScPhtogenixInviteProps, type IScPlanCardProps, type IScPlanComparisonProps, type IScPlanDetailsCardMobileProps, type IScPlanDetailsCardProps, type IScPopUpMenuProps, 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, type PlanComparisonRow, type PlanComparisonSection, type PlanFeatureSection, ProductCollapsedMark, ProductWordmark, SIDEBAR_RESIZE_THRESHOLD_PX, ScAccess, ScAppCard, ScAppCardForCopilot, ScAppCardV3, ScAppField, ScAppListingCard, type ScAppSwitchItem, ScAppSwitchPanel, ScAppSwitchRow, type ScAppSwitchSystemItem, 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, 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, ScPendingAction, ScPhtogenixInvite, ScPlanCard, ScPlanComparison, ScPlanDetailsCard, ScPlanDetailsCardMobile, ScPopUpMenu, 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, StreamoidSidebar, type StreamoidSidebarPreferenceOptions, type StreamoidSidebarPreferenceState, type StreamoidSidebarProps, type StreamoidThemePreferenceOptions, type StreamoidThemePreferenceState, StreamoidWorkspaceSwitcher, type StreamoidWorkspaceSwitcherProps, UsageHistoryMobile, type WorkspaceSwitcherConfig, type WorkspaceSwitcherItem, advanceSidebarResizeGesture, formatSubAgentLabel, hasCollapsedMark, useStreamoidSidebarPreference, useStreamoidThemePreference };
|
package/dist/index.js
CHANGED
|
@@ -4288,6 +4288,7 @@ function StreamoidSidebar({
|
|
|
4288
4288
|
expandedLogo,
|
|
4289
4289
|
collapsedLogo,
|
|
4290
4290
|
profile,
|
|
4291
|
+
appIdentity,
|
|
4291
4292
|
versionText = "v1.0.0",
|
|
4292
4293
|
toggleIcon,
|
|
4293
4294
|
toggleInProfile = false,
|
|
@@ -4542,7 +4543,26 @@ function StreamoidSidebar({
|
|
|
4542
4543
|
}
|
|
4543
4544
|
) : null,
|
|
4544
4545
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(HDivider, { edgeToEdge: true }),
|
|
4545
|
-
|
|
4546
|
+
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4547
|
+
"button",
|
|
4548
|
+
{
|
|
4549
|
+
type: "button",
|
|
4550
|
+
className: "flex items-center shrink-0 w-full",
|
|
4551
|
+
style: {
|
|
4552
|
+
minWidth: 0,
|
|
4553
|
+
minHeight: 48,
|
|
4554
|
+
padding: "var(--spacing-md) var(--spacing-xl)",
|
|
4555
|
+
border: 0,
|
|
4556
|
+
borderRadius: "var(--radius-xl)",
|
|
4557
|
+
background: "transparent",
|
|
4558
|
+
color: "inherit",
|
|
4559
|
+
cursor: "pointer"
|
|
4560
|
+
},
|
|
4561
|
+
onClick: appIdentity.onClick,
|
|
4562
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
4563
|
+
children: appIdentity.content
|
|
4564
|
+
}
|
|
4565
|
+
) : profile ? toggleInProfile && !effectiveHideFooter ? (
|
|
4546
4566
|
/* Footer row: profile and collapse toggle are two SEPARATE
|
|
4547
4567
|
interactive units side by side (own rounded hover bg each). */
|
|
4548
4568
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
@@ -4857,7 +4877,26 @@ function StreamoidSidebar({
|
|
|
4857
4877
|
}
|
|
4858
4878
|
) : null,
|
|
4859
4879
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(HDivider, { edgeToEdge: true }),
|
|
4860
|
-
|
|
4880
|
+
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4881
|
+
"button",
|
|
4882
|
+
{
|
|
4883
|
+
type: "button",
|
|
4884
|
+
className: "flex items-center justify-center shrink-0",
|
|
4885
|
+
style: {
|
|
4886
|
+
width: 48,
|
|
4887
|
+
height: 48,
|
|
4888
|
+
padding: "var(--spacing-md)",
|
|
4889
|
+
border: 0,
|
|
4890
|
+
borderRadius: "var(--radius-3xl)",
|
|
4891
|
+
background: "transparent",
|
|
4892
|
+
color: "inherit",
|
|
4893
|
+
cursor: "pointer"
|
|
4894
|
+
},
|
|
4895
|
+
onClick: appIdentity.onClick,
|
|
4896
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
4897
|
+
children: appIdentity.content
|
|
4898
|
+
}
|
|
4899
|
+
) : profile ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4861
4900
|
"div",
|
|
4862
4901
|
{
|
|
4863
4902
|
className: "flex items-center justify-center shrink-0 cursor-pointer",
|
|
@@ -5235,7 +5274,7 @@ function ScWorkspaceAccountMenu({
|
|
|
5235
5274
|
Icon,
|
|
5236
5275
|
{
|
|
5237
5276
|
size: 20,
|
|
5238
|
-
color: selected ? "
|
|
5277
|
+
color: selected ? "#fff" : mutedIcon
|
|
5239
5278
|
}
|
|
5240
5279
|
)
|
|
5241
5280
|
},
|
|
@@ -5469,6 +5508,8 @@ var ScArtifaxSidebar_default = {
|
|
|
5469
5508
|
sectionChevron: "ScArtifaxSidebar_sectionChevron",
|
|
5470
5509
|
profileRow: "ScArtifaxSidebar_profileRow",
|
|
5471
5510
|
profileMain: "ScArtifaxSidebar_profileMain",
|
|
5511
|
+
appIdentityMain: "ScArtifaxSidebar_appIdentityMain",
|
|
5512
|
+
appIdentityCollapsed: "ScArtifaxSidebar_appIdentityCollapsed",
|
|
5472
5513
|
profileRowCollapsed: "ScArtifaxSidebar_profileRowCollapsed",
|
|
5473
5514
|
profileAvatar: "ScArtifaxSidebar_profileAvatar",
|
|
5474
5515
|
profileInfo: "ScArtifaxSidebar_profileInfo",
|
|
@@ -5536,6 +5577,7 @@ var ScArtifaxSidebar = ({
|
|
|
5536
5577
|
creditWarning,
|
|
5537
5578
|
assistantCta,
|
|
5538
5579
|
profile,
|
|
5580
|
+
appIdentity,
|
|
5539
5581
|
toggleIcon,
|
|
5540
5582
|
hideToggle = false,
|
|
5541
5583
|
openSections,
|
|
@@ -5642,7 +5684,16 @@ var ScArtifaxSidebar = ({
|
|
|
5642
5684
|
assistantCta ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ScAskAgentSlot, { cta: assistantCta }) : null,
|
|
5643
5685
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ScHDivider, {}),
|
|
5644
5686
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
5645
|
-
|
|
5687
|
+
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5688
|
+
"button",
|
|
5689
|
+
{
|
|
5690
|
+
type: "button",
|
|
5691
|
+
className: ScArtifaxSidebar_default.appIdentityMain,
|
|
5692
|
+
onClick: appIdentity.onClick,
|
|
5693
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
5694
|
+
children: appIdentity.content
|
|
5695
|
+
}
|
|
5696
|
+
) : profile ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5646
5697
|
"button",
|
|
5647
5698
|
{
|
|
5648
5699
|
type: "button",
|
|
@@ -5708,7 +5759,16 @@ var ScArtifaxSidebar = ({
|
|
|
5708
5759
|
assistantCta ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
|
|
5709
5760
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ScHDivider, {}),
|
|
5710
5761
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
5711
|
-
|
|
5762
|
+
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5763
|
+
"button",
|
|
5764
|
+
{
|
|
5765
|
+
type: "button",
|
|
5766
|
+
className: ScArtifaxSidebar_default.appIdentityCollapsed,
|
|
5767
|
+
onClick: appIdentity.onClick,
|
|
5768
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
5769
|
+
children: appIdentity.content
|
|
5770
|
+
}
|
|
5771
|
+
) : profile ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5712
5772
|
"button",
|
|
5713
5773
|
{
|
|
5714
5774
|
type: "button",
|
package/dist/index.mjs
CHANGED
|
@@ -4124,6 +4124,7 @@ function StreamoidSidebar({
|
|
|
4124
4124
|
expandedLogo,
|
|
4125
4125
|
collapsedLogo,
|
|
4126
4126
|
profile,
|
|
4127
|
+
appIdentity,
|
|
4127
4128
|
versionText = "v1.0.0",
|
|
4128
4129
|
toggleIcon,
|
|
4129
4130
|
toggleInProfile = false,
|
|
@@ -4378,7 +4379,26 @@ function StreamoidSidebar({
|
|
|
4378
4379
|
}
|
|
4379
4380
|
) : null,
|
|
4380
4381
|
/* @__PURE__ */ jsx49(HDivider, { edgeToEdge: true }),
|
|
4381
|
-
|
|
4382
|
+
appIdentity ? /* @__PURE__ */ jsx49(
|
|
4383
|
+
"button",
|
|
4384
|
+
{
|
|
4385
|
+
type: "button",
|
|
4386
|
+
className: "flex items-center shrink-0 w-full",
|
|
4387
|
+
style: {
|
|
4388
|
+
minWidth: 0,
|
|
4389
|
+
minHeight: 48,
|
|
4390
|
+
padding: "var(--spacing-md) var(--spacing-xl)",
|
|
4391
|
+
border: 0,
|
|
4392
|
+
borderRadius: "var(--radius-xl)",
|
|
4393
|
+
background: "transparent",
|
|
4394
|
+
color: "inherit",
|
|
4395
|
+
cursor: "pointer"
|
|
4396
|
+
},
|
|
4397
|
+
onClick: appIdentity.onClick,
|
|
4398
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
4399
|
+
children: appIdentity.content
|
|
4400
|
+
}
|
|
4401
|
+
) : profile ? toggleInProfile && !effectiveHideFooter ? (
|
|
4382
4402
|
/* Footer row: profile and collapse toggle are two SEPARATE
|
|
4383
4403
|
interactive units side by side (own rounded hover bg each). */
|
|
4384
4404
|
/* @__PURE__ */ jsxs40(
|
|
@@ -4693,7 +4713,26 @@ function StreamoidSidebar({
|
|
|
4693
4713
|
}
|
|
4694
4714
|
) : null,
|
|
4695
4715
|
/* @__PURE__ */ jsx49(HDivider, { edgeToEdge: true }),
|
|
4696
|
-
|
|
4716
|
+
appIdentity ? /* @__PURE__ */ jsx49(
|
|
4717
|
+
"button",
|
|
4718
|
+
{
|
|
4719
|
+
type: "button",
|
|
4720
|
+
className: "flex items-center justify-center shrink-0",
|
|
4721
|
+
style: {
|
|
4722
|
+
width: 48,
|
|
4723
|
+
height: 48,
|
|
4724
|
+
padding: "var(--spacing-md)",
|
|
4725
|
+
border: 0,
|
|
4726
|
+
borderRadius: "var(--radius-3xl)",
|
|
4727
|
+
background: "transparent",
|
|
4728
|
+
color: "inherit",
|
|
4729
|
+
cursor: "pointer"
|
|
4730
|
+
},
|
|
4731
|
+
onClick: appIdentity.onClick,
|
|
4732
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
4733
|
+
children: appIdentity.content
|
|
4734
|
+
}
|
|
4735
|
+
) : profile ? /* @__PURE__ */ jsx49(
|
|
4697
4736
|
"div",
|
|
4698
4737
|
{
|
|
4699
4738
|
className: "flex items-center justify-center shrink-0 cursor-pointer",
|
|
@@ -5080,7 +5119,7 @@ function ScWorkspaceAccountMenu({
|
|
|
5080
5119
|
Icon,
|
|
5081
5120
|
{
|
|
5082
5121
|
size: 20,
|
|
5083
|
-
color: selected ? "
|
|
5122
|
+
color: selected ? "#fff" : mutedIcon
|
|
5084
5123
|
}
|
|
5085
5124
|
)
|
|
5086
5125
|
},
|
|
@@ -5317,6 +5356,8 @@ var ScArtifaxSidebar_default = {
|
|
|
5317
5356
|
sectionChevron: "ScArtifaxSidebar_sectionChevron",
|
|
5318
5357
|
profileRow: "ScArtifaxSidebar_profileRow",
|
|
5319
5358
|
profileMain: "ScArtifaxSidebar_profileMain",
|
|
5359
|
+
appIdentityMain: "ScArtifaxSidebar_appIdentityMain",
|
|
5360
|
+
appIdentityCollapsed: "ScArtifaxSidebar_appIdentityCollapsed",
|
|
5320
5361
|
profileRowCollapsed: "ScArtifaxSidebar_profileRowCollapsed",
|
|
5321
5362
|
profileAvatar: "ScArtifaxSidebar_profileAvatar",
|
|
5322
5363
|
profileInfo: "ScArtifaxSidebar_profileInfo",
|
|
@@ -5384,6 +5425,7 @@ var ScArtifaxSidebar = ({
|
|
|
5384
5425
|
creditWarning,
|
|
5385
5426
|
assistantCta,
|
|
5386
5427
|
profile,
|
|
5428
|
+
appIdentity,
|
|
5387
5429
|
toggleIcon,
|
|
5388
5430
|
hideToggle = false,
|
|
5389
5431
|
openSections,
|
|
@@ -5490,7 +5532,16 @@ var ScArtifaxSidebar = ({
|
|
|
5490
5532
|
assistantCta ? /* @__PURE__ */ jsx51(ScAskAgentSlot, { cta: assistantCta }) : null,
|
|
5491
5533
|
/* @__PURE__ */ jsx51(ScHDivider, {}),
|
|
5492
5534
|
/* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileRow, children: [
|
|
5493
|
-
|
|
5535
|
+
appIdentity ? /* @__PURE__ */ jsx51(
|
|
5536
|
+
"button",
|
|
5537
|
+
{
|
|
5538
|
+
type: "button",
|
|
5539
|
+
className: ScArtifaxSidebar_default.appIdentityMain,
|
|
5540
|
+
onClick: appIdentity.onClick,
|
|
5541
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
5542
|
+
children: appIdentity.content
|
|
5543
|
+
}
|
|
5544
|
+
) : profile ? /* @__PURE__ */ jsxs42(
|
|
5494
5545
|
"button",
|
|
5495
5546
|
{
|
|
5496
5547
|
type: "button",
|
|
@@ -5556,7 +5607,16 @@ var ScArtifaxSidebar = ({
|
|
|
5556
5607
|
assistantCta ? /* @__PURE__ */ jsx51(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
|
|
5557
5608
|
/* @__PURE__ */ jsx51(ScHDivider, {}),
|
|
5558
5609
|
/* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
|
|
5559
|
-
|
|
5610
|
+
appIdentity ? /* @__PURE__ */ jsx51(
|
|
5611
|
+
"button",
|
|
5612
|
+
{
|
|
5613
|
+
type: "button",
|
|
5614
|
+
className: ScArtifaxSidebar_default.appIdentityCollapsed,
|
|
5615
|
+
onClick: appIdentity.onClick,
|
|
5616
|
+
"aria-label": appIdentity.ariaLabel ?? "Switch apps",
|
|
5617
|
+
children: appIdentity.content
|
|
5618
|
+
}
|
|
5619
|
+
) : profile ? /* @__PURE__ */ jsx51(
|
|
5560
5620
|
"button",
|
|
5561
5621
|
{
|
|
5562
5622
|
type: "button",
|