@harborclient/sdk 1.1.5 → 1.1.6

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 (64) hide show
  1. package/dist/components/Scrollbars/index.d.ts +34 -0
  2. package/dist/components/Scrollbars/index.d.ts.map +1 -0
  3. package/dist/components/Scrollbars/index.js +69 -0
  4. package/dist/components/Sidebar/index.d.ts +75 -0
  5. package/dist/components/Sidebar/index.d.ts.map +1 -0
  6. package/dist/components/Sidebar/index.js +27 -0
  7. package/dist/components/SidebarItem/SidebarColorDot.d.ts +22 -0
  8. package/dist/components/SidebarItem/SidebarColorDot.d.ts.map +1 -0
  9. package/dist/components/SidebarItem/SidebarColorDot.js +11 -0
  10. package/dist/components/SidebarItem/SidebarCommitItem.d.ts +31 -0
  11. package/dist/components/SidebarItem/SidebarCommitItem.d.ts.map +1 -0
  12. package/dist/components/SidebarItem/SidebarCommitItem.js +9 -0
  13. package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts +70 -0
  14. package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts.map +1 -0
  15. package/dist/components/SidebarItem/SidebarEnvironmentItem.js +21 -0
  16. package/dist/components/SidebarItem/SidebarFolderItem.d.ts +69 -0
  17. package/dist/components/SidebarItem/SidebarFolderItem.d.ts.map +1 -0
  18. package/dist/components/SidebarItem/SidebarFolderItem.js +21 -0
  19. package/dist/components/SidebarItem/SidebarHistoryItem.d.ts +58 -0
  20. package/dist/components/SidebarItem/SidebarHistoryItem.d.ts.map +1 -0
  21. package/dist/components/SidebarItem/SidebarHistoryItem.js +12 -0
  22. package/dist/components/SidebarItem/SidebarItem.d.ts +63 -0
  23. package/dist/components/SidebarItem/SidebarItem.d.ts.map +1 -0
  24. package/dist/components/SidebarItem/SidebarItem.js +17 -0
  25. package/dist/components/SidebarItem/SidebarMethodBadge.d.ts +17 -0
  26. package/dist/components/SidebarItem/SidebarMethodBadge.d.ts.map +1 -0
  27. package/dist/components/SidebarItem/SidebarMethodBadge.js +11 -0
  28. package/dist/components/SidebarItem/SidebarRequestItem.d.ts +143 -0
  29. package/dist/components/SidebarItem/SidebarRequestItem.d.ts.map +1 -0
  30. package/dist/components/SidebarItem/SidebarRequestItem.js +22 -0
  31. package/dist/components/SidebarItem/SidebarRunItem.d.ts +57 -0
  32. package/dist/components/SidebarItem/SidebarRunItem.d.ts.map +1 -0
  33. package/dist/components/SidebarItem/SidebarRunItem.js +13 -0
  34. package/dist/components/SidebarItem/SidebarStatusDot.d.ts +17 -0
  35. package/dist/components/SidebarItem/SidebarStatusDot.d.ts.map +1 -0
  36. package/dist/components/SidebarItem/SidebarStatusDot.js +8 -0
  37. package/dist/components/SidebarItem/SidebarStatusMarker.d.ts +21 -0
  38. package/dist/components/SidebarItem/SidebarStatusMarker.d.ts.map +1 -0
  39. package/dist/components/SidebarItem/SidebarStatusMarker.js +8 -0
  40. package/dist/components/SidebarItem/SidebarTabGroupItem.d.ts +51 -0
  41. package/dist/components/SidebarItem/SidebarTabGroupItem.d.ts.map +1 -0
  42. package/dist/components/SidebarItem/SidebarTabGroupItem.js +11 -0
  43. package/dist/components/SidebarItem/SortableSidebarItem.d.ts +35 -0
  44. package/dist/components/SidebarItem/SortableSidebarItem.d.ts.map +1 -0
  45. package/dist/components/SidebarItem/SortableSidebarItem.js +26 -0
  46. package/dist/components/SidebarItem/index.d.ts +16 -0
  47. package/dist/components/SidebarItem/index.d.ts.map +1 -0
  48. package/dist/components/SidebarItem/index.js +15 -0
  49. package/dist/components/SidebarItem/sidebarItemClasses.d.ts +27 -0
  50. package/dist/components/SidebarItem/sidebarItemClasses.d.ts.map +1 -0
  51. package/dist/components/SidebarItem/sidebarItemClasses.js +49 -0
  52. package/dist/components/SidebarItem/stopSortableDragPointerDown.d.ts +8 -0
  53. package/dist/components/SidebarItem/stopSortableDragPointerDown.d.ts.map +1 -0
  54. package/dist/components/SidebarItem/stopSortableDragPointerDown.js +8 -0
  55. package/dist/components/SidebarSection/SidebarSection.d.ts +43 -0
  56. package/dist/components/SidebarSection/SidebarSection.d.ts.map +1 -0
  57. package/dist/components/SidebarSection/SidebarSection.js +25 -0
  58. package/dist/components/SidebarSection/index.d.ts +65 -0
  59. package/dist/components/SidebarSection/index.d.ts.map +1 -0
  60. package/dist/components/SidebarSection/index.js +42 -0
  61. package/dist/components/index.d.ts +4 -0
  62. package/dist/components/index.d.ts.map +1 -1
  63. package/dist/components/index.js +4 -0
  64. package/package.json +7 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stopSortableDragPointerDown.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/stopSortableDragPointerDown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAE1E"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Stops pointer events from bubbling to the sortable row drag activator.
3
+ *
4
+ * @param event - Pointer event from a nested interactive control.
5
+ */
6
+ export function stopSortableDragPointerDown(event) {
7
+ event.stopPropagation();
8
+ }
@@ -0,0 +1,43 @@
1
+ import { type JSX, type ReactNode } from 'react';
2
+ interface SectionContentProps {
3
+ /**
4
+ * Section title shown in the header.
5
+ */
6
+ title: string;
7
+ /**
8
+ * Section body content.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Called when the add button is clicked.
13
+ */
14
+ onAdd?: () => void;
15
+ /**
16
+ * Accessible label for the add button.
17
+ */
18
+ addLabel?: string;
19
+ /**
20
+ * Optional action controls rendered in the header row (for example plugin header actions).
21
+ */
22
+ headerActions?: ReactNode;
23
+ /**
24
+ * When true, removes the margin below the header so body content sits flush against it.
25
+ */
26
+ flushBody?: boolean;
27
+ }
28
+ interface Props extends SectionContentProps {
29
+ /**
30
+ * Stable accordion item key shared with the sidebar sections provider.
31
+ */
32
+ itemKey: string;
33
+ /**
34
+ * Whether the section body starts expanded on first mount.
35
+ */
36
+ initialEntered: boolean;
37
+ }
38
+ /**
39
+ * Collapsible sidebar section backed by `@szhsin/react-accordion` with optional add action.
40
+ */
41
+ export declare function SidebarSection({ itemKey, title, initialEntered, children, onAdd, addLabel, headerActions, flushBody }: Props): JSX.Element;
42
+ export {};
43
+ //# sourceMappingURL=SidebarSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarSection.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarSection/SidebarSection.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,GAAG,EAA4B,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAG3F,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,UAAU,KAAM,SAAQ,mBAAmB;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAoFD;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,cAAc,EACd,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,aAAa,EACb,SAAS,EACV,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAcrB"}
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@harborclient/sdk/jsx-runtime";
2
+ import { faChevronDown, faChevronRight, faPlus } from '@fortawesome/free-solid-svg-icons';
3
+ import { useAccordionItem, useHeightTransition, useMergeRef, withAccordionItem } from '@szhsin/react-accordion';
4
+ import { memo } from 'react';
5
+ import { FaIcon } from '../FaIcon/index.js';
6
+ /**
7
+ * Renders the sidebar section header row and animated body panel.
8
+ */
9
+ const SectionItem = memo(function SectionItem({ forwardedRef, itemRef, state, toggle, title, children, onAdd, addLabel, headerActions, flushBody = false }) {
10
+ const { buttonProps, panelProps } = useAccordionItem({ state, toggle });
11
+ const [transitionStyle, panelRef] = useHeightTransition(state);
12
+ const itemElementRef = useMergeRef(forwardedRef, itemRef);
13
+ const { status, isMounted, isEnter } = state;
14
+ return (_jsxs("div", { ref: itemElementRef, className: "-mr-2 mb-1", children: [_jsxs("div", { className: `hc-sidebar-section-header bg-sidebar-section flex min-h-8 items-center justify-between gap-2 py-0.5 pr-2 ${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-1.5 border-none bg-transparent p-0 text-left", children: [_jsx("span", { className: "ms-2 inline-flex h-4 w-4 shrink-0 items-center justify-center", children: _jsx(FaIcon, { icon: isEnter ? faChevronDown : faChevronRight, className: "h-2 w-2 text-muted" }) }), _jsx("h2", { className: "m-0 text-[15px] leading-none font-medium tracking-wide text-muted uppercase", children: title })] }), (headerActions || onAdd) && (_jsxs("div", { className: "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-4 w-4" }) })) : null] }))] }), isMounted ? (_jsx("div", { style: {
15
+ display: status === 'exited' ? 'none' : undefined,
16
+ ...transitionStyle
17
+ }, className: "transition-[height] duration-200 ease-out motion-reduce:transition-none", children: _jsx("div", { ...panelProps, ref: panelRef, children: children }) })) : null] }));
18
+ });
19
+ const AccordionSection = withAccordionItem(SectionItem);
20
+ /**
21
+ * Collapsible sidebar section backed by `@szhsin/react-accordion` with optional add action.
22
+ */
23
+ export function SidebarSection({ itemKey, title, initialEntered, children, onAdd, addLabel, headerActions, flushBody }) {
24
+ return (_jsx(AccordionSection, { itemKey: itemKey, initialEntered: initialEntered, title: title, onAdd: onAdd, addLabel: addLabel, headerActions: headerActions, flushBody: flushBody, children: children }));
25
+ }
@@ -0,0 +1,65 @@
1
+ import { type JSX, type ReactNode } from 'react';
2
+ export { SidebarSection } from './SidebarSection.js';
3
+ /**
4
+ * Configuration for one collapsible sidebar section.
5
+ */
6
+ export interface SidebarSectionConfig {
7
+ /**
8
+ * Stable accordion key and React list key.
9
+ */
10
+ key: string;
11
+ /**
12
+ * Section title shown in the header.
13
+ */
14
+ title: string;
15
+ /**
16
+ * Accessible label for the section navigation landmark.
17
+ */
18
+ ariaLabel?: string;
19
+ /**
20
+ * Whether the section body starts expanded on first mount.
21
+ */
22
+ initialEntered?: boolean;
23
+ /**
24
+ * Called when the add button is clicked.
25
+ */
26
+ onAdd?: () => void;
27
+ /**
28
+ * Accessible label for the add button.
29
+ */
30
+ addLabel?: string;
31
+ /**
32
+ * Optional action controls rendered in the header row.
33
+ */
34
+ headerActions?: ReactNode;
35
+ /**
36
+ * When true, removes the margin below the header so body content sits flush against it.
37
+ */
38
+ flushBody?: boolean;
39
+ /**
40
+ * Section body content.
41
+ */
42
+ children: ReactNode;
43
+ }
44
+ interface Props {
45
+ /**
46
+ * Sections to render in order.
47
+ */
48
+ sections: SidebarSectionConfig[];
49
+ /**
50
+ * Controlled expanded state keyed by section key.
51
+ */
52
+ expanded?: Record<string, boolean>;
53
+ /**
54
+ * Called when a section is expanded or collapsed.
55
+ */
56
+ onToggle?: (key: string, expanded: boolean) => void;
57
+ }
58
+ /**
59
+ * Accordion-backed container for collapsible sidebar sections.
60
+ *
61
+ * Owns the accordion provider so host apps only need to supply section config
62
+ * and optional controlled `expanded` / `onToggle` persistence hooks.
63
+ */
64
+ export declare function SidebarSections({ sections, expanded, onToggle }: Props): JSX.Element;
65
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,oBAAoB,EAAE,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,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,CA+CpF"}
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx } from "@harborclient/sdk/jsx-runtime";
2
+ import { ControlledAccordion, useAccordionProvider } from '@szhsin/react-accordion';
3
+ import { useEffect } from 'react';
4
+ import { SidebarSection } from './SidebarSection.js';
5
+ export { SidebarSection } from './SidebarSection.js';
6
+ /**
7
+ * Typed wrapper so accordion JSX is compatible with strict React 19 element checks.
8
+ */
9
+ const AccordionRoot = ControlledAccordion;
10
+ /**
11
+ * Accordion-backed container for collapsible sidebar sections.
12
+ *
13
+ * Owns the accordion provider so host apps only need to supply section config
14
+ * and optional controlled `expanded` / `onToggle` persistence hooks.
15
+ */
16
+ export function SidebarSections({ sections, expanded, onToggle }) {
17
+ const { stateMap, toggle, ...providerRest } = useAccordionProvider({
18
+ allowMultiple: true,
19
+ transition: true,
20
+ transitionTimeout: 200,
21
+ mountOnEnter: true,
22
+ onStateChange: ({ key, current }) => {
23
+ onToggle?.(String(key), current.isEnter);
24
+ }
25
+ });
26
+ const providerValue = { stateMap, toggle, ...providerRest };
27
+ /**
28
+ * Syncs controlled expanded state from the host into the accordion provider.
29
+ */
30
+ useEffect(() => {
31
+ if (!expanded) {
32
+ return;
33
+ }
34
+ for (const [key, isExpanded] of Object.entries(expanded)) {
35
+ const currentExpanded = stateMap.get(key)?.isEnter;
36
+ if (currentExpanded !== isExpanded) {
37
+ toggle(key, isExpanded);
38
+ }
39
+ }
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))) }));
42
+ }
@@ -45,6 +45,9 @@ export { SidebarLayout } from './SidebarLayout/index.js';
45
45
  export { PanelCloseButton } from './PanelCloseButton/index.js';
46
46
  export { Resizable, ResizeHandle, useResizable } from './Resizable/index.js';
47
47
  export type { UseResizableOptions, UseResizableResult } from './Resizable/useResizable.js';
48
+ export { Scrollbars, type ScrollbarsAxis } from './Scrollbars/index.js';
49
+ export { SidebarSection, SidebarSections, type SidebarSectionConfig } from './SidebarSection/index.js';
50
+ export { Sidebar, type SidebarSide } from './Sidebar/index.js';
48
51
  export { DEFAULT_HEIGHT, MIN_HEIGHT, footerPanelClassName, footerPanelCloseButtonClassName, getFooterPanelMaxSize } from './Resizable/footerPanelUtils.js';
49
52
  export { ResourceList, ResourceListRow, ResourceListPrimary, ResourceListEmptyItem } from './ResourceList/index.js';
50
53
  export { RoundButton } from './RoundButton/index.js';
@@ -71,5 +74,6 @@ export { cleanVariables, resolveTabListKeyAction } from './utils.js';
71
74
  export type { TabListKeyOptions } from './utils.js';
72
75
  export { useDialogFocus, getFocusableElements } from './useDialogFocus.js';
73
76
  export { segment, segmentGroup, tabItem } from './classes.js';
77
+ export { SidebarItem, SortableSidebarItem, stopSortableDragPointerDown, SidebarColorDot, sourceRow, METHOD_CLASSES, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SidebarMethodBadge, SidebarStatusDot, SidebarStatusMarker, SidebarRequestItem, SidebarDocumentItem, SidebarFolderItem, SidebarRunItem, SidebarHistoryItem, SidebarEnvironmentItem, SidebarTabGroupItem, SidebarCommitItem, type SidebarItemSortableConfig } from './SidebarItem/index.js';
74
78
  export type { FormDataPart, FormDataPartType, HttpMethod, KeyValue, Variable } from '../types.js';
75
79
  //# 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;A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E,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrE,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,2BAA2B,EAC3B,eAAe,EACf,SAAS,EACT,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
@@ -34,6 +34,9 @@ export { PageSidebar } from './PageSidebar/index.js';
34
34
  export { SidebarLayout } from './SidebarLayout/index.js';
35
35
  export { PanelCloseButton } from './PanelCloseButton/index.js';
36
36
  export { Resizable, ResizeHandle, useResizable } from './Resizable/index.js';
37
+ export { Scrollbars } from './Scrollbars/index.js';
38
+ export { SidebarSection, SidebarSections } from './SidebarSection/index.js';
39
+ export { Sidebar } from './Sidebar/index.js';
37
40
  export { DEFAULT_HEIGHT, MIN_HEIGHT, footerPanelClassName, footerPanelCloseButtonClassName, getFooterPanelMaxSize } from './Resizable/footerPanelUtils.js';
38
41
  export { ResourceList, ResourceListRow, ResourceListPrimary, ResourceListEmptyItem } from './ResourceList/index.js';
39
42
  export { RoundButton } from './RoundButton/index.js';
@@ -53,3 +56,4 @@ export { VisibilityMenu } from './VisibilityMenu/index.js';
53
56
  export { cleanVariables, resolveTabListKeyAction } from './utils.js';
54
57
  export { useDialogFocus, getFocusableElements } from './useDialogFocus.js';
55
58
  export { segment, segmentGroup, tabItem } from './classes.js';
59
+ export { SidebarItem, SortableSidebarItem, stopSortableDragPointerDown, SidebarColorDot, sourceRow, METHOD_CLASSES, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SidebarMethodBadge, SidebarStatusDot, SidebarStatusMarker, SidebarRequestItem, SidebarDocumentItem, SidebarFolderItem, SidebarRunItem, SidebarHistoryItem, SidebarEnvironmentItem, SidebarTabGroupItem, SidebarCommitItem } from './SidebarItem/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harborclient/sdk",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "TypeScript SDK for HarborClient development.",
5
5
  "keywords": [
6
6
  "harborclient",
@@ -170,6 +170,9 @@
170
170
  "@dnd-kit/core": "^6.3.1",
171
171
  "@dnd-kit/sortable": "^10.0.0",
172
172
  "@dnd-kit/utilities": "^3.2.2",
173
+ "@szhsin/react-accordion": "^1.4.2",
174
+ "overlayscrollbars": "^2.16.0",
175
+ "overlayscrollbars-react": "^0.5.6",
173
176
  "react": ">=18"
174
177
  },
175
178
  "dependencies": {
@@ -200,6 +203,9 @@
200
203
  "@dnd-kit/core": "^6.3.1",
201
204
  "@dnd-kit/sortable": "^10.0.0",
202
205
  "@dnd-kit/utilities": "^3.2.2",
206
+ "@szhsin/react-accordion": "^1.4.2",
207
+ "overlayscrollbars": "^2.16.0",
208
+ "overlayscrollbars-react": "^0.5.6",
203
209
  "@braintree/sanitize-url": "^7.1.2",
204
210
  "@jest/globals": "^30.4.1",
205
211
  "@storybook/addon-docs": "^10.4.6",