@harborclient/sdk 1.3.2 → 1.3.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.
- package/CHANGELOG.md +20 -0
- package/dist/components/AnchorMenuPanel/index.d.ts +35 -0
- package/dist/components/AnchorMenuPanel/index.d.ts.map +1 -0
- package/dist/components/AnchorMenuPanel/index.js +364 -0
- package/dist/components/ColorPicker/index.d.ts +5 -1
- package/dist/components/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/ColorPicker/index.js +2 -2
- package/dist/components/FilterButton/FilterButtonIcon.d.ts +29 -0
- package/dist/components/FilterButton/FilterButtonIcon.d.ts.map +1 -0
- package/dist/components/FilterButton/FilterButtonIcon.js +18 -0
- package/dist/components/FilterButton/index.d.ts +26 -0
- package/dist/components/FilterButton/index.d.ts.map +1 -0
- package/dist/components/FilterButton/index.js +14 -0
- package/dist/components/FormGroup/index.d.ts +7 -1
- package/dist/components/FormGroup/index.d.ts.map +1 -1
- package/dist/components/FormGroup/index.js +8 -11
- package/dist/components/PageSidebar/index.d.ts +1 -0
- package/dist/components/PageSidebar/index.d.ts.map +1 -1
- package/dist/components/PageSidebar/index.js +4 -13
- package/dist/components/Resizable/applyResizableSizes.d.ts +11 -0
- package/dist/components/Resizable/applyResizableSizes.d.ts.map +1 -0
- package/dist/components/Resizable/applyResizableSizes.js +34 -0
- package/dist/components/Resizable/footerPanelUtils.d.ts +1 -1
- package/dist/components/Resizable/footerPanelUtils.js +4 -4
- package/dist/components/Resizable/index.d.ts +1 -0
- package/dist/components/Resizable/index.d.ts.map +1 -1
- package/dist/components/Resizable/index.js +1 -0
- package/dist/components/Resizable/useResizable.d.ts +7 -1
- package/dist/components/Resizable/useResizable.d.ts.map +1 -1
- package/dist/components/Resizable/useResizable.js +141 -11
- package/dist/components/RowActionsMenu/index.d.ts +7 -1
- package/dist/components/RowActionsMenu/index.d.ts.map +1 -1
- package/dist/components/RowActionsMenu/index.js +40 -18
- package/dist/components/SettingFieldActions/index.d.ts +42 -0
- package/dist/components/SettingFieldActions/index.d.ts.map +1 -0
- package/dist/components/SettingFieldActions/index.js +66 -0
- package/dist/components/SidebarItem/SidebarDocumentItem.d.ts +6 -6
- package/dist/components/SidebarItem/SidebarDocumentItem.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarDocumentItem.js +4 -4
- package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts +4 -4
- package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarEnvironmentItem.js +3 -3
- package/dist/components/SidebarItem/SidebarFolderItem.d.ts +5 -5
- package/dist/components/SidebarItem/SidebarFolderItem.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarFolderItem.js +4 -4
- package/dist/components/SidebarItem/SidebarHistoryItem.d.ts +13 -1
- package/dist/components/SidebarItem/SidebarHistoryItem.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarHistoryItem.js +3 -3
- package/dist/components/SidebarItem/SidebarMarkerDot.d.ts +22 -0
- package/dist/components/SidebarItem/SidebarMarkerDot.d.ts.map +1 -0
- package/dist/components/SidebarItem/SidebarMarkerDot.js +11 -0
- package/dist/components/SidebarItem/SidebarMethodBadge.d.ts +9 -1
- package/dist/components/SidebarItem/SidebarMethodBadge.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarMethodBadge.js +7 -5
- package/dist/components/SidebarItem/SidebarRequestItem.d.ts +9 -5
- package/dist/components/SidebarItem/SidebarRequestItem.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarRequestItem.js +4 -4
- package/dist/components/SidebarItem/SidebarRunItem.d.ts +9 -1
- package/dist/components/SidebarItem/SidebarRunItem.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarRunItem.js +2 -2
- package/dist/components/SidebarItem/SidebarStatusDot.d.ts +11 -1
- package/dist/components/SidebarItem/SidebarStatusDot.d.ts.map +1 -1
- package/dist/components/SidebarItem/SidebarStatusDot.js +10 -1
- package/dist/components/SidebarItem/{SidebarTabGroupItem.d.ts → SidebarWorkspaceItem.d.ts} +9 -9
- package/dist/components/SidebarItem/SidebarWorkspaceItem.d.ts.map +1 -0
- package/dist/components/SidebarItem/{SidebarTabGroupItem.js → SidebarWorkspaceItem.js} +4 -4
- package/dist/components/SidebarItem/index.d.ts +3 -3
- package/dist/components/SidebarItem/index.d.ts.map +1 -1
- package/dist/components/SidebarItem/index.js +3 -3
- package/dist/components/SidebarItem/sidebarItemClasses.d.ts +17 -0
- package/dist/components/SidebarItem/sidebarItemClasses.d.ts.map +1 -1
- package/dist/components/SidebarItem/sidebarItemClasses.js +26 -2
- package/dist/components/SidebarSection/SectionItem.d.ts.map +1 -1
- package/dist/components/SidebarSection/SectionItem.js +3 -1
- package/dist/components/SortButton/SortButtonIcon.d.ts +29 -0
- package/dist/components/SortButton/SortButtonIcon.d.ts.map +1 -0
- package/dist/components/SortButton/SortButtonIcon.js +18 -0
- package/dist/components/SortButton/SortMenu.d.ts +42 -0
- package/dist/components/SortButton/SortMenu.d.ts.map +1 -0
- package/dist/components/SortButton/SortMenu.js +137 -0
- package/dist/components/SortButton/SortMenuOption.d.ts +35 -0
- package/dist/components/SortButton/SortMenuOption.d.ts.map +1 -0
- package/dist/components/SortButton/SortMenuOption.js +18 -0
- package/dist/components/SortButton/index.d.ts +32 -0
- package/dist/components/SortButton/index.d.ts.map +1 -0
- package/dist/components/SortButton/index.js +15 -0
- package/dist/components/SortButton/sortOptions.d.ts +14 -0
- package/dist/components/SortButton/sortOptions.d.ts.map +1 -0
- package/dist/components/SortButton/sortOptions.js +1 -0
- package/dist/components/TabBar/types.d.ts +1 -1
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +8 -2
- package/dist/runtime/createBridgedPluginContext.js +170 -2
- package/dist/snippets.d.ts +22 -0
- package/dist/types.d.ts +913 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/components/SidebarItem/SidebarColorDot.d.ts +0 -22
- package/dist/components/SidebarItem/SidebarColorDot.d.ts.map +0 -1
- package/dist/components/SidebarItem/SidebarColorDot.js +0 -11
- package/dist/components/SidebarItem/SidebarTabGroupItem.d.ts.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@harborclient/sdk/jsx-runtime";
|
|
2
|
+
import { Button } from '../Button/index.js';
|
|
3
|
+
import { cn } from '../utils.js';
|
|
4
|
+
import { SortButtonIcon } from './SortButtonIcon.js';
|
|
5
|
+
/**
|
|
6
|
+
* Toolbar sort trigger with an optional accent corner indicator when a
|
|
7
|
+
* non-default sort is in effect. Matches the SegmentedTabs indicator color
|
|
8
|
+
* (`bg-accent`) and mirrors {@link FilterButton}.
|
|
9
|
+
*
|
|
10
|
+
* Defaults to `type="button"`. Pass `title` for a native tooltip; when omitted,
|
|
11
|
+
* the tooltip falls back to `aria-label`.
|
|
12
|
+
*/
|
|
13
|
+
export function SortButton({ active = false, icon, className, title, innerRef, type = 'button', 'aria-label': ariaLabel, ...props }) {
|
|
14
|
+
return (_jsx(Button, { ...props, type: type, variant: "toolbar", innerRef: innerRef, "aria-label": ariaLabel, title: title ?? ariaLabel, className: cn('hc-sort-button', active ? 'text-text hover:text-text' : 'text-muted hover:text-text', className), children: _jsx(SortButtonIcon, { active: active, icon: icon }) }));
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One selectable row in a {@link SortMenu} listbox.
|
|
3
|
+
*/
|
|
4
|
+
export interface SortOption {
|
|
5
|
+
/**
|
|
6
|
+
* Stable id used as the controlled value and option key.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Visible label for the option row.
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sortOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortOptions.d.ts","sourceRoot":"","sources":["../../../src/components/SortButton/sortOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -32,7 +32,7 @@ export interface TabBarItem<TId extends string | number> {
|
|
|
32
32
|
*/
|
|
33
33
|
dragLabel: ReactNode;
|
|
34
34
|
/**
|
|
35
|
-
* When true, uses active styling even when not selected (for example
|
|
35
|
+
* When true, uses active styling even when not selected (for example workspace edit).
|
|
36
36
|
*/
|
|
37
37
|
highlighted?: boolean;
|
|
38
38
|
}
|
|
@@ -26,6 +26,7 @@ export { EmptyState } from './EmptyState/index.js';
|
|
|
26
26
|
export { EmptySectionLabel } from './EmptySectionLabel/index.js';
|
|
27
27
|
export type { Props as EmptySectionLabelProps } from './EmptySectionLabel/index.js';
|
|
28
28
|
export { FaIcon } from './FaIcon/index.js';
|
|
29
|
+
export { FilterButton } from './FilterButton/index.js';
|
|
29
30
|
export { FieldError } from './FieldError/index.js';
|
|
30
31
|
export { FormDataEditor } from './FormDataEditor/index.js';
|
|
31
32
|
export type { Props as FormDataEditorProps } from './FormDataEditor/index.js';
|
|
@@ -57,7 +58,7 @@ export { SidebarLayout } from './SidebarLayout/index.js';
|
|
|
57
58
|
export { PanelCloseButton } from './PanelCloseButton/index.js';
|
|
58
59
|
export { ProgressBar } from './ProgressBar/index.js';
|
|
59
60
|
export type { Props as ProgressBarProps } from './ProgressBar/index.js';
|
|
60
|
-
export { Resizable, ResizeHandle, useResizable } from './Resizable/index.js';
|
|
61
|
+
export { applyResizableSizes, Resizable, RESIZABLE_SYNC_EVENT, ResizeHandle, useResizable } from './Resizable/index.js';
|
|
61
62
|
export type { UseResizableOptions, UseResizableResult } from './Resizable/useResizable.js';
|
|
62
63
|
export { Scrollbars, type ScrollbarsAxis } from './Scrollbars/index.js';
|
|
63
64
|
export { SelectionActionToolbar } from './SelectionActionToolbar/index.js';
|
|
@@ -72,11 +73,17 @@ export { ResourceList, ResourceListRow, ResourceListPrimary, ResourceListEmptyIt
|
|
|
72
73
|
export { RoundButton } from './RoundButton/index.js';
|
|
73
74
|
export { RowActionsMenu } from './RowActionsMenu/index.js';
|
|
74
75
|
export type { MenuItem } from './RowActionsMenu/index.js';
|
|
76
|
+
export { AnchorMenuPanel } from './AnchorMenuPanel/index.js';
|
|
75
77
|
export { buildReorderMenuGroup } from './rowActionsMenuHelpers.js';
|
|
76
78
|
export { SettingIdLabel } from './SettingIdLabel/index.js';
|
|
77
79
|
export type { Props as SettingIdLabelProps } from './SettingIdLabel/index.js';
|
|
80
|
+
export { SettingFieldActions } from './SettingFieldActions/index.js';
|
|
78
81
|
export { SettingSectionHeading } from './SettingSectionHeading/index.js';
|
|
79
82
|
export type { Props as SettingSectionHeadingProps } from './SettingSectionHeading/index.js';
|
|
83
|
+
export { SortButton } from './SortButton/index.js';
|
|
84
|
+
export { SortButtonIcon } from './SortButton/SortButtonIcon.js';
|
|
85
|
+
export { SortMenu } from './SortButton/SortMenu.js';
|
|
86
|
+
export type { SortOption } from './SortButton/sortOptions.js';
|
|
80
87
|
export { SegmentedTabs, SegmentedTabsGroup, SegmentedTabPanel } from './SegmentedTabs/index.js';
|
|
81
88
|
export type { TabItem } from './SegmentedTabs/index.js';
|
|
82
89
|
export { Spinner } from './Spinner/index.js';
|
|
@@ -99,6 +106,6 @@ export { cleanVariables, resolveTabListKeyAction } from './utils.js';
|
|
|
99
106
|
export type { TabListKeyOptions } from './utils.js';
|
|
100
107
|
export { useDialogFocus, getFocusableElements } from './useDialogFocus.js';
|
|
101
108
|
export { segment, segmentGroup, tabItem } from './classes.js';
|
|
102
|
-
export { SidebarItem, SidebarListbox, SidebarList, SidebarTree, SidebarTreeGroup, handleSidebarOptionKeyDown, type SidebarItemListboxOption, type SidebarItemTreeItem, SortableSidebarItem, stopSortableDragPointerDown,
|
|
109
|
+
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, SidebarCommitItem, type SidebarItemSortableConfig, type SidebarBadgeVariant, type SidebarCommitPushStatus } from './SidebarItem/index.js';
|
|
103
110
|
export type { FormDataPart, FormDataPartType, HttpMethod, KeyValue, Variable } from '../types.js';
|
|
104
111
|
//# 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,w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B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC7B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { CodeEditorConfigProvider, useCodeEditorConfig, DEFAULT_CODE_EDITOR_CONF
|
|
|
17
17
|
export { EmptyState } from './EmptyState/index.js';
|
|
18
18
|
export { EmptySectionLabel } from './EmptySectionLabel/index.js';
|
|
19
19
|
export { FaIcon } from './FaIcon/index.js';
|
|
20
|
+
export { FilterButton } from './FilterButton/index.js';
|
|
20
21
|
export { FieldError } from './FieldError/index.js';
|
|
21
22
|
export { FormDataEditor } from './FormDataEditor/index.js';
|
|
22
23
|
export { FooterButton } from './FooterButton/index.js';
|
|
@@ -41,7 +42,7 @@ export { PageSidebar } from './PageSidebar/index.js';
|
|
|
41
42
|
export { SidebarLayout } from './SidebarLayout/index.js';
|
|
42
43
|
export { PanelCloseButton } from './PanelCloseButton/index.js';
|
|
43
44
|
export { ProgressBar } from './ProgressBar/index.js';
|
|
44
|
-
export { Resizable, ResizeHandle, useResizable } from './Resizable/index.js';
|
|
45
|
+
export { applyResizableSizes, Resizable, RESIZABLE_SYNC_EVENT, ResizeHandle, useResizable } from './Resizable/index.js';
|
|
45
46
|
export { Scrollbars } from './Scrollbars/index.js';
|
|
46
47
|
export { SelectionActionToolbar } from './SelectionActionToolbar/index.js';
|
|
47
48
|
export { ScreenshotCarousel } from './ScreenshotCarousel/index.js';
|
|
@@ -53,9 +54,14 @@ export { DEFAULT_HEIGHT, MIN_HEIGHT, footerPanelClassName, footerPanelCloseButto
|
|
|
53
54
|
export { ResourceList, ResourceListRow, ResourceListPrimary, ResourceListEmptyItem } from './ResourceList/index.js';
|
|
54
55
|
export { RoundButton } from './RoundButton/index.js';
|
|
55
56
|
export { RowActionsMenu } from './RowActionsMenu/index.js';
|
|
57
|
+
export { AnchorMenuPanel } from './AnchorMenuPanel/index.js';
|
|
56
58
|
export { buildReorderMenuGroup } from './rowActionsMenuHelpers.js';
|
|
57
59
|
export { SettingIdLabel } from './SettingIdLabel/index.js';
|
|
60
|
+
export { SettingFieldActions } from './SettingFieldActions/index.js';
|
|
58
61
|
export { SettingSectionHeading } from './SettingSectionHeading/index.js';
|
|
62
|
+
export { SortButton } from './SortButton/index.js';
|
|
63
|
+
export { SortButtonIcon } from './SortButton/SortButtonIcon.js';
|
|
64
|
+
export { SortMenu } from './SortButton/SortMenu.js';
|
|
59
65
|
export { SegmentedTabs, SegmentedTabsGroup, SegmentedTabPanel } from './SegmentedTabs/index.js';
|
|
60
66
|
export { Spinner } from './Spinner/index.js';
|
|
61
67
|
export { StatusMessage } from './StatusMessage/index.js';
|
|
@@ -71,4 +77,4 @@ export { VisibilityMenu } from './VisibilityMenu/index.js';
|
|
|
71
77
|
export { cleanVariables, resolveTabListKeyAction } from './utils.js';
|
|
72
78
|
export { useDialogFocus, getFocusableElements } from './useDialogFocus.js';
|
|
73
79
|
export { segment, segmentGroup, tabItem } from './classes.js';
|
|
74
|
-
export { SidebarItem, SidebarListbox, SidebarList, SidebarTree, SidebarTreeGroup, handleSidebarOptionKeyDown, SortableSidebarItem, stopSortableDragPointerDown,
|
|
80
|
+
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, SidebarCommitItem } from './SidebarItem/index.js';
|
|
@@ -358,6 +358,17 @@ export function createBridgedPluginContext({ pluginId, mode, contributionId, rea
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Reads `replaces` from a sidebar panel manifest entry (manifest-authoritative).
|
|
363
|
+
*
|
|
364
|
+
* @param {string} contributionId - Raw contribution id.
|
|
365
|
+
* @returns {'collections'|undefined}
|
|
366
|
+
*/
|
|
367
|
+
const getSidebarPanelReplaces = (contributionId) => {
|
|
368
|
+
const entry = manifest.contributes?.sidebarPanels?.find((panel) => panel.id === contributionId);
|
|
369
|
+
return entry?.replaces === 'collections' ? 'collections' : undefined;
|
|
370
|
+
};
|
|
371
|
+
|
|
361
372
|
/**
|
|
362
373
|
* Asserts that a menu command is declared in manifest.contributes.menus.
|
|
363
374
|
*
|
|
@@ -583,6 +594,7 @@ export function createBridgedPluginContext({ pluginId, mode, contributionId, rea
|
|
|
583
594
|
if (!canRegisterUi()) {
|
|
584
595
|
return noopDisposable();
|
|
585
596
|
}
|
|
597
|
+
const replaces = getSidebarPanelReplaces(panel.id);
|
|
586
598
|
return registerUiContribution(
|
|
587
599
|
'sidebarPanels',
|
|
588
600
|
panel.id,
|
|
@@ -591,7 +603,8 @@ export function createBridgedPluginContext({ pluginId, mode, contributionId, rea
|
|
|
591
603
|
title: panel.title,
|
|
592
604
|
icon: panel.icon,
|
|
593
605
|
order: panel.order,
|
|
594
|
-
contributionId: panel.id
|
|
606
|
+
contributionId: panel.id,
|
|
607
|
+
...(replaces ? { replaces } : {})
|
|
595
608
|
},
|
|
596
609
|
panel.Component
|
|
597
610
|
);
|
|
@@ -865,6 +878,43 @@ export function createBridgedPluginContext({ pluginId, mode, contributionId, rea
|
|
|
865
878
|
assertUi();
|
|
866
879
|
await bridgeInvoke('host.loadRequest', { requestId });
|
|
867
880
|
},
|
|
881
|
+
loadDocument: async (documentId) => {
|
|
882
|
+
assertUi();
|
|
883
|
+
await bridgeInvoke('host.loadDocument', { documentId });
|
|
884
|
+
},
|
|
885
|
+
openCollectionSettings: async (collectionId) => {
|
|
886
|
+
assertUi();
|
|
887
|
+
await bridgeInvoke('host.openCollectionSettings', { collectionId });
|
|
888
|
+
},
|
|
889
|
+
openCollectionRunner: async (collectionId) => {
|
|
890
|
+
assertUi();
|
|
891
|
+
await bridgeInvoke('host.openCollectionRunner', { collectionId });
|
|
892
|
+
},
|
|
893
|
+
openShareModal: async (collectionId) => {
|
|
894
|
+
assertUi();
|
|
895
|
+
await bridgeInvoke('host.openShareModal', { collectionId });
|
|
896
|
+
},
|
|
897
|
+
showEntityContextMenu: async (input) => {
|
|
898
|
+
assertUi();
|
|
899
|
+
await bridgeInvoke('host.showEntityContextMenu', input);
|
|
900
|
+
},
|
|
901
|
+
getSidebarSelection: async () => {
|
|
902
|
+
assertUi();
|
|
903
|
+
return bridgeInvoke('host.getSidebarSelection');
|
|
904
|
+
},
|
|
905
|
+
setSidebarSelection: async (selection) => {
|
|
906
|
+
assertUi();
|
|
907
|
+
await bridgeInvoke('host.setSidebarSelection', { selection });
|
|
908
|
+
},
|
|
909
|
+
onSidebarSelectionChanged: (listener) => {
|
|
910
|
+
assertUi();
|
|
911
|
+
const unsubscribe = bridgeOn('sidebar.selection.changed', listener);
|
|
912
|
+
return track({
|
|
913
|
+
dispose: () => {
|
|
914
|
+
unsubscribe();
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
},
|
|
868
918
|
sendRequest: async () => {
|
|
869
919
|
assertUi();
|
|
870
920
|
await bridgeInvoke('host.sendRequest');
|
|
@@ -881,6 +931,119 @@ export function createBridgedPluginContext({ pluginId, mode, contributionId, rea
|
|
|
881
931
|
assertUi();
|
|
882
932
|
return bridgeInvoke('host.createCollection', { payload });
|
|
883
933
|
},
|
|
934
|
+
updateCollection: async (input) => {
|
|
935
|
+
assertUi();
|
|
936
|
+
return bridgeInvoke('host.updateCollection', input);
|
|
937
|
+
},
|
|
938
|
+
deleteCollection: async (collectionId) => {
|
|
939
|
+
assertUi();
|
|
940
|
+
await bridgeInvoke('host.deleteCollection', { collectionId });
|
|
941
|
+
},
|
|
942
|
+
reorderCollections: async (orderedIds) => {
|
|
943
|
+
assertUi();
|
|
944
|
+
await bridgeInvoke('host.reorderCollections', { orderedIds });
|
|
945
|
+
},
|
|
946
|
+
setCollectionArchived: async (input) => {
|
|
947
|
+
assertUi();
|
|
948
|
+
await bridgeInvoke('host.setCollectionArchived', input);
|
|
949
|
+
},
|
|
950
|
+
duplicateCollection: async (collectionId) => {
|
|
951
|
+
assertUi();
|
|
952
|
+
return bridgeInvoke('host.duplicateCollection', { collectionId });
|
|
953
|
+
},
|
|
954
|
+
createFolder: async (input) => {
|
|
955
|
+
assertUi();
|
|
956
|
+
return bridgeInvoke('host.createFolder', input);
|
|
957
|
+
},
|
|
958
|
+
renameFolder: async (input) => {
|
|
959
|
+
assertUi();
|
|
960
|
+
return bridgeInvoke('host.renameFolder', input);
|
|
961
|
+
},
|
|
962
|
+
deleteFolder: async (input) => {
|
|
963
|
+
assertUi();
|
|
964
|
+
await bridgeInvoke('host.deleteFolder', input);
|
|
965
|
+
},
|
|
966
|
+
moveFolder: async (input) => {
|
|
967
|
+
assertUi();
|
|
968
|
+
return bridgeInvoke('host.moveFolder', input);
|
|
969
|
+
},
|
|
970
|
+
reorderFolders: async (input) => {
|
|
971
|
+
assertUi();
|
|
972
|
+
await bridgeInvoke('host.reorderFolders', input);
|
|
973
|
+
},
|
|
974
|
+
createRequest: async (input) => {
|
|
975
|
+
assertUi();
|
|
976
|
+
return bridgeInvoke('host.createRequest', input);
|
|
977
|
+
},
|
|
978
|
+
deleteRequest: async (requestId) => {
|
|
979
|
+
assertUi();
|
|
980
|
+
await bridgeInvoke('host.deleteRequest', { requestId });
|
|
981
|
+
},
|
|
982
|
+
duplicateRequest: async (requestId) => {
|
|
983
|
+
assertUi();
|
|
984
|
+
return bridgeInvoke('host.duplicateRequest', { requestId });
|
|
985
|
+
},
|
|
986
|
+
moveRequest: async (input) => {
|
|
987
|
+
assertUi();
|
|
988
|
+
await bridgeInvoke('host.moveRequest', input);
|
|
989
|
+
},
|
|
990
|
+
reorderRequests: async (input) => {
|
|
991
|
+
assertUi();
|
|
992
|
+
await bridgeInvoke('host.reorderRequests', input);
|
|
993
|
+
},
|
|
994
|
+
createDocument: async (input) => {
|
|
995
|
+
assertUi();
|
|
996
|
+
return bridgeInvoke('host.createDocument', input);
|
|
997
|
+
},
|
|
998
|
+
renameDocument: async (input) => {
|
|
999
|
+
assertUi();
|
|
1000
|
+
return bridgeInvoke('host.renameDocument', input);
|
|
1001
|
+
},
|
|
1002
|
+
deleteDocument: async (input) => {
|
|
1003
|
+
assertUi();
|
|
1004
|
+
await bridgeInvoke('host.deleteDocument', input);
|
|
1005
|
+
},
|
|
1006
|
+
moveDocument: async (input) => {
|
|
1007
|
+
assertUi();
|
|
1008
|
+
await bridgeInvoke('host.moveDocument', input);
|
|
1009
|
+
},
|
|
1010
|
+
reorderDocuments: async (input) => {
|
|
1011
|
+
assertUi();
|
|
1012
|
+
await bridgeInvoke('host.reorderDocuments', input);
|
|
1013
|
+
},
|
|
1014
|
+
reorderContainerItems: async (input) => {
|
|
1015
|
+
assertUi();
|
|
1016
|
+
await bridgeInvoke('host.reorderContainerItems', input);
|
|
1017
|
+
},
|
|
1018
|
+
listCollections: async (options) => {
|
|
1019
|
+
assertUi();
|
|
1020
|
+
return bridgeInvoke('host.listCollections', { options });
|
|
1021
|
+
},
|
|
1022
|
+
listFolders: async (collectionId) => {
|
|
1023
|
+
assertUi();
|
|
1024
|
+
return bridgeInvoke('host.listFolders', { collectionId });
|
|
1025
|
+
},
|
|
1026
|
+
listRequests: async (collectionId) => {
|
|
1027
|
+
assertUi();
|
|
1028
|
+
return bridgeInvoke('host.listRequests', { collectionId });
|
|
1029
|
+
},
|
|
1030
|
+
listDocuments: async (collectionId) => {
|
|
1031
|
+
assertUi();
|
|
1032
|
+
return bridgeInvoke('host.listDocuments', { collectionId });
|
|
1033
|
+
},
|
|
1034
|
+
listLibraryTree: async (options) => {
|
|
1035
|
+
assertUi();
|
|
1036
|
+
return bridgeInvoke('host.listLibraryTree', { options });
|
|
1037
|
+
},
|
|
1038
|
+
onLibraryChanged: (listener) => {
|
|
1039
|
+
assertUi();
|
|
1040
|
+
const unsubscribe = bridgeOn('library.changed', listener);
|
|
1041
|
+
return track({
|
|
1042
|
+
dispose: () => {
|
|
1043
|
+
unsubscribe();
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
},
|
|
884
1047
|
listCollectionRequests: async (collectionId, folderId) => {
|
|
885
1048
|
assertUi();
|
|
886
1049
|
return bridgeInvoke('host.listCollectionRequests', { collectionId, folderId });
|
|
@@ -900,6 +1063,10 @@ export function createBridgedPluginContext({ pluginId, mode, contributionId, rea
|
|
|
900
1063
|
clearResponse: async () => {
|
|
901
1064
|
assertUi();
|
|
902
1065
|
await bridgeInvoke('host.clearResponse');
|
|
1066
|
+
},
|
|
1067
|
+
openImageView: async (payload) => {
|
|
1068
|
+
assertUi();
|
|
1069
|
+
await bridgeInvoke('host.openImageView', { payload });
|
|
903
1070
|
}
|
|
904
1071
|
},
|
|
905
1072
|
imports: {
|
|
@@ -1025,7 +1192,8 @@ export function mountContributionView({
|
|
|
1025
1192
|
'responseTabs',
|
|
1026
1193
|
'collectionSettingsTabs',
|
|
1027
1194
|
'modals',
|
|
1028
|
-
'mainViews'
|
|
1195
|
+
'mainViews',
|
|
1196
|
+
'sidebarPanels'
|
|
1029
1197
|
]);
|
|
1030
1198
|
|
|
1031
1199
|
if (FILL_SURFACE_KINDS.has(kind) && slot === 'content') {
|
package/dist/snippets.d.ts
CHANGED
|
@@ -317,6 +317,17 @@ interface HcResponseApi {
|
|
|
317
317
|
document(): HcResponseDocument;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Optional configuration for hc.ask.
|
|
322
|
+
*/
|
|
323
|
+
interface HcAskOptions {
|
|
324
|
+
/**
|
|
325
|
+
* Model selection as `"name"` or `"name: source"`.
|
|
326
|
+
* Omit to use the first available model.
|
|
327
|
+
*/
|
|
328
|
+
model?: string;
|
|
329
|
+
}
|
|
330
|
+
|
|
320
331
|
/**
|
|
321
332
|
* HarborClient script sandbox API exposed as the global hc object.
|
|
322
333
|
*/
|
|
@@ -357,6 +368,17 @@ interface HcScriptApi {
|
|
|
357
368
|
* @throws When the setting is disabled or sendRequest is unavailable in this context.
|
|
358
369
|
*/
|
|
359
370
|
sendRequest(req: HcSendRequestInput): Promise<HcSendRequestResponse>;
|
|
371
|
+
/**
|
|
372
|
+
* Sends a one-shot prompt to a configured AI model.
|
|
373
|
+
* Includes the current send's request (and response in post-request scripts)
|
|
374
|
+
* in the model context. Returns null when AI is not configured or the
|
|
375
|
+
* model selection cannot be resolved.
|
|
376
|
+
*
|
|
377
|
+
* @param prompt - Text sent to the model.
|
|
378
|
+
* @param options - Optional `{ model }` where model is `"name"` or `"name: source"`.
|
|
379
|
+
* Omit model (or options) to use the first available model.
|
|
380
|
+
*/
|
|
381
|
+
ask(prompt: string, options?: HcAskOptions): Promise<string | null>;
|
|
360
382
|
test(name: string, fn: () => void): void;
|
|
361
383
|
/** Chai BDD expect; see https://www.chaijs.com/api/bdd/ */
|
|
362
384
|
expect: HcExpectStatic;
|