@dxos/plugin-testing 0.8.4-main.abd8ff62ef → 0.8.4-main.bc2380dfbc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/StorybookPlugin.mjs +10 -0
  3. package/dist/lib/neutral/StorybookPlugin.mjs.map +7 -0
  4. package/dist/lib/neutral/add-toast-Z2RXG4RX.mjs +23 -0
  5. package/dist/lib/neutral/add-toast-Z2RXG4RX.mjs.map +7 -0
  6. package/dist/lib/neutral/capabilities/index.mjs +11 -0
  7. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  8. package/dist/lib/neutral/chunk-E4LBVPH5.mjs +8 -0
  9. package/dist/lib/neutral/chunk-E4LBVPH5.mjs.map +7 -0
  10. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  11. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  12. package/dist/lib/neutral/chunk-NZ2VT6N2.mjs +17 -0
  13. package/dist/lib/neutral/chunk-NZ2VT6N2.mjs.map +7 -0
  14. package/dist/lib/neutral/chunk-R7AV233N.mjs +31 -0
  15. package/dist/lib/neutral/chunk-R7AV233N.mjs.map +7 -0
  16. package/dist/lib/neutral/chunk-ULNF6GTG.mjs +21 -0
  17. package/dist/lib/neutral/chunk-ULNF6GTG.mjs.map +7 -0
  18. package/dist/lib/neutral/chunk-VMXMXF46.mjs +22 -0
  19. package/dist/lib/neutral/chunk-VMXMXF46.mjs.map +7 -0
  20. package/dist/lib/neutral/chunk-ZVN23V74.mjs +16 -0
  21. package/dist/lib/neutral/chunk-ZVN23V74.mjs.map +7 -0
  22. package/dist/lib/neutral/close-L3FBJQ3J.mjs +12 -0
  23. package/dist/lib/neutral/close-L3FBJQ3J.mjs.map +7 -0
  24. package/dist/lib/neutral/components/index.mjs +183 -0
  25. package/dist/lib/neutral/components/index.mjs.map +7 -0
  26. package/dist/lib/neutral/core.mjs +8 -0
  27. package/dist/lib/neutral/core.mjs.map +7 -0
  28. package/dist/lib/{browser → neutral}/harness.mjs +6 -4
  29. package/dist/lib/neutral/harness.mjs.map +7 -0
  30. package/dist/lib/neutral/index.mjs +20 -0
  31. package/dist/lib/neutral/index.mjs.map +7 -0
  32. package/dist/lib/neutral/meta.json +1 -0
  33. package/dist/lib/neutral/meta.mjs +8 -0
  34. package/dist/lib/neutral/meta.mjs.map +7 -0
  35. package/dist/lib/neutral/open-WBONYQ47.mjs +14 -0
  36. package/dist/lib/neutral/open-WBONYQ47.mjs.map +7 -0
  37. package/dist/lib/neutral/operation-handler-LQIWHQVY.mjs +13 -0
  38. package/dist/lib/neutral/operation-handler-LQIWHQVY.mjs.map +7 -0
  39. package/dist/lib/neutral/operations/index.mjs +8 -0
  40. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  41. package/dist/lib/neutral/plugin.mjs +16 -0
  42. package/dist/lib/neutral/plugin.mjs.map +7 -0
  43. package/dist/lib/neutral/scroll-into-view-BKOOOECC.mjs +12 -0
  44. package/dist/lib/neutral/scroll-into-view-BKOOOECC.mjs.map +7 -0
  45. package/dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs +12 -0
  46. package/dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs.map +7 -0
  47. package/dist/lib/neutral/state-AJ62JEEG.mjs +43 -0
  48. package/dist/lib/neutral/state-AJ62JEEG.mjs.map +7 -0
  49. package/dist/lib/neutral/switch-workspace-SAT2NGXV.mjs +20 -0
  50. package/dist/lib/neutral/switch-workspace-SAT2NGXV.mjs.map +7 -0
  51. package/dist/lib/neutral/types/index.mjs +8 -0
  52. package/dist/lib/neutral/types/index.mjs.map +7 -0
  53. package/dist/lib/neutral/update-complementary-JP2OL73Z.mjs +26 -0
  54. package/dist/lib/neutral/update-complementary-JP2OL73Z.mjs.map +7 -0
  55. package/dist/lib/neutral/update-dialog-MX6IKKJX.mjs +28 -0
  56. package/dist/lib/neutral/update-dialog-MX6IKKJX.mjs.map +7 -0
  57. package/dist/lib/neutral/update-popover-DOORE3TD.mjs +46 -0
  58. package/dist/lib/neutral/update-popover-DOORE3TD.mjs.map +7 -0
  59. package/dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs +26 -0
  60. package/dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs.map +7 -0
  61. package/dist/types/src/StorybookPlugin.d.ts +2 -2
  62. package/dist/types/src/StorybookPlugin.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/index.d.ts +2 -2
  64. package/dist/types/src/capabilities/state.d.ts +3 -3
  65. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  66. package/dist/types/src/core.d.ts.map +1 -1
  67. package/dist/types/src/index.d.ts +2 -3
  68. package/dist/types/src/index.d.ts.map +1 -1
  69. package/dist/types/src/operations/update-state.d.ts +2 -2
  70. package/dist/types/src/operations/update-state.d.ts.map +1 -1
  71. package/dist/types/src/plugin.d.ts +5 -0
  72. package/dist/types/src/plugin.d.ts.map +1 -0
  73. package/dist/types/src/types/{capabilities.d.ts → StorybookCapabilities.d.ts} +1 -1
  74. package/dist/types/src/types/StorybookCapabilities.d.ts.map +1 -0
  75. package/dist/types/src/types/index.d.ts +1 -1
  76. package/dist/types/src/types/index.d.ts.map +1 -1
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +53 -25
  79. package/src/StorybookPlugin.ts +2 -2
  80. package/src/capabilities/state.tsx +8 -5
  81. package/src/components/Layout/Layout.tsx +4 -4
  82. package/src/core.ts +17 -4
  83. package/src/harness.ts +4 -4
  84. package/src/index.ts +8 -7
  85. package/src/operations/update-popover.ts +2 -2
  86. package/src/operations/update-state.ts +5 -3
  87. package/src/plugin.ts +12 -0
  88. package/src/types/{capabilities.ts → StorybookCapabilities.ts} +2 -0
  89. package/src/types/index.ts +1 -1
  90. package/dist/lib/browser/harness.mjs.map +0 -7
  91. package/dist/lib/browser/index.mjs +0 -41
  92. package/dist/lib/browser/index.mjs.map +0 -7
  93. package/dist/lib/browser/meta.json +0 -1
  94. package/dist/lib/node-esm/harness.mjs +0 -37
  95. package/dist/lib/node-esm/harness.mjs.map +0 -7
  96. package/dist/lib/node-esm/index.mjs +0 -43
  97. package/dist/lib/node-esm/index.mjs.map +0 -7
  98. package/dist/lib/node-esm/meta.json +0 -1
  99. package/dist/types/src/types/capabilities.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-testing",
3
- "version": "0.8.4-main.abd8ff62ef",
3
+ "version": "0.8.4-main.bc2380dfbc",
4
4
  "description": "Plugin testing utils",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -8,29 +8,57 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/dxos/dxos"
10
10
  },
11
- "license": "MIT",
11
+ "license": "FSL-1.1-Apache-2.0",
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
15
  "imports": {
16
- "#plugin": "./src/StorybookPlugin.ts",
17
- "#capabilities": "./src/capabilities/index.ts",
18
- "#components": "./src/components/index.ts",
19
- "#meta": "./src/meta.ts",
20
- "#operations": "./src/operations/index.ts",
21
- "#types": "./src/types/index.ts"
16
+ "#capabilities": {
17
+ "source": "./src/capabilities/index.ts",
18
+ "types": "./dist/types/src/capabilities/index.d.ts",
19
+ "default": "./dist/lib/neutral/capabilities/index.mjs"
20
+ },
21
+ "#components": {
22
+ "source": "./src/components/index.ts",
23
+ "types": "./dist/types/src/components/index.d.ts",
24
+ "default": "./dist/lib/neutral/components/index.mjs"
25
+ },
26
+ "#meta": {
27
+ "source": "./src/meta.ts",
28
+ "types": "./dist/types/src/meta.d.ts",
29
+ "default": "./dist/lib/neutral/meta.mjs"
30
+ },
31
+ "#operations": {
32
+ "source": "./src/operations/index.ts",
33
+ "types": "./dist/types/src/operations/index.d.ts",
34
+ "default": "./dist/lib/neutral/operations/index.mjs"
35
+ },
36
+ "#plugin": {
37
+ "source": "./src/StorybookPlugin.ts",
38
+ "types": "./dist/types/src/StorybookPlugin.d.ts",
39
+ "default": "./dist/lib/neutral/StorybookPlugin.mjs"
40
+ },
41
+ "#types": {
42
+ "source": "./src/types/index.ts",
43
+ "types": "./dist/types/src/types/index.d.ts",
44
+ "default": "./dist/lib/neutral/types/index.mjs"
45
+ }
22
46
  },
23
47
  "exports": {
24
48
  ".": {
25
49
  "source": "./src/index.ts",
26
50
  "types": "./dist/types/src/index.d.ts",
27
- "browser": "./dist/lib/browser/index.mjs"
51
+ "default": "./dist/lib/neutral/index.mjs"
28
52
  },
29
53
  "./harness": {
30
54
  "source": "./src/harness.ts",
31
55
  "types": "./dist/types/src/harness.d.ts",
32
- "browser": "./dist/lib/browser/harness.mjs",
33
- "node": "./dist/lib/node-esm/harness.mjs"
56
+ "default": "./dist/lib/neutral/harness.mjs"
57
+ },
58
+ "./plugin": {
59
+ "source": "./src/plugin.ts",
60
+ "types": "./dist/types/src/plugin.d.ts",
61
+ "default": "./dist/lib/neutral/plugin.mjs"
34
62
  }
35
63
  },
36
64
  "types": "dist/types/src/index.d.ts",
@@ -41,15 +69,15 @@
41
69
  "dependencies": {
42
70
  "@effect-atom/atom": "^0.5.1",
43
71
  "@effect-atom/atom-react": "^0.5.0",
44
- "@dxos/app-framework": "0.8.4-main.abd8ff62ef",
45
- "@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
46
- "@dxos/compute": "0.8.4-main.abd8ff62ef",
47
- "@dxos/plugin-attention": "0.8.4-main.abd8ff62ef",
48
- "@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
49
- "@dxos/plugin-settings": "0.8.4-main.abd8ff62ef",
50
- "@dxos/plugin-theme": "0.8.4-main.abd8ff62ef",
51
- "@dxos/util": "0.8.4-main.abd8ff62ef",
52
- "@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef"
72
+ "@dxos/compute": "0.8.4-main.bc2380dfbc",
73
+ "@dxos/app-toolkit": "0.8.4-main.bc2380dfbc",
74
+ "@dxos/app-framework": "0.8.4-main.bc2380dfbc",
75
+ "@dxos/plugin-attention": "0.8.4-main.bc2380dfbc",
76
+ "@dxos/plugin-settings": "0.8.4-main.bc2380dfbc",
77
+ "@dxos/plugin-theme": "0.8.4-main.bc2380dfbc",
78
+ "@dxos/react-ui-mosaic": "0.8.4-main.bc2380dfbc",
79
+ "@dxos/util": "0.8.4-main.bc2380dfbc",
80
+ "@dxos/plugin-graph": "0.8.4-main.bc2380dfbc"
53
81
  },
54
82
  "devDependencies": {
55
83
  "@types/react": "~19.2.7",
@@ -57,16 +85,16 @@
57
85
  "effect": "3.20.0",
58
86
  "react": "~19.2.3",
59
87
  "react-dom": "~19.2.3",
60
- "vite": "^8.0.10",
61
- "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
62
- "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
88
+ "vite": "^8.0.13",
89
+ "@dxos/react-ui": "0.8.4-main.bc2380dfbc",
90
+ "@dxos/ui-theme": "0.8.4-main.bc2380dfbc"
63
91
  },
64
92
  "peerDependencies": {
65
93
  "effect": "3.20.0",
66
94
  "react": "~19.2.3",
67
95
  "react-dom": "~19.2.3",
68
- "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
69
- "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
96
+ "@dxos/react-ui": "0.8.4-main.bc2380dfbc",
97
+ "@dxos/ui-theme": "0.8.4-main.bc2380dfbc"
70
98
  },
71
99
  "publishConfig": {
72
100
  "access": "public"
@@ -10,10 +10,10 @@ import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
10
10
  import { OperationHandler, State } from '#capabilities';
11
11
  import { Layout } from '#components';
12
12
  import { meta } from '#meta';
13
- import { type LayoutStateProps } from '#types';
13
+ import { StorybookCapabilities } from '#types';
14
14
 
15
15
  export type StorybookPluginOptions = {
16
- initialState?: Partial<LayoutStateProps>;
16
+ initialState?: Partial<StorybookCapabilities.LayoutStateProps>;
17
17
  };
18
18
 
19
19
  export const StorybookPlugin = Plugin.define<StorybookPluginOptions>(meta).pipe(
@@ -8,9 +8,9 @@ import * as Effect from 'effect/Effect';
8
8
  import { Capability } from '@dxos/app-framework';
9
9
  import { AppCapabilities } from '@dxos/app-toolkit';
10
10
 
11
- import { LayoutState, type LayoutStateProps } from '#types';
11
+ import { StorybookCapabilities } from '#types';
12
12
 
13
- const defaultState: LayoutStateProps = {
13
+ const defaultState: StorybookCapabilities.LayoutStateProps = {
14
14
  sidebarState: 'closed',
15
15
  complementarySidebarState: 'closed',
16
16
  dialogOpen: false,
@@ -19,9 +19,9 @@ const defaultState: LayoutStateProps = {
19
19
  };
20
20
 
21
21
  export default Capability.makeModule(
22
- Effect.fnUntraced(function* (props?: { initialState?: Partial<LayoutStateProps> }) {
22
+ Effect.fnUntraced(function* (props?: { initialState?: Partial<StorybookCapabilities.LayoutStateProps> }) {
23
23
  const { initialState } = props ?? {};
24
- const stateAtom = Atom.make<LayoutStateProps>({ ...defaultState, ...initialState });
24
+ const stateAtom = Atom.make<StorybookCapabilities.LayoutStateProps>({ ...defaultState, ...initialState });
25
25
 
26
26
  const layoutAtom = Atom.make((get): AppCapabilities.Layout => {
27
27
  const state = get(stateAtom);
@@ -37,6 +37,9 @@ export default Capability.makeModule(
37
37
  };
38
38
  });
39
39
 
40
- return [Capability.contributes(LayoutState, stateAtom), Capability.contributes(AppCapabilities.Layout, layoutAtom)];
40
+ return [
41
+ Capability.contributes(StorybookCapabilities.LayoutState, stateAtom),
42
+ Capability.contributes(AppCapabilities.Layout, layoutAtom),
43
+ ];
41
44
  }),
42
45
  );
@@ -25,7 +25,7 @@ import { Mosaic } from '@dxos/react-ui-mosaic';
25
25
  import { descriptionMessage, mx } from '@dxos/ui-theme';
26
26
 
27
27
  import { meta } from '#meta';
28
- import { LayoutState, type LayoutStateProps } from '#types';
28
+ import { StorybookCapabilities } from '#types';
29
29
 
30
30
  const debounce_delay = 100;
31
31
 
@@ -71,14 +71,14 @@ export const Layout = ({ children }: PropsWithChildren<{}>) => {
71
71
  const { t } = useTranslation(meta.id);
72
72
  const trigger = useRef<HTMLButtonElement | null>(null);
73
73
  const registry = useContext(RegistryContext);
74
- const stateAtom = useCapability(LayoutState);
74
+ const stateAtom = useCapability(StorybookCapabilities.LayoutState);
75
75
  const layout = useAtomValue(stateAtom);
76
76
  const [iter, setIter] = useState(0);
77
77
  const [open, setOpen] = useState(false);
78
78
  const debounceRef = useRef<NodeJS.Timeout | null>(null);
79
79
 
80
80
  const updateState = useCallback(
81
- (updates: Partial<LayoutStateProps>) => {
81
+ (updates: Partial<StorybookCapabilities.LayoutStateProps>) => {
82
82
  const current = registry.get(stateAtom);
83
83
  registry.set(stateAtom, { ...current, ...updates });
84
84
  },
@@ -135,7 +135,7 @@ export const Layout = ({ children }: PropsWithChildren<{}>) => {
135
135
 
136
136
  return (
137
137
  <Toast.Provider>
138
- <div role='none' className='fixed inset-0 flex overflow-hidden'>
138
+ <div className='fixed inset-0 flex overflow-hidden'>
139
139
  <Mosaic.Root>
140
140
  <Popover.Root open={open}>
141
141
  <Main.Root
package/src/core.ts CHANGED
@@ -3,10 +3,23 @@
3
3
  //
4
4
 
5
5
  import { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';
6
- import { AttentionPlugin } from '@dxos/plugin-attention';
7
- import { GraphPlugin } from '@dxos/plugin-graph';
8
- import { SettingsPlugin } from '@dxos/plugin-settings';
9
- import { ThemePlugin } from '@dxos/plugin-theme';
6
+ // `/testing` entrypoints re-export the plugin eagerly (without `Plugin.lazy`).
7
+ // The default `.` and `/plugin` exports wrap each plugin in a lazy stub
8
+ // (`() => import('./XPlugin')`), which webkit cannot reliably resolve under
9
+ // vite-dev: the dynamic-import promise can settle with a partially-evaluated
10
+ // namespace, throwing `ReferenceError: Cannot access 'default' before
11
+ // initialization` from the loader's `mod.default` access. Storybook runs
12
+ // inside `storybook dev` (vite-dev) and is currently the only host that hits
13
+ // this. Production hosts (composer-app via `vite preview`) keep using the
14
+ // lazy `.` exports and their associated code splitting.
15
+ //
16
+ // Use these `/testing` entrypoints from any storybook `withPluginManager`
17
+ // setup. The single-line `export * from './XPlugin'` re-exports avoid the
18
+ // dynamic-import path entirely — see e.g. `plugin-attention/src/testing.ts`.
19
+ import { AttentionPlugin } from '@dxos/plugin-attention/testing';
20
+ import { GraphPlugin } from '@dxos/plugin-graph/testing';
21
+ import { SettingsPlugin } from '@dxos/plugin-settings/testing';
22
+ import { ThemePlugin } from '@dxos/plugin-theme/testing';
10
23
  import { defaultTx } from '@dxos/ui-theme';
11
24
 
12
25
  /**
package/src/harness.ts CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  import { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';
6
6
  import { createTestApp, type TestAppOptions, type TestHarness } from '@dxos/app-framework/testing';
7
- import { AttentionPlugin } from '@dxos/plugin-attention';
8
- import { GraphPlugin } from '@dxos/plugin-graph';
9
- import { SettingsPlugin } from '@dxos/plugin-settings';
7
+ import { AttentionPlugin } from '@dxos/plugin-attention/testing';
8
+ import { GraphPlugin } from '@dxos/plugin-graph/testing';
9
+ import { SettingsPlugin } from '@dxos/plugin-settings/testing';
10
10
 
11
11
  export type ComposerTestAppOptions = Omit<TestAppOptions, 'plugins'> & {
12
12
  /** Plugins to register in addition to the Composer core plugins. */
@@ -41,7 +41,7 @@ export const createComposerTestApp = async (opts: ComposerTestAppOptions = {}):
41
41
  const { plugins = [], theme = false, ...rest } = opts;
42
42
  const core = headlessCorePlugins();
43
43
  if (theme) {
44
- const { ThemePlugin } = await import('@dxos/plugin-theme');
44
+ const { ThemePlugin } = await import('@dxos/plugin-theme/testing');
45
45
  const { defaultTx } = await import('@dxos/ui-theme');
46
46
  core.push(ThemePlugin({ tx: defaultTx }));
47
47
  }
package/src/index.ts CHANGED
@@ -2,12 +2,13 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Plugin } from '@dxos/app-framework';
6
-
7
- import { meta } from './meta';
8
-
9
5
  export * from './core';
10
6
  export * from './meta';
11
-
12
- export const StorybookPlugin = Plugin.lazy(meta, () => import('#plugin'));
13
- export type { StorybookPluginOptions } from '#plugin';
7
+ export * from './types';
8
+
9
+ // `@dxos/plugin-testing` is a testing-only package, so `StorybookPlugin` is
10
+ // exported eagerly from the `.` entrypoint (no `Plugin.lazy` indirection).
11
+ // Storybook on webkit + vite-dev cannot reliably resolve the lazy form's
12
+ // dynamic `import()` — see `./core.ts` for the underlying chunk-init issue
13
+ // — and there is no production code-splitting benefit to recover here.
14
+ export * from './StorybookPlugin';
@@ -7,7 +7,7 @@ import * as Effect from 'effect/Effect';
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
8
  import { Operation } from '@dxos/compute';
9
9
 
10
- import { type LayoutStateProps } from '../types';
10
+ import { StorybookCapabilities } from '../types';
11
11
  import { updateState } from './update-state';
12
12
 
13
13
  const handler: Operation.WithHandler<typeof LayoutOperation.UpdatePopover> = LayoutOperation.UpdatePopover.pipe(
@@ -15,7 +15,7 @@ const handler: Operation.WithHandler<typeof LayoutOperation.UpdatePopover> = Lay
15
15
  Effect.fnUntraced(function* (input) {
16
16
  const { subject, state, side, kind, props } = input;
17
17
  yield* updateState(() => {
18
- const base: Partial<LayoutStateProps> = {
18
+ const base: Partial<StorybookCapabilities.LayoutStateProps> = {
19
19
  popoverKind: kind ?? 'base',
20
20
  popoverTitle: kind === 'card' ? input.title : undefined,
21
21
  popoverContent:
@@ -6,12 +6,14 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
8
 
9
- import { LayoutState, type LayoutStateProps } from '../types';
9
+ import { StorybookCapabilities } from '../types';
10
10
 
11
- export const updateState = (fn: (state: LayoutStateProps) => Partial<LayoutStateProps>) =>
11
+ export const updateState = (
12
+ fn: (state: StorybookCapabilities.LayoutStateProps) => Partial<StorybookCapabilities.LayoutStateProps>,
13
+ ) =>
12
14
  Effect.gen(function* () {
13
15
  const registry = yield* Capability.get(Capabilities.AtomRegistry);
14
- const stateAtom = yield* Capability.get(LayoutState);
16
+ const stateAtom = yield* Capability.get(StorybookCapabilities.LayoutState);
15
17
  const current = registry.get(stateAtom);
16
18
  registry.set(stateAtom, { ...current, ...fn(current) });
17
19
  });
package/src/plugin.ts ADDED
@@ -0,0 +1,12 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const StorybookPlugin = Plugin.lazy(meta, () => import('#plugin'));
10
+ export type { StorybookPluginOptions } from '#plugin';
11
+
12
+ export { TestingOperationHandlerSet } from './operations';
@@ -2,6 +2,8 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
+ // @import-as-namespace
6
+
5
7
  import { type Atom } from '@effect-atom/atom-react';
6
8
 
7
9
  import { Capability } from '@dxos/app-framework';
@@ -2,4 +2,4 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './capabilities';
5
+ export * as StorybookCapabilities from './StorybookCapabilities';
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/harness.ts"],
4
- "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';\nimport { createTestApp, type TestAppOptions, type TestHarness } from '@dxos/app-framework/testing';\nimport { AttentionPlugin } from '@dxos/plugin-attention';\nimport { GraphPlugin } from '@dxos/plugin-graph';\nimport { SettingsPlugin } from '@dxos/plugin-settings';\n\nexport type ComposerTestAppOptions = Omit<TestAppOptions, 'plugins'> & {\n /** Plugins to register in addition to the Composer core plugins. */\n plugins?: Plugin.Plugin[];\n /**\n * Whether to include `ThemePlugin` in the core plugin set.\n * Defaults to `false` — `ThemePlugin` requires a browser DOM and breaks Node-only tests.\n * Set to `true` (with jsdom/happy-dom) when rendering React surfaces.\n */\n theme?: boolean;\n};\n\n/**\n * Headless core plugins for the test harness — the subset of `corePlugins()`\n * that can be activated without a browser DOM.\n */\nconst headlessCorePlugins = (): Plugin.Plugin[] => [\n AttentionPlugin(),\n GraphPlugin(),\n OperationPlugin(),\n RuntimePlugin(),\n SettingsPlugin(),\n];\n\n/**\n * Creates a TestHarness pre-loaded with the Composer core plugins\n * (Attention, Graph, Operation, Runtime, Settings, optionally Theme).\n *\n * For a ClientPlugin-backed harness, pass `ClientPlugin({ ... })` via `plugins`.\n */\nexport const createComposerTestApp = async (opts: ComposerTestAppOptions = {}): Promise<TestHarness> => {\n const { plugins = [], theme = false, ...rest } = opts;\n const core = headlessCorePlugins();\n if (theme) {\n const { ThemePlugin } = await import('@dxos/plugin-theme');\n const { defaultTx } = await import('@dxos/ui-theme');\n core.push(ThemePlugin({ tx: defaultTx }));\n }\n return createTestApp({\n ...rest,\n plugins: [...core, ...plugins],\n });\n};\n"],
5
- "mappings": ";AAIA,SAASA,iBAA8BC,qBAAqB;AAC5D,SAASC,qBAA4D;AACrE,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAiB/B,IAAMC,sBAAsB,MAAuB;EACjDH,gBAAAA;EACAC,YAAAA;EACAJ,gBAAAA;EACAC,cAAAA;EACAI,eAAAA;;AASK,IAAME,wBAAwB,OAAOC,OAA+B,CAAC,MAAC;AAC3E,QAAM,EAAEC,UAAU,CAAA,GAAIC,QAAQ,OAAO,GAAGC,KAAAA,IAASH;AACjD,QAAMI,OAAON,oBAAAA;AACb,MAAII,OAAO;AACT,UAAM,EAAEG,YAAW,IAAK,MAAM,OAAO,oBAAA;AACrC,UAAM,EAAEC,UAAS,IAAK,MAAM,OAAO,gBAAA;AACnCF,SAAKG,KAAKF,YAAY;MAAEG,IAAIF;IAAU,CAAA,CAAA;EACxC;AACA,SAAOZ,cAAc;IACnB,GAAGS;IACHF,SAAS;SAAIG;SAASH;;EACxB,CAAA;AACF;",
6
- "names": ["OperationPlugin", "RuntimePlugin", "createTestApp", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "headlessCorePlugins", "createComposerTestApp", "opts", "plugins", "theme", "rest", "core", "ThemePlugin", "defaultTx", "push", "tx"]
7
- }
@@ -1,41 +0,0 @@
1
- // src/index.ts
2
- import { Plugin } from "@dxos/app-framework";
3
-
4
- // src/meta.ts
5
- import { trim } from "@dxos/util";
6
- var meta = {
7
- id: "org.dxos.plugin.storybook-layout",
8
- name: "Storybook",
9
- description: trim`
10
- Development layout optimized for Storybook component testing and documentation.
11
- Provides specialized views for component development and design system exploration.
12
- `,
13
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-testing"
14
- };
15
-
16
- // src/core.ts
17
- import { OperationPlugin, RuntimePlugin } from "@dxos/app-framework";
18
- import { AttentionPlugin } from "@dxos/plugin-attention";
19
- import { GraphPlugin } from "@dxos/plugin-graph";
20
- import { SettingsPlugin } from "@dxos/plugin-settings";
21
- import { ThemePlugin } from "@dxos/plugin-theme";
22
- import { defaultTx } from "@dxos/ui-theme";
23
- var corePlugins = () => [
24
- AttentionPlugin(),
25
- GraphPlugin(),
26
- OperationPlugin(),
27
- RuntimePlugin(),
28
- SettingsPlugin(),
29
- ThemePlugin({
30
- tx: defaultTx
31
- })
32
- ];
33
-
34
- // src/index.ts
35
- var StorybookPlugin = Plugin.lazy(meta, () => import("#plugin"));
36
- export {
37
- StorybookPlugin,
38
- corePlugins,
39
- meta
40
- };
41
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/index.ts", "../../../src/meta.ts", "../../../src/core.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport * from './core';\nexport * from './meta';\n\nexport const StorybookPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport type { StorybookPluginOptions } from '#plugin';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.storybook-layout',\n name: 'Storybook',\n description: trim`\n Development layout optimized for Storybook component testing and documentation.\n Provides specialized views for component development and design system exploration.\n `,\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-testing',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';\nimport { AttentionPlugin } from '@dxos/plugin-attention';\nimport { GraphPlugin } from '@dxos/plugin-graph';\nimport { SettingsPlugin } from '@dxos/plugin-settings';\nimport { ThemePlugin } from '@dxos/plugin-theme';\nimport { defaultTx } from '@dxos/ui-theme';\n\n/**\n * Core plugins for testing/storybook environments.\n * NOTE: Does not include SpacePlugin to avoid circular dependencies.\n * Import SpacePlugin directly in your stories if needed.\n */\nexport const corePlugins = (): Plugin.Plugin[] => [\n AttentionPlugin(),\n GraphPlugin(),\n OperationPlugin(),\n RuntimePlugin(),\n SettingsPlugin(),\n ThemePlugin({ tx: defaultTx }),\n];\n"],
5
- "mappings": ";AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,QAAQ;AACV;;;ACXA,SAASC,iBAA8BC,qBAAqB;AAC5D,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAC/B,SAASC,mBAAmB;AAC5B,SAASC,iBAAiB;AAOnB,IAAMC,cAAc,MAAuB;EAChDL,gBAAAA;EACAC,YAAAA;EACAH,gBAAAA;EACAC,cAAAA;EACAG,eAAAA;EACAC,YAAY;IAAEG,IAAIF;EAAU,CAAA;;;;AFXvB,IAAMG,kBAAkBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
- "names": ["Plugin", "trim", "meta", "id", "name", "description", "source", "OperationPlugin", "RuntimePlugin", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "ThemePlugin", "defaultTx", "corePlugins", "tx", "StorybookPlugin", "Plugin", "lazy", "meta"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1576,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/core.ts":{"bytes":2575,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1102,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/core.ts","kind":"import-statement","original":"./core"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/harness.ts":{"bytes":5175,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"dynamic-import","external":true},{"path":"@dxos/ui-theme","kind":"dynamic-import","external":true}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2428},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["StorybookPlugin","corePlugins","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":112},"src/meta.ts":{"bytesInOutput":395},"src/core.ts":{"bytesInOutput":494}},"bytes":1154},"dist/lib/browser/harness.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2767},"dist/lib/browser/harness.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"dynamic-import","external":true},{"path":"@dxos/ui-theme","kind":"dynamic-import","external":true}],"exports":["createComposerTestApp"],"entryPoint":"src/harness.ts","inputs":{"src/harness.ts":{"bytesInOutput":873}},"bytes":964}}}
@@ -1,37 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/harness.ts
4
- import { OperationPlugin, RuntimePlugin } from "@dxos/app-framework";
5
- import { createTestApp } from "@dxos/app-framework/testing";
6
- import { AttentionPlugin } from "@dxos/plugin-attention";
7
- import { GraphPlugin } from "@dxos/plugin-graph";
8
- import { SettingsPlugin } from "@dxos/plugin-settings";
9
- var headlessCorePlugins = () => [
10
- AttentionPlugin(),
11
- GraphPlugin(),
12
- OperationPlugin(),
13
- RuntimePlugin(),
14
- SettingsPlugin()
15
- ];
16
- var createComposerTestApp = async (opts = {}) => {
17
- const { plugins = [], theme = false, ...rest } = opts;
18
- const core = headlessCorePlugins();
19
- if (theme) {
20
- const { ThemePlugin } = await import("@dxos/plugin-theme");
21
- const { defaultTx } = await import("@dxos/ui-theme");
22
- core.push(ThemePlugin({
23
- tx: defaultTx
24
- }));
25
- }
26
- return createTestApp({
27
- ...rest,
28
- plugins: [
29
- ...core,
30
- ...plugins
31
- ]
32
- });
33
- };
34
- export {
35
- createComposerTestApp
36
- };
37
- //# sourceMappingURL=harness.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/harness.ts"],
4
- "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';\nimport { createTestApp, type TestAppOptions, type TestHarness } from '@dxos/app-framework/testing';\nimport { AttentionPlugin } from '@dxos/plugin-attention';\nimport { GraphPlugin } from '@dxos/plugin-graph';\nimport { SettingsPlugin } from '@dxos/plugin-settings';\n\nexport type ComposerTestAppOptions = Omit<TestAppOptions, 'plugins'> & {\n /** Plugins to register in addition to the Composer core plugins. */\n plugins?: Plugin.Plugin[];\n /**\n * Whether to include `ThemePlugin` in the core plugin set.\n * Defaults to `false` — `ThemePlugin` requires a browser DOM and breaks Node-only tests.\n * Set to `true` (with jsdom/happy-dom) when rendering React surfaces.\n */\n theme?: boolean;\n};\n\n/**\n * Headless core plugins for the test harness — the subset of `corePlugins()`\n * that can be activated without a browser DOM.\n */\nconst headlessCorePlugins = (): Plugin.Plugin[] => [\n AttentionPlugin(),\n GraphPlugin(),\n OperationPlugin(),\n RuntimePlugin(),\n SettingsPlugin(),\n];\n\n/**\n * Creates a TestHarness pre-loaded with the Composer core plugins\n * (Attention, Graph, Operation, Runtime, Settings, optionally Theme).\n *\n * For a ClientPlugin-backed harness, pass `ClientPlugin({ ... })` via `plugins`.\n */\nexport const createComposerTestApp = async (opts: ComposerTestAppOptions = {}): Promise<TestHarness> => {\n const { plugins = [], theme = false, ...rest } = opts;\n const core = headlessCorePlugins();\n if (theme) {\n const { ThemePlugin } = await import('@dxos/plugin-theme');\n const { defaultTx } = await import('@dxos/ui-theme');\n core.push(ThemePlugin({ tx: defaultTx }));\n }\n return createTestApp({\n ...rest,\n plugins: [...core, ...plugins],\n });\n};\n"],
5
- "mappings": ";;;AAIA,SAASA,iBAA8BC,qBAAqB;AAC5D,SAASC,qBAA4D;AACrE,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAiB/B,IAAMC,sBAAsB,MAAuB;EACjDH,gBAAAA;EACAC,YAAAA;EACAJ,gBAAAA;EACAC,cAAAA;EACAI,eAAAA;;AASK,IAAME,wBAAwB,OAAOC,OAA+B,CAAC,MAAC;AAC3E,QAAM,EAAEC,UAAU,CAAA,GAAIC,QAAQ,OAAO,GAAGC,KAAAA,IAASH;AACjD,QAAMI,OAAON,oBAAAA;AACb,MAAII,OAAO;AACT,UAAM,EAAEG,YAAW,IAAK,MAAM,OAAO,oBAAA;AACrC,UAAM,EAAEC,UAAS,IAAK,MAAM,OAAO,gBAAA;AACnCF,SAAKG,KAAKF,YAAY;MAAEG,IAAIF;IAAU,CAAA,CAAA;EACxC;AACA,SAAOZ,cAAc;IACnB,GAAGS;IACHF,SAAS;SAAIG;SAASH;;EACxB,CAAA;AACF;",
6
- "names": ["OperationPlugin", "RuntimePlugin", "createTestApp", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "headlessCorePlugins", "createComposerTestApp", "opts", "plugins", "theme", "rest", "core", "ThemePlugin", "defaultTx", "push", "tx"]
7
- }
@@ -1,43 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/index.ts
4
- import { Plugin } from "@dxos/app-framework";
5
-
6
- // src/meta.ts
7
- import { trim } from "@dxos/util";
8
- var meta = {
9
- id: "org.dxos.plugin.storybook-layout",
10
- name: "Storybook",
11
- description: trim`
12
- Development layout optimized for Storybook component testing and documentation.
13
- Provides specialized views for component development and design system exploration.
14
- `,
15
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-testing"
16
- };
17
-
18
- // src/core.ts
19
- import { OperationPlugin, RuntimePlugin } from "@dxos/app-framework";
20
- import { AttentionPlugin } from "@dxos/plugin-attention";
21
- import { GraphPlugin } from "@dxos/plugin-graph";
22
- import { SettingsPlugin } from "@dxos/plugin-settings";
23
- import { ThemePlugin } from "@dxos/plugin-theme";
24
- import { defaultTx } from "@dxos/ui-theme";
25
- var corePlugins = () => [
26
- AttentionPlugin(),
27
- GraphPlugin(),
28
- OperationPlugin(),
29
- RuntimePlugin(),
30
- SettingsPlugin(),
31
- ThemePlugin({
32
- tx: defaultTx
33
- })
34
- ];
35
-
36
- // src/index.ts
37
- var StorybookPlugin = Plugin.lazy(meta, () => import("#plugin"));
38
- export {
39
- StorybookPlugin,
40
- corePlugins,
41
- meta
42
- };
43
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/index.ts", "../../../src/meta.ts", "../../../src/core.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport * from './core';\nexport * from './meta';\n\nexport const StorybookPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport type { StorybookPluginOptions } from '#plugin';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.storybook-layout',\n name: 'Storybook',\n description: trim`\n Development layout optimized for Storybook component testing and documentation.\n Provides specialized views for component development and design system exploration.\n `,\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-testing',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';\nimport { AttentionPlugin } from '@dxos/plugin-attention';\nimport { GraphPlugin } from '@dxos/plugin-graph';\nimport { SettingsPlugin } from '@dxos/plugin-settings';\nimport { ThemePlugin } from '@dxos/plugin-theme';\nimport { defaultTx } from '@dxos/ui-theme';\n\n/**\n * Core plugins for testing/storybook environments.\n * NOTE: Does not include SpacePlugin to avoid circular dependencies.\n * Import SpacePlugin directly in your stories if needed.\n */\nexport const corePlugins = (): Plugin.Plugin[] => [\n AttentionPlugin(),\n GraphPlugin(),\n OperationPlugin(),\n RuntimePlugin(),\n SettingsPlugin(),\n ThemePlugin({ tx: defaultTx }),\n];\n"],
5
- "mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,QAAQ;AACV;;;ACXA,SAASC,iBAA8BC,qBAAqB;AAC5D,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAC/B,SAASC,mBAAmB;AAC5B,SAASC,iBAAiB;AAOnB,IAAMC,cAAc,MAAuB;EAChDL,gBAAAA;EACAC,YAAAA;EACAH,gBAAAA;EACAC,cAAAA;EACAG,eAAAA;EACAC,YAAY;IAAEG,IAAIF;EAAU,CAAA;;;;AFXvB,IAAMG,kBAAkBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
- "names": ["Plugin", "trim", "meta", "id", "name", "description", "source", "OperationPlugin", "RuntimePlugin", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "ThemePlugin", "defaultTx", "corePlugins", "tx", "StorybookPlugin", "Plugin", "lazy", "meta"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1576,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/core.ts":{"bytes":2575,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1102,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/core.ts","kind":"import-statement","original":"./core"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/harness.ts":{"bytes":5175,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"dynamic-import","external":true},{"path":"@dxos/ui-theme","kind":"dynamic-import","external":true}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2430},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["StorybookPlugin","corePlugins","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":112},"src/meta.ts":{"bytesInOutput":395},"src/core.ts":{"bytesInOutput":494}},"bytes":1247},"dist/lib/node-esm/harness.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2769},"dist/lib/node-esm/harness.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"dynamic-import","external":true},{"path":"@dxos/ui-theme","kind":"dynamic-import","external":true}],"exports":["createComposerTestApp"],"entryPoint":"src/harness.ts","inputs":{"src/harness.ts":{"bytesInOutput":873}},"bytes":1057}}}
@@ -1 +0,0 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;IACnD,yBAAyB,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;IAEhE,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,GAAG,CAAC;IAEpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,cAAc,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACrC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,cAAc,CAAC,EAAE,GAAG,CAAC;IAErB,MAAM,EAAE,eAAe,CAAC,KAAK,EAAE,CAAC;IAEhC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,WAAW,4EAAuE,CAAC"}