@dxos/plugin-testing 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112
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/dist/lib/neutral/{add-toast-62QYCQYN.mjs → add-toast-FAFD7SFC.mjs} +3 -3
- package/dist/lib/neutral/{chunk-D2WSPMET.mjs → chunk-6JK2MYJW.mjs} +2 -2
- package/dist/lib/neutral/{chunk-NZ2VT6N2.mjs → chunk-FCEWZHUT.mjs} +2 -2
- package/dist/lib/neutral/{chunk-NZ2VT6N2.mjs.map → chunk-FCEWZHUT.mjs.map} +3 -3
- package/dist/lib/neutral/chunk-GDMPQHRP.mjs +26 -0
- package/dist/lib/neutral/chunk-GDMPQHRP.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MYIMDRVN.mjs +8 -0
- package/dist/lib/neutral/components/index.mjs +5 -5
- package/dist/lib/neutral/components/index.mjs.map +3 -3
- package/dist/lib/neutral/harness.mjs.map +2 -2
- package/dist/lib/neutral/index.mjs +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/operations/index.mjs +1 -1
- package/dist/lib/neutral/plugin.mjs +2 -2
- package/dist/lib/neutral/{switch-workspace-2YEUYICS.mjs → switch-workspace-NZQAADOK.mjs} +3 -3
- package/dist/lib/neutral/types/index.mjs +1 -1
- package/dist/lib/neutral/{update-complementary-JARHXMZF.mjs → update-complementary-AHNSCP2O.mjs} +3 -3
- package/dist/lib/neutral/{update-dialog-UVNAF5JC.mjs → update-dialog-2VZ3OCUB.mjs} +3 -3
- package/dist/lib/neutral/{update-popover-QLS3RJ3D.mjs → update-popover-MNHWRUNS.mjs} +3 -3
- package/dist/lib/neutral/{update-sidebar-ZXQI35KQ.mjs → update-sidebar-UYW5UT3H.mjs} +3 -3
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +1 -10
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/harness.d.ts +6 -0
- package/dist/types/src/harness.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +28 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types/StorybookCapabilities.d.ts +1 -1
- package/dist/types/src/types/StorybookCapabilities.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dx.config.ts +19 -0
- package/package.json +17 -16
- package/src/components/Layout/Layout.tsx +5 -5
- package/src/harness.ts +6 -0
- package/src/meta.ts +3 -12
- package/src/types/StorybookCapabilities.ts +2 -2
- package/dist/lib/neutral/chunk-HI5MWUZZ.mjs +0 -19
- package/dist/lib/neutral/chunk-HI5MWUZZ.mjs.map +0 -7
- package/dist/lib/neutral/chunk-VSPQMHRB.mjs +0 -8
- /package/dist/lib/neutral/{add-toast-62QYCQYN.mjs.map → add-toast-FAFD7SFC.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-D2WSPMET.mjs.map → chunk-6JK2MYJW.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-VSPQMHRB.mjs.map → chunk-MYIMDRVN.mjs.map} +0 -0
- /package/dist/lib/neutral/{switch-workspace-2YEUYICS.mjs.map → switch-workspace-NZQAADOK.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-complementary-JARHXMZF.mjs.map → update-complementary-AHNSCP2O.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-dialog-UVNAF5JC.mjs.map → update-dialog-2VZ3OCUB.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-popover-QLS3RJ3D.mjs.map → update-popover-MNHWRUNS.mjs.map} +0 -0
- /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-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
28
|
+
//# sourceMappingURL=update-dialog-2VZ3OCUB.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateState
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
46
|
+
//# sourceMappingURL=update-popover-MNHWRUNS.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateState
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
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,
|
|
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
|
|
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"}
|
|
@@ -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
|
|
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;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,UAAgB,sBAAsB,KAAQ,OAAO,CAAC,WAAW,CAelG,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 author?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly release?: {
|
|
22
|
+
readonly version: string;
|
|
23
|
+
readonly moduleUrl: string;
|
|
24
|
+
readonly dependencies?: {
|
|
25
|
+
readonly [x: string]: string;
|
|
26
|
+
} | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
3
29
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"
|
|
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,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;
|
|
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,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,GAAG,QAAQ,CAAC;IACzC,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,4EAAgF,CAAC"}
|