@dxos/plugin-script 0.6.8-main.046e6cf

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +4 -0
  3. package/dist/lib/browser/ScriptEditor-6Q7HFLJ6.mjs +220 -0
  4. package/dist/lib/browser/ScriptEditor-6Q7HFLJ6.mjs.map +7 -0
  5. package/dist/lib/browser/TypescriptEditor-HP35MTEQ.mjs +9 -0
  6. package/dist/lib/browser/TypescriptEditor-HP35MTEQ.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-2EM5Y66A.mjs +60 -0
  8. package/dist/lib/browser/chunk-2EM5Y66A.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-EZ7PWOLU.mjs +235 -0
  10. package/dist/lib/browser/chunk-EZ7PWOLU.mjs.map +7 -0
  11. package/dist/lib/browser/chunk-JBACGDOJ.mjs +21 -0
  12. package/dist/lib/browser/chunk-JBACGDOJ.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-Z72YKDJ2.mjs +31 -0
  14. package/dist/lib/browser/chunk-Z72YKDJ2.mjs.map +7 -0
  15. package/dist/lib/browser/edge/index.mjs +19 -0
  16. package/dist/lib/browser/edge/index.mjs.map +7 -0
  17. package/dist/lib/browser/index.mjs +395 -0
  18. package/dist/lib/browser/index.mjs.map +7 -0
  19. package/dist/lib/browser/meta.json +1 -0
  20. package/dist/lib/browser/meta.mjs +9 -0
  21. package/dist/lib/browser/meta.mjs.map +7 -0
  22. package/dist/lib/browser/types/index.mjs +10 -0
  23. package/dist/lib/browser/types/index.mjs.map +7 -0
  24. package/dist/lib/node/ScriptEditor-AIVKL2NX.cjs +239 -0
  25. package/dist/lib/node/ScriptEditor-AIVKL2NX.cjs.map +7 -0
  26. package/dist/lib/node/TypescriptEditor-PWOAN5RQ.cjs +30 -0
  27. package/dist/lib/node/TypescriptEditor-PWOAN5RQ.cjs.map +7 -0
  28. package/dist/lib/node/chunk-4VMNBXWU.cjs +54 -0
  29. package/dist/lib/node/chunk-4VMNBXWU.cjs.map +7 -0
  30. package/dist/lib/node/chunk-6Y2S6SGK.cjs +49 -0
  31. package/dist/lib/node/chunk-6Y2S6SGK.cjs.map +7 -0
  32. package/dist/lib/node/chunk-LWUBFTPA.cjs +253 -0
  33. package/dist/lib/node/chunk-LWUBFTPA.cjs.map +7 -0
  34. package/dist/lib/node/chunk-SLV3SDZE.cjs +93 -0
  35. package/dist/lib/node/chunk-SLV3SDZE.cjs.map +7 -0
  36. package/dist/lib/node/edge/index.cjs +41 -0
  37. package/dist/lib/node/edge/index.cjs.map +7 -0
  38. package/dist/lib/node/index.cjs +417 -0
  39. package/dist/lib/node/index.cjs.map +7 -0
  40. package/dist/lib/node/meta.cjs +30 -0
  41. package/dist/lib/node/meta.cjs.map +7 -0
  42. package/dist/lib/node/meta.json +1 -0
  43. package/dist/lib/node/types/index.cjs +32 -0
  44. package/dist/lib/node/types/index.cjs.map +7 -0
  45. package/dist/types/src/ScriptPlugin.d.ts +7 -0
  46. package/dist/types/src/ScriptPlugin.d.ts.map +1 -0
  47. package/dist/types/src/compiler/compiler.d.ts +38 -0
  48. package/dist/types/src/compiler/compiler.d.ts.map +1 -0
  49. package/dist/types/src/compiler/compiler.test.d.ts +2 -0
  50. package/dist/types/src/compiler/compiler.test.d.ts.map +1 -0
  51. package/dist/types/src/compiler/index.d.ts +2 -0
  52. package/dist/types/src/compiler/index.d.ts.map +1 -0
  53. package/dist/types/src/components/ScriptBlock/FrameContainer/FrameContainer.d.ts +12 -0
  54. package/dist/types/src/components/ScriptBlock/FrameContainer/FrameContainer.d.ts.map +1 -0
  55. package/dist/types/src/components/ScriptBlock/FrameContainer/frame.d.ts +2 -0
  56. package/dist/types/src/components/ScriptBlock/FrameContainer/frame.d.ts.map +1 -0
  57. package/dist/types/src/components/ScriptBlock/FrameContainer/index.d.ts +2 -0
  58. package/dist/types/src/components/ScriptBlock/FrameContainer/index.d.ts.map +1 -0
  59. package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts +18 -0
  60. package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts.map +1 -0
  61. package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts +14 -0
  62. package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts.map +1 -0
  63. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.d.ts +15 -0
  64. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.d.ts.map +1 -0
  65. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.stories.d.ts +13 -0
  66. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.stories.d.ts.map +1 -0
  67. package/dist/types/src/components/ScriptBlock/Splitter/index.d.ts +2 -0
  68. package/dist/types/src/components/ScriptBlock/Splitter/index.d.ts.map +1 -0
  69. package/dist/types/src/components/ScriptBlock/index.d.ts +2 -0
  70. package/dist/types/src/components/ScriptBlock/index.d.ts.map +1 -0
  71. package/dist/types/src/components/ScriptEditor.d.ts +9 -0
  72. package/dist/types/src/components/ScriptEditor.d.ts.map +1 -0
  73. package/dist/types/src/components/Toolbar.d.ts +11 -0
  74. package/dist/types/src/components/Toolbar.d.ts.map +1 -0
  75. package/dist/types/src/components/Toolbar.stories.d.ts +16 -0
  76. package/dist/types/src/components/Toolbar.stories.d.ts.map +1 -0
  77. package/dist/types/src/components/TypescriptEditor.d.ts +10 -0
  78. package/dist/types/src/components/TypescriptEditor.d.ts.map +1 -0
  79. package/dist/types/src/components/TypescriptEditor.stories.d.ts +13 -0
  80. package/dist/types/src/components/TypescriptEditor.stories.d.ts.map +1 -0
  81. package/dist/types/src/components/index.d.ts +4 -0
  82. package/dist/types/src/components/index.d.ts.map +1 -0
  83. package/dist/types/src/edge/codec.d.ts +4 -0
  84. package/dist/types/src/edge/codec.d.ts.map +1 -0
  85. package/dist/types/src/edge/functions.d.ts +23 -0
  86. package/dist/types/src/edge/functions.d.ts.map +1 -0
  87. package/dist/types/src/edge/header-codec.d.ts +24 -0
  88. package/dist/types/src/edge/header-codec.d.ts.map +1 -0
  89. package/dist/types/src/edge/hub-protocol.d.ts +6 -0
  90. package/dist/types/src/edge/hub-protocol.d.ts.map +1 -0
  91. package/dist/types/src/edge/index.d.ts +5 -0
  92. package/dist/types/src/edge/index.d.ts.map +1 -0
  93. package/dist/types/src/index.d.ts +7 -0
  94. package/dist/types/src/index.d.ts.map +1 -0
  95. package/dist/types/src/meta.d.ts +15 -0
  96. package/dist/types/src/meta.d.ts.map +1 -0
  97. package/dist/types/src/translations.d.ts +19 -0
  98. package/dist/types/src/translations.d.ts.map +1 -0
  99. package/dist/types/src/types/index.d.ts +3 -0
  100. package/dist/types/src/types/index.d.ts.map +1 -0
  101. package/dist/types/src/types/script.d.ts +26 -0
  102. package/dist/types/src/types/script.d.ts.map +1 -0
  103. package/dist/types/src/types/types.d.ts +8 -0
  104. package/dist/types/src/types/types.d.ts.map +1 -0
  105. package/package.json +120 -0
  106. package/src/ScriptPlugin.tsx +137 -0
  107. package/src/compiler/compiler.test.ts +17 -0
  108. package/src/compiler/compiler.ts +210 -0
  109. package/src/compiler/index.ts +5 -0
  110. package/src/components/ScriptBlock/FrameContainer/FrameContainer.tsx +82 -0
  111. package/src/components/ScriptBlock/FrameContainer/frame.html +25 -0
  112. package/src/components/ScriptBlock/FrameContainer/frame.tsx +51 -0
  113. package/src/components/ScriptBlock/FrameContainer/index.ts +5 -0
  114. package/src/components/ScriptBlock/ScriptBlock.stories.tsx +64 -0
  115. package/src/components/ScriptBlock/ScriptBlock.tsx +132 -0
  116. package/src/components/ScriptBlock/Splitter/Splitter.stories.tsx +37 -0
  117. package/src/components/ScriptBlock/Splitter/Splitter.tsx +52 -0
  118. package/src/components/ScriptBlock/Splitter/index.ts +5 -0
  119. package/src/components/ScriptBlock/index.ts +5 -0
  120. package/src/components/ScriptEditor.tsx +113 -0
  121. package/src/components/Toolbar.stories.tsx +19 -0
  122. package/src/components/Toolbar.tsx +163 -0
  123. package/src/components/TypescriptEditor.stories.tsx +63 -0
  124. package/src/components/TypescriptEditor.tsx +66 -0
  125. package/src/components/index.ts +8 -0
  126. package/src/edge/codec.ts +13 -0
  127. package/src/edge/functions.ts +128 -0
  128. package/src/edge/header-codec.ts +97 -0
  129. package/src/edge/hub-protocol.ts +27 -0
  130. package/src/edge/index.ts +10 -0
  131. package/src/index.ts +13 -0
  132. package/src/meta.tsx +19 -0
  133. package/src/translations.ts +25 -0
  134. package/src/types/index.ts +6 -0
  135. package/src/types/script.ts +16 -0
  136. package/src/types/types.tsx +27 -0
@@ -0,0 +1,38 @@
1
+ import { type BuildOptions } from 'esbuild';
2
+ import { type BuildResult } from 'esbuild-wasm';
3
+ export type Import = {
4
+ moduleUrl: string;
5
+ defaultImport: boolean;
6
+ namedImports: string[];
7
+ };
8
+ export type CompilerResult = {
9
+ timestamp: number;
10
+ sourceHash: Buffer;
11
+ imports?: Import[];
12
+ bundle?: string;
13
+ error?: any;
14
+ };
15
+ export type CompilerOptions = {
16
+ platform: BuildOptions['platform'];
17
+ providedModules: string[];
18
+ };
19
+ export declare const initializeCompiler: (options: {
20
+ wasmURL: string;
21
+ }) => Promise<void>;
22
+ /**
23
+ * ESBuild compiler.
24
+ */
25
+ export declare class Compiler {
26
+ private readonly _options;
27
+ constructor(_options: CompilerOptions);
28
+ compile(source: string): Promise<CompilerResult>;
29
+ analyzeImports(result: BuildResult): Import[];
30
+ analyzeSourceFileImports(code: string): {
31
+ defaultImportName: string;
32
+ namedImports: string[];
33
+ wildcardImportName: string;
34
+ moduleIdentifier: string;
35
+ quotes: string;
36
+ }[];
37
+ }
38
+ //# sourceMappingURL=compiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../../../src/compiler/compiler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAKnE,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IACnC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAGF,eAAO,MAAM,kBAAkB,YAAmB;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,kBAIpE,CAAC;AAEF;;GAEG;AACH,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,eAAe;IAEhD,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IA6EtD,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,EAAE;IA2B7C,wBAAwB,CAAC,IAAI,EAAE,MAAM;;;;;;;CAatC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=compiler.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compiler.test.d.ts","sourceRoot":"","sources":["../../../../src/compiler/compiler.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './compiler';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/compiler/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { type CompilerResult } from '../../../compiler';
3
+ export type FrameContainerProps = {
4
+ containerUrl: string;
5
+ result: CompilerResult;
6
+ debug?: boolean;
7
+ };
8
+ /**
9
+ * IFrame container for the compiled script.
10
+ */
11
+ export declare const FrameContainer: ({ containerUrl, result, debug }: FrameContainerProps) => React.JSX.Element;
12
+ //# sourceMappingURL=FrameContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScriptBlock/FrameContainer/FrameContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,oCAA4C,mBAAmB,sBAyDzF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScriptBlock/FrameContainer/frame.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './FrameContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScriptBlock/FrameContainer/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { type View } from './Splitter';
3
+ import { type ScriptType } from '../../types';
4
+ export type ScriptBlockProps = {
5
+ script: ScriptType;
6
+ view?: View;
7
+ hideSelector?: boolean;
8
+ classes?: {
9
+ root?: string;
10
+ toolbar?: string;
11
+ };
12
+ containerUrl: string;
13
+ };
14
+ /**
15
+ * @deprecated
16
+ */
17
+ export declare const ScriptBlock: ({ script, view: controlledView, hideSelector, classes, containerUrl, }: ScriptBlockProps) => React.JSX.Element;
18
+ //# sourceMappingURL=ScriptBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptBlock.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAOzE,OAAO,EAA8B,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAEnE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAa9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAGF,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,WAAW,2EAMrB,gBAAgB,sBA+ElB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import '@dxosTheme';
2
+ import React from 'react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ script, view: controlledView, hideSelector, classes, containerUrl, }: import("./ScriptBlock").ScriptBlockProps) => React.JSX.Element;
6
+ render: () => React.JSX.Element;
7
+ decorators: import("@storybook/react/*").Decorator[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default _default;
13
+ export declare const Default: {};
14
+ //# sourceMappingURL=ScriptBlock.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptBlock.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAA6B,MAAM,OAAO,CAAC;;;;;;;;;;AA+ClD,wBAQE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React, { type ReactNode } from 'react';
2
+ export type View = 'editor' | 'preview' | 'split';
3
+ export type SplitterProps = {
4
+ view?: View;
5
+ className?: string;
6
+ children?: ReactNode[];
7
+ };
8
+ export declare const Splitter: ({ view, className, children }: SplitterProps) => React.JSX.Element;
9
+ export type SplitterSelectorProps = {
10
+ view?: View;
11
+ onChange?: (view: View) => void;
12
+ className?: string;
13
+ };
14
+ export declare const SplitterSelector: ({ view, onChange, className }: SplitterSelectorProps) => React.JSX.Element;
15
+ //# sourceMappingURL=Splitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Splitter.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScriptBlock/Splitter/Splitter.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9C,MAAM,MAAM,IAAI,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB,CAAC;AAGF,eAAO,MAAM,QAAQ,kCAAkD,aAAa,sBAQnF,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,kCAAmC,qBAAqB,sBAgBpF,CAAC"}
@@ -0,0 +1,13 @@
1
+ import '@dxosTheme';
2
+ import React from 'react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ view, className, children }: import("./Splitter").SplitterProps) => React.JSX.Element;
6
+ render: () => React.JSX.Element;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default _default;
12
+ export declare const Default: {};
13
+ //# sourceMappingURL=Splitter.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Splitter.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScriptBlock/Splitter/Splitter.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAmB,MAAM,OAAO,CAAC;;;;;;;;;AAqBxC,wBAOE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Splitter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScriptBlock/Splitter/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ScriptBlock';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { type ScriptType } from '../types';
3
+ export type ScriptEditorProps = {
4
+ script: ScriptType;
5
+ role?: string;
6
+ };
7
+ export declare const ScriptEditor: ({ script, role }: ScriptEditorProps) => React.JSX.Element;
8
+ export default ScriptEditor;
9
+ //# sourceMappingURL=ScriptEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/ScriptEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAmB9D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,qBAAsB,iBAAiB,sBA+E/D,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export type ToolbarProps = {
3
+ binding: string;
4
+ onBindingChange: (binding: string) => void;
5
+ deployed?: boolean;
6
+ onDeploy?: () => Promise<void>;
7
+ functionUrl?: string;
8
+ error?: string;
9
+ };
10
+ export declare const Toolbar: ({ binding, onBindingChange, deployed, onDeploy, functionUrl, error }: ToolbarProps) => React.JSX.Element;
11
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../src/components/Toolbar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAehD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,OAAO,yEAA0E,YAAY,sBAqIzG,CAAC"}
@@ -0,0 +1,16 @@
1
+ import '@dxosTheme';
2
+ declare const _default: {
3
+ title: string;
4
+ component: ({ binding, onBindingChange, deployed, onDeploy, functionUrl, error }: import("./Toolbar").ToolbarProps) => import("react").JSX.Element;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default _default;
10
+ export declare const Default: {
11
+ args: {
12
+ binding: string;
13
+ deployed: boolean;
14
+ };
15
+ };
16
+ //# sourceMappingURL=Toolbar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,YAAY,CAAC;;;;;;;;AAMpB,wBAME;AAEF,eAAO,MAAM,OAAO;;;;;CAAmD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { type UseTextEditorProps } from '@dxos/react-ui-editor';
3
+ export type TypescriptEditorProps = {
4
+ id: string;
5
+ className?: string;
6
+ scrollPastEnd?: boolean;
7
+ } & Pick<UseTextEditorProps, 'initialValue' | 'extensions' | 'scrollTo' | 'selection'>;
8
+ export declare const TypescriptEditor: ({ id, extensions, initialValue, scrollTo, selection, className, scrollPastEnd, }: TypescriptEditorProps) => React.JSX.Element;
9
+ export default TypescriptEditor;
10
+ //# sourceMappingURL=TypescriptEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/TypescriptEditor.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAML,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;AAEvF,eAAO,MAAM,gBAAgB,qFAQ1B,qBAAqB,sBA6BvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import '@dxosTheme';
2
+ import React from 'react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ id, extensions, initialValue, scrollTo, selection, className, scrollPastEnd, }: import("./TypescriptEditor").TypescriptEditorProps) => React.JSX.Element;
6
+ render: () => React.JSX.Element;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default _default;
12
+ export declare const Default: {};
13
+ //# sourceMappingURL=TypescriptEditor.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/TypescriptEditor.stories.tsx"],"names":[],"mappings":"AAeA,OAAO,YAAY,CAAC;AAEpB,OAAO,KAAkB,MAAM,OAAO,CAAC;;;;;;;;;AAoCvC,wBAOE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const ScriptEditor: React.LazyExoticComponent<({ script, role }: import("./ScriptEditor").ScriptEditorProps) => React.JSX.Element>;
3
+ export declare const TypescriptEditor: React.LazyExoticComponent<({ id, extensions, initialValue, scrollTo, selection, className, scrollPastEnd, }: import("./TypescriptEditor").TypescriptEditorProps) => React.JSX.Element>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,YAAY,gHAA6C,CAAC;AACvE,eAAO,MAAM,gBAAgB,wLAAiD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { PublicKey } from '@dxos/keys';
2
+ import { HeaderCodec } from './header-codec';
3
+ export declare const codec: HeaderCodec<PublicKey>;
4
+ //# sourceMappingURL=codec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec.d.ts","sourceRoot":"","sources":["../../../../src/edge/codec.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AAE9D,eAAO,MAAM,KAAK,wBAIhB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { type DID } from 'iso-did/types';
2
+ import { type Config } from '@dxos/client';
3
+ import { type Halo } from '@dxos/client-protocol';
4
+ import { type ObjectMeta } from '@dxos/echo-schema';
5
+ export type UserFunctionUploadResult = {
6
+ result: 'success' | 'error';
7
+ errorMessage?: string;
8
+ functionId?: string;
9
+ functionVersionNumber?: number;
10
+ };
11
+ export type UploadWorkerProps = {
12
+ clientConfig: Config;
13
+ halo: Halo;
14
+ name?: string;
15
+ source: string;
16
+ functionId?: string;
17
+ ownerDid: DID;
18
+ credentialLoadTimeout?: number;
19
+ };
20
+ export declare const uploadWorkerFunction: ({ clientConfig, halo, name, source, ownerDid, functionId, credentialLoadTimeout, }: UploadWorkerProps) => Promise<UserFunctionUploadResult>;
21
+ export declare const getUserFunctionUrlInMetadata: (meta: ObjectMeta) => string | undefined;
22
+ export declare const setUserFunctionUrlInMetadata: (meta: ObjectMeta, functionUrl: string) => void;
23
+ //# sourceMappingURL=functions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../../src/edge/functions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAapD,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,GAAG,CAAC;IACd,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AASF,eAAO,MAAM,oBAAoB,uFAQ9B,iBAAiB,sCAwBnB,CAAC;AAEF,eAAO,MAAM,4BAA4B,SAAU,UAAU,uBAE5D,CAAC;AAEF,eAAO,MAAM,4BAA4B,SAAU,UAAU,eAAe,MAAM,SASjF,CAAC"}
@@ -0,0 +1,24 @@
1
+ export type EncodedKey = {
2
+ __k: string;
3
+ };
4
+ export type EncodedBytes = {
5
+ __b: string;
6
+ };
7
+ export type EncodedTimestamp = {
8
+ __t: number;
9
+ };
10
+ export interface KeyCodec<KeyType> {
11
+ isKey(value: any): value is KeyType;
12
+ encode(key: KeyType): EncodedKey;
13
+ decode(value: EncodedKey): KeyType;
14
+ }
15
+ export declare class HeaderCodec<Key> {
16
+ private readonly _keyCodec;
17
+ constructor(_keyCodec: KeyCodec<Key>);
18
+ encode(obj: any): string;
19
+ decode<Type>(buffer: string): Type;
20
+ private _decodeRecursive;
21
+ private _prepareForEncoding;
22
+ private _recurse;
23
+ }
24
+ //# sourceMappingURL=header-codec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-codec.d.ts","sourceRoot":"","sources":["../../../../src/edge/header-codec.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,MAAM,WAAW,QAAQ,CAAC,OAAO;IAC/B,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,OAAO,CAAC;IACpC,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC;CACpC;AAGD,qBAAa,WAAW,CAAC,GAAG;IACd,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC;IAErD,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM;IAMxB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAKlC,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,QAAQ;CAqBjB"}
@@ -0,0 +1,6 @@
1
+ import { type DID } from 'iso-did/types';
2
+ import { type Credential } from '@dxos/client/halo';
3
+ import { type PublicKey } from '@dxos/keys';
4
+ export declare const matchServiceCredential: (capabilities?: string[]) => (credential: Credential) => boolean;
5
+ export declare const publicKeyToDid: (key: PublicKey) => DID;
6
+ //# sourceMappingURL=hub-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub-protocol.d.ts","sourceRoot":"","sources":["../../../../src/edge/hub-protocol.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,eAAO,MAAM,sBAAsB,kBAClB,MAAM,EAAE,kBACV,UAAU,YAOtB,CAAC;AAIJ,eAAO,MAAM,cAAc,QAAS,SAAS,KAAG,GAE/C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './codec';
2
+ export * from './functions';
3
+ export * from './header-codec';
4
+ export * from './hub-protocol';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edge/index.ts"],"names":[],"mappings":"AAMA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ScriptPlugin } from './ScriptPlugin';
2
+ export default ScriptPlugin;
3
+ export * from './compiler';
4
+ export * from './components';
5
+ export * from './types';
6
+ export * from './ScriptPlugin';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAe,YAAY,CAAC;AAE5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type IconProps } from '@phosphor-icons/react';
2
+ import React from 'react';
3
+ export declare const SCRIPT_PLUGIN = "dxos.org/plugin/script";
4
+ declare const _default: {
5
+ id: string;
6
+ shortId?: string;
7
+ name?: string;
8
+ description?: string;
9
+ homePage?: string;
10
+ tags?: string[];
11
+ iconComponent?: React.FC<IconProps>;
12
+ iconSymbol?: string;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,aAAa,2BAA2B,CAAC;;;;;;;;;;;AAEtD,wBAOG"}
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ 'en-US': {
3
+ "dxos.org/plugin/script": {
4
+ 'plugin name': string;
5
+ 'object title placeholder': string;
6
+ 'create object label': string;
7
+ 'create stack section label': string;
8
+ 'binding label': string;
9
+ 'binding placeholder': string;
10
+ 'edit binding label': string;
11
+ 'deploy label': string;
12
+ 'deployed label': string;
13
+ 'upload failed label': string;
14
+ 'copy link label': string;
15
+ };
16
+ };
17
+ }[];
18
+ export default _default;
19
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAMA,wBAkBE"}
@@ -0,0 +1,3 @@
1
+ export * from './script';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { ref, S } from '@dxos/echo-schema';
2
+ declare const ScriptType_base: import("@dxos/echo-schema").AbstractTypedObject<{
3
+ source: import("@dxos/echo-schema").Ref<{
4
+ content: string;
5
+ } & {
6
+ id: string;
7
+ }>;
8
+ name?: string | undefined;
9
+ binding?: string | undefined;
10
+ changed?: boolean | undefined;
11
+ } & {
12
+ id: string;
13
+ }, S.Struct.Encoded<{
14
+ name: S.optional<typeof S.String>;
15
+ source: ref<{
16
+ content: string;
17
+ } & {
18
+ id: string;
19
+ }>;
20
+ binding: S.optional<typeof S.String>;
21
+ changed: S.optional<typeof S.Boolean>;
22
+ }>>;
23
+ export declare class ScriptType extends ScriptType_base {
24
+ }
25
+ export {};
26
+ //# sourceMappingURL=script.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../../src/types/script.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,CAAC,EAAe,MAAM,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAGxD,qBAAa,UAAW,SAAQ,eAQ9B;CAAG"}
@@ -0,0 +1,8 @@
1
+ import type { GraphBuilderProvides, IntentResolverProvides, MetadataRecordsProvides, SurfaceProvides, TranslationsProvides } from '@dxos/app-framework';
2
+ import { type SchemaProvides } from '@dxos/plugin-client';
3
+ import type { StackProvides } from '@dxos/plugin-stack';
4
+ export declare enum ScriptAction {
5
+ CREATE = "dxos.org/plugin/script/create"
6
+ }
7
+ export type ScriptPluginProvides = SurfaceProvides & IntentResolverProvides & GraphBuilderProvides & MetadataRecordsProvides & TranslationsProvides & SchemaProvides & StackProvides;
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAIxD,oBAAY,YAAY;IACtB,MAAM,kCAA4B;CACnC;AAED,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAChD,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,GACd,aAAa,CAAC"}
package/package.json ADDED
@@ -0,0 +1,120 @@
1
+ {
2
+ "name": "@dxos/plugin-script",
3
+ "version": "0.6.8-main.046e6cf",
4
+ "description": "Braneframe notebook plugin",
5
+ "homepage": "https://dxos.org",
6
+ "bugs": "https://github.com/dxos/dxos/issues",
7
+ "license": "MIT",
8
+ "author": "DXOS.org",
9
+ "exports": {
10
+ ".": {
11
+ "browser": "./dist/lib/browser/index.mjs",
12
+ "node": {
13
+ "default": "./dist/lib/node/index.cjs"
14
+ },
15
+ "types": "./dist/types/src/index.d.ts"
16
+ },
17
+ "./edge": {
18
+ "browser": "./dist/lib/browser/edge/index.mjs",
19
+ "node": {
20
+ "default": "./dist/lib/node/edge/index.cjs"
21
+ },
22
+ "types": "./dist/types/src/edge/index.d.ts"
23
+ },
24
+ "./meta": {
25
+ "browser": "./dist/lib/browser/meta.mjs",
26
+ "node": {
27
+ "default": "./dist/lib/node/meta.cjs"
28
+ },
29
+ "types": "./dist/types/src/meta.d.ts"
30
+ },
31
+ "./types": {
32
+ "browser": "./dist/lib/browser/types/index.mjs",
33
+ "node": {
34
+ "default": "./dist/lib/node/types/index.cjs"
35
+ },
36
+ "types": "./dist/types/src/types/index.d.ts"
37
+ }
38
+ },
39
+ "types": "dist/types/src/index.d.ts",
40
+ "typesVersions": {
41
+ "*": {
42
+ "edge": [
43
+ "dist/types/src/edge/index.d.ts"
44
+ ],
45
+ "meta": [
46
+ "dist/types/src/meta.d.ts"
47
+ ],
48
+ "types": [
49
+ "dist/types/src/types/index.d.ts"
50
+ ]
51
+ }
52
+ },
53
+ "files": [
54
+ "dist",
55
+ "src"
56
+ ],
57
+ "dependencies": {
58
+ "@codemirror/autocomplete": "^6.18.0",
59
+ "@codemirror/lang-javascript": "^6.2.2",
60
+ "@codemirror/language": "^6.10.2",
61
+ "@codemirror/state": "^6.4.1",
62
+ "@codemirror/theme-one-dark": "^6.1.2",
63
+ "@codemirror/view": "^6.29.1",
64
+ "@lezer/common": "^1.2.1",
65
+ "@preact/signals-core": "^1.6.0",
66
+ "codemirror": "^6.0.1",
67
+ "esbuild-wasm": "^0.16.14",
68
+ "iso-did": "^1.6.0",
69
+ "lodash.get": "^4.4.2",
70
+ "@dxos/app-framework": "0.6.8-main.046e6cf",
71
+ "@dxos/async": "0.6.8-main.046e6cf",
72
+ "@dxos/client": "0.6.8-main.046e6cf",
73
+ "@dxos/client-protocol": "0.6.8-main.046e6cf",
74
+ "@dxos/crypto": "0.6.8-main.046e6cf",
75
+ "@dxos/debug": "0.6.8-main.046e6cf",
76
+ "@dxos/echo-schema": "0.6.8-main.046e6cf",
77
+ "@dxos/invariant": "0.6.8-main.046e6cf",
78
+ "@dxos/keys": "0.6.8-main.046e6cf",
79
+ "@dxos/plugin-client": "0.6.8-main.046e6cf",
80
+ "@dxos/log": "0.6.8-main.046e6cf",
81
+ "@dxos/plugin-explorer": "0.6.8-main.046e6cf",
82
+ "@dxos/plugin-graph": "0.6.8-main.046e6cf",
83
+ "@dxos/plugin-markdown": "0.6.8-main.046e6cf",
84
+ "@dxos/plugin-space": "0.6.8-main.046e6cf",
85
+ "@dxos/plugin-stack": "0.6.8-main.046e6cf",
86
+ "@dxos/plugin-theme": "0.6.8-main.046e6cf",
87
+ "@dxos/protocols": "0.6.8-main.046e6cf",
88
+ "@dxos/react-client": "0.6.8-main.046e6cf",
89
+ "@dxos/react-ui-editor": "0.6.8-main.046e6cf",
90
+ "@dxos/rpc": "0.6.8-main.046e6cf",
91
+ "@dxos/util": "0.6.8-main.046e6cf",
92
+ "@dxos/rpc-tunnel": "0.6.8-main.046e6cf"
93
+ },
94
+ "devDependencies": {
95
+ "@phosphor-icons/react": "^2.1.5",
96
+ "@types/lodash.get": "^4.4.7",
97
+ "@types/react": "~18.2.0",
98
+ "@types/react-dom": "~18.2.0",
99
+ "react": "~18.2.0",
100
+ "react-dom": "~18.2.0",
101
+ "vite": "^5.3.4",
102
+ "@dxos/echo-generator": "0.6.8-main.046e6cf",
103
+ "@dxos/react-ui-mosaic": "0.6.8-main.046e6cf",
104
+ "@dxos/random": "0.6.8-main.046e6cf",
105
+ "@dxos/react-ui": "0.6.8-main.046e6cf",
106
+ "@dxos/react-ui-theme": "0.6.8-main.046e6cf",
107
+ "@dxos/storybook-utils": "0.6.8-main.046e6cf"
108
+ },
109
+ "optionalDependencies": {
110
+ "@phosphor-icons/react": "^2.1.5",
111
+ "react": "^18.0.0",
112
+ "react-dom": "^18.0.0",
113
+ "@dxos/react-ui": "0.6.8-main.046e6cf",
114
+ "@dxos/react-ui-mosaic": "0.6.8-main.046e6cf",
115
+ "@dxos/react-ui-theme": "0.6.8-main.046e6cf"
116
+ },
117
+ "publishConfig": {
118
+ "access": "public"
119
+ }
120
+ }