@workbench-kit/shell-react 0.0.2-prototype.0.2.6 → 0.0.2-prototype.0.2.8
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/README.md +41 -0
- package/package.json +9 -9
- package/src/{chat-ai-mock-proposals.ts → chat/ai-mock-proposals.ts} +39 -39
- package/src/{chat-command-input.ts → chat/command-input.ts} +52 -52
- package/src/{chat-command-policy.ts → chat/command-policy.ts} +54 -54
- package/src/{chat-command-surface.tsx → chat/command-surface.tsx} +155 -155
- package/src/{use-workbench-chat-command-proposals.ts → chat/use-chat-command-proposals.ts} +194 -194
- package/src/{chat-view-data.ts → chat/view-data.ts} +20 -20
- package/src/{chat-view.tsx → chat/view.tsx} +220 -220
- package/src/{command-inspector-surface.tsx → commands/inspector-surface.tsx} +46 -46
- package/src/{use-workbench-command-descriptors.ts → commands/use-command-descriptors.ts} +41 -41
- package/src/{use-context-key-revision.ts → commands/use-context-key-revision.ts} +18 -18
- package/src/{commands-view-data.ts → commands/view-data.ts} +17 -17
- package/src/{commands-view.tsx → commands/view.tsx} +43 -43
- package/src/devtools/WorkbenchDevtoolsPanel.tsx +124 -124
- package/src/devtools/WorkbenchDevtoolsShell.tsx +17 -17
- package/src/devtools/index.ts +11 -11
- package/src/devtools/use-workbench-devtools-snapshot.ts +84 -84
- package/src/devtools/workbench-devtools-snapshot.ts +140 -140
- package/src/devtools/workbench-devtools.css +82 -82
- package/src/{editor-area-dnd.ts → editor/area-dnd.ts} +69 -69
- package/src/{editor-area-model.ts → editor/area-model.ts} +71 -71
- package/src/{editor-area.css → editor/area.css} +454 -454
- package/src/{editor-area.tsx → editor/area.tsx} +676 -676
- package/src/{editor-host-surface.tsx → editor/host-surface.tsx} +631 -634
- package/src/{editor-pane-visibility.ts → editor/pane-visibility.ts} +130 -130
- package/src/{editor-resource.ts → editor/resource.ts} +36 -36
- package/src/{editor-state-storage.ts → editor/state-storage.ts} +182 -193
- package/src/{editor-tab-context-menu.ts → editor/tab-context-menu.ts} +118 -118
- package/src/{use-editor.ts → editor/use-editor.ts} +114 -107
- package/src/{editor-view-providers.tsx → editor/view-providers.tsx} +552 -552
- package/src/{editor-workspace-file-availability.ts → editor/workspace-file-availability.ts} +15 -15
- package/src/{editor-workspace-reconcile.tsx → editor/workspace-reconcile.tsx} +31 -28
- package/src/{explorer-context-menu.ts → explorer/context-menu.ts} +114 -114
- package/src/{createCommandWorkspaceExplorerPort.ts → explorer/create-command-workspace-explorer-port.ts} +86 -86
- package/src/{explorer-reveal.ts → explorer/reveal.ts} +112 -112
- package/src/{search-view-data.ts → explorer/search-view-data.ts} +15 -15
- package/src/{search-view.tsx → explorer/search-view.tsx} +65 -62
- package/src/{use-active-workspace-path.ts → explorer/use-active-workspace-path.ts} +15 -15
- package/src/{explorer-view-data.ts → explorer/view-data.ts} +58 -58
- package/src/{explorer-view.tsx → explorer/view.tsx} +227 -224
- package/src/{extension-context-menu.ts → extensions/context-menu.ts} +52 -52
- package/src/{extension-management-model.ts → extensions/management-model.ts} +313 -313
- package/src/{use-extension-management.ts → extensions/use-extension-management.ts} +241 -193
- package/src/{extensions-view-data.ts → extensions/view-data.ts} +19 -19
- package/src/{extensions-view.tsx → extensions/view.tsx} +63 -38
- package/src/{field-remap-demo.tsx → field-remap/demo.tsx} +18 -18
- package/src/{field-remap-editor-surface.tsx → field-remap/editor-surface.tsx} +36 -36
- package/src/{field-remap-flow-adapter.ts → field-remap/flow-adapter.ts} +240 -240
- package/src/{field-remap-flow.tsx → field-remap/flow.tsx} +369 -369
- package/src/{field-remap-graph.tsx → field-remap/graph.tsx} +559 -559
- package/src/field-remap/jsonata-transform.ts +166 -0
- package/src/{field-remap-panel.tsx → field-remap/panel.tsx} +193 -175
- package/src/{field-remap-samples.ts → field-remap/samples.ts} +352 -352
- package/src/{table-mapping-adapter.ts → field-remap/table-mapping-adapter.ts} +59 -59
- package/src/{field-remap-tree.tsx → field-remap/tree.tsx} +404 -404
- package/src/{field-remap-view-data.ts → field-remap/view-data.ts} +16 -16
- package/src/{field-remap-view.css → field-remap/view.css} +676 -676
- package/src/{field-remap-view.tsx → field-remap/view.tsx} +86 -86
- package/src/index.ts +212 -199
- package/src/{json-form-source-patch.ts → jdw/json-form-source-patch.ts} +323 -323
- package/src/{jdw-lab-view-data.ts → jdw/lab-view-data.ts} +25 -25
- package/src/{jdw-lab-view.css → jdw/lab-view.css} +21 -21
- package/src/{jdw-lab-view.tsx → jdw/lab-view.tsx} +79 -79
- package/src/{jdw-widget-form-view.tsx → jdw/widget-form-view.tsx} +68 -65
- package/src/{jdw-widget-preview-view.tsx → jdw/widget-preview-view.tsx} +54 -51
- package/src/{keybinding-overrides-storage.ts → management/keybinding-overrides-storage.ts} +49 -57
- package/src/{keybinding-management-settings.tsx → management/keybinding-settings.tsx} +16 -16
- package/src/{management-palette-commands.ts → management/palette-commands.ts} +38 -38
- package/src/{preference-settings-storage.ts → management/preference-settings-storage.ts} +50 -58
- package/src/{management-settings-ids.ts → management/settings-ids.ts} +12 -12
- package/src/{management-settings.tsx → management/settings.tsx} +96 -75
- package/src/{use-command-management.ts → management/use-command-management.ts} +191 -191
- package/src/{use-keybinding-management.ts → management/use-keybinding-management.ts} +130 -130
- package/src/{shell-model.tsx → shell/model.tsx} +149 -149
- package/src/{provider.tsx → shell/provider.tsx} +603 -573
- package/src/{shell-secondary-actions.tsx → shell/secondary-actions.tsx} +59 -59
- package/src/{shell-settings-constants.ts → shell/settings-constants.ts} +9 -9
- package/src/{shell-settings.tsx → shell/settings.tsx} +599 -599
- package/src/{shell.tsx → shell/shell.tsx} +680 -649
- package/src/{shell-titlebar-layout-controls.tsx → shell/titlebar-layout-controls.tsx} +4 -4
- package/src/{shell-view-host.tsx → shell/view-host.tsx} +212 -199
- package/src/{workbench-appearance-storage.ts → workbench/appearance-storage.ts} +107 -115
- package/src/{workbench-command-host.tsx → workbench/command-host.tsx} +243 -243
- package/src/{workbench-command-palette.ts → workbench/command-palette.ts} +208 -208
- package/src/{workbench-keybinding-bridge.ts → workbench/keybinding-bridge.ts} +54 -54
- package/src/{workbench-layout-storage.ts → workbench/layout-storage.ts} +134 -145
- package/src/{workbench-profile-modal.tsx → workbench/profile-modal.tsx} +118 -118
- package/src/{workbench-shell-command-registration.ts → workbench/shell-command-registration.ts} +58 -58
- package/src/{workbench-startup-gate.tsx → workbench/startup-gate.tsx} +136 -136
- package/src/{workbench-status-sections.ts → workbench/status-sections.ts} +43 -43
- package/src/{use-persisted-workbench-appearance.ts → workbench/use-persisted-appearance.ts} +33 -33
- package/src/{workbench-user-commands.ts → workbench/user-commands.ts} +46 -46
- package/src/{workspace-view-state.ts → workbench/workspace-view-state.ts} +35 -35
- package/src/jsonata-transform.ts +0 -36
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
import { WorkbenchActionSidebar } from '@workbench-kit/react/layout';
|
|
3
|
-
|
|
4
|
-
import './
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
FIELD_REMAP_SAMPLES,
|
|
8
|
-
resolveFieldRemapSampleId,
|
|
9
|
-
type FieldRemapSampleId,
|
|
10
|
-
} from './
|
|
11
|
-
import {
|
|
12
|
-
isSampleFieldRemapViewRenderData,
|
|
13
|
-
SAMPLE_FIELD_REMAP_VIEW_RENDER_KIND,
|
|
14
|
-
type SampleFieldRemapViewRenderData,
|
|
15
|
-
} from './
|
|
16
|
-
import { useActiveEditorTab, useEditorService } from '
|
|
17
|
-
|
|
18
|
-
export type { SampleFieldRemapViewRenderData };
|
|
19
|
-
export { isSampleFieldRemapViewRenderData, SAMPLE_FIELD_REMAP_VIEW_RENDER_KIND };
|
|
20
|
-
|
|
21
|
-
const FIELD_REMAP_URI_PREFIX = 'workbench://field-remap/' as const;
|
|
22
|
-
|
|
23
|
-
export function buildFieldRemapEditorUri(sampleId: FieldRemapSampleId | string): string {
|
|
24
|
-
return `${FIELD_REMAP_URI_PREFIX}${encodeURIComponent(sampleId)}`;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function parseFieldRemapEditorSampleId(resourceUri: string): FieldRemapSampleId | undefined {
|
|
28
|
-
if (!resourceUri.startsWith(FIELD_REMAP_URI_PREFIX)) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
const encodedId = resourceUri.slice(FIELD_REMAP_URI_PREFIX.length);
|
|
32
|
-
if (!encodedId) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
return resolveFieldRemapSampleId(decodeURIComponent(encodedId));
|
|
37
|
-
} catch {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface SampleFieldRemapViewProps {
|
|
43
|
-
readonly className?: string | undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** Sidebar: catalog of field-remap / table-mapping samples. */
|
|
47
|
-
export function SampleFieldRemapView({ className }: SampleFieldRemapViewProps = {}): JSX.Element {
|
|
48
|
-
const editorService = useEditorService();
|
|
49
|
-
const activeTab = useActiveEditorTab();
|
|
50
|
-
const activeSampleId = activeTab
|
|
51
|
-
? parseFieldRemapEditorSampleId(activeTab.resourceUri)
|
|
52
|
-
: undefined;
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<WorkbenchActionSidebar
|
|
56
|
-
className={['workbench-field-remap-view', className].filter(Boolean).join(' ')}
|
|
57
|
-
data-testid="field-remap-view"
|
|
58
|
-
items={FIELD_REMAP_SAMPLES.map((sample) => ({
|
|
59
|
-
description: sample.description,
|
|
60
|
-
icon: <i aria-hidden="true" className="codicon codicon-type-hierarchy" />,
|
|
61
|
-
id: sample.id,
|
|
62
|
-
label: sample.title,
|
|
63
|
-
selected: activeSampleId === sample.id,
|
|
64
|
-
testId: `field-remap-open-${sample.id}`,
|
|
65
|
-
title: `Open ${sample.title}`,
|
|
66
|
-
}))}
|
|
67
|
-
listProps={{
|
|
68
|
-
'aria-label': 'Field remap samples',
|
|
69
|
-
className: 'workbench-field-remap-view__list',
|
|
70
|
-
}}
|
|
71
|
-
onSelect={(item) => {
|
|
72
|
-
const sample = FIELD_REMAP_SAMPLES.find((entry) => entry.id === item.id);
|
|
73
|
-
if (!sample) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
editorService.openEditor({
|
|
77
|
-
icon: 'codicon-type-hierarchy',
|
|
78
|
-
pinned: true,
|
|
79
|
-
preview: false,
|
|
80
|
-
resourceUri: buildFieldRemapEditorUri(sample.id),
|
|
81
|
-
title: sample.title,
|
|
82
|
-
});
|
|
83
|
-
}}
|
|
84
|
-
/>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import { WorkbenchActionSidebar } from '@workbench-kit/react/layout';
|
|
3
|
+
|
|
4
|
+
import './view.css';
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
FIELD_REMAP_SAMPLES,
|
|
8
|
+
resolveFieldRemapSampleId,
|
|
9
|
+
type FieldRemapSampleId,
|
|
10
|
+
} from './samples.js';
|
|
11
|
+
import {
|
|
12
|
+
isSampleFieldRemapViewRenderData,
|
|
13
|
+
SAMPLE_FIELD_REMAP_VIEW_RENDER_KIND,
|
|
14
|
+
type SampleFieldRemapViewRenderData,
|
|
15
|
+
} from './view-data.js';
|
|
16
|
+
import { useActiveEditorTab, useEditorService } from '../editor/use-editor.js';
|
|
17
|
+
|
|
18
|
+
export type { SampleFieldRemapViewRenderData };
|
|
19
|
+
export { isSampleFieldRemapViewRenderData, SAMPLE_FIELD_REMAP_VIEW_RENDER_KIND };
|
|
20
|
+
|
|
21
|
+
const FIELD_REMAP_URI_PREFIX = 'workbench://field-remap/' as const;
|
|
22
|
+
|
|
23
|
+
export function buildFieldRemapEditorUri(sampleId: FieldRemapSampleId | string): string {
|
|
24
|
+
return `${FIELD_REMAP_URI_PREFIX}${encodeURIComponent(sampleId)}`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function parseFieldRemapEditorSampleId(resourceUri: string): FieldRemapSampleId | undefined {
|
|
28
|
+
if (!resourceUri.startsWith(FIELD_REMAP_URI_PREFIX)) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const encodedId = resourceUri.slice(FIELD_REMAP_URI_PREFIX.length);
|
|
32
|
+
if (!encodedId) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
return resolveFieldRemapSampleId(decodeURIComponent(encodedId));
|
|
37
|
+
} catch {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface SampleFieldRemapViewProps {
|
|
43
|
+
readonly className?: string | undefined;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** Sidebar: catalog of field-remap / table-mapping samples. */
|
|
47
|
+
export function SampleFieldRemapView({ className }: SampleFieldRemapViewProps = {}): JSX.Element {
|
|
48
|
+
const editorService = useEditorService();
|
|
49
|
+
const activeTab = useActiveEditorTab();
|
|
50
|
+
const activeSampleId = activeTab
|
|
51
|
+
? parseFieldRemapEditorSampleId(activeTab.resourceUri)
|
|
52
|
+
: undefined;
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<WorkbenchActionSidebar
|
|
56
|
+
className={['workbench-field-remap-view', className].filter(Boolean).join(' ')}
|
|
57
|
+
data-testid="field-remap-view"
|
|
58
|
+
items={FIELD_REMAP_SAMPLES.map((sample) => ({
|
|
59
|
+
description: sample.description,
|
|
60
|
+
icon: <i aria-hidden="true" className="codicon codicon-type-hierarchy" />,
|
|
61
|
+
id: sample.id,
|
|
62
|
+
label: sample.title,
|
|
63
|
+
selected: activeSampleId === sample.id,
|
|
64
|
+
testId: `field-remap-open-${sample.id}`,
|
|
65
|
+
title: `Open ${sample.title}`,
|
|
66
|
+
}))}
|
|
67
|
+
listProps={{
|
|
68
|
+
'aria-label': 'Field remap samples',
|
|
69
|
+
className: 'workbench-field-remap-view__list',
|
|
70
|
+
}}
|
|
71
|
+
onSelect={(item) => {
|
|
72
|
+
const sample = FIELD_REMAP_SAMPLES.find((entry) => entry.id === item.id);
|
|
73
|
+
if (!sample) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
editorService.openEditor({
|
|
77
|
+
icon: 'codicon-type-hierarchy',
|
|
78
|
+
pinned: true,
|
|
79
|
+
preview: false,
|
|
80
|
+
resourceUri: buildFieldRemapEditorUri(sample.id),
|
|
81
|
+
title: sample.title,
|
|
82
|
+
});
|
|
83
|
+
}}
|
|
84
|
+
/>
|
|
85
|
+
);
|
|
86
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,199 +1,212 @@
|
|
|
1
|
-
export const WORKBENCH_KIT_WORKBENCH_REACT_VERSION = '0.0.0' as const;
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
WorkbenchProvider,
|
|
5
|
-
useWorkbench,
|
|
6
|
-
type WorkbenchContextValue,
|
|
7
|
-
type WorkbenchStorageAdapter,
|
|
8
|
-
type WorkbenchWorkspaceHostPort,
|
|
9
|
-
} from './provider.js';
|
|
10
|
-
export {
|
|
11
|
-
WorkbenchDevtoolsPanel,
|
|
12
|
-
WorkbenchDevtoolsShell,
|
|
13
|
-
useWorkbenchDevtoolsSnapshot,
|
|
14
|
-
type WorkbenchDevtoolsShellProps,
|
|
15
|
-
type WorkbenchDevtoolsSnapshot,
|
|
16
|
-
} from './devtools/index.js';
|
|
17
|
-
export {
|
|
18
|
-
DEFAULT_WORKBENCH_EDITOR_STATE_STORAGE_KEY,
|
|
19
|
-
isWorkbenchEditorStatePersistenceAvailable,
|
|
20
|
-
readPersistedEditorState,
|
|
21
|
-
writePersistedEditorState,
|
|
22
|
-
} from './editor
|
|
23
|
-
export {
|
|
24
|
-
DEFAULT_WORKBENCH_KEYBINDING_STORAGE_KEY,
|
|
25
|
-
isWorkbenchKeybindingPersistenceAvailable,
|
|
26
|
-
readPersistedKeybindingOverrides,
|
|
27
|
-
writePersistedKeybindingOverrides,
|
|
28
|
-
} from './keybinding-overrides-storage.js';
|
|
29
|
-
export {
|
|
30
|
-
DEFAULT_WORKBENCH_LOCAL_PREFERENCE_STORAGE_KEY,
|
|
31
|
-
isWorkbenchLocalPreferencePersistenceAvailable,
|
|
32
|
-
readPersistedLocalPreferences,
|
|
33
|
-
writePersistedLocalPreferences,
|
|
34
|
-
} from './preference-settings-storage.js';
|
|
35
|
-
export {
|
|
36
|
-
DEFAULT_WORKBENCH_LAYOUT_STORAGE_KEY,
|
|
37
|
-
isWorkbenchLayoutPersistenceAvailable,
|
|
38
|
-
readPersistedWorkbenchLayout,
|
|
39
|
-
resolvePersistedWorkbenchLayout,
|
|
40
|
-
writePersistedWorkbenchLayout,
|
|
41
|
-
} from './workbench
|
|
42
|
-
export {
|
|
43
|
-
DEFAULT_WORKBENCH_APPEARANCE,
|
|
44
|
-
DEFAULT_WORKBENCH_APPEARANCE_STORAGE_KEY,
|
|
45
|
-
isWorkbenchAppearancePersistenceAvailable,
|
|
46
|
-
readPersistedWorkbenchAppearance,
|
|
47
|
-
writePersistedWorkbenchAppearance,
|
|
48
|
-
type WorkbenchAppearanceSettings,
|
|
49
|
-
} from './workbench
|
|
50
|
-
export {
|
|
51
|
-
usePersistedWorkbenchAppearance,
|
|
52
|
-
type UsePersistedWorkbenchAppearanceOptions,
|
|
53
|
-
} from './use-persisted-
|
|
54
|
-
export {
|
|
55
|
-
createWorkspaceResourceStatusItems,
|
|
56
|
-
mergeWorkbenchStatusSections,
|
|
57
|
-
type WorkspaceResourceStatusItemsInput,
|
|
58
|
-
} from './workbench
|
|
59
|
-
export { EditorArea, type EditorAreaProps, type EditorViewMode } from './editor
|
|
60
|
-
export {
|
|
61
|
-
DEFAULT_EDITOR_DOCUMENT_VIEW_PROVIDERS,
|
|
62
|
-
EditorDocumentViewProviderRegistry,
|
|
63
|
-
JDW_PREVIEW_PROVIDER_ID,
|
|
64
|
-
JDW_WIDGET_FORM_PROVIDER_ID,
|
|
65
|
-
JSON_FORM_PROVIDER,
|
|
66
|
-
JSON_FORM_PROVIDER_ID,
|
|
67
|
-
createEditorDocumentViewProviderRegistry,
|
|
68
|
-
resolveEditorDocumentViewProvider,
|
|
69
|
-
resolveEditorDocumentViews,
|
|
70
|
-
type CreateEditorDocumentViewProviderRegistryOptions,
|
|
71
|
-
type EditorDocumentContext,
|
|
72
|
-
type EditorDocumentViewKind,
|
|
73
|
-
type EditorDocumentViewProvider,
|
|
74
|
-
type EditorDocumentViewRenderContext,
|
|
75
|
-
type ResolvedEditorDocumentViews,
|
|
76
|
-
} from './editor
|
|
77
|
-
export { SampleJdwLabView, type SampleJdwLabViewProps } from './jdw
|
|
78
|
-
export { JdwWidgetFormView, type JdwWidgetFormViewProps } from './jdw
|
|
79
|
-
export { JdwWidgetPreviewView, type JdwWidgetPreviewViewProps } from './jdw
|
|
80
|
-
export {
|
|
81
|
-
isSampleJdwLabViewRenderData,
|
|
82
|
-
SAMPLE_JDW_LAB_VIEW_RENDER_KIND,
|
|
83
|
-
type SampleJdwLabViewRenderData,
|
|
84
|
-
} from './jdw
|
|
85
|
-
export { SampleFieldRemapDemo, type SampleFieldRemapDemoProps } from './field-remap
|
|
86
|
-
export { FieldRemapPanel, type FieldRemapPanelProps } from './field-remap
|
|
87
|
-
export { FieldRemapFlowMapper, type FieldRemapFlowMapperProps } from './field-remap
|
|
88
|
-
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
type
|
|
111
|
-
} from './field-remap
|
|
112
|
-
export {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
type
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
} from './
|
|
139
|
-
export {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
export {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
} from './
|
|
149
|
-
export {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
} from '
|
|
159
|
-
export {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
type
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
1
|
+
export const WORKBENCH_KIT_WORKBENCH_REACT_VERSION = '0.0.0' as const;
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
WorkbenchProvider,
|
|
5
|
+
useWorkbench,
|
|
6
|
+
type WorkbenchContextValue,
|
|
7
|
+
type WorkbenchStorageAdapter,
|
|
8
|
+
type WorkbenchWorkspaceHostPort,
|
|
9
|
+
} from './shell/provider.js';
|
|
10
|
+
export {
|
|
11
|
+
WorkbenchDevtoolsPanel,
|
|
12
|
+
WorkbenchDevtoolsShell,
|
|
13
|
+
useWorkbenchDevtoolsSnapshot,
|
|
14
|
+
type WorkbenchDevtoolsShellProps,
|
|
15
|
+
type WorkbenchDevtoolsSnapshot,
|
|
16
|
+
} from './devtools/index.js';
|
|
17
|
+
export {
|
|
18
|
+
DEFAULT_WORKBENCH_EDITOR_STATE_STORAGE_KEY,
|
|
19
|
+
isWorkbenchEditorStatePersistenceAvailable,
|
|
20
|
+
readPersistedEditorState,
|
|
21
|
+
writePersistedEditorState,
|
|
22
|
+
} from './editor/state-storage.js';
|
|
23
|
+
export {
|
|
24
|
+
DEFAULT_WORKBENCH_KEYBINDING_STORAGE_KEY,
|
|
25
|
+
isWorkbenchKeybindingPersistenceAvailable,
|
|
26
|
+
readPersistedKeybindingOverrides,
|
|
27
|
+
writePersistedKeybindingOverrides,
|
|
28
|
+
} from './management/keybinding-overrides-storage.js';
|
|
29
|
+
export {
|
|
30
|
+
DEFAULT_WORKBENCH_LOCAL_PREFERENCE_STORAGE_KEY,
|
|
31
|
+
isWorkbenchLocalPreferencePersistenceAvailable,
|
|
32
|
+
readPersistedLocalPreferences,
|
|
33
|
+
writePersistedLocalPreferences,
|
|
34
|
+
} from './management/preference-settings-storage.js';
|
|
35
|
+
export {
|
|
36
|
+
DEFAULT_WORKBENCH_LAYOUT_STORAGE_KEY,
|
|
37
|
+
isWorkbenchLayoutPersistenceAvailable,
|
|
38
|
+
readPersistedWorkbenchLayout,
|
|
39
|
+
resolvePersistedWorkbenchLayout,
|
|
40
|
+
writePersistedWorkbenchLayout,
|
|
41
|
+
} from './workbench/layout-storage.js';
|
|
42
|
+
export {
|
|
43
|
+
DEFAULT_WORKBENCH_APPEARANCE,
|
|
44
|
+
DEFAULT_WORKBENCH_APPEARANCE_STORAGE_KEY,
|
|
45
|
+
isWorkbenchAppearancePersistenceAvailable,
|
|
46
|
+
readPersistedWorkbenchAppearance,
|
|
47
|
+
writePersistedWorkbenchAppearance,
|
|
48
|
+
type WorkbenchAppearanceSettings,
|
|
49
|
+
} from './workbench/appearance-storage.js';
|
|
50
|
+
export {
|
|
51
|
+
usePersistedWorkbenchAppearance,
|
|
52
|
+
type UsePersistedWorkbenchAppearanceOptions,
|
|
53
|
+
} from './workbench/use-persisted-appearance.js';
|
|
54
|
+
export {
|
|
55
|
+
createWorkspaceResourceStatusItems,
|
|
56
|
+
mergeWorkbenchStatusSections,
|
|
57
|
+
type WorkspaceResourceStatusItemsInput,
|
|
58
|
+
} from './workbench/status-sections.js';
|
|
59
|
+
export { EditorArea, type EditorAreaProps, type EditorViewMode } from './editor/area.js';
|
|
60
|
+
export {
|
|
61
|
+
DEFAULT_EDITOR_DOCUMENT_VIEW_PROVIDERS,
|
|
62
|
+
EditorDocumentViewProviderRegistry,
|
|
63
|
+
JDW_PREVIEW_PROVIDER_ID,
|
|
64
|
+
JDW_WIDGET_FORM_PROVIDER_ID,
|
|
65
|
+
JSON_FORM_PROVIDER,
|
|
66
|
+
JSON_FORM_PROVIDER_ID,
|
|
67
|
+
createEditorDocumentViewProviderRegistry,
|
|
68
|
+
resolveEditorDocumentViewProvider,
|
|
69
|
+
resolveEditorDocumentViews,
|
|
70
|
+
type CreateEditorDocumentViewProviderRegistryOptions,
|
|
71
|
+
type EditorDocumentContext,
|
|
72
|
+
type EditorDocumentViewKind,
|
|
73
|
+
type EditorDocumentViewProvider,
|
|
74
|
+
type EditorDocumentViewRenderContext,
|
|
75
|
+
type ResolvedEditorDocumentViews,
|
|
76
|
+
} from './editor/view-providers.js';
|
|
77
|
+
export { SampleJdwLabView, type SampleJdwLabViewProps } from './jdw/lab-view.js';
|
|
78
|
+
export { JdwWidgetFormView, type JdwWidgetFormViewProps } from './jdw/widget-form-view.js';
|
|
79
|
+
export { JdwWidgetPreviewView, type JdwWidgetPreviewViewProps } from './jdw/widget-preview-view.js';
|
|
80
|
+
export {
|
|
81
|
+
isSampleJdwLabViewRenderData,
|
|
82
|
+
SAMPLE_JDW_LAB_VIEW_RENDER_KIND,
|
|
83
|
+
type SampleJdwLabViewRenderData,
|
|
84
|
+
} from './jdw/lab-view-data.js';
|
|
85
|
+
export { SampleFieldRemapDemo, type SampleFieldRemapDemoProps } from './field-remap/demo.js';
|
|
86
|
+
export { FieldRemapPanel, type FieldRemapPanelProps } from './field-remap/panel.js';
|
|
87
|
+
export { FieldRemapFlowMapper, type FieldRemapFlowMapperProps } from './field-remap/flow.js';
|
|
88
|
+
export {
|
|
89
|
+
DEFAULT_JSONATA_MAX_EXPRESSION_LENGTH,
|
|
90
|
+
DEFAULT_JSONATA_TIMEOUT_MS,
|
|
91
|
+
JSONATA_TRANSFORM_ID,
|
|
92
|
+
JsonataTransformTimeoutError,
|
|
93
|
+
createJsonataValueTransform,
|
|
94
|
+
jsonataValueTransform,
|
|
95
|
+
type CreateJsonataValueTransformOptions,
|
|
96
|
+
type JsonataTransformErrorPolicy,
|
|
97
|
+
} from './field-remap/jsonata-transform.js';
|
|
98
|
+
export {
|
|
99
|
+
FIELD_REMAP_SAMPLES,
|
|
100
|
+
getFieldRemapSample,
|
|
101
|
+
isFieldRemapSampleId,
|
|
102
|
+
resolveFieldRemapSampleId,
|
|
103
|
+
type FieldRemapSampleDefinition,
|
|
104
|
+
type FieldRemapSampleId,
|
|
105
|
+
} from './field-remap/samples.js';
|
|
106
|
+
export {
|
|
107
|
+
SampleFieldRemapView,
|
|
108
|
+
buildFieldRemapEditorUri,
|
|
109
|
+
parseFieldRemapEditorSampleId,
|
|
110
|
+
type SampleFieldRemapViewProps,
|
|
111
|
+
} from './field-remap/view.js';
|
|
112
|
+
export {
|
|
113
|
+
isSampleFieldRemapViewRenderData,
|
|
114
|
+
SAMPLE_FIELD_REMAP_VIEW_RENDER_KIND,
|
|
115
|
+
type SampleFieldRemapViewRenderData,
|
|
116
|
+
} from './field-remap/view-data.js';
|
|
117
|
+
export {
|
|
118
|
+
FieldRemapEditorSurface,
|
|
119
|
+
type FieldRemapEditorSurfaceId,
|
|
120
|
+
type FieldRemapEditorSurfaceProps,
|
|
121
|
+
} from './field-remap/editor-surface.js';
|
|
122
|
+
export {
|
|
123
|
+
WorkbenchShell,
|
|
124
|
+
type WorkbenchLocaleOption,
|
|
125
|
+
type WorkbenchShellProps,
|
|
126
|
+
type WorkbenchThemeOption,
|
|
127
|
+
} from './shell/shell.js';
|
|
128
|
+
export {
|
|
129
|
+
getWorkbenchCommandPaletteShortcutLabel,
|
|
130
|
+
getWorkbenchQuickAccessShortcutLabel,
|
|
131
|
+
WORKBENCH_COMMAND_PALETTE_SHORTCUT,
|
|
132
|
+
WORKBENCH_QUICK_ACCESS_SHORTCUT,
|
|
133
|
+
buildWorkbenchPaletteCommands,
|
|
134
|
+
matchesWorkbenchCommandPaletteShortcut,
|
|
135
|
+
matchesWorkbenchQuickAccessShortcut,
|
|
136
|
+
mergeWorkbenchCommandDescriptors,
|
|
137
|
+
resolveShellCommandActivities,
|
|
138
|
+
} from './workbench/command-palette.js';
|
|
139
|
+
export { WorkbenchCommandHost, type WorkbenchCommandHostProps } from './workbench/command-host.js';
|
|
140
|
+
export { WorkbenchStartupGate, type WorkbenchStartupGateProps } from './workbench/startup-gate.js';
|
|
141
|
+
export {
|
|
142
|
+
normalizeKeybindingKeyFromEvent,
|
|
143
|
+
resolveExtensionKeybindingCommand,
|
|
144
|
+
} from './workbench/keybinding-bridge.js';
|
|
145
|
+
export {
|
|
146
|
+
parseWorkbenchChatCommandInput,
|
|
147
|
+
type WorkbenchChatCommandInputParseResult,
|
|
148
|
+
} from './chat/command-input.js';
|
|
149
|
+
export {
|
|
150
|
+
useWorkbenchChatCommandSurface,
|
|
151
|
+
type WorkbenchChatCommandRunResult,
|
|
152
|
+
type WorkbenchChatCommandSurfaceOptions,
|
|
153
|
+
} from './chat/command-surface.js';
|
|
154
|
+
export { useWorkbenchCommandDescriptors } from './commands/use-command-descriptors.js';
|
|
155
|
+
export {
|
|
156
|
+
executeWorkbenchUserCommandAction,
|
|
157
|
+
registerWorkbenchUserCommands,
|
|
158
|
+
} from './workbench/user-commands.js';
|
|
159
|
+
export {
|
|
160
|
+
createWorkbenchHostThemeRegistration,
|
|
161
|
+
HOST_WORKBENCH_THEME_EXTENSION_ID,
|
|
162
|
+
registerHostWorkbenchThemes,
|
|
163
|
+
registerWorkbenchTheme,
|
|
164
|
+
REQUIRED_THEME_TOKEN_KEYS,
|
|
165
|
+
type RegisterWorkbenchThemeOptions,
|
|
166
|
+
type WorkbenchHostThemeMode,
|
|
167
|
+
type WorkbenchHostThemeRegistration,
|
|
168
|
+
} from '@workbench-kit/workbench-core';
|
|
169
|
+
export {
|
|
170
|
+
useActiveEditorTab,
|
|
171
|
+
useEditorDocumentViewProviders,
|
|
172
|
+
useEditorHost,
|
|
173
|
+
useEditorService,
|
|
174
|
+
useEditorState,
|
|
175
|
+
} from './editor/use-editor.js';
|
|
176
|
+
export {
|
|
177
|
+
isWorkspaceResourceService,
|
|
178
|
+
useWorkspaceResourceState,
|
|
179
|
+
} from './workbench/workspace-view-state.js';
|
|
180
|
+
export {
|
|
181
|
+
MANAGE_ACCOUNTS_COMMAND_ID,
|
|
182
|
+
MANAGE_COMMANDS_COMMAND_ID,
|
|
183
|
+
MANAGE_EXTENSIONS_COMMAND_ID,
|
|
184
|
+
MANAGE_KEYBINDINGS_COMMAND_ID,
|
|
185
|
+
WORKBENCH_ACCOUNTS_SETTINGS_CATEGORY_ID,
|
|
186
|
+
WORKBENCH_COMMANDS_SETTINGS_CATEGORY_ID,
|
|
187
|
+
WORKBENCH_EXTENSIONS_SETTINGS_CATEGORY_ID,
|
|
188
|
+
WORKBENCH_KEYBINDINGS_SETTINGS_CATEGORY_ID,
|
|
189
|
+
} from './management/settings-ids.js';
|
|
190
|
+
export { createWorkbenchManagementPaletteCommands } from './management/palette-commands.js';
|
|
191
|
+
export {
|
|
192
|
+
WorkbenchAccountManagementSettings,
|
|
193
|
+
WorkbenchCommandManagementSettings,
|
|
194
|
+
WorkbenchExtensionManagementSettings,
|
|
195
|
+
WorkbenchKeybindingManagementSettings,
|
|
196
|
+
type WorkbenchAccountManagementInput,
|
|
197
|
+
} from './management/settings.js';
|
|
198
|
+
export {
|
|
199
|
+
WORKBENCH_PROFILE_ACTIVITY_ITEM_ID,
|
|
200
|
+
WORKBENCH_ACCOUNT_ACTIVITY_ITEM_ID,
|
|
201
|
+
WORKBENCH_SETTINGS_ACTIVITY_ITEM_ID,
|
|
202
|
+
createWorkbenchSecondaryActivityItems,
|
|
203
|
+
getWorkbenchSecondaryActivityRoute,
|
|
204
|
+
type WorkbenchSecondaryActivityItemsInput,
|
|
205
|
+
type WorkbenchSecondaryActivityRoute,
|
|
206
|
+
} from './shell/secondary-actions.js';
|
|
207
|
+
export {
|
|
208
|
+
WorkbenchProfileModal,
|
|
209
|
+
type WorkbenchProfileDetail,
|
|
210
|
+
type WorkbenchProfileInput,
|
|
211
|
+
type WorkbenchProfileModalProps,
|
|
212
|
+
} from './workbench/profile-modal.js';
|