@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.
- package/LICENSE +102 -5
- package/dist/lib/neutral/StorybookPlugin.mjs +10 -0
- package/dist/lib/neutral/StorybookPlugin.mjs.map +7 -0
- package/dist/lib/neutral/add-toast-Z2RXG4RX.mjs +23 -0
- package/dist/lib/neutral/add-toast-Z2RXG4RX.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +11 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-E4LBVPH5.mjs +8 -0
- package/dist/lib/neutral/chunk-E4LBVPH5.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-NZ2VT6N2.mjs +17 -0
- package/dist/lib/neutral/chunk-NZ2VT6N2.mjs.map +7 -0
- package/dist/lib/neutral/chunk-R7AV233N.mjs +31 -0
- package/dist/lib/neutral/chunk-R7AV233N.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ULNF6GTG.mjs +21 -0
- package/dist/lib/neutral/chunk-ULNF6GTG.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VMXMXF46.mjs +22 -0
- package/dist/lib/neutral/chunk-VMXMXF46.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ZVN23V74.mjs +16 -0
- package/dist/lib/neutral/chunk-ZVN23V74.mjs.map +7 -0
- package/dist/lib/neutral/close-L3FBJQ3J.mjs +12 -0
- package/dist/lib/neutral/close-L3FBJQ3J.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +183 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/core.mjs +8 -0
- package/dist/lib/neutral/core.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/harness.mjs +6 -4
- package/dist/lib/neutral/harness.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +20 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/open-WBONYQ47.mjs +14 -0
- package/dist/lib/neutral/open-WBONYQ47.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-LQIWHQVY.mjs +13 -0
- package/dist/lib/neutral/operation-handler-LQIWHQVY.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/scroll-into-view-BKOOOECC.mjs +12 -0
- package/dist/lib/neutral/scroll-into-view-BKOOOECC.mjs.map +7 -0
- package/dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs +12 -0
- package/dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs.map +7 -0
- package/dist/lib/neutral/state-AJ62JEEG.mjs +43 -0
- package/dist/lib/neutral/state-AJ62JEEG.mjs.map +7 -0
- package/dist/lib/neutral/switch-workspace-SAT2NGXV.mjs +20 -0
- package/dist/lib/neutral/switch-workspace-SAT2NGXV.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +8 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/lib/neutral/update-complementary-JP2OL73Z.mjs +26 -0
- package/dist/lib/neutral/update-complementary-JP2OL73Z.mjs.map +7 -0
- package/dist/lib/neutral/update-dialog-MX6IKKJX.mjs +28 -0
- package/dist/lib/neutral/update-dialog-MX6IKKJX.mjs.map +7 -0
- package/dist/lib/neutral/update-popover-DOORE3TD.mjs +46 -0
- package/dist/lib/neutral/update-popover-DOORE3TD.mjs.map +7 -0
- package/dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs +26 -0
- package/dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs.map +7 -0
- package/dist/types/src/StorybookPlugin.d.ts +2 -2
- package/dist/types/src/StorybookPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/state.d.ts +3 -3
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/core.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/update-state.d.ts +2 -2
- package/dist/types/src/operations/update-state.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +5 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/types/{capabilities.d.ts → StorybookCapabilities.d.ts} +1 -1
- package/dist/types/src/types/StorybookCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +53 -25
- package/src/StorybookPlugin.ts +2 -2
- package/src/capabilities/state.tsx +8 -5
- package/src/components/Layout/Layout.tsx +4 -4
- package/src/core.ts +17 -4
- package/src/harness.ts +4 -4
- package/src/index.ts +8 -7
- package/src/operations/update-popover.ts +2 -2
- package/src/operations/update-state.ts +5 -3
- package/src/plugin.ts +12 -0
- package/src/types/{capabilities.ts → StorybookCapabilities.ts} +2 -0
- package/src/types/index.ts +1 -1
- package/dist/lib/browser/harness.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -41
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/harness.mjs +0 -37
- package/dist/lib/node-esm/harness.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -43
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
updateState
|
|
3
|
+
} from "./chunk-ULNF6GTG.mjs";
|
|
4
|
+
import "./chunk-NZ2VT6N2.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/update-popover.ts
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
|
+
var handler = LayoutOperation.UpdatePopover.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
12
|
+
const { subject, state, side, kind, props } = input;
|
|
13
|
+
yield* updateState(() => {
|
|
14
|
+
const base = {
|
|
15
|
+
popoverKind: kind ?? "base",
|
|
16
|
+
popoverTitle: kind === "card" ? input.title : void 0,
|
|
17
|
+
popoverContent: typeof subject === "string" ? {
|
|
18
|
+
component: subject,
|
|
19
|
+
props
|
|
20
|
+
} : subject ? {
|
|
21
|
+
subject
|
|
22
|
+
} : void 0,
|
|
23
|
+
popoverOpen: state ?? Boolean(subject),
|
|
24
|
+
popoverSide: side
|
|
25
|
+
};
|
|
26
|
+
if ("variant" in input && input.variant === "virtual") {
|
|
27
|
+
return {
|
|
28
|
+
...base,
|
|
29
|
+
popoverVariant: "virtual",
|
|
30
|
+
popoverAnchor: input.anchor
|
|
31
|
+
};
|
|
32
|
+
} else if ("anchorId" in input) {
|
|
33
|
+
return {
|
|
34
|
+
...base,
|
|
35
|
+
popoverVariant: "react",
|
|
36
|
+
popoverAnchorId: input.anchorId
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return base;
|
|
40
|
+
});
|
|
41
|
+
})));
|
|
42
|
+
var update_popover_default = handler;
|
|
43
|
+
export {
|
|
44
|
+
update_popover_default as default
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=update-popover-DOORE3TD.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/update-popover.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { StorybookCapabilities } from '../types';\nimport { updateState } from './update-state';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdatePopover> = LayoutOperation.UpdatePopover.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const { subject, state, side, kind, props } = input;\n yield* updateState(() => {\n const base: Partial<StorybookCapabilities.LayoutStateProps> = {\n popoverKind: kind ?? 'base',\n popoverTitle: kind === 'card' ? input.title : undefined,\n popoverContent:\n typeof subject === 'string' ? { component: subject, props } : subject ? { subject } : undefined,\n popoverOpen: state ?? Boolean(subject),\n popoverSide: side,\n };\n if ('variant' in input && input.variant === 'virtual') {\n return { ...base, popoverVariant: 'virtual', popoverAnchor: input.anchor };\n } else if ('anchorId' in input) {\n return { ...base, popoverVariant: 'react', popoverAnchorId: input.anchorId };\n }\n return base;\n });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAK1B,IAAMC,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAM,EAAEC,SAASC,OAAOC,MAAMC,MAAMC,MAAK,IAAKL;AAC9C,SAAOM,YAAY,MAAA;AACjB,UAAMC,OAAwD;MAC5DC,aAAaJ,QAAQ;MACrBK,cAAcL,SAAS,SAASJ,MAAMU,QAAQC;MAC9CC,gBACE,OAAOX,YAAY,WAAW;QAAEY,WAAWZ;QAASI;MAAM,IAAIJ,UAAU;QAAEA;MAAQ,IAAIU;MACxFG,aAAaZ,SAASa,QAAQd,OAAAA;MAC9Be,aAAab;IACf;AACA,QAAI,aAAaH,SAASA,MAAMiB,YAAY,WAAW;AACrD,aAAO;QAAE,GAAGV;QAAMW,gBAAgB;QAAWC,eAAenB,MAAMoB;MAAO;IAC3E,WAAW,cAAcpB,OAAO;AAC9B,aAAO;QAAE,GAAGO;QAAMW,gBAAgB;QAASG,iBAAiBrB,MAAMsB;MAAS;IAC7E;AACA,WAAOf;EACT,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAed;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdatePopover", "pipe", "Operation", "withHandler", "fnUntraced", "input", "subject", "state", "side", "kind", "props", "updateState", "base", "popoverKind", "popoverTitle", "title", "undefined", "popoverContent", "component", "popoverOpen", "Boolean", "popoverSide", "variant", "popoverVariant", "popoverAnchor", "anchor", "popoverAnchorId", "anchorId"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
updateState
|
|
3
|
+
} from "./chunk-ULNF6GTG.mjs";
|
|
4
|
+
import "./chunk-NZ2VT6N2.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/update-sidebar.ts
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
10
|
+
import { Operation } from "@dxos/compute";
|
|
11
|
+
var handler = LayoutOperation.UpdateSidebar.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ state }) {
|
|
12
|
+
yield* updateState((layout) => {
|
|
13
|
+
const next = state ?? layout.sidebarState;
|
|
14
|
+
if (next !== layout.sidebarState) {
|
|
15
|
+
return {
|
|
16
|
+
sidebarState: next
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {};
|
|
20
|
+
});
|
|
21
|
+
})));
|
|
22
|
+
var update_sidebar_default = handler;
|
|
23
|
+
export {
|
|
24
|
+
update_sidebar_default as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=update-sidebar-LWQ3IA6S.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/update-sidebar.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { updateState } from './update-state';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.UpdateSidebar> = LayoutOperation.UpdateSidebar.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ state }) {\n yield* updateState((layout) => {\n const next = state ?? layout.sidebarState;\n if (next !== layout.sidebarState) {\n return { sidebarState: next };\n }\n return {};\n });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,MAAK,GAAE;AACpC,SAAOC,YAAY,CAACC,WAAAA;AAClB,UAAMC,OAAOH,SAASE,OAAOE;AAC7B,QAAID,SAASD,OAAOE,cAAc;AAChC,aAAO;QAAEA,cAAcD;MAAK;IAC9B;AACA,WAAO,CAAC;EACV,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAeV;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateSidebar", "pipe", "Operation", "withHandler", "fnUntraced", "state", "updateState", "layout", "next", "sidebarState"]
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from '@dxos/app-framework';
|
|
2
|
-
import {
|
|
2
|
+
import { StorybookCapabilities } from '#types';
|
|
3
3
|
export type StorybookPluginOptions = {
|
|
4
|
-
initialState?: Partial<LayoutStateProps>;
|
|
4
|
+
initialState?: Partial<StorybookCapabilities.LayoutStateProps>;
|
|
5
5
|
};
|
|
6
6
|
export declare const StorybookPlugin: Plugin.PluginFactory<StorybookPluginOptions>;
|
|
7
7
|
export default StorybookPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorybookPlugin.d.ts","sourceRoot":"","sources":["../../../src/StorybookPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8C,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMzF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StorybookPlugin.d.ts","sourceRoot":"","sources":["../../../src/StorybookPlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAA8C,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;CAChE,CAAC;AAEF,eAAO,MAAM,eAAe,8CAoB3B,CAAC;eAEa,eAAe"}
|
|
@@ -2,8 +2,8 @@ import { Capability } from '@dxos/app-framework';
|
|
|
2
2
|
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
|
-
initialState?: Partial<import("../types").LayoutStateProps>;
|
|
6
|
-
} | undefined, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<import("../types").LayoutStateProps, import("../types").LayoutStateProps>>>, Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Atom<Readonly<{
|
|
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
7
|
mode: string;
|
|
8
8
|
dialogOpen: boolean;
|
|
9
9
|
sidebarOpen: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Atom } from '@effect-atom/atom-react';
|
|
2
2
|
import * as Effect from 'effect/Effect';
|
|
3
3
|
import { Capability } from '@dxos/app-framework';
|
|
4
|
-
import {
|
|
4
|
+
import { StorybookCapabilities } from '#types';
|
|
5
5
|
declare const _default: (props: {
|
|
6
|
-
initialState?: Partial<LayoutStateProps>;
|
|
7
|
-
} | undefined) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<Atom.Writable<LayoutStateProps, LayoutStateProps>>>, Capability.Capability<Capability.InterfaceDef<Atom.Atom<Readonly<{
|
|
6
|
+
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
8
|
mode: string;
|
|
9
9
|
dialogOpen: boolean;
|
|
10
10
|
sidebarOpen: boolean;
|
|
@@ -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,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/core.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,MAAM,EAAiB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/core.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,MAAM,EAAiB,MAAM,qBAAqB,CAAC;AAoBlF;;;;GAIG;AACH,eAAO,MAAM,WAAW,QAAO,MAAM,CAAC,MAAM,EAO3C,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Plugin } from '@dxos/app-framework';
|
|
2
1
|
export * from './core';
|
|
3
2
|
export * from './meta';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './StorybookPlugin';
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AAOxB,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
import {
|
|
4
|
-
export declare const updateState: (fn: (state: LayoutStateProps) => Partial<LayoutStateProps>) => Effect.Effect<void, Error, Capability.Service>;
|
|
3
|
+
import { StorybookCapabilities } from '../types';
|
|
4
|
+
export declare const updateState: (fn: (state: StorybookCapabilities.LayoutStateProps) => Partial<StorybookCapabilities.LayoutStateProps>) => Effect.Effect<void, Error, Capability.Service>;
|
|
5
5
|
//# sourceMappingURL=update-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-state.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,
|
|
1
|
+
{"version":3,"file":"update-state.d.ts","sourceRoot":"","sources":["../../../../src/operations/update-state.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,WAAW,OAClB,CAAC,KAAK,EAAE,qBAAqB,CAAC,gBAAgB,KAAK,OAAO,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,mDAOpG,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const StorybookPlugin: Plugin.PluginFactory<import("#plugin").StorybookPluginOptions>;
|
|
3
|
+
export type { StorybookPluginOptions } from '#plugin';
|
|
4
|
+
export { TestingOperationHandlerSet } from './operations';
|
|
5
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,eAAe,gEAA6C,CAAC;AAC1E,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -24,4 +24,4 @@ export type LayoutStateProps = {
|
|
|
24
24
|
workspace: string;
|
|
25
25
|
};
|
|
26
26
|
export declare const LayoutState: Capability.InterfaceDef<Atom.Writable<LayoutStateProps, LayoutStateProps>>;
|
|
27
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=StorybookCapabilities.d.ts.map
|
|
@@ -0,0 +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;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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * as StorybookCapabilities from './StorybookCapabilities';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,qBAAqB,MAAM,yBAAyB,CAAC"}
|