@dxos/app-framework 0.8.4-main.e098934 → 0.8.4-main.ead640a
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 +11 -0
- package/.storybook/preview.mts +8 -0
- package/dist/lib/browser/{app-graph-builder-AFFC6VB2.mjs → app-graph-builder-LG4RG2LM.mjs} +30 -29
- package/dist/lib/browser/app-graph-builder-LG4RG2LM.mjs.map +7 -0
- package/dist/lib/browser/{chunk-OZY7HV2A.mjs → chunk-2GRQ4QXA.mjs} +96 -93
- package/dist/lib/browser/chunk-2GRQ4QXA.mjs.map +7 -0
- package/dist/lib/browser/{chunk-T6M7JB7M.mjs → chunk-FRUTKCPG.mjs} +16 -20
- package/dist/lib/browser/chunk-FRUTKCPG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ORWHM7CO.mjs → chunk-SCPE4ZO2.mjs} +11 -8
- package/dist/lib/browser/chunk-SCPE4ZO2.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +14 -28
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-dispatcher-QG7UPGQX.mjs → intent-dispatcher-6SHA5B3N.mjs} +2 -2
- package/dist/lib/browser/{intent-resolver-4S4PSTM5.mjs → intent-resolver-UZZ4OANZ.mjs} +7 -7
- package/dist/lib/browser/intent-resolver-UZZ4OANZ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{store-6E33KLGK.mjs → store-ACBEYK4B.mjs} +4 -4
- package/dist/lib/browser/{store-6E33KLGK.mjs.map → store-ACBEYK4B.mjs.map} +1 -1
- package/dist/lib/browser/testing/index.mjs +11 -14
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/worker.mjs +1 -9
- package/dist/lib/node-esm/{app-graph-builder-S4OAULX5.mjs → app-graph-builder-FMHVHPWA.mjs} +30 -29
- package/dist/lib/node-esm/app-graph-builder-FMHVHPWA.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HJFU7QOR.mjs → chunk-CXT6CYPE.mjs} +16 -20
- package/dist/lib/node-esm/chunk-CXT6CYPE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-F63ZRXMK.mjs → chunk-KSPOOYT3.mjs} +96 -93
- package/dist/lib/node-esm/chunk-KSPOOYT3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UMZQERLE.mjs → chunk-ZX63QUGE.mjs} +11 -8
- package/dist/lib/node-esm/chunk-ZX63QUGE.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +14 -28
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-dispatcher-NXBGPJOX.mjs → intent-dispatcher-SIYQ5ZIU.mjs} +2 -2
- package/dist/lib/node-esm/{intent-resolver-2ZKXI5ET.mjs → intent-resolver-7FYJMXAG.mjs} +7 -7
- package/dist/lib/node-esm/intent-resolver-7FYJMXAG.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{store-QQUTQHHT.mjs → store-6OBLTVXC.mjs} +4 -4
- package/dist/lib/node-esm/{store-QQUTQHHT.mjs.map → store-6OBLTVXC.mjs.map} +1 -1
- package/dist/lib/node-esm/testing/index.mjs +11 -14
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/worker.mjs +1 -9
- package/dist/types/src/common/capabilities.d.ts +14 -4
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/common/collaboration.d.ts +1 -1
- package/dist/types/src/common/collaboration.d.ts.map +1 -1
- package/dist/types/src/common/file.d.ts +1 -1
- package/dist/types/src/common/file.d.ts.map +1 -1
- package/dist/types/src/common/layout.d.ts +1 -3
- package/dist/types/src/common/layout.d.ts.map +1 -1
- package/dist/types/src/common/surface.d.ts +7 -13
- package/dist/types/src/common/surface.d.ts.map +1 -1
- package/dist/types/src/common/translations.d.ts +1 -1
- package/dist/types/src/common/translations.d.ts.map +1 -1
- package/dist/types/src/components/App.stories.d.ts +0 -1
- package/dist/types/src/components/App.stories.d.ts.map +1 -1
- package/dist/types/src/components/useApp.d.ts.map +1 -1
- package/dist/types/src/core/capabilities.d.ts +1 -1
- package/dist/types/src/core/capabilities.d.ts.map +1 -1
- package/dist/types/src/core/manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +4 -1
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts +1 -1
- package/dist/types/src/playground/debug/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/generator/generator.d.ts +1 -1
- package/dist/types/src/playground/generator/generator.d.ts.map +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts +1 -1
- package/dist/types/src/playground/generator/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts +1 -1
- package/dist/types/src/playground/layout/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts +1 -1
- package/dist/types/src/playground/logger/plugin.d.ts.map +1 -1
- package/dist/types/src/playground/logger/schema.d.ts +1 -1
- package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
- package/dist/types/src/playground/playground.stories.d.ts +0 -1
- package/dist/types/src/playground/playground.stories.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts +1 -1
- package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/actions.d.ts +5 -7
- package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/errors.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +4 -4
- package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/intent.d.ts +1 -1
- package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
- package/dist/types/src/plugin-intent/meta.d.ts +3 -0
- package/dist/types/src/plugin-intent/meta.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts +1 -1
- package/dist/types/src/plugin-settings/SettingsPlugin.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/actions.d.ts +5 -7
- package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/plugin-settings/meta.d.ts +3 -0
- package/dist/types/src/plugin-settings/meta.d.ts.map +1 -0
- package/dist/types/src/plugin-settings/translations.d.ts +2 -1
- package/dist/types/src/plugin-settings/translations.d.ts.map +1 -1
- package/dist/types/src/react/ErrorBoundary.d.ts +2 -2
- package/dist/types/src/react/ErrorBoundary.d.ts.map +1 -1
- package/dist/types/src/react/Surface.d.ts +2 -2
- package/dist/types/src/react/Surface.d.ts.map +1 -1
- package/dist/types/src/react/Surface.stories.d.ts +0 -1
- package/dist/types/src/react/Surface.stories.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts +2 -4
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/moon.yml +4 -0
- package/package.json +31 -30
- package/src/common/capabilities.ts +22 -4
- package/src/common/collaboration.ts +1 -1
- package/src/common/file.ts +1 -1
- package/src/common/layout.ts +3 -4
- package/src/common/surface.ts +15 -18
- package/src/common/translations.ts +1 -1
- package/src/components/App.stories.tsx +1 -3
- package/src/components/useApp.tsx +9 -11
- package/src/core/capabilities.test.ts +1 -1
- package/src/core/capabilities.ts +1 -1
- package/src/core/manager.test.ts +19 -19
- package/src/core/manager.ts +12 -5
- package/src/core/plugin.ts +8 -2
- package/src/playground/debug/plugin.ts +7 -8
- package/src/playground/generator/generator.ts +2 -2
- package/src/playground/generator/plugin.ts +12 -13
- package/src/playground/layout/plugin.ts +9 -8
- package/src/playground/logger/plugin.ts +27 -23
- package/src/playground/logger/schema.ts +1 -1
- package/src/playground/playground.stories.tsx +5 -6
- package/src/plugin-intent/IntentPlugin.ts +12 -13
- package/src/plugin-intent/actions.ts +4 -6
- package/src/plugin-intent/errors.ts +2 -1
- package/src/plugin-intent/intent-dispatcher.test.ts +10 -3
- package/src/plugin-intent/intent-dispatcher.ts +8 -6
- package/src/plugin-intent/intent.ts +1 -1
- package/src/plugin-intent/meta.ts +10 -0
- package/src/plugin-settings/SettingsPlugin.ts +25 -27
- package/src/plugin-settings/actions.ts +9 -13
- package/src/plugin-settings/app-graph-builder.ts +17 -15
- package/src/plugin-settings/intent-resolver.ts +2 -2
- package/src/plugin-settings/meta.ts +10 -0
- package/src/plugin-settings/translations.ts +3 -3
- package/src/react/ErrorBoundary.tsx +10 -8
- package/src/react/Surface.stories.tsx +2 -5
- package/src/react/Surface.tsx +11 -3
- package/src/testing/withPluginManager.stories.tsx +1 -1
- package/src/testing/withPluginManager.tsx +13 -17
- package/tsconfig.json +1 -1
- package/vitest.config.ts +8 -6
- package/dist/lib/browser/app-graph-builder-AFFC6VB2.mjs.map +0 -7
- package/dist/lib/browser/chunk-ORWHM7CO.mjs.map +0 -7
- package/dist/lib/browser/chunk-OZY7HV2A.mjs.map +0 -7
- package/dist/lib/browser/chunk-T6M7JB7M.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-4S4PSTM5.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-S4OAULX5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F63ZRXMK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HJFU7QOR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UMZQERLE.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-2ZKXI5ET.mjs.map +0 -7
- /package/dist/lib/browser/{intent-dispatcher-QG7UPGQX.mjs.map → intent-dispatcher-6SHA5B3N.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-dispatcher-NXBGPJOX.mjs.map → intent-dispatcher-SIYQ5ZIU.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/core/capabilities.ts":{"bytes":24751,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/core/events.ts":{"bytes":5358,"imports":[],"format":"esm"},"src/core/manager.ts":{"bytes":67329,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"}],"format":"esm"},"src/core/plugin.ts":{"bytes":7924,"imports":[],"format":"esm"},"src/core/index.ts":{"bytes":725,"imports":[{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"},{"path":"src/core/manager.ts","kind":"import-statement","original":"./manager"},{"path":"src/core/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"},"src/common/capabilities.ts":{"bytes":12292,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/common/collaboration.ts":{"bytes":2116,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/events.ts":{"bytes":5619,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/common/file.ts":{"bytes":2495,"imports":[{"path":"effect","kind":"import-statement","external":true}],"format":"esm"},"src/common/graph.ts":{"bytes":1389,"imports":[],"format":"esm"},"src/plugin-intent/intent.ts":{"bytes":10028,"imports":[{"path":"effect","kind":"import-statement","external":true}],"format":"esm"},"src/plugin-intent/actions.ts":{"bytes":3329,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"}],"format":"esm"},"src/plugin-intent/errors.ts":{"bytes":4128,"imports":[],"format":"esm"},"src/plugin-intent/intent-dispatcher.ts":{"bytes":31282,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"}],"format":"esm"},"src/plugin-intent/IntentPlugin.ts":{"bytes":2995,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"dynamic-import","original":"./intent-dispatcher"}],"format":"esm"},"src/plugin-intent/index.ts":{"bytes":843,"imports":[{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"import-statement","original":"./intent-dispatcher"},{"path":"src/plugin-intent/IntentPlugin.ts","kind":"import-statement","original":"./IntentPlugin"}],"format":"esm"},"src/common/layout.ts":{"bytes":42696,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"}],"format":"esm"},"src/common/surface.ts":{"bytes":4114,"imports":[],"format":"esm"},"src/common/translations.ts":{"bytes":2211,"imports":[{"path":"effect","kind":"import-statement","external":true}],"format":"esm"},"src/common/index.ts":{"bytes":1089,"imports":[{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/common/collaboration.ts","kind":"import-statement","original":"./collaboration"},{"path":"src/common/events.ts","kind":"import-statement","original":"./events"},{"path":"src/common/file.ts","kind":"import-statement","original":"./file"},{"path":"src/common/graph.ts","kind":"import-statement","original":"./graph"},{"path":"src/common/layout.ts","kind":"import-statement","original":"./layout"},{"path":"src/common/surface.ts","kind":"import-statement","original":"./surface"},{"path":"src/common/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/react/PluginManagerProvider.ts":{"bytes":2017,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/react/useCapabilities.ts":{"bytes":3264,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"}],"format":"esm"},"src/react/common.ts":{"bytes":1564,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/react/ErrorBoundary.tsx":{"bytes":6147,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/Surface.tsx":{"bytes":10698,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/react/useIntentResolver.ts":{"bytes":2465,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"}],"format":"esm"},"src/react/index.ts":{"bytes":982,"imports":[{"path":"src/react/common.ts","kind":"import-statement","original":"./common"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"},{"path":"src/react/Surface.tsx","kind":"import-statement","original":"./Surface"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"},{"path":"src/react/useIntentResolver.ts","kind":"import-statement","original":"./useIntentResolver"}],"format":"esm"},"src/helpers.ts":{"bytes":4985,"imports":[],"format":"esm"},"src/components/useLoading.tsx":{"bytes":5802,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/App.tsx":{"bytes":6016,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"},{"path":"src/components/useLoading.tsx","kind":"import-statement","original":"./useLoading"}],"format":"esm"},"src/components/DefaultFallback.tsx":{"bytes":3026,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/useApp.tsx":{"bytes":18790,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"},{"path":"src/components/App.tsx","kind":"import-statement","original":"./App"},{"path":"src/components/DefaultFallback.tsx","kind":"import-statement","original":"./DefaultFallback"}],"format":"esm"},"src/components/index.ts":{"bytes":462,"imports":[{"path":"src/components/useApp.tsx","kind":"import-statement","original":"./useApp"}],"format":"esm"},"src/plugin-settings/actions.ts":{"bytes":3514,"imports":[{"path":"effect","kind":"import-statement","external":true}],"format":"esm"},"src/plugin-settings/translations.ts":{"bytes":1470,"imports":[{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"}],"format":"esm"},"src/plugin-settings/store.ts":{"bytes":4056,"imports":[{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/plugin-settings/intent-resolver.ts":{"bytes":3773,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"}],"format":"esm"},"src/plugin-settings/app-graph-builder.ts":{"bytes":20631,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"}],"format":"esm"},"src/plugin-settings/SettingsPlugin.ts":{"bytes":4859,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/plugin-settings/store.ts","kind":"dynamic-import","original":"./store"},{"path":"src/plugin-settings/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/plugin-settings/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"}],"format":"esm"},"src/plugin-settings/index.ts":{"bytes":574,"imports":[{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/SettingsPlugin.ts","kind":"import-statement","original":"./SettingsPlugin"}],"format":"esm"},"src/index.ts":{"bytes":910,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"./plugin-intent"},{"path":"src/plugin-settings/index.ts","kind":"import-statement","original":"./plugin-settings"},{"path":"src/react/index.ts","kind":"import-statement","original":"./react"}],"format":"esm"},"src/testing/withPluginManager.tsx":{"bytes":11039,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/testing/index.ts":{"bytes":486,"imports":[{"path":"src/testing/withPluginManager.tsx","kind":"import-statement","original":"./withPluginManager"}],"format":"esm"},"src/worker.ts":{"bytes":1234,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"./plugin-intent"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2952},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HJFU7QOR.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-UMZQERLE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/store-QQUTQHHT.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/intent-resolver-2ZKXI5ET.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/app-graph-builder-S4OAULX5.mjs","kind":"dynamic-import"}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","ErrorBoundary","Events","FileInfoSchema","INTENT_ACTION","INTENT_PLUGIN","IntentAction","IntentPlugin","LAYOUT_ACTION","LAYOUT_PLUGIN","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginManagerProvider","PluginModule","Resource","ResourceKey","ResourceLanguage","SETTINGS_ACTION","SETTINGS_ID","SETTINGS_KEY","SETTINGS_PLUGIN","SettingsAction","SettingsPlugin","Surface","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","isAllOf","isOneOf","isSurfaceAvailable","lazy","oneOf","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/plugin-settings/index.ts":{"bytesInOutput":0},"src/plugin-settings/translations.ts":{"bytesInOutput":220},"src/plugin-settings/SettingsPlugin.ts":{"bytesInOutput":924}},"bytes":3349},"dist/lib/node-esm/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5713},"dist/lib/node-esm/testing/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HJFU7QOR.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true}],"exports":["getValue","setupPluginManager","withPluginManager"],"entryPoint":"src/testing/index.ts","inputs":{"src/testing/withPluginManager.tsx":{"bytesInOutput":2160},"src/testing/index.ts":{"bytesInOutput":0}},"bytes":2571},"dist/lib/node-esm/chunk-HJFU7QOR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":31263},"dist/lib/node-esm/chunk-HJFU7QOR.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["ErrorBoundary","PluginManagerProvider","Surface","isSurfaceAvailable","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"inputs":{"src/react/PluginManagerProvider.ts":{"bytesInOutput":312},"src/react/useCapabilities.ts":{"bytesInOutput":714},"src/react/common.ts":{"bytesInOutput":198},"src/react/ErrorBoundary.tsx":{"bytesInOutput":1642},"src/react/Surface.tsx":{"bytesInOutput":2022},"src/react/useIntentResolver.ts":{"bytesInOutput":414},"src/react/index.ts":{"bytesInOutput":0},"src/components/useApp.tsx":{"bytesInOutput":3966},"src/components/App.tsx":{"bytesInOutput":1315},"src/helpers.ts":{"bytesInOutput":1049},"src/components/useLoading.tsx":{"bytesInOutput":1194},"src/components/DefaultFallback.tsx":{"bytesInOutput":814},"src/components/index.ts":{"bytesInOutput":0}},"bytes":14493},"dist/lib/node-esm/worker.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/worker.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","INTENT_ACTION","INTENT_PLUGIN","IntentAction","IntentPlugin","LAYOUT_ACTION","LAYOUT_PLUGIN","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","isAllOf","isOneOf","lazy","oneOf"],"entryPoint":"src/worker.ts","inputs":{"src/worker.ts":{"bytesInOutput":0}},"bytes":1398},"dist/lib/node-esm/intent-dispatcher-NXBGPJOX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/intent-dispatcher-NXBGPJOX.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"}],"exports":["createDispatcher","createResolver","default"],"entryPoint":"src/plugin-intent/intent-dispatcher.ts","inputs":{},"bytes":343},"dist/lib/node-esm/store-QQUTQHHT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2188},"dist/lib/node-esm/store-QQUTQHHT.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"},{"path":"@dxos/local-storage","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/store.ts","inputs":{"src/plugin-settings/store.ts":{"bytesInOutput":811}},"bytes":1089},"dist/lib/node-esm/intent-resolver-2ZKXI5ET.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1822},"dist/lib/node-esm/intent-resolver-2ZKXI5ET.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-UMZQERLE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/intent-resolver.ts","inputs":{"src/plugin-settings/intent-resolver.ts":{"bytesInOutput":577}},"bytes":1032},"dist/lib/node-esm/app-graph-builder-S4OAULX5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9870},"dist/lib/node-esm/app-graph-builder-S4OAULX5.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-UMZQERLE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-F63ZRXMK.mjs","kind":"import-statement"},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/app-graph-builder.ts","inputs":{"src/plugin-settings/app-graph-builder.ts":{"bytesInOutput":4285}},"bytes":4722},"dist/lib/node-esm/chunk-UMZQERLE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1720},"dist/lib/node-esm/chunk-UMZQERLE.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true}],"exports":["SETTINGS_ACTION","SETTINGS_ID","SETTINGS_KEY","SETTINGS_PLUGIN","SettingsAction"],"inputs":{"src/plugin-settings/actions.ts":{"bytesInOutput":731}},"bytes":1001},"dist/lib/node-esm/chunk-F63ZRXMK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":115829},"dist/lib/node-esm/chunk-F63ZRXMK.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/intent-dispatcher-NXBGPJOX.mjs","kind":"dynamic-import"},{"path":"effect","kind":"import-statement","external":true}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","INTENT_ACTION","INTENT_PLUGIN","IntentAction","IntentPlugin","LAYOUT_ACTION","LAYOUT_PLUGIN","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","intent_dispatcher_default","isAllOf","isOneOf","lazy","oneOf"],"inputs":{"src/plugin-intent/intent-dispatcher.ts":{"bytesInOutput":5447},"src/core/capabilities.ts":{"bytesInOutput":5719},"src/core/index.ts":{"bytesInOutput":0},"src/core/events.ts":{"bytesInOutput":512},"src/core/manager.ts":{"bytesInOutput":17845},"src/core/plugin.ts":{"bytesInOutput":1113},"src/common/capabilities.ts":{"bytesInOutput":2253},"src/common/index.ts":{"bytesInOutput":0},"src/common/collaboration.ts":{"bytesInOutput":509},"src/common/events.ts":{"bytesInOutput":1232},"src/common/file.ts":{"bytesInOutput":408},"src/common/layout.ts":{"bytesInOutput":12360},"src/plugin-intent/actions.ts":{"bytesInOutput":699},"src/plugin-intent/intent.ts":{"bytesInOutput":912},"src/plugin-intent/index.ts":{"bytesInOutput":0},"src/plugin-intent/errors.ts":{"bytesInOutput":988},"src/plugin-intent/IntentPlugin.ts":{"bytesInOutput":620},"src/common/surface.ts":{"bytesInOutput":48},"src/common/translations.ts":{"bytesInOutput":331}},"bytes":52354}}}
|
|
1
|
+
{"inputs":{"src/core/capabilities.ts":{"bytes":24763,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/core/events.ts":{"bytes":5358,"imports":[],"format":"esm"},"src/core/manager.ts":{"bytes":68183,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Array","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/HashSet","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"}],"format":"esm"},"src/core/plugin.ts":{"bytes":8494,"imports":[],"format":"esm"},"src/core/index.ts":{"bytes":725,"imports":[{"path":"src/core/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/core/events.ts","kind":"import-statement","original":"./events"},{"path":"src/core/manager.ts","kind":"import-statement","original":"./manager"},{"path":"src/core/plugin.ts","kind":"import-statement","original":"./plugin"}],"format":"esm"},"src/common/capabilities.ts":{"bytes":13568,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/common/collaboration.ts":{"bytes":2132,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/events.ts":{"bytes":5619,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/common/file.ts":{"bytes":2507,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/graph.ts":{"bytes":1389,"imports":[],"format":"esm"},"src/plugin-intent/intent.ts":{"bytes":10044,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/plugin-intent/meta.ts":{"bytes":752,"imports":[],"format":"esm"},"src/plugin-intent/actions.ts":{"bytes":3091,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-intent/errors.ts":{"bytes":4274,"imports":[],"format":"esm"},"src/plugin-intent/intent-dispatcher.ts":{"bytes":31212,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"}],"format":"esm"},"src/plugin-intent/IntentPlugin.ts":{"bytes":2780,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"dynamic-import","original":"./intent-dispatcher"}],"format":"esm"},"src/plugin-intent/index.ts":{"bytes":843,"imports":[{"path":"src/plugin-intent/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-intent/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/plugin-intent/intent.ts","kind":"import-statement","original":"./intent"},{"path":"src/plugin-intent/intent-dispatcher.ts","kind":"import-statement","original":"./intent-dispatcher"},{"path":"src/plugin-intent/IntentPlugin.ts","kind":"import-statement","original":"./IntentPlugin"}],"format":"esm"},"src/common/layout.ts":{"bytes":42464,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"}],"format":"esm"},"src/common/surface.ts":{"bytes":4154,"imports":[],"format":"esm"},"src/common/translations.ts":{"bytes":2223,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"format":"esm"},"src/common/index.ts":{"bytes":1089,"imports":[{"path":"src/common/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/common/collaboration.ts","kind":"import-statement","original":"./collaboration"},{"path":"src/common/events.ts","kind":"import-statement","original":"./events"},{"path":"src/common/file.ts","kind":"import-statement","original":"./file"},{"path":"src/common/graph.ts","kind":"import-statement","original":"./graph"},{"path":"src/common/layout.ts","kind":"import-statement","original":"./layout"},{"path":"src/common/surface.ts","kind":"import-statement","original":"./surface"},{"path":"src/common/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/react/PluginManagerProvider.ts":{"bytes":2017,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/react/useCapabilities.ts":{"bytes":3264,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"}],"format":"esm"},"src/react/common.ts":{"bytes":1564,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/react/ErrorBoundary.tsx":{"bytes":5982,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/react/Surface.tsx":{"bytes":10842,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"}],"format":"esm"},"src/react/useIntentResolver.ts":{"bytes":2465,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"}],"format":"esm"},"src/react/index.ts":{"bytes":982,"imports":[{"path":"src/react/common.ts","kind":"import-statement","original":"./common"},{"path":"src/react/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/react/PluginManagerProvider.ts","kind":"import-statement","original":"./PluginManagerProvider"},{"path":"src/react/Surface.tsx","kind":"import-statement","original":"./Surface"},{"path":"src/react/useCapabilities.ts","kind":"import-statement","original":"./useCapabilities"},{"path":"src/react/useIntentResolver.ts","kind":"import-statement","original":"./useIntentResolver"}],"format":"esm"},"src/helpers.ts":{"bytes":4985,"imports":[],"format":"esm"},"src/components/useLoading.tsx":{"bytes":5802,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/App.tsx":{"bytes":6016,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"},{"path":"src/components/useLoading.tsx","kind":"import-statement","original":"./useLoading"}],"format":"esm"},"src/components/DefaultFallback.tsx":{"bytes":3026,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/useApp.tsx":{"bytes":18637,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/react/index.ts","kind":"import-statement","original":"../react"},{"path":"src/components/App.tsx","kind":"import-statement","original":"./App"},{"path":"src/components/DefaultFallback.tsx","kind":"import-statement","original":"./DefaultFallback"}],"format":"esm"},"src/components/index.ts":{"bytes":462,"imports":[{"path":"src/components/useApp.tsx","kind":"import-statement","original":"./useApp"}],"format":"esm"},"src/plugin-settings/meta.ts":{"bytes":766,"imports":[],"format":"esm"},"src/plugin-settings/actions.ts":{"bytes":2823,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/translations.ts":{"bytes":1420,"imports":[{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/store.ts":{"bytes":4056,"imports":[{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/plugin-settings/intent-resolver.ts":{"bytes":3852,"imports":[{"path":"effect/Function","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"}],"format":"esm"},"src/plugin-settings/app-graph-builder.ts":{"bytes":20884,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"../plugin-intent"},{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/plugin-settings/SettingsPlugin.ts":{"bytes":4414,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"},{"path":"src/plugin-settings/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/plugin-settings/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/plugin-settings/store.ts","kind":"dynamic-import","original":"./store"},{"path":"src/plugin-settings/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/plugin-settings/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"}],"format":"esm"},"src/plugin-settings/index.ts":{"bytes":574,"imports":[{"path":"src/plugin-settings/actions.ts","kind":"import-statement","original":"./actions"},{"path":"src/plugin-settings/SettingsPlugin.ts","kind":"import-statement","original":"./SettingsPlugin"}],"format":"esm"},"src/index.ts":{"bytes":910,"imports":[{"path":"src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"./plugin-intent"},{"path":"src/plugin-settings/index.ts","kind":"import-statement","original":"./plugin-settings"},{"path":"src/react/index.ts","kind":"import-statement","original":"./react"}],"format":"esm"},"src/testing/withPluginManager.tsx":{"bytes":10455,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common/index.ts","kind":"import-statement","original":"../common"},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/core/index.ts","kind":"import-statement","original":"../core"}],"format":"esm"},"src/testing/index.ts":{"bytes":486,"imports":[{"path":"src/testing/withPluginManager.tsx","kind":"import-statement","original":"./withPluginManager"}],"format":"esm"},"src/worker.ts":{"bytes":1234,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/common/index.ts","kind":"import-statement","original":"./common"},{"path":"src/plugin-intent/index.ts","kind":"import-statement","original":"./plugin-intent"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2704},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-CXT6CYPE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-ZX63QUGE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/store-6OBLTVXC.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/intent-resolver-7FYJMXAG.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/app-graph-builder-FMHVHPWA.mjs","kind":"dynamic-import"}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","ErrorBoundary","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginManagerProvider","PluginModule","Resource","ResourceKey","ResourceLanguage","SETTINGS_ID","SETTINGS_KEY","SettingsAction","SettingsPlugin","Surface","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","isAllOf","isOneOf","isSurfaceAvailable","lazy","oneOf","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/plugin-settings/index.ts":{"bytesInOutput":0},"src/plugin-settings/translations.ts":{"bytesInOutput":212},"src/plugin-settings/SettingsPlugin.ts":{"bytesInOutput":851}},"bytes":3064},"dist/lib/node-esm/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5353},"dist/lib/node-esm/testing/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-CXT6CYPE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["setupPluginManager","withPluginManager"],"entryPoint":"src/testing/index.ts","inputs":{"src/testing/withPluginManager.tsx":{"bytesInOutput":2073},"src/testing/index.ts":{"bytesInOutput":0}},"bytes":2472},"dist/lib/node-esm/chunk-CXT6CYPE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":31196},"dist/lib/node-esm/chunk-CXT6CYPE.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["ErrorBoundary","PluginManagerProvider","Surface","isSurfaceAvailable","useApp","useAppGraph","useCapabilities","useCapability","useIntentDispatcher","useIntentResolver","useLayout","usePluginManager","useSurfaces"],"inputs":{"src/react/PluginManagerProvider.ts":{"bytesInOutput":312},"src/react/useCapabilities.ts":{"bytesInOutput":714},"src/react/common.ts":{"bytesInOutput":198},"src/react/ErrorBoundary.tsx":{"bytesInOutput":1593},"src/react/Surface.tsx":{"bytesInOutput":2022},"src/react/useIntentResolver.ts":{"bytesInOutput":414},"src/react/index.ts":{"bytesInOutput":0},"src/components/useApp.tsx":{"bytesInOutput":3920},"src/components/App.tsx":{"bytesInOutput":1315},"src/helpers.ts":{"bytesInOutput":1049},"src/components/useLoading.tsx":{"bytesInOutput":1196},"src/components/DefaultFallback.tsx":{"bytesInOutput":814},"src/components/index.ts":{"bytesInOutput":0}},"bytes":14400},"dist/lib/node-esm/worker.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/worker.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","isAllOf","isOneOf","lazy","oneOf"],"entryPoint":"src/worker.ts","inputs":{"src/worker.ts":{"bytesInOutput":0}},"bytes":1262},"dist/lib/node-esm/intent-dispatcher-SIYQ5ZIU.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/intent-dispatcher-SIYQ5ZIU.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"}],"exports":["createDispatcher","createResolver","default"],"entryPoint":"src/plugin-intent/intent-dispatcher.ts","inputs":{},"bytes":343},"dist/lib/node-esm/store-6OBLTVXC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2188},"dist/lib/node-esm/store-6OBLTVXC.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"},{"path":"@dxos/local-storage","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/store.ts","inputs":{"src/plugin-settings/store.ts":{"bytesInOutput":813}},"bytes":1091},"dist/lib/node-esm/intent-resolver-7FYJMXAG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1849},"dist/lib/node-esm/intent-resolver-7FYJMXAG.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-ZX63QUGE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"},{"path":"effect/Function","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/intent-resolver.ts","inputs":{"src/plugin-settings/intent-resolver.ts":{"bytesInOutput":602}},"bytes":1057},"dist/lib/node-esm/app-graph-builder-FMHVHPWA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9815},"dist/lib/node-esm/app-graph-builder-FMHVHPWA.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-ZX63QUGE.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-KSPOOYT3.mjs","kind":"import-statement"},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-graph","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/plugin-settings/app-graph-builder.ts","inputs":{"src/plugin-settings/app-graph-builder.ts":{"bytesInOutput":4308}},"bytes":4734},"dist/lib/node-esm/chunk-ZX63QUGE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1647},"dist/lib/node-esm/chunk-ZX63QUGE.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["SETTINGS_ID","SETTINGS_KEY","SettingsAction","meta"],"inputs":{"src/plugin-settings/meta.ts":{"bytesInOutput":69},"src/plugin-settings/actions.ts":{"bytesInOutput":622}},"bytes":963},"dist/lib/node-esm/chunk-KSPOOYT3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":115553},"dist/lib/node-esm/chunk-KSPOOYT3.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"effect/Array","kind":"import-statement","external":true},{"path":"effect/Duration","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Fiber","kind":"import-statement","external":true},{"path":"effect/Function","kind":"import-statement","external":true},{"path":"effect/HashSet","kind":"import-statement","external":true},{"path":"effect/Match","kind":"import-statement","external":true},{"path":"effect/Ref","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/intent-dispatcher-SIYQ5ZIU.mjs","kind":"dynamic-import"},{"path":"effect/Schema","kind":"import-statement","external":true}],"exports":["BaseError","Capabilities","CollaborationActions","CycleDetectedError","Events","FileInfoSchema","IntentAction","IntentPlugin","Label","LayoutAction","NoResolversError","Plugin","PluginContext","PluginManager","PluginModule","Resource","ResourceKey","ResourceLanguage","allOf","chain","contributes","createDispatcher","createIntent","createResolver","createSurface","defaultFileTypes","defineCapability","defineEvent","defineModule","definePlugin","eventKey","getEvents","intent_dispatcher_default","isAllOf","isOneOf","lazy","oneOf"],"inputs":{"src/plugin-intent/intent-dispatcher.ts":{"bytesInOutput":5377},"src/core/capabilities.ts":{"bytesInOutput":5737},"src/core/index.ts":{"bytesInOutput":0},"src/core/events.ts":{"bytesInOutput":512},"src/core/manager.ts":{"bytesInOutput":17982},"src/core/plugin.ts":{"bytesInOutput":1228},"src/common/capabilities.ts":{"bytesInOutput":2467},"src/common/index.ts":{"bytesInOutput":0},"src/common/collaboration.ts":{"bytesInOutput":517},"src/common/events.ts":{"bytesInOutput":1232},"src/common/file.ts":{"bytesInOutput":406},"src/common/layout.ts":{"bytesInOutput":12318},"src/plugin-intent/actions.ts":{"bytesInOutput":606},"src/plugin-intent/intent.ts":{"bytesInOutput":910},"src/plugin-intent/meta.ts":{"bytesInOutput":65},"src/plugin-intent/index.ts":{"bytesInOutput":0},"src/plugin-intent/errors.ts":{"bytesInOutput":1009},"src/plugin-intent/IntentPlugin.ts":{"bytesInOutput":577},"src/common/surface.ts":{"bytesInOutput":48},"src/common/translations.ts":{"bytesInOutput":329}},"bytes":52640}}}
|
|
@@ -2,11 +2,11 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
Capabilities,
|
|
4
4
|
contributes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KSPOOYT3.mjs";
|
|
6
6
|
|
|
7
7
|
// src/plugin-settings/store.ts
|
|
8
8
|
import { RootSettingsStore } from "@dxos/local-storage";
|
|
9
|
-
var store_default = (context) => {
|
|
9
|
+
var store_default = ((context) => {
|
|
10
10
|
const settingsStore = new RootSettingsStore();
|
|
11
11
|
let previous = [];
|
|
12
12
|
const registry = context.getCapability(Capabilities.RxRegistry);
|
|
@@ -24,8 +24,8 @@ var store_default = (context) => {
|
|
|
24
24
|
immediate: true
|
|
25
25
|
});
|
|
26
26
|
return contributes(Capabilities.SettingsStore, settingsStore, () => cancel());
|
|
27
|
-
};
|
|
27
|
+
});
|
|
28
28
|
export {
|
|
29
29
|
store_default as default
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=store-
|
|
31
|
+
//# sourceMappingURL=store-6OBLTVXC.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/plugin-settings/store.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { RootSettingsStore } from '@dxos/local-storage';\n\nimport { Capabilities } from '../common';\nimport { type PluginContext, contributes } from '../core';\n\nexport default (context: PluginContext) => {\n // TODO(wittjosiah): Replace with rx?\n const settingsStore = new RootSettingsStore();\n\n let previous: Capabilities.Settings[] = [];\n const registry = context.getCapability(Capabilities.RxRegistry);\n const cancel = registry.subscribe(\n context.capabilities(Capabilities.Settings),\n (allSettings) => {\n const added = allSettings.filter((setting) => !previous.includes(setting));\n const removed = previous.filter((setting) => !allSettings.includes(setting));\n previous = allSettings;\n added.forEach((setting) => {\n settingsStore.createStore(setting as any);\n });\n removed.forEach((setting) => {\n settingsStore.removeStore(setting.prefix);\n });\n },\n { immediate: true },\n );\n\n return contributes(Capabilities.SettingsStore, settingsStore, () => cancel());\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;AAIA,SAASA,yBAAyB;AAKlC,IAAA,
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,yBAAyB;AAKlC,IAAA,iBAAe,CAACC,YAAAA;AAEd,QAAMC,gBAAgB,IAAIC,kBAAAA;AAE1B,MAAIC,WAAoC,CAAA;AACxC,QAAMC,WAAWJ,QAAQK,cAAcC,aAAaC,UAAU;AAC9D,QAAMC,SAASJ,SAASK,UACtBT,QAAQU,aAAaJ,aAAaK,QAAQ,GAC1C,CAACC,gBAAAA;AACC,UAAMC,QAAQD,YAAYE,OAAO,CAACC,YAAY,CAACZ,SAASa,SAASD,OAAAA,CAAAA;AACjE,UAAME,UAAUd,SAASW,OAAO,CAACC,YAAY,CAACH,YAAYI,SAASD,OAAAA,CAAAA;AACnEZ,eAAWS;AACXC,UAAMK,QAAQ,CAACH,YAAAA;AACbd,oBAAckB,YAAYJ,OAAAA;IAC5B,CAAA;AACAE,YAAQC,QAAQ,CAACH,YAAAA;AACfd,oBAAcmB,YAAYL,QAAQM,MAAM;IAC1C,CAAA;EACF,GACA;IAAEC,WAAW;EAAK,CAAA;AAGpB,SAAOC,YAAYjB,aAAakB,eAAevB,eAAe,MAAMO,OAAAA,CAAAA;AACtE;",
|
|
6
6
|
"names": ["RootSettingsStore", "context", "settingsStore", "RootSettingsStore", "previous", "registry", "getCapability", "Capabilities", "RxRegistry", "cancel", "subscribe", "capabilities", "Settings", "allSettings", "added", "filter", "setting", "includes", "removed", "forEach", "createStore", "removeStore", "prefix", "immediate", "contributes", "SettingsStore"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
useApp
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-CXT6CYPE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Capabilities,
|
|
7
7
|
Events,
|
|
@@ -9,30 +9,28 @@ import {
|
|
|
9
9
|
contributes,
|
|
10
10
|
defineModule,
|
|
11
11
|
definePlugin
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-KSPOOYT3.mjs";
|
|
13
13
|
|
|
14
14
|
// src/testing/withPluginManager.tsx
|
|
15
15
|
import React, { useEffect, useMemo } from "react";
|
|
16
16
|
import { raise } from "@dxos/debug";
|
|
17
17
|
import { useAsyncEffect } from "@dxos/react-hooks";
|
|
18
|
-
|
|
19
|
-
return typeof providerOrValue === "function" ? providerOrValue(context) : providerOrValue;
|
|
20
|
-
};
|
|
18
|
+
import { getProviderValue } from "@dxos/util";
|
|
21
19
|
var setupPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ meta }) => meta.id), ...options } = {}) => {
|
|
22
20
|
const pluginManager = new PluginManager({
|
|
23
21
|
pluginLoader: () => raise(new Error("Not implemented")),
|
|
24
22
|
plugins: [
|
|
25
|
-
|
|
23
|
+
StoryPlugin(),
|
|
26
24
|
...plugins
|
|
27
25
|
],
|
|
28
26
|
core: [
|
|
29
|
-
|
|
27
|
+
StoryPlugin.meta.id,
|
|
30
28
|
...core
|
|
31
29
|
],
|
|
32
30
|
...options
|
|
33
31
|
});
|
|
34
32
|
if (capabilities) {
|
|
35
|
-
|
|
33
|
+
getProviderValue(capabilities, pluginManager.context).forEach((capability) => {
|
|
36
34
|
pluginManager.context.contributeCapability({
|
|
37
35
|
interface: capability.interface,
|
|
38
36
|
implementation: capability.implementation,
|
|
@@ -74,19 +72,18 @@ var withPluginManager = (options = {}) => {
|
|
|
74
72
|
return /* @__PURE__ */ React.createElement(App, null);
|
|
75
73
|
};
|
|
76
74
|
};
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
id: STORY_PLUGIN,
|
|
75
|
+
var storyMeta = {
|
|
76
|
+
id: "dxos.org/app-framework/story",
|
|
80
77
|
name: "Story"
|
|
81
|
-
}
|
|
78
|
+
};
|
|
79
|
+
var StoryPlugin = definePlugin(storyMeta, () => [
|
|
82
80
|
defineModule({
|
|
83
|
-
id:
|
|
81
|
+
id: storyMeta.id,
|
|
84
82
|
activatesOn: Events.Startup,
|
|
85
83
|
activate: () => []
|
|
86
84
|
})
|
|
87
85
|
]);
|
|
88
86
|
export {
|
|
89
|
-
getValue,
|
|
90
87
|
setupPluginManager,
|
|
91
88
|
withPluginManager
|
|
92
89
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/testing/withPluginManager.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect, useMemo } from 'react';\n\nimport { raise } from '@dxos/debug';\nimport { useAsyncEffect } from '@dxos/react-hooks';\n\nimport { Capabilities, Events } from '../common';\nimport { type UseAppOptions, useApp } from '../components';\nimport {\n type ActivationEvent,\n type AnyCapability,\n type PluginContext,\n PluginManager,\n contributes,\n defineModule,\n definePlugin,\n} from '../core';\n\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;AAKA,OAAOA,SAASC,WAAWC,eAAe;AAE1C,SAASC,aAAa;AACtB,SAASC,sBAAsB;
|
|
6
|
-
"names": ["React", "useEffect", "useMemo", "raise", "useAsyncEffect", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect, useMemo } from 'react';\n\nimport { raise } from '@dxos/debug';\nimport { useAsyncEffect } from '@dxos/react-hooks';\nimport { type MaybeProvider, getProviderValue } from '@dxos/util';\n\nimport { Capabilities, Events } from '../common';\nimport { type UseAppOptions, useApp } from '../components';\nimport {\n type ActivationEvent,\n type AnyCapability,\n type PluginContext,\n PluginManager,\n contributes,\n defineModule,\n definePlugin,\n} from '../core';\n\n/**\n * @internal\n */\nexport const setupPluginManager = ({\n capabilities,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n ...options\n}: UseAppOptions & Pick<WithPluginManagerOptions, 'capabilities'> = {}) => {\n const pluginManager = new PluginManager({\n pluginLoader: () => raise(new Error('Not implemented')),\n plugins: [StoryPlugin(), ...plugins],\n core: [StoryPlugin.meta.id, ...core],\n ...options,\n });\n\n if (capabilities) {\n getProviderValue(capabilities, pluginManager.context).forEach((capability) => {\n pluginManager.context.contributeCapability({\n interface: capability.interface,\n implementation: capability.implementation,\n module: 'story',\n });\n });\n }\n\n return pluginManager;\n};\n\nexport type WithPluginManagerOptions = UseAppOptions & {\n /** @deprecated */\n capabilities?: MaybeProvider<AnyCapability[], PluginContext>;\n /** @deprecated */\n fireEvents?: (ActivationEvent | string)[];\n};\n\n/**\n * Wraps a story with a plugin manager.\n * NOTE: This builds up and tears down the plugin manager on every render.\n */\nexport const withPluginManager = (options: WithPluginManagerOptions = {}): Decorator => {\n return (Story, context) => {\n const pluginManager = useMemo(() => setupPluginManager(options), [options]);\n\n // Set-up root capability.\n useEffect(() => {\n const capability = contributes(Capabilities.ReactRoot, {\n id: context.id,\n root: () => <Story />,\n });\n\n pluginManager.context.contributeCapability({\n ...capability,\n module: 'dxos.org/app-framework/withPluginManager',\n });\n\n return () => {\n pluginManager.context.removeCapability(capability.interface, capability.implementation);\n };\n }, [pluginManager, context]);\n\n // Fire events.\n useAsyncEffect(async () => {\n await Promise.all(options.fireEvents?.map((event) => pluginManager.activate(event)) ?? []);\n }, [pluginManager]);\n\n // Create app.\n const App = useApp({ pluginManager });\n\n return <App />;\n };\n};\n\nconst storyMeta = {\n id: 'dxos.org/app-framework/story',\n name: 'Story',\n};\n\n// No-op plugin to ensure there exists at least one plugin for the startup event.\n// This is necessary because `createApp` expects the startup event to complete before the app is ready.\nconst StoryPlugin = definePlugin(storyMeta, () => [\n defineModule({ id: storyMeta.id, activatesOn: Events.Startup, activate: () => [] }),\n]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAKA,OAAOA,SAASC,WAAWC,eAAe;AAE1C,SAASC,aAAa;AACtB,SAASC,sBAAsB;AAC/B,SAA6BC,wBAAwB;AAiB9C,IAAMC,qBAAqB,CAAC,EACjCC,cACAC,UAAU,CAAA,GACVC,OAAOD,QAAQE,IAAI,CAAC,EAAEC,KAAI,MAAOA,KAAKC,EAAE,GACxC,GAAGC,QAAAA,IAC+D,CAAC,MAAC;AACpE,QAAMC,gBAAgB,IAAIC,cAAc;IACtCC,cAAc,MAAMC,MAAM,IAAIC,MAAM,iBAAA,CAAA;IACpCV,SAAS;MAACW,YAAAA;SAAkBX;;IAC5BC,MAAM;MAACU,YAAYR,KAAKC;SAAOH;;IAC/B,GAAGI;EACL,CAAA;AAEA,MAAIN,cAAc;AAChBa,qBAAiBb,cAAcO,cAAcO,OAAO,EAAEC,QAAQ,CAACC,eAAAA;AAC7DT,oBAAcO,QAAQG,qBAAqB;QACzCC,WAAWF,WAAWE;QACtBC,gBAAgBH,WAAWG;QAC3BC,QAAQ;MACV,CAAA;IACF,CAAA;EACF;AAEA,SAAOb;AACT;AAaO,IAAMc,oBAAoB,CAACf,UAAoC,CAAC,MAAC;AACtE,SAAO,CAACgB,OAAOR,YAAAA;AACb,UAAMP,gBAAgBgB,QAAQ,MAAMxB,mBAAmBO,OAAAA,GAAU;MAACA;KAAQ;AAG1EkB,cAAU,MAAA;AACR,YAAMR,aAAaS,YAAYC,aAAaC,WAAW;QACrDtB,IAAIS,QAAQT;QACZuB,MAAM,MAAM,sBAAA,cAACN,OAAAA,IAAAA;MACf,CAAA;AAEAf,oBAAcO,QAAQG,qBAAqB;QACzC,GAAGD;QACHI,QAAQ;MACV,CAAA;AAEA,aAAO,MAAA;AACLb,sBAAcO,QAAQe,iBAAiBb,WAAWE,WAAWF,WAAWG,cAAc;MACxF;IACF,GAAG;MAACZ;MAAeO;KAAQ;AAG3BgB,mBAAe,YAAA;AACb,YAAMC,QAAQC,IAAI1B,QAAQ2B,YAAY9B,IAAI,CAAC+B,UAAU3B,cAAc4B,SAASD,KAAAA,CAAAA,KAAW,CAAA,CAAE;IAC3F,GAAG;MAAC3B;KAAc;AAGlB,UAAM6B,MAAMC,OAAO;MAAE9B;IAAc,CAAA;AAEnC,WAAO,sBAAA,cAAC6B,KAAAA,IAAAA;EACV;AACF;AAEA,IAAME,YAAY;EAChBjC,IAAI;EACJkC,MAAM;AACR;AAIA,IAAM3B,cAAc4B,aAAaF,WAAW,MAAM;EAChDG,aAAa;IAAEpC,IAAIiC,UAAUjC;IAAIqC,aAAaC,OAAOC;IAAST,UAAU,MAAM,CAAA;EAAG,CAAA;CAClF;",
|
|
6
|
+
"names": ["React", "useEffect", "useMemo", "raise", "useAsyncEffect", "getProviderValue", "setupPluginManager", "capabilities", "plugins", "core", "map", "meta", "id", "options", "pluginManager", "PluginManager", "pluginLoader", "raise", "Error", "StoryPlugin", "getProviderValue", "context", "forEach", "capability", "contributeCapability", "interface", "implementation", "module", "withPluginManager", "Story", "useMemo", "useEffect", "contributes", "Capabilities", "ReactRoot", "root", "removeCapability", "useAsyncEffect", "Promise", "all", "fireEvents", "event", "activate", "App", "useApp", "storyMeta", "name", "definePlugin", "defineModule", "activatesOn", "Events", "Startup"]
|
|
7
7
|
}
|
|
@@ -6,12 +6,8 @@ import {
|
|
|
6
6
|
CycleDetectedError,
|
|
7
7
|
Events,
|
|
8
8
|
FileInfoSchema,
|
|
9
|
-
INTENT_ACTION,
|
|
10
|
-
INTENT_PLUGIN,
|
|
11
9
|
IntentAction,
|
|
12
10
|
IntentPlugin,
|
|
13
|
-
LAYOUT_ACTION,
|
|
14
|
-
LAYOUT_PLUGIN,
|
|
15
11
|
Label,
|
|
16
12
|
LayoutAction,
|
|
17
13
|
NoResolversError,
|
|
@@ -40,7 +36,7 @@ import {
|
|
|
40
36
|
isOneOf,
|
|
41
37
|
lazy,
|
|
42
38
|
oneOf
|
|
43
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KSPOOYT3.mjs";
|
|
44
40
|
export {
|
|
45
41
|
BaseError,
|
|
46
42
|
Capabilities,
|
|
@@ -48,12 +44,8 @@ export {
|
|
|
48
44
|
CycleDetectedError,
|
|
49
45
|
Events,
|
|
50
46
|
FileInfoSchema,
|
|
51
|
-
INTENT_ACTION,
|
|
52
|
-
INTENT_PLUGIN,
|
|
53
47
|
IntentAction,
|
|
54
48
|
IntentPlugin,
|
|
55
|
-
LAYOUT_ACTION,
|
|
56
|
-
LAYOUT_PLUGIN,
|
|
57
49
|
Label,
|
|
58
50
|
LayoutAction,
|
|
59
51
|
NoResolversError,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type * as Tool from '@effect/ai/Tool';
|
|
2
|
+
import type * as Toolkit from '@effect/ai/Toolkit';
|
|
2
3
|
import { type Registry } from '@effect-rx/rx-react';
|
|
3
|
-
import
|
|
4
|
+
import type * as Layer from 'effect/Layer';
|
|
5
|
+
import type * as Schema from 'effect/Schema';
|
|
4
6
|
import { type FC, type PropsWithChildren } from 'react';
|
|
7
|
+
import { type AiService } from '@dxos/ai';
|
|
8
|
+
import type * as AiServiceRouter from '@dxos/ai/AiServiceRouter';
|
|
5
9
|
import { type BuilderExtensions, type GraphBuilder } from '@dxos/app-graph';
|
|
6
10
|
import { type Blueprint } from '@dxos/blueprints';
|
|
7
11
|
import { type Space } from '@dxos/client-protocol';
|
|
@@ -160,15 +164,21 @@ export declare namespace Capabilities {
|
|
|
160
164
|
/**
|
|
161
165
|
* @category Capability
|
|
162
166
|
*/
|
|
163
|
-
export const Toolkit: import("..").InterfaceDef<
|
|
167
|
+
export const Toolkit: import("..").InterfaceDef<Toolkit.Any>;
|
|
164
168
|
/**
|
|
165
169
|
* @category Capability
|
|
166
170
|
*/
|
|
167
|
-
export const ToolkitHandler: import("..").InterfaceDef<Layer.Layer<
|
|
171
|
+
export const ToolkitHandler: import("..").InterfaceDef<Layer.Layer<Tool.Handler<any>, never, never>>;
|
|
168
172
|
/**
|
|
169
173
|
* @category Capability
|
|
170
174
|
*/
|
|
171
175
|
export const BlueprintDefinition: import("..").InterfaceDef<Blueprint.Blueprint>;
|
|
176
|
+
export type AiServiceLayer = Layer.Layer<AiService.AiService>;
|
|
177
|
+
export const AiServiceLayer: import("..").InterfaceDef<AiServiceLayer>;
|
|
178
|
+
/**
|
|
179
|
+
* Plugins can contribute them to provide model resolvers.
|
|
180
|
+
*/
|
|
181
|
+
export const AiModelResolver: import("..").InterfaceDef<Layer.Layer<AiServiceRouter.AiModelResolver, never, never>>;
|
|
172
182
|
/**
|
|
173
183
|
* @category Capability
|
|
174
184
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/common/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,IAAI,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,KAAK,OAAO,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,KAAK,eAAe,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAInD,yBAAiB,YAAY,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,MAAM,IAAI,iCAAmE,CAAC;IAErF;;OAEG;IACH,MAAM,CAAC,MAAM,aAAa,0CAAsF,CAAC;IAEjH;;OAEG;IACH,MAAM,CAAC,MAAM,UAAU,8CAAuF,CAAC;IAE/G,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;KAAE,CAAC,CAAC;IAE1G;;OAEG;IACH,MAAM,CAAC,MAAM,YAAY;YALiB,MAAM;oBAAc,MAAM,EAAE;iBAAW,EAAE,CAAC,iBAAiB,CAAC;OAKO,CAAC;IAE9G,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAA;KAAE,CAAC,CAAC;IAE9E;;OAEG;IACH,MAAM,CAAC,MAAM,SAAS;YALiB,MAAM;cAAQ,EAAE,CAAC,iBAAiB,CAAC;OAK0B,CAAC;IAErG,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,CAAC;IAE5E;;OAEG;IACH,MAAM,CAAC,MAAM,YAAY,yCAAgF,CAAC;IAE1G,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,CAAC;IAE9E;;OAEG;IACH,MAAM,CAAC,MAAM,cAAc,2CAAwF,CAAC;IAEpH;;OAEG;IACH,MAAM,CAAC,MAAM,gBAAgB,0CAE5B,CAAC;IAEF,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,OAAO,CAAC;QACpB,WAAW,EAAE,OAAO,CAAC;QACrB,wBAAwB,EAAE,OAAO,CAAC;QAClC;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAClB;;WAEG;QACH,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB;;WAEG;QACH,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB;;WAEG;QACH,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;KACpC,CAAC,CAAC;IAEH;;OAEG;IACH,MAAM,CAAC,MAAM,MAAM;cAzBX,MAAM;oBACA,OAAO;qBACN,OAAO;kCACM,OAAO;QACjC;;WAEG;mBACQ,MAAM;QACjB;;WAEG;gBACK,MAAM,EAAE;QAChB;;WAEG;kBACO,MAAM,EAAE;QAClB;;WAEG;wBACa,MAAM,GAAG,SAAS;OAMsD,CAAC;IAE3F;;OAEG;IACH,MAAM,CAAC,MAAM,YAAY;;;;;;QAA2F,CAAC;IAErH;;OAEG;IACH,MAAM,CAAC,MAAM,QAAQ,8EAEpB,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,eAAe,8CAE3B,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,kBAAkB,6CAE9B,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,aAAa,8CAA0F,CAAC;IAKrH,MAAM,MAAM,QAAQ,GAAG;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC7B,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,QAAQ,qCAA2E,CAAC;IAEjG,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;IAE/E;;OAEG;IACH,MAAM,CAAC,MAAM,QAAQ;YALiB,MAAM;kBAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;OAKqB,CAAC;IAIjG;;OAEG;IACH,MAAM,CAAC,MAAM,OAAO,wCAAgF,CAAC;IAErG;;OAEG;IACH,MAAM,CAAC,MAAM,cAAc,yEAE1B,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,mBAAmB,gDAE/B,CAAC;IAEF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9D,MAAM,CAAC,MAAM,cAAc,2CAE1B,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,eAAe,uFAE3B,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,SAAS,2DAErB,CAAC;IAEF,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAC;IAEvF;;OAEG;IACH,MAAM,CAAC,MAAM,YAAY,yCAAoF,CAAC;IAE9G,KAAK,UAAU,GAAG;QAChB,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC;KAC5D,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,UAAU,uCAAgF,CAAC;;CACzG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
export declare namespace CollaborationActions {
|
|
3
3
|
const AcceptProposal_base: Schema.TaggedClass<AcceptProposal, "collaboration/accept-proposal", {
|
|
4
4
|
readonly _tag: Schema.tag<"collaboration/accept-proposal">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../../src/common/collaboration.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../../src/common/collaboration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,yBAAiB,oBAAoB,CAAC;;;;;;;;;;;;;;IACpC,MAAM,OAAO,cAAe,SAAQ,mBAOlC;KAAG;;CACN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/common/file.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC;;GAEG;AACH,yBAAiB,YAAY,CAAC;IAC5B,MAAM,CAAC,MAAM,aAAa,gDAA0C,CAAC;;;;;;;;;;;IAErE;;OAEG;IACH,MAAM,OAAO,YAAa,SAAQ,iBAWhC;KAAG;;;;;;;;;;;;;;;IAYL,MAAM,OAAO,aAAc,SAAQ,kBAYjC;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAejC;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,mBAAoB,SAAQ,wBAevC;KAAG;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,YAAa,SAAQ,iBA4BhC;KAAG;;;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAoCjC;KAAG;IAEL,MAAM,CAAC,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYhB,CAAC;IAEH,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE,UAAU,CAAC;QAC/E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAED,MAAM,OAAO,QAAS,SAAQ,aAM5B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAQnC;KAAG;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,IAAK,SAAQ,SA4BxB;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,GAAI,SAAQ,QAWvB;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,KAAM,SAAQ,UASzB;KAAG;;;;;;;;;;;IAEL,MAAM,OAAO,cAAe,SAAQ,mBAWlC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,MAAO,SAAQ,WAM1B;KAAG;;CACN"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ComponentType, PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { type GuardedType, type MakeOptional, type Position } from '@dxos/util';
|
|
3
3
|
import { type ErrorBoundary } from '../react';
|
|
4
4
|
/**
|
|
5
5
|
* SurfaceProps are the props that are passed to the Surface component.
|
|
6
6
|
*/
|
|
7
|
-
export type SurfaceProps<T extends Record<string, any> = Record<string, unknown>> =
|
|
7
|
+
export type SurfaceProps<T extends Record<string, any> = Record<string, unknown>> = {
|
|
8
8
|
/**
|
|
9
9
|
* If specified, the Surface will be wrapped in an error boundary.
|
|
10
10
|
* The fallback component will be rendered if an error occurs.
|
|
@@ -15,14 +15,10 @@ export type SurfaceProps<T extends Record<string, any> = Record<string, unknown>
|
|
|
15
15
|
* The placeholder component will be rendered while the surface component is loading.
|
|
16
16
|
*/
|
|
17
17
|
placeholder?: ReactNode;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
* Additional props to pass to the component.
|
|
21
|
-
* These props are not used by Surface itself but may be used by components which resolve the surface.
|
|
22
|
-
*/
|
|
23
|
-
[key: string]: unknown;
|
|
18
|
+
} & MakeOptional<CoreSurfaceProps<T>, 'id' | 'data'> & {
|
|
19
|
+
[K in keyof Record<string, any>]: K extends keyof CoreSurfaceProps<T> | 'fallback' | 'placeholder' ? never : any;
|
|
24
20
|
};
|
|
25
|
-
type CoreSurfaceProps<T extends Record<string, any> = Record<string, unknown>> = {
|
|
21
|
+
type CoreSurfaceProps<T extends Record<string, any> = Record<string, unknown>> = PropsWithChildren<{
|
|
26
22
|
/**
|
|
27
23
|
* ID for debugging.
|
|
28
24
|
*/
|
|
@@ -39,14 +35,12 @@ type CoreSurfaceProps<T extends Record<string, any> = Record<string, unknown>> =
|
|
|
39
35
|
* If more than one component is resolved, the limit determines how many are rendered.
|
|
40
36
|
*/
|
|
41
37
|
limit?: number | undefined;
|
|
42
|
-
};
|
|
43
|
-
type SurfaceComponentProps<T extends Record<string, any> = Record<string, unknown>> = PropsWithChildren<CoreSurfaceProps<T> & {
|
|
44
|
-
[key: string]: unknown;
|
|
45
38
|
}>;
|
|
39
|
+
type SurfaceComponentProps<T extends Record<string, any> = Record<string, unknown>> = CoreSurfaceProps<T> & Record<string, any>;
|
|
46
40
|
/**
|
|
47
41
|
* React component used to render a surface once is has matched.
|
|
48
42
|
*/
|
|
49
|
-
export type SurfaceComponent<T extends Record<string, any> = Record<string, unknown>> =
|
|
43
|
+
export type SurfaceComponent<T extends Record<string, any> = Record<string, unknown>> = ComponentType<SurfaceComponentProps<T>>;
|
|
50
44
|
/**
|
|
51
45
|
* Definition of when a SurfaceComponent should be rendered.
|
|
52
46
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../../src/common/surface.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../../src/common/surface.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhF,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IAClF;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;IAE9C;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,GAIlD;KACG,CAAC,IAAI,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,MAAM,gBAAgB,CAAC,CAAC,CAAC,GAAG,UAAU,GAAG,aAAa,GAAG,KAAK,GAAG,GAAG;CACjH,CAAC;AAGJ,KAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,iBAAiB,CAAC;IACjG;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;IAER;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC,CAAC;AAEH,KAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GACvG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,aAAa,CACnG,qBAAqB,CAAC,CAAC,CAAC,CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,IAAI,QAAQ,CAAC;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;IACtD,SAAS,EAAE,gBAAgB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CAC1E,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAC/D,YAAY,iBAAiB,CAAC,CAAC,CAAC,KAC/B,iBAAiB,CAAC,CAAC,CAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
export declare const ResourceKey: Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>;
|
|
3
3
|
export type ResourceKey = Schema.Schema.Type<typeof ResourceKey>;
|
|
4
4
|
export declare const ResourceLanguage: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.Record$<typeof Schema.String, typeof Schema.Any>]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../../src/common/translations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,WAAW,+FAAwF,CAAC;AACjH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,eAAO,MAAM,gBAAgB,qIAA4D,CAAC;AAC1F,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,QAAQ,2KAAiE,CAAC;AACvF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/App.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"App.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/App.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,QAAA,MAAM,IAAI;;;;;;;CAOM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|