@dxos/plugin-script 0.7.4 → 0.7.5-labs.a279d8c
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/dist/lib/browser/{AutomationPanel-PMTZROAZ.mjs → AutomationPanel-OOIRJFPJ.mjs} +4 -11
- package/dist/lib/browser/AutomationPanel-OOIRJFPJ.mjs.map +7 -0
- package/dist/lib/browser/ScriptContainer-T2AOMDT3.mjs +685 -0
- package/dist/lib/browser/ScriptContainer-T2AOMDT3.mjs.map +7 -0
- package/dist/lib/browser/{chunk-C7VBULMK.mjs → chunk-5BU5ERNU.mjs} +3 -3
- package/dist/lib/browser/chunk-5BU5ERNU.mjs.map +7 -0
- package/dist/lib/browser/chunk-REL2R7SB.mjs +52 -0
- package/dist/lib/browser/chunk-REL2R7SB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4UTRJLQ3.mjs → chunk-SDHKTS6H.mjs} +2 -51
- package/dist/lib/browser/{chunk-4UTRJLQ3.mjs.map → chunk-SDHKTS6H.mjs.map} +4 -4
- package/dist/lib/browser/chunk-SIOGRRPF.mjs +224 -0
- package/dist/lib/browser/chunk-SIOGRRPF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-K7KY6YMG.mjs → chunk-SJ4J527G.mjs} +2 -2
- package/dist/lib/browser/chunk-XPGBHZ3L.mjs +40 -0
- package/dist/lib/browser/chunk-XPGBHZ3L.mjs.map +7 -0
- package/dist/lib/browser/chunk-ZM6T4HPR.mjs +15 -0
- package/dist/lib/browser/chunk-ZM6T4HPR.mjs.map +7 -0
- package/dist/lib/browser/compiler-HT53ILG7.mjs +84 -0
- package/dist/lib/browser/compiler-HT53ILG7.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +107 -357
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-YPHT6HDZ.mjs +42 -0
- package/dist/lib/browser/intent-resolver-YPHT6HDZ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-GAWVYTJ5.mjs +67 -0
- package/dist/lib/browser/react-surface-GAWVYTJ5.mjs.map +7 -0
- package/dist/lib/browser/settings-YQQEU3DF.mjs +24 -0
- package/dist/lib/browser/settings-YQQEU3DF.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +10 -0
- package/dist/lib/node/{AutomationPanel-AAGQREH7.cjs → AutomationPanel-EPRDDR3A.cjs} +16 -17
- package/dist/lib/node/AutomationPanel-EPRDDR3A.cjs.map +7 -0
- package/dist/lib/node/ScriptContainer-BV56I4OL.cjs +689 -0
- package/dist/lib/node/ScriptContainer-BV56I4OL.cjs.map +7 -0
- package/dist/lib/node/chunk-5V3XGLTR.cjs +252 -0
- package/dist/lib/node/chunk-5V3XGLTR.cjs.map +7 -0
- package/dist/lib/node/chunk-6VKZJ4MH.cjs +60 -0
- package/dist/lib/node/chunk-6VKZJ4MH.cjs.map +7 -0
- package/dist/lib/node/{meta.cjs → chunk-A2DI2G4D.cjs} +12 -8
- package/dist/lib/node/chunk-A2DI2G4D.cjs.map +7 -0
- package/dist/lib/node/{chunk-4INUJLXL.cjs → chunk-DQRAVZM7.cjs} +6 -6
- package/dist/lib/node/{chunk-6LYX73ZT.cjs → chunk-EFTZN5X7.cjs} +7 -7
- package/dist/lib/node/chunk-EFTZN5X7.cjs.map +7 -0
- package/dist/lib/node/{chunk-WPP65EYS.cjs → chunk-T4TXCRN5.cjs} +6 -44
- package/dist/lib/node/chunk-T4TXCRN5.cjs.map +7 -0
- package/dist/lib/node/chunk-TJ4BTPOS.cjs +64 -0
- package/dist/lib/node/chunk-TJ4BTPOS.cjs.map +7 -0
- package/dist/lib/node/compiler-457ZR24G.cjs +104 -0
- package/dist/lib/node/compiler-457ZR24G.cjs.map +7 -0
- package/dist/lib/node/index.cjs +104 -346
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-resolver-SUAPE7H3.cjs +56 -0
- package/dist/lib/node/intent-resolver-SUAPE7H3.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-OMBMSFZT.cjs +86 -0
- package/dist/lib/node/react-surface-OMBMSFZT.cjs.map +7 -0
- package/dist/lib/node/settings-NGHDYAVK.cjs +38 -0
- package/dist/lib/node/settings-NGHDYAVK.cjs.map +7 -0
- package/dist/lib/node/{types/index.cjs → types.cjs} +6 -8
- package/dist/lib/node/types.cjs.map +7 -0
- package/dist/lib/node-esm/{AutomationPanel-ETQEDY5I.mjs → AutomationPanel-DMLAGQS5.mjs} +4 -11
- package/dist/lib/node-esm/AutomationPanel-DMLAGQS5.mjs.map +7 -0
- package/dist/lib/node-esm/ScriptContainer-3S5VHJVR.mjs +686 -0
- package/dist/lib/node-esm/ScriptContainer-3S5VHJVR.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-675XSDRN.mjs +16 -0
- package/dist/lib/node-esm/chunk-675XSDRN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SLTZMY34.mjs → chunk-BHP545D7.mjs} +3 -3
- package/dist/lib/node-esm/chunk-BHP545D7.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-4SRPREUK.mjs → chunk-G76M6O46.mjs} +2 -51
- package/dist/lib/node-esm/{chunk-4SRPREUK.mjs.map → chunk-G76M6O46.mjs.map} +4 -4
- package/dist/lib/node-esm/chunk-JHGOPQVO.mjs +41 -0
- package/dist/lib/node-esm/chunk-JHGOPQVO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JJZYWSD7.mjs +54 -0
- package/dist/lib/node-esm/chunk-JJZYWSD7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XPIKUBGS.mjs +225 -0
- package/dist/lib/node-esm/chunk-XPIKUBGS.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-OFYGBUNI.mjs → chunk-XUWS7OTK.mjs} +2 -2
- package/dist/lib/node-esm/compiler-PEARFTFR.mjs +85 -0
- package/dist/lib/node-esm/compiler-PEARFTFR.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +107 -357
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-SZJXQ3CW.mjs +43 -0
- package/dist/lib/node-esm/intent-resolver-SZJXQ3CW.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-J7NLV2V4.mjs +68 -0
- package/dist/lib/node-esm/react-surface-J7NLV2V4.mjs.map +7 -0
- package/dist/lib/node-esm/settings-XGXDY4NI.mjs +25 -0
- package/dist/lib/node-esm/settings-XGXDY4NI.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +11 -0
- package/dist/types/src/ScriptPlugin.d.ts +1 -3
- package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +5 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/compiler.d.ts +4 -0
- package/dist/types/src/capabilities/compiler.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +4 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +2 -2
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/ScriptContainer.d.ts +10 -2
- package/dist/types/src/components/ScriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/ScriptSettings/ScriptSettings.d.ts.map +1 -1
- package/dist/types/src/components/ScriptSettingsPanel.d.ts +1 -1
- package/dist/types/src/components/ScriptSettingsPanel.d.ts.map +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts +11 -0
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts.map +1 -0
- package/dist/types/src/components/{Toolbar/Toolbar.stories.d.ts → ScriptToolbar/ScriptToolbar.stories.d.ts} +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/deploy.d.ts +48 -0
- package/dist/types/src/components/ScriptToolbar/deploy.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/format.d.ts +25 -0
- package/dist/types/src/components/ScriptToolbar/format.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/index.d.ts +2 -0
- package/dist/types/src/components/ScriptToolbar/index.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/templateSelect.d.ts +31 -0
- package/dist/types/src/components/ScriptToolbar/templateSelect.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/useToolbarAction.d.ts +14 -0
- package/dist/types/src/components/ScriptToolbar/useToolbarAction.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/useToolbarState.d.ts +10 -0
- package/dist/types/src/components/ScriptToolbar/useToolbarState.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/view.d.ts +33 -0
- package/dist/types/src/components/ScriptToolbar/view.d.ts.map +1 -0
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts +4 -2
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts.map +1 -1
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/templates/email.d.ts +2 -1
- package/dist/types/src/templates/email.d.ts.map +1 -1
- package/dist/types/src/{templates.d.ts → templates/index.d.ts} +1 -1
- package/dist/types/src/templates/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +48 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +30 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +45 -55
- package/src/ScriptPlugin.tsx +65 -145
- package/src/bundler/bundler.test.ts +4 -3
- package/src/capabilities/capabilities.ts +12 -0
- package/src/capabilities/compiler.ts +33 -0
- package/src/capabilities/index.ts +12 -0
- package/src/capabilities/intent-resolver.ts +43 -0
- package/src/capabilities/react-surface.tsx +54 -0
- package/src/capabilities/settings.ts +14 -0
- package/src/compiler/compiler.browser.test.ts +1 -1
- package/src/components/AutomationPanel/AutomationPanel.tsx +2 -4
- package/src/components/FrameContainer/FrameContainer.tsx +1 -1
- package/src/components/ScriptContainer.tsx +64 -9
- package/src/components/ScriptSettings/ScriptSettings.tsx +25 -1
- package/src/components/ScriptSettingsPanel.tsx +125 -52
- package/src/components/{Toolbar/Toolbar.stories.tsx → ScriptToolbar/ScriptToolbar.stories.tsx} +2 -2
- package/src/components/ScriptToolbar/ScriptToolbar.tsx +51 -0
- package/src/components/ScriptToolbar/deploy.ts +157 -0
- package/src/components/ScriptToolbar/format.ts +47 -0
- package/src/components/{Toolbar → ScriptToolbar}/index.ts +1 -1
- package/src/components/ScriptToolbar/templateSelect.ts +64 -0
- package/src/components/ScriptToolbar/useToolbarAction.ts +54 -0
- package/src/components/ScriptToolbar/useToolbarState.ts +16 -0
- package/src/components/ScriptToolbar/view.ts +52 -0
- package/src/components/TypescriptEditor/TypescriptEditor.stories.tsx +2 -0
- package/src/components/TypescriptEditor/TypescriptEditor.tsx +73 -8
- package/src/index.ts +2 -6
- package/src/meta.ts +1 -1
- package/src/templates/email.ts +26 -23
- package/src/{templates.ts → templates/index.ts} +5 -5
- package/src/translations.ts +18 -1
- package/src/types.ts +39 -0
- package/dist/lib/browser/AutomationPanel-PMTZROAZ.mjs.map +0 -7
- package/dist/lib/browser/ScriptContainer-RYZFYCNK.mjs +0 -425
- package/dist/lib/browser/ScriptContainer-RYZFYCNK.mjs.map +0 -7
- package/dist/lib/browser/chunk-C7VBULMK.mjs.map +0 -7
- package/dist/lib/browser/chunk-QFZUFT5G.mjs +0 -48
- package/dist/lib/browser/chunk-QFZUFT5G.mjs.map +0 -7
- package/dist/lib/browser/chunk-U3OP64V4.mjs +0 -123
- package/dist/lib/browser/chunk-U3OP64V4.mjs.map +0 -7
- package/dist/lib/browser/edge/index.mjs +0 -19
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/browser/types/index.mjs +0 -12
- package/dist/lib/browser/types/index.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-AAGQREH7.cjs.map +0 -7
- package/dist/lib/node/ScriptContainer-FZ44UIRC.cjs +0 -427
- package/dist/lib/node/ScriptContainer-FZ44UIRC.cjs.map +0 -7
- package/dist/lib/node/chunk-6LYX73ZT.cjs.map +0 -7
- package/dist/lib/node/chunk-CS25QNKZ.cjs +0 -151
- package/dist/lib/node/chunk-CS25QNKZ.cjs.map +0 -7
- package/dist/lib/node/chunk-DQYAU2CJ.cjs +0 -67
- package/dist/lib/node/chunk-DQYAU2CJ.cjs.map +0 -7
- package/dist/lib/node/chunk-WPP65EYS.cjs.map +0 -7
- package/dist/lib/node/edge/index.cjs +0 -41
- package/dist/lib/node/edge/index.cjs.map +0 -7
- package/dist/lib/node/meta.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-ETQEDY5I.mjs.map +0 -7
- package/dist/lib/node-esm/ScriptContainer-3PKDW34A.mjs +0 -426
- package/dist/lib/node-esm/ScriptContainer-3PKDW34A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-36DLLQ6E.mjs +0 -125
- package/dist/lib/node-esm/chunk-36DLLQ6E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GMVPKT6A.mjs +0 -49
- package/dist/lib/node-esm/chunk-GMVPKT6A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SLTZMY34.mjs.map +0 -7
- package/dist/lib/node-esm/edge/index.mjs +0 -20
- package/dist/lib/node-esm/edge/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/lib/node-esm/meta.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -13
- package/dist/lib/node-esm/types/index.mjs.map +0 -7
- package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts +0 -12
- package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts.map +0 -1
- package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts +0 -6
- package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts.map +0 -1
- package/dist/types/src/components/ScriptBlock/index.d.ts +0 -2
- package/dist/types/src/components/ScriptBlock/index.d.ts.map +0 -1
- package/dist/types/src/components/ScriptEditor.d.ts +0 -9
- package/dist/types/src/components/ScriptEditor.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +0 -23
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/index.d.ts +0 -2
- package/dist/types/src/components/Toolbar/index.d.ts.map +0 -1
- package/dist/types/src/edge/functions.d.ts +0 -25
- package/dist/types/src/edge/functions.d.ts.map +0 -1
- package/dist/types/src/edge/index.d.ts +0 -2
- package/dist/types/src/edge/index.d.ts.map +0 -1
- package/dist/types/src/templates.d.ts.map +0 -1
- package/dist/types/src/types/index.d.ts +0 -3
- package/dist/types/src/types/index.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -71
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts +0 -8
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/components/ScriptBlock/ScriptBlock.stories.tsx +0 -52
- package/src/components/ScriptBlock/ScriptBlock.tsx +0 -102
- package/src/components/ScriptBlock/index.ts +0 -5
- package/src/components/ScriptEditor.tsx +0 -191
- package/src/components/Toolbar/Toolbar.tsx +0 -177
- package/src/edge/functions.ts +0 -116
- package/src/edge/index.ts +0 -7
- package/src/types/index.ts +0 -6
- package/src/types/schema.ts +0 -44
- package/src/types/types.ts +0 -29
- /package/dist/lib/browser/{chunk-K7KY6YMG.mjs.map → chunk-SJ4J527G.mjs.map} +0 -0
- /package/dist/lib/browser/{edge/index.mjs.map → types.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-4INUJLXL.cjs.map → chunk-DQRAVZM7.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-OFYGBUNI.mjs.map → chunk-XUWS7OTK.mjs.map} +0 -0
- /package/dist/lib/{browser/meta.mjs.map → node-esm/types.mjs.map} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ScriptType } from '@dxos/functions';
|
|
2
|
+
import { type ViewState } from './view';
|
|
3
|
+
export type DeployActionProperties = {
|
|
4
|
+
type: 'deploy';
|
|
5
|
+
} | {
|
|
6
|
+
type: 'copy';
|
|
7
|
+
};
|
|
8
|
+
export type DeployState = ViewState & {
|
|
9
|
+
deploying: boolean;
|
|
10
|
+
deployed: boolean;
|
|
11
|
+
functionUrl: string;
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const createDeploy: (state: Partial<DeployState>) => {
|
|
15
|
+
nodes: ({
|
|
16
|
+
id: string;
|
|
17
|
+
type: string;
|
|
18
|
+
properties: {
|
|
19
|
+
label: string | [string, {
|
|
20
|
+
ns: string;
|
|
21
|
+
}];
|
|
22
|
+
icon: string;
|
|
23
|
+
hidden: boolean;
|
|
24
|
+
} & import("@dxos/react-ui-menu").MenuActionProperties;
|
|
25
|
+
data: () => void;
|
|
26
|
+
} | {
|
|
27
|
+
id: string;
|
|
28
|
+
type: string;
|
|
29
|
+
properties: DeployActionProperties & import("@dxos/react-ui-menu").MenuActionProperties;
|
|
30
|
+
data: () => void;
|
|
31
|
+
})[];
|
|
32
|
+
edges: {
|
|
33
|
+
source: string;
|
|
34
|
+
target: string;
|
|
35
|
+
}[];
|
|
36
|
+
};
|
|
37
|
+
export declare const useDeployState: ({ state, script }: {
|
|
38
|
+
state: Partial<DeployState>;
|
|
39
|
+
script: ScriptType;
|
|
40
|
+
}) => void;
|
|
41
|
+
export declare const useDeployHandler: ({ state, script }: {
|
|
42
|
+
state: Partial<DeployState>;
|
|
43
|
+
script: ScriptType;
|
|
44
|
+
}) => () => Promise<void>;
|
|
45
|
+
export declare const useCopyHandler: ({ state }: {
|
|
46
|
+
state: Partial<DeployState>;
|
|
47
|
+
}) => () => Promise<void>;
|
|
48
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/deploy.ts"],"names":[],"mappings":"AAMA,OAAO,EAKL,KAAK,UAAU,EAGhB,MAAM,iBAAiB,CAAC;AAOzB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAIxC,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,OAAO,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;CA8BvD,CAAC;AAUF,eAAO,MAAM,cAAc,sBAAuB;IAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,SAepG,CAAC;AAEF,eAAO,MAAM,gBAAgB,sBAAuB;IAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,wBAyDtG,CAAC;AAEF,eAAO,MAAM,cAAc,cAAe;IAAE,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CAAE,wBAMhD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ScriptType } from '@dxos/functions';
|
|
2
|
+
export type FormatActionProperties = {
|
|
3
|
+
type: 'format';
|
|
4
|
+
};
|
|
5
|
+
export declare const createFormat: () => {
|
|
6
|
+
nodes: {
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
properties: {
|
|
10
|
+
label: [string, {
|
|
11
|
+
ns: string;
|
|
12
|
+
}];
|
|
13
|
+
icon: string;
|
|
14
|
+
} & import("@dxos/react-ui-menu").MenuActionProperties;
|
|
15
|
+
data: () => void;
|
|
16
|
+
}[];
|
|
17
|
+
edges: {
|
|
18
|
+
source: string;
|
|
19
|
+
target: string;
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
export declare const useFormatHandler: ({ script }: {
|
|
23
|
+
script: ScriptType;
|
|
24
|
+
}) => () => Promise<void>;
|
|
25
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/format.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAExD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;CAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,eAAgB;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,wBAiB9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ScriptType } from '@dxos/functions';
|
|
2
|
+
export type TemplateActionProperties = {
|
|
3
|
+
type: 'template';
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const createTemplateSelect: () => {
|
|
7
|
+
nodes: ({
|
|
8
|
+
id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
label: [string, {
|
|
12
|
+
ns: string;
|
|
13
|
+
}];
|
|
14
|
+
variant: string;
|
|
15
|
+
};
|
|
16
|
+
data: typeof import("packages/sdk/app-graph/dist/types/src").actionGroupSymbol;
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
type: string;
|
|
20
|
+
properties: TemplateActionProperties & import("@dxos/react-ui-menu").MenuActionProperties;
|
|
21
|
+
data: () => void;
|
|
22
|
+
})[];
|
|
23
|
+
edges: {
|
|
24
|
+
source: string;
|
|
25
|
+
target: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
export declare const useTemplateSelectHandler: ({ script }: {
|
|
29
|
+
script: ScriptType;
|
|
30
|
+
}) => (templateId: string) => void;
|
|
31
|
+
//# sourceMappingURL=templateSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/templateSelect.ts"],"names":[],"mappings":"AAMA,OAAO,EAA6B,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAO7E,MAAM,MAAM,wBAAwB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAmB3E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;CAUhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,eAAgB;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,kBAE1D,MAAM,SAiBtB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ScriptType } from '@dxos/functions';
|
|
2
|
+
import { type MenuAction, type MenuActionHandler } from '@dxos/react-ui-menu';
|
|
3
|
+
import { type DeployActionProperties } from './deploy';
|
|
4
|
+
import { type FormatActionProperties } from './format';
|
|
5
|
+
import { type TemplateActionProperties } from './templateSelect';
|
|
6
|
+
import { type ScriptToolbarState } from './useToolbarState';
|
|
7
|
+
import { type ViewActionProperties } from './view';
|
|
8
|
+
export type ScriptToolbarActionProperties = TemplateActionProperties | ViewActionProperties | FormatActionProperties | DeployActionProperties;
|
|
9
|
+
export type ScriptToolbarAction = MenuAction<ScriptToolbarActionProperties>;
|
|
10
|
+
export declare const useToolbarAction: (props: {
|
|
11
|
+
state: ScriptToolbarState;
|
|
12
|
+
script: ScriptType;
|
|
13
|
+
}) => MenuActionHandler;
|
|
14
|
+
//# sourceMappingURL=useToolbarAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToolbarAction.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/useToolbarAction.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,KAAK,sBAAsB,EAAoC,MAAM,UAAU,CAAC;AACzF,OAAO,EAAE,KAAK,sBAAsB,EAAoB,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,KAAK,wBAAwB,EAA4B,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,6BAA6B,GACrC,wBAAwB,GACxB,oBAAoB,GACpB,sBAAsB,GACtB,sBAAsB,CAAC;AAE3B,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,6BAA6B,CAAC,CAAC;AAE5E,eAAO,MAAM,gBAAgB,UAAW;IAAE,KAAK,EAAE,kBAAkB,CAAC;IAAC,MAAM,EAAE,UAAU,CAAA;CAAE,sBA6BxF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DeployState } from './deploy';
|
|
2
|
+
import { type ViewState } from './view';
|
|
3
|
+
export type ScriptToolbarState = Partial<DeployState & ViewState>;
|
|
4
|
+
export declare const useToolbarState: (initialState?: ScriptToolbarState) => import("@dxos/live-object").ReactiveObject<Partial<ViewState & {
|
|
5
|
+
deploying: boolean;
|
|
6
|
+
deployed: boolean;
|
|
7
|
+
functionUrl: string;
|
|
8
|
+
error: string;
|
|
9
|
+
}>>;
|
|
10
|
+
//# sourceMappingURL=useToolbarState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToolbarState.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/useToolbarState.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe,kBAAkB,kBAAkB;;;;;GAE/D,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type ViewType = 'editor' | 'split' | 'debug';
|
|
2
|
+
export type ViewState = {
|
|
3
|
+
view: ViewType;
|
|
4
|
+
};
|
|
5
|
+
export type ViewActionProperties = {
|
|
6
|
+
type: 'view';
|
|
7
|
+
value: ViewType;
|
|
8
|
+
};
|
|
9
|
+
export declare const createView: (state: Partial<ViewState>) => {
|
|
10
|
+
nodes: ({
|
|
11
|
+
id: string;
|
|
12
|
+
type: string;
|
|
13
|
+
properties: {
|
|
14
|
+
label: [string, {
|
|
15
|
+
ns: string;
|
|
16
|
+
}];
|
|
17
|
+
variant: string;
|
|
18
|
+
applyActive: boolean;
|
|
19
|
+
value: ViewType | undefined;
|
|
20
|
+
};
|
|
21
|
+
data: typeof import("packages/sdk/app-graph/dist/types/src").actionGroupSymbol;
|
|
22
|
+
} | {
|
|
23
|
+
id: string;
|
|
24
|
+
type: string;
|
|
25
|
+
properties: ViewActionProperties & import("@dxos/react-ui-menu").MenuActionProperties;
|
|
26
|
+
data: () => void;
|
|
27
|
+
})[];
|
|
28
|
+
edges: {
|
|
29
|
+
source: string;
|
|
30
|
+
target: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptToolbar/view.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,CAAC;AA6BrE,eAAO,MAAM,UAAU,UAAW,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAUnD,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type VirtualTypeScriptEnvironment } from '@typescript/vfs';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type UseTextEditorProps } from '@dxos/react-ui-editor';
|
|
3
|
+
import { type EditorInputMode, type UseTextEditorProps } from '@dxos/react-ui-editor';
|
|
4
4
|
export type TypescriptEditorProps = {
|
|
5
5
|
id: string;
|
|
6
|
+
inputMode?: EditorInputMode;
|
|
6
7
|
env?: VirtualTypeScriptEnvironment;
|
|
8
|
+
toolbar?: boolean;
|
|
7
9
|
} & Pick<UseTextEditorProps, 'className' | 'initialValue' | 'extensions' | 'scrollTo' | 'selection'>;
|
|
8
|
-
export declare const TypescriptEditor: ({ id, env, className, initialValue, extensions, scrollTo, selection, }: TypescriptEditorProps) => React.JSX.Element;
|
|
10
|
+
export declare const TypescriptEditor: ({ id, env, className, initialValue, extensions, scrollTo, selection, toolbar, inputMode, }: TypescriptEditorProps) => React.JSX.Element;
|
|
9
11
|
export default TypescriptEditor;
|
|
10
12
|
//# sourceMappingURL=TypescriptEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypescriptEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TypescriptEditor/TypescriptEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TypescriptEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TypescriptEditor/TypescriptEditor.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAKL,KAAK,eAAe,EAMpB,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,GAAG,CAAC,EAAE,4BAA4B,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;AAErG,eAAO,MAAM,gBAAgB,+FAU1B,qBAAqB,sBA0DvB,CAAC;AAqCF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypescriptEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TypescriptEditor/TypescriptEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"TypescriptEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/TypescriptEditor/TypescriptEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AA4B7C,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAKX,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './ScriptSettings';
|
|
2
2
|
export * from './ScriptSettingsPanel';
|
|
3
3
|
export declare const AutomationPanel: import("react").LazyExoticComponent<({ subject }: import("./AutomationPanel").AutomationPanelProps) => import("react").JSX.Element>;
|
|
4
|
-
export declare const ScriptContainer: import("react").LazyExoticComponent<({ script,
|
|
4
|
+
export declare const ScriptContainer: import("react").LazyExoticComponent<({ role, classNames, script, settings, env }: import("./ScriptContainer").ScriptEditorProps) => import("react").JSX.Element>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,eAAe,qIAA0C,CAAC;AACvE,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,eAAe,qIAA0C,CAAC;AACvE,eAAO,MAAM,eAAe,kKAA0C,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { ScriptPlugin } from './ScriptPlugin';
|
|
2
|
-
export default ScriptPlugin;
|
|
3
1
|
export * from './bundler';
|
|
4
|
-
export
|
|
2
|
+
export { ScriptCapabilities } from './capabilities';
|
|
5
3
|
export * from './components';
|
|
6
|
-
export * from './
|
|
4
|
+
export * from './meta';
|
|
7
5
|
export * from './ScriptPlugin';
|
|
8
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AAEvB,cAAc,gBAAgB,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const SCRIPT_PLUGIN = "dxos.org/plugin/script";
|
|
2
|
-
declare const
|
|
2
|
+
export declare const meta: {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -7,5 +7,4 @@ declare const _default: {
|
|
|
7
7
|
source: string;
|
|
8
8
|
tags: string[];
|
|
9
9
|
};
|
|
10
|
-
export default _default;
|
|
11
10
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,2BAA2B,CAAC
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,2BAA2B,CAAC;AAEtD,eAAO,MAAM,IAAI;;;;;;;CAOK,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Appends a message to the end of a Document configured through a trigger.
|
|
3
|
+
* Trigger must have a targetDocumentId field set in Meta.
|
|
3
4
|
*/
|
|
4
5
|
declare const _default: ({ event: { data: { request }, }, context: { space }, }: any) => Promise<Response>;
|
|
5
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../src/templates/email.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../src/templates/email.ts"],"names":[],"mappings":"AAIA;;;GAGG;iFAMA,GAAG;AALN,wBA2BE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/templates/index.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,EA6B/B,CAAC"}
|
|
@@ -21,6 +21,22 @@ declare const _default: {
|
|
|
21
21
|
'function url label'?: undefined;
|
|
22
22
|
'function binding label'?: undefined;
|
|
23
23
|
'function binding placeholder'?: undefined;
|
|
24
|
+
'script publish settings label'?: undefined;
|
|
25
|
+
'script publish settings description'?: undefined;
|
|
26
|
+
'no github token label'?: undefined;
|
|
27
|
+
'open token manager label'?: undefined;
|
|
28
|
+
'publish label'?: undefined;
|
|
29
|
+
'publishing label'?: undefined;
|
|
30
|
+
'editor input mode label'?: undefined;
|
|
31
|
+
'select editor input mode placeholder'?: undefined;
|
|
32
|
+
'settings editor input mode default label'?: undefined;
|
|
33
|
+
'settings editor input mode vim label'?: undefined;
|
|
34
|
+
'settings editor input mode vscode label'?: undefined;
|
|
35
|
+
'view group label'?: undefined;
|
|
36
|
+
'view editor label'?: undefined;
|
|
37
|
+
'view split label'?: undefined;
|
|
38
|
+
'view debug label'?: undefined;
|
|
39
|
+
'template select group label'?: undefined;
|
|
24
40
|
} | {
|
|
25
41
|
'plugin name': string;
|
|
26
42
|
'object title placeholder': string;
|
|
@@ -41,6 +57,22 @@ declare const _default: {
|
|
|
41
57
|
'function url label': string;
|
|
42
58
|
'function binding label': string;
|
|
43
59
|
'function binding placeholder': string;
|
|
60
|
+
'script publish settings label': string;
|
|
61
|
+
'script publish settings description': string;
|
|
62
|
+
'no github token label': string;
|
|
63
|
+
'open token manager label': string;
|
|
64
|
+
'publish label': string;
|
|
65
|
+
'publishing label': string;
|
|
66
|
+
'editor input mode label': string;
|
|
67
|
+
'select editor input mode placeholder': string;
|
|
68
|
+
'settings editor input mode default label': string;
|
|
69
|
+
'settings editor input mode vim label': string;
|
|
70
|
+
'settings editor input mode vscode label': string;
|
|
71
|
+
'view group label': string;
|
|
72
|
+
'view editor label': string;
|
|
73
|
+
'view split label': string;
|
|
74
|
+
'view debug label': string;
|
|
75
|
+
'template select group label': string;
|
|
44
76
|
'typename label'?: undefined;
|
|
45
77
|
};
|
|
46
78
|
"dxos.org/plugin/script": {
|
|
@@ -63,6 +95,22 @@ declare const _default: {
|
|
|
63
95
|
'function url label': string;
|
|
64
96
|
'function binding label': string;
|
|
65
97
|
'function binding placeholder': string;
|
|
98
|
+
'script publish settings label': string;
|
|
99
|
+
'script publish settings description': string;
|
|
100
|
+
'no github token label': string;
|
|
101
|
+
'open token manager label': string;
|
|
102
|
+
'publish label': string;
|
|
103
|
+
'publishing label': string;
|
|
104
|
+
'editor input mode label': string;
|
|
105
|
+
'select editor input mode placeholder': string;
|
|
106
|
+
'settings editor input mode default label': string;
|
|
107
|
+
'settings editor input mode vim label': string;
|
|
108
|
+
'settings editor input mode vscode label': string;
|
|
109
|
+
'view group label': string;
|
|
110
|
+
'view editor label': string;
|
|
111
|
+
'view split label': string;
|
|
112
|
+
'view debug label': string;
|
|
113
|
+
'template select group label': string;
|
|
66
114
|
};
|
|
67
115
|
};
|
|
68
116
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBA6CE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
2
|
+
import { ScriptType } from '@dxos/functions';
|
|
3
|
+
export declare namespace ScriptAction {
|
|
4
|
+
export const CreateScriptSchema: S.Struct<{
|
|
5
|
+
name: S.optional<typeof S.String>;
|
|
6
|
+
gistUrl: S.optional<S.SchemaClass<string, string, never>>;
|
|
7
|
+
}>;
|
|
8
|
+
export type CreateScriptProps = S.Schema.Type<typeof CreateScriptSchema>;
|
|
9
|
+
const Create_base: S.TaggedClass<Create, "dxos.org/plugin/script/action/create", {
|
|
10
|
+
readonly _tag: S.tag<"dxos.org/plugin/script/action/create">;
|
|
11
|
+
} & {
|
|
12
|
+
input: S.extend<S.Struct<{
|
|
13
|
+
name: S.optional<typeof S.String>;
|
|
14
|
+
gistUrl: S.optional<S.SchemaClass<string, string, never>>;
|
|
15
|
+
}>, S.Struct<{
|
|
16
|
+
space: S.Schema<import("@dxos/client/echo").Space, import("@dxos/client/echo").Space, never>;
|
|
17
|
+
}>>;
|
|
18
|
+
output: S.Struct<{
|
|
19
|
+
object: typeof ScriptType;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
22
|
+
export class Create extends Create_base {
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
}
|
|
26
|
+
export declare const ScriptSettingsSchema: S.mutable<S.Struct<{
|
|
27
|
+
editorInputMode: S.Schema<"default" | "vim" | "vscode", "default" | "vim" | "vscode", never>;
|
|
28
|
+
}>>;
|
|
29
|
+
export type ScriptSettingsProps = S.Schema.Type<typeof ScriptSettingsSchema>;
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAK7C,yBAAiB,YAAY,CAAC;IAG5B,MAAM,CAAC,MAAM,kBAAkB;;;MAI7B,CAAC;IAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;;IAEzE,MAAM,OAAO,MAAO,SAAQ,WAK1B;KAAG;;CACN;AAED,eAAO,MAAM,oBAAoB;;GAIhC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"5.7.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-script",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5-labs.a279d8c",
|
|
4
4
|
"description": "Braneframe notebook plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,21 +8,11 @@
|
|
|
8
8
|
"author": "DXOS.org",
|
|
9
9
|
"sideEffects": true,
|
|
10
10
|
"exports": {
|
|
11
|
-
"./edge": {
|
|
12
|
-
"types": "./dist/types/src/edge/index.d.ts",
|
|
13
|
-
"browser": "./dist/lib/browser/edge/index.mjs",
|
|
14
|
-
"node": "./dist/lib/node-esm/edge/index.mjs"
|
|
15
|
-
},
|
|
16
11
|
".": {
|
|
17
12
|
"types": "./dist/types/src/index.d.ts",
|
|
18
13
|
"browser": "./dist/lib/browser/index.mjs",
|
|
19
14
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
20
15
|
},
|
|
21
|
-
"./meta": {
|
|
22
|
-
"types": "./dist/types/src/meta.d.ts",
|
|
23
|
-
"browser": "./dist/lib/browser/meta.mjs",
|
|
24
|
-
"node": "./dist/lib/node-esm/meta.mjs"
|
|
25
|
-
},
|
|
26
16
|
"./types": {
|
|
27
17
|
"types": "./dist/types/src/types/index.d.ts",
|
|
28
18
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
@@ -32,12 +22,6 @@
|
|
|
32
22
|
"types": "dist/types/src/index.d.ts",
|
|
33
23
|
"typesVersions": {
|
|
34
24
|
"*": {
|
|
35
|
-
"edge": [
|
|
36
|
-
"dist/types/src/edge/index.d.ts"
|
|
37
|
-
],
|
|
38
|
-
"meta": [
|
|
39
|
-
"dist/types/src/meta.d.ts"
|
|
40
|
-
],
|
|
41
25
|
"types": [
|
|
42
26
|
"dist/types/src/types/index.d.ts"
|
|
43
27
|
]
|
|
@@ -57,44 +41,50 @@
|
|
|
57
41
|
"@codemirror/view": "^6.34.1",
|
|
58
42
|
"@effect/schema": "^0.75.5",
|
|
59
43
|
"@lezer/common": "^1.2.2",
|
|
44
|
+
"@lezer/highlight": "^1.2.1",
|
|
45
|
+
"@octokit/core": "^4.0.4",
|
|
60
46
|
"@preact/signals-core": "^1.6.0",
|
|
61
47
|
"@typescript/vfs": "^1.6.0",
|
|
48
|
+
"@valtown/codemirror-continue": "^2.3.1",
|
|
62
49
|
"@valtown/codemirror-ts": "^2.2.0",
|
|
63
50
|
"codemirror": "^6.0.1",
|
|
64
51
|
"esbuild-wasm": "^0.16.14",
|
|
65
|
-
"iso-did": "^1.6.0",
|
|
66
52
|
"lodash.get": "^4.4.2",
|
|
67
53
|
"prettier": "^3.2.4",
|
|
68
54
|
"react-syntax-highlighter": "^15.5.0",
|
|
69
|
-
"typescript": "^5.
|
|
70
|
-
"@dxos/app-framework": "0.7.
|
|
71
|
-
"@dxos/async": "0.7.
|
|
72
|
-
"@dxos/client
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/debug": "0.7.
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/live-object": "0.7.
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/plugin-
|
|
84
|
-
"@dxos/plugin-explorer": "0.7.
|
|
85
|
-
"@dxos/plugin-
|
|
86
|
-
"@dxos/plugin-markdown": "0.7.
|
|
87
|
-
"@dxos/plugin-stack": "0.7.
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/react-ui-attention": "0.7.
|
|
92
|
-
"@dxos/react-ui-form": "0.7.
|
|
93
|
-
"@dxos/react-ui-editor": "0.7.
|
|
94
|
-
"@dxos/react-ui-
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
55
|
+
"typescript": "^5.7.2",
|
|
56
|
+
"@dxos/app-framework": "0.7.5-labs.a279d8c",
|
|
57
|
+
"@dxos/async": "0.7.5-labs.a279d8c",
|
|
58
|
+
"@dxos/client": "0.7.5-labs.a279d8c",
|
|
59
|
+
"@dxos/client-protocol": "0.7.5-labs.a279d8c",
|
|
60
|
+
"@dxos/compute": "0.7.5-labs.a279d8c",
|
|
61
|
+
"@dxos/debug": "0.7.5-labs.a279d8c",
|
|
62
|
+
"@dxos/crypto": "0.7.5-labs.a279d8c",
|
|
63
|
+
"@dxos/echo-schema": "0.7.5-labs.a279d8c",
|
|
64
|
+
"@dxos/functions": "0.7.5-labs.a279d8c",
|
|
65
|
+
"@dxos/invariant": "0.7.5-labs.a279d8c",
|
|
66
|
+
"@dxos/live-object": "0.7.5-labs.a279d8c",
|
|
67
|
+
"@dxos/keys": "0.7.5-labs.a279d8c",
|
|
68
|
+
"@dxos/log": "0.7.5-labs.a279d8c",
|
|
69
|
+
"@dxos/plugin-client": "0.7.5-labs.a279d8c",
|
|
70
|
+
"@dxos/plugin-explorer": "0.7.5-labs.a279d8c",
|
|
71
|
+
"@dxos/plugin-graph": "0.7.5-labs.a279d8c",
|
|
72
|
+
"@dxos/plugin-markdown": "0.7.5-labs.a279d8c",
|
|
73
|
+
"@dxos/plugin-stack": "0.7.5-labs.a279d8c",
|
|
74
|
+
"@dxos/plugin-space": "0.7.5-labs.a279d8c",
|
|
75
|
+
"@dxos/plugin-theme": "0.7.5-labs.a279d8c",
|
|
76
|
+
"@dxos/react-client": "0.7.5-labs.a279d8c",
|
|
77
|
+
"@dxos/react-ui-attention": "0.7.5-labs.a279d8c",
|
|
78
|
+
"@dxos/react-ui-form": "0.7.5-labs.a279d8c",
|
|
79
|
+
"@dxos/react-ui-editor": "0.7.5-labs.a279d8c",
|
|
80
|
+
"@dxos/react-ui-menu": "0.7.5-labs.a279d8c",
|
|
81
|
+
"@dxos/protocols": "0.7.5-labs.a279d8c",
|
|
82
|
+
"@dxos/react-ui-stack": "0.7.5-labs.a279d8c",
|
|
83
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-labs.a279d8c",
|
|
84
|
+
"@dxos/rpc": "0.7.5-labs.a279d8c",
|
|
85
|
+
"@dxos/rpc-tunnel": "0.7.5-labs.a279d8c",
|
|
86
|
+
"@dxos/schema": "0.7.5-labs.a279d8c",
|
|
87
|
+
"@dxos/util": "0.7.5-labs.a279d8c"
|
|
98
88
|
},
|
|
99
89
|
"devDependencies": {
|
|
100
90
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -104,19 +94,19 @@
|
|
|
104
94
|
"react": "~18.2.0",
|
|
105
95
|
"react-dom": "~18.2.0",
|
|
106
96
|
"vite": "5.4.7",
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/react-ui-mosaic": "0.7.
|
|
109
|
-
"@dxos/react-ui-theme": "0.7.
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/storybook-utils": "0.7.
|
|
97
|
+
"@dxos/react-ui": "0.7.5-labs.a279d8c",
|
|
98
|
+
"@dxos/react-ui-mosaic": "0.7.5-labs.a279d8c",
|
|
99
|
+
"@dxos/react-ui-theme": "0.7.5-labs.a279d8c",
|
|
100
|
+
"@dxos/random": "0.7.5-labs.a279d8c",
|
|
101
|
+
"@dxos/storybook-utils": "0.7.5-labs.a279d8c"
|
|
112
102
|
},
|
|
113
103
|
"peerDependencies": {
|
|
114
104
|
"@phosphor-icons/react": "^2.1.5",
|
|
115
105
|
"react": "~18.2.0",
|
|
116
106
|
"react-dom": "~18.2.0",
|
|
117
|
-
"@dxos/react-ui
|
|
118
|
-
"@dxos/react-ui-
|
|
119
|
-
"@dxos/react-ui": "0.7.
|
|
107
|
+
"@dxos/react-ui": "0.7.5-labs.a279d8c",
|
|
108
|
+
"@dxos/react-ui-mosaic": "0.7.5-labs.a279d8c",
|
|
109
|
+
"@dxos/react-ui-theme": "0.7.5-labs.a279d8c"
|
|
120
110
|
},
|
|
121
111
|
"publishConfig": {
|
|
122
112
|
"access": "public"
|