@harborclient/sdk 1.6.2 → 1.6.4

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/components/Button/index.d.ts +4 -0
  3. package/dist/components/Button/index.d.ts.map +1 -1
  4. package/dist/components/Button/index.js +22 -8
  5. package/dist/components/CodeEditor/index.d.ts +6 -3
  6. package/dist/components/CodeEditor/index.d.ts.map +1 -1
  7. package/dist/components/CodeEditor/index.js +10 -3
  8. package/dist/components/RowActionsMenu/index.d.ts +7 -1
  9. package/dist/components/RowActionsMenu/index.d.ts.map +1 -1
  10. package/dist/components/RowActionsMenu/index.js +3 -2
  11. package/dist/components/Sidebar/index.d.ts +10 -2
  12. package/dist/components/Sidebar/index.d.ts.map +1 -1
  13. package/dist/components/Sidebar/index.js +2 -2
  14. package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts +5 -1
  15. package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts.map +1 -1
  16. package/dist/components/SidebarItem/SidebarEnvironmentItem.js +6 -6
  17. package/dist/components/SidebarItem/SidebarItem.d.ts +10 -1
  18. package/dist/components/SidebarItem/SidebarItem.d.ts.map +1 -1
  19. package/dist/components/SidebarItem/SidebarItem.js +3 -3
  20. package/dist/components/SidebarItem/SidebarListbox.d.ts +3 -1
  21. package/dist/components/SidebarItem/SidebarListbox.d.ts.map +1 -1
  22. package/dist/components/SidebarItem/SidebarListbox.js +49 -2
  23. package/dist/components/SidebarItem/SidebarTree.d.ts +2 -0
  24. package/dist/components/SidebarItem/SidebarTree.d.ts.map +1 -1
  25. package/dist/components/SidebarItem/SidebarTree.js +48 -1
  26. package/dist/components/SidebarItem/SortableSidebarItem.d.ts +15 -5
  27. package/dist/components/SidebarItem/SortableSidebarItem.d.ts.map +1 -1
  28. package/dist/components/SidebarItem/SortableSidebarItem.js +8 -7
  29. package/dist/components/SidebarItem/index.d.ts +1 -0
  30. package/dist/components/SidebarItem/index.d.ts.map +1 -1
  31. package/dist/components/SidebarItem/index.js +1 -0
  32. package/dist/components/SidebarItem/sidebarCompositeNavigation.d.ts +100 -0
  33. package/dist/components/SidebarItem/sidebarCompositeNavigation.d.ts.map +1 -0
  34. package/dist/components/SidebarItem/sidebarCompositeNavigation.js +246 -0
  35. package/dist/components/SidebarItem/sidebarListOption.d.ts +4 -0
  36. package/dist/components/SidebarItem/sidebarListOption.d.ts.map +1 -1
  37. package/dist/components/SidebarItem/sidebarListOption.js +11 -0
  38. package/dist/components/SidebarRail/SidebarRailItem.d.ts +1 -1
  39. package/dist/components/SidebarRail/SidebarRailItem.d.ts.map +1 -1
  40. package/dist/components/SidebarRail/SidebarRailItem.js +2 -1
  41. package/dist/components/SidebarRail/focusSidebarRailPanel.d.ts +31 -0
  42. package/dist/components/SidebarRail/focusSidebarRailPanel.d.ts.map +1 -0
  43. package/dist/components/SidebarRail/focusSidebarRailPanel.js +73 -0
  44. package/dist/components/SidebarRail/index.d.ts +21 -5
  45. package/dist/components/SidebarRail/index.d.ts.map +1 -1
  46. package/dist/components/SidebarRail/index.js +62 -7
  47. package/dist/components/SidebarSection/SectionItem.d.ts.map +1 -1
  48. package/dist/components/SidebarSection/SectionItem.js +3 -1
  49. package/dist/components/SidebarSection/index.d.ts.map +1 -1
  50. package/dist/components/SidebarSection/index.js +1 -1
  51. package/dist/components/index.d.ts +3 -2
  52. package/dist/components/index.d.ts.map +1 -1
  53. package/dist/components/index.js +2 -1
  54. package/dist/styles.css +16 -0
  55. package/dist/ui/codeEditorSettings.d.ts +1 -1
  56. package/dist/ui/codeEditorSettings.js +2 -2
  57. package/package.json +1 -1
@@ -1,6 +1,15 @@
1
1
  import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';
2
2
  import { type SidebarRailItemData } from './SidebarRailItem.js';
3
3
  export type { SidebarRailItemData };
4
+ export { focusSidebarRailPanel, focusSidebarRailTabFromPanel, sidebarRailTabId } from './focusSidebarRailPanel.js';
5
+ /**
6
+ * Which side of the rail the associated tab panel sits on in the reading order.
7
+ *
8
+ * `after` (default): panel is to the right of a left-placed rail — ArrowRight
9
+ * enters the panel. `before`: panel is to the left of a right-placed rail —
10
+ * ArrowLeft enters the panel.
11
+ */
12
+ export type SidebarRailPanelSide = 'after' | 'before';
4
13
  interface Props extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'aria-label' | 'onSelect'> {
5
14
  /**
6
15
  * Navigation entries rendered top-to-bottom in the rail.
@@ -34,6 +43,11 @@ interface Props extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'aria
34
43
  * Id of the sidebar panel controlled by each rail tab (`aria-controls`).
35
44
  */
36
45
  panelId?: string;
46
+ /**
47
+ * Where the tab panel sits relative to the rail. Controls which horizontal
48
+ * arrow key moves focus into the panel.
49
+ */
50
+ panelSide?: SidebarRailPanelSide;
37
51
  /**
38
52
  * Optional content rendered in the rail footer above the expand/collapse
39
53
  * button (for example Team Hub connection avatars). Callers that need a
@@ -48,10 +62,12 @@ interface Props extends Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'aria
48
62
  * Collapsed shows icons only; expanded shows icons with labels. Each item is a
49
63
  * full-width tab section with an edge-to-edge separator after it (including the
50
64
  * last item, so the list has a bottom border before the footer); active chrome
51
- * uses the sidebar-rail-active token. Items form a vertical tablist with
52
- * roving tabindex; Arrow keys move focus and selection; Home/End jump to the
53
- * first/last item. Optional footer content and expand/collapse sit outside the
54
- * tablist as their own Tab stops.
65
+ * uses the sidebar-rail-active token. Items form a vertical tablist with roving
66
+ * tabindex (APG tabs): ArrowUp/Down and Home/End move focus and selection; Tab
67
+ * leaves the tablist for the next page control (typically the tab panel). Enter,
68
+ * Space, and the horizontal arrow toward the panel select the mode (if needed)
69
+ * and move focus into the linked tabpanel. Optional footer content and
70
+ * expand/collapse sit outside the tablist as their own Tab stops.
55
71
  */
56
- export declare function SidebarRail({ items, activeId, onSelect, expanded, onExpandedChange, ariaLabel, panelId, footer, className, ...props }: Props): JSX.Element;
72
+ export declare function SidebarRail({ items, activeId, onSelect, expanded, onExpandedChange, ariaLabel, panelId, panelSide, footer, className, ...props }: Props): JSX.Element;
57
73
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarRail/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EAER,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAmB,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGjF,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAQpC,UAAU,KAAM,SAAQ,IAAI,CAC1B,wBAAwB,CAAC,KAAK,CAAC,EAC/B,UAAU,GAAG,YAAY,GAAG,UAAU,CACvC;IACC;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAE7B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAE9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,SAA2B,EAC3B,OAAO,EACP,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA0GrB"}
1
+ {"version":3,"file":"index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GAAG,GAAG,CAAC,OAAO,CA0HrB"}
@@ -5,23 +5,67 @@ import { FaIcon } from '../FaIcon/index.js';
5
5
  import { cn, resolveTabListKeyAction } from '../utils.js';
6
6
  import { SidebarRailItem } from './SidebarRailItem.js';
7
7
  import { SidebarRailSeparator } from './SidebarRailSeparator.js';
8
+ import { focusSidebarRailPanel } from './focusSidebarRailPanel.js';
9
+ export { focusSidebarRailPanel, focusSidebarRailTabFromPanel, sidebarRailTabId } from './focusSidebarRailPanel.js';
8
10
  /**
9
11
  * Shared focus-visible outline for the expand/collapse control.
10
12
  */
11
13
  const railExpandFocusVisible = 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-accent';
14
+ /**
15
+ * Resolves the key that moves focus from a rail tab into its tab panel.
16
+ *
17
+ * @param panelSide - Panel placement relative to the rail.
18
+ * @returns ArrowRight when the panel is after the rail; ArrowLeft otherwise.
19
+ */
20
+ function panelEntryKey(panelSide) {
21
+ return panelSide === 'before' ? 'ArrowLeft' : 'ArrowRight';
22
+ }
23
+ /**
24
+ * Selects a rail mode if needed, then moves focus into the linked tab panel.
25
+ *
26
+ * Uses a double `requestAnimationFrame` when selection changes so remounted
27
+ * panel content is present before querying focusable descendants.
28
+ *
29
+ * @param panelId - DOM id of the tab panel.
30
+ * @param itemId - Rail item to select before focusing.
31
+ * @param isAlreadyActive - Whether `itemId` is already the active selection.
32
+ * @param onSelect - Selection callback for inactive tabs.
33
+ */
34
+ function selectAndFocusPanel(panelId, itemId, isAlreadyActive, onSelect) {
35
+ /**
36
+ * Focuses the first interactive control (or the panel itself) inside the tabpanel.
37
+ */
38
+ const focusPanel = () => {
39
+ const panel = document.getElementById(panelId);
40
+ if (panel instanceof HTMLElement) {
41
+ focusSidebarRailPanel(panel);
42
+ }
43
+ };
44
+ if (!isAlreadyActive) {
45
+ onSelect(itemId);
46
+ requestAnimationFrame(() => {
47
+ requestAnimationFrame(focusPanel);
48
+ });
49
+ return;
50
+ }
51
+ requestAnimationFrame(focusPanel);
52
+ }
12
53
  /**
13
54
  * Vertical activity rail for switching sidebar modes.
14
55
  *
15
56
  * Collapsed shows icons only; expanded shows icons with labels. Each item is a
16
57
  * full-width tab section with an edge-to-edge separator after it (including the
17
58
  * last item, so the list has a bottom border before the footer); active chrome
18
- * uses the sidebar-rail-active token. Items form a vertical tablist with
19
- * roving tabindex; Arrow keys move focus and selection; Home/End jump to the
20
- * first/last item. Optional footer content and expand/collapse sit outside the
21
- * tablist as their own Tab stops.
59
+ * uses the sidebar-rail-active token. Items form a vertical tablist with roving
60
+ * tabindex (APG tabs): ArrowUp/Down and Home/End move focus and selection; Tab
61
+ * leaves the tablist for the next page control (typically the tab panel). Enter,
62
+ * Space, and the horizontal arrow toward the panel select the mode (if needed)
63
+ * and move focus into the linked tabpanel. Optional footer content and
64
+ * expand/collapse sit outside the tablist as their own Tab stops.
22
65
  */
23
- export function SidebarRail({ items, activeId, onSelect, expanded, onExpandedChange, ariaLabel = 'Sidebar modes', panelId, footer, className, ...props }) {
66
+ export function SidebarRail({ items, activeId, onSelect, expanded, onExpandedChange, ariaLabel = 'Sidebar modes', panelId, panelSide = 'after', footer, className, ...props }) {
24
67
  const itemRefs = useRef([]);
68
+ const entryKey = panelEntryKey(panelSide);
25
69
  /**
26
70
  * Focuses the item button at the given index when it exists.
27
71
  *
@@ -32,12 +76,23 @@ export function SidebarRail({ items, activeId, onSelect, expanded, onExpandedCha
32
76
  itemRefs.current[clamped]?.focus();
33
77
  }, []);
34
78
  /**
35
- * Handles tablist keyboard navigation: arrows/Home/End move focus and select.
79
+ * Handles tablist keyboard navigation: arrows/Home/End move focus and select;
80
+ * Enter/Space and the panel-entry arrow move focus into the linked tabpanel.
36
81
  *
37
82
  * @param event - Keyboard event from the focused item.
38
83
  * @param index - Index of the item that received the event.
39
84
  */
40
85
  const handleItemKeyDown = useCallback((event, index) => {
86
+ const item = items[index];
87
+ if (item == null) {
88
+ return;
89
+ }
90
+ if (panelId != null &&
91
+ (event.key === 'Enter' || event.key === ' ' || event.key === entryKey)) {
92
+ event.preventDefault();
93
+ selectAndFocusPanel(panelId, item.id, item.id === activeId, onSelect);
94
+ return;
95
+ }
41
96
  const nextIndex = resolveTabListKeyAction(event.key, index, items.length);
42
97
  if (nextIndex === null) {
43
98
  return;
@@ -49,7 +104,7 @@ export function SidebarRail({ items, activeId, onSelect, expanded, onExpandedCha
49
104
  }
50
105
  onSelect(nextItem.id);
51
106
  focusItemAt(nextIndex);
52
- }, [focusItemAt, items, onSelect]);
107
+ }, [activeId, entryKey, focusItemAt, items, onSelect, panelId]);
53
108
  /**
54
109
  * Toggles the rail between collapsed and expanded density.
55
110
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SectionItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarSection/SectionItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,GAAG,EAA4B,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAO3F,UAAU,mBAAmB;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,KAAM,SAAQ,mBAAmB;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAiFD,eAAO,MAAM,gBAAgB,EAIb,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"SectionItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarSection/SectionItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,GAAG,EAA4B,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAO3F,UAAU,mBAAmB;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,KAAM,SAAQ,mBAAmB;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAsFD,eAAO,MAAM,gBAAgB,EAIb,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC,OAAO,CAAC"}
@@ -9,13 +9,15 @@ import { SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS } from '../Sideb
9
9
  * Header chevron inset and title gap follow shared `SIDEBAR_CHEVRON_*` spacing.
10
10
  * Right-side controls use `hc-sidebar-section-header-actions` so host CSS can
11
11
  * apply a shared fixed square size across filter, clear, and add buttons.
12
+ * The title uses `hc-sidebar-section-label` with `tabIndex={-1}` so host
13
+ * shortcuts can move focus onto the section label without adding it to tab order.
12
14
  */
13
15
  const SectionItem = memo(function SectionItem({ forwardedRef, itemRef, state, toggle, title, children, onAdd, addLabel, headerActions, flushBody = false }) {
14
16
  const { buttonProps, panelProps } = useAccordionItem({ state, toggle });
15
17
  const [transitionStyle, panelRef] = useHeightTransition(state);
16
18
  const itemElementRef = useMergeRef(forwardedRef, itemRef);
17
19
  const { status, isMounted, isEnter } = state;
18
- return (_jsxs("div", { ref: itemElementRef, className: "mb-1", children: [_jsxs("div", { className: `hc-sidebar-section-header flex min-h-8 items-center justify-between gap-2 border-b border-sidebar-rail-separator bg-sidebar-section py-1 pl-0.5 ${flushBody ? 'mb-0' : 'mb-1'}`, children: [_jsxs("button", { ...buttonProps, type: "button", className: "app-no-drag inline-flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 border-none bg-transparent p-0 text-left", children: [_jsx("span", { className: SIDEBAR_CHEVRON_SLOT_CLASS, children: _jsx(FaIcon, { icon: isEnter ? faChevronDown : faChevronRight, className: `${SIDEBAR_CHEVRON_ICON_CLASS} text-sidebar-section-text` }) }), _jsx("h2", { className: "m-0 text-[15px] leading-none font-medium tracking-wide text-sidebar-section-text uppercase", children: title })] }), (headerActions || onAdd) && (_jsxs("div", { className: "hc-sidebar-section-header-actions flex shrink-0 items-center gap-1", children: [headerActions, onAdd ? (_jsx("button", { type: "button", className: "hc-sidebar-add-button app-no-drag inline-flex shrink-0 cursor-pointer items-center justify-center border-none bg-transparent text-muted hover:bg-selection hover:text-text focus-visible:bg-selection focus-visible:text-text", title: addLabel ?? 'Add', "aria-label": addLabel ?? 'Add', onClick: onAdd, children: _jsx(FaIcon, { icon: faPlus, className: "h-3.5 w-3.5" }) })) : null] }))] }), isMounted ? (_jsx("div", { style: {
20
+ return (_jsxs("div", { ref: itemElementRef, className: "mb-1", children: [_jsxs("div", { className: `hc-sidebar-section-header flex min-h-8 items-center justify-between gap-2 border-b border-sidebar-rail-separator bg-sidebar-section py-1 pl-0.5 ${flushBody ? 'mb-0' : 'mb-1'}`, children: [_jsxs("button", { ...buttonProps, type: "button", className: "app-no-drag inline-flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 border-none bg-transparent p-0 text-left", children: [_jsx("span", { className: SIDEBAR_CHEVRON_SLOT_CLASS, children: _jsx(FaIcon, { icon: isEnter ? faChevronDown : faChevronRight, className: `${SIDEBAR_CHEVRON_ICON_CLASS} text-sidebar-section-text` }) }), _jsx("h2", { tabIndex: -1, className: "hc-sidebar-section-label m-0 text-[15px] leading-none font-medium tracking-wide text-sidebar-section-text uppercase", children: title })] }), (headerActions || onAdd) && (_jsxs("div", { className: "hc-sidebar-section-header-actions flex shrink-0 items-center gap-1", children: [headerActions, onAdd ? (_jsx("button", { type: "button", className: "hc-sidebar-add-button app-no-drag inline-flex shrink-0 cursor-pointer items-center justify-center border-none bg-transparent text-muted hover:bg-selection hover:text-text focus-visible:bg-selection focus-visible:text-text", title: addLabel ?? 'Add', "aria-label": addLabel ?? 'Add', onClick: onAdd, children: _jsx(FaIcon, { icon: faPlus, className: "h-3.5 w-3.5" }) })) : null] }))] }), isMounted ? (_jsx("div", { style: {
19
21
  display: status === 'exited' ? 'none' : undefined,
20
22
  ...transitionStyle
21
23
  }, className: "transition-[height] duration-200 ease-out motion-reduce:transition-none", children: _jsx("div", { ...panelProps, ref: panelRef, children: children }) })) : null] }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarSection/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAYrD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,KAAK;IACb;;OAEG;IACH,QAAQ,EAAE,oBAAo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AE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAmDpF"}
@@ -38,5 +38,5 @@ export function SidebarSections({ sections, expanded, onToggle }) {
38
38
  }
39
39
  }
40
40
  }, [expanded, stateMap, toggle]);
41
- return (_jsx(AccordionRoot, { providerValue: providerValue, children: sections.map((section) => (_jsx("nav", { "aria-label": section.ariaLabel ?? section.title, children: _jsx(SidebarSection, { itemKey: section.key, title: section.title, initialEntered: section.initialEntered ?? true, onAdd: section.onAdd, addLabel: section.addLabel, headerActions: section.headerActions, flushBody: section.flushBody, children: section.children }) }, section.key))) }));
41
+ return (_jsx(AccordionRoot, { providerValue: providerValue, children: sections.map((section) => (_jsx("nav", { "aria-label": section.ariaLabel ?? section.title, "data-sidebar-section": section.key, children: _jsx(SidebarSection, { itemKey: section.key, title: section.title, initialEntered: section.initialEntered ?? true, onAdd: section.onAdd, addLabel: section.addLabel, headerActions: section.headerActions, flushBody: section.flushBody, children: section.children }) }, section.key))) }));
42
42
  }
@@ -73,7 +73,8 @@ export { screenshotCarouselImageFrameClassName, screenshotCarouselLightboxEnable
73
73
  export { SidebarSection, SidebarSections, type SidebarSectionConfig } from './SidebarSection/index.js';
74
74
  export { Sidebar, type SidebarSide } from './Sidebar/index.js';
75
75
  export { SidebarRail } from './SidebarRail/index.js';
76
- export type { SidebarRailItemData } from './SidebarRail/index.js';
76
+ export type { SidebarRailItemData, SidebarRailPanelSide } from './SidebarRail/index.js';
77
+ export { focusSidebarRailPanel, focusSidebarRailTabFromPanel, sidebarRailTabId } from './SidebarRail/index.js';
77
78
  export { DEFAULT_HEIGHT, MIN_HEIGHT, footerPanelClassName, footerPanelCloseButtonClassName, getFooterPanelMaxSize } from './Resizable/footerPanelUtils.js';
78
79
  export { ResourceList, ResourceListRow, ResourceListPrimary, ResourceListEmptyItem } from './ResourceList/index.js';
79
80
  export { RoundButton } from './RoundButton/index.js';
@@ -112,6 +113,6 @@ export { cleanVariables, resolveTabListKeyAction } from './utils.js';
112
113
  export type { TabListKeyOptions } from './utils.js';
113
114
  export { useDialogFocus, getFocusableElements } from './useDialogFocus.js';
114
115
  export { segment, segmentGroup, tabItem } from './classes.js';
115
- export { SidebarItem, SidebarListbox, SidebarList, SidebarTree, SidebarTreeGroup, handleSidebarOptionKeyDown, type SidebarItemListboxOption, type SidebarItemTreeItem, SortableSidebarItem, stopSortableDragPointerDown, SidebarMarkerDot, SidebarBadge, sourceRow, METHOD_CLASSES, methodBadgeClass, documentIconClass, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS, SidebarMethodBadge, SidebarStatusDot, SidebarStatusMarker, SidebarRequestItem, SidebarDocumentItem, SidebarFolderItem, SidebarRunItem, SidebarHistoryItem, SidebarEnvironmentItem, SidebarWorkspaceItem, SidebarWebsiteItem, SidebarCommitItem, type SidebarItemSortableConfig, type SidebarBadgeVariant, type SidebarCommitPushStatus } from './SidebarItem/index.js';
116
+ export { SidebarItem, SidebarListbox, SidebarList, SidebarTree, SidebarTreeGroup, handleSidebarOptionKeyDown, focusSidebarCompositeItem, handleSidebarCompositeContainerKeyDown, isSidebarRowActionsMenuKey, openSidebarRowActionsMenu, querySidebarCompositeItems, type SidebarItemListboxOption, type SidebarItemTreeItem, SortableSidebarItem, stopSortableDragPointerDown, SidebarMarkerDot, SidebarBadge, sourceRow, METHOD_CLASSES, methodBadgeClass, documentIconClass, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS, SidebarMethodBadge, SidebarStatusDot, SidebarStatusMarker, SidebarRequestItem, SidebarDocumentItem, SidebarFolderItem, SidebarRunItem, SidebarHistoryItem, SidebarEnvironmentItem, SidebarWorkspaceItem, SidebarWebsiteItem, SidebarCommitItem, type SidebarItemSortableConfig, type SidebarBadgeVariant, type SidebarCommitPushStatus } from './SidebarItem/index.js';
116
117
  export type { FormDataPart, FormDataPartType, HttpMethod, KeyValue, RequestProtocol, Variable } from '../types.js';
117
118
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,KAAK,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mCAAmC,EACnC,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0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AClB,iBAAiB,EACjB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,MAAM,aAAa,CAAC"}
@@ -54,6 +54,7 @@ export { screenshotCarouselImageFrameClassName, screenshotCarouselLightboxEnable
54
54
  export { SidebarSection, SidebarSections } from './SidebarSection/index.js';
55
55
  export { Sidebar } from './Sidebar/index.js';
56
56
  export { SidebarRail } from './SidebarRail/index.js';
57
+ export { focusSidebarRailPanel, focusSidebarRailTabFromPanel, sidebarRailTabId } from './SidebarRail/index.js';
57
58
  export { DEFAULT_HEIGHT, MIN_HEIGHT, footerPanelClassName, footerPanelCloseButtonClassName, getFooterPanelMaxSize } from './Resizable/footerPanelUtils.js';
58
59
  export { ResourceList, ResourceListRow, ResourceListPrimary, ResourceListEmptyItem } from './ResourceList/index.js';
59
60
  export { RoundButton } from './RoundButton/index.js';
@@ -81,4 +82,4 @@ export { VisibilityMenu } from './VisibilityMenu/index.js';
81
82
  export { cleanVariables, resolveTabListKeyAction } from './utils.js';
82
83
  export { useDialogFocus, getFocusableElements } from './useDialogFocus.js';
83
84
  export { segment, segmentGroup, tabItem } from './classes.js';
84
- export { SidebarItem, SidebarListbox, SidebarList, SidebarTree, SidebarTreeGroup, handleSidebarOptionKeyDown, SortableSidebarItem, stopSortableDragPointerDown, SidebarMarkerDot, SidebarBadge, sourceRow, METHOD_CLASSES, methodBadgeClass, documentIconClass, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS, SidebarMethodBadge, SidebarStatusDot, SidebarStatusMarker, SidebarRequestItem, SidebarDocumentItem, SidebarFolderItem, SidebarRunItem, SidebarHistoryItem, SidebarEnvironmentItem, SidebarWorkspaceItem, SidebarWebsiteItem, SidebarCommitItem } from './SidebarItem/index.js';
85
+ export { SidebarItem, SidebarListbox, SidebarList, SidebarTree, SidebarTreeGroup, handleSidebarOptionKeyDown, focusSidebarCompositeItem, handleSidebarCompositeContainerKeyDown, isSidebarRowActionsMenuKey, openSidebarRowActionsMenu, querySidebarCompositeItems, SortableSidebarItem, stopSortableDragPointerDown, SidebarMarkerDot, SidebarBadge, sourceRow, METHOD_CLASSES, methodBadgeClass, documentIconClass, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS, SidebarMethodBadge, SidebarStatusDot, SidebarStatusMarker, SidebarRequestItem, SidebarDocumentItem, SidebarFolderItem, SidebarRunItem, SidebarHistoryItem, SidebarEnvironmentItem, SidebarWorkspaceItem, SidebarWebsiteItem, SidebarCommitItem } from './SidebarItem/index.js';
package/dist/styles.css CHANGED
@@ -48,11 +48,27 @@
48
48
  * with document content and never overflows.
49
49
  */
50
50
  .hc-code-editor {
51
+ position: relative;
51
52
  display: flex;
52
53
  flex-direction: column;
53
54
  min-height: 0;
54
55
  }
55
56
 
57
+ /**
58
+ * Inset focus ring while CodeMirror content (or another descendant) is focused.
59
+ * Drawn as an overlay border so it is not clipped by OverlayScrollbars hosts and
60
+ * is not overridden by Tailwind `shadow-*` utilities on the same element.
61
+ */
62
+ .hc-code-editor:focus-within::after {
63
+ content: '';
64
+ position: absolute;
65
+ inset: 0;
66
+ z-index: 5;
67
+ border: 2px solid var(--mac-accent);
68
+ border-radius: inherit;
69
+ pointer-events: none;
70
+ }
71
+
56
72
  .hc-code-editor > div:first-child {
57
73
  display: flex;
58
74
  flex: 1 1 0%;
@@ -29,7 +29,7 @@ export declare function isCodeEditorTheme(value: unknown): value is CodeEditorTh
29
29
  */
30
30
  export declare function normalizeCodeEditorSetup(input: Partial<CodeEditorSetup> | undefined): CodeEditorSetup;
31
31
  /**
32
- * Normalizes a theme identifier, falling back to Monokai when unknown.
32
+ * Normalizes a theme identifier, falling back to Nord when unknown.
33
33
  *
34
34
  * @param value - Raw theme value from storage or input.
35
35
  */
@@ -51,12 +51,12 @@ export function normalizeCodeEditorSetup(input) {
51
51
  };
52
52
  }
53
53
  /**
54
- * Normalizes a theme identifier, falling back to Monokai when unknown.
54
+ * Normalizes a theme identifier, falling back to Nord when unknown.
55
55
  *
56
56
  * @param value - Raw theme value from storage or input.
57
57
  */
58
58
  export function normalizeCodeEditorTheme(value) {
59
- return isCodeEditorTheme(value) ? value : 'monokai';
59
+ return isCodeEditorTheme(value) ? value : 'nord';
60
60
  }
61
61
  /**
62
62
  * Parses a raw font size into pixel units, clamping below the minimum.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harborclient/sdk",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "TypeScript SDK for HarborClient development.",
5
5
  "keywords": [
6
6
  "harborclient",