@dxos/app-framework 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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-4NSF2SOO.mjs} +16 -11
- package/dist/lib/browser/capability-4NSF2SOO.mjs.map +7 -0
- package/dist/lib/browser/capability-EB3UKSKA.mjs +35 -0
- package/dist/lib/browser/capability-EB3UKSKA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FMZN33N4.mjs → chunk-27FZETIA.mjs} +324 -181
- package/dist/lib/browser/chunk-27FZETIA.mjs.map +7 -0
- package/dist/lib/browser/chunk-CV7I2AAB.mjs +80 -0
- package/dist/lib/browser/chunk-CV7I2AAB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6Y7PZV72.mjs → chunk-FL2XTEJH.mjs} +3 -4
- package/dist/lib/browser/chunk-FL2XTEJH.mjs.map +7 -0
- package/dist/lib/browser/chunk-H7OMDDGW.mjs +42 -0
- package/dist/lib/browser/chunk-H7OMDDGW.mjs.map +7 -0
- package/dist/lib/browser/chunk-HDQXX5DC.mjs +157 -0
- package/dist/lib/browser/chunk-HDQXX5DC.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-KNBRTZVK.mjs +892 -0
- package/dist/lib/browser/chunk-KNBRTZVK.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7IQHKD4U.mjs → chunk-NO7R7QHA.mjs} +4 -7
- package/dist/lib/browser/chunk-NO7R7QHA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TCLLRCS3.mjs → chunk-P2E7VMRF.mjs} +10 -7
- package/dist/lib/browser/chunk-P2E7VMRF.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-TGX63LTL.mjs +8 -0
- package/dist/lib/browser/{chunk-FHQTHCX7.mjs.map → chunk-TGX63LTL.mjs.map} +1 -1
- 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 +1 -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-P7KPBTP3.mjs +43 -0
- package/dist/lib/browser/invoker-capability-P7KPBTP3.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-CB3MNEI3.mjs} +16 -11
- package/dist/lib/node-esm/capability-CB3MNEI3.mjs.map +7 -0
- package/dist/lib/node-esm/capability-CMROGK7R.mjs +36 -0
- package/dist/lib/node-esm/capability-CMROGK7R.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-STMXUEPO.mjs → chunk-37NG7SIN.mjs} +3 -4
- package/dist/lib/node-esm/chunk-37NG7SIN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7JPKC7OM.mjs +893 -0
- package/dist/lib/node-esm/chunk-7JPKC7OM.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7PPVTBYR.mjs +81 -0
- package/dist/lib/node-esm/chunk-7PPVTBYR.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BQ56U4QX.mjs +43 -0
- package/dist/lib/node-esm/chunk-BQ56U4QX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-GT6OKM5I.mjs → chunk-CG6UBBZZ.mjs} +10 -7
- package/dist/lib/node-esm/chunk-CG6UBBZZ.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-663A54LQ.mjs → chunk-EXYTXQ47.mjs} +4 -7
- package/dist/lib/node-esm/chunk-EXYTXQ47.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-OXXXRCQX.mjs +158 -0
- package/dist/lib/node-esm/chunk-OXXXRCQX.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-XYQTBFPA.mjs → chunk-YH44RHP6.mjs} +324 -181
- package/dist/lib/node-esm/chunk-YH44RHP6.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 +1 -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-3C5H46ZY.mjs +44 -0
- package/dist/lib/node-esm/invoker-capability-3C5H46ZY.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.d.ts +7 -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/history/capability.d.ts +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/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/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/{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 -382
- 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.ts +1 -1
- package/src/core/capability.ts +11 -10
- package/src/core/index.ts +1 -0
- package/src/core/plugin-manager.test.ts +313 -44
- 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 -5
- package/src/plugin-operation/history/capability.ts +5 -5
- package/src/plugin-operation/history/errors.ts +2 -6
- package/src/plugin-operation/history/history-tracker.test.ts +36 -42
- package/src/plugin-operation/history/undo-mapping.ts +6 -3
- package/src/plugin-operation/history/undo-registry.test.ts +3 -3
- 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 -4
- 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 -6
- package/src/testing/withPluginManager.tsx +46 -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} +28 -24
- package/src/{react/Surface.tsx → ui/components/Surface/SurfaceComponent.tsx} +48 -58
- 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 +315 -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
|
@@ -1,732 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
activation_event_exports
|
|
3
|
-
} from "./chunk-PKQT6C53.mjs";
|
|
4
|
-
import {
|
|
5
|
-
plugin_exports
|
|
6
|
-
} from "./chunk-TCLLRCS3.mjs";
|
|
7
|
-
import {
|
|
8
|
-
capability_exports
|
|
9
|
-
} from "./chunk-6Y7PZV72.mjs";
|
|
10
|
-
import {
|
|
11
|
-
__export
|
|
12
|
-
} from "./chunk-J5LGTIGS.mjs";
|
|
13
|
-
|
|
14
|
-
// src/common/index.ts
|
|
15
|
-
var common_exports = {};
|
|
16
|
-
__export(common_exports, {
|
|
17
|
-
ActivationEvent: () => ActivationEvent,
|
|
18
|
-
Capability: () => Capability,
|
|
19
|
-
CollaborationOperation: () => CollaborationOperation,
|
|
20
|
-
FileInfoSchema: () => FileInfoSchema,
|
|
21
|
-
Label: () => Label,
|
|
22
|
-
LayoutOperation: () => LayoutOperation,
|
|
23
|
-
Plugin: () => Plugin,
|
|
24
|
-
Resource: () => Resource,
|
|
25
|
-
ResourceKey: () => ResourceKey,
|
|
26
|
-
ResourceLanguage: () => ResourceLanguage,
|
|
27
|
-
UndoOperation: () => UndoOperation,
|
|
28
|
-
createSurface: () => createSurface,
|
|
29
|
-
createWebSurface: () => createWebSurface,
|
|
30
|
-
defaultFileTypes: () => defaultFileTypes
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// src/common/capability.ts
|
|
34
|
-
import { Atom } from "@effect-atom/atom-react";
|
|
35
|
-
import * as Effect from "effect/Effect";
|
|
36
|
-
(function(Capability2) {
|
|
37
|
-
Capability2.Null = capability_exports.make("dxos.org/app-framework/capability/null");
|
|
38
|
-
Capability2.PluginManager = capability_exports.make("dxos.org/app-framework/capability/plugin-manager");
|
|
39
|
-
Capability2.AtomRegistry = capability_exports.make("dxos.org/app-framework/capability/atom-registry");
|
|
40
|
-
Capability2.ReactContext = capability_exports.make("dxos.org/app-framework/capability/react-context");
|
|
41
|
-
Capability2.ReactRoot = capability_exports.make("dxos.org/app-framework/capability/react-root");
|
|
42
|
-
Capability2.ReactSurface = capability_exports.make("dxos.org/app-framework/common/react-surface");
|
|
43
|
-
Capability2.Layout = capability_exports.make("dxos.org/app-framework/capability/layout");
|
|
44
|
-
Capability2.Translations = capability_exports.make("dxos.org/app-framework/capability/translations");
|
|
45
|
-
Capability2.AppGraph = capability_exports.make("dxos.org/app-framework/capability/app-graph");
|
|
46
|
-
Capability2.AppGraphBuilder = capability_exports.make("dxos.org/app-framework/capability/app-graph-builder");
|
|
47
|
-
Capability2.AppGraphSerializer = capability_exports.make("dxos.org/app-framework/capability/app-graph-serializer");
|
|
48
|
-
Capability2.isSettings = (value) => typeof value === "object" && value !== null && "prefix" in value && typeof value.prefix === "string" && "atom" in value && Atom.isAtom(value.atom) && Atom.isWritable(value.atom);
|
|
49
|
-
Capability2.Settings = capability_exports.make("dxos.org/app-framework/capability/settings");
|
|
50
|
-
Capability2.Metadata = capability_exports.make("dxos.org/app-framework/capability/metadata");
|
|
51
|
-
Capability2.Schema = capability_exports.make("dxos.org/app-framework/capability/schema");
|
|
52
|
-
Capability2.Toolkit = capability_exports.make("dxos.org/app-framework/capability/ai-toolkit");
|
|
53
|
-
Capability2.BlueprintDefinition = capability_exports.make("dxos.org/app-framework/capability/blueprint-definition");
|
|
54
|
-
Capability2.AiServiceLayer = capability_exports.make("dxos.org/app-framework/capability/ai-service-factory");
|
|
55
|
-
Capability2.AiModelResolver = capability_exports.make("dxos.org/app-framework/capability/ai-model-resolver");
|
|
56
|
-
Capability2.Functions = capability_exports.make("dxos.org/app-framework/capability/functions");
|
|
57
|
-
Capability2.FileUploader = capability_exports.make("dxos.org/app-framework/capability/file-uploader");
|
|
58
|
-
Capability2.AnchorSort = capability_exports.make("dxos.org/app-framework/capability/anchor-sort");
|
|
59
|
-
Capability2.Command = capability_exports.make("dxos.org/app-framework/capability/command");
|
|
60
|
-
Capability2.Layer = capability_exports.make("dxos.org/app-framework/capability/layer");
|
|
61
|
-
Capability2.ManagedRuntime = capability_exports.make("dxos.org/app-framework/capability/managed-runtime");
|
|
62
|
-
Capability2.OperationResolver = capability_exports.make("dxos.org/app-framework/capability/operation-resolver");
|
|
63
|
-
Capability2.UndoMapping = capability_exports.make("dxos.org/app-framework/capability/undo-mapping");
|
|
64
|
-
Capability2.OperationInvoker = capability_exports.make("dxos.org/app-framework/capability/operation-invoker");
|
|
65
|
-
Capability2.UndoRegistry = capability_exports.make("dxos.org/app-framework/capability/undo-registry");
|
|
66
|
-
Capability2.HistoryTracker = capability_exports.make("dxos.org/app-framework/capability/history-tracker");
|
|
67
|
-
Capability2.getAtomValue = (atomCapability) => Effect.gen(function* () {
|
|
68
|
-
const registry = yield* capability_exports.get(Capability2.AtomRegistry);
|
|
69
|
-
const atom = yield* capability_exports.get(atomCapability);
|
|
70
|
-
return registry.get(atom);
|
|
71
|
-
});
|
|
72
|
-
Capability2.updateAtomValue = (atomCapability, fn) => Effect.gen(function* () {
|
|
73
|
-
const registry = yield* capability_exports.get(Capability2.AtomRegistry);
|
|
74
|
-
const atom = yield* capability_exports.get(atomCapability);
|
|
75
|
-
registry.set(atom, fn(registry.get(atom)));
|
|
76
|
-
});
|
|
77
|
-
Capability2.subscribeAtom = (atomCapability, callback) => Effect.gen(function* () {
|
|
78
|
-
const registry = yield* capability_exports.get(Capability2.AtomRegistry);
|
|
79
|
-
const atom = yield* capability_exports.get(atomCapability);
|
|
80
|
-
return registry.subscribe(atom, () => callback(registry.get(atom)));
|
|
81
|
-
});
|
|
82
|
-
})(Capability || (Capability = {}));
|
|
83
|
-
var Capability;
|
|
84
|
-
|
|
85
|
-
// src/common/activation-event.ts
|
|
86
|
-
(function(ActivationEvent2) {
|
|
87
|
-
ActivationEvent2.Startup = activation_event_exports.make("dxos.org/app-framework/event/startup");
|
|
88
|
-
ActivationEvent2.SetupReactSurface = activation_event_exports.make("dxos.org/app-framework/event/setup-react-surface");
|
|
89
|
-
ActivationEvent2.SetupMetadata = activation_event_exports.make("dxos.org/app-framework/event/setup-metadata");
|
|
90
|
-
ActivationEvent2.SetupOperationResolver = activation_event_exports.make("dxos.org/app-framework/event/setup-operation-resolver");
|
|
91
|
-
ActivationEvent2.SetupLayer = activation_event_exports.make("dxos.org/app-framework/event/setup-layer");
|
|
92
|
-
ActivationEvent2.SetupSettings = activation_event_exports.make("dxos.org/app-framework/event/setup-settings");
|
|
93
|
-
ActivationEvent2.SetupAppGraph = activation_event_exports.make("dxos.org/app-framework/event/setup-graph");
|
|
94
|
-
ActivationEvent2.SetupTranslations = activation_event_exports.make("dxos.org/app-framework/event/setup-translations");
|
|
95
|
-
ActivationEvent2.SetupSchema = activation_event_exports.make("dxos.org/app-framework/event/setup-schema");
|
|
96
|
-
ActivationEvent2.SetupArtifactDefinition = activation_event_exports.make("dxos.org/app-framework/event/setup-artifact-definition");
|
|
97
|
-
ActivationEvent2.OperationInvokerReady = activation_event_exports.make("dxos.org/app-framework/event/operation-invoker-ready");
|
|
98
|
-
ActivationEvent2.ManagedRuntimeReady = activation_event_exports.make("dxos.org/app-framework/event/managed-runtime-ready");
|
|
99
|
-
ActivationEvent2.AppGraphReady = activation_event_exports.make("dxos.org/app-framework/event/graph-ready");
|
|
100
|
-
ActivationEvent2.createStateEvent = (specifier) => activation_event_exports.make("dxos.org/app-framework/event/state", specifier);
|
|
101
|
-
ActivationEvent2.LayoutReady = ActivationEvent2.createStateEvent(Capability.Layout.identifier);
|
|
102
|
-
ActivationEvent2.createSettingsEvent = (specifier) => activation_event_exports.make("dxos.org/app-framework/event/settings", specifier);
|
|
103
|
-
})(ActivationEvent || (ActivationEvent = {}));
|
|
104
|
-
var ActivationEvent;
|
|
105
|
-
|
|
106
|
-
// src/common/collaboration.ts
|
|
107
|
-
import * as Schema from "effect/Schema";
|
|
108
|
-
import { Operation } from "@dxos/operation";
|
|
109
|
-
import { ContentBlock } from "@dxos/types";
|
|
110
|
-
var COLLABORATION_OPERATION = "dxos.org/app-framework/collaboration/operation";
|
|
111
|
-
(function(CollaborationOperation2) {
|
|
112
|
-
CollaborationOperation2.AcceptProposal = Operation.make({
|
|
113
|
-
meta: {
|
|
114
|
-
key: `${COLLABORATION_OPERATION}/accept-proposal`,
|
|
115
|
-
name: "Accept Proposal",
|
|
116
|
-
description: "Accept a proposal from a collaborator."
|
|
117
|
-
},
|
|
118
|
-
services: [
|
|
119
|
-
capability_exports.Service
|
|
120
|
-
],
|
|
121
|
-
schema: {
|
|
122
|
-
input: Schema.Struct({
|
|
123
|
-
subject: Schema.Any,
|
|
124
|
-
anchor: Schema.String,
|
|
125
|
-
proposal: ContentBlock.Proposal
|
|
126
|
-
}),
|
|
127
|
-
output: Schema.Void
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
})(CollaborationOperation || (CollaborationOperation = {}));
|
|
131
|
-
var CollaborationOperation;
|
|
132
|
-
|
|
133
|
-
// src/common/file.ts
|
|
134
|
-
import * as Schema2 from "effect/Schema";
|
|
135
|
-
var defaultFileTypes = {
|
|
136
|
-
images: [
|
|
137
|
-
"png",
|
|
138
|
-
"jpg",
|
|
139
|
-
"jpeg",
|
|
140
|
-
"gif"
|
|
141
|
-
],
|
|
142
|
-
media: [
|
|
143
|
-
"mp3",
|
|
144
|
-
"mp4",
|
|
145
|
-
"mov",
|
|
146
|
-
"avi"
|
|
147
|
-
],
|
|
148
|
-
text: [
|
|
149
|
-
"pdf",
|
|
150
|
-
"txt",
|
|
151
|
-
"md"
|
|
152
|
-
]
|
|
153
|
-
};
|
|
154
|
-
var FileInfoSchema = Schema2.Struct({
|
|
155
|
-
name: Schema2.String,
|
|
156
|
-
type: Schema2.String,
|
|
157
|
-
url: Schema2.optional(Schema2.String),
|
|
158
|
-
cid: Schema2.optional(Schema2.String)
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
// src/common/operations.ts
|
|
162
|
-
import * as Schema4 from "effect/Schema";
|
|
163
|
-
import { Operation as Operation2 } from "@dxos/operation";
|
|
164
|
-
|
|
165
|
-
// src/common/translations.ts
|
|
166
|
-
import * as Schema3 from "effect/Schema";
|
|
167
|
-
var Label = Schema3.Union(Schema3.String, Schema3.mutable(Schema3.Tuple(Schema3.String, Schema3.mutable(Schema3.Struct({
|
|
168
|
-
ns: Schema3.String,
|
|
169
|
-
count: Schema3.optional(Schema3.Number),
|
|
170
|
-
defaultValue: Schema3.optional(Schema3.String)
|
|
171
|
-
})))));
|
|
172
|
-
var ResourceKey = Schema3.Union(Schema3.String, Schema3.Record({
|
|
173
|
-
key: Schema3.String,
|
|
174
|
-
value: Schema3.Any
|
|
175
|
-
}));
|
|
176
|
-
var ResourceLanguage = Schema3.Record({
|
|
177
|
-
key: Schema3.String,
|
|
178
|
-
value: ResourceKey
|
|
179
|
-
});
|
|
180
|
-
var Resource = Schema3.Record({
|
|
181
|
-
key: Schema3.String,
|
|
182
|
-
value: ResourceLanguage
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
// src/common/operations.ts
|
|
186
|
-
var LAYOUT_PLUGIN = "dxos.org/plugin/layout";
|
|
187
|
-
(function(LayoutOperation2) {
|
|
188
|
-
LayoutOperation2.UpdateSidebar = Operation2.make({
|
|
189
|
-
meta: {
|
|
190
|
-
key: `${LAYOUT_PLUGIN}/operation/update-sidebar`,
|
|
191
|
-
name: "Update Sidebar",
|
|
192
|
-
description: "Update the sidebar state."
|
|
193
|
-
},
|
|
194
|
-
executionMode: "sync",
|
|
195
|
-
services: [
|
|
196
|
-
capability_exports.Service
|
|
197
|
-
],
|
|
198
|
-
schema: {
|
|
199
|
-
input: Schema4.Struct({
|
|
200
|
-
subject: Schema4.optional(Schema4.String.annotations({
|
|
201
|
-
description: "URI of the component to display in the sidebar."
|
|
202
|
-
})),
|
|
203
|
-
state: Schema4.optional(Schema4.Literal("closed", "collapsed", "expanded").annotations({
|
|
204
|
-
description: "Whether the sidebar is closed, collapsed, or expanded."
|
|
205
|
-
}))
|
|
206
|
-
}),
|
|
207
|
-
output: Schema4.Void
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
LayoutOperation2.UpdateComplementary = Operation2.make({
|
|
211
|
-
meta: {
|
|
212
|
-
key: `${LAYOUT_PLUGIN}/operation/update-complementary`,
|
|
213
|
-
name: "Update Complementary Sidebar",
|
|
214
|
-
description: "Update the complementary sidebar state."
|
|
215
|
-
},
|
|
216
|
-
executionMode: "sync",
|
|
217
|
-
services: [
|
|
218
|
-
capability_exports.Service
|
|
219
|
-
],
|
|
220
|
-
schema: {
|
|
221
|
-
input: Schema4.Struct({
|
|
222
|
-
subject: Schema4.optional(Schema4.String.annotations({
|
|
223
|
-
description: "URI of the component to display in the complementary area."
|
|
224
|
-
})),
|
|
225
|
-
state: Schema4.optional(Schema4.Literal("closed", "collapsed", "expanded").annotations({
|
|
226
|
-
description: "Whether the complementary sidebar is closed, collapsed, or expanded."
|
|
227
|
-
}))
|
|
228
|
-
}),
|
|
229
|
-
output: Schema4.Void
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
LayoutOperation2.UpdateDialog = Operation2.make({
|
|
233
|
-
meta: {
|
|
234
|
-
key: `${LAYOUT_PLUGIN}/operation/update-dialog`,
|
|
235
|
-
name: "Update Dialog",
|
|
236
|
-
description: "Open, close, or update the dialog."
|
|
237
|
-
},
|
|
238
|
-
executionMode: "sync",
|
|
239
|
-
services: [
|
|
240
|
-
capability_exports.Service
|
|
241
|
-
],
|
|
242
|
-
schema: {
|
|
243
|
-
input: Schema4.Struct({
|
|
244
|
-
subject: Schema4.optional(Schema4.String.annotations({
|
|
245
|
-
description: "URI of the component to display in the dialog."
|
|
246
|
-
})),
|
|
247
|
-
state: Schema4.optional(Schema4.Boolean.annotations({
|
|
248
|
-
description: "Whether the dialog is open or closed."
|
|
249
|
-
})),
|
|
250
|
-
type: Schema4.optional(Schema4.Literal("default", "alert").annotations({
|
|
251
|
-
description: "The type of dialog."
|
|
252
|
-
})),
|
|
253
|
-
blockAlign: Schema4.optional(Schema4.Literal("start", "center", "end").annotations({
|
|
254
|
-
description: "The alignment of the dialog."
|
|
255
|
-
})),
|
|
256
|
-
overlayClasses: Schema4.optional(Schema4.String.annotations({
|
|
257
|
-
description: "Additional classes for the dialog overlay."
|
|
258
|
-
})),
|
|
259
|
-
overlayStyle: Schema4.optional(Schema4.Record({
|
|
260
|
-
key: Schema4.String,
|
|
261
|
-
value: Schema4.Any
|
|
262
|
-
}).annotations({
|
|
263
|
-
description: "Additional styles for the dialog overlay."
|
|
264
|
-
})),
|
|
265
|
-
props: Schema4.optional(Schema4.Record({
|
|
266
|
-
key: Schema4.String,
|
|
267
|
-
value: Schema4.Any
|
|
268
|
-
}).annotations({
|
|
269
|
-
description: "Additional props for the dialog."
|
|
270
|
-
}))
|
|
271
|
-
}),
|
|
272
|
-
output: Schema4.Void
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
const PopoverBaseInput = Schema4.Struct({
|
|
276
|
-
subject: Schema4.optional(Schema4.Any.annotations({
|
|
277
|
-
description: "URI of the component to display in the popover or data to pass to the popover."
|
|
278
|
-
})),
|
|
279
|
-
side: Schema4.optional(Schema4.Literal("top", "right", "bottom", "left").annotations({
|
|
280
|
-
description: "The side of the anchor."
|
|
281
|
-
})),
|
|
282
|
-
state: Schema4.optional(Schema4.Boolean.annotations({
|
|
283
|
-
description: "Whether the popover is open or closed."
|
|
284
|
-
})),
|
|
285
|
-
props: Schema4.optional(Schema4.Record({
|
|
286
|
-
key: Schema4.String,
|
|
287
|
-
value: Schema4.Any
|
|
288
|
-
}).annotations({
|
|
289
|
-
description: "Additional props for the popover."
|
|
290
|
-
}))
|
|
291
|
-
});
|
|
292
|
-
const PopoverBaseWithKind = Schema4.Union(PopoverBaseInput.pipe(Schema4.extend(Schema4.Struct({
|
|
293
|
-
kind: Schema4.Literal("base").pipe(Schema4.optional)
|
|
294
|
-
}))), PopoverBaseInput.pipe(Schema4.extend(Schema4.Struct({
|
|
295
|
-
kind: Schema4.Literal("card"),
|
|
296
|
-
title: Schema4.optional(Label.annotations({
|
|
297
|
-
description: "The title of the card."
|
|
298
|
-
}))
|
|
299
|
-
}))));
|
|
300
|
-
LayoutOperation2.UpdatePopover = Operation2.make({
|
|
301
|
-
meta: {
|
|
302
|
-
key: `${LAYOUT_PLUGIN}/operation/update-popover`,
|
|
303
|
-
name: "Update Popover",
|
|
304
|
-
description: "Open, close, or update a popover."
|
|
305
|
-
},
|
|
306
|
-
executionMode: "sync",
|
|
307
|
-
services: [
|
|
308
|
-
capability_exports.Service
|
|
309
|
-
],
|
|
310
|
-
schema: {
|
|
311
|
-
input: Schema4.Union(PopoverBaseWithKind.pipe(Schema4.extend(Schema4.Struct({
|
|
312
|
-
variant: Schema4.Literal("virtual"),
|
|
313
|
-
anchor: Schema4.Any.annotations({
|
|
314
|
-
description: "The DOM element to anchor the popover to."
|
|
315
|
-
})
|
|
316
|
-
}))), PopoverBaseWithKind.pipe(Schema4.extend(Schema4.Struct({
|
|
317
|
-
variant: Schema4.optional(Schema4.Literal("react")),
|
|
318
|
-
anchorId: Schema4.String.annotations({
|
|
319
|
-
description: "An id that can be used to determine whether to render the anchor subcomponent."
|
|
320
|
-
})
|
|
321
|
-
})))),
|
|
322
|
-
output: Schema4.Void
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
LayoutOperation2.Toast = Schema4.Struct({
|
|
326
|
-
id: Schema4.String.annotations({
|
|
327
|
-
description: "The id of the toast."
|
|
328
|
-
}),
|
|
329
|
-
title: Schema4.optional(Label.annotations({
|
|
330
|
-
description: "The title of the toast."
|
|
331
|
-
})),
|
|
332
|
-
description: Schema4.optional(Label.annotations({
|
|
333
|
-
description: "The description of the toast."
|
|
334
|
-
})),
|
|
335
|
-
icon: Schema4.optional(Schema4.String.annotations({
|
|
336
|
-
description: "The icon of the toast."
|
|
337
|
-
})),
|
|
338
|
-
duration: Schema4.optional(Schema4.Number.annotations({
|
|
339
|
-
description: "The duration of the toast."
|
|
340
|
-
})),
|
|
341
|
-
closeLabel: Schema4.optional(Label.annotations({
|
|
342
|
-
description: "The label of the close button."
|
|
343
|
-
})),
|
|
344
|
-
actionLabel: Schema4.optional(Label.annotations({
|
|
345
|
-
description: "The label of the action button."
|
|
346
|
-
})),
|
|
347
|
-
actionAlt: Schema4.optional(Label.annotations({
|
|
348
|
-
description: "The alt text of the action button."
|
|
349
|
-
})),
|
|
350
|
-
onAction: Schema4.optional(Schema4.Any.annotations({
|
|
351
|
-
description: "The action to perform when the action button is clicked."
|
|
352
|
-
}))
|
|
353
|
-
});
|
|
354
|
-
LayoutOperation2.AddToast = Operation2.make({
|
|
355
|
-
meta: {
|
|
356
|
-
key: `${LAYOUT_PLUGIN}/operation/add-toast`,
|
|
357
|
-
name: "Add Toast",
|
|
358
|
-
description: "Add a toast notification."
|
|
359
|
-
},
|
|
360
|
-
executionMode: "sync",
|
|
361
|
-
services: [
|
|
362
|
-
capability_exports.Service
|
|
363
|
-
],
|
|
364
|
-
schema: {
|
|
365
|
-
input: LayoutOperation2.Toast,
|
|
366
|
-
output: Schema4.Void
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
LayoutOperation2.SetLayoutMode = Operation2.make({
|
|
370
|
-
meta: {
|
|
371
|
-
key: `${LAYOUT_PLUGIN}/operation/set-layout-mode`,
|
|
372
|
-
name: "Set Layout Mode",
|
|
373
|
-
description: "Set the layout mode (solo, deck, fullscreen, etc.)."
|
|
374
|
-
},
|
|
375
|
-
executionMode: "sync",
|
|
376
|
-
services: [
|
|
377
|
-
capability_exports.Service
|
|
378
|
-
],
|
|
379
|
-
schema: {
|
|
380
|
-
input: Schema4.Union(Schema4.Struct({
|
|
381
|
-
subject: Schema4.optional(Schema4.String.annotations({
|
|
382
|
-
description: "Item which is the subject of the new layout mode."
|
|
383
|
-
})),
|
|
384
|
-
mode: Schema4.String.annotations({
|
|
385
|
-
description: "The new layout mode."
|
|
386
|
-
})
|
|
387
|
-
}), Schema4.Struct({
|
|
388
|
-
revert: Schema4.Boolean.annotations({
|
|
389
|
-
description: "Revert to the previous layout mode."
|
|
390
|
-
})
|
|
391
|
-
})),
|
|
392
|
-
output: Schema4.Void
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
LayoutOperation2.SwitchWorkspace = Operation2.make({
|
|
396
|
-
meta: {
|
|
397
|
-
key: `${LAYOUT_PLUGIN}/operation/switch-workspace`,
|
|
398
|
-
name: "Switch Workspace",
|
|
399
|
-
description: "Switch to a different workspace."
|
|
400
|
-
},
|
|
401
|
-
executionMode: "sync",
|
|
402
|
-
services: [
|
|
403
|
-
capability_exports.Service
|
|
404
|
-
],
|
|
405
|
-
schema: {
|
|
406
|
-
input: Schema4.Struct({
|
|
407
|
-
subject: Schema4.String.annotations({
|
|
408
|
-
description: "The id of the workspace to switch to."
|
|
409
|
-
})
|
|
410
|
-
}),
|
|
411
|
-
output: Schema4.Void
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
LayoutOperation2.RevertWorkspace = Operation2.make({
|
|
415
|
-
meta: {
|
|
416
|
-
key: `${LAYOUT_PLUGIN}/operation/revert-workspace`,
|
|
417
|
-
name: "Revert Workspace",
|
|
418
|
-
description: "Revert to the previous workspace."
|
|
419
|
-
},
|
|
420
|
-
executionMode: "sync",
|
|
421
|
-
services: [
|
|
422
|
-
capability_exports.Service
|
|
423
|
-
],
|
|
424
|
-
schema: {
|
|
425
|
-
input: Schema4.Void,
|
|
426
|
-
output: Schema4.Void
|
|
427
|
-
}
|
|
428
|
-
});
|
|
429
|
-
LayoutOperation2.Open = Operation2.make({
|
|
430
|
-
meta: {
|
|
431
|
-
key: `${LAYOUT_PLUGIN}/operation/open`,
|
|
432
|
-
name: "Open",
|
|
433
|
-
description: "Open items in the main content area."
|
|
434
|
-
},
|
|
435
|
-
executionMode: "sync",
|
|
436
|
-
services: [
|
|
437
|
-
capability_exports.Service
|
|
438
|
-
],
|
|
439
|
-
schema: {
|
|
440
|
-
input: Schema4.Struct({
|
|
441
|
-
subject: Schema4.Array(Schema4.String.annotations({
|
|
442
|
-
description: "Ids of the items to open."
|
|
443
|
-
})),
|
|
444
|
-
state: Schema4.optional(Schema4.Literal(true).annotations({
|
|
445
|
-
description: "The items are being added."
|
|
446
|
-
})),
|
|
447
|
-
variant: Schema4.optional(Schema4.String.annotations({
|
|
448
|
-
description: "The variant of the item to open."
|
|
449
|
-
})),
|
|
450
|
-
key: Schema4.optional(Schema4.String.annotations({
|
|
451
|
-
description: "If provided, will replace item with a matching key (id prefix)."
|
|
452
|
-
})),
|
|
453
|
-
workspace: Schema4.optional(Schema4.String.annotations({
|
|
454
|
-
description: "The workspace to open the items in."
|
|
455
|
-
})),
|
|
456
|
-
scrollIntoView: Schema4.optional(Schema4.Boolean.annotations({
|
|
457
|
-
description: "Scroll the items into view."
|
|
458
|
-
})),
|
|
459
|
-
pivotId: Schema4.optional(Schema4.String.annotations({
|
|
460
|
-
description: "The id of the item to place new items next to."
|
|
461
|
-
})),
|
|
462
|
-
positioning: Schema4.optional(Schema4.Union(Schema4.Literal("start").annotations({
|
|
463
|
-
description: "The items are being added before the pivot item."
|
|
464
|
-
}), Schema4.Literal("end").annotations({
|
|
465
|
-
description: "The items are being added after the pivot item."
|
|
466
|
-
})))
|
|
467
|
-
}),
|
|
468
|
-
output: Schema4.Void
|
|
469
|
-
}
|
|
470
|
-
});
|
|
471
|
-
LayoutOperation2.Close = Operation2.make({
|
|
472
|
-
meta: {
|
|
473
|
-
key: `${LAYOUT_PLUGIN}/operation/close`,
|
|
474
|
-
name: "Close",
|
|
475
|
-
description: "Close items in the main content area."
|
|
476
|
-
},
|
|
477
|
-
executionMode: "sync",
|
|
478
|
-
services: [
|
|
479
|
-
capability_exports.Service
|
|
480
|
-
],
|
|
481
|
-
schema: {
|
|
482
|
-
input: Schema4.Struct({
|
|
483
|
-
subject: Schema4.Array(Schema4.String.annotations({
|
|
484
|
-
description: "Ids of the items to close."
|
|
485
|
-
}))
|
|
486
|
-
}),
|
|
487
|
-
output: Schema4.Void
|
|
488
|
-
}
|
|
489
|
-
});
|
|
490
|
-
LayoutOperation2.Set = Operation2.make({
|
|
491
|
-
meta: {
|
|
492
|
-
key: `${LAYOUT_PLUGIN}/operation/set`,
|
|
493
|
-
name: "Set",
|
|
494
|
-
description: "Override items in the main content area."
|
|
495
|
-
},
|
|
496
|
-
executionMode: "sync",
|
|
497
|
-
services: [
|
|
498
|
-
capability_exports.Service
|
|
499
|
-
],
|
|
500
|
-
schema: {
|
|
501
|
-
input: Schema4.Struct({
|
|
502
|
-
subject: Schema4.Array(Schema4.String.annotations({
|
|
503
|
-
description: "Ids of the items to set."
|
|
504
|
-
}))
|
|
505
|
-
}),
|
|
506
|
-
output: Schema4.Void
|
|
507
|
-
}
|
|
508
|
-
});
|
|
509
|
-
LayoutOperation2.ScrollIntoView = Operation2.make({
|
|
510
|
-
meta: {
|
|
511
|
-
key: `${LAYOUT_PLUGIN}/operation/scroll-into-view`,
|
|
512
|
-
name: "Scroll Into View",
|
|
513
|
-
description: "Scroll an item into view."
|
|
514
|
-
},
|
|
515
|
-
services: [
|
|
516
|
-
capability_exports.Service
|
|
517
|
-
],
|
|
518
|
-
schema: {
|
|
519
|
-
input: Schema4.Struct({
|
|
520
|
-
subject: Schema4.optional(Schema4.String.annotations({
|
|
521
|
-
description: "The id of the item to scroll into view."
|
|
522
|
-
})),
|
|
523
|
-
cursor: Schema4.optional(Schema4.String.annotations({
|
|
524
|
-
description: "A cursor to scroll to within the item."
|
|
525
|
-
})),
|
|
526
|
-
ref: Schema4.optional(Schema4.String.annotations({
|
|
527
|
-
description: "A reference id for the scroll target."
|
|
528
|
-
}))
|
|
529
|
-
}),
|
|
530
|
-
output: Schema4.Void
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
LayoutOperation2.Expose = Operation2.make({
|
|
534
|
-
meta: {
|
|
535
|
-
key: `${LAYOUT_PLUGIN}/operation/expose`,
|
|
536
|
-
name: "Expose",
|
|
537
|
-
description: "Expose an item in the navigation area."
|
|
538
|
-
},
|
|
539
|
-
services: [
|
|
540
|
-
capability_exports.Service
|
|
541
|
-
],
|
|
542
|
-
schema: {
|
|
543
|
-
input: Schema4.Struct({
|
|
544
|
-
subject: Schema4.String.annotations({
|
|
545
|
-
description: "The id of the item to expose."
|
|
546
|
-
})
|
|
547
|
-
}),
|
|
548
|
-
output: Schema4.Void
|
|
549
|
-
}
|
|
550
|
-
});
|
|
551
|
-
})(LayoutOperation || (LayoutOperation = {}));
|
|
552
|
-
var UNDO_NAMESPACE = "dxos.org/app-framework/undo";
|
|
553
|
-
(function(UndoOperation2) {
|
|
554
|
-
UndoOperation2.ShowUndo = Operation2.make({
|
|
555
|
-
meta: {
|
|
556
|
-
key: `${UNDO_NAMESPACE}/operation/show-undo`,
|
|
557
|
-
name: "Show Undo",
|
|
558
|
-
description: "Show an undo toast notification."
|
|
559
|
-
},
|
|
560
|
-
executionMode: "sync",
|
|
561
|
-
services: [
|
|
562
|
-
capability_exports.Service
|
|
563
|
-
],
|
|
564
|
-
schema: {
|
|
565
|
-
input: Schema4.Struct({
|
|
566
|
-
message: Schema4.optional(Label.annotations({
|
|
567
|
-
description: "The message to display in the undo toast."
|
|
568
|
-
}))
|
|
569
|
-
}),
|
|
570
|
-
output: Schema4.Void
|
|
571
|
-
}
|
|
572
|
-
});
|
|
573
|
-
})(UndoOperation || (UndoOperation = {}));
|
|
574
|
-
var LayoutOperation;
|
|
575
|
-
var UndoOperation;
|
|
576
|
-
|
|
577
|
-
// src/common/plugin.ts
|
|
578
|
-
import * as Effect2 from "effect/Effect";
|
|
579
|
-
(function(Plugin2) {
|
|
580
|
-
function addOperationResolverModule(options) {
|
|
581
|
-
return plugin_exports.addModule({
|
|
582
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "operation-resolver",
|
|
583
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupOperationResolver,
|
|
584
|
-
activatesBefore: options.activatesBefore,
|
|
585
|
-
activatesAfter: options.activatesAfter,
|
|
586
|
-
activate: options.activate
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
Plugin2.addOperationResolverModule = addOperationResolverModule;
|
|
590
|
-
function addSurfaceModule(options) {
|
|
591
|
-
return plugin_exports.addModule({
|
|
592
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "surfaces",
|
|
593
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupReactSurface,
|
|
594
|
-
activatesBefore: options.activatesBefore,
|
|
595
|
-
activatesAfter: options.activatesAfter,
|
|
596
|
-
activate: options.activate
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
Plugin2.addSurfaceModule = addSurfaceModule;
|
|
600
|
-
function addReactRootModule(options) {
|
|
601
|
-
return plugin_exports.addModule({
|
|
602
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "react-root",
|
|
603
|
-
activatesOn: options.activatesOn ?? ActivationEvent.Startup,
|
|
604
|
-
activatesBefore: options.activatesBefore,
|
|
605
|
-
activatesAfter: options.activatesAfter,
|
|
606
|
-
activate: options.activate
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
Plugin2.addReactRootModule = addReactRootModule;
|
|
610
|
-
function addReactContextModule(options) {
|
|
611
|
-
return plugin_exports.addModule({
|
|
612
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "react-context",
|
|
613
|
-
activatesOn: options.activatesOn ?? ActivationEvent.Startup,
|
|
614
|
-
activatesBefore: options.activatesBefore,
|
|
615
|
-
activatesAfter: options.activatesAfter,
|
|
616
|
-
activate: options.activate
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
Plugin2.addReactContextModule = addReactContextModule;
|
|
620
|
-
function addAppGraphModule(options) {
|
|
621
|
-
return plugin_exports.addModule({
|
|
622
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "app-graph-builder",
|
|
623
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupAppGraph,
|
|
624
|
-
activatesBefore: options.activatesBefore,
|
|
625
|
-
activatesAfter: options.activatesAfter,
|
|
626
|
-
activate: options.activate
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
Plugin2.addAppGraphModule = addAppGraphModule;
|
|
630
|
-
function addTranslationsModule(options) {
|
|
631
|
-
return plugin_exports.addModule({
|
|
632
|
-
id: options?.id ?? "translations",
|
|
633
|
-
activatesOn: options?.activatesOn ?? ActivationEvent.SetupTranslations,
|
|
634
|
-
activatesBefore: options?.activatesBefore,
|
|
635
|
-
activatesAfter: options?.activatesAfter,
|
|
636
|
-
activate: Effect2.fnUntraced(function* () {
|
|
637
|
-
return capability_exports.contributes(Capability.Translations, Array.isArray(options.translations) ? options.translations : [
|
|
638
|
-
options.translations
|
|
639
|
-
]);
|
|
640
|
-
})
|
|
641
|
-
});
|
|
642
|
-
}
|
|
643
|
-
Plugin2.addTranslationsModule = addTranslationsModule;
|
|
644
|
-
function addMetadataModule(options) {
|
|
645
|
-
return plugin_exports.addModule({
|
|
646
|
-
id: options.id ?? "metadata",
|
|
647
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupMetadata,
|
|
648
|
-
activatesBefore: options.activatesBefore,
|
|
649
|
-
activatesAfter: options.activatesAfter,
|
|
650
|
-
activate: Effect2.fnUntraced(function* () {
|
|
651
|
-
return (Array.isArray(options.metadata) ? options.metadata : [
|
|
652
|
-
options.metadata
|
|
653
|
-
]).map((m) => capability_exports.contributes(Capability.Metadata, m));
|
|
654
|
-
})
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
Plugin2.addMetadataModule = addMetadataModule;
|
|
658
|
-
function addSettingsModule(options) {
|
|
659
|
-
return plugin_exports.addModule({
|
|
660
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "settings",
|
|
661
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupSettings,
|
|
662
|
-
activatesBefore: options.activatesBefore,
|
|
663
|
-
activatesAfter: options.activatesAfter,
|
|
664
|
-
activate: options.activate
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
Plugin2.addSettingsModule = addSettingsModule;
|
|
668
|
-
function addBlueprintDefinitionModule(options) {
|
|
669
|
-
return plugin_exports.addModule({
|
|
670
|
-
id: capability_exports.getModuleTag(options.activate) ?? options.id ?? "blueprint-definition",
|
|
671
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupArtifactDefinition,
|
|
672
|
-
activatesBefore: options.activatesBefore,
|
|
673
|
-
activatesAfter: options.activatesAfter,
|
|
674
|
-
activate: options.activate
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
Plugin2.addBlueprintDefinitionModule = addBlueprintDefinitionModule;
|
|
678
|
-
function addSchemaModule(options) {
|
|
679
|
-
return plugin_exports.addModule({
|
|
680
|
-
id: options.id ?? "schema",
|
|
681
|
-
activatesOn: options.activatesOn ?? ActivationEvent.SetupSchema,
|
|
682
|
-
activatesBefore: options.activatesBefore,
|
|
683
|
-
activatesAfter: options.activatesAfter,
|
|
684
|
-
activate: Effect2.fnUntraced(function* () {
|
|
685
|
-
return capability_exports.contributes(Capability.Schema, options.schema);
|
|
686
|
-
})
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
Plugin2.addSchemaModule = addSchemaModule;
|
|
690
|
-
function addCommandModule(options) {
|
|
691
|
-
return plugin_exports.addModule({
|
|
692
|
-
id: options.id ?? "cli-commands",
|
|
693
|
-
activatesOn: options.activatesOn ?? ActivationEvent.Startup,
|
|
694
|
-
activatesBefore: options.activatesBefore,
|
|
695
|
-
activatesAfter: options.activatesAfter,
|
|
696
|
-
activate: Effect2.fnUntraced(function* () {
|
|
697
|
-
return options.commands.map((cmd) => capability_exports.contributes(Capability.Command, cmd));
|
|
698
|
-
})
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
Plugin2.addCommandModule = addCommandModule;
|
|
702
|
-
})(Plugin || (Plugin = {}));
|
|
703
|
-
var Plugin;
|
|
704
|
-
|
|
705
|
-
// src/common/surface.ts
|
|
706
|
-
var createSurface = (definition) => ({
|
|
707
|
-
...definition,
|
|
708
|
-
kind: "react"
|
|
709
|
-
});
|
|
710
|
-
var createWebSurface = (definition) => ({
|
|
711
|
-
...definition,
|
|
712
|
-
kind: "web-component"
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
export {
|
|
716
|
-
Capability,
|
|
717
|
-
ActivationEvent,
|
|
718
|
-
CollaborationOperation,
|
|
719
|
-
defaultFileTypes,
|
|
720
|
-
FileInfoSchema,
|
|
721
|
-
Label,
|
|
722
|
-
ResourceKey,
|
|
723
|
-
ResourceLanguage,
|
|
724
|
-
Resource,
|
|
725
|
-
LayoutOperation,
|
|
726
|
-
UndoOperation,
|
|
727
|
-
Plugin,
|
|
728
|
-
createSurface,
|
|
729
|
-
createWebSurface,
|
|
730
|
-
common_exports
|
|
731
|
-
};
|
|
732
|
-
//# sourceMappingURL=chunk-BLQJSGL3.mjs.map
|