@streamoid/ui 0.6.21 → 0.6.22

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.mjs CHANGED
@@ -215,6 +215,43 @@ function ScStreamoidMascot({
215
215
 
216
216
  // src/SC-AppSwitch/ScAppSwitchPanel.tsx
217
217
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
218
+ var STREAMOID_CHANGELOG_URL = "https://doc.clickup.com/3414296/p/h/3868r-26044/13a22b6f796b2c8";
219
+ var STREAMOID_STATUS_PAGE_URL = "https://status.streamoid.com/";
220
+ function openExternal(url) {
221
+ if (typeof window !== "undefined") {
222
+ window.open(url, "_blank", "noopener,noreferrer");
223
+ }
224
+ }
225
+ function createStreamoidAppSwitchUtilities(utilities) {
226
+ const before = (action) => () => {
227
+ utilities.onClose?.();
228
+ action();
229
+ };
230
+ return [
231
+ {
232
+ key: "changelog",
233
+ label: "Changelog",
234
+ trailingText: utilities.appVersion,
235
+ external: true,
236
+ onSelect: before(
237
+ () => openExternal(utilities.changelogUrl ?? STREAMOID_CHANGELOG_URL)
238
+ )
239
+ },
240
+ {
241
+ key: "status",
242
+ label: "Status Page",
243
+ external: true,
244
+ onSelect: before(
245
+ () => openExternal(utilities.statusPageUrl ?? STREAMOID_STATUS_PAGE_URL)
246
+ )
247
+ },
248
+ {
249
+ key: "support",
250
+ label: "Help and Support",
251
+ onSelect: before(utilities.onHelpAndSupport)
252
+ }
253
+ ];
254
+ }
218
255
  var T = {
219
256
  primary: "var(--alias-text---icons-primary, #f5f5f5)",
220
257
  secondary: "var(--alias-text---icons-secondary, #dadada)",
@@ -433,12 +470,14 @@ var ScAppSwitchSystemRow = ({ item }) => {
433
470
  };
434
471
  var ScAppSwitchPanel = ({
435
472
  apps,
436
- systemItems = [],
473
+ systemItems,
474
+ utilities,
437
475
  systemLabel,
438
476
  className,
439
477
  style
440
478
  }) => {
441
479
  const ordered = [...apps].sort((a, b) => orderIndex(a) - orderIndex(b));
480
+ const resolvedSystemItems = systemItems ?? (utilities ? createStreamoidAppSwitchUtilities(utilities) : []);
442
481
  return /* @__PURE__ */ jsxs4(
443
482
  "div",
444
483
  {
@@ -453,7 +492,7 @@ var ScAppSwitchPanel = ({
453
492
  },
454
493
  children: [
455
494
  ordered.map((app) => /* @__PURE__ */ jsx5(ScAppSwitchRow, { item: app }, app.key)),
456
- systemItems.length > 0 ? /* @__PURE__ */ jsxs4(
495
+ resolvedSystemItems.length > 0 ? /* @__PURE__ */ jsxs4(
457
496
  "div",
458
497
  {
459
498
  style: {
@@ -478,7 +517,7 @@ var ScAppSwitchPanel = ({
478
517
  children: systemLabel
479
518
  }
480
519
  ) : null,
481
- systemItems.map((item) => /* @__PURE__ */ jsx5(ScAppSwitchSystemRow, { item }, item.key))
520
+ resolvedSystemItems.map((item) => /* @__PURE__ */ jsx5(ScAppSwitchSystemRow, { item }, item.key))
482
521
  ]
483
522
  }
484
523
  ) : null
@@ -4184,6 +4223,7 @@ function StreamoidSidebar({
4184
4223
  /* @__PURE__ */ jsxs40(
4185
4224
  "div",
4186
4225
  {
4226
+ "data-streamoid-sidebar-card": true,
4187
4227
  className: "flex flex-col h-full relative shrink-0",
4188
4228
  style: {
4189
4229
  backgroundColor: "var(--alias-surface-base)",
@@ -4566,6 +4606,7 @@ function StreamoidSidebar({
4566
4606
  /* @__PURE__ */ jsxs40(
4567
4607
  "div",
4568
4608
  {
4609
+ "data-streamoid-sidebar-card": true,
4569
4610
  className: "flex flex-col h-full items-center justify-center relative shrink-0",
4570
4611
  style: {
4571
4612
  backgroundColor: "var(--alias-surface-base)",
@@ -5330,10 +5371,78 @@ function useStreamoidSidebarPreference(options = {}) {
5330
5371
  return { expanded, setExpanded, toggle };
5331
5372
  }
5332
5373
 
5374
+ // src/SC-SidebarShell/useStreamoidSidebarPopoverPosition.ts
5375
+ import {
5376
+ useLayoutEffect,
5377
+ useState as useState11
5378
+ } from "react";
5379
+ var VIEWPORT_INSET = 16;
5380
+ function useStreamoidSidebarPopoverPosition(sidebarRef, {
5381
+ placement,
5382
+ width,
5383
+ gap = 8,
5384
+ inset = 24
5385
+ }) {
5386
+ const [position, setPosition] = useState11({
5387
+ position: "fixed",
5388
+ left: 0,
5389
+ top: 0,
5390
+ width,
5391
+ maxWidth: `calc(100vw - ${VIEWPORT_INSET * 2}px)`,
5392
+ maxHeight: `calc(100dvh - ${VIEWPORT_INSET * 2}px)`,
5393
+ visibility: "hidden"
5394
+ });
5395
+ useLayoutEffect(() => {
5396
+ const sidebar = sidebarRef.current;
5397
+ if (!sidebar || typeof window === "undefined") return;
5398
+ const card = (sidebar.matches("[data-streamoid-sidebar-card]") ? sidebar : sidebar.querySelector(
5399
+ "[data-streamoid-sidebar-card]"
5400
+ )) ?? sidebar;
5401
+ const measure = () => {
5402
+ const bounds = card.getBoundingClientRect();
5403
+ const availableWidth = Math.max(0, window.innerWidth - VIEWPORT_INSET * 2);
5404
+ const panelWidth = Math.min(width, availableWidth);
5405
+ const preferredLeft = bounds.right + gap;
5406
+ const maximumLeft = Math.max(
5407
+ VIEWPORT_INSET,
5408
+ window.innerWidth - panelWidth - VIEWPORT_INSET
5409
+ );
5410
+ const left = Math.max(
5411
+ VIEWPORT_INSET,
5412
+ Math.min(preferredLeft, maximumLeft)
5413
+ );
5414
+ const vertical = placement === "top-right" ? { top: Math.max(VIEWPORT_INSET, bounds.top + inset) } : {
5415
+ bottom: Math.max(
5416
+ VIEWPORT_INSET,
5417
+ window.innerHeight - bounds.bottom + inset
5418
+ )
5419
+ };
5420
+ setPosition({
5421
+ position: "fixed",
5422
+ left,
5423
+ width: panelWidth,
5424
+ maxWidth: `calc(100vw - ${VIEWPORT_INSET * 2}px)`,
5425
+ maxHeight: `calc(100dvh - ${VIEWPORT_INSET * 2}px)`,
5426
+ visibility: "visible",
5427
+ ...vertical
5428
+ });
5429
+ };
5430
+ measure();
5431
+ window.addEventListener("resize", measure);
5432
+ const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(measure);
5433
+ observer?.observe(card);
5434
+ return () => {
5435
+ window.removeEventListener("resize", measure);
5436
+ observer?.disconnect();
5437
+ };
5438
+ }, [gap, inset, placement, sidebarRef, width]);
5439
+ return position;
5440
+ }
5441
+
5333
5442
  // src/SC-Artifax-Sidebar/ScArtifaxSidebar.tsx
5334
5443
  import {
5335
5444
  useCallback as useCallback2,
5336
- useState as useState11
5445
+ useState as useState12
5337
5446
  } from "react";
5338
5447
 
5339
5448
  // src/SC-Artifax-Sidebar/ScArtifaxSidebar.module.css
@@ -5441,7 +5550,7 @@ var ScArtifaxSidebar = ({
5441
5550
  }
5442
5551
  };
5443
5552
  const isControlled = !!openSections;
5444
- const [internalOpen, setInternalOpen] = useState11(
5553
+ const [internalOpen, setInternalOpen] = useState12(
5445
5554
  () => {
5446
5555
  const init = {};
5447
5556
  sections.forEach((s) => {
@@ -5493,81 +5602,88 @@ var ScArtifaxSidebar = ({
5493
5602
  onExpandedChange: changeExpanded
5494
5603
  }
5495
5604
  ) : null,
5496
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.container + " " + ScArtifaxSidebar_default.expanded, children: [
5497
- /* @__PURE__ */ jsx51("div", { "aria-hidden": "true", className: ScArtifaxSidebar_default.borderOverlayExpanded }),
5498
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.body, children: [
5499
- expandedLogo ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.logoUnitExpanded, children: expandedLogo }) : null,
5500
- sections.map((section, idx) => {
5501
- const open = section.label ? section.collapsible !== false ? isSectionOpen(section.id) : true : true;
5502
- const showHeader = !!section.label;
5503
- const canToggle = showHeader && section.collapsible !== false;
5504
- return /* @__PURE__ */ jsxs42("div", { children: [
5505
- idx > 0 ? /* @__PURE__ */ jsx51(ScHDivider, {}) : null,
5506
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.sectionContainer, children: [
5507
- showHeader ? /* @__PURE__ */ jsx51(
5508
- SectionHeader2,
5509
- {
5510
- label: section.label,
5511
- open,
5512
- onToggle: canToggle ? () => handleSectionToggle(section.id) : void 0
5513
- }
5514
- ) : null,
5515
- open ? section.items.map(
5516
- (item) => renderMenuItem2(item, section.id)
5517
- ) : null
5518
- ] })
5519
- ] }, section.id);
5520
- })
5521
- ] }),
5522
- creditWarning ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx51(
5523
- CreditWarningBanner,
5524
- {
5525
- availableCredits: creditWarning.availableCredits,
5526
- remainingPct: creditWarning.remainingPct,
5527
- level: creditWarning.level ?? "danger",
5528
- onBuyCredits: creditWarning.onBuyCredits,
5529
- expanded: true
5530
- }
5531
- ) }) : null,
5532
- assistantCta ? /* @__PURE__ */ jsx51(ScAskAgentSlot, { cta: assistantCta }) : null,
5533
- /* @__PURE__ */ jsx51(ScHDivider, {}),
5534
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileRow, children: [
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(
5545
- "button",
5546
- {
5547
- type: "button",
5548
- className: ScArtifaxSidebar_default.profileMain,
5549
- onClick: profile.onClick,
5550
- children: [
5551
- /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar }),
5552
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileInfo, children: [
5553
- /* @__PURE__ */ jsx51("span", { className: ScArtifaxSidebar_default.profileName, children: profile.name }),
5554
- profile.subtitle ? /* @__PURE__ */ jsx51("span", { className: ScArtifaxSidebar_default.profileSubtitle, children: profile.subtitle }) : null
5555
- ] })
5556
- ]
5557
- }
5558
- ) : /* @__PURE__ */ jsx51("span", { className: ScArtifaxSidebar_default.profileMain, "aria-hidden": "true" }),
5559
- !hideToggle ? /* @__PURE__ */ jsx51(
5560
- "button",
5561
- {
5562
- type: "button",
5563
- className: ScArtifaxSidebar_default.footerToggle,
5564
- onClick: onToggle,
5565
- "aria-label": "Collapse sidebar",
5566
- children: resolveToggleIcon2(toggleIcon, true)
5567
- }
5568
- ) : null
5569
- ] })
5570
- ] })
5605
+ /* @__PURE__ */ jsxs42(
5606
+ "div",
5607
+ {
5608
+ "data-streamoid-sidebar-card": true,
5609
+ className: ScArtifaxSidebar_default.container + " " + ScArtifaxSidebar_default.expanded,
5610
+ children: [
5611
+ /* @__PURE__ */ jsx51("div", { "aria-hidden": "true", className: ScArtifaxSidebar_default.borderOverlayExpanded }),
5612
+ /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.body, children: [
5613
+ expandedLogo ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.logoUnitExpanded, children: expandedLogo }) : null,
5614
+ sections.map((section, idx) => {
5615
+ const open = section.label ? section.collapsible !== false ? isSectionOpen(section.id) : true : true;
5616
+ const showHeader = !!section.label;
5617
+ const canToggle = showHeader && section.collapsible !== false;
5618
+ return /* @__PURE__ */ jsxs42("div", { children: [
5619
+ idx > 0 ? /* @__PURE__ */ jsx51(ScHDivider, {}) : null,
5620
+ /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.sectionContainer, children: [
5621
+ showHeader ? /* @__PURE__ */ jsx51(
5622
+ SectionHeader2,
5623
+ {
5624
+ label: section.label,
5625
+ open,
5626
+ onToggle: canToggle ? () => handleSectionToggle(section.id) : void 0
5627
+ }
5628
+ ) : null,
5629
+ open ? section.items.map(
5630
+ (item) => renderMenuItem2(item, section.id)
5631
+ ) : null
5632
+ ] })
5633
+ ] }, section.id);
5634
+ })
5635
+ ] }),
5636
+ creditWarning ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx51(
5637
+ CreditWarningBanner,
5638
+ {
5639
+ availableCredits: creditWarning.availableCredits,
5640
+ remainingPct: creditWarning.remainingPct,
5641
+ level: creditWarning.level ?? "danger",
5642
+ onBuyCredits: creditWarning.onBuyCredits,
5643
+ expanded: true
5644
+ }
5645
+ ) }) : null,
5646
+ assistantCta ? /* @__PURE__ */ jsx51(ScAskAgentSlot, { cta: assistantCta }) : null,
5647
+ /* @__PURE__ */ jsx51(ScHDivider, {}),
5648
+ /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileRow, children: [
5649
+ appIdentity ? /* @__PURE__ */ jsx51(
5650
+ "button",
5651
+ {
5652
+ type: "button",
5653
+ className: ScArtifaxSidebar_default.appIdentityMain,
5654
+ onClick: appIdentity.onClick,
5655
+ "aria-label": appIdentity.ariaLabel ?? "Switch apps",
5656
+ children: appIdentity.content
5657
+ }
5658
+ ) : profile ? /* @__PURE__ */ jsxs42(
5659
+ "button",
5660
+ {
5661
+ type: "button",
5662
+ className: ScArtifaxSidebar_default.profileMain,
5663
+ onClick: profile.onClick,
5664
+ children: [
5665
+ /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar }),
5666
+ /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.profileInfo, children: [
5667
+ /* @__PURE__ */ jsx51("span", { className: ScArtifaxSidebar_default.profileName, children: profile.name }),
5668
+ profile.subtitle ? /* @__PURE__ */ jsx51("span", { className: ScArtifaxSidebar_default.profileSubtitle, children: profile.subtitle }) : null
5669
+ ] })
5670
+ ]
5671
+ }
5672
+ ) : /* @__PURE__ */ jsx51("span", { className: ScArtifaxSidebar_default.profileMain, "aria-hidden": "true" }),
5673
+ !hideToggle ? /* @__PURE__ */ jsx51(
5674
+ "button",
5675
+ {
5676
+ type: "button",
5677
+ className: ScArtifaxSidebar_default.footerToggle,
5678
+ onClick: onToggle,
5679
+ "aria-label": "Collapse sidebar",
5680
+ children: resolveToggleIcon2(toggleIcon, true)
5681
+ }
5682
+ ) : null
5683
+ ] })
5684
+ ]
5685
+ }
5686
+ )
5571
5687
  ]
5572
5688
  }
5573
5689
  );
@@ -5585,66 +5701,73 @@ var ScArtifaxSidebar = ({
5585
5701
  onExpandedChange: changeExpanded
5586
5702
  }
5587
5703
  ) : null,
5588
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.container + " " + ScArtifaxSidebar_default.collapsed, children: [
5589
- /* @__PURE__ */ jsx51("div", { "aria-hidden": "true", className: ScArtifaxSidebar_default.borderOverlayCollapsed }),
5590
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.body + " " + ScArtifaxSidebar_default.bodyCollapsed, children: [
5591
- collapsedLogo ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.logoUnitCollapsed, children: collapsedLogo }) : null,
5592
- sections.map((section, idx) => /* @__PURE__ */ jsxs42("div", { children: [
5593
- idx > 0 ? /* @__PURE__ */ jsx51(ScHDivider, {}) : null,
5594
- /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
5595
- ] }, section.id))
5596
- ] }),
5597
- creditWarning ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx51(
5598
- CreditWarningBanner,
5599
- {
5600
- availableCredits: creditWarning.availableCredits,
5601
- remainingPct: creditWarning.remainingPct,
5602
- level: creditWarning.level ?? "danger",
5603
- onBuyCredits: creditWarning.onBuyCredits,
5604
- expanded: false
5605
- }
5606
- ) }) : null,
5607
- assistantCta ? /* @__PURE__ */ jsx51(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
5608
- /* @__PURE__ */ jsx51(ScHDivider, {}),
5609
- /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
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(
5620
- "button",
5621
- {
5622
- type: "button",
5623
- className: ScArtifaxSidebar_default.profileRowCollapsed,
5624
- onClick: profile.onClick,
5625
- "aria-label": profile.name,
5626
- children: /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar })
5627
- }
5628
- ) : null,
5629
- !hideToggle ? /* @__PURE__ */ jsx51(
5630
- "button",
5631
- {
5632
- type: "button",
5633
- className: ScArtifaxSidebar_default.footerToggle,
5634
- onClick: onToggle,
5635
- "aria-label": "Expand sidebar",
5636
- children: resolveToggleIcon2(toggleIcon, false)
5637
- }
5638
- ) : null
5639
- ] })
5640
- ] })
5704
+ /* @__PURE__ */ jsxs42(
5705
+ "div",
5706
+ {
5707
+ "data-streamoid-sidebar-card": true,
5708
+ className: ScArtifaxSidebar_default.container + " " + ScArtifaxSidebar_default.collapsed,
5709
+ children: [
5710
+ /* @__PURE__ */ jsx51("div", { "aria-hidden": "true", className: ScArtifaxSidebar_default.borderOverlayCollapsed }),
5711
+ /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.body + " " + ScArtifaxSidebar_default.bodyCollapsed, children: [
5712
+ collapsedLogo ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.logoUnitCollapsed, children: collapsedLogo }) : null,
5713
+ sections.map((section, idx) => /* @__PURE__ */ jsxs42("div", { children: [
5714
+ idx > 0 ? /* @__PURE__ */ jsx51(ScHDivider, {}) : null,
5715
+ /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.sectionContainerCollapsed, children: section.items.map((item) => renderMenuItem2(item, section.id)) })
5716
+ ] }, section.id))
5717
+ ] }),
5718
+ creditWarning ? /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.creditWarningSlot, children: /* @__PURE__ */ jsx51(
5719
+ CreditWarningBanner,
5720
+ {
5721
+ availableCredits: creditWarning.availableCredits,
5722
+ remainingPct: creditWarning.remainingPct,
5723
+ level: creditWarning.level ?? "danger",
5724
+ onBuyCredits: creditWarning.onBuyCredits,
5725
+ expanded: false
5726
+ }
5727
+ ) }) : null,
5728
+ assistantCta ? /* @__PURE__ */ jsx51(ScAskAgentSlot, { cta: assistantCta, collapsed: true }) : null,
5729
+ /* @__PURE__ */ jsx51(ScHDivider, {}),
5730
+ /* @__PURE__ */ jsxs42("div", { className: ScArtifaxSidebar_default.footerCollapsed, children: [
5731
+ appIdentity ? /* @__PURE__ */ jsx51(
5732
+ "button",
5733
+ {
5734
+ type: "button",
5735
+ className: ScArtifaxSidebar_default.appIdentityCollapsed,
5736
+ onClick: appIdentity.onClick,
5737
+ "aria-label": appIdentity.ariaLabel ?? "Switch apps",
5738
+ children: appIdentity.content
5739
+ }
5740
+ ) : profile ? /* @__PURE__ */ jsx51(
5741
+ "button",
5742
+ {
5743
+ type: "button",
5744
+ className: ScArtifaxSidebar_default.profileRowCollapsed,
5745
+ onClick: profile.onClick,
5746
+ "aria-label": profile.name,
5747
+ children: /* @__PURE__ */ jsx51("div", { className: ScArtifaxSidebar_default.profileAvatar, children: profile.avatar })
5748
+ }
5749
+ ) : null,
5750
+ !hideToggle ? /* @__PURE__ */ jsx51(
5751
+ "button",
5752
+ {
5753
+ type: "button",
5754
+ className: ScArtifaxSidebar_default.footerToggle,
5755
+ onClick: onToggle,
5756
+ "aria-label": "Expand sidebar",
5757
+ children: resolveToggleIcon2(toggleIcon, false)
5758
+ }
5759
+ ) : null
5760
+ ] })
5761
+ ]
5762
+ }
5763
+ )
5641
5764
  ]
5642
5765
  }
5643
5766
  );
5644
5767
  };
5645
5768
 
5646
5769
  // src/SC-Catalogix-Sidebar/ScCatalogixSidebar.tsx
5647
- import { useState as useState12 } from "react";
5770
+ import { useState as useState13 } from "react";
5648
5771
 
5649
5772
  // src/SC-Sidebar Switch menu/ScSidebarSwitchMenu.module.css
5650
5773
  var ScSidebarSwitchMenu_default = {
@@ -6292,7 +6415,7 @@ var ScCatalogixSidebar = ({
6292
6415
  className,
6293
6416
  style
6294
6417
  }) => {
6295
- const [appListOpen, setAppListOpen] = useState12(false);
6418
+ const [appListOpen, setAppListOpen] = useState13(false);
6296
6419
  const handleSwitch = () => {
6297
6420
  setAppListOpen((prev) => !prev);
6298
6421
  onLogoClick?.();
@@ -8152,7 +8275,7 @@ var ScWorkspaceCard = ({
8152
8275
  };
8153
8276
 
8154
8277
  // src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.tsx
8155
- import { useState as useState13 } from "react";
8278
+ import { useState as useState14 } from "react";
8156
8279
  import { SiconSwitch as SiconSwitch3, SiconSettings as SiconSettings3, SiconLogout as SiconLogout3 } from "@streamoid/icons";
8157
8280
 
8158
8281
  // src/SC-WorkspaceSwitchCard/ScWorkspaceSwitchCard.module.css
@@ -8193,7 +8316,7 @@ function ScWorkspaceSwitchCard({
8193
8316
  onSettings,
8194
8317
  onLeave
8195
8318
  }) {
8196
- const [internalHover, setInternalHover] = useState13(false);
8319
+ const [internalHover, setInternalHover] = useState14(false);
8197
8320
  const isHover = hover !== void 0 ? hover : internalHover;
8198
8321
  const isCurrent = type === "currentWS";
8199
8322
  const isOther = type === "otherWS";
@@ -8503,7 +8626,7 @@ var ScTabs = ({
8503
8626
  };
8504
8627
 
8505
8628
  // src/SC-Counter/ScCounter.tsx
8506
- import { useState as useState14 } from "react";
8629
+ import { useState as useState15 } from "react";
8507
8630
  import { SiconMinus, SiconPlus as SiconPlus2 } from "@streamoid/icons";
8508
8631
 
8509
8632
  // src/SC-Counter/ScCounter.module.css
@@ -8525,7 +8648,7 @@ var ScCounter = ({
8525
8648
  className,
8526
8649
  style
8527
8650
  }) => {
8528
- const [showInput, setShowInput] = useState14(false);
8651
+ const [showInput, setShowInput] = useState15(false);
8529
8652
  const set = (n) => {
8530
8653
  let v = n;
8531
8654
  if (min !== void 0) v = Math.max(min, v);
@@ -9620,7 +9743,7 @@ var ScSelectionList = ({
9620
9743
  };
9621
9744
 
9622
9745
  // src/SC-textArea/ScTextArea.tsx
9623
- import { useState as useState15 } from "react";
9746
+ import { useState as useState16 } from "react";
9624
9747
 
9625
9748
  // src/SC-textArea/ScTextArea.module.css
9626
9749
  var ScTextArea_default = {
@@ -9650,7 +9773,7 @@ var ScTextArea = ({
9650
9773
  style,
9651
9774
  ...props
9652
9775
  }) => {
9653
- const [focused, setFocused] = useState15(false);
9776
+ const [focused, setFocused] = useState16(false);
9654
9777
  const derivedState = state ?? (props.disabled ? "disabled" : focused ? "active" : (props.value !== void 0 ? String(props.value).length > 0 : false) ? "filled" : "default");
9655
9778
  const stateClass = ScTextArea_default["state-" + derivedState];
9656
9779
  const labelGroupClass = ScTextArea_default["label-group-" + (labelGroup || "none")];
@@ -9692,7 +9815,7 @@ var ScTextArea = ({
9692
9815
  };
9693
9816
 
9694
9817
  // src/SC-select/ScSelect.tsx
9695
- import { useState as useState16, useRef as useRef6, useEffect as useEffect7 } from "react";
9818
+ import { useState as useState17, useRef as useRef6, useEffect as useEffect7 } from "react";
9696
9819
 
9697
9820
  // src/SC-select/ScSelect.module.css
9698
9821
  var ScSelect_default = {
@@ -9729,7 +9852,7 @@ var ScSelect = (props) => {
9729
9852
  disabled = false,
9730
9853
  className
9731
9854
  } = props;
9732
- const [open, setOpen] = useState16(false);
9855
+ const [open, setOpen] = useState17(false);
9733
9856
  const rootRef = useRef6(null);
9734
9857
  useEffect7(() => {
9735
9858
  if (!open) return;
@@ -9979,7 +10102,7 @@ var ScFileField = (props) => {
9979
10102
  };
9980
10103
 
9981
10104
  // src/SC-mediaApproval/ScMediaApproval.tsx
9982
- import { useState as useState17, useEffect as useEffect8 } from "react";
10105
+ import { useState as useState18, useEffect as useEffect8 } from "react";
9983
10106
 
9984
10107
  // src/SC-mediaApproval/ScMediaApproval.module.css
9985
10108
  var ScMediaApproval_default = {
@@ -10026,8 +10149,8 @@ var ScMediaApproval = (props) => {
10026
10149
  className
10027
10150
  } = props;
10028
10151
  const total = mediaUrls.length;
10029
- const [index, setIndex] = useState17(activeIndex ?? 0);
10030
- const [mediaLoading, setMediaLoading] = useState17(false);
10152
+ const [index, setIndex] = useState18(activeIndex ?? 0);
10153
+ const [mediaLoading, setMediaLoading] = useState18(false);
10031
10154
  useEffect8(() => {
10032
10155
  if (typeof activeIndex === "number") {
10033
10156
  setIndex(activeIndex);
@@ -10288,7 +10411,7 @@ var ScMediaSelect = (props) => {
10288
10411
  };
10289
10412
 
10290
10413
  // src/SC-todoList/ScTodoList.tsx
10291
- import { useState as useState18 } from "react";
10414
+ import { useState as useState19 } from "react";
10292
10415
 
10293
10416
  // src/SC-todoList/ScTodoList.module.css
10294
10417
  var ScTodoList_default = {
@@ -10321,9 +10444,9 @@ var ScTodoList = ({
10321
10444
  addPlaceholder = "Add an item",
10322
10445
  className
10323
10446
  }) => {
10324
- const [editingId, setEditingId] = useState18(null);
10325
- const [editValue, setEditValue] = useState18("");
10326
- const [newValue, setNewValue] = useState18("");
10447
+ const [editingId, setEditingId] = useState19(null);
10448
+ const [editValue, setEditValue] = useState19("");
10449
+ const [newValue, setNewValue] = useState19("");
10327
10450
  const total = items.length;
10328
10451
  const completed = items.filter((i) => i.status === "completed").length;
10329
10452
  const startEditing = (item) => {
@@ -11675,6 +11798,8 @@ export {
11675
11798
  ProductCollapsedMark,
11676
11799
  ProductWordmark,
11677
11800
  SIDEBAR_RESIZE_THRESHOLD_PX,
11801
+ STREAMOID_CHANGELOG_URL,
11802
+ STREAMOID_STATUS_PAGE_URL,
11678
11803
  ScAccess,
11679
11804
  ScAppCard,
11680
11805
  ScAppCardForCopilot,
@@ -11804,8 +11929,10 @@ export {
11804
11929
  StreamoidWorkspaceSwitcher,
11805
11930
  UsageHistoryMobile,
11806
11931
  advanceSidebarResizeGesture,
11932
+ createStreamoidAppSwitchUtilities,
11807
11933
  formatSubAgentLabel,
11808
11934
  hasCollapsedMark,
11935
+ useStreamoidSidebarPopoverPosition,
11809
11936
  useStreamoidSidebarPreference,
11810
11937
  useStreamoidThemePreference
11811
11938
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamoid/ui",
3
- "version": "0.6.21",
3
+ "version": "0.6.22",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",