@dxos/plugin-testing 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51

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 (62) hide show
  1. package/dist/lib/browser/harness.mjs +31 -3
  2. package/dist/lib/browser/harness.mjs.map +4 -4
  3. package/dist/lib/browser/index.mjs +0 -5
  4. package/dist/lib/browser/index.mjs.map +2 -2
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/node-esm/harness.mjs +32 -3
  7. package/dist/lib/node-esm/harness.mjs.map +4 -4
  8. package/dist/lib/node-esm/index.mjs +0 -4
  9. package/dist/lib/node-esm/index.mjs.map +2 -2
  10. package/dist/lib/node-esm/meta.json +1 -1
  11. package/dist/types/src/capabilities/index.d.ts +1 -1
  12. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  13. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  14. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  15. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  16. package/dist/types/src/components/Layout/Layout.d.ts.map +1 -1
  17. package/dist/types/src/harness.d.ts.map +1 -1
  18. package/dist/types/src/index.d.ts +0 -1
  19. package/dist/types/src/index.d.ts.map +1 -1
  20. package/dist/types/src/operations/add-toast.d.ts +1 -1
  21. package/dist/types/src/operations/add-toast.d.ts.map +1 -1
  22. package/dist/types/src/operations/close.d.ts +1 -1
  23. package/dist/types/src/operations/close.d.ts.map +1 -1
  24. package/dist/types/src/operations/index.d.ts +1 -1
  25. package/dist/types/src/operations/index.d.ts.map +1 -1
  26. package/dist/types/src/operations/open.d.ts +1 -1
  27. package/dist/types/src/operations/open.d.ts.map +1 -1
  28. package/dist/types/src/operations/scroll-into-view.d.ts +1 -1
  29. package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -1
  30. package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
  31. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
  32. package/dist/types/src/operations/switch-workspace.d.ts +1 -1
  33. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
  34. package/dist/types/src/operations/update-complementary.d.ts +1 -1
  35. package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
  36. package/dist/types/src/operations/update-dialog.d.ts +1 -1
  37. package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
  38. package/dist/types/src/operations/update-popover.d.ts +1 -1
  39. package/dist/types/src/operations/update-popover.d.ts.map +1 -1
  40. package/dist/types/src/operations/update-sidebar.d.ts +1 -1
  41. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
  42. package/dist/types/src/operations/update-state.d.ts.map +1 -1
  43. package/dist/types/tsconfig.tsbuildinfo +1 -1
  44. package/package.json +15 -15
  45. package/src/capabilities/index.ts +1 -1
  46. package/src/capabilities/operation-handler.ts +1 -1
  47. package/src/index.ts +0 -1
  48. package/src/operations/add-toast.ts +1 -1
  49. package/src/operations/close.ts +1 -1
  50. package/src/operations/index.ts +1 -1
  51. package/src/operations/open.ts +1 -1
  52. package/src/operations/scroll-into-view.ts +1 -1
  53. package/src/operations/set-layout-mode.ts +1 -1
  54. package/src/operations/switch-workspace.ts +1 -1
  55. package/src/operations/update-complementary.ts +1 -1
  56. package/src/operations/update-dialog.ts +1 -1
  57. package/src/operations/update-popover.ts +1 -1
  58. package/src/operations/update-sidebar.ts +1 -1
  59. package/dist/lib/browser/chunk-G2BI2IZM.mjs +0 -36
  60. package/dist/lib/browser/chunk-G2BI2IZM.mjs.map +0 -7
  61. package/dist/lib/node-esm/chunk-U342VJPQ.mjs +0 -38
  62. package/dist/lib/node-esm/chunk-U342VJPQ.mjs.map +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-testing",
3
- "version": "0.8.4-main.422d1c7879",
3
+ "version": "0.8.4-main.51f1e5ca51",
4
4
  "description": "Plugin testing utils",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -40,15 +40,15 @@
40
40
  "dependencies": {
41
41
  "@effect-atom/atom": "^0.5.1",
42
42
  "@effect-atom/atom-react": "^0.5.0",
43
- "@dxos/app-toolkit": "0.8.4-main.422d1c7879",
44
- "@dxos/app-framework": "0.8.4-main.422d1c7879",
45
- "@dxos/plugin-graph": "0.8.4-main.422d1c7879",
46
- "@dxos/plugin-attention": "0.8.4-main.422d1c7879",
47
- "@dxos/operation": "0.8.4-main.422d1c7879",
48
- "@dxos/plugin-settings": "0.8.4-main.422d1c7879",
49
- "@dxos/plugin-theme": "0.8.4-main.422d1c7879",
50
- "@dxos/react-ui-mosaic": "0.8.4-main.422d1c7879",
51
- "@dxos/util": "0.8.4-main.422d1c7879"
43
+ "@dxos/app-framework": "0.8.4-main.51f1e5ca51",
44
+ "@dxos/plugin-graph": "0.8.4-main.51f1e5ca51",
45
+ "@dxos/compute": "0.8.4-main.51f1e5ca51",
46
+ "@dxos/app-toolkit": "0.8.4-main.51f1e5ca51",
47
+ "@dxos/plugin-attention": "0.8.4-main.51f1e5ca51",
48
+ "@dxos/plugin-settings": "0.8.4-main.51f1e5ca51",
49
+ "@dxos/plugin-theme": "0.8.4-main.51f1e5ca51",
50
+ "@dxos/react-ui-mosaic": "0.8.4-main.51f1e5ca51",
51
+ "@dxos/util": "0.8.4-main.51f1e5ca51"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/react": "~19.2.7",
@@ -56,16 +56,16 @@
56
56
  "effect": "3.20.0",
57
57
  "react": "~19.2.3",
58
58
  "react-dom": "~19.2.3",
59
- "vite": "^7.1.11",
60
- "@dxos/react-ui": "0.8.4-main.422d1c7879",
61
- "@dxos/ui-theme": "0.8.4-main.422d1c7879"
59
+ "vite": "^8.0.10",
60
+ "@dxos/react-ui": "0.8.4-main.51f1e5ca51",
61
+ "@dxos/ui-theme": "0.8.4-main.51f1e5ca51"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "effect": "3.20.0",
65
65
  "react": "~19.2.3",
66
66
  "react-dom": "~19.2.3",
67
- "@dxos/react-ui": "0.8.4-main.422d1c7879",
68
- "@dxos/ui-theme": "0.8.4-main.422d1c7879"
67
+ "@dxos/react-ui": "0.8.4-main.51f1e5ca51",
68
+ "@dxos/ui-theme": "0.8.4-main.51f1e5ca51"
69
69
  },
70
70
  "publishConfig": {
71
71
  "access": "public"
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Capability } from '@dxos/app-framework';
6
- import { OperationHandlerSet } from '@dxos/operation';
6
+ import { OperationHandlerSet } from '@dxos/compute';
7
7
 
8
8
  export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
9
9
  'OperationHandler',
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
- import type { OperationHandlerSet } from '@dxos/operation';
8
+ import type { OperationHandlerSet } from '@dxos/compute';
9
9
 
10
10
  import { TestingOperationHandlerSet } from '#operations';
11
11
 
package/src/index.ts CHANGED
@@ -3,7 +3,6 @@
3
3
  //
4
4
 
5
5
  export * from './core';
6
- export * from './harness';
7
6
  export * from './meta';
8
7
 
9
8
  export * from './StorybookPlugin';
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { updateState } from './update-state';
11
11
 
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  const handler: Operation.WithHandler<typeof LayoutOperation.Close> = LayoutOperation.Close.pipe(
11
11
  Operation.withHandler(() => Effect.void),
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { OperationHandlerSet } from '@dxos/operation';
5
+ import { OperationHandlerSet } from '@dxos/compute';
6
6
 
7
7
  export const TestingOperationHandlerSet = OperationHandlerSet.lazy(
8
8
  () => import('./add-toast'),
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  const handler: Operation.WithHandler<typeof LayoutOperation.Open> = LayoutOperation.Open.pipe(
11
11
  Operation.withHandler(
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  const handler: Operation.WithHandler<typeof LayoutOperation.ScrollIntoView> = LayoutOperation.ScrollIntoView.pipe(
11
11
  Operation.withHandler(() => Effect.void),
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  const handler: Operation.WithHandler<typeof LayoutOperation.SetLayoutMode> = LayoutOperation.SetLayoutMode.pipe(
11
11
  Operation.withHandler(() => Effect.void),
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { updateState } from './update-state';
11
11
 
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { updateState } from './update-state';
11
11
 
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { updateState } from './update-state';
11
11
 
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { type LayoutStateProps } from '../types';
11
11
  import { updateState } from './update-state';
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { updateState } from './update-state';
11
11
 
@@ -1,36 +0,0 @@
1
- // src/harness.ts
2
- import { OperationPlugin, RuntimePlugin } from "@dxos/app-framework";
3
- import { createTestApp } from "@dxos/app-framework/testing";
4
- import { AttentionPlugin } from "@dxos/plugin-attention";
5
- import { GraphPlugin } from "@dxos/plugin-graph";
6
- import { SettingsPlugin } from "@dxos/plugin-settings";
7
- var headlessCorePlugins = () => [
8
- AttentionPlugin(),
9
- GraphPlugin(),
10
- OperationPlugin(),
11
- RuntimePlugin(),
12
- SettingsPlugin()
13
- ];
14
- var createComposerTestApp = async (opts = {}) => {
15
- const { plugins = [], theme = false, ...rest } = opts;
16
- const core = headlessCorePlugins();
17
- if (theme) {
18
- const { ThemePlugin } = await import("@dxos/plugin-theme");
19
- const { defaultTx } = await import("@dxos/ui-theme");
20
- core.push(ThemePlugin({
21
- tx: defaultTx
22
- }));
23
- }
24
- return createTestApp({
25
- ...rest,
26
- plugins: [
27
- ...core,
28
- ...plugins
29
- ]
30
- });
31
- };
32
-
33
- export {
34
- createComposerTestApp
35
- };
36
- //# sourceMappingURL=chunk-G2BI2IZM.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;EACjDC,gBAAAA;EACAC,YAAAA;EACAC,gBAAAA;EACAC,cAAAA;EACAC,eAAAA;;AASK,IAAMC,wBAAwB,OAAOC,OAA+B,CAAC,MAAC;AAC3E,QAAM,EAAEC,UAAU,CAAA,GAAIC,QAAQ,OAAO,GAAGC,KAAAA,IAASH;AACjD,QAAMI,OAAOX,oBAAAA;AACb,MAAIS,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,SAAOG,cAAc;IACnB,GAAGN;IACHF,SAAS;SAAIG;SAASH;;EACxB,CAAA;AACF;",
6
- "names": ["OperationPlugin", "RuntimePlugin", "createTestApp", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "headlessCorePlugins", "AttentionPlugin", "GraphPlugin", "OperationPlugin", "RuntimePlugin", "SettingsPlugin", "createComposerTestApp", "opts", "plugins", "theme", "rest", "core", "ThemePlugin", "defaultTx", "push", "tx", "createTestApp"]
7
- }
@@ -1,38 +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
-
35
- export {
36
- createComposerTestApp
37
- };
38
- //# sourceMappingURL=chunk-U342VJPQ.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;EACjDC,gBAAAA;EACAC,YAAAA;EACAC,gBAAAA;EACAC,cAAAA;EACAC,eAAAA;;AASK,IAAMC,wBAAwB,OAAOC,OAA+B,CAAC,MAAC;AAC3E,QAAM,EAAEC,UAAU,CAAA,GAAIC,QAAQ,OAAO,GAAGC,KAAAA,IAASH;AACjD,QAAMI,OAAOX,oBAAAA;AACb,MAAIS,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,SAAOG,cAAc;IACnB,GAAGN;IACHF,SAAS;SAAIG;SAASH;;EACxB,CAAA;AACF;",
6
- "names": ["OperationPlugin", "RuntimePlugin", "createTestApp", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "headlessCorePlugins", "AttentionPlugin", "GraphPlugin", "OperationPlugin", "RuntimePlugin", "SettingsPlugin", "createComposerTestApp", "opts", "plugins", "theme", "rest", "core", "ThemePlugin", "defaultTx", "push", "tx", "createTestApp"]
7
- }