@dxos/app-framework 0.8.4-main.937b3ca → 0.8.4-main.9be5663bfe
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/.storybook/main.mts +1 -3
- package/dist/lib/browser/{capability-7PCNSWBT.mjs → capability-BBBBAPDI.mjs} +16 -11
- package/dist/lib/browser/capability-BBBBAPDI.mjs.map +7 -0
- package/dist/lib/browser/capability-OP63CD5N.mjs +35 -0
- package/dist/lib/browser/capability-OP63CD5N.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6Y7PZV72.mjs → chunk-2CKCJ6PN.mjs} +6 -4
- package/dist/lib/browser/chunk-2CKCJ6PN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7IQHKD4U.mjs → chunk-F7FW2RK2.mjs} +9 -12
- package/dist/lib/browser/chunk-F7FW2RK2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TCLLRCS3.mjs → chunk-FU4GAFUQ.mjs} +10 -7
- package/dist/lib/browser/chunk-FU4GAFUQ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FMZN33N4.mjs → chunk-GX4TUNM6.mjs} +343 -187
- package/dist/lib/browser/chunk-GX4TUNM6.mjs.map +7 -0
- package/dist/lib/browser/chunk-I34GF4NG.mjs +34 -0
- package/dist/lib/browser/chunk-I34GF4NG.mjs.map +7 -0
- package/dist/lib/browser/chunk-JKWMHZP6.mjs +80 -0
- package/dist/lib/browser/chunk-JKWMHZP6.mjs.map +7 -0
- package/dist/lib/browser/chunk-LVJW5EFU.mjs +157 -0
- package/dist/lib/browser/chunk-LVJW5EFU.mjs.map +7 -0
- package/dist/lib/browser/{chunk-PKQT6C53.mjs → chunk-QSXYHXCE.mjs} +3 -2
- package/dist/lib/browser/chunk-QSXYHXCE.mjs.map +7 -0
- package/dist/lib/browser/chunk-RFSO3JRG.mjs +1 -0
- package/dist/lib/browser/chunk-T3Y4AEKX.mjs +42 -0
- package/dist/lib/browser/chunk-T3Y4AEKX.mjs.map +7 -0
- package/dist/lib/browser/chunk-TGX63LTL.mjs +8 -0
- package/dist/lib/browser/{chunk-FHQTHCX7.mjs.map → chunk-TGX63LTL.mjs.map} +1 -1
- package/dist/lib/browser/chunk-WPE6AL7I.mjs +905 -0
- package/dist/lib/browser/chunk-WPE6AL7I.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +90 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/common/activation-events.mjs +24 -0
- package/dist/lib/browser/common/capabilities.mjs +46 -0
- package/dist/lib/browser/core/activation-event.mjs +1 -1
- package/dist/lib/browser/core/capability.mjs +3 -1
- package/dist/lib/browser/core/plugin-manager.mjs +4 -4
- package/dist/lib/browser/core/plugin.mjs +6 -4
- package/dist/lib/browser/core/url-loader.mjs +12 -0
- package/dist/lib/browser/index.mjs +40 -131
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/invoker-capability-H5PPENOC.mjs +43 -0
- package/dist/lib/browser/invoker-capability-H5PPENOC.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +56 -34
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/{react → ui}/index.mjs +19 -21
- package/dist/lib/browser/ui/index.mjs.map +7 -0
- package/dist/lib/node-esm/{capability-CFLQ2QQU.mjs → capability-AWBEMRYR.mjs} +16 -11
- package/dist/lib/node-esm/capability-AWBEMRYR.mjs.map +7 -0
- package/dist/lib/node-esm/capability-WFEG6CIZ.mjs +36 -0
- package/dist/lib/node-esm/capability-WFEG6CIZ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-STMXUEPO.mjs → chunk-42KBWDE4.mjs} +6 -4
- package/dist/lib/node-esm/chunk-42KBWDE4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4A3ZCMI3.mjs +158 -0
- package/dist/lib/node-esm/chunk-4A3ZCMI3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XYQTBFPA.mjs → chunk-BCEOLX47.mjs} +343 -187
- package/dist/lib/node-esm/chunk-BCEOLX47.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-EL3R25OQ.mjs +2 -0
- package/dist/lib/node-esm/chunk-EL3R25OQ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs → chunk-FKE4Z3D6.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-UEWJDI2L.mjs.map → chunk-FKE4Z3D6.mjs.map} +1 -1
- package/dist/lib/node-esm/chunk-G3RTFSNG.mjs +81 -0
- package/dist/lib/node-esm/chunk-G3RTFSNG.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-LQKOTNJW.mjs +906 -0
- package/dist/lib/node-esm/chunk-LQKOTNJW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-GT6OKM5I.mjs → chunk-ULUEXB7Q.mjs} +10 -7
- package/dist/lib/node-esm/chunk-ULUEXB7Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-663A54LQ.mjs → chunk-URWHJQT2.mjs} +9 -12
- package/dist/lib/node-esm/chunk-URWHJQT2.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-VKHGNEDB.mjs +43 -0
- package/dist/lib/node-esm/chunk-VKHGNEDB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-WZCSOX5Q.mjs +35 -0
- package/dist/lib/node-esm/chunk-WZCSOX5Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-7OWSHPYK.mjs → chunk-ZZ7CKK6W.mjs} +3 -2
- package/dist/lib/node-esm/chunk-ZZ7CKK6W.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +91 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/common/activation-events.mjs +25 -0
- package/dist/lib/node-esm/common/activation-events.mjs.map +7 -0
- package/dist/lib/node-esm/common/capabilities.mjs +47 -0
- package/dist/lib/node-esm/common/capabilities.mjs.map +7 -0
- package/dist/lib/node-esm/core/activation-event.mjs +1 -1
- package/dist/lib/node-esm/core/capability.mjs +3 -1
- package/dist/lib/node-esm/core/plugin-manager.mjs +4 -4
- package/dist/lib/node-esm/core/plugin.mjs +6 -4
- package/dist/lib/node-esm/core/url-loader.mjs +13 -0
- package/dist/lib/node-esm/core/url-loader.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +40 -131
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/invoker-capability-S3ZA527J.mjs +44 -0
- package/dist/lib/node-esm/invoker-capability-S3ZA527J.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/testing/index.mjs +56 -34
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/{react → ui}/index.mjs +19 -21
- package/dist/lib/node-esm/ui/index.mjs.map +7 -0
- package/dist/plugin/node-esm/index.mjs +384 -0
- package/dist/plugin/node-esm/index.mjs.map +7 -0
- package/dist/plugin/node-esm/meta.json +1 -0
- package/dist/types/src/{cli.d.ts → cli/cli.d.ts} +2 -2
- package/dist/types/src/cli/cli.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/common/activation-events.d.ts +27 -0
- package/dist/types/src/common/activation-events.d.ts.map +1 -0
- package/dist/types/src/common/capabilities.d.ts +110 -0
- package/dist/types/src/common/capabilities.d.ts.map +1 -0
- package/dist/types/src/common/index.d.ts +4 -9
- package/dist/types/src/common/index.d.ts.map +1 -1
- package/dist/types/src/common/operations.d.ts +8 -369
- package/dist/types/src/common/operations.d.ts.map +1 -1
- package/dist/types/src/common/translations.d.ts +0 -9
- package/dist/types/src/common/translations.d.ts.map +1 -1
- package/dist/types/src/core/activation-event.d.ts +1 -1
- package/dist/types/src/core/activation-event.d.ts.map +1 -1
- package/dist/types/src/core/capability-manager.d.ts +5 -0
- package/dist/types/src/core/capability-manager.d.ts.map +1 -1
- package/dist/types/src/core/capability.d.ts +13 -7
- package/dist/types/src/core/capability.d.ts.map +1 -1
- package/dist/types/src/core/index.d.ts +1 -0
- package/dist/types/src/core/index.d.ts.map +1 -1
- package/dist/types/src/core/plugin-manager.d.ts +9 -2
- package/dist/types/src/core/plugin-manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +6 -1
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/core/url-loader.d.ts +25 -0
- package/dist/types/src/core/url-loader.d.ts.map +1 -0
- package/dist/types/src/core/url-loader.test.d.ts +2 -0
- package/dist/types/src/core/url-loader.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/OperationPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/history/capability.d.ts +1 -1
- package/dist/types/src/plugin-operation/history/capability.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/history/errors.d.ts +30 -3
- package/dist/types/src/plugin-operation/history/errors.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/history/history-tracker.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/history/undo-mapping.d.ts +11 -3
- package/dist/types/src/plugin-operation/history/undo-mapping.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/invoker-capability.d.ts +1 -1
- package/dist/types/src/plugin-operation/invoker-capability.d.ts.map +1 -1
- package/dist/types/src/plugin-operation/testing.d.ts +26 -77
- package/dist/types/src/plugin-operation/testing.d.ts.map +1 -1
- package/dist/types/src/plugin-runtime/RuntimePlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-runtime/capability.d.ts +2 -2
- package/dist/types/src/plugin-runtime/capability.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
- package/dist/types/src/{react → ui/components/App}/App.d.ts +3 -2
- package/dist/types/src/ui/components/App/App.d.ts.map +1 -0
- package/dist/types/src/{react/Surface.stories.d.ts → ui/components/App/App.stories.d.ts} +7 -2
- package/dist/types/src/ui/components/App/App.stories.d.ts.map +1 -0
- package/dist/types/src/ui/components/App/index.d.ts +2 -0
- package/dist/types/src/ui/components/App/index.d.ts.map +1 -0
- package/dist/types/src/ui/components/PluginManager/PluginManagerContext.stories.d.ts.map +1 -0
- package/dist/types/src/{react → ui/components/PluginManager}/PluginManagerProvider.d.ts +1 -1
- package/dist/types/src/ui/components/PluginManager/PluginManagerProvider.d.ts.map +1 -0
- package/dist/types/src/ui/components/PluginManager/index.d.ts +2 -0
- package/dist/types/src/ui/components/PluginManager/index.d.ts.map +1 -0
- package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts +12 -0
- package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts.map +1 -0
- package/dist/types/src/{react/App.stories.d.ts → ui/components/Surface/SurfaceComponent.stories.d.ts} +1 -1
- package/dist/types/src/ui/components/Surface/SurfaceComponent.stories.d.ts.map +1 -0
- package/dist/types/src/ui/components/Surface/SurfaceInfo.d.ts.map +1 -0
- package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts +48 -0
- package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts.map +1 -0
- package/dist/types/src/ui/components/Surface/context.d.ts +5 -0
- package/dist/types/src/ui/components/Surface/context.d.ts.map +1 -0
- package/dist/types/src/ui/components/Surface/index.d.ts +26 -0
- package/dist/types/src/ui/components/Surface/index.d.ts.map +1 -0
- package/dist/types/src/{common/surface.d.ts → ui/components/Surface/types.d.ts} +20 -18
- package/dist/types/src/ui/components/Surface/types.d.ts.map +1 -0
- package/dist/types/src/ui/components/index.d.ts +4 -0
- package/dist/types/src/ui/components/index.d.ts.map +1 -0
- package/dist/types/src/ui/hooks/index.d.ts +6 -0
- package/dist/types/src/ui/hooks/index.d.ts.map +1 -0
- package/dist/types/src/{react → ui/hooks}/useApp.d.ts +26 -9
- package/dist/types/src/ui/hooks/useApp.d.ts.map +1 -0
- package/dist/types/src/ui/hooks/useApp.test.d.ts +2 -0
- package/dist/types/src/ui/hooks/useApp.test.d.ts.map +1 -0
- package/dist/types/src/{react → ui/hooks}/useCapabilities.d.ts +6 -1
- package/dist/types/src/ui/hooks/useCapabilities.d.ts.map +1 -0
- package/dist/types/src/ui/hooks/useLoading.d.ts.map +1 -0
- package/dist/types/src/{react/common.d.ts → ui/hooks/useSettingsState.d.ts} +1 -5
- package/dist/types/src/ui/hooks/useSettingsState.d.ts.map +1 -0
- package/dist/types/src/ui/hooks/useSurface.d.ts +3 -0
- package/dist/types/src/ui/hooks/useSurface.d.ts.map +1 -0
- package/dist/types/src/ui/index.d.ts +3 -0
- package/dist/types/src/ui/index.d.ts.map +1 -0
- package/dist/types/src/vite-plugin/composer-plugin.d.ts +18 -0
- package/dist/types/src/vite-plugin/composer-plugin.d.ts.map +1 -0
- package/dist/types/src/vite-plugin/import-map-plugin.d.ts +16 -0
- package/dist/types/src/vite-plugin/import-map-plugin.d.ts.map +1 -0
- package/dist/types/src/vite-plugin/index.d.ts +3 -0
- package/dist/types/src/vite-plugin/index.d.ts.map +1 -0
- package/dist/types/src/vite-plugin/packages.d.ts +7 -0
- package/dist/types/src/vite-plugin/packages.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/moon.yml +20 -6
- package/package.json +91 -64
- package/src/{cli.ts → cli/cli.ts} +10 -10
- package/src/{playground/debug → cli}/index.ts +1 -1
- package/src/common/activation-events.ts +44 -0
- package/src/common/capabilities.ts +172 -0
- package/src/common/index.ts +4 -9
- package/src/common/operations.ts +6 -383
- package/src/common/translations.ts +0 -12
- package/src/context.ts +1 -1
- package/src/core/activation-event.ts +5 -2
- package/src/core/capability-manager.test.ts +1 -1
- package/src/core/capability-manager.ts +22 -1
- package/src/core/capability.ts +21 -10
- package/src/core/index.ts +1 -0
- package/src/core/plugin-manager.test.ts +314 -46
- package/src/core/plugin-manager.ts +344 -157
- package/src/core/plugin.ts +10 -2
- package/src/core/url-loader.test.ts +79 -0
- package/src/core/url-loader.ts +148 -0
- package/src/index.ts +1 -3
- package/src/plugin-operation/OperationPlugin.ts +5 -6
- package/src/plugin-operation/history/capability.ts +5 -6
- package/src/plugin-operation/history/errors.ts +2 -6
- package/src/plugin-operation/history/history-tracker.test.ts +36 -43
- package/src/plugin-operation/history/history-tracker.ts +0 -1
- package/src/plugin-operation/history/undo-mapping.ts +6 -3
- package/src/plugin-operation/history/undo-registry.test.ts +3 -4
- package/src/plugin-operation/invoker-capability.ts +21 -7
- package/src/plugin-operation/meta.ts +1 -1
- package/src/plugin-operation/testing.ts +25 -45
- package/src/plugin-runtime/RuntimePlugin.ts +4 -5
- package/src/plugin-runtime/capability.ts +5 -5
- package/src/plugin-runtime/meta.ts +1 -1
- package/src/testing/service.ts +6 -6
- package/src/testing/withPluginManager.stories.tsx +6 -7
- package/src/testing/withPluginManager.tsx +44 -19
- package/src/ui/components/App/App.stories.tsx +92 -0
- package/src/{react → ui/components/App}/App.tsx +9 -11
- package/src/{playground/layout → ui/components/App}/index.ts +1 -1
- package/src/{react → ui/components/PluginManager}/PluginManagerContext.stories.tsx +13 -14
- package/src/{react → ui/components/PluginManager}/PluginManagerProvider.ts +1 -1
- package/src/ui/components/PluginManager/index.ts +5 -0
- package/src/{react/Surface.stories.tsx → ui/components/Surface/SurfaceComponent.stories.tsx} +31 -28
- package/src/{react/Surface.tsx → ui/components/Surface/SurfaceComponent.tsx} +59 -60
- package/src/{react → ui/components/Surface}/SurfaceInfo.tsx +2 -2
- package/src/ui/components/Surface/SurfaceProfilerContext.tsx +207 -0
- package/src/ui/components/Surface/context.ts +12 -0
- package/src/ui/components/Surface/index.ts +35 -0
- package/src/{common/surface.ts → ui/components/Surface/types.ts} +22 -25
- package/src/ui/components/index.ts +7 -0
- package/src/ui/hooks/index.ts +9 -0
- package/src/ui/hooks/useApp.test.tsx +159 -0
- package/src/{react → ui/hooks}/useApp.tsx +110 -30
- package/src/{react → ui/hooks}/useCapabilities.ts +9 -5
- package/src/{react/common.ts → ui/hooks/useSettingsState.ts} +0 -11
- package/src/ui/hooks/useSurface.ts +13 -0
- package/src/ui/index.ts +6 -0
- package/src/vite-plugin/composer-plugin.ts +128 -0
- package/src/vite-plugin/import-map-plugin.ts +314 -0
- package/src/vite-plugin/index.ts +6 -0
- package/src/vite-plugin/packages.ts +29 -0
- package/tsconfig.json +4 -28
- package/tsconfig.node.json +2 -4
- package/typedoc.json +2 -4
- package/vitest.config.ts +1 -1
- package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs +0 -149
- package/dist/lib/browser/app-graph-builder-M2VPYQC6.mjs.map +0 -7
- package/dist/lib/browser/capability-7PCNSWBT.mjs.map +0 -7
- package/dist/lib/browser/capability-KP3PFEXD.mjs +0 -31
- package/dist/lib/browser/capability-KP3PFEXD.mjs.map +0 -7
- package/dist/lib/browser/chunk-6Y7PZV72.mjs.map +0 -7
- package/dist/lib/browser/chunk-7IQHKD4U.mjs.map +0 -7
- package/dist/lib/browser/chunk-BLQJSGL3.mjs +0 -732
- package/dist/lib/browser/chunk-BLQJSGL3.mjs.map +0 -7
- package/dist/lib/browser/chunk-FHQTHCX7.mjs +0 -8
- package/dist/lib/browser/chunk-FMZN33N4.mjs.map +0 -7
- package/dist/lib/browser/chunk-H4WPA7U7.mjs +0 -77
- package/dist/lib/browser/chunk-H4WPA7U7.mjs.map +0 -7
- package/dist/lib/browser/chunk-PKQT6C53.mjs.map +0 -7
- package/dist/lib/browser/chunk-TCLLRCS3.mjs.map +0 -7
- package/dist/lib/browser/chunk-XYNO72GQ.mjs +0 -746
- package/dist/lib/browser/chunk-XYNO72GQ.mjs.map +0 -7
- package/dist/lib/browser/common/index.mjs +0 -38
- package/dist/lib/browser/invoker-capability-SZRSTHEH.mjs +0 -32
- package/dist/lib/browser/invoker-capability-SZRSTHEH.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs +0 -64
- package/dist/lib/browser/operation-resolver-6MP2MYOY.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs +0 -150
- package/dist/lib/node-esm/app-graph-builder-LROHGJEM.mjs.map +0 -7
- package/dist/lib/node-esm/capability-CFLQ2QQU.mjs.map +0 -7
- package/dist/lib/node-esm/capability-RCUNM2M7.mjs +0 -32
- package/dist/lib/node-esm/capability-RCUNM2M7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-663A54LQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6WXBT3EC.mjs +0 -747
- package/dist/lib/node-esm/chunk-6WXBT3EC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7OWSHPYK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GQEBIGKD.mjs +0 -733
- package/dist/lib/node-esm/chunk-GQEBIGKD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GT6OKM5I.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-STMXUEPO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XR6NMKEP.mjs +0 -78
- package/dist/lib/node-esm/chunk-XR6NMKEP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XYQTBFPA.mjs.map +0 -7
- package/dist/lib/node-esm/common/index.mjs +0 -39
- package/dist/lib/node-esm/invoker-capability-PNMA5JOS.mjs +0 -33
- package/dist/lib/node-esm/invoker-capability-PNMA5JOS.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs +0 -65
- package/dist/lib/node-esm/operation-resolver-7YWDMTNU.mjs.map +0 -7
- package/dist/types/src/cli.d.ts.map +0 -1
- package/dist/types/src/common/activation-event.d.ts +0 -66
- package/dist/types/src/common/activation-event.d.ts.map +0 -1
- package/dist/types/src/common/capability.d.ts +0 -265
- package/dist/types/src/common/capability.d.ts.map +0 -1
- package/dist/types/src/common/collaboration.d.ts +0 -26
- package/dist/types/src/common/collaboration.d.ts.map +0 -1
- package/dist/types/src/common/file.d.ts +0 -14
- package/dist/types/src/common/file.d.ts.map +0 -1
- package/dist/types/src/common/graph.d.ts +0 -21
- package/dist/types/src/common/graph.d.ts.map +0 -1
- package/dist/types/src/common/plugin.d.ts +0 -201
- package/dist/types/src/common/plugin.d.ts.map +0 -1
- package/dist/types/src/common/surface.d.ts.map +0 -1
- package/dist/types/src/playground/debug/Debug.d.ts +0 -8
- package/dist/types/src/playground/debug/Debug.d.ts.map +0 -1
- package/dist/types/src/playground/debug/index.d.ts +0 -2
- package/dist/types/src/playground/debug/index.d.ts.map +0 -1
- package/dist/types/src/playground/debug/plugin.d.ts +0 -3
- package/dist/types/src/playground/debug/plugin.d.ts.map +0 -1
- package/dist/types/src/playground/generator/Main.d.ts +0 -8
- package/dist/types/src/playground/generator/Main.d.ts.map +0 -1
- package/dist/types/src/playground/generator/Toolbar.d.ts +0 -8
- package/dist/types/src/playground/generator/Toolbar.d.ts.map +0 -1
- package/dist/types/src/playground/generator/generator.d.ts +0 -19
- package/dist/types/src/playground/generator/generator.d.ts.map +0 -1
- package/dist/types/src/playground/generator/index.d.ts +0 -3
- package/dist/types/src/playground/generator/index.d.ts.map +0 -1
- package/dist/types/src/playground/generator/plugin.d.ts +0 -3
- package/dist/types/src/playground/generator/plugin.d.ts.map +0 -1
- package/dist/types/src/playground/layout/Layout.d.ts +0 -10
- package/dist/types/src/playground/layout/Layout.d.ts.map +0 -1
- package/dist/types/src/playground/layout/index.d.ts +0 -2
- package/dist/types/src/playground/layout/index.d.ts.map +0 -1
- package/dist/types/src/playground/layout/plugin.d.ts +0 -3
- package/dist/types/src/playground/layout/plugin.d.ts.map +0 -1
- package/dist/types/src/playground/logger/Toolbar.d.ts +0 -8
- package/dist/types/src/playground/logger/Toolbar.d.ts.map +0 -1
- package/dist/types/src/playground/logger/index.d.ts +0 -2
- package/dist/types/src/playground/logger/index.d.ts.map +0 -1
- package/dist/types/src/playground/logger/plugin.d.ts +0 -3
- package/dist/types/src/playground/logger/plugin.d.ts.map +0 -1
- package/dist/types/src/playground/logger/schema.d.ts +0 -27
- package/dist/types/src/playground/logger/schema.d.ts.map +0 -1
- package/dist/types/src/playground/playground.stories.d.ts +0 -11
- package/dist/types/src/playground/playground.stories.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +0 -3
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/actions.d.ts +0 -61
- package/dist/types/src/plugin-settings/actions.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts +0 -6
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/index.d.ts +0 -3
- package/dist/types/src/plugin-settings/index.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/meta.d.ts +0 -3
- package/dist/types/src/plugin-settings/meta.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/operation-resolver.d.ts +0 -6
- package/dist/types/src/plugin-settings/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/plugin-settings/translations.d.ts +0 -11
- package/dist/types/src/plugin-settings/translations.d.ts.map +0 -1
- package/dist/types/src/react/App.d.ts.map +0 -1
- package/dist/types/src/react/App.stories.d.ts.map +0 -1
- package/dist/types/src/react/DefaultFallback.d.ts +0 -8
- package/dist/types/src/react/DefaultFallback.d.ts.map +0 -1
- package/dist/types/src/react/ErrorBoundary.d.ts +0 -30
- package/dist/types/src/react/ErrorBoundary.d.ts.map +0 -1
- package/dist/types/src/react/PluginManagerContext.stories.d.ts.map +0 -1
- package/dist/types/src/react/PluginManagerProvider.d.ts.map +0 -1
- package/dist/types/src/react/Surface.d.ts +0 -14
- package/dist/types/src/react/Surface.d.ts.map +0 -1
- package/dist/types/src/react/Surface.stories.d.ts.map +0 -1
- package/dist/types/src/react/SurfaceInfo.d.ts.map +0 -1
- package/dist/types/src/react/common.d.ts.map +0 -1
- package/dist/types/src/react/index.d.ts +0 -9
- package/dist/types/src/react/index.d.ts.map +0 -1
- package/dist/types/src/react/types.d.ts +0 -12
- package/dist/types/src/react/types.d.ts.map +0 -1
- package/dist/types/src/react/useApp.d.ts.map +0 -1
- package/dist/types/src/react/useCapabilities.d.ts.map +0 -1
- package/dist/types/src/react/useLoading.d.ts.map +0 -1
- package/dist/types/src/react/useOperationResolver.d.ts +0 -19
- package/dist/types/src/react/useOperationResolver.d.ts.map +0 -1
- package/src/common/activation-event.ts +0 -99
- package/src/common/capability.ts +0 -343
- package/src/common/collaboration.ts +0 -31
- package/src/common/file.ts +0 -22
- package/src/common/graph.ts +0 -30
- package/src/common/plugin.ts +0 -364
- package/src/playground/debug/Debug.tsx +0 -49
- package/src/playground/debug/plugin.ts +0 -16
- package/src/playground/generator/Main.tsx +0 -80
- package/src/playground/generator/Toolbar.tsx +0 -57
- package/src/playground/generator/generator.ts +0 -48
- package/src/playground/generator/index.ts +0 -6
- package/src/playground/generator/plugin.ts +0 -21
- package/src/playground/layout/Layout.tsx +0 -37
- package/src/playground/layout/plugin.ts +0 -18
- package/src/playground/logger/Toolbar.tsx +0 -33
- package/src/playground/logger/index.ts +0 -5
- package/src/playground/logger/plugin.ts +0 -42
- package/src/playground/logger/schema.ts +0 -22
- package/src/playground/playground.stories.tsx +0 -54
- package/src/plugin-settings/SettingsPlugin.ts +0 -19
- package/src/plugin-settings/actions.ts +0 -64
- package/src/plugin-settings/app-graph-builder.ts +0 -140
- package/src/plugin-settings/index.ts +0 -6
- package/src/plugin-settings/meta.ts +0 -10
- package/src/plugin-settings/operation-resolver.ts +0 -55
- package/src/plugin-settings/translations.ts +0 -19
- package/src/react/App.stories.tsx +0 -63
- package/src/react/DefaultFallback.tsx +0 -26
- package/src/react/ErrorBoundary.tsx +0 -56
- package/src/react/index.ts +0 -14
- package/src/react/types.ts +0 -27
- package/src/react/useOperationResolver.ts +0 -40
- /package/dist/lib/{node-esm/react/index.mjs.map → browser/chunk-RFSO3JRG.mjs.map} +0 -0
- /package/dist/lib/{node-esm/common/index.mjs.map → browser/common/activation-events.mjs.map} +0 -0
- /package/dist/lib/browser/{react/index.mjs.map → common/capabilities.mjs.map} +0 -0
- /package/dist/lib/browser/{common/index.mjs.map → core/url-loader.mjs.map} +0 -0
- /package/dist/types/src/{react → ui/components/PluginManager}/PluginManagerContext.stories.d.ts +0 -0
- /package/dist/types/src/{react → ui/components/Surface}/SurfaceInfo.d.ts +0 -0
- /package/dist/types/src/{react → ui/hooks}/useLoading.d.ts +0 -0
- /package/src/{react → ui/hooks}/useLoading.tsx +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type Atom, type Registry } from '@effect-atom/atom-react';
|
|
2
|
+
import type * as Command$ from '@effect/cli/Command';
|
|
3
|
+
import * as Effect from 'effect/Effect';
|
|
4
|
+
import type * as Layer$ from 'effect/Layer';
|
|
5
|
+
import type * as ManagedRuntime$ from 'effect/ManagedRuntime';
|
|
6
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
7
|
+
import type { OperationInvoker as OperationInvoker$, OperationHandlerSet } from '@dxos/operation';
|
|
8
|
+
import { Capability as Capability$, type PluginManager as PluginManager$ } from '../core';
|
|
9
|
+
import type { HistoryTracker as HistoryTracker$, UndoMapping as UndoMapping$, UndoRegistry as UndoRegistry$ } from '../plugin-operation';
|
|
10
|
+
import type { Surface } from '../ui';
|
|
11
|
+
/**
|
|
12
|
+
* Null capability.
|
|
13
|
+
* @category Capability
|
|
14
|
+
*/
|
|
15
|
+
export declare const Null: Capability$.InterfaceDef<null>;
|
|
16
|
+
/**
|
|
17
|
+
* @category Capability
|
|
18
|
+
*/
|
|
19
|
+
export declare const PluginManager: Capability$.InterfaceDef<PluginManager$.PluginManager>;
|
|
20
|
+
/**
|
|
21
|
+
* @category Capability
|
|
22
|
+
*/
|
|
23
|
+
export declare const AtomRegistry: Capability$.InterfaceDef<Registry.Registry>;
|
|
24
|
+
export type ReactContext = Readonly<{
|
|
25
|
+
id: string;
|
|
26
|
+
dependsOn?: string[];
|
|
27
|
+
context: FC<PropsWithChildren>;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* @category Capability
|
|
31
|
+
*/
|
|
32
|
+
export declare const ReactContext: Capability$.InterfaceDef<Readonly<{
|
|
33
|
+
id: string;
|
|
34
|
+
dependsOn?: string[];
|
|
35
|
+
context: FC<PropsWithChildren>;
|
|
36
|
+
}>>;
|
|
37
|
+
export type ReactRoot = Readonly<{
|
|
38
|
+
id: string;
|
|
39
|
+
root: FC<PropsWithChildren>;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* @category Capability
|
|
43
|
+
*/
|
|
44
|
+
export declare const ReactRoot: Capability$.InterfaceDef<Readonly<{
|
|
45
|
+
id: string;
|
|
46
|
+
root: FC<PropsWithChildren>;
|
|
47
|
+
}>>;
|
|
48
|
+
/**
|
|
49
|
+
* Surface definitions that can be either React components or Web Components.
|
|
50
|
+
*/
|
|
51
|
+
export type ReactSurface = Surface.Definition | readonly Surface.Definition[];
|
|
52
|
+
/**
|
|
53
|
+
* @category Capability
|
|
54
|
+
*/
|
|
55
|
+
export declare const ReactSurface: Capability$.InterfaceDef<ReactSurface>;
|
|
56
|
+
export type AnyCommand = Command$.Command<any, any, any, any>;
|
|
57
|
+
/**
|
|
58
|
+
* @category Capability
|
|
59
|
+
*/
|
|
60
|
+
export declare const Command: Capability$.InterfaceDef<AnyCommand>;
|
|
61
|
+
/**
|
|
62
|
+
* @category Capability
|
|
63
|
+
*/
|
|
64
|
+
export declare const Layer: Capability$.InterfaceDef<Layer$.Layer<any, any, any>>;
|
|
65
|
+
export type ManagedRuntime = ManagedRuntime$.ManagedRuntime<any, any>;
|
|
66
|
+
/**
|
|
67
|
+
* @category Capability
|
|
68
|
+
*/
|
|
69
|
+
export declare const ManagedRuntime: Capability$.InterfaceDef<ManagedRuntime>;
|
|
70
|
+
export declare const OperationHandler: Capability$.InterfaceDef<OperationHandlerSet.OperationHandlerSet>;
|
|
71
|
+
export type UndoMapping = UndoMapping$.UndoMapping;
|
|
72
|
+
/**
|
|
73
|
+
* Undo mapping registration - contributed by plugins.
|
|
74
|
+
* @category Capability
|
|
75
|
+
*/
|
|
76
|
+
export declare const UndoMapping: Capability$.InterfaceDef<UndoMapping[]>;
|
|
77
|
+
export type OperationInvoker = OperationInvoker$.OperationInvoker;
|
|
78
|
+
/**
|
|
79
|
+
* Operation invoker - provided by OperationPlugin.
|
|
80
|
+
* @category Capability
|
|
81
|
+
*/
|
|
82
|
+
export declare const OperationInvoker: Capability$.InterfaceDef<OperationInvoker$.OperationInvoker>;
|
|
83
|
+
export type UndoRegistry = UndoRegistry$.UndoRegistry;
|
|
84
|
+
/**
|
|
85
|
+
* Undo registry - provided by OperationPlugin.
|
|
86
|
+
* @category Capability
|
|
87
|
+
*/
|
|
88
|
+
export declare const UndoRegistry: Capability$.InterfaceDef<UndoRegistry$.UndoRegistry>;
|
|
89
|
+
export type HistoryTracker = HistoryTracker$.HistoryTracker;
|
|
90
|
+
/**
|
|
91
|
+
* History tracker - provided by OperationPlugin.
|
|
92
|
+
* @category Capability
|
|
93
|
+
*/
|
|
94
|
+
export declare const HistoryTracker: Capability$.InterfaceDef<HistoryTracker$.HistoryTracker>;
|
|
95
|
+
/**
|
|
96
|
+
* Get the current value of an atom capability.
|
|
97
|
+
* @example const settings = yield* Capabilities.getAtomValue(ThreadCapabilities.Settings);
|
|
98
|
+
*/
|
|
99
|
+
export declare const getAtomValue: <T>(atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>) => Effect.Effect<T, Error, Capability$.Service>;
|
|
100
|
+
/**
|
|
101
|
+
* Update an atom capability value (requires writable atom).
|
|
102
|
+
* @example yield* Capabilities.updateAtomValue(ThreadCapabilities.Settings, (s) => ({ ...s, foo: true }));
|
|
103
|
+
*/
|
|
104
|
+
export declare const updateAtomValue: <T>(atomCapability: Capability$.InterfaceDef<Atom.Writable<T>>, fn: (current: T) => T) => Effect.Effect<void, Error, Capability$.Service>;
|
|
105
|
+
/**
|
|
106
|
+
* Subscribe to an atom capability.
|
|
107
|
+
* @example const unsubscribe = yield* Capabilities.subscribeAtom(ThreadCapabilities.Settings, (value) => ...);
|
|
108
|
+
*/
|
|
109
|
+
export declare const subscribeAtom: <T>(atomCapability: Capability$.InterfaceDef<Atom.Atom<T>>, callback: (value: T) => void) => Effect.Effect<() => void, Error, Capability$.Service>;
|
|
110
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,KAAK,eAAe,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAElG,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,KAAK,aAAa,IAAI,cAAc,EAAE,MAAM,SAAS,CAAC;AAC1F,OAAO,KAAK,EACV,cAAc,IAAI,eAAe,EACjC,WAAW,IAAI,YAAY,EAC3B,YAAY,IAAI,aAAa,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,IAAI,gCAAmE,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,aAAa,wDAEzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,6CAAyF,CAAC;AAEnH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC;CAChC,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;QARnB,MAAM;gBACE,MAAM,EAAE;aACX,EAAE,CAAC,iBAAiB,CAAC;GAM6E,CAAC;AAE9G,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;CAAE,CAAC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,SAAS;QALiB,MAAM;UAAQ,EAAE,CAAC,iBAAiB,CAAC;GAK0B,CAAC;AAErG;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,OAAO,CAAC,UAAU,EAAE,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,YAAY,wCAAgF,CAAC;AAE1G,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,OAAO,sCAA4E,CAAC;AAEjG;;GAEG;AACH,eAAO,MAAM,KAAK,uDAA2F,CAAC;AAE9G,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,cAAc,0CAAwF,CAAC;AAMpH,eAAO,MAAM,gBAAgB,mEAE5B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,WAAW,yCAAoF,CAAC;AAE7G,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,8DAE5B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,YAAY,sDAAoF,CAAC;AAE9G,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,cAAc,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,cAAc,0DAAwF,CAAC;AAMpH;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,EAC5B,gBAAgB,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KACrD,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAK1C,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAC/B,gBAAgB,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC1D,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,KACpB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAK7C,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAC7B,gBAAgB,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EACtD,UAAU,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,KAC3B,MAAM,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAKnD,CAAC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export * from './graph';
|
|
6
|
-
export * from './operations';
|
|
7
|
-
export * from './plugin';
|
|
8
|
-
export * from './surface';
|
|
9
|
-
export * from './translations';
|
|
1
|
+
export * as Capabilities from './capabilities';
|
|
2
|
+
export * as ActivationEvents from './activation-events';
|
|
3
|
+
export { UndoOperation } from './operations';
|
|
4
|
+
export { Label } from './translations';
|
|
10
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,352 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Operation } from '@dxos/operation';
|
|
2
2
|
import { Capability } from '../core';
|
|
3
|
-
/**
|
|
4
|
-
* Layout operations - Operation-based equivalents of LayoutAction intents.
|
|
5
|
-
* These mirror the LayoutAction namespace but use the Operation pattern.
|
|
6
|
-
*/
|
|
7
|
-
export declare namespace LayoutOperation {
|
|
8
|
-
const UpdateSidebar: Omit<{
|
|
9
|
-
readonly meta: {
|
|
10
|
-
readonly key: "dxos.org/plugin/layout/operation/update-sidebar";
|
|
11
|
-
readonly name: "Update Sidebar";
|
|
12
|
-
readonly description: "Update the sidebar state.";
|
|
13
|
-
};
|
|
14
|
-
readonly executionMode: "sync";
|
|
15
|
-
readonly services: readonly [typeof Capability.Service];
|
|
16
|
-
readonly schema: {
|
|
17
|
-
readonly input: Schema.Struct<{
|
|
18
|
-
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
19
|
-
state: Schema.optional<Schema.Literal<["closed", "collapsed", "expanded"]>>;
|
|
20
|
-
}>;
|
|
21
|
-
readonly output: typeof Schema.Void;
|
|
22
|
-
};
|
|
23
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
24
|
-
readonly executionMode: "sync" | "async";
|
|
25
|
-
};
|
|
26
|
-
const UpdateComplementary: Omit<{
|
|
27
|
-
readonly meta: {
|
|
28
|
-
readonly key: "dxos.org/plugin/layout/operation/update-complementary";
|
|
29
|
-
readonly name: "Update Complementary Sidebar";
|
|
30
|
-
readonly description: "Update the complementary sidebar state.";
|
|
31
|
-
};
|
|
32
|
-
readonly executionMode: "sync";
|
|
33
|
-
readonly services: readonly [typeof Capability.Service];
|
|
34
|
-
readonly schema: {
|
|
35
|
-
readonly input: Schema.Struct<{
|
|
36
|
-
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
37
|
-
state: Schema.optional<Schema.Literal<["closed", "collapsed", "expanded"]>>;
|
|
38
|
-
}>;
|
|
39
|
-
readonly output: typeof Schema.Void;
|
|
40
|
-
};
|
|
41
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
42
|
-
readonly executionMode: "sync" | "async";
|
|
43
|
-
};
|
|
44
|
-
const UpdateDialog: Omit<{
|
|
45
|
-
readonly meta: {
|
|
46
|
-
readonly key: "dxos.org/plugin/layout/operation/update-dialog";
|
|
47
|
-
readonly name: "Update Dialog";
|
|
48
|
-
readonly description: "Open, close, or update the dialog.";
|
|
49
|
-
};
|
|
50
|
-
readonly executionMode: "sync";
|
|
51
|
-
readonly services: readonly [typeof Capability.Service];
|
|
52
|
-
readonly schema: {
|
|
53
|
-
readonly input: Schema.Struct<{
|
|
54
|
-
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
55
|
-
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
56
|
-
type: Schema.optional<Schema.Literal<["default", "alert"]>>;
|
|
57
|
-
blockAlign: Schema.optional<Schema.Literal<["start", "center", "end"]>>;
|
|
58
|
-
overlayClasses: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
59
|
-
overlayStyle: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
60
|
-
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
61
|
-
}>;
|
|
62
|
-
readonly output: typeof Schema.Void;
|
|
63
|
-
};
|
|
64
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
65
|
-
readonly executionMode: "sync" | "async";
|
|
66
|
-
};
|
|
67
|
-
const UpdatePopover: Omit<{
|
|
68
|
-
readonly meta: {
|
|
69
|
-
readonly key: "dxos.org/plugin/layout/operation/update-popover";
|
|
70
|
-
readonly name: "Update Popover";
|
|
71
|
-
readonly description: "Open, close, or update a popover.";
|
|
72
|
-
};
|
|
73
|
-
readonly executionMode: "sync";
|
|
74
|
-
readonly services: readonly [typeof Capability.Service];
|
|
75
|
-
readonly schema: {
|
|
76
|
-
readonly input: Schema.Union<[Schema.extend<Schema.Union<[Schema.extend<Schema.Struct<{
|
|
77
|
-
subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
78
|
-
side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
79
|
-
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
80
|
-
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
81
|
-
}>, Schema.Struct<{
|
|
82
|
-
kind: Schema.optional<Schema.Literal<["base"]>>;
|
|
83
|
-
}>>, Schema.extend<Schema.Struct<{
|
|
84
|
-
subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
85
|
-
side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
86
|
-
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
87
|
-
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
88
|
-
}>, Schema.Struct<{
|
|
89
|
-
kind: Schema.Literal<["card"]>;
|
|
90
|
-
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
91
|
-
ns: typeof Schema.String;
|
|
92
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
93
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
94
|
-
}>>>>]>>;
|
|
95
|
-
}>>]>, Schema.Struct<{
|
|
96
|
-
variant: Schema.Literal<["virtual"]>;
|
|
97
|
-
anchor: Schema.SchemaClass<any, any, never>;
|
|
98
|
-
}>>, Schema.extend<Schema.Union<[Schema.extend<Schema.Struct<{
|
|
99
|
-
subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
100
|
-
side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
101
|
-
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
102
|
-
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
103
|
-
}>, Schema.Struct<{
|
|
104
|
-
kind: Schema.optional<Schema.Literal<["base"]>>;
|
|
105
|
-
}>>, Schema.extend<Schema.Struct<{
|
|
106
|
-
subject: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
107
|
-
side: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
108
|
-
state: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
109
|
-
props: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
|
|
110
|
-
}>, Schema.Struct<{
|
|
111
|
-
kind: Schema.Literal<["card"]>;
|
|
112
|
-
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
113
|
-
ns: typeof Schema.String;
|
|
114
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
115
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
116
|
-
}>>>>]>>;
|
|
117
|
-
}>>]>, Schema.Struct<{
|
|
118
|
-
variant: Schema.optional<Schema.Literal<["react"]>>;
|
|
119
|
-
anchorId: Schema.SchemaClass<string, string, never>;
|
|
120
|
-
}>>]>;
|
|
121
|
-
readonly output: typeof Schema.Void;
|
|
122
|
-
};
|
|
123
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
124
|
-
readonly executionMode: "sync" | "async";
|
|
125
|
-
};
|
|
126
|
-
const Toast: Schema.Struct<{
|
|
127
|
-
id: Schema.SchemaClass<string, string, never>;
|
|
128
|
-
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
129
|
-
ns: typeof Schema.String;
|
|
130
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
131
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
132
|
-
}>>>>]>>;
|
|
133
|
-
description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
134
|
-
ns: typeof Schema.String;
|
|
135
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
136
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
137
|
-
}>>>>]>>;
|
|
138
|
-
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
139
|
-
duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
140
|
-
closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
141
|
-
ns: typeof Schema.String;
|
|
142
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
143
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
144
|
-
}>>>>]>>;
|
|
145
|
-
actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
146
|
-
ns: typeof Schema.String;
|
|
147
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
148
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
149
|
-
}>>>>]>>;
|
|
150
|
-
actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
151
|
-
ns: typeof Schema.String;
|
|
152
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
153
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
154
|
-
}>>>>]>>;
|
|
155
|
-
onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
156
|
-
}>;
|
|
157
|
-
interface Toast extends Omit<Schema.Schema.Type<typeof Toast>, 'onAction'> {
|
|
158
|
-
onAction?: () => void;
|
|
159
|
-
}
|
|
160
|
-
const AddToast: Omit<{
|
|
161
|
-
readonly meta: {
|
|
162
|
-
readonly key: "dxos.org/plugin/layout/operation/add-toast";
|
|
163
|
-
readonly name: "Add Toast";
|
|
164
|
-
readonly description: "Add a toast notification.";
|
|
165
|
-
};
|
|
166
|
-
readonly executionMode: "sync";
|
|
167
|
-
readonly services: readonly [typeof Capability.Service];
|
|
168
|
-
readonly schema: {
|
|
169
|
-
readonly input: Schema.Struct<{
|
|
170
|
-
id: Schema.SchemaClass<string, string, never>;
|
|
171
|
-
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
172
|
-
ns: typeof Schema.String;
|
|
173
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
174
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
175
|
-
}>>>>]>>;
|
|
176
|
-
description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
177
|
-
ns: typeof Schema.String;
|
|
178
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
179
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
180
|
-
}>>>>]>>;
|
|
181
|
-
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
182
|
-
duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
183
|
-
closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
184
|
-
ns: typeof Schema.String;
|
|
185
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
186
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
187
|
-
}>>>>]>>;
|
|
188
|
-
actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
189
|
-
ns: typeof Schema.String;
|
|
190
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
191
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
192
|
-
}>>>>]>>;
|
|
193
|
-
actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
194
|
-
ns: typeof Schema.String;
|
|
195
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
196
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
197
|
-
}>>>>]>>;
|
|
198
|
-
onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
199
|
-
}>;
|
|
200
|
-
readonly output: typeof Schema.Void;
|
|
201
|
-
};
|
|
202
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
203
|
-
readonly executionMode: "sync" | "async";
|
|
204
|
-
};
|
|
205
|
-
const SetLayoutMode: Omit<{
|
|
206
|
-
readonly meta: {
|
|
207
|
-
readonly key: "dxos.org/plugin/layout/operation/set-layout-mode";
|
|
208
|
-
readonly name: "Set Layout Mode";
|
|
209
|
-
readonly description: "Set the layout mode (solo, deck, fullscreen, etc.).";
|
|
210
|
-
};
|
|
211
|
-
readonly executionMode: "sync";
|
|
212
|
-
readonly services: readonly [typeof Capability.Service];
|
|
213
|
-
readonly schema: {
|
|
214
|
-
readonly input: Schema.Union<[Schema.Struct<{
|
|
215
|
-
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
216
|
-
mode: Schema.SchemaClass<string, string, never>;
|
|
217
|
-
}>, Schema.Struct<{
|
|
218
|
-
revert: Schema.SchemaClass<boolean, boolean, never>;
|
|
219
|
-
}>]>;
|
|
220
|
-
readonly output: typeof Schema.Void;
|
|
221
|
-
};
|
|
222
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
223
|
-
readonly executionMode: "sync" | "async";
|
|
224
|
-
};
|
|
225
|
-
const SwitchWorkspace: Omit<{
|
|
226
|
-
readonly meta: {
|
|
227
|
-
readonly key: "dxos.org/plugin/layout/operation/switch-workspace";
|
|
228
|
-
readonly name: "Switch Workspace";
|
|
229
|
-
readonly description: "Switch to a different workspace.";
|
|
230
|
-
};
|
|
231
|
-
readonly executionMode: "sync";
|
|
232
|
-
readonly services: readonly [typeof Capability.Service];
|
|
233
|
-
readonly schema: {
|
|
234
|
-
readonly input: Schema.Struct<{
|
|
235
|
-
subject: Schema.SchemaClass<string, string, never>;
|
|
236
|
-
}>;
|
|
237
|
-
readonly output: typeof Schema.Void;
|
|
238
|
-
};
|
|
239
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
240
|
-
readonly executionMode: "sync" | "async";
|
|
241
|
-
};
|
|
242
|
-
const RevertWorkspace: Omit<{
|
|
243
|
-
readonly meta: {
|
|
244
|
-
readonly key: "dxos.org/plugin/layout/operation/revert-workspace";
|
|
245
|
-
readonly name: "Revert Workspace";
|
|
246
|
-
readonly description: "Revert to the previous workspace.";
|
|
247
|
-
};
|
|
248
|
-
readonly executionMode: "sync";
|
|
249
|
-
readonly services: readonly [typeof Capability.Service];
|
|
250
|
-
readonly schema: {
|
|
251
|
-
readonly input: typeof Schema.Void;
|
|
252
|
-
readonly output: typeof Schema.Void;
|
|
253
|
-
};
|
|
254
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
255
|
-
readonly executionMode: "sync" | "async";
|
|
256
|
-
};
|
|
257
|
-
const Open: Omit<{
|
|
258
|
-
readonly meta: {
|
|
259
|
-
readonly key: "dxos.org/plugin/layout/operation/open";
|
|
260
|
-
readonly name: "Open";
|
|
261
|
-
readonly description: "Open items in the main content area.";
|
|
262
|
-
};
|
|
263
|
-
readonly executionMode: "sync";
|
|
264
|
-
readonly services: readonly [typeof Capability.Service];
|
|
265
|
-
readonly schema: {
|
|
266
|
-
readonly input: Schema.Struct<{
|
|
267
|
-
subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
|
268
|
-
state: Schema.optional<Schema.Literal<[true]>>;
|
|
269
|
-
variant: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
270
|
-
key: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
271
|
-
workspace: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
272
|
-
scrollIntoView: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
273
|
-
pivotId: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
274
|
-
positioning: Schema.optional<Schema.Union<[Schema.Literal<["start"]>, Schema.Literal<["end"]>]>>;
|
|
275
|
-
}>;
|
|
276
|
-
readonly output: typeof Schema.Void;
|
|
277
|
-
};
|
|
278
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
279
|
-
readonly executionMode: "sync" | "async";
|
|
280
|
-
};
|
|
281
|
-
const Close: Omit<{
|
|
282
|
-
readonly meta: {
|
|
283
|
-
readonly key: "dxos.org/plugin/layout/operation/close";
|
|
284
|
-
readonly name: "Close";
|
|
285
|
-
readonly description: "Close items in the main content area.";
|
|
286
|
-
};
|
|
287
|
-
readonly executionMode: "sync";
|
|
288
|
-
readonly services: readonly [typeof Capability.Service];
|
|
289
|
-
readonly schema: {
|
|
290
|
-
readonly input: Schema.Struct<{
|
|
291
|
-
subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
|
292
|
-
}>;
|
|
293
|
-
readonly output: typeof Schema.Void;
|
|
294
|
-
};
|
|
295
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
296
|
-
readonly executionMode: "sync" | "async";
|
|
297
|
-
};
|
|
298
|
-
const Set: Omit<{
|
|
299
|
-
readonly meta: {
|
|
300
|
-
readonly key: "dxos.org/plugin/layout/operation/set";
|
|
301
|
-
readonly name: "Set";
|
|
302
|
-
readonly description: "Override items in the main content area.";
|
|
303
|
-
};
|
|
304
|
-
readonly executionMode: "sync";
|
|
305
|
-
readonly services: readonly [typeof Capability.Service];
|
|
306
|
-
readonly schema: {
|
|
307
|
-
readonly input: Schema.Struct<{
|
|
308
|
-
subject: Schema.Array$<Schema.SchemaClass<string, string, never>>;
|
|
309
|
-
}>;
|
|
310
|
-
readonly output: typeof Schema.Void;
|
|
311
|
-
};
|
|
312
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
313
|
-
readonly executionMode: "sync" | "async";
|
|
314
|
-
};
|
|
315
|
-
const ScrollIntoView: Omit<{
|
|
316
|
-
readonly meta: {
|
|
317
|
-
readonly key: "dxos.org/plugin/layout/operation/scroll-into-view";
|
|
318
|
-
readonly name: "Scroll Into View";
|
|
319
|
-
readonly description: "Scroll an item into view.";
|
|
320
|
-
};
|
|
321
|
-
readonly services: readonly [typeof Capability.Service];
|
|
322
|
-
readonly schema: {
|
|
323
|
-
readonly input: Schema.Struct<{
|
|
324
|
-
subject: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
325
|
-
cursor: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
326
|
-
ref: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
327
|
-
}>;
|
|
328
|
-
readonly output: typeof Schema.Void;
|
|
329
|
-
};
|
|
330
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
331
|
-
readonly executionMode: "sync" | "async";
|
|
332
|
-
};
|
|
333
|
-
const Expose: Omit<{
|
|
334
|
-
readonly meta: {
|
|
335
|
-
readonly key: "dxos.org/plugin/layout/operation/expose";
|
|
336
|
-
readonly name: "Expose";
|
|
337
|
-
readonly description: "Expose an item in the navigation area.";
|
|
338
|
-
};
|
|
339
|
-
readonly services: readonly [typeof Capability.Service];
|
|
340
|
-
readonly schema: {
|
|
341
|
-
readonly input: Schema.Struct<{
|
|
342
|
-
subject: Schema.SchemaClass<string, string, never>;
|
|
343
|
-
}>;
|
|
344
|
-
readonly output: typeof Schema.Void;
|
|
345
|
-
};
|
|
346
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
347
|
-
readonly executionMode: "sync" | "async";
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
3
|
/**
|
|
351
4
|
* Operations related to undo/history functionality.
|
|
352
5
|
*/
|
|
@@ -355,26 +8,12 @@ export declare namespace UndoOperation {
|
|
|
355
8
|
* Show an undo toast notification.
|
|
356
9
|
* Fired by HistoryTracker when an undoable operation is tracked.
|
|
357
10
|
*/
|
|
358
|
-
const ShowUndo:
|
|
359
|
-
readonly
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
readonly services: readonly [typeof Capability.Service];
|
|
366
|
-
readonly schema: {
|
|
367
|
-
readonly input: Schema.Struct<{
|
|
368
|
-
message: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
369
|
-
ns: typeof Schema.String;
|
|
370
|
-
count: Schema.optional<typeof Schema.Number>;
|
|
371
|
-
defaultValue: Schema.optional<typeof Schema.String>;
|
|
372
|
-
}>>>>]>>;
|
|
373
|
-
}>;
|
|
374
|
-
readonly output: typeof Schema.Void;
|
|
375
|
-
};
|
|
376
|
-
}, "executionMode"> & import("effect/Pipeable").Pipeable & {
|
|
377
|
-
readonly executionMode: "sync" | "async";
|
|
378
|
-
};
|
|
11
|
+
const ShowUndo: Operation.Definition<{
|
|
12
|
+
readonly message?: string | [string, {
|
|
13
|
+
ns: string;
|
|
14
|
+
count?: number | undefined;
|
|
15
|
+
defaultValue?: string | undefined;
|
|
16
|
+
}] | undefined;
|
|
17
|
+
}, void, Capability.Service>;
|
|
379
18
|
}
|
|
380
19
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/common/operations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/common/operations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKrC;;GAEG;AACH,yBAAiB,aAAa,CAAC;IAC7B;;;OAGG;IACI,MAAM,QAAQ;;;;;;gCAYnB,CAAC;CACJ"}
|
|
@@ -8,13 +8,4 @@ export declare const Label: Schema.Union<[typeof Schema.String, Schema.mutable<S
|
|
|
8
8
|
defaultValue: Schema.optional<typeof Schema.String>;
|
|
9
9
|
}>>>>]>;
|
|
10
10
|
export type Label = Schema.Schema.Type<typeof Label>;
|
|
11
|
-
export declare const ResourceKey: Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>;
|
|
12
|
-
export type ResourceKey = Schema.Schema.Type<typeof ResourceKey>;
|
|
13
|
-
export declare const ResourceLanguage: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>;
|
|
14
|
-
export type ResourceLanguage = Schema.Schema.Type<typeof ResourceLanguage>;
|
|
15
|
-
/**
|
|
16
|
-
* A resource is a collection of translations for a language.
|
|
17
|
-
*/
|
|
18
|
-
export declare const Resource: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>>;
|
|
19
|
-
export type Resource = Schema.Schema.Type<typeof Resource>;
|
|
20
11
|
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;OAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;OAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* A unique string identifier representing an event.
|
|
3
3
|
* This is expected to be a URI, where initial parts are often the id of the plugin whose package defines the event.
|
|
4
4
|
*
|
|
5
|
-
* @example dxos.
|
|
5
|
+
* @example org.dxos.plugin.example.event.ready
|
|
6
6
|
*/
|
|
7
7
|
export type ActivationEvent = {
|
|
8
8
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activation-event.d.ts","sourceRoot":"","sources":["../../../../src/core/activation-event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activation-event.d.ts","sourceRoot":"","sources":["../../../../src/core/activation-event.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,eAAe,GACf;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,IAAI,MAAM,EAAE,YAAY,MAAM,KACrB,eAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,eAAe,WACuB,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,GAAG,QAAQ,eAAe,EAAE;;;CAA0C,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,GAAG,QAAQ,eAAe,EAAE;;;CAA0C,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,KAAG,MAAM,IAAI;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAChD,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,KAAG,MAAM,IAAI;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,eAAe,EAAE,CAAA;CAChD,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,sBAAkD,CAAC"}
|
|
@@ -35,6 +35,11 @@ export interface CapabilityManager {
|
|
|
35
35
|
* @returns The capability.
|
|
36
36
|
*/
|
|
37
37
|
waitFor<T>(interfaceDef: Capability.InterfaceDef<T>): Effect.Effect<T, Error>;
|
|
38
|
+
/**
|
|
39
|
+
* Get capabilities grouped by the module that contributed them.
|
|
40
|
+
* @returns An atom containing a record from module ID to capability implementations.
|
|
41
|
+
*/
|
|
42
|
+
atomByModule<T>(interfaceDef: Capability.InterfaceDef<T>): Atom.Atom<Record<string, T[]>>;
|
|
38
43
|
}
|
|
39
44
|
/**
|
|
40
45
|
* Creates a new Capability Manager instance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/capability-manager.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiB,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,KAAK,KAAK,UAAU,MAAM,cAAc,CAAC;AAehD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAAC,cAAc,EAAE,CAAC,CAAA;KAAE,GAAG,IAAI,CAAC;IAExG,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,GAAG,IAAI,CAAC;IAE7E;;;;;OAKG;IACH,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IAElE;;;OAGG;IACH,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAEzD;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAEpD;;;OAGG;IACH,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"capability-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/capability-manager.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAiB,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,KAAK,KAAK,UAAU,MAAM,cAAc,CAAC;AAehD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAAC,cAAc,EAAE,CAAC,CAAA;KAAE,GAAG,IAAI,CAAC;IAExG,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,GAAG,IAAI,CAAC;IAE7E;;;;;OAKG;IACH,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IAElE;;;OAGG;IACH,MAAM,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAEzD;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAEpD;;;OAGG;IACH,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAE9E;;;OAGG;IACH,YAAY,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAC3F;AAyHD;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,SAAS,wBAAwB,KAAG,iBAAuD,CAAC"}
|
|
@@ -35,6 +35,12 @@ export declare const waitFor: <T>(interfaceDef: InterfaceDef<T>) => Effect.Effec
|
|
|
35
35
|
* @returns An Atom containing the array of capability implementations.
|
|
36
36
|
*/
|
|
37
37
|
export declare const atom: <T>(interfaceDef: InterfaceDef<T>) => Effect.Effect<Atom.Atom<T[]>, never, Service>;
|
|
38
|
+
/**
|
|
39
|
+
* Get capabilities grouped by the module that contributed them.
|
|
40
|
+
* @param interfaceDef The interface definition of the capability.
|
|
41
|
+
* @returns An Atom containing a record from module ID to capability implementations.
|
|
42
|
+
*/
|
|
43
|
+
export declare const atomByModule: <T>(interfaceDef: InterfaceDef<T>) => Effect.Effect<Atom.Atom<Record<string, T[]>>, never, Service>;
|
|
38
44
|
declare const InterfaceDefTypeId: unique symbol;
|
|
39
45
|
/**
|
|
40
46
|
* Symbol used to tag lazy capability functions with their module ID.
|
|
@@ -83,13 +89,13 @@ export type ModuleReturn = void | Any | Any[] | readonly Any[] | [Any, ...Any[]]
|
|
|
83
89
|
*/
|
|
84
90
|
export declare const contributes: <I extends InterfaceDef<any>>(interfaceDef: I, implementation: Capability<InterfaceDef.Implementation<I>>["implementation"], deactivate?: Capability<InterfaceDef.Implementation<I>>["deactivate"]) => Capability<I>;
|
|
85
91
|
type LoadCapability<Props, Capabilities extends ModuleReturn = ModuleReturn> = () => Promise<{
|
|
86
|
-
default: (props
|
|
92
|
+
default: (props: Props) => Effect.Effect<Capabilities, Error, Service | Plugin.Service | never>;
|
|
87
93
|
}>;
|
|
88
94
|
type LoadCapabilities<Props, Capabilities extends ModuleReturn = ModuleReturn> = () => Promise<{
|
|
89
|
-
default: (props
|
|
95
|
+
default: (props: Props) => Effect.Effect<Capabilities, Error, Service | Plugin.Service | never>;
|
|
90
96
|
}>;
|
|
91
97
|
type NormalizeReturn<R> = R extends readonly (infer A)[] ? A[] : R extends (infer A)[] ? A[] : R extends Any ? [R] : Any[];
|
|
92
|
-
export type LazyCapability<Props = void, Capabilities extends ModuleReturn = ModuleReturn, E extends Error = Error> = (props
|
|
98
|
+
export type LazyCapability<Props = void, Capabilities extends ModuleReturn = ModuleReturn, E extends Error = Error> = (props: Props) => Effect.Effect<NormalizeReturn<Capabilities>, E, Service | Plugin.Service | never>;
|
|
93
99
|
/**
|
|
94
100
|
* Helper to define a lazily loaded implementation of a capability.
|
|
95
101
|
* Supports single capabilities, arrays, and tuples of different capability types.
|
|
@@ -136,15 +142,15 @@ export declare const getModuleTag: (capability: unknown) => string | undefined;
|
|
|
136
142
|
* })
|
|
137
143
|
* );
|
|
138
144
|
*
|
|
139
|
-
* // Module with
|
|
145
|
+
* // Module with required options (context accessed via layer)
|
|
140
146
|
* export default Capability.makeModule(
|
|
141
|
-
* Effect.fnUntraced(function* (
|
|
142
|
-
* const invoker = yield* Capability.get(
|
|
147
|
+
* Effect.fnUntraced(function* (props: { observability: boolean }) {
|
|
148
|
+
* const invoker = yield* Capability.get(Capabilities.OperationInvoker);
|
|
143
149
|
* return contributes(Capabilities.IntentResolver, ...);
|
|
144
150
|
* })
|
|
145
151
|
* );
|
|
146
152
|
* ```
|
|
147
153
|
*/
|
|
148
|
-
export declare const makeModule: <TProps = void, TReturn extends ModuleReturn = ModuleReturn, E extends Error = Error, R extends Service | Plugin.Service | never = Service>(fn: (props
|
|
154
|
+
export declare const makeModule: <TProps = void, TReturn extends ModuleReturn = ModuleReturn, E extends Error = Error, R extends Service | Plugin.Service | never = Service>(fn: (props: TProps) => Effect.Effect<TReturn, E, R>) => ((props: TProps) => Effect.Effect<TReturn, E, R>);
|
|
149
155
|
export {};
|
|
150
156
|
//# sourceMappingURL=capability.d.ts.map
|