@dxos/app-framework 0.8.4-main.fd6878d → 0.8.4-main.fffef41

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 (209) hide show
  1. package/.storybook/main.mts +11 -0
  2. package/.storybook/preview.mts +8 -0
  3. package/.swc/plugins/linux_x86_64_19.0.0/727453fb3a62f7f1d952a41e051ca8a6f88cadc45cee43c6a4d1aa45f9b75665.wasmer-v7 +0 -0
  4. package/.swc/plugins/{v7_linux_x86_64_13.0.0/fce1bdb8e20a094e4af08bad09cc81497ed0e2e7c51223b07d371063cca18429 → linux_x86_64_19.0.0/fce1bdb8e20a094e4af08bad09cc81497ed0e2e7c51223b07d371063cca18429.wasmer-v7} +0 -0
  5. package/dist/lib/browser/{app-graph-builder-MOVKFH3J.mjs → app-graph-builder-OIEZZC45.mjs} +31 -30
  6. package/dist/lib/browser/app-graph-builder-OIEZZC45.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-OSBZFKMO.mjs → chunk-6XKO24JP.mjs} +232 -177
  8. package/dist/lib/browser/chunk-6XKO24JP.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-ORWHM7CO.mjs → chunk-SCPE4ZO2.mjs} +11 -8
  10. package/dist/lib/browser/chunk-SCPE4ZO2.mjs.map +7 -0
  11. package/dist/lib/browser/{chunk-NKCIDYDI.mjs → chunk-WPW5VVAX.mjs} +189 -136
  12. package/dist/lib/browser/chunk-WPW5VVAX.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +20 -56
  14. package/dist/lib/browser/index.mjs.map +3 -3
  15. package/dist/lib/browser/{intent-dispatcher-FTTJLVGN.mjs → intent-dispatcher-LZ4AE66E.mjs} +2 -2
  16. package/dist/lib/browser/{intent-resolver-ZCGEAG3E.mjs → intent-resolver-QVCKRX6G.mjs} +7 -7
  17. package/dist/lib/browser/intent-resolver-QVCKRX6G.mjs.map +7 -0
  18. package/dist/lib/browser/meta.json +1 -1
  19. package/dist/lib/browser/react/index.mjs +34 -0
  20. package/dist/lib/browser/{store-3QB6Q2BC.mjs → store-CNPHOYTJ.mjs} +5 -5
  21. package/dist/lib/browser/store-CNPHOYTJ.mjs.map +7 -0
  22. package/dist/lib/browser/testing/index.mjs +17 -21
  23. package/dist/lib/browser/testing/index.mjs.map +3 -3
  24. package/dist/lib/node-esm/{app-graph-builder-ODE4B5GT.mjs → app-graph-builder-EBU4NVWD.mjs} +31 -30
  25. package/dist/lib/node-esm/app-graph-builder-EBU4NVWD.mjs.map +7 -0
  26. package/dist/lib/node-esm/{chunk-WU3QN5B6.mjs → chunk-3UPX5OIS.mjs} +232 -177
  27. package/dist/lib/node-esm/chunk-3UPX5OIS.mjs.map +7 -0
  28. package/dist/lib/node-esm/{chunk-YEN7NKTF.mjs → chunk-XJZGUJ3H.mjs} +189 -136
  29. package/dist/lib/node-esm/chunk-XJZGUJ3H.mjs.map +7 -0
  30. package/dist/lib/node-esm/{chunk-UMZQERLE.mjs → chunk-ZX63QUGE.mjs} +11 -8
  31. package/dist/lib/node-esm/chunk-ZX63QUGE.mjs.map +7 -0
  32. package/dist/lib/node-esm/index.mjs +20 -56
  33. package/dist/lib/node-esm/index.mjs.map +3 -3
  34. package/dist/lib/node-esm/{intent-dispatcher-YQIQ55LJ.mjs → intent-dispatcher-MGOJ3CHD.mjs} +2 -2
  35. package/dist/lib/node-esm/{intent-resolver-KG27L7EQ.mjs → intent-resolver-URF3HN3G.mjs} +7 -7
  36. package/dist/lib/node-esm/intent-resolver-URF3HN3G.mjs.map +7 -0
  37. package/dist/lib/node-esm/meta.json +1 -1
  38. package/dist/lib/node-esm/react/index.mjs +35 -0
  39. package/dist/lib/node-esm/{store-TIJAVO3D.mjs → store-RK5B4XEL.mjs} +5 -5
  40. package/dist/lib/node-esm/store-RK5B4XEL.mjs.map +7 -0
  41. package/dist/lib/node-esm/testing/index.mjs +17 -21
  42. package/dist/lib/node-esm/testing/index.mjs.map +3 -3
  43. package/dist/types/src/common/capabilities.d.ts +41 -43
  44. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  45. package/dist/types/src/common/collaboration.d.ts +10 -9
  46. package/dist/types/src/common/collaboration.d.ts.map +1 -1
  47. package/dist/types/src/common/file.d.ts +1 -1
  48. package/dist/types/src/common/file.d.ts.map +1 -1
  49. package/dist/types/src/common/layout.d.ts +1 -3
  50. package/dist/types/src/common/layout.d.ts.map +1 -1
  51. package/dist/types/src/common/surface.d.ts +19 -16
  52. package/dist/types/src/common/surface.d.ts.map +1 -1
  53. package/dist/types/src/common/translations.d.ts +1 -1
  54. package/dist/types/src/common/translations.d.ts.map +1 -1
  55. package/dist/types/src/core/capabilities.d.ts +19 -16
  56. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  57. package/dist/types/src/core/manager.d.ts +1 -1
  58. package/dist/types/src/core/manager.d.ts.map +1 -1
  59. package/dist/types/src/core/plugin.d.ts +8 -1
  60. package/dist/types/src/core/plugin.d.ts.map +1 -1
  61. package/dist/types/src/index.d.ts +0 -2
  62. package/dist/types/src/index.d.ts.map +1 -1
  63. package/dist/types/src/playground/debug/Debug.d.ts +1 -1
  64. package/dist/types/src/playground/debug/plugin.d.ts +1 -1
  65. package/dist/types/src/playground/debug/plugin.d.ts.map +1 -1
  66. package/dist/types/src/playground/generator/Main.d.ts +1 -1
  67. package/dist/types/src/playground/generator/Main.d.ts.map +1 -1
  68. package/dist/types/src/playground/generator/Toolbar.d.ts +1 -1
  69. package/dist/types/src/playground/generator/generator.d.ts +1 -1
  70. package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
  71. package/dist/types/src/playground/generator/plugin.d.ts +1 -1
  72. package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
  73. package/dist/types/src/playground/layout/Layout.d.ts +2 -2
  74. package/dist/types/src/playground/layout/plugin.d.ts +1 -1
  75. package/dist/types/src/playground/layout/plugin.d.ts.map +1 -1
  76. package/dist/types/src/playground/logger/Toolbar.d.ts +1 -1
  77. package/dist/types/src/playground/logger/plugin.d.ts +1 -1
  78. package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
  79. package/dist/types/src/playground/logger/schema.d.ts +1 -1
  80. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  81. package/dist/types/src/playground/playground.stories.d.ts +5 -4
  82. package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
  83. package/dist/types/src/plugin-intent/IntentPlugin.d.ts +1 -1
  84. package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
  85. package/dist/types/src/plugin-intent/actions.d.ts +5 -7
  86. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  87. package/dist/types/src/plugin-intent/errors.d.ts.map +1 -1
  88. package/dist/types/src/plugin-intent/index.d.ts +1 -0
  89. package/dist/types/src/plugin-intent/index.d.ts.map +1 -1
  90. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +5 -5
  91. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  92. package/dist/types/src/plugin-intent/intent.d.ts +1 -1
  93. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  94. package/dist/types/src/plugin-intent/meta.d.ts +3 -0
  95. package/dist/types/src/plugin-intent/meta.d.ts.map +1 -0
  96. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +1 -1
  97. package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
  98. package/dist/types/src/plugin-settings/actions.d.ts +5 -7
  99. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  100. package/dist/types/src/plugin-settings/app-graph-builder.d.ts +1 -1
  101. package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
  102. package/dist/types/src/plugin-settings/intent-resolver.d.ts +1 -1
  103. package/dist/types/src/plugin-settings/meta.d.ts +3 -0
  104. package/dist/types/src/plugin-settings/meta.d.ts.map +1 -0
  105. package/dist/types/src/plugin-settings/store.d.ts +1 -1
  106. package/dist/types/src/plugin-settings/translations.d.ts +2 -1
  107. package/dist/types/src/plugin-settings/translations.d.ts.map +1 -1
  108. package/dist/types/src/react/App.d.ts +10 -0
  109. package/dist/types/src/react/App.d.ts.map +1 -0
  110. package/dist/types/src/react/App.stories.d.ts +14 -0
  111. package/dist/types/src/react/App.stories.d.ts.map +1 -0
  112. package/dist/types/src/react/DefaultFallback.d.ts +8 -0
  113. package/dist/types/src/react/DefaultFallback.d.ts.map +1 -0
  114. package/dist/types/src/react/ErrorBoundary.d.ts +2 -2
  115. package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -1
  116. package/dist/types/src/react/Surface.d.ts +5 -5
  117. package/dist/types/src/react/Surface.d.ts.map +1 -1
  118. package/dist/types/src/react/Surface.stories.d.ts +8 -10
  119. package/dist/types/src/react/Surface.stories.d.ts.map +1 -1
  120. package/dist/types/src/react/index.d.ts +2 -0
  121. package/dist/types/src/react/index.d.ts.map +1 -1
  122. package/dist/types/src/react/types.d.ts +14 -0
  123. package/dist/types/src/react/types.d.ts.map +1 -0
  124. package/dist/types/src/{App.d.ts → react/useApp.d.ts} +7 -6
  125. package/dist/types/src/react/useApp.d.ts.map +1 -0
  126. package/dist/types/src/react/useLoading.d.ts +19 -0
  127. package/dist/types/src/react/useLoading.d.ts.map +1 -0
  128. package/dist/types/src/testing/withPluginManager.d.ts +7 -8
  129. package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
  130. package/dist/types/src/testing/withPluginManager.stories.d.ts +9 -3
  131. package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
  132. package/dist/types/tsconfig.tsbuildinfo +1 -1
  133. package/moon.yml +5 -1
  134. package/package.json +44 -40
  135. package/src/common/capabilities.ts +33 -25
  136. package/src/common/collaboration.ts +6 -9
  137. package/src/common/file.ts +1 -1
  138. package/src/common/layout.ts +3 -4
  139. package/src/common/surface.ts +23 -21
  140. package/src/common/translations.ts +1 -1
  141. package/src/core/capabilities.test.ts +2 -2
  142. package/src/core/capabilities.ts +35 -27
  143. package/src/core/manager.test.ts +19 -19
  144. package/src/core/manager.ts +14 -7
  145. package/src/core/plugin.ts +13 -2
  146. package/src/index.ts +0 -2
  147. package/src/playground/debug/Debug.tsx +1 -1
  148. package/src/playground/debug/plugin.ts +7 -8
  149. package/src/playground/generator/Main.tsx +0 -1
  150. package/src/playground/generator/generator.ts +2 -2
  151. package/src/playground/generator/plugin.ts +12 -13
  152. package/src/playground/layout/plugin.ts +9 -8
  153. package/src/playground/logger/plugin.ts +27 -23
  154. package/src/playground/logger/schema.ts +1 -1
  155. package/src/playground/playground.stories.tsx +17 -14
  156. package/src/plugin-intent/IntentPlugin.ts +12 -13
  157. package/src/plugin-intent/actions.ts +4 -6
  158. package/src/plugin-intent/errors.ts +2 -1
  159. package/src/plugin-intent/index.ts +1 -0
  160. package/src/plugin-intent/intent-dispatcher.test.ts +10 -3
  161. package/src/plugin-intent/intent-dispatcher.ts +16 -8
  162. package/src/plugin-intent/intent.ts +1 -1
  163. package/src/plugin-intent/meta.ts +10 -0
  164. package/src/plugin-settings/SettingsPlugin.ts +25 -27
  165. package/src/plugin-settings/actions.ts +9 -13
  166. package/src/plugin-settings/app-graph-builder.ts +22 -20
  167. package/src/plugin-settings/intent-resolver.ts +2 -2
  168. package/src/plugin-settings/meta.ts +10 -0
  169. package/src/plugin-settings/store.ts +2 -2
  170. package/src/plugin-settings/translations.ts +4 -4
  171. package/src/react/App.stories.tsx +33 -0
  172. package/src/react/App.tsx +59 -0
  173. package/src/react/DefaultFallback.tsx +26 -0
  174. package/src/react/ErrorBoundary.tsx +10 -8
  175. package/src/react/Surface.stories.tsx +79 -51
  176. package/src/react/Surface.tsx +67 -36
  177. package/src/react/index.ts +4 -0
  178. package/src/react/types.ts +38 -0
  179. package/src/react/useApp.tsx +165 -0
  180. package/src/react/useCapabilities.ts +2 -2
  181. package/src/react/useLoading.tsx +70 -0
  182. package/src/testing/withPluginManager.stories.tsx +7 -4
  183. package/src/testing/withPluginManager.tsx +27 -29
  184. package/tsconfig.json +11 -9
  185. package/vitest.config.ts +8 -6
  186. package/.swc/plugins/v7_linux_x86_64_13.0.0/c614d7475354583212fbd7669acbae95b9832c305bf51bdaabe2e6de05abb6bf +0 -0
  187. package/dist/lib/browser/app-graph-builder-MOVKFH3J.mjs.map +0 -7
  188. package/dist/lib/browser/chunk-NKCIDYDI.mjs.map +0 -7
  189. package/dist/lib/browser/chunk-ORWHM7CO.mjs.map +0 -7
  190. package/dist/lib/browser/chunk-OSBZFKMO.mjs.map +0 -7
  191. package/dist/lib/browser/intent-resolver-ZCGEAG3E.mjs.map +0 -7
  192. package/dist/lib/browser/store-3QB6Q2BC.mjs.map +0 -7
  193. package/dist/lib/browser/worker.mjs +0 -79
  194. package/dist/lib/node-esm/app-graph-builder-ODE4B5GT.mjs.map +0 -7
  195. package/dist/lib/node-esm/chunk-UMZQERLE.mjs.map +0 -7
  196. package/dist/lib/node-esm/chunk-WU3QN5B6.mjs.map +0 -7
  197. package/dist/lib/node-esm/chunk-YEN7NKTF.mjs.map +0 -7
  198. package/dist/lib/node-esm/intent-resolver-KG27L7EQ.mjs.map +0 -7
  199. package/dist/lib/node-esm/store-TIJAVO3D.mjs.map +0 -7
  200. package/dist/lib/node-esm/worker.mjs +0 -80
  201. package/dist/types/src/App.d.ts.map +0 -1
  202. package/dist/types/src/worker.d.ts +0 -4
  203. package/dist/types/src/worker.d.ts.map +0 -1
  204. package/src/App.tsx +0 -284
  205. package/src/worker.ts +0 -11
  206. /package/dist/lib/browser/{intent-dispatcher-FTTJLVGN.mjs.map → intent-dispatcher-LZ4AE66E.mjs.map} +0 -0
  207. /package/dist/lib/browser/{worker.mjs.map → react/index.mjs.map} +0 -0
  208. /package/dist/lib/node-esm/{intent-dispatcher-YQIQ55LJ.mjs.map → intent-dispatcher-MGOJ3CHD.mjs.map} +0 -0
  209. /package/dist/lib/node-esm/{worker.mjs.map → react/index.mjs.map} +0 -0
@@ -3,5 +3,5 @@ export declare const Number: import("../..").InterfaceDef<number>;
3
3
  export declare const CountEvent: import("../..").ActivationEvent;
4
4
  export declare const createPluginId: (id: string) => string;
5
5
  export declare const createGeneratorIntent: (id: string) => IntentSchema<any, any>;
6
- export declare const createNumberPlugin: (id: string) => import("../..").Plugin;
6
+ export declare const createNumberPlugin: (id: string) => import("../..").PluginFactory<void>;
7
7
  //# sourceMappingURL=generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/generator.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,qBAAqB,CAAC;AAExE,eAAO,MAAM,MAAM,sCAA6D,CAAC;AAEjF,eAAO,MAAM,UAAU,iCAA+C,CAAC;AAEvE,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAAoC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAMnB,YAAY,CAAC,GAAG,EAAE,GAAG,CACjD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,2BAsB5C,CAAC"}
1
+ {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/generator.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,qBAAqB,CAAC;AAExE,eAAO,MAAM,MAAM,sCAA6D,CAAC;AAEjF,eAAO,MAAM,UAAU,iCAA+C,CAAC;AAEvE,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAAoC,CAAC;AAE9E,eAAO,MAAM,qBAAqB,GAAI,IAAI,MAAM,KAMnB,YAAY,CAAC,GAAG,EAAE,GAAG,CACjD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,IAAI,MAAM,wCAsB5C,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const GeneratorPlugin: () => import("../..").Plugin;
1
+ export declare const GeneratorPlugin: import("../..").PluginFactory<void>;
2
2
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/plugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,8BAYxB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/generator/plugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,qCAW1B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  export declare const Layout: () => React.JSX.Element;
3
- declare const _default: () => import("../..").Capability<Readonly<{
3
+ declare const _default: () => import("../..").Capability<import("../..").InterfaceDef<Readonly<{
4
4
  id: string;
5
5
  root: React.FC<React.PropsWithChildren>;
6
- }>>;
6
+ }>>>;
7
7
  export default _default;
8
8
  //# sourceMappingURL=Layout.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const LayoutPlugin: () => import("../..").Plugin;
1
+ export declare const LayoutPlugin: import("../..").PluginFactory<void>;
2
2
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/layout/plugin.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,8BAOrB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/layout/plugin.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,qCAMvB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Capabilities } from '../../common';
3
3
  export declare const Logger: () => React.JSX.Element;
4
- declare const _default: () => import("../..").Capability<Capabilities.ReactSurface>;
4
+ declare const _default: () => import("../..").Capability<import("../..").InterfaceDef<Capabilities.ReactSurface>>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=Toolbar.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const LoggerPlugin: () => import("../..").Plugin;
1
+ export declare const LoggerPlugin: import("../..").PluginFactory<void>;
2
2
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/plugin.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,8BAsBrB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/plugin.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,YAAY,qCAqBvB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  declare const Log_base: Schema.TaggedClass<Log, "dxos.org/test/logger/log", {
3
3
  readonly _tag: Schema.tag<"dxos.org/test/logger/log">;
4
4
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;AAEhC,qBAAa,GAAI,SAAQ,QAKvB;CAAG"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/playground/logger/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;AAExC,qBAAa,GAAI,SAAQ,QAKvB;CAAG"}
@@ -1,10 +1,11 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- export declare const Playground: {};
4
- declare const _default: {
3
+ declare const meta: {
5
4
  title: string;
6
5
  render: () => React.JSX.Element;
7
6
  decorators: import("@storybook/react").Decorator[];
8
7
  };
9
- export default _default;
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Playground: Story;
10
11
  //# sourceMappingURL=playground.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"playground.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/playground.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,eAAO,MAAM,UAAU,IAAK,CAAC;;;;;;AAE7B,wBAIE"}
1
+ {"version":3,"file":"playground.stories.d.ts","sourceRoot":"","sources":["../../../../src/playground/playground.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const IntentPlugin: () => import("..").Plugin;
1
+ export declare const IntentPlugin: import("..").PluginFactory<void>;
2
2
  //# sourceMappingURL=IntentPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntentPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentPlugin.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,2BAWrB,CAAC"}
1
+ {"version":3,"file":"IntentPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentPlugin.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY,kCAUvB,CAAC"}
@@ -1,9 +1,7 @@
1
- import { Schema } from 'effect';
2
- export declare const INTENT_PLUGIN = "dxos.org/plugin/intent";
3
- export declare const INTENT_ACTION = "dxos.org/plugin/intent/action";
1
+ import * as Schema from 'effect/Schema';
4
2
  export declare namespace IntentAction {
5
- const Track_base: Schema.TaggedClass<Track, "dxos.org/plugin/intent/action/track", {
6
- readonly _tag: Schema.tag<"dxos.org/plugin/intent/action/track">;
3
+ const Track_base: Schema.TaggedClass<Track, `${string}/action/track`, {
4
+ readonly _tag: Schema.tag<`${string}/action/track`>;
7
5
  } & {
8
6
  input: Schema.Struct<{
9
7
  intents: Schema.Array$<typeof Schema.String>;
@@ -16,8 +14,8 @@ export declare namespace IntentAction {
16
14
  */
17
15
  export class Track extends Track_base {
18
16
  }
19
- const ShowUndo_base: Schema.TaggedClass<ShowUndo, "dxos.org/plugin/intent/action/show-undo", {
20
- readonly _tag: Schema.tag<"dxos.org/plugin/intent/action/show-undo">;
17
+ const ShowUndo_base: Schema.TaggedClass<ShowUndo, `${string}/action/show-undo`, {
18
+ readonly _tag: Schema.tag<`${string}/action/show-undo`>;
21
19
  } & {
22
20
  input: Schema.Struct<{
23
21
  message: Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD,yBAAiB,YAAY,CAAC;;;;;;;;;;IAC5B;;OAEG;IACH,MAAM,OAAO,KAAM,SAAQ,UAMzB;KAAG;;;;;;;;;;;;;IAEL;;OAEG;IACH,MAAM,OAAO,QAAS,SAAQ,aAK5B;KAAG;;CACN"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,yBAAiB,YAAY,CAAC;;;;;;;;;;IAC5B;;OAEG;IACH,MAAM,OAAO,KAAM,SAAQ,UAMzB;KAAG;;;;;;;;;;;;;IAEL;;OAEG;IACH,MAAM,OAAO,QAAS,SAAQ,aAK5B;KAAG;;CACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/errors.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAEhC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAErB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gBAF7B,IAAI,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,MAAM,EACP,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAA;CAQzC;AAED,qBAAa,gBAAiB,SAAQ,SAAS;gBACjC,MAAM,EAAE,MAAM;CAG3B;AAED,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAO1C"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/errors.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAEhC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAErB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gBAF7B,IAAI,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,MAAM,EACP,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAA;CAQzC;AAED,qBAAa,gBAAiB,SAAQ,SAAS;gBACjC,MAAM,EAAE,MAAM;CAG3B;AAGD,qBAAa,kBAAmB,SAAQ,SAAS;gBACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAO1C"}
@@ -1,4 +1,5 @@
1
1
  export * from './actions';
2
+ export * from './errors';
2
3
  export * from './intent';
3
4
  export * from './intent-dispatcher';
4
5
  export * from './IntentPlugin';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Effect } from 'effect';
2
- import { type Simplify } from 'effect/Types';
1
+ import * as Effect from 'effect/Effect';
2
+ import type * as Types from 'effect/Types';
3
3
  import { type GuardedType, type MaybePromise, type Position } from '@dxos/util';
4
4
  import { type PluginContext } from '../core';
5
5
  import { type AnyIntentChain, type Intent, type IntentChain, type IntentData, type IntentParams, type IntentResultData, type IntentSchema, type Label } from './intent';
@@ -100,11 +100,11 @@ export declare const createResolver: <Tag extends string, Fields extends IntentP
100
100
  /**
101
101
  * Invokes intents and returns the result.
102
102
  */
103
- export type PromiseIntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>) => Promise<Simplify<IntentDispatcherResult<IntentData<Fields>, IntentResultData<Fields>>>>;
103
+ export type PromiseIntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>) => Promise<Types.Simplify<IntentDispatcherResult<IntentData<Fields>, IntentResultData<Fields>>>>;
104
104
  /**
105
105
  * Creates an effect for intents.
106
106
  */
107
- export type IntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>, depth?: number) => Effect.Effect<Simplify<Required<IntentDispatcherResult<IntentData<Fields>, IntentResultData<Fields>>>['data']>, Error>;
107
+ export type IntentDispatcher = <Fields extends IntentParams>(intent: IntentChain<any, any, any, Fields>, depth?: number) => Effect.Effect<Types.Simplify<Required<IntentDispatcherResult<IntentData<Fields>, IntentResultData<Fields>>>['data']>, Error>;
108
108
  type IntentResult<Tag extends string, Fields extends IntentParams> = IntentEffectResult<IntentData<Fields>, IntentResultData<Fields>> & {
109
109
  _intent: Intent<Tag, Fields>;
110
110
  };
@@ -134,6 +134,6 @@ export declare const createDispatcher: (getResolvers: () => AnyIntentResolver[],
134
134
  executionLimit?: number | undefined;
135
135
  historyLimit?: number | undefined;
136
136
  }) => IntentContext;
137
- declare const _default: (context: PluginContext) => import("..").Capability<import("@dxos/live-object").Live<IntentContext>>;
137
+ declare const _default: (context: PluginContext) => import("..").Capability<import("..").InterfaceDef<IntentContext>>;
138
138
  export default _default;
139
139
  //# sourceMappingURL=intent-dispatcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent-dispatcher.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent-dispatcher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAqB,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAc,MAAM,YAAY,CAAC;AAG5F,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,SAAS,CAAC;AAI1D,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,KAAK,EAEX,MAAM,UAAU,CAAC;AAKlB;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,KAAK,EAAE,MAAM,IAAI;IAC9C;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC;QAEf;;WAEG;QACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;KACvB,CAAC;IAEF;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,E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CACzB,GAAG;IACF,OAAO,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;AAQzD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,eAAe,EAAE,uBAAuB,CAAC;IACzC,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,cAAc,MAAM,iBAAiB,EAAE,EACvC;;;CAAuE,KACtE,aAoHF,CAAC;yBAKc,SAAS,aAAa;AAAtC,wBA4BE"}
@@ -1,4 +1,4 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
2
  export type IntentParams = {
3
3
  readonly input: Schema.Schema.All;
4
4
  readonly output: Schema.Schema.All;
@@ -1 +1 @@
1
- {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,YAAY,IAChD,MAAM,CAAC,MAAM,CAAC,IAAI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CAAM,MAGpC,QAAQ,WAAW,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,KAC1D,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,CAexD,CAAC;AAQJ,eAAO,MAAM,KAAK;;;;OAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type PluginMeta } from '@dxos/app-framework';
2
+ export declare const meta: PluginMeta;
3
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,IAAI,EAAE,UAGlB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const SettingsPlugin: () => import("..").Plugin;
1
+ export declare const SettingsPlugin: import("..").PluginFactory<void>;
2
2
  //# sourceMappingURL=SettingsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/SettingsPlugin.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc,2BAwBvB,CAAC"}
1
+ {"version":3,"file":"SettingsPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/SettingsPlugin.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,kCAuBzB,CAAC"}
@@ -1,11 +1,9 @@
1
- import { Schema } from 'effect';
2
- export declare const SETTINGS_PLUGIN = "dxos.org/plugin/settings";
3
- export declare const SETTINGS_ACTION = "dxos.org/plugin/settings/action";
1
+ import * as Schema from 'effect/Schema';
4
2
  export declare const SETTINGS_ID = "!dxos:settings";
5
3
  export declare const SETTINGS_KEY = "settings";
6
4
  export declare namespace SettingsAction {
7
- const Open_base: Schema.TaggedClass<Open, "dxos.org/plugin/settings/action/open", {
8
- readonly _tag: Schema.tag<"dxos.org/plugin/settings/action/open">;
5
+ const Open_base: Schema.TaggedClass<Open, `${string}/open`, {
6
+ readonly _tag: Schema.tag<`${string}/open`>;
9
7
  } & {
10
8
  input: Schema.Struct<{
11
9
  plugin: Schema.optional<typeof Schema.String>;
@@ -14,8 +12,8 @@ export declare namespace SettingsAction {
14
12
  }>;
15
13
  export class Open extends Open_base {
16
14
  }
17
- const OpenPluginRegistry_base: Schema.TaggedClass<OpenPluginRegistry, "dxos.org/plugin/settings/action/open-plugin-registry", {
18
- readonly _tag: Schema.tag<"dxos.org/plugin/settings/action/open-plugin-registry">;
15
+ const OpenPluginRegistry_base: Schema.TaggedClass<OpenPluginRegistry, `${string}/open-plugin-registry`, {
16
+ readonly _tag: Schema.tag<`${string}/open-plugin-registry`>;
19
17
  } & {
20
18
  input: typeof Schema.Void;
21
19
  output: typeof Schema.Void;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,eAAe,oCAA8B,CAAC;AAG3D,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAC5C,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,yBAAiB,cAAc,CAAC;;;;;;;;;IAC9B,MAAM,OAAO,IAAK,SAAQ,SAKxB;KAAG;;;;;;;IAEL,MAAM,OAAO,kBAAmB,SAAQ,uBAMvC;KAAG;;CACL"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAC5C,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,yBAAiB,cAAc,CAAC;;;;;;;;;IAC9B,MAAM,OAAO,IAAK,SAAQ,SAKxB;KAAG;;;;;;;IAEL,MAAM,OAAO,kBAAmB,SAAQ,uBAGtC;KAAG;;CACN"}
@@ -1,4 +1,4 @@
1
1
  import { type PluginContext } from '../core';
2
- declare const _default: (context: PluginContext) => import("..").Capability<import("@dxos/app-graph").BuilderExtensions>;
2
+ declare const _default: (context: PluginContext) => import("..").Capability<import("..").InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/app-graph-builder.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,aAAa,EAAgC,MAAM,SAAS,CAAC;yBAK3D,SAAS,aAAa;AAAtC,wBA4IK"}
1
+ {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/app-graph-builder.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,aAAa,EAAgC,MAAM,SAAS,CAAC;yBAM3D,SAAS,aAAa;AAAtC,wBA4IK"}
@@ -1,4 +1,4 @@
1
1
  import { Capabilities } from '../common';
2
- declare const _default: () => import("..").Capability<Capabilities.IntentResolver>;
2
+ declare const _default: () => import("..").Capability<import("..").InterfaceDef<Capabilities.IntentResolver>>;
3
3
  export default _default;
4
4
  //# sourceMappingURL=intent-resolver.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { type PluginMeta } from '@dxos/app-framework';
2
+ export declare const meta: PluginMeta;
3
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,IAAI,EAAE,UAGlB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { RootSettingsStore } from '@dxos/local-storage';
2
2
  import { type PluginContext } from '../core';
3
- declare const _default: (context: PluginContext) => import("..").Capability<RootSettingsStore>;
3
+ declare const _default: (context: PluginContext) => import("..").Capability<import("..").InterfaceDef<RootSettingsStore>>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=store.d.ts.map
@@ -1,6 +1,7 @@
1
+ import { meta } from './meta';
1
2
  export declare const translations: [{
2
3
  readonly 'en-US': {
3
- readonly "dxos.org/plugin/settings": {
4
+ readonly [meta.id]: {
4
5
  readonly 'open settings label': "Open settings";
5
6
  readonly 'app settings label': "Settings";
6
7
  readonly 'custom plugins label': "Plugins";
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;EAUM,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/plugin-settings/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;UAIR;;EAGwB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { type UseAppOptions } from './useApp';
3
+ export type AppProps = Pick<UseAppOptions, 'placeholder' | 'debounce'> & {
4
+ state: {
5
+ ready: boolean;
6
+ error: unknown;
7
+ };
8
+ };
9
+ export declare const App: ({ placeholder: Placeholder, state, debounce }: AppProps) => React.JSX.Element | null;
10
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/react/App.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAKtD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG;IACvE,KAAK,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,+CAA+C,QAAQ,6BA2B1E,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ render: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ //# sourceMappingURL=App.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.stories.d.ts","sourceRoot":"","sources":["../../../../src/react/App.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,IAAI;;;;;;;CAOM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ /**
3
+ * NOTE: Default fallback should not use tailwind or theme.
4
+ */
5
+ export declare const DefaultFallback: ({ error }: {
6
+ error: Error;
7
+ }) => React.JSX.Element;
8
+ //# sourceMappingURL=DefaultFallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultFallback.d.ts","sourceRoot":"","sources":["../../../../src/react/DefaultFallback.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,sBAgB1D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Component, type FC, type JSX, type PropsWithChildren, type ReactNode } from 'react';
1
+ import { Component, type FC, type PropsWithChildren, type ReactNode } from 'react';
2
2
  type State = {
3
3
  error: Error | undefined;
4
4
  };
@@ -23,7 +23,7 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, State>
23
23
  error: undefined;
24
24
  };
25
25
  componentDidUpdate(prevProps: ErrorBoundaryProps): void;
26
- render(): string | number | boolean | JSX.Element | Iterable<ReactNode> | null | undefined;
26
+ render(): ReactNode;
27
27
  private resetError;
28
28
  }
29
29
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/react/ErrorBoundary.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpG,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IACjD,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CAC7C,CAAC,CAAC;AAEH;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC;IACrE,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE;IAItD,KAAK;;MAAwB;IAE7B,kBAAkB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAMvD,MAAM,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,GAAG,CAAC,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS;IASnG,OAAO,CAAC,UAAU;CAGnB"}
1
+ {"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/react/ErrorBoundary.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1F,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IACjD,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,EAAE,CAAC;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CAC7C,CAAC,CAAC;AAEH;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,KAAK,CAAC;IACrE,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE;IAItD,KAAK;;MAAwB;IAE7B,kBAAkB,CAAC,SAAS,EAAE,kBAAkB,GAAG,IAAI;IAMvD,MAAM,IAAI,SAAS;IAS5B,OAAO,CAAC,UAAU;CAGnB"}
@@ -1,12 +1,12 @@
1
- import React from 'react';
1
+ import { type NamedExoticComponent, type RefAttributes } from 'react';
2
2
  import { type SurfaceProps } from '../common';
3
3
  import { type PluginContext } from '../core';
4
4
  /**
5
- * @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.
5
+ * A surface is a named region of the screen that can be populated by plugins.
6
6
  */
7
- export declare const isSurfaceAvailable: (context: PluginContext, { role, data }: Pick<SurfaceProps, "role" | "data">) => boolean;
7
+ export declare const Surface: NamedExoticComponent<SurfaceProps & RefAttributes<HTMLElement>>;
8
8
  /**
9
- * A surface is a named region of the screen that can be populated by plugins.
9
+ * @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.
10
10
  */
11
- export declare const Surface: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<SurfaceProps, "ref"> & React.RefAttributes<HTMLElement>>>;
11
+ export declare const isSurfaceAvailable: (context: PluginContext, { role, data }: Pick<SurfaceProps, "role" | "data">) => boolean;
12
12
  //# sourceMappingURL=Surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAK7E,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAwB7C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,aAAa,EAAE,gBAAgB,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,YAI7G,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,0HA6BnB,CAAC"}
1
+ {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.tsx"],"names":[],"mappings":"AAIA,OAAc,EAEZ,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAKnB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAwC,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,oBAAoB,CAAC,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,CA+BnF,CAAC;AA+BF;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAAI,SAAS,aAAa,EAAE,gBAAgB,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,YAI7G,CAAC"}
@@ -1,16 +1,14 @@
1
- import '@dxos-theme';
1
+ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- import { type PluginManager } from '../core';
4
- declare const _default: {
3
+ declare const meta: {
5
4
  title: string;
6
- render: ({ manager }: {
7
- manager: PluginManager;
8
- }) => React.JSX.Element;
5
+ render: () => React.JSX.Element;
9
6
  decorators: import("@storybook/react").Decorator[];
10
- args: {
11
- manager: PluginManager;
7
+ parameters: {
8
+ layout: string;
12
9
  };
13
10
  };
14
- export default _default;
15
- export declare const Default: {};
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
16
14
  //# sourceMappingURL=Surface.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Surface.stories.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;;;0BAqErB;QAAE,OAAO,EAAE,aAAa,CAAA;KAAE;;;;;;AAFlD,wBAcE;AAEF,eAAO,MAAM,OAAO,IAAK,CAAC"}
1
+ {"version":3,"file":"Surface.stories.d.ts","sourceRoot":"","sources":["../../../../src/react/Surface.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA2C,MAAM,OAAO,CAAC;AA0GhE,QAAA,MAAM,IAAI;;;;;;;CAO2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,7 +1,9 @@
1
1
  export * from './common';
2
+ export * from './types';
2
3
  export * from './ErrorBoundary';
3
4
  export * from './PluginManagerProvider';
4
5
  export * from './Surface';
6
+ export * from './useApp';
5
7
  export * from './useCapabilities';
6
8
  export * from './useIntentResolver';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/react/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAE1B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as Schema from 'effect/Schema';
2
+ import { type Obj } from '@dxos/echo';
3
+ export declare const SurfaceCardRole: Schema.Literal<["card", "card--popover", "card--intrinsic", "card--extrinsic", "card--transclusion"]>;
4
+ export type SurfaceCardRole = Schema.Schema.Type<typeof SurfaceCardRole>;
5
+ export type SurfaceRole = 'item' | 'article' | 'complementary' | 'section' | SurfaceCardRole;
6
+ /**
7
+ * Base type for surface components.
8
+ */
9
+ export type SurfaceComponentProps<Subject extends Obj.Any = Obj.Any, Role extends string = string> = {
10
+ role?: Role;
11
+ /** The primary object being displayed. */
12
+ subject: Subject;
13
+ };
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/react/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,eAAe,uGAM3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAGzE,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,SAAS,GACT,eAAe,GACf,SAAS,GACT,eAAe,CAAC;AAEpB;;GAEG;AAIH,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,IAAI;IACnG,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React, { type FC } from 'react';
2
- import { type Plugin, PluginManager, type PluginManagerOptions } from './core';
3
- import { ErrorBoundary } from './react';
4
- export type CreateAppOptions = {
2
+ import { type Plugin, PluginManager, type PluginManagerOptions } from '../core';
3
+ import { ErrorBoundary } from './ErrorBoundary';
4
+ export type UseAppOptions = {
5
5
  pluginManager?: PluginManager;
6
6
  pluginLoader?: PluginManagerOptions['pluginLoader'];
7
7
  plugins?: Plugin[];
@@ -13,6 +13,7 @@ export type CreateAppOptions = {
13
13
  fallback?: ErrorBoundary['props']['fallback'];
14
14
  cacheEnabled?: boolean;
15
15
  safeMode?: boolean;
16
+ debounce?: number;
16
17
  };
17
18
  /**
18
19
  * Expected usage is for this to be the entrypoint of the application.
@@ -23,7 +24,7 @@ export type CreateAppOptions = {
23
24
  * const core = [LayoutPluginId];
24
25
  * const default = [MyPluginId];
25
26
  * const fallback = <div>Initializing Plugins...</div>;
26
- * const App = createApp({ plugins, core, default, fallback });
27
+ * const App = useApp({ plugins, core, default, fallback });
27
28
  * createRoot(document.getElementById('root')!).render(
28
29
  * <StrictMode>
29
30
  * <App />
@@ -39,5 +40,5 @@ export type CreateAppOptions = {
39
40
  * @param params.cacheEnabled Whether to cache enabled plugins in localStorage.
40
41
  * @param params.safeMode Whether to enable safe mode, which disables optional plugins.
41
42
  */
42
- export declare const useApp: ({ pluginManager, pluginLoader: _pluginLoader, plugins: _plugins, core: _core, defaults: _defaults, placeholder, fallback, cacheEnabled, safeMode, }: CreateAppOptions) => () => React.JSX.Element;
43
- //# sourceMappingURL=App.d.ts.map
43
+ export declare const useApp: ({ pluginManager, pluginLoader: pluginLoaderParam, plugins: pluginsParam, core: coreParam, defaults: defaultsParam, placeholder, fallback, cacheEnabled, safeMode, debounce, }: UseAppOptions) => () => React.JSX.Element;
44
+ //# sourceMappingURL=useApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApp.d.ts","sourceRoot":"","sources":["../../../../src/react/useApp.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAmC,MAAM,OAAO,CAAC;AAOxE,OAAO,EAAE,KAAK,MAAM,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIhF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACpD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,EAAE,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM,GAAI,+KAWpB,aAAa,4BAwFf,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type AppProps } from './App';
2
+ export declare enum LoadingState {
3
+ Loading = 0,
4
+ FadeIn = 1,
5
+ FadeOut = 2,
6
+ Done = 3
7
+ }
8
+ /**
9
+ * To avoid "flashing" the placeholder, we wait a period of time before starting the loading animation.
10
+ * If loading completes during this time the placehoder is not shown, otherwise is it displayed for a minimum period of time.
11
+ *
12
+ * States:
13
+ * 0: Loading - Wait for a period of time before starting the loading animation.
14
+ * 1: Fade-in - Display a loading animation.
15
+ * 2: Fade-out - Fade out the loading animation.
16
+ * 3: Done - Remove the placeholder.
17
+ */
18
+ export declare const useLoading: (state: AppProps["state"], debounce?: number) => LoadingState;
19
+ //# sourceMappingURL=useLoading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLoading.d.ts","sourceRoot":"","sources":["../../../../src/react/useLoading.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,IAAI;IACX,IAAI,IAAI;CACT;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAY,iBA4ChE,CAAC"}