@workbench-kit/react 0.0.2-prototype.0.2.31 → 0.0.2-prototype.0.2.32
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workbench-kit/react",
|
|
3
|
-
"version": "0.0.2-prototype.0.2.
|
|
3
|
+
"version": "0.0.2-prototype.0.2.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"@vscode/codicons": "^0.0.45",
|
|
74
74
|
"remark-gfm": "^4.0.1",
|
|
75
75
|
"rehype-sanitize": "^6.0.0",
|
|
76
|
-
"@workbench-kit/
|
|
77
|
-
"@workbench-kit/
|
|
78
|
-
"@workbench-kit/
|
|
79
|
-
"@workbench-kit/
|
|
80
|
-
"@workbench-kit/platform": "0.0.2-prototype.0.2.
|
|
81
|
-
"@workbench-kit/runtime": "0.0.2-prototype.0.2.
|
|
82
|
-
"@workbench-kit/
|
|
83
|
-
"@workbench-kit/
|
|
84
|
-
"@workbench-kit/
|
|
76
|
+
"@workbench-kit/contracts": "0.0.2-prototype.0.2.32",
|
|
77
|
+
"@workbench-kit/adapters": "0.0.2-prototype.0.2.32",
|
|
78
|
+
"@workbench-kit/monaco": "0.0.2-prototype.0.2.32",
|
|
79
|
+
"@workbench-kit/tokens": "0.0.2-prototype.0.2.32",
|
|
80
|
+
"@workbench-kit/platform": "0.0.2-prototype.0.2.32",
|
|
81
|
+
"@workbench-kit/runtime": "0.0.2-prototype.0.2.32",
|
|
82
|
+
"@workbench-kit/workspace": "0.0.2-prototype.0.2.32",
|
|
83
|
+
"@workbench-kit/services": "0.0.2-prototype.0.2.32",
|
|
84
|
+
"@workbench-kit/jdw": "0.0.2-prototype.0.2.32"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"react": "^19.0.0",
|
package/src/styles.css
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '@vscode/codicons/dist/codicon.css';
|
|
3
|
-
@import './scrollbars.css';
|
|
4
|
-
@import './workbench/settings/settings.css';
|
|
5
|
-
@import './layout/layout.css';
|
|
6
|
-
@import './overlay/overlay.css';
|
|
7
|
-
@import './workbench/chrome/workbench-chrome.css';
|
|
1
|
+
@import './styles/core.css';
|
|
8
2
|
@import './workbench/auth/auth.css';
|
|
9
|
-
@import './workbench/management/management.css';
|
|
10
|
-
@import './workbench/views/views.css';
|
|
11
|
-
@import './workbench/workspace/workspace.css';
|
|
12
3
|
@import './workbench/chat/chat.css';
|
|
13
|
-
@import './primitives/primitives.css';
|
|
14
|
-
@import './workbench/widgets/widgets.css';
|
|
15
|
-
@import './modal/modal.css';
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { Button } from '../../primitives/button';
|
|
3
3
|
import { WorkbenchPropertyInline } from '../../layout/WorkbenchPropertyPanel';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
export interface IntegrationCommandAction<TCommandId extends string = string> {
|
|
6
|
+
readonly enabled: boolean;
|
|
7
|
+
readonly execute: () => Promise<void> | void;
|
|
8
|
+
readonly id: TCommandId;
|
|
9
|
+
readonly label: string;
|
|
10
|
+
readonly visible?: boolean | undefined;
|
|
11
|
+
}
|
|
5
12
|
|
|
6
13
|
type IntegrationActionRowAlign = 'center' | 'start';
|
|
7
14
|
type IntegrationActionRowJustify = 'between' | 'end' | 'start';
|
|
@@ -22,10 +22,10 @@ export type {
|
|
|
22
22
|
ExtensionManagementPendingAction,
|
|
23
23
|
} from './ExtensionManagementSidebar.js';
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
IntegrationActionRow,
|
|
26
|
+
IntegrationCommandButton,
|
|
26
27
|
type IntegrationCommandAction,
|
|
27
|
-
} from './
|
|
28
|
-
export { IntegrationActionRow, IntegrationCommandButton } from './IntegrationCommandActions.js';
|
|
28
|
+
} from './IntegrationCommandActions.js';
|
|
29
29
|
export { IntegrationsShell } from './IntegrationsShell.js';
|
|
30
30
|
export type { IntegrationsShellProps } from './IntegrationsShell.js';
|
|
31
31
|
export {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface IntegrationCommandAction<TCommandId extends string = string> {
|
|
2
|
-
readonly enabled: boolean;
|
|
3
|
-
readonly execute: () => Promise<void> | void;
|
|
4
|
-
readonly id: TCommandId;
|
|
5
|
-
readonly label: string;
|
|
6
|
-
readonly visible?: boolean | undefined;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function createIntegrationCommandAction<TCommandId extends string = string>(input: {
|
|
10
|
-
busy?: boolean;
|
|
11
|
-
busyLabel?: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
execute: () => Promise<void> | void;
|
|
14
|
-
id: TCommandId;
|
|
15
|
-
label: string;
|
|
16
|
-
visible?: boolean;
|
|
17
|
-
}): IntegrationCommandAction<TCommandId> {
|
|
18
|
-
return {
|
|
19
|
-
enabled: input.enabled,
|
|
20
|
-
execute: input.execute,
|
|
21
|
-
id: input.id,
|
|
22
|
-
label: input.busy === true ? (input.busyLabel ?? input.label) : input.label,
|
|
23
|
-
visible: input.visible ?? true,
|
|
24
|
-
};
|
|
25
|
-
}
|