@dxos/plugin-testing 0.9.0 → 0.9.1-staging.ee54ba693a

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 (51) hide show
  1. package/dist/lib/neutral/{add-toast-62QYCQYN.mjs → add-toast-FAFD7SFC.mjs} +3 -3
  2. package/dist/lib/neutral/{chunk-D2WSPMET.mjs → chunk-6JK2MYJW.mjs} +2 -2
  3. package/dist/lib/neutral/{chunk-NZ2VT6N2.mjs → chunk-FCEWZHUT.mjs} +2 -2
  4. package/dist/lib/neutral/{chunk-NZ2VT6N2.mjs.map → chunk-FCEWZHUT.mjs.map} +3 -3
  5. package/dist/lib/neutral/chunk-GDMPQHRP.mjs +26 -0
  6. package/dist/lib/neutral/chunk-GDMPQHRP.mjs.map +7 -0
  7. package/dist/lib/neutral/chunk-MYIMDRVN.mjs +8 -0
  8. package/dist/lib/neutral/components/index.mjs +5 -5
  9. package/dist/lib/neutral/components/index.mjs.map +3 -3
  10. package/dist/lib/neutral/harness.mjs.map +2 -2
  11. package/dist/lib/neutral/index.mjs +2 -2
  12. package/dist/lib/neutral/meta.json +1 -1
  13. package/dist/lib/neutral/meta.mjs +1 -1
  14. package/dist/lib/neutral/operations/index.mjs +1 -1
  15. package/dist/lib/neutral/plugin.mjs +2 -2
  16. package/dist/lib/neutral/{switch-workspace-2YEUYICS.mjs → switch-workspace-NZQAADOK.mjs} +3 -3
  17. package/dist/lib/neutral/types/index.mjs +1 -1
  18. package/dist/lib/neutral/{update-complementary-JARHXMZF.mjs → update-complementary-AHNSCP2O.mjs} +3 -3
  19. package/dist/lib/neutral/{update-dialog-UVNAF5JC.mjs → update-dialog-2VZ3OCUB.mjs} +3 -3
  20. package/dist/lib/neutral/{update-popover-QLS3RJ3D.mjs → update-popover-MNHWRUNS.mjs} +3 -3
  21. package/dist/lib/neutral/{update-sidebar-ZXQI35KQ.mjs → update-sidebar-UYW5UT3H.mjs} +3 -3
  22. package/dist/types/dx.config.d.ts +28 -0
  23. package/dist/types/dx.config.d.ts.map +1 -0
  24. package/dist/types/src/capabilities/index.d.ts +1 -10
  25. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  26. package/dist/types/src/capabilities/state.d.ts +1 -11
  27. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  28. package/dist/types/src/harness.d.ts +6 -0
  29. package/dist/types/src/harness.d.ts.map +1 -1
  30. package/dist/types/src/meta.d.ts +32 -2
  31. package/dist/types/src/meta.d.ts.map +1 -1
  32. package/dist/types/src/types/StorybookCapabilities.d.ts +1 -1
  33. package/dist/types/src/types/StorybookCapabilities.d.ts.map +1 -1
  34. package/dist/types/tsconfig.tsbuildinfo +1 -1
  35. package/dx.config.ts +19 -0
  36. package/package.json +24 -23
  37. package/src/components/Layout/Layout.tsx +5 -5
  38. package/src/harness.ts +7 -1
  39. package/src/meta.ts +3 -12
  40. package/src/types/StorybookCapabilities.ts +2 -2
  41. package/dist/lib/neutral/chunk-HI5MWUZZ.mjs +0 -19
  42. package/dist/lib/neutral/chunk-HI5MWUZZ.mjs.map +0 -7
  43. package/dist/lib/neutral/chunk-VSPQMHRB.mjs +0 -8
  44. /package/dist/lib/neutral/{add-toast-62QYCQYN.mjs.map → add-toast-FAFD7SFC.mjs.map} +0 -0
  45. /package/dist/lib/neutral/{chunk-D2WSPMET.mjs.map → chunk-6JK2MYJW.mjs.map} +0 -0
  46. /package/dist/lib/neutral/{chunk-VSPQMHRB.mjs.map → chunk-MYIMDRVN.mjs.map} +0 -0
  47. /package/dist/lib/neutral/{switch-workspace-2YEUYICS.mjs.map → switch-workspace-NZQAADOK.mjs.map} +0 -0
  48. /package/dist/lib/neutral/{update-complementary-JARHXMZF.mjs.map → update-complementary-AHNSCP2O.mjs.map} +0 -0
  49. /package/dist/lib/neutral/{update-dialog-UVNAF5JC.mjs.map → update-dialog-2VZ3OCUB.mjs.map} +0 -0
  50. /package/dist/lib/neutral/{update-popover-QLS3RJ3D.mjs.map → update-popover-MNHWRUNS.mjs.map} +0 -0
  51. /package/dist/lib/neutral/{update-sidebar-ZXQI35KQ.mjs.map → update-sidebar-UYW5UT3H.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  updateState
3
- } from "./chunk-D2WSPMET.mjs";
4
- import "./chunk-NZ2VT6N2.mjs";
3
+ } from "./chunk-6JK2MYJW.mjs";
4
+ import "./chunk-FCEWZHUT.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/update-dialog.ts
@@ -25,4 +25,4 @@ var update_dialog_default = handler;
25
25
  export {
26
26
  update_dialog_default as default
27
27
  };
28
- //# sourceMappingURL=update-dialog-UVNAF5JC.mjs.map
28
+ //# sourceMappingURL=update-dialog-2VZ3OCUB.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  updateState
3
- } from "./chunk-D2WSPMET.mjs";
4
- import "./chunk-NZ2VT6N2.mjs";
3
+ } from "./chunk-6JK2MYJW.mjs";
4
+ import "./chunk-FCEWZHUT.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/update-popover.ts
@@ -43,4 +43,4 @@ var update_popover_default = handler;
43
43
  export {
44
44
  update_popover_default as default
45
45
  };
46
- //# sourceMappingURL=update-popover-QLS3RJ3D.mjs.map
46
+ //# sourceMappingURL=update-popover-MNHWRUNS.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  updateState
3
- } from "./chunk-D2WSPMET.mjs";
4
- import "./chunk-NZ2VT6N2.mjs";
3
+ } from "./chunk-6JK2MYJW.mjs";
4
+ import "./chunk-FCEWZHUT.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/update-sidebar.ts
@@ -23,4 +23,4 @@ var update_sidebar_default = handler;
23
23
  export {
24
24
  update_sidebar_default as default
25
25
  };
26
- //# sourceMappingURL=update-sidebar-ZXQI35KQ.mjs.map
26
+ //# sourceMappingURL=update-sidebar-UYW5UT3H.mjs.map
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ readonly plugin: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly author?: string | undefined;
7
+ readonly homePage?: string | undefined;
8
+ readonly source?: string | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly tags?: readonly string[] | undefined;
14
+ readonly icon?: {
15
+ readonly key: string;
16
+ readonly hue?: string | undefined;
17
+ } | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly dependsOn?: readonly string[] | undefined;
20
+ };
21
+ readonly publish?: {
22
+ readonly buildCommand?: string | undefined;
23
+ readonly outputDirectory?: string | undefined;
24
+ readonly assetBaseUrl?: string | undefined;
25
+ } | undefined;
26
+ };
27
+ export default _default;
28
+ //# sourceMappingURL=dx.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
@@ -3,14 +3,5 @@ import { OperationHandlerSet } from '@dxos/compute';
3
3
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
4
4
  export declare const State: Capability.LazyCapability<{
5
5
  initialState?: Partial<import("../types/StorybookCapabilities").LayoutStateProps>;
6
- } | undefined, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<import("../types/StorybookCapabilities").LayoutStateProps, import("../types/StorybookCapabilities").LayoutStateProps>>>, Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Atom<Readonly<{
7
- mode: string;
8
- dialogOpen: boolean;
9
- sidebarOpen: boolean;
10
- complementarySidebarOpen: boolean;
11
- workspace: string;
12
- active: string[];
13
- inactive: string[];
14
- scrollIntoView: string | undefined;
15
- }>>>>], Error>;
6
+ } | undefined, Capability.ModuleReturn, Error>;
16
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,KAAK;;;;;;;;;;;cAAoD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,KAAK;;8CAAoD,CAAC"}
@@ -1,18 +1,8 @@
1
- import { Atom } from '@effect-atom/atom-react';
2
1
  import * as Effect from 'effect/Effect';
3
2
  import { Capability } from '@dxos/app-framework';
4
3
  import { StorybookCapabilities } from '#types';
5
4
  declare const _default: (props: {
6
5
  initialState?: Partial<StorybookCapabilities.LayoutStateProps>;
7
- } | undefined) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<Atom.Writable<StorybookCapabilities.LayoutStateProps, StorybookCapabilities.LayoutStateProps>>>, Capability.Capability<Capability.InterfaceDef<Atom.Atom<Readonly<{
8
- mode: string;
9
- dialogOpen: boolean;
10
- sidebarOpen: boolean;
11
- complementarySidebarOpen: boolean;
12
- workspace: string;
13
- active: string[];
14
- inactive: string[];
15
- scrollIntoView: string | undefined;
16
- }>>>>], never, never>;
6
+ } | undefined) => Effect.Effect<[Capability.Any, Capability.Any], never, never>;
17
7
  export default _default;
18
8
  //# sourceMappingURL=state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;;mBAWS,OAAO,CAAC,qBAAqB,CAAC,gBAAgB,CAAC"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;;mBAWS,OAAO,CAAC,qBAAqB,CAAC,gBAAgB,CAAC"}
@@ -15,6 +15,12 @@ export type ComposerTestAppOptions = Omit<TestAppOptions, 'plugins'> & {
15
15
  * (Attention, Graph, ProcessManager, Settings, optionally Theme).
16
16
  *
17
17
  * For a ClientPlugin-backed harness, pass `ClientPlugin({ ... })` via `plugins`.
18
+ *
19
+ * @idiom org.dxos.plugin-testing.pluginModuleActivation
20
+ * applies: Writing a basic activation smoke-test for any Composer plugin
21
+ * instead-of: Manually inspecting PluginManager internals or relying on e2e tests for activation checks
22
+ * uses: {@link createComposerTestApp}, {@link AppActivationEvents}
23
+ * related: org.dxos.app-framework.testing.operationCapture
18
24
  */
19
25
  export declare const createComposerTestApp: (opts?: ComposerTestAppOptions) => Promise<TestHarness>;
20
26
  //# sourceMappingURL=harness.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../src/harness.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAwB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAMnG,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IACrE,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAaF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,UAAgB,sBAAsB,KAAQ,OAAO,CAAC,WAAW,CAelG,CAAC"}
1
+ {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../src/harness.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAwB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAiB,MAAM,6BAA6B,CAAC;AAMnG,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IACrE,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAaF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,UAAgB,sBAAsB,KAAQ,OAAO,CAAC,WAAW,CAelG,CAAC"}
@@ -1,3 +1,33 @@
1
- import { Plugin } from '@dxos/app-framework';
2
- export declare const meta: Plugin.Meta;
1
+ export declare const meta: {
2
+ readonly profile: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly homePage?: string | undefined;
7
+ readonly source?: string | undefined;
8
+ readonly tags?: readonly string[] | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly icon?: {
14
+ readonly key: string;
15
+ readonly hue?: string | undefined;
16
+ } | undefined;
17
+ readonly dependsOn?: readonly string[] | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly createdAt?: string | undefined;
20
+ readonly author?: string | undefined;
21
+ };
22
+ readonly release?: {
23
+ readonly version: string;
24
+ readonly moduleUrl: string;
25
+ readonly dependencies?: {
26
+ readonly [x: string]: string;
27
+ } | undefined;
28
+ readonly pluginKey?: string | undefined;
29
+ readonly manifestHash?: string | undefined;
30
+ readonly createdAt?: string | undefined;
31
+ } | undefined;
32
+ };
3
33
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,IAAI,aASf,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
@@ -17,7 +17,7 @@ export type LayoutStateProps = {
17
17
  popoverVariant?: 'virtual' | 'react';
18
18
  popoverAnchor?: HTMLButtonElement;
19
19
  popoverAnchorId?: string;
20
- popoverKind?: 'base' | 'card';
20
+ popoverKind?: 'base' | 'card' | 'rename';
21
21
  popoverTitle?: Label;
22
22
  popoverContent?: any;
23
23
  toasts: LayoutOperation.Toast[];
@@ -1 +1 @@
1
- {"version":3,"file":"StorybookCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/StorybookCapabilities.ts"],"names":[],"mappings":"AAMA,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,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