@dxos/app-framework 0.7.4 → 0.7.5-labs.071a3e2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/app-graph-builder-MOLT4EHG.mjs +137 -0
- package/dist/lib/browser/app-graph-builder-MOLT4EHG.mjs.map +7 -0
- package/dist/lib/browser/chunk-G3HBVVT5.mjs +1403 -0
- package/dist/lib/browser/chunk-G3HBVVT5.mjs.map +7 -0
- package/dist/lib/browser/chunk-LDJ3T4V3.mjs +32 -0
- package/dist/lib/browser/chunk-LDJ3T4V3.mjs.map +7 -0
- package/dist/lib/browser/chunk-TGOF2WQZ.mjs +285 -0
- package/dist/lib/browser/chunk-TGOF2WQZ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +135 -543
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-dispatcher-LJKNIGAM.mjs +11 -0
- package/dist/lib/browser/intent-resolver-Z724VAMC.mjs +38 -0
- package/dist/lib/browser/intent-resolver-Z724VAMC.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/store-NWCY7LAP.mjs +19 -0
- package/dist/lib/browser/store-NWCY7LAP.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +74 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/browser/worker.mjs +77 -0
- package/dist/lib/node/app-graph-builder-G7SRXDFD.cjs +146 -0
- package/dist/lib/node/app-graph-builder-G7SRXDFD.cjs.map +7 -0
- package/dist/lib/node/chunk-55KIQ6YK.cjs +1437 -0
- package/dist/lib/node/chunk-55KIQ6YK.cjs.map +7 -0
- package/dist/lib/node/chunk-5GABBW2Q.cjs +308 -0
- package/dist/lib/node/chunk-5GABBW2Q.cjs.map +7 -0
- package/dist/lib/node/chunk-QLVQ6PND.cjs +58 -0
- package/dist/lib/node/chunk-QLVQ6PND.cjs.map +7 -0
- package/dist/lib/node/index.cjs +136 -558
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/{plugin-settings-OZ6IKAE5.cjs → intent-dispatcher-CGUK3BCJ.cjs} +10 -10
- package/dist/lib/node/intent-dispatcher-CGUK3BCJ.cjs.map +7 -0
- package/dist/lib/node/intent-resolver-7GNKPRWT.cjs +45 -0
- package/dist/lib/node/intent-resolver-7GNKPRWT.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/store-WMJSEQPC.cjs +34 -0
- package/dist/lib/node/store-WMJSEQPC.cjs.map +7 -0
- package/dist/lib/node/testing/index.cjs +98 -0
- package/dist/lib/node/testing/index.cjs.map +7 -0
- package/dist/lib/node/worker.cjs +99 -0
- package/dist/lib/node/worker.cjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-MKLYH3NE.mjs +138 -0
- package/dist/lib/node-esm/app-graph-builder-MKLYH3NE.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-47FG42II.mjs +286 -0
- package/dist/lib/node-esm/chunk-47FG42II.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CNJYZNSL.mjs +34 -0
- package/dist/lib/node-esm/chunk-CNJYZNSL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZTB4TA6Q.mjs +1405 -0
- package/dist/lib/node-esm/chunk-ZTB4TA6Q.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +135 -543
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-dispatcher-RZAWA4XD.mjs +12 -0
- package/dist/lib/node-esm/intent-resolver-UIU37CKJ.mjs +39 -0
- package/dist/lib/node-esm/intent-resolver-UIU37CKJ.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/store-YUWINFBN.mjs +20 -0
- package/dist/lib/node-esm/store-YUWINFBN.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +75 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/worker.mjs +78 -0
- package/dist/types/src/App.d.ts +22 -13
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +296 -0
- package/dist/types/src/common/capabilities.d.ts.map +1 -0
- package/dist/types/src/common/events.d.ts +48 -0
- package/dist/types/src/common/events.d.ts.map +1 -0
- package/dist/types/src/common/file.d.ts +14 -0
- package/dist/types/src/common/file.d.ts.map +1 -0
- package/dist/types/src/common/graph.d.ts +21 -0
- package/dist/types/src/common/graph.d.ts.map +1 -0
- package/dist/types/src/common/index.d.ts +8 -0
- package/dist/types/src/common/index.d.ts.map +1 -0
- package/dist/types/src/common/layout.d.ts +248 -0
- package/dist/types/src/common/layout.d.ts.map +1 -0
- package/dist/types/src/common/surface.d.ts +68 -0
- package/dist/types/src/common/surface.d.ts.map +1 -0
- package/dist/types/src/common/translations.d.ts +11 -0
- package/dist/types/src/common/translations.d.ts.map +1 -0
- package/dist/types/src/core/capabilities.d.ts +94 -0
- package/dist/types/src/core/capabilities.d.ts.map +1 -0
- package/dist/types/src/core/capabilities.test.d.ts +2 -0
- package/dist/types/src/core/capabilities.test.d.ts.map +1 -0
- package/dist/types/src/core/events.d.ts +58 -0
- package/dist/types/src/core/events.d.ts.map +1 -0
- package/dist/types/src/core/index.d.ts +5 -0
- package/dist/types/src/core/index.d.ts.map +1 -0
- package/dist/types/src/core/manager.d.ts +119 -0
- package/dist/types/src/core/manager.d.ts.map +1 -0
- package/dist/types/src/core/manager.test.d.ts +2 -0
- package/dist/types/src/core/manager.test.d.ts.map +1 -0
- package/dist/types/src/core/plugin.d.ts +97 -0
- package/dist/types/src/core/plugin.d.ts.map +1 -0
- package/dist/types/src/helpers.d.ts +10 -0
- package/dist/types/src/helpers.d.ts.map +1 -0
- package/dist/types/src/helpers.test.d.ts +2 -0
- package/dist/types/src/helpers.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +5 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/playground/debug/Debug.d.ts +6 -0
- package/dist/types/src/playground/debug/Debug.d.ts.map +1 -0
- package/dist/types/src/playground/debug/index.d.ts +2 -0
- package/dist/types/src/playground/debug/index.d.ts.map +1 -0
- package/dist/types/src/playground/debug/plugin.d.ts +2 -0
- package/dist/types/src/playground/debug/plugin.d.ts.map +1 -0
- package/dist/types/src/playground/generator/Main.d.ts +6 -0
- package/dist/types/src/playground/generator/Main.d.ts.map +1 -0
- package/dist/types/src/playground/generator/Toolbar.d.ts +6 -0
- package/dist/types/src/playground/generator/Toolbar.d.ts.map +1 -0
- package/dist/types/src/playground/generator/generator.d.ts +7 -0
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -0
- package/dist/types/src/playground/generator/index.d.ts +3 -0
- package/dist/types/src/playground/generator/index.d.ts.map +1 -0
- package/dist/types/src/playground/generator/plugin.d.ts +2 -0
- package/dist/types/src/playground/generator/plugin.d.ts.map +1 -0
- package/dist/types/src/playground/layout/Layout.d.ts +8 -0
- package/dist/types/src/playground/layout/Layout.d.ts.map +1 -0
- package/dist/types/src/playground/layout/index.d.ts +2 -0
- package/dist/types/src/playground/layout/index.d.ts.map +1 -0
- package/dist/types/src/playground/layout/plugin.d.ts +2 -0
- package/dist/types/src/playground/layout/plugin.d.ts.map +1 -0
- package/dist/types/src/playground/logger/Toolbar.d.ts +6 -0
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +1 -0
- package/dist/types/src/playground/logger/index.d.ts +2 -0
- package/dist/types/src/playground/logger/index.d.ts.map +1 -0
- package/dist/types/src/playground/logger/plugin.d.ts +2 -0
- package/dist/types/src/playground/logger/plugin.d.ts.map +1 -0
- package/dist/types/src/playground/logger/schema.d.ts +13 -0
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -0
- package/dist/types/src/playground/playground.stories.d.ts +10 -0
- package/dist/types/src/playground/playground.stories.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts +2 -0
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/actions.d.ts +23 -0
- package/dist/types/src/plugin-intent/actions.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/errors.d.ts +16 -0
- package/dist/types/src/plugin-intent/errors.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/index.d.ts +5 -0
- package/dist/types/src/plugin-intent/index.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +113 -0
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts +2 -0
- package/dist/types/src/plugin-intent/intent-dispatcher.test.d.ts.map +1 -0
- package/dist/types/src/plugin-intent/intent.d.ts +68 -0
- package/dist/types/src/plugin-intent/intent.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +2 -0
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/actions.d.ts +27 -0
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts +197 -0
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/index.d.ts +3 -0
- package/dist/types/src/plugin-settings/index.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/intent-resolver.d.ts +4 -0
- package/dist/types/src/plugin-settings/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/store.d.ts +5 -0
- package/dist/types/src/plugin-settings/store.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/translations.d.ts +11 -0
- package/dist/types/src/plugin-settings/translations.d.ts.map +1 -0
- package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -0
- package/dist/types/src/react/IntentContext.d.ts +8 -0
- package/dist/types/src/react/IntentContext.d.ts.map +1 -0
- package/dist/types/src/react/PluginManagerProvider.d.ts +10 -0
- package/dist/types/src/react/PluginManagerProvider.d.ts.map +1 -0
- package/dist/types/src/react/Surface.d.ts +12 -0
- package/dist/types/src/react/Surface.d.ts.map +1 -0
- package/dist/types/src/react/Surface.stories.d.ts +16 -0
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -0
- package/dist/types/src/react/common.d.ts +12 -0
- package/dist/types/src/react/common.d.ts.map +1 -0
- package/dist/types/src/react/index.d.ts +7 -0
- package/dist/types/src/react/index.d.ts.map +1 -0
- package/dist/types/src/react/useCapabilities.d.ts +13 -0
- package/dist/types/src/react/useCapabilities.d.ts.map +1 -0
- package/dist/types/src/react/useIntentResolver.d.ts +3 -0
- package/dist/types/src/react/useIntentResolver.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/withPluginManager.d.ts +10 -0
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -0
- package/dist/types/src/testing/withPluginManager.stories.d.ts +5 -0
- package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -0
- package/dist/types/src/worker.d.ts +4 -0
- package/dist/types/src/worker.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +39 -17
- package/project.json +4 -3
- package/src/App.tsx +139 -34
- package/src/common/capabilities.ts +97 -0
- package/src/common/events.ts +72 -0
- package/src/common/file.ts +22 -0
- package/src/common/graph.ts +30 -0
- package/src/{plugins/common → common}/index.ts +3 -2
- package/src/common/layout.ts +225 -0
- package/src/common/surface.ts +81 -0
- package/src/common/translations.ts +17 -0
- package/src/core/capabilities.test.ts +116 -0
- package/src/core/capabilities.ts +222 -0
- package/src/core/events.ts +58 -0
- package/src/core/index.ts +8 -0
- package/src/core/manager.test.ts +516 -0
- package/src/core/manager.ts +511 -0
- package/src/core/plugin.ts +131 -0
- package/src/helpers.test.ts +97 -0
- package/src/helpers.ts +45 -0
- package/src/index.ts +6 -3
- package/src/playground/debug/Debug.tsx +39 -0
- package/src/playground/debug/index.ts +5 -0
- package/src/playground/debug/plugin.ts +17 -0
- package/src/playground/generator/Main.tsx +71 -0
- package/src/playground/generator/Toolbar.tsx +46 -0
- package/src/playground/generator/generator.ts +48 -0
- package/src/playground/generator/index.ts +6 -0
- package/src/playground/generator/plugin.ts +23 -0
- package/src/playground/layout/Layout.tsx +33 -0
- package/src/playground/layout/index.ts +5 -0
- package/src/playground/layout/plugin.ts +17 -0
- package/src/playground/logger/Toolbar.tsx +29 -0
- package/src/playground/logger/index.ts +5 -0
- package/src/playground/logger/plugin.ts +36 -0
- package/src/playground/logger/schema.ts +12 -0
- package/src/playground/playground.stories.tsx +34 -0
- package/src/plugin-intent/IntentPlugin.tsx +20 -0
- package/src/plugin-intent/actions.ts +22 -0
- package/src/plugin-intent/errors.ts +39 -0
- package/src/plugin-intent/index.ts +8 -0
- package/src/plugin-intent/intent-dispatcher.test.ts +299 -0
- package/src/plugin-intent/intent-dispatcher.ts +304 -0
- package/src/plugin-intent/intent.ts +146 -0
- package/src/plugin-settings/SettingsPlugin.ts +35 -0
- package/src/plugin-settings/actions.ts +27 -0
- package/src/plugin-settings/app-graph-builder.ts +122 -0
- package/src/plugin-settings/index.ts +6 -0
- package/src/plugin-settings/intent-resolver.ts +28 -0
- package/src/plugin-settings/store.ts +20 -0
- package/src/plugin-settings/translations.ts +17 -0
- package/src/react/IntentContext.tsx +34 -0
- package/src/react/PluginManagerProvider.ts +22 -0
- package/src/react/Surface.stories.tsx +96 -0
- package/src/react/Surface.tsx +75 -0
- package/src/react/common.ts +12 -0
- package/src/react/index.ts +10 -0
- package/src/react/useCapabilities.ts +40 -0
- package/src/react/useIntentResolver.ts +22 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/withPluginManager.stories.tsx +47 -0
- package/src/testing/withPluginManager.tsx +75 -0
- package/src/worker.ts +11 -0
- package/tsconfig.json +54 -2
- package/dist/lib/browser/chunk-3E7RY3CE.mjs +0 -72
- package/dist/lib/browser/chunk-3E7RY3CE.mjs.map +0 -7
- package/dist/lib/browser/chunk-653Y45CL.mjs +0 -41
- package/dist/lib/browser/chunk-653Y45CL.mjs.map +0 -7
- package/dist/lib/browser/chunk-FRXJ25VI.mjs +0 -214
- package/dist/lib/browser/chunk-FRXJ25VI.mjs.map +0 -7
- package/dist/lib/browser/chunk-YXM35XRE.mjs +0 -213
- package/dist/lib/browser/chunk-YXM35XRE.mjs.map +0 -7
- package/dist/lib/browser/plugin-intent-LU4KL2RO.mjs +0 -22
- package/dist/lib/browser/plugin-settings-OM3G2QFY.mjs +0 -11
- package/dist/lib/browser/plugin-surface-LECZMKSQ.mjs +0 -24
- package/dist/lib/node/chunk-JZ2JVKRY.cjs +0 -58
- package/dist/lib/node/chunk-JZ2JVKRY.cjs.map +0 -7
- package/dist/lib/node/chunk-QBM42OQ6.cjs +0 -97
- package/dist/lib/node/chunk-QBM42OQ6.cjs.map +0 -7
- package/dist/lib/node/chunk-QSVP5HOW.cjs +0 -238
- package/dist/lib/node/chunk-QSVP5HOW.cjs.map +0 -7
- package/dist/lib/node/chunk-SOVLKUWI.cjs +0 -236
- package/dist/lib/node/chunk-SOVLKUWI.cjs.map +0 -7
- package/dist/lib/node/plugin-intent-FVFR2LKB.cjs +0 -43
- package/dist/lib/node/plugin-intent-FVFR2LKB.cjs.map +0 -7
- package/dist/lib/node/plugin-settings-OZ6IKAE5.cjs.map +0 -7
- package/dist/lib/node/plugin-surface-YWDRXQTD.cjs +0 -45
- package/dist/lib/node/plugin-surface-YWDRXQTD.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-2R4GVK7O.mjs +0 -215
- package/dist/lib/node-esm/chunk-2R4GVK7O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-EYCTSFEJ.mjs +0 -74
- package/dist/lib/node-esm/chunk-EYCTSFEJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YFMFQBB4.mjs +0 -214
- package/dist/lib/node-esm/chunk-YFMFQBB4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YNU7FTGJ.mjs +0 -43
- package/dist/lib/node-esm/chunk-YNU7FTGJ.mjs.map +0 -7
- package/dist/lib/node-esm/plugin-intent-V7ER24Y6.mjs +0 -23
- package/dist/lib/node-esm/plugin-settings-37UVWF2V.mjs +0 -12
- package/dist/lib/node-esm/plugin-settings-37UVWF2V.mjs.map +0 -7
- package/dist/lib/node-esm/plugin-surface-TEU42XQN.mjs +0 -25
- package/dist/lib/node-esm/plugin-surface-TEU42XQN.mjs.map +0 -7
- package/dist/types/src/plugins/common/file.d.ts +0 -22
- package/dist/types/src/plugins/common/file.d.ts.map +0 -1
- package/dist/types/src/plugins/common/graph.d.ts +0 -51
- package/dist/types/src/plugins/common/graph.d.ts.map +0 -1
- package/dist/types/src/plugins/common/index.d.ts +0 -7
- package/dist/types/src/plugins/common/index.d.ts.map +0 -1
- package/dist/types/src/plugins/common/layout.d.ts +0 -202
- package/dist/types/src/plugins/common/layout.d.ts.map +0 -1
- package/dist/types/src/plugins/common/metadata.d.ts +0 -16
- package/dist/types/src/plugins/common/metadata.d.ts.map +0 -1
- package/dist/types/src/plugins/common/navigation.d.ts +0 -196
- package/dist/types/src/plugins/common/navigation.d.ts.map +0 -1
- package/dist/types/src/plugins/common/translations.d.ts +0 -22
- package/dist/types/src/plugins/common/translations.d.ts.map +0 -1
- package/dist/types/src/plugins/helpers.d.ts +0 -41
- package/dist/types/src/plugins/helpers.d.ts.map +0 -1
- package/dist/types/src/plugins/index.d.ts +0 -7
- package/dist/types/src/plugins/index.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-host/HostPlugin.d.ts +0 -21
- package/dist/types/src/plugins/plugin-host/HostPlugin.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-host/PluginContainer.d.ts +0 -14
- package/dist/types/src/plugins/plugin-host/PluginContainer.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-host/PluginContext.d.ts +0 -47
- package/dist/types/src/plugins/plugin-host/PluginContext.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-host/index.d.ts +0 -4
- package/dist/types/src/plugins/plugin-host/index.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-host/plugin.d.ts +0 -98
- package/dist/types/src/plugins/plugin-host/plugin.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-host/plugin.test.d.ts +0 -35
- package/dist/types/src/plugins/plugin-host/plugin.test.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/IntentContext.d.ts +0 -21
- package/dist/types/src/plugins/plugin-intent/IntentContext.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/IntentPlugin.d.ts +0 -8
- package/dist/types/src/plugins/plugin-intent/IntentPlugin.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/helpers.d.ts +0 -6
- package/dist/types/src/plugins/plugin-intent/helpers.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/index.d.ts +0 -6
- package/dist/types/src/plugins/plugin-intent/index.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/intent.d.ts +0 -81
- package/dist/types/src/plugins/plugin-intent/intent.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/meta.d.ts +0 -5
- package/dist/types/src/plugins/plugin-intent/meta.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-intent/provides.d.ts +0 -20
- package/dist/types/src/plugins/plugin-intent/provides.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-settings/SettingsPlugin.d.ts +0 -4
- package/dist/types/src/plugins/plugin-settings/SettingsPlugin.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-settings/index.d.ts +0 -4
- package/dist/types/src/plugins/plugin-settings/index.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-settings/meta.d.ts +0 -5
- package/dist/types/src/plugins/plugin-settings/meta.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-settings/provides.d.ts +0 -13
- package/dist/types/src/plugins/plugin-settings/provides.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/ErrorBoundary.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/Surface.d.ts +0 -62
- package/dist/types/src/plugins/plugin-surface/Surface.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/SurfacePlugin.d.ts +0 -7
- package/dist/types/src/plugins/plugin-surface/SurfacePlugin.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/SurfaceRootContext.d.ts +0 -39
- package/dist/types/src/plugins/plugin-surface/SurfaceRootContext.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/helpers.d.ts +0 -21
- package/dist/types/src/plugins/plugin-surface/helpers.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/index.d.ts +0 -8
- package/dist/types/src/plugins/plugin-surface/index.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/meta.d.ts +0 -5
- package/dist/types/src/plugins/plugin-surface/meta.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin-surface/provides.d.ts +0 -16
- package/dist/types/src/plugins/plugin-surface/provides.d.ts.map +0 -1
- package/src/plugins/common/file.ts +0 -36
- package/src/plugins/common/graph.ts +0 -70
- package/src/plugins/common/layout.ts +0 -155
- package/src/plugins/common/metadata.ts +0 -29
- package/src/plugins/common/navigation.ts +0 -185
- package/src/plugins/common/translations.ts +0 -36
- package/src/plugins/helpers.ts +0 -92
- package/src/plugins/index.ts +0 -11
- package/src/plugins/plugin-host/HostPlugin.tsx +0 -96
- package/src/plugins/plugin-host/PluginContainer.tsx +0 -120
- package/src/plugins/plugin-host/PluginContext.tsx +0 -79
- package/src/plugins/plugin-host/index.ts +0 -8
- package/src/plugins/plugin-host/plugin.test.ts +0 -158
- package/src/plugins/plugin-host/plugin.ts +0 -126
- package/src/plugins/plugin-intent/IntentContext.tsx +0 -49
- package/src/plugins/plugin-intent/IntentPlugin.tsx +0 -151
- package/src/plugins/plugin-intent/helpers.ts +0 -11
- package/src/plugins/plugin-intent/index.ts +0 -12
- package/src/plugins/plugin-intent/intent.ts +0 -101
- package/src/plugins/plugin-intent/meta.ts +0 -9
- package/src/plugins/plugin-intent/provides.ts +0 -38
- package/src/plugins/plugin-settings/SettingsPlugin.tsx +0 -22
- package/src/plugins/plugin-settings/index.ts +0 -9
- package/src/plugins/plugin-settings/meta.ts +0 -9
- package/src/plugins/plugin-settings/provides.ts +0 -29
- package/src/plugins/plugin-surface/Surface.tsx +0 -195
- package/src/plugins/plugin-surface/SurfacePlugin.tsx +0 -33
- package/src/plugins/plugin-surface/SurfaceRootContext.tsx +0 -60
- package/src/plugins/plugin-surface/helpers.ts +0 -22
- package/src/plugins/plugin-surface/index.ts +0 -14
- package/src/plugins/plugin-surface/meta.ts +0 -9
- package/src/plugins/plugin-surface/provides.ts +0 -26
- /package/dist/lib/browser/{plugin-intent-LU4KL2RO.mjs.map → intent-dispatcher-LJKNIGAM.mjs.map} +0 -0
- /package/dist/lib/browser/{plugin-settings-OM3G2QFY.mjs.map → worker.mjs.map} +0 -0
- /package/dist/lib/{browser/plugin-surface-LECZMKSQ.mjs.map → node-esm/intent-dispatcher-RZAWA4XD.mjs.map} +0 -0
- /package/dist/lib/node-esm/{plugin-intent-V7ER24Y6.mjs.map → worker.mjs.map} +0 -0
- /package/dist/types/src/{plugins/plugin-surface → react}/ErrorBoundary.d.ts +0 -0
- /package/src/{plugins/plugin-surface → react}/ErrorBoundary.tsx +0 -0
package/dist/types/src/App.d.ts
CHANGED
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { PluginManager, type PluginManagerOptions, type Plugin } from './core';
|
|
3
|
+
import { ErrorBoundary } from './react';
|
|
4
|
+
export type CreateAppOptions = {
|
|
5
|
+
pluginManager?: PluginManager;
|
|
6
|
+
pluginLoader?: PluginManagerOptions['pluginLoader'];
|
|
7
|
+
plugins?: Plugin[];
|
|
8
|
+
core?: string[];
|
|
9
|
+
defaults?: string[];
|
|
10
|
+
placeholder?: ReactNode;
|
|
11
|
+
fallback?: ErrorBoundary['props']['fallback'];
|
|
12
|
+
cacheEnabled?: boolean;
|
|
13
|
+
};
|
|
3
14
|
/**
|
|
4
15
|
* Expected usage is for this to be the entrypoint of the application.
|
|
5
16
|
* Initializes plugins and renders the root components.
|
|
6
17
|
*
|
|
7
18
|
* @example
|
|
8
|
-
* const
|
|
9
|
-
* const
|
|
10
|
-
*
|
|
11
|
-
* [MyPluginMeta.id]: Plugin.lazy(() => import('./plugins/MyPlugin/plugin')),
|
|
12
|
-
* };
|
|
13
|
-
* const core = [LayoutMeta.id];
|
|
14
|
-
* const default = [MyPluginMeta.id];
|
|
19
|
+
* const plugins = [LayoutPlugin(), MyPlugin()];
|
|
20
|
+
* const core = [LayoutPluginId];
|
|
21
|
+
* const default = [MyPluginId];
|
|
15
22
|
* const fallback = <div>Initializing Plugins...</div>;
|
|
16
|
-
* const App = createApp({
|
|
23
|
+
* const App = createApp({ plugins, core, default, fallback });
|
|
17
24
|
* createRoot(document.getElementById('root')!).render(
|
|
18
25
|
* <StrictMode>
|
|
19
26
|
* <App />
|
|
20
27
|
* </StrictMode>,
|
|
21
28
|
* );
|
|
22
29
|
*
|
|
30
|
+
* @param params.pluginLoader A function which loads new plugins.
|
|
23
31
|
* @param params.plugins All plugins available to the application.
|
|
24
|
-
* @param params.meta All plugin metadata.
|
|
25
32
|
* @param params.core Core plugins which will always be enabled.
|
|
26
33
|
* @param params.defaults Default plugins are enabled by default but can be disabled by the user.
|
|
27
|
-
* @param params.
|
|
34
|
+
* @param params.placeholder Placeholder component to render during startup.
|
|
35
|
+
* @param params.fallback Fallback component to render if an error occurs during startup.
|
|
36
|
+
* @param params.cacheEnabled Whether to cache enabled plugins in localStorage.
|
|
28
37
|
*/
|
|
29
|
-
export declare const createApp: ({
|
|
38
|
+
export declare const createApp: ({ pluginManager, pluginLoader: _pluginLoader, plugins, core, defaults, placeholder, fallback, cacheEnabled, }: CreateAppOptions) => () => React.JSX.Element;
|
|
30
39
|
//# sourceMappingURL=App.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/App.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA0B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE/E,OAAO,EAAE,aAAa,EAA0C,MAAM,SAAS,CAAC;AAIhF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,SAAS,kHASnB,gBAAgB,4BAgDlB,CAAC"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { type Schema as S } from '@effect/schema';
|
|
2
|
+
import { type FC, type PropsWithChildren } from 'react';
|
|
3
|
+
import { type GraphBuilder } from '@dxos/app-graph';
|
|
4
|
+
import { type ArtifactDefinition, type Tool } from '@dxos/artifact';
|
|
5
|
+
import { type Space } from '@dxos/client-protocol';
|
|
6
|
+
import { type RootSettingsStore } from '@dxos/local-storage';
|
|
7
|
+
import { type FileInfo } from './file';
|
|
8
|
+
import { type NodeSerializer } from './graph';
|
|
9
|
+
import { type SurfaceDefinition } from './surface';
|
|
10
|
+
import { type PluginManager } from '../core';
|
|
11
|
+
import { type AnyIntentResolver, type IntentContext } from '../plugin-intent';
|
|
12
|
+
export declare namespace Capabilities {
|
|
13
|
+
const PluginManager: import("../core").InterfaceDef<PluginManager>;
|
|
14
|
+
const Null: import("../core").InterfaceDef<null>;
|
|
15
|
+
type ReactContext = Readonly<{
|
|
16
|
+
id: string;
|
|
17
|
+
dependsOn?: string[];
|
|
18
|
+
context: FC<PropsWithChildren>;
|
|
19
|
+
}>;
|
|
20
|
+
const ReactContext: import("../core").InterfaceDef<Readonly<{
|
|
21
|
+
id: string;
|
|
22
|
+
dependsOn?: string[];
|
|
23
|
+
context: FC<PropsWithChildren>;
|
|
24
|
+
}>>;
|
|
25
|
+
type ReactRoot = Readonly<{
|
|
26
|
+
id: string;
|
|
27
|
+
root: FC<PropsWithChildren>;
|
|
28
|
+
}>;
|
|
29
|
+
const ReactRoot: import("../core").InterfaceDef<Readonly<{
|
|
30
|
+
id: string;
|
|
31
|
+
root: FC<PropsWithChildren>;
|
|
32
|
+
}>>;
|
|
33
|
+
type ReactSurface = SurfaceDefinition | readonly SurfaceDefinition[];
|
|
34
|
+
const ReactSurface: import("../core").InterfaceDef<ReactSurface>;
|
|
35
|
+
type IntentResolver = AnyIntentResolver | readonly AnyIntentResolver[];
|
|
36
|
+
const IntentResolver: import("../core").InterfaceDef<IntentResolver>;
|
|
37
|
+
const IntentDispatcher: import("../core").InterfaceDef<IntentContext>;
|
|
38
|
+
type Layout = Readonly<{
|
|
39
|
+
mode: string;
|
|
40
|
+
dialogOpen: boolean;
|
|
41
|
+
sidebarOpen: boolean;
|
|
42
|
+
complementarySidebarOpen: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Identifiers of items which are currently active in the application.
|
|
45
|
+
*/
|
|
46
|
+
active: string[];
|
|
47
|
+
/**
|
|
48
|
+
* Identifiers of items which were previously active in the application.
|
|
49
|
+
*/
|
|
50
|
+
inactive: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Identifier of the item which should be scrolled into view.
|
|
53
|
+
*/
|
|
54
|
+
scrollIntoView: string | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
const Layout: import("../core").InterfaceDef<Readonly<{
|
|
57
|
+
mode: string;
|
|
58
|
+
dialogOpen: boolean;
|
|
59
|
+
sidebarOpen: boolean;
|
|
60
|
+
complementarySidebarOpen: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Identifiers of items which are currently active in the application.
|
|
63
|
+
*/
|
|
64
|
+
active: string[];
|
|
65
|
+
/**
|
|
66
|
+
* Identifiers of items which were previously active in the application.
|
|
67
|
+
*/
|
|
68
|
+
inactive: string[];
|
|
69
|
+
/**
|
|
70
|
+
* Identifier of the item which should be scrolled into view.
|
|
71
|
+
*/
|
|
72
|
+
scrollIntoView: string | undefined;
|
|
73
|
+
}>>;
|
|
74
|
+
const Translations: import("../core").InterfaceDef<readonly {
|
|
75
|
+
readonly [x: string]: {
|
|
76
|
+
readonly [x: string]: string | {
|
|
77
|
+
readonly [x: string]: any;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}[]>;
|
|
81
|
+
const AppGraph: import("../core").InterfaceDef<Readonly<Pick<GraphBuilder, "graph" | "explore">>>;
|
|
82
|
+
const AppGraphBuilder: import("../core").InterfaceDef<Readonly<{
|
|
83
|
+
id: string;
|
|
84
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
85
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
86
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
87
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
88
|
+
type?: string;
|
|
89
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
90
|
+
}> | Readonly<{
|
|
91
|
+
id: string;
|
|
92
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
93
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
94
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
95
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
96
|
+
type?: string;
|
|
97
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
98
|
+
}>[] | (Readonly<{
|
|
99
|
+
id: string;
|
|
100
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
101
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
102
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
103
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
104
|
+
type?: string;
|
|
105
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
106
|
+
}> | Readonly<{
|
|
107
|
+
id: string;
|
|
108
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
109
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
110
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
111
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
112
|
+
type?: string;
|
|
113
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
114
|
+
}>[] | (Readonly<{
|
|
115
|
+
id: string;
|
|
116
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
117
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
118
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
119
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
120
|
+
type?: string;
|
|
121
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
122
|
+
}> | Readonly<{
|
|
123
|
+
id: string;
|
|
124
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
125
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
126
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
127
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
128
|
+
type?: string;
|
|
129
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
130
|
+
}>[] | (Readonly<{
|
|
131
|
+
id: string;
|
|
132
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
133
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
134
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
135
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
136
|
+
type?: string;
|
|
137
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
138
|
+
}> | Readonly<{
|
|
139
|
+
id: string;
|
|
140
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
141
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
142
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
143
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
144
|
+
type?: string;
|
|
145
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
146
|
+
}>[] | (Readonly<{
|
|
147
|
+
id: string;
|
|
148
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
149
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
150
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
151
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
152
|
+
type?: string;
|
|
153
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
154
|
+
}> | Readonly<{
|
|
155
|
+
id: string;
|
|
156
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
157
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
158
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
159
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
160
|
+
type?: string;
|
|
161
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
162
|
+
}>[] | (Readonly<{
|
|
163
|
+
id: string;
|
|
164
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
165
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
166
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
167
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
168
|
+
type?: string;
|
|
169
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
170
|
+
}> | Readonly<{
|
|
171
|
+
id: string;
|
|
172
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
173
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
174
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
175
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
176
|
+
type?: string;
|
|
177
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
178
|
+
}>[] | (Readonly<{
|
|
179
|
+
id: string;
|
|
180
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
181
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
182
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
183
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
184
|
+
type?: string;
|
|
185
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
186
|
+
}> | Readonly<{
|
|
187
|
+
id: string;
|
|
188
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
189
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
190
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
191
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
192
|
+
type?: string;
|
|
193
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
194
|
+
}>[] | (Readonly<{
|
|
195
|
+
id: string;
|
|
196
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
197
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
198
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
199
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
200
|
+
type?: string;
|
|
201
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
202
|
+
}> | Readonly<{
|
|
203
|
+
id: string;
|
|
204
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
205
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
206
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
207
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
208
|
+
type?: string;
|
|
209
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
210
|
+
}>[] | (Readonly<{
|
|
211
|
+
id: string;
|
|
212
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
213
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
214
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
215
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
216
|
+
type?: string;
|
|
217
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
218
|
+
}> | Readonly<{
|
|
219
|
+
id: string;
|
|
220
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
221
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
222
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
223
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
224
|
+
type?: string;
|
|
225
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
226
|
+
}>[] | (Readonly<{
|
|
227
|
+
id: string;
|
|
228
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
229
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
230
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
231
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
232
|
+
type?: string;
|
|
233
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
234
|
+
}> | Readonly<{
|
|
235
|
+
id: string;
|
|
236
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
237
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
238
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
239
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
240
|
+
type?: string;
|
|
241
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
242
|
+
}>[] | (Readonly<{
|
|
243
|
+
id: string;
|
|
244
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
245
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
246
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
247
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
248
|
+
type?: string;
|
|
249
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
250
|
+
}> | Readonly<{
|
|
251
|
+
id: string;
|
|
252
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
253
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
254
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
255
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
256
|
+
type?: string;
|
|
257
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
258
|
+
}>[] | (Readonly<{
|
|
259
|
+
id: string;
|
|
260
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
261
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
262
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
263
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
264
|
+
type?: string;
|
|
265
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
266
|
+
}> | Readonly<{
|
|
267
|
+
id: string;
|
|
268
|
+
position: import("packages/common/util/dist/types/src").Position;
|
|
269
|
+
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
270
|
+
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
271
|
+
relation?: import("@dxos/app-graph").Relation;
|
|
272
|
+
type?: string;
|
|
273
|
+
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
274
|
+
}>[] | /*elided*/ any)[])[])[])[])[])[])[])[])[])[])[]>;
|
|
275
|
+
const AppGraphSerializer: import("../core").InterfaceDef<NodeSerializer[]>;
|
|
276
|
+
const SettingsStore: import("../core").InterfaceDef<RootSettingsStore>;
|
|
277
|
+
type Settings = {
|
|
278
|
+
schema: S.Schema.All;
|
|
279
|
+
prefix: string;
|
|
280
|
+
value?: Record<string, any>;
|
|
281
|
+
};
|
|
282
|
+
const Settings: import("../core").InterfaceDef<Settings>;
|
|
283
|
+
type Metadata = Readonly<{
|
|
284
|
+
id: string;
|
|
285
|
+
metadata: Record<string, any>;
|
|
286
|
+
}>;
|
|
287
|
+
const Metadata: import("../core").InterfaceDef<Readonly<{
|
|
288
|
+
id: string;
|
|
289
|
+
metadata: Record<string, any>;
|
|
290
|
+
}>>;
|
|
291
|
+
const Tools: import("../core").InterfaceDef<Tool[]>;
|
|
292
|
+
const ArtifactDefinition: import("../core").InterfaceDef<ArtifactDefinition>;
|
|
293
|
+
type FileUploader = (file: File, space: Space) => Promise<FileInfo | undefined>;
|
|
294
|
+
const FileUploader: import("../core").InterfaceDef<FileUploader>;
|
|
295
|
+
}
|
|
296
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare namespace Events {
|
|
2
|
+
/**
|
|
3
|
+
* Fired when the app is started.
|
|
4
|
+
*/
|
|
5
|
+
const Startup: import("../core").ActivationEvent;
|
|
6
|
+
/**
|
|
7
|
+
* Fired to load any newly available surfaces.
|
|
8
|
+
*/
|
|
9
|
+
const SetupSurfaces: import("../core").ActivationEvent;
|
|
10
|
+
/**
|
|
11
|
+
* Fired to load any newly available metadata.
|
|
12
|
+
*/
|
|
13
|
+
const SetupMetadata: import("../core").ActivationEvent;
|
|
14
|
+
/**
|
|
15
|
+
* Fired before the intent dispatcher is activated.
|
|
16
|
+
*/
|
|
17
|
+
const SetupIntents: import("../core").ActivationEvent;
|
|
18
|
+
/**
|
|
19
|
+
* Fired before the settings store is activated.
|
|
20
|
+
*/
|
|
21
|
+
const SetupSettings: import("../core").ActivationEvent;
|
|
22
|
+
/**
|
|
23
|
+
* Fired before the graph is created.
|
|
24
|
+
*/
|
|
25
|
+
const SetupAppGraph: import("../core").ActivationEvent;
|
|
26
|
+
/**
|
|
27
|
+
* Fired before the translations provider is created.
|
|
28
|
+
*/
|
|
29
|
+
const SetupTranslations: import("../core").ActivationEvent;
|
|
30
|
+
/**
|
|
31
|
+
* Fired after the intent dispatcher is ready.
|
|
32
|
+
*/
|
|
33
|
+
const DispatcherReady: import("../core").ActivationEvent;
|
|
34
|
+
/**
|
|
35
|
+
* Fired after the settings store is ready.
|
|
36
|
+
*/
|
|
37
|
+
const SettingsReady: import("../core").ActivationEvent;
|
|
38
|
+
/**
|
|
39
|
+
* Fired when the graph is ready.
|
|
40
|
+
*/
|
|
41
|
+
const AppGraphReady: import("../core").ActivationEvent;
|
|
42
|
+
/**
|
|
43
|
+
* Fired when plugin state is ready.
|
|
44
|
+
*/
|
|
45
|
+
const createStateEvent: (specifier: string) => import("../core").ActivationEvent;
|
|
46
|
+
const LayoutReady: import("../core").ActivationEvent;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/common/events.ts"],"names":[],"mappings":"AAOA,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACI,MAAM,OAAO,mCAAsD,CAAC;IAM3E;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,YAAY,mCAA4D,CAAC;IAEtF;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,iBAAiB,mCAAiE,CAAC;IAMhG;;OAEG;IACI,MAAM,eAAe,mCAA+D,CAAC;IAE5F;;OAEG;IACI,MAAM,aAAa,mCAA6D,CAAC;IAExF;;OAEG;IACI,MAAM,aAAa,mCAA0D,CAAC;IAErF;;OAEG;IACI,MAAM,gBAAgB,cAAe,MAAM,sCAAiE,CAAC;IAC7G,MAAM,WAAW,mCAAmD,CAAC;CAC7E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Schema as S } from '@effect/schema';
|
|
2
|
+
export declare const defaultFileTypes: {
|
|
3
|
+
images: string[];
|
|
4
|
+
media: string[];
|
|
5
|
+
text: string[];
|
|
6
|
+
};
|
|
7
|
+
export declare const FileInfoSchema: S.Struct<{
|
|
8
|
+
name: typeof S.String;
|
|
9
|
+
type: typeof S.String;
|
|
10
|
+
url: S.optional<typeof S.String>;
|
|
11
|
+
cid: S.optional<typeof S.String>;
|
|
12
|
+
}>;
|
|
13
|
+
export type FileInfo = S.Schema.Type<typeof FileInfoSchema>;
|
|
14
|
+
//# sourceMappingURL=file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,gBAAgB,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Node } from '@dxos/app-graph';
|
|
2
|
+
import { type MaybePromise, type Position } from '@dxos/util';
|
|
3
|
+
export type SerializedNode = {
|
|
4
|
+
name: string;
|
|
5
|
+
data: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
};
|
|
8
|
+
export type NodeSerializer<T = any> = {
|
|
9
|
+
inputType: string;
|
|
10
|
+
outputType: string;
|
|
11
|
+
position?: Position;
|
|
12
|
+
/**
|
|
13
|
+
* Takes a node and serializes it into a format that can be stored.
|
|
14
|
+
*/
|
|
15
|
+
serialize: (node: Node<T>) => MaybePromise<SerializedNode>;
|
|
16
|
+
/**
|
|
17
|
+
* Takes a serialized node and deserializes it into the application.
|
|
18
|
+
*/
|
|
19
|
+
deserialize: (data: SerializedNode, ancestors: unknown[]) => MaybePromise<T>;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/common/graph.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAG9D,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,GAAG,IAAI;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,cAAc,CAAC,CAAC;IAE3D;;OAEG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC;CAC9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|