@streamoid/ui 0.6.38 → 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/index.css +11 -0
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +15 -7
- package/dist/index.mjs +15 -7
- package/package.json +1 -1
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
|
@@ -1061,14 +1061,22 @@ interface IScAppSidebarProps {
|
|
|
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 ScAppSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
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;
|
|
1070
1078
|
/** @deprecated Use {@link ScAppSidebar}. */
|
|
1071
|
-
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
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;
|
|
1072
1080
|
/** @deprecated Use {@link AppSidebarMenuItem}. */
|
|
1073
1081
|
type ArtifaxMenuItem = AppSidebarMenuItem;
|
|
1074
1082
|
/** @deprecated Use {@link AppSidebarSection}. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1061,14 +1061,22 @@ interface IScAppSidebarProps {
|
|
|
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 ScAppSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
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;
|
|
1070
1078
|
/** @deprecated Use {@link ScAppSidebar}. */
|
|
1071
|
-
declare const ScArtifaxSidebar: ({ expanded, onToggle, resizable, onExpandedChange, sections, iconMap, activeItemId, onItemSelect, expandedLogo, collapsedLogo, creditWarning, assistantCta, profile, appIdentity, toggleIcon, hideToggle, openSections, onSectionToggle, className, style, }: IScAppSidebarProps) => JSX.Element;
|
|
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;
|
|
1072
1080
|
/** @deprecated Use {@link AppSidebarMenuItem}. */
|
|
1073
1081
|
type ArtifaxMenuItem = AppSidebarMenuItem;
|
|
1074
1082
|
/** @deprecated Use {@link AppSidebarSection}. */
|
package/dist/index.js
CHANGED
|
@@ -6251,7 +6251,8 @@ var ScArtifaxSidebar_default = {
|
|
|
6251
6251
|
creditWarningSlot: "ScArtifaxSidebar_creditWarningSlot",
|
|
6252
6252
|
footerToggle: "ScArtifaxSidebar_footerToggle",
|
|
6253
6253
|
footerCollapsed: "ScArtifaxSidebar_footerCollapsed",
|
|
6254
|
-
placeholderIcon: "ScArtifaxSidebar_placeholderIcon"
|
|
6254
|
+
placeholderIcon: "ScArtifaxSidebar_placeholderIcon",
|
|
6255
|
+
versionText: "ScArtifaxSidebar_versionText"
|
|
6255
6256
|
};
|
|
6256
6257
|
|
|
6257
6258
|
// src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
|
|
@@ -6313,6 +6314,9 @@ var ScAppSidebar = ({
|
|
|
6313
6314
|
appIdentity,
|
|
6314
6315
|
toggleIcon,
|
|
6315
6316
|
hideToggle = false,
|
|
6317
|
+
preFooterContent,
|
|
6318
|
+
versionText,
|
|
6319
|
+
isMobile = false,
|
|
6316
6320
|
openSections,
|
|
6317
6321
|
onSectionToggle,
|
|
6318
6322
|
className,
|
|
@@ -6409,6 +6413,7 @@ var ScAppSidebar = ({
|
|
|
6409
6413
|
] }, section.id);
|
|
6410
6414
|
})
|
|
6411
6415
|
] }),
|
|
6416
|
+
preFooterContent,
|
|
6412
6417
|
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6413
6418
|
CreditWarningBanner,
|
|
6414
6419
|
{
|
|
@@ -6420,8 +6425,8 @@ var ScAppSidebar = ({
|
|
|
6420
6425
|
}
|
|
6421
6426
|
) }) : null,
|
|
6422
6427
|
assistantCta ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScAskAgentSlot, { cta: assistantCta }) : null,
|
|
6423
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScHDivider, {}),
|
|
6424
|
-
/* @__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: [
|
|
6425
6430
|
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6426
6431
|
"button",
|
|
6427
6432
|
{
|
|
@@ -6456,7 +6461,8 @@ var ScAppSidebar = ({
|
|
|
6456
6461
|
children: resolveToggleIcon2(toggleIcon, true)
|
|
6457
6462
|
}
|
|
6458
6463
|
) : null
|
|
6459
|
-
] })
|
|
6464
|
+
] }) : null,
|
|
6465
|
+
versionText ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: ScArtifaxSidebar_default.versionText, children: versionText }) : null
|
|
6460
6466
|
]
|
|
6461
6467
|
}
|
|
6462
6468
|
)
|
|
@@ -6491,6 +6497,7 @@ var ScAppSidebar = ({
|
|
|
6491
6497
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
|
|
6492
6498
|
] }, section.id))
|
|
6493
6499
|
] }),
|
|
6500
|
+
preFooterContent,
|
|
6494
6501
|
creditWarning ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6495
6502
|
CreditWarningBanner,
|
|
6496
6503
|
{
|
|
@@ -6502,8 +6509,8 @@ var ScAppSidebar = ({
|
|
|
6502
6509
|
}
|
|
6503
6510
|
) }) : null,
|
|
6504
6511
|
assistantCta ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
|
|
6505
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ScHDivider, {}),
|
|
6506
|
-
/* @__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: [
|
|
6507
6514
|
appIdentity ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
6508
6515
|
"button",
|
|
6509
6516
|
{
|
|
@@ -6533,7 +6540,8 @@ var ScAppSidebar = ({
|
|
|
6533
6540
|
children: resolveToggleIcon2(toggleIcon, false)
|
|
6534
6541
|
}
|
|
6535
6542
|
) : null
|
|
6536
|
-
] })
|
|
6543
|
+
] }) : null,
|
|
6544
|
+
versionText ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: ScArtifaxSidebar_default.versionText, children: versionText }) : null
|
|
6537
6545
|
]
|
|
6538
6546
|
}
|
|
6539
6547
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -6083,7 +6083,8 @@ 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
|
|
@@ -6145,6 +6146,9 @@ var ScAppSidebar = ({
|
|
|
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 ScAppSidebar = ({
|
|
|
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 ScAppSidebar = ({
|
|
|
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 ScAppSidebar = ({
|
|
|
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 ScAppSidebar = ({
|
|
|
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 ScAppSidebar = ({
|
|
|
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 ScAppSidebar = ({
|
|
|
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
|
)
|