@dxos/plugin-script 0.6.13-staging.1e988a3 → 0.6.14-main.1366248

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 (206) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/browser/AutomationPanel-XLL2ZXGS.mjs +78 -0
  3. package/dist/lib/browser/AutomationPanel-XLL2ZXGS.mjs.map +7 -0
  4. package/dist/lib/browser/ScriptContainer-YXH4MFEO.mjs +415 -0
  5. package/dist/lib/browser/ScriptContainer-YXH4MFEO.mjs.map +7 -0
  6. package/dist/lib/browser/chunk-C7VBULMK.mjs +18 -0
  7. package/dist/lib/browser/chunk-C7VBULMK.mjs.map +7 -0
  8. package/dist/lib/browser/{chunk-RHEZ5LUU.mjs → chunk-G6H56WFS.mjs} +51 -2
  9. package/dist/lib/browser/{chunk-RHEZ5LUU.mjs.map → chunk-G6H56WFS.mjs.map} +4 -4
  10. package/dist/lib/browser/{chunk-DL5XQRQM.mjs → chunk-KHNN3F7J.mjs} +18 -6
  11. package/dist/lib/browser/chunk-KHNN3F7J.mjs.map +7 -0
  12. package/dist/lib/browser/chunk-NCZUJKJE.mjs +236 -0
  13. package/dist/lib/browser/chunk-NCZUJKJE.mjs.map +7 -0
  14. package/dist/lib/browser/{chunk-O4LWBX6A.mjs → chunk-USXWNH3S.mjs} +2 -2
  15. package/dist/lib/browser/{chunk-O4LWBX6A.mjs.map → chunk-USXWNH3S.mjs.map} +2 -2
  16. package/dist/lib/browser/edge/index.mjs +5 -1
  17. package/dist/lib/browser/index.mjs +185 -62
  18. package/dist/lib/browser/index.mjs.map +4 -4
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/meta.mjs +1 -1
  21. package/dist/lib/browser/types/index.mjs +2 -2
  22. package/dist/lib/node/AutomationPanel-OSPAFWZU.cjs +100 -0
  23. package/dist/lib/node/AutomationPanel-OSPAFWZU.cjs.map +7 -0
  24. package/dist/lib/node/ScriptContainer-FWHFEIHK.cjs +417 -0
  25. package/dist/lib/node/ScriptContainer-FWHFEIHK.cjs.map +7 -0
  26. package/dist/lib/node/{TypescriptEditor-M3WWFIP2.cjs → chunk-6LYX73ZT.cjs} +19 -8
  27. package/dist/lib/node/chunk-6LYX73ZT.cjs.map +7 -0
  28. package/dist/lib/node/{chunk-4GTXIELQ.cjs → chunk-ACLCRWDB.cjs} +44 -6
  29. package/dist/lib/node/chunk-ACLCRWDB.cjs.map +7 -0
  30. package/dist/lib/node/chunk-BJ4WIWCP.cjs +265 -0
  31. package/dist/lib/node/chunk-BJ4WIWCP.cjs.map +7 -0
  32. package/dist/lib/node/{chunk-5RBVXKXT.cjs → chunk-CPNHUAFN.cjs} +6 -6
  33. package/dist/lib/node/{chunk-5RBVXKXT.cjs.map → chunk-CPNHUAFN.cjs.map} +2 -2
  34. package/dist/lib/node/{chunk-PFH3ROEH.cjs → chunk-FY5KKL5N.cjs} +22 -8
  35. package/dist/lib/node/chunk-FY5KKL5N.cjs.map +7 -0
  36. package/dist/lib/node/edge/index.cjs +12 -8
  37. package/dist/lib/node/edge/index.cjs.map +2 -2
  38. package/dist/lib/node/index.cjs +196 -81
  39. package/dist/lib/node/index.cjs.map +4 -4
  40. package/dist/lib/node/meta.cjs +3 -3
  41. package/dist/lib/node/meta.cjs.map +1 -1
  42. package/dist/lib/node/meta.json +1 -1
  43. package/dist/lib/node/types/index.cjs +5 -5
  44. package/dist/lib/node/types/index.cjs.map +1 -1
  45. package/dist/lib/node-esm/AutomationPanel-KJNL6ARP.mjs +79 -0
  46. package/dist/lib/node-esm/AutomationPanel-KJNL6ARP.mjs.map +7 -0
  47. package/dist/lib/node-esm/ScriptContainer-6U5WJFRB.mjs +416 -0
  48. package/dist/lib/node-esm/ScriptContainer-6U5WJFRB.mjs.map +7 -0
  49. package/dist/lib/node-esm/chunk-2NPZGQGA.mjs +47 -0
  50. package/dist/lib/node-esm/chunk-2NPZGQGA.mjs.map +7 -0
  51. package/dist/lib/node-esm/chunk-DXWSRDEN.mjs +237 -0
  52. package/dist/lib/node-esm/chunk-DXWSRDEN.mjs.map +7 -0
  53. package/dist/lib/node-esm/chunk-LDLNTVAK.mjs +280 -0
  54. package/dist/lib/node-esm/chunk-LDLNTVAK.mjs.map +7 -0
  55. package/dist/lib/node-esm/chunk-QMTTZYLF.mjs +255 -0
  56. package/dist/lib/node-esm/chunk-QMTTZYLF.mjs.map +7 -0
  57. package/dist/lib/node-esm/chunk-SLTZMY34.mjs +20 -0
  58. package/dist/lib/node-esm/chunk-SLTZMY34.mjs.map +7 -0
  59. package/dist/lib/node-esm/edge/index.mjs +24 -0
  60. package/dist/lib/node-esm/index.mjs +415 -0
  61. package/dist/lib/node-esm/index.mjs.map +7 -0
  62. package/dist/lib/node-esm/meta.json +1 -0
  63. package/dist/lib/node-esm/meta.mjs +10 -0
  64. package/dist/lib/node-esm/meta.mjs.map +7 -0
  65. package/dist/lib/node-esm/types/index.mjs +13 -0
  66. package/dist/lib/node-esm/types/index.mjs.map +7 -0
  67. package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
  68. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +17 -0
  69. package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -0
  70. package/dist/types/src/components/AutomationPanel/index.d.ts +4 -0
  71. package/dist/types/src/components/AutomationPanel/index.d.ts.map +1 -0
  72. package/dist/types/src/components/DebugPanel/DebugPanel.d.ts +7 -0
  73. package/dist/types/src/components/DebugPanel/DebugPanel.d.ts.map +1 -0
  74. package/dist/types/src/components/DebugPanel/index.d.ts +2 -0
  75. package/dist/types/src/components/DebugPanel/index.d.ts.map +1 -0
  76. package/dist/types/src/components/{ScriptBlock/FrameContainer → FrameContainer}/FrameContainer.d.ts +1 -1
  77. package/dist/types/src/components/FrameContainer/FrameContainer.d.ts.map +1 -0
  78. package/dist/types/src/components/FrameContainer/frame.d.ts.map +1 -0
  79. package/dist/types/src/components/FrameContainer/index.d.ts.map +1 -0
  80. package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts +1 -3
  81. package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts.map +1 -1
  82. package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts +3 -8
  83. package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts.map +1 -1
  84. package/dist/types/src/components/ScriptContainer.d.ts +5 -0
  85. package/dist/types/src/components/ScriptContainer.d.ts.map +1 -0
  86. package/dist/types/src/components/ScriptEditor.d.ts +4 -5
  87. package/dist/types/src/components/ScriptEditor.d.ts.map +1 -1
  88. package/dist/types/src/components/ScriptSettings/ScriptSettings.d.ts +6 -0
  89. package/dist/types/src/components/ScriptSettings/ScriptSettings.d.ts.map +1 -0
  90. package/dist/types/src/components/ScriptSettings/index.d.ts +2 -0
  91. package/dist/types/src/components/ScriptSettings/index.d.ts.map +1 -0
  92. package/dist/types/src/components/ScriptSettingsPanel.d.ts +7 -0
  93. package/dist/types/src/components/ScriptSettingsPanel.d.ts.map +1 -0
  94. package/dist/types/src/components/Toolbar/Toolbar.d.ts +23 -0
  95. package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -0
  96. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts +14 -0
  97. package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +1 -0
  98. package/dist/types/src/components/Toolbar/index.d.ts +2 -0
  99. package/dist/types/src/components/Toolbar/index.d.ts.map +1 -0
  100. package/dist/types/src/components/{TypescriptEditor.d.ts → TypescriptEditor/TypescriptEditor.d.ts} +1 -2
  101. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts.map +1 -0
  102. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.d.ts +6 -0
  103. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.d.ts.map +1 -0
  104. package/dist/types/src/components/TypescriptEditor/index.d.ts +2 -0
  105. package/dist/types/src/components/TypescriptEditor/index.d.ts.map +1 -0
  106. package/dist/types/src/components/index.d.ts +4 -3
  107. package/dist/types/src/components/index.d.ts.map +1 -1
  108. package/dist/types/src/edge/functions.d.ts +7 -0
  109. package/dist/types/src/edge/functions.d.ts.map +1 -1
  110. package/dist/types/src/meta.d.ts +5 -9
  111. package/dist/types/src/meta.d.ts.map +1 -1
  112. package/dist/types/src/templates/chat.d.ts +6 -0
  113. package/dist/types/src/templates/chat.d.ts.map +1 -0
  114. package/dist/types/src/templates/chess.d.ts +6 -0
  115. package/dist/types/src/templates/chess.d.ts.map +1 -0
  116. package/dist/types/src/templates/echo.d.ts +6 -0
  117. package/dist/types/src/templates/echo.d.ts.map +1 -0
  118. package/dist/types/src/templates/email.d.ts +6 -0
  119. package/dist/types/src/templates/email.d.ts.map +1 -0
  120. package/dist/types/src/templates/forex.d.ts +6 -0
  121. package/dist/types/src/templates/forex.d.ts.map +1 -0
  122. package/dist/types/src/templates.d.ts +8 -0
  123. package/dist/types/src/templates.d.ts.map +1 -0
  124. package/dist/types/src/translations.d.ts +7 -0
  125. package/dist/types/src/translations.d.ts.map +1 -1
  126. package/dist/types/src/types/script.d.ts +4 -4
  127. package/dist/types/src/types/types.d.ts +4 -3
  128. package/dist/types/src/types/types.d.ts.map +1 -1
  129. package/package.json +59 -64
  130. package/src/ScriptPlugin.tsx +47 -41
  131. package/src/bundler/bundler.test.ts +12 -2
  132. package/src/components/AutomationPanel/AutomationPanel.tsx +101 -0
  133. package/src/components/AutomationPanel/index.ts +9 -0
  134. package/src/components/{DebugPanel.tsx → DebugPanel/DebugPanel.tsx} +74 -96
  135. package/src/components/DebugPanel/index.ts +5 -0
  136. package/src/components/{ScriptBlock/FrameContainer → FrameContainer}/FrameContainer.tsx +1 -1
  137. package/src/components/ScriptBlock/ScriptBlock.stories.tsx +15 -14
  138. package/src/components/ScriptBlock/ScriptBlock.tsx +23 -51
  139. package/src/components/ScriptContainer.tsx +22 -0
  140. package/src/components/ScriptEditor.tsx +51 -62
  141. package/src/components/ScriptSettings/ScriptSettings.tsx +47 -0
  142. package/src/components/ScriptSettings/index.ts +5 -0
  143. package/src/components/ScriptSettingsPanel.tsx +105 -0
  144. package/src/components/Toolbar/Toolbar.stories.tsx +30 -0
  145. package/src/components/Toolbar/Toolbar.tsx +177 -0
  146. package/src/components/{ScriptBlock/Splitter → Toolbar}/index.ts +1 -1
  147. package/src/components/{TypescriptEditor.stories.tsx → TypescriptEditor/TypescriptEditor.stories.tsx} +17 -35
  148. package/src/components/{TypescriptEditor.tsx → TypescriptEditor/TypescriptEditor.tsx} +1 -3
  149. package/src/components/TypescriptEditor/index.ts +5 -0
  150. package/src/components/index.ts +6 -3
  151. package/src/edge/functions.ts +19 -0
  152. package/src/meta.ts +16 -0
  153. package/src/templates/chat.ts +102 -0
  154. package/src/templates/chess.ts +41 -0
  155. package/src/templates/echo.ts +15 -0
  156. package/src/templates/email.ts +38 -0
  157. package/src/templates/forex.ts +21 -0
  158. package/src/templates.ts +54 -0
  159. package/src/translations.ts +7 -0
  160. package/src/types/types.ts +9 -5
  161. package/dist/lib/browser/ScriptEditor-5Y3EROG3.mjs +0 -513
  162. package/dist/lib/browser/ScriptEditor-5Y3EROG3.mjs.map +0 -7
  163. package/dist/lib/browser/TypescriptEditor-GPE72Y6I.mjs +0 -9
  164. package/dist/lib/browser/chunk-DL5XQRQM.mjs.map +0 -7
  165. package/dist/lib/browser/chunk-JBACGDOJ.mjs +0 -21
  166. package/dist/lib/browser/chunk-JBACGDOJ.mjs.map +0 -7
  167. package/dist/lib/browser/chunk-MRGOT5RF.mjs +0 -78
  168. package/dist/lib/browser/chunk-MRGOT5RF.mjs.map +0 -7
  169. package/dist/lib/node/ScriptEditor-YCUQFWQM.cjs +0 -526
  170. package/dist/lib/node/ScriptEditor-YCUQFWQM.cjs.map +0 -7
  171. package/dist/lib/node/TypescriptEditor-M3WWFIP2.cjs.map +0 -7
  172. package/dist/lib/node/chunk-4GTXIELQ.cjs.map +0 -7
  173. package/dist/lib/node/chunk-4VMNBXWU.cjs +0 -54
  174. package/dist/lib/node/chunk-4VMNBXWU.cjs.map +0 -7
  175. package/dist/lib/node/chunk-IMLDKD5Y.cjs +0 -111
  176. package/dist/lib/node/chunk-IMLDKD5Y.cjs.map +0 -7
  177. package/dist/lib/node/chunk-PFH3ROEH.cjs.map +0 -7
  178. package/dist/types/src/components/DebugPanel.d.ts +0 -9
  179. package/dist/types/src/components/DebugPanel.d.ts.map +0 -1
  180. package/dist/types/src/components/ScriptBlock/FrameContainer/FrameContainer.d.ts.map +0 -1
  181. package/dist/types/src/components/ScriptBlock/FrameContainer/frame.d.ts.map +0 -1
  182. package/dist/types/src/components/ScriptBlock/FrameContainer/index.d.ts.map +0 -1
  183. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.d.ts +0 -15
  184. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.d.ts.map +0 -1
  185. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.stories.d.ts +0 -13
  186. package/dist/types/src/components/ScriptBlock/Splitter/Splitter.stories.d.ts.map +0 -1
  187. package/dist/types/src/components/ScriptBlock/Splitter/index.d.ts +0 -2
  188. package/dist/types/src/components/ScriptBlock/Splitter/index.d.ts.map +0 -1
  189. package/dist/types/src/components/Toolbar.d.ts +0 -13
  190. package/dist/types/src/components/Toolbar.d.ts.map +0 -1
  191. package/dist/types/src/components/Toolbar.stories.d.ts +0 -14
  192. package/dist/types/src/components/Toolbar.stories.d.ts.map +0 -1
  193. package/dist/types/src/components/TypescriptEditor.d.ts.map +0 -1
  194. package/dist/types/src/components/TypescriptEditor.stories.d.ts +0 -10
  195. package/dist/types/src/components/TypescriptEditor.stories.d.ts.map +0 -1
  196. package/src/components/ScriptBlock/Splitter/Splitter.stories.tsx +0 -37
  197. package/src/components/ScriptBlock/Splitter/Splitter.tsx +0 -52
  198. package/src/components/Toolbar.stories.tsx +0 -17
  199. package/src/components/Toolbar.tsx +0 -147
  200. package/src/meta.tsx +0 -19
  201. /package/dist/lib/{browser/TypescriptEditor-GPE72Y6I.mjs.map → node-esm/edge/index.mjs.map} +0 -0
  202. /package/dist/types/src/components/{ScriptBlock/FrameContainer → FrameContainer}/frame.d.ts +0 -0
  203. /package/dist/types/src/components/{ScriptBlock/FrameContainer → FrameContainer}/index.d.ts +0 -0
  204. /package/src/components/{ScriptBlock/FrameContainer → FrameContainer}/frame.html +0 -0
  205. /package/src/components/{ScriptBlock/FrameContainer → FrameContainer}/frame.tsx +0 -0
  206. /package/src/components/{ScriptBlock/FrameContainer → FrameContainer}/index.ts +0 -0
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type EchoReactiveObject } from '@dxos/client/echo';
3
+ import { FunctionType } from '../../types';
4
+ export interface AutomationPanelProps {
5
+ subject: EchoReactiveObject<any>;
6
+ }
7
+ export declare const AutomationPanel: ({ subject }: AutomationPanelProps) => React.JSX.Element;
8
+ export interface ChatPanelProps {
9
+ fn: FunctionType;
10
+ subject: EchoReactiveObject<any>;
11
+ }
12
+ export interface BindingSelectProps {
13
+ selectedFunction: FunctionType | null;
14
+ setSelectedFunction: (fn: FunctionType) => void;
15
+ functions: FunctionType[];
16
+ }
17
+ //# sourceMappingURL=AutomationPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutomationPanel/AutomationPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAO5D,OAAO,EAAE,YAAY,EAAc,MAAM,aAAa,CAAC;AAGvD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,gBAAiB,oBAAoB,sBA0BhE,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,YAAY,CAAC;IACjB,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC;CAClC;AAoBD,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,YAAY,GAAG,IAAI,CAAC;IACtC,mBAAmB,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,4 @@
1
+ import { AutomationPanel } from './AutomationPanel';
2
+ export * from './AutomationPanel';
3
+ export default AutomationPanel;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/AutomationPanel/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,cAAc,mBAAmB,CAAC;AAElC,eAAe,eAAe,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ThemedClassName } from '@dxos/react-ui';
3
+ export type DebugPanelProps = ThemedClassName<{
4
+ functionUrl?: string;
5
+ }>;
6
+ export declare const DebugPanel: ({ classNames, functionUrl }: DebugPanelProps) => React.JSX.Element;
7
+ //# sourceMappingURL=DebugPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/DebugPanel/DebugPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAuB,KAAK,eAAe,EAA2B,MAAM,gBAAgB,CAAC;AAapG,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,eAAO,MAAM,UAAU,gCAAiC,eAAe,sBAkKtE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './DebugPanel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/DebugPanel/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type BundlerResult } from '../../../bundler';
2
+ import { type BundlerResult } from '../../bundler';
3
3
  export type FrameContainerProps = {
4
4
  containerUrl: string;
5
5
  result: BundlerResult;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/FrameContainer/FrameContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4B,MAAM,OAAO,CAAC;AASjD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,oCAA4C,mBAAmB,sBAyDzF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../../../src/components/FrameContainer/frame.tsx"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FrameContainer/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
- import { type View } from './Splitter';
3
2
  import { type ScriptType } from '../../types';
4
3
  export type ScriptBlockProps = {
5
4
  script: ScriptType;
6
- view?: View;
7
5
  hideSelector?: boolean;
8
6
  classes?: {
9
7
  root?: string;
@@ -14,5 +12,5 @@ export type ScriptBlockProps = {
14
12
  /**
15
13
  * @deprecated
16
14
  */
17
- export declare const ScriptBlock: ({ script, view: controlledView, hideSelector, classes, containerUrl, }: ScriptBlockProps) => React.JSX.Element;
15
+ export declare const ScriptBlock: ({ script, hideSelector, classes, containerUrl }: ScriptBlockProps) => React.JSX.Element;
18
16
  //# sourceMappingURL=ScriptBlock.d.ts.map
@@ -1 +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,sBAkFlB,CAAC"}
1
+ {"version":3,"file":"ScriptBlock.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAOzE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAc9C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,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,oDAAqD,gBAAgB,sBA+D5F,CAAC"}
@@ -1,11 +1,6 @@
1
1
  import '@dxos-theme';
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
- decorators: import("@storybook/react/*").Decorator[];
7
- render: () => React.JSX.Element;
8
- };
9
- export default _default;
2
+ import { type Meta } from '@storybook/react';
10
3
  export declare const Default: {};
4
+ declare const meta: Meta;
5
+ export default meta;
11
6
  //# sourceMappingURL=ScriptBlock.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScriptBlock.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AACrB,OAAO,KAA6B,MAAM,OAAO,CAAC;;;;;;;AA0DlD,wBAKE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"ScriptBlock.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptBlock/ScriptBlock.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAwD7C,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAKX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { type ScriptEditorProps } from './ScriptEditor';
3
+ declare const ScriptContainer: ({ script, ...props }: ScriptEditorProps) => React.JSX.Element;
4
+ export default ScriptContainer;
5
+ //# sourceMappingURL=ScriptContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ScriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,QAAA,MAAM,eAAe,yBAA0B,iBAAiB,sBAO/D,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
+ import { type ThemedClassName } from '@dxos/react-ui';
2
3
  import { type TypescriptEditorProps } from './TypescriptEditor';
3
4
  import { type ScriptType } from '../types';
4
- export type ScriptEditorProps = {
5
+ export type ScriptEditorProps = ThemedClassName<{
5
6
  script: ScriptType;
6
- role?: string;
7
- } & Pick<TypescriptEditorProps, 'env'>;
8
- export declare const ScriptEditor: ({ env, script, role }: ScriptEditorProps) => React.JSX.Element;
9
- export default ScriptEditor;
7
+ }> & Pick<TypescriptEditorProps, 'env'>;
8
+ export declare const ScriptEditor: ({ classNames, script, env }: ScriptEditorProps) => React.JSX.Element;
10
9
  //# sourceMappingURL=ScriptEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScriptEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/ScriptEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAqB9D,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AASlF,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;AAEvC,eAAO,MAAM,YAAY,0BAA2B,iBAAiB,sBA0JpE,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ScriptEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/ScriptEditor.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAM9D,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtE,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAYlF,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;IAC9C,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC,GACA,IAAI,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;AAErC,eAAO,MAAM,YAAY,gCAAiC,iBAAiB,sBAuJ1E,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type ScriptSettingsProps } from '../../types';
3
+ export declare const ScriptSettings: ({ settings }: {
4
+ settings: ScriptSettingsProps;
5
+ }) => React.JSX.Element;
6
+ //# sourceMappingURL=ScriptSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptSettings/ScriptSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,eAAO,MAAM,cAAc,iBAAkB;IAAE,QAAQ,EAAE,mBAAmB,CAAA;CAAE,sBAgC7E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ScriptSettings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScriptSettings/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type ScriptType } from '../types';
3
+ export type ScriptSettingsPanelProps = {
4
+ script: ScriptType;
5
+ };
6
+ export declare const ScriptSettingsPanel: ({ script }: ScriptSettingsPanelProps) => React.JSX.Element;
7
+ //# sourceMappingURL=ScriptSettingsPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScriptSettingsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/ScriptSettingsPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAQ7D,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,wBAAwB,sBAsFvE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { type ThemedClassName } from '@dxos/react-ui';
3
+ import { type Template } from '../../templates';
4
+ export type ToolbarProps = ThemedClassName<{
5
+ deployed?: boolean;
6
+ error?: string;
7
+ functionUrl?: string;
8
+ onDeploy?: () => Promise<void>;
9
+ onFormat?: () => Promise<void>;
10
+ } & TemplateSelectProps & ViewSelectorProps>;
11
+ export declare const Toolbar: ({ classNames, deployed, error, functionUrl, view, templates, onDeploy, onFormat, onViewChange, onTemplateSelect, }: ToolbarProps) => React.JSX.Element;
12
+ export type ViewType = 'editor' | 'split' | 'preview';
13
+ export type TemplateSelectProps = {
14
+ templates?: Template[];
15
+ onTemplateSelect?: (id: string) => void;
16
+ };
17
+ export declare const TemplateSelect: ({ templates, onTemplateSelect }: TemplateSelectProps) => React.JSX.Element;
18
+ export type ViewSelectorProps = {
19
+ view?: ViewType;
20
+ onViewChange?: (view: ViewType) => void;
21
+ };
22
+ export declare const ViewSelector: ({ view, onViewChange }: ViewSelectorProps) => React.JSX.Element;
23
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAIL,KAAK,eAAe,EAOrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,eAAe,CACxC;IACE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAChC,GAAG,mBAAmB,GACrB,iBAAiB,CACpB,CAAC;AAEF,eAAO,MAAM,OAAO,uHAWjB,YAAY,sBA4Dd,CAAC;AA0BF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,cAAc,oCAA0C,mBAAmB,sBAkBvF,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,2BAA4B,iBAAiB,sBAcrE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@storybook/react';
3
+ export declare const Default: {
4
+ args: {
5
+ binding: string;
6
+ deployed: boolean;
7
+ templates: import("../../templates").Template[];
8
+ onFormat: () => void;
9
+ onTogglePanel: () => void;
10
+ };
11
+ };
12
+ declare const meta: Meta;
13
+ export default meta;
14
+ //# sourceMappingURL=Toolbar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toolbar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAO7C,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Toolbar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
@@ -3,9 +3,8 @@ import React from 'react';
3
3
  import { type UseTextEditorProps } from '@dxos/react-ui-editor';
4
4
  export type TypescriptEditorProps = {
5
5
  id: string;
6
- scrollPastEnd?: boolean;
7
6
  env?: VirtualTypeScriptEnvironment;
8
7
  } & Pick<UseTextEditorProps, 'className' | 'initialValue' | 'extensions' | 'scrollTo' | 'selection'>;
9
- export declare const TypescriptEditor: ({ id, scrollPastEnd, env, className, initialValue, extensions, scrollTo, selection, }: TypescriptEditorProps) => React.JSX.Element;
8
+ export declare const TypescriptEditor: ({ id, env, className, initialValue, extensions, scrollTo, selection, }: TypescriptEditorProps) => React.JSX.Element;
10
9
  export default TypescriptEditor;
11
10
  //# sourceMappingURL=TypescriptEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypescriptEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TypescriptEditor/TypescriptEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EASL,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,4BAA4B,CAAC;CACpC,GAAG,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;AAErG,eAAO,MAAM,gBAAgB,2EAQ1B,qBAAqB,sBAwCvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import '@dxos-theme';
2
+ import { type Meta } from '@storybook/react';
3
+ export declare const Default: {};
4
+ declare const meta: Meta;
5
+ export default meta;
6
+ //# sourceMappingURL=TypescriptEditor.stories.d.ts.map
@@ -0,0 +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;AA2B7C,eAAO,MAAM,OAAO,IAAK,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './TypescriptEditor';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TypescriptEditor/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC"}
@@ -1,4 +1,5 @@
1
- import React from 'react';
2
- export declare const ScriptEditor: React.LazyExoticComponent<({ env, script, role }: import("./ScriptEditor").ScriptEditorProps) => React.JSX.Element>;
3
- export declare const TypescriptEditor: React.LazyExoticComponent<({ id, scrollPastEnd, env, className, initialValue, extensions, scrollTo, selection, }: import("./TypescriptEditor").TypescriptEditorProps) => React.JSX.Element>;
1
+ export * from './ScriptSettings';
2
+ export * from './ScriptSettingsPanel';
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, ...props }: import("./ScriptEditor").ScriptEditorProps) => import("react").JSX.Element>;
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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,qHAA6C,CAAC;AACvE,eAAO,MAAM,gBAAgB,6LAAiD,CAAC"}
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,wIAA0C,CAAC"}
@@ -2,6 +2,8 @@ import { type DID } from 'iso-did/types';
2
2
  import { type Config } from '@dxos/client';
3
3
  import { type Halo } from '@dxos/client-protocol';
4
4
  import { type ObjectMeta } from '@dxos/echo-schema';
5
+ import type { SpaceId } from '@dxos/keys';
6
+ export declare const USERFUNCTIONS_PRESET_META_KEY = "dxos.org/service/function-preset";
5
7
  export type UserFunctionUploadResult = {
6
8
  result: 'success' | 'error';
7
9
  errorMessage?: string;
@@ -20,4 +22,9 @@ export type UploadWorkerProps = {
20
22
  export declare const uploadWorkerFunction: ({ clientConfig, halo, name, source, ownerDid, functionId, credentialLoadTimeout, }: UploadWorkerProps) => Promise<UserFunctionUploadResult>;
21
23
  export declare const getUserFunctionUrlInMetadata: (meta: ObjectMeta) => string | undefined;
22
24
  export declare const setUserFunctionUrlInMetadata: (meta: ObjectMeta, functionUrl: string) => void;
25
+ export type InvocationOptions = {
26
+ spaceId?: SpaceId;
27
+ subjectId?: string;
28
+ };
29
+ export declare const getInvocationUrl: (functionUrl: string, edgeUrl: string, options?: InvocationOptions) => string;
23
30
  //# sourceMappingURL=functions.d.ts.map
@@ -1 +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;AAeF,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"}
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;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAS1C,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAIhF,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;AAeF,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;AAoCF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,WAAW,MAAM,YAAW,iBAAiB,WAUhG,CAAC"}
@@ -1,15 +1,11 @@
1
- import { type IconProps } from '@phosphor-icons/react';
2
- import React from 'react';
3
1
  export declare const SCRIPT_PLUGIN = "dxos.org/plugin/script";
4
2
  declare const _default: {
5
3
  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;
4
+ name: string;
5
+ description: string;
6
+ icon: string;
7
+ source: string;
8
+ tags: string[];
13
9
  };
14
10
  export default _default;
15
11
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,2BAA2B,CAAC;;;;;;;;;AAEtD,wBAOuB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Chatbot that answers questions based on the context data.
3
+ */
4
+ declare const _default: ({ event: { data: { request }, }, context: { space, ai }, }: any) => Promise<Response>;
5
+ export default _default;
6
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../src/templates/chat.ts"],"names":[],"mappings":"AAOA;;GAEG;qFAMA,GAAG;AALN,wBAsEE"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Plays a random move in a chess game.
3
+ */
4
+ declare const _default: ({ event: { data: { request }, }, context: { space }, }: any) => Promise<Response>;
5
+ export default _default;
6
+ //# sourceMappingURL=chess.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chess.d.ts","sourceRoot":"","sources":["../../../../src/templates/chess.ts"],"names":[],"mappings":"AAOA;;GAEG;iFAMA,GAAG;AALN,wBA8BE"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Echos the request data.
3
+ */
4
+ declare const _default: ({ event: { data: { request }, }, }: any) => Promise<Response>;
5
+ export default _default;
6
+ //# sourceMappingURL=echo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"echo.d.ts","sourceRoot":"","sources":["../../../../src/templates/echo.ts"],"names":[],"mappings":"AAIA;;GAEG;6DAKA,GAAG;AAJN,wBAOE"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Stores a message into ECHO Mailbox object.
3
+ */
4
+ declare const _default: ({ event: { data: { request }, }, context: { space }, }: any) => Promise<Response>;
5
+ export default _default;
6
+ //# sourceMappingURL=email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../src/templates/email.ts"],"names":[],"mappings":"AAIA;;GAEG;iFAMA,GAAG;AALN,wBA8BE"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the exchange rate between two currencies.
3
+ */
4
+ declare const _default: ({ event: { data: { request }, }, }: any) => Promise<Response>;
5
+ export default _default;
6
+ //# sourceMappingURL=forex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forex.d.ts","sourceRoot":"","sources":["../../../../src/templates/forex.ts"],"names":[],"mappings":"AAIA;;GAEG;6DAKA,GAAG;AAJN,wBAaE"}
@@ -0,0 +1,8 @@
1
+ export type Template = {
2
+ id: string;
3
+ name: string;
4
+ source: string;
5
+ presetId?: string;
6
+ };
7
+ export declare const templates: Template[];
8
+ //# sourceMappingURL=templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/templates.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"}
@@ -13,6 +13,13 @@ declare const _default: {
13
13
  'copy link label': string;
14
14
  'format label': string;
15
15
  'toggle details label': string;
16
+ 'authenticate action label': string;
17
+ 'authenticate button label': string;
18
+ 'name label': string;
19
+ 'remote function settings heading': string;
20
+ 'function url label': string;
21
+ 'function binding label': string;
22
+ 'function binding placeholder': string;
16
23
  };
17
24
  };
18
25
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAMA,wBAmBE"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA0BE"}
@@ -1,12 +1,12 @@
1
1
  import { ref, S } from '@dxos/echo-schema';
2
2
  declare const ScriptType_base: import("@dxos/echo-schema").AbstractTypedObject<{
3
3
  name?: string | undefined;
4
+ description?: string | undefined;
4
5
  source: import("@dxos/echo-schema").Ref<{
5
6
  content: string;
6
7
  } & {
7
8
  id: string;
8
9
  }>;
9
- description?: string | undefined;
10
10
  changed?: boolean | undefined;
11
11
  } & {
12
12
  id: string;
@@ -27,19 +27,19 @@ export declare class ScriptType extends ScriptType_base {
27
27
  }
28
28
  declare const FunctionType_base: import("@dxos/echo-schema").AbstractTypedObject<{
29
29
  name?: string | undefined;
30
- version: number;
31
30
  source?: import("@dxos/echo-schema").Ref<{
32
31
  name?: string | undefined;
32
+ description?: string | undefined;
33
33
  source: import("@dxos/echo-schema").Ref<{
34
34
  content: string;
35
35
  } & {
36
36
  id: string;
37
37
  }>;
38
- description?: string | undefined;
39
38
  changed?: boolean | undefined;
40
39
  } & {
41
40
  id: string;
42
41
  }>;
42
+ version: number;
43
43
  binding?: string | undefined;
44
44
  } & {
45
45
  id: string;
@@ -49,12 +49,12 @@ declare const FunctionType_base: import("@dxos/echo-schema").AbstractTypedObject
49
49
  binding: S.optional<typeof S.String>;
50
50
  source: S.optional<ref<{
51
51
  name?: string | undefined;
52
+ description?: string | undefined;
52
53
  source: import("@dxos/echo-schema").Ref<{
53
54
  content: string;
54
55
  } & {
55
56
  id: string;
56
57
  }>;
57
- description?: string | undefined;
58
58
  changed?: boolean | undefined;
59
59
  } & {
60
60
  id: string;
@@ -1,8 +1,9 @@
1
- import type { GraphBuilderProvides, IntentResolverProvides, MetadataRecordsProvides, SurfaceProvides, TranslationsProvides } from '@dxos/app-framework';
1
+ import type { GraphBuilderProvides, IntentResolverProvides, MetadataRecordsProvides, SettingsProvides, SurfaceProvides, TranslationsProvides } from '@dxos/app-framework';
2
2
  import { type SchemaProvides } from '@dxos/plugin-client';
3
- import { type StackProvides } from '@dxos/plugin-stack';
3
+ import { type SpaceInitProvides } from '@dxos/plugin-space';
4
4
  export declare enum ScriptAction {
5
5
  CREATE = "dxos.org/plugin/script/create"
6
6
  }
7
- export type ScriptPluginProvides = SurfaceProvides & IntentResolverProvides & GraphBuilderProvides & MetadataRecordsProvides & TranslationsProvides & SchemaProvides & StackProvides;
7
+ export type ScriptSettingsProps = {};
8
+ export type ScriptPluginProvides = GraphBuilderProvides & IntentResolverProvides & MetadataRecordsProvides & SchemaProvides & SettingsProvides<ScriptSettingsProps> & SpaceInitProvides & SurfaceProvides & TranslationsProvides;
8
9
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"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,EAAE,KAAK,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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAI5D,oBAAY,YAAY;IACtB,MAAM,kCAA4B;CACnC;AAED,MAAM,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAErC,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,GACrD,sBAAsB,GACtB,uBAAuB,GACvB,cAAc,GACd,gBAAgB,CAAC,mBAAmB,CAAC,GACrC,iBAAiB,GACjB,eAAe,GACf,oBAAoB,CAAC"}