@dxos/plugin-testing 0.8.4-main.d05673bc65 → 0.8.4-main.d9fc60f731
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-C7HWAFWJ.mjs +21 -0
- package/dist/lib/neutral/chunk-C7HWAFWJ.mjs.map +7 -0
- package/dist/lib/{browser/chunk-NWOKPVNQ.mjs → neutral/chunk-HI5MWUZZ.mjs} +8 -10
- package/dist/lib/neutral/chunk-HI5MWUZZ.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-S4IEYCPX.mjs +8 -0
- package/dist/lib/neutral/chunk-S4IEYCPX.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/close-L3FBJQ3J.mjs +12 -0
- package/dist/lib/neutral/close-L3FBJQ3J.mjs.map +7 -0
- package/dist/lib/{browser → neutral/components}/index.mjs +52 -76
- 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/neutral/harness.mjs +36 -0
- 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-O5FFJF2B.mjs +17 -0
- package/dist/lib/neutral/open-O5FFJF2B.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/{browser/state-TCYYH5JN.mjs → neutral/state-AJ62JEEG.mjs} +6 -6
- 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 +3 -2
- package/dist/types/src/StorybookPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +15 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +3 -3
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/components/Layout/Layout.d.ts.map +1 -1
- package/dist/types/src/core.d.ts +1 -7
- package/dist/types/src/core.d.ts.map +1 -1
- package/dist/types/src/harness.d.ts +20 -0
- package/dist/types/src/harness.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-toast.d.ts +5 -0
- package/dist/types/src/operations/add-toast.d.ts.map +1 -0
- package/dist/types/src/operations/close.d.ts +5 -0
- package/dist/types/src/operations/close.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/open.d.ts +5 -0
- package/dist/types/src/operations/open.d.ts.map +1 -0
- package/dist/types/src/operations/scroll-into-view.d.ts +5 -0
- package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -0
- package/dist/types/src/operations/set-layout-mode.d.ts +5 -0
- package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -0
- package/dist/types/src/operations/switch-workspace.d.ts +5 -0
- package/dist/types/src/operations/switch-workspace.d.ts.map +1 -0
- package/dist/types/src/operations/update-complementary.d.ts +5 -0
- package/dist/types/src/operations/update-complementary.d.ts.map +1 -0
- package/dist/types/src/operations/update-dialog.d.ts +5 -0
- package/dist/types/src/operations/update-dialog.d.ts.map +1 -0
- package/dist/types/src/operations/update-popover.d.ts +5 -0
- package/dist/types/src/operations/update-popover.d.ts.map +1 -0
- package/dist/types/src/operations/update-sidebar.d.ts +5 -0
- package/dist/types/src/operations/update-sidebar.d.ts.map +1 -0
- package/dist/types/src/operations/update-state.d.ts +5 -0
- package/dist/types/src/operations/update-state.d.ts.map +1 -0
- 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} +3 -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 +63 -21
- package/src/StorybookPlugin.ts +10 -8
- package/src/capabilities/index.ts +8 -2
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/{state/state.tsx → state.tsx} +9 -5
- package/src/components/Layout/Layout.tsx +128 -76
- package/src/core.ts +20 -13
- package/src/harness.ts +51 -0
- package/src/index.ts +6 -0
- package/src/meta.ts +6 -4
- package/src/operations/add-toast.ts +22 -0
- package/src/operations/close.ts +14 -0
- package/src/operations/index.ts +18 -0
- package/src/operations/open.ts +20 -0
- package/src/operations/scroll-into-view.ts +14 -0
- package/src/operations/set-layout-mode.ts +14 -0
- package/src/operations/switch-workspace.ts +20 -0
- package/src/operations/update-complementary.ts +27 -0
- package/src/operations/update-dialog.ts +27 -0
- package/src/operations/update-popover.ts +37 -0
- package/src/operations/update-sidebar.ts +26 -0
- package/src/operations/update-state.ts +19 -0
- package/src/plugin.ts +12 -0
- package/src/types/{capabilities.ts → StorybookCapabilities.ts} +6 -1
- package/src/types/index.ts +1 -1
- package/dist/lib/browser/chunk-NWOKPVNQ.mjs.map +0 -7
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-SR4GZ7Q5.mjs +0 -112
- package/dist/lib/browser/operation-resolver-SR4GZ7Q5.mjs.map +0 -7
- package/dist/lib/browser/state-TCYYH5JN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NWN7D2LS.mjs +0 -23
- package/dist/lib/node-esm/chunk-NWN7D2LS.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -206
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-A6XLCTWX.mjs +0 -113
- package/dist/lib/node-esm/operation-resolver-A6XLCTWX.mjs.map +0 -7
- package/dist/lib/node-esm/state-ZJEK6SP7.mjs +0 -44
- package/dist/lib/node-esm/state-ZJEK6SP7.mjs.map +0 -7
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/index.d.ts +0 -14
- package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -99
- package/src/capabilities/state/index.ts +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/components/Layout/Layout.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { RegistryContext, useAtomValue } from '@effect-atom/atom-react';\nimport React, { type PropsWithChildren, useCallback, useContext, useEffect, useRef, useState } from 'react';\n\nimport { Surface, useCapability } from '@dxos/app-framework/ui';\nimport { type LayoutOperation } from '@dxos/app-toolkit';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport {\n AlertDialog,\n Button,\n Dialog,\n Main,\n Popover,\n type PopoverContentInteractOutsideEvent,\n Toast,\n toLocalizedString,\n useTranslation,\n} from '@dxos/react-ui';\nimport { Card } from '@dxos/react-ui';\nimport { Mosaic } from '@dxos/react-ui-mosaic';\nimport { descriptionMessage, mx } from '@dxos/ui-theme';\n\nimport { meta } from '#meta';\nimport { StorybookCapabilities } from '#types';\n\nconst debounce_delay = 100;\n\nconst StoryToast = ({ toast, onDismiss }: { toast: LayoutOperation.Toast; onDismiss: (id: string) => void }) => {\n const { t } = useTranslation(meta.id);\n return (\n <Toast.Root\n data-testid={toast.id}\n defaultOpen\n duration={toast.duration}\n onOpenChange={(open) => {\n if (!open) {\n onDismiss(toast.id);\n }\n }}\n >\n <Toast.Title icon={toast.icon} onClose={toast.closeLabel ? () => onDismiss(toast.id) : undefined}>\n {toast.title && <span>{toLocalizedString(toast.title, t)}</span>}\n </Toast.Title>\n {toast.description && <Toast.Description>{toLocalizedString(toast.description, t)}</Toast.Description>}\n {toast.onAction && toast.actionAlt && toast.actionLabel && (\n <Toast.Actions>\n <Toast.Action altText={toLocalizedString(toast.actionAlt, t)} asChild>\n <Button variant='primary' onClick={() => toast.onAction?.()}>\n {toLocalizedString(toast.actionLabel, t)}\n </Button>\n </Toast.Action>\n </Toast.Actions>\n )}\n </Toast.Root>\n );\n};\n\nexport const Layout = ({ children }: PropsWithChildren<{}>) => {\n const { t } = useTranslation(meta.id);\n const trigger = useRef<HTMLButtonElement | null>(null);\n const registry = useContext(RegistryContext);\n const stateAtom = useCapability(StorybookCapabilities.LayoutState);\n const layout = useAtomValue(stateAtom);\n const [iter, setIter] = useState(0);\n const [open, setOpen] = useState(false);\n const debounceRef = useRef<NodeJS.Timeout | null>(null);\n\n const updateState = useCallback(\n (updates: Partial<StorybookCapabilities.LayoutStateProps>) => {\n const current = registry.get(stateAtom);\n registry.set(stateAtom, { ...current, ...updates });\n },\n [registry, stateAtom],\n );\n\n useEffect(() => {\n setOpen(false);\n if (debounceRef.current) {\n clearTimeout(debounceRef.current);\n debounceRef.current = null;\n }\n trigger.current = layout.popoverAnchor ?? null;\n setIter((iter) => iter + 1);\n if (layout.popoverOpen) {\n debounceRef.current = setTimeout(() => setOpen(true), debounce_delay);\n }\n }, [layout.popoverAnchor, layout.popoverContent, layout.popoverOpen]);\n\n const handleClose = useCallback(() => {\n setOpen(false);\n updateState({\n popoverOpen: false,\n popoverAnchor: undefined,\n popoverAnchorId: undefined,\n popoverSide: undefined,\n });\n }, [updateState]);\n\n const handleInteractOutside = useCallback(\n (event: KeyboardEvent | PopoverContentInteractOutsideEvent) => {\n if (\n // TODO(thure): CodeMirror should not focus itself when it updates.\n event.type === 'dismissableLayer.focusOutside' &&\n (event.currentTarget as HTMLElement | undefined)?.classList.contains('cm-content')\n ) {\n event.preventDefault();\n } else {\n handleClose();\n }\n },\n [handleClose],\n );\n\n const handleDismissToast = useCallback(\n (id: string) => {\n updateState({ toasts: layout.toasts.filter((toast) => toast.id !== id) });\n },\n [updateState, layout.toasts],\n );\n\n const DialogRoot = layout.dialogType === 'alert' ? AlertDialog.Root : Dialog.Root;\n const DialogOverlay = layout.dialogType === 'alert' ? AlertDialog.Overlay : Dialog.Overlay;\n\n return (\n <Toast.Provider>\n <div className='fixed inset-0 flex overflow-hidden'>\n <Mosaic.Root>\n <Popover.Root open={open}>\n <Main.Root\n navigationSidebarState={layout.sidebarState}\n complementarySidebarState={layout.complementarySidebarState}\n onNavigationSidebarStateChange={(next) => updateState({ sidebarState: next })}\n onComplementarySidebarStateChange={(next) => updateState({ complementarySidebarState: next })}\n >\n {children}\n </Main.Root>\n\n <DialogRoot\n modal={layout.dialogBlockAlign !== 'end'}\n open={layout.dialogOpen}\n onOpenChange={(nextOpen) => updateState({ dialogOpen: nextOpen })}\n >\n {layout.dialogBlockAlign === 'end' ? (\n <Surface.Surface\n type={AppSurface.Dialog}\n data={layout.dialogContent}\n limit={1}\n fallback={ErrorFallback}\n placeholder={<div />}\n />\n ) : (\n <DialogOverlay\n blockAlign={layout.dialogBlockAlign}\n classNames={layout.dialogOverlayClasses}\n style={layout.dialogOverlayStyle}\n >\n <Surface.Surface\n type={AppSurface.Dialog}\n data={layout.dialogContent}\n limit={1}\n fallback={ErrorFallback}\n />\n </DialogOverlay>\n )}\n </DialogRoot>\n\n <Popover.VirtualTrigger key={iter} virtualRef={trigger} />\n <Popover.Portal>\n <Popover.Content\n side={layout.popoverSide}\n onOpenAutoFocus={(event) => event.preventDefault()}\n onInteractOutside={handleInteractOutside}\n onEscapeKeyDown={handleInteractOutside}\n sticky='always'\n hideWhenDetached\n >\n <Popover.Viewport>\n {layout.popoverKind === 'card' && (\n <Card.Root>\n <Card.Header>\n {/* Disabled drag handle keeps the toolbar slot layout consistent with regular cards. */}\n <Card.DragHandle />\n {layout.popoverTitle ? (\n <Card.Title>{toLocalizedString(layout.popoverTitle, t)}</Card.Title>\n ) : (\n <span />\n )}\n <Card.ActionIconButton action='close' onClick={handleClose} />\n </Card.Header>\n <Surface.Surface type={AppSurface.Card} data={layout.popoverContent} limit={1} />\n </Card.Root>\n )}\n {layout.popoverKind === 'base' && (\n <Surface.Surface type={AppSurface.Popover} data={layout.popoverContent} limit={1} />\n )}\n </Popover.Viewport>\n <Popover.Arrow />\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n </Mosaic.Root>\n {layout.toasts.map((toast) => (\n <StoryToast key={toast.id} toast={toast} onDismiss={handleDismissToast} />\n ))}\n <Toast.Viewport />\n </div>\n </Toast.Provider>\n );\n};\n\nexport const ErrorFallback = ({ error }: { error?: Error }) => {\n const { t } = useTranslation(meta.id);\n const errorString = error?.toString() ?? '';\n return (\n <div\n role='alert'\n data-testid='error-boundary-fallback'\n className={mx('overflow-auto p-8 dx-attention-surface grid place-items-center')}\n >\n <p className={mx(descriptionMessage, 'break-words rounded-md p-8', errorString.length < 256 && 'text-lg')}>\n {error ? errorString : t('error-fallback.message')}\n </p>\n </div>\n );\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["RegistryContext", "useAtomValue", "React", "useCallback", "useContext", "useEffect", "useRef", "useState", "Surface", "useCapability", "AppSurface", "AlertDialog", "Button", "Dialog", "Main", "Popover", "Toast", "toLocalizedString", "useTranslation", "Card", "Mosaic", "descriptionMessage", "mx", "meta", "StorybookCapabilities", "debounce_delay", "StoryToast", "toast", "onDismiss", "t", "id", "Root", "data-testid", "defaultOpen", "duration", "onOpenChange", "open", "Title", "icon", "onClose", "closeLabel", "undefined", "title", "span", "description", "Description", "onAction", "actionAlt", "actionLabel", "Actions", "Action", "altText", "asChild", "variant", "onClick", "Layout", "children", "trigger", "registry", "stateAtom", "LayoutState", "layout", "iter", "setIter", "setOpen", "debounceRef", "updateState", "updates", "current", "get", "set", "clearTimeout", "popoverAnchor", "popoverOpen", "setTimeout", "popoverContent", "handleClose", "popoverAnchorId", "popoverSide", "handleInteractOutside", "event", "type", "currentTarget", "classList", "contains", "preventDefault", "handleDismissToast", "toasts", "filter", "DialogRoot", "dialogType", "DialogOverlay", "Overlay", "Provider", "div", "className", "navigationSidebarState", "sidebarState", "complementarySidebarState", "onNavigationSidebarStateChange", "next", "onComplementarySidebarStateChange", "modal", "dialogBlockAlign", "dialogOpen", "nextOpen", "data", "dialogContent", "limit", "fallback", "ErrorFallback", "placeholder", "blockAlign", "classNames", "dialogOverlayClasses", "style", "dialogOverlayStyle", "VirtualTrigger", "key", "virtualRef", "Portal", "Content", "side", "onOpenAutoFocus", "onInteractOutside", "onEscapeKeyDown", "sticky", "hideWhenDetached", "Viewport", "popoverKind", "Header", "DragHandle", "popoverTitle", "ActionIconButton", "action", "Arrow", "map", "error", "errorString", "toString", "role", "p", "length"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/harness.ts
|
|
4
|
+
import { ProcessManagerPlugin } from "@dxos/app-framework";
|
|
5
|
+
import { createTestApp } from "@dxos/app-framework/testing";
|
|
6
|
+
import { AttentionPlugin } from "@dxos/plugin-attention/testing";
|
|
7
|
+
import { GraphPlugin } from "@dxos/plugin-graph/testing";
|
|
8
|
+
import { SettingsPlugin } from "@dxos/plugin-settings/testing";
|
|
9
|
+
var headlessCorePlugins = () => [
|
|
10
|
+
AttentionPlugin(),
|
|
11
|
+
GraphPlugin(),
|
|
12
|
+
ProcessManagerPlugin(),
|
|
13
|
+
SettingsPlugin()
|
|
14
|
+
];
|
|
15
|
+
var createComposerTestApp = async (opts = {}) => {
|
|
16
|
+
const { plugins = [], theme = false, ...rest } = opts;
|
|
17
|
+
const core = headlessCorePlugins();
|
|
18
|
+
if (theme) {
|
|
19
|
+
const { ThemePlugin } = await import("@dxos/plugin-theme/testing");
|
|
20
|
+
const { defaultTx } = await import("@dxos/react-ui");
|
|
21
|
+
core.push(ThemePlugin({
|
|
22
|
+
tx: defaultTx
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
return createTestApp({
|
|
26
|
+
...rest,
|
|
27
|
+
plugins: [
|
|
28
|
+
...core,
|
|
29
|
+
...plugins
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
createComposerTestApp
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=harness.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/harness.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport { type Plugin, ProcessManagerPlugin } from '@dxos/app-framework';\nimport { createTestApp, type TestAppOptions, type TestHarness } from '@dxos/app-framework/testing';\nimport { AttentionPlugin } from '@dxos/plugin-attention/testing';\nimport { GraphPlugin } from '@dxos/plugin-graph/testing';\nimport { SettingsPlugin } from '@dxos/plugin-settings/testing';\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 ProcessManagerPlugin(),\n SettingsPlugin(),\n];\n\n/**\n * Creates a TestHarness pre-loaded with the Composer core plugins\n * (Attention, Graph, ProcessManager, 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/testing');\n const { defaultTx } = await import('@dxos/react-ui');\n core.push(ThemePlugin({ tx: defaultTx }));\n }\n return createTestApp({\n ...rest,\n plugins: [...core, ...plugins],\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAAsBA,4BAA4B;AAClD,SAASC,qBAA4D;AACrE,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAiB/B,IAAMC,sBAAsB,MAAuB;EACjDH,gBAAAA;EACAC,YAAAA;EACAH,qBAAAA;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,4BAAA;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": ["ProcessManagerPlugin", "createTestApp", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "headlessCorePlugins", "createComposerTestApp", "opts", "plugins", "theme", "rest", "core", "ThemePlugin", "defaultTx", "push", "tx"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StorybookCapabilities_exports
|
|
3
|
+
} from "./chunk-NZ2VT6N2.mjs";
|
|
4
|
+
import {
|
|
5
|
+
StorybookPlugin
|
|
6
|
+
} from "./chunk-R7AV233N.mjs";
|
|
7
|
+
import {
|
|
8
|
+
corePlugins
|
|
9
|
+
} from "./chunk-C7HWAFWJ.mjs";
|
|
10
|
+
import {
|
|
11
|
+
meta
|
|
12
|
+
} from "./chunk-HI5MWUZZ.mjs";
|
|
13
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
14
|
+
export {
|
|
15
|
+
StorybookCapabilities_exports as StorybookCapabilities,
|
|
16
|
+
StorybookPlugin,
|
|
17
|
+
corePlugins,
|
|
18
|
+
meta
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/core.ts":{"bytes":4885,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme/testing","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":1979,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/StorybookCapabilities.ts":{"bytes":2252,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":522,"imports":[{"path":"src/types/StorybookCapabilities.ts","kind":"import-statement","original":"./StorybookCapabilities"}],"format":"esm"},"src/StorybookPlugin.ts":{"bytes":4363,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":1615,"imports":[{"path":"src/core.ts","kind":"import-statement","original":"./core"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"src/StorybookPlugin.ts","kind":"import-statement","original":"./StorybookPlugin"}],"format":"esm"},"src/capabilities/operation-handler.ts":{"bytes":1667,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/state.tsx":{"bytes":4947,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1240,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"},{"path":"src/capabilities/state.tsx","kind":"dynamic-import","original":"./state"}],"format":"esm"},"src/components/Layout/Layout.tsx":{"bytes":27774,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/components/Layout/index.ts":{"bytes":370,"imports":[{"path":"src/components/Layout/Layout.tsx","kind":"import-statement","original":"./Layout"}],"format":"esm"},"src/components/index.ts":{"bytes":370,"imports":[{"path":"src/components/Layout/index.ts","kind":"import-statement","original":"./Layout"}],"format":"esm"},"src/harness.ts":{"bytes":5141,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme/testing","kind":"dynamic-import","external":true},{"path":"@dxos/react-ui","kind":"dynamic-import","external":true}],"format":"esm"},"src/operations/update-state.ts":{"bytes":2326,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"src/operations/add-toast.ts":{"bytes":2053,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/close.ts":{"bytes":1313,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"format":"esm"},"src/operations/open.ts":{"bytes":1930,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"format":"esm"},"src/operations/scroll-into-view.ts":{"bytes":1370,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"format":"esm"},"src/operations/set-layout-mode.ts":{"bytes":1365,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"format":"esm"},"src/operations/switch-workspace.ts":{"bytes":1925,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/update-complementary.ts":{"bytes":2634,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/update-dialog.ts":{"bytes":3271,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/update-popover.ts":{"bytes":4824,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/update-sidebar.ts":{"bytes":2441,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/index.ts":{"bytes":1815,"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"src/operations/add-toast.ts","kind":"dynamic-import","original":"./add-toast"},{"path":"src/operations/close.ts","kind":"dynamic-import","original":"./close"},{"path":"src/operations/open.ts","kind":"dynamic-import","original":"./open"},{"path":"src/operations/scroll-into-view.ts","kind":"dynamic-import","original":"./scroll-into-view"},{"path":"src/operations/set-layout-mode.ts","kind":"dynamic-import","original":"./set-layout-mode"},{"path":"src/operations/switch-workspace.ts","kind":"dynamic-import","original":"./switch-workspace"},{"path":"src/operations/update-complementary.ts","kind":"dynamic-import","original":"./update-complementary"},{"path":"src/operations/update-dialog.ts","kind":"dynamic-import","original":"./update-dialog"},{"path":"src/operations/update-popover.ts","kind":"dynamic-import","original":"./update-popover"},{"path":"src/operations/update-sidebar.ts","kind":"dynamic-import","original":"./update-sidebar"}],"format":"esm"},"src/plugin.ts":{"bytes":1161,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/operations/index.ts","kind":"import-statement","original":"./operations"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":752},"dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/set-layout-mode.ts","inputs":{"src/operations/set-layout-mode.ts":{"bytesInOutput":268}},"bytes":440},"dist/lib/neutral/switch-workspace-SAT2NGXV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1071},"dist/lib/neutral/switch-workspace-SAT2NGXV.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-ULNF6GTG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/switch-workspace.ts","inputs":{"src/operations/switch-workspace.ts":{"bytesInOutput":360}},"bytes":620},"dist/lib/neutral/update-complementary-JP2OL73Z.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1450},"dist/lib/neutral/update-complementary-JP2OL73Z.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-ULNF6GTG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-complementary.ts","inputs":{"src/operations/update-complementary.ts":{"bytesInOutput":545}},"bytes":817},"dist/lib/neutral/update-dialog-MX6IKKJX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1775},"dist/lib/neutral/update-dialog-MX6IKKJX.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-ULNF6GTG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-dialog.ts","inputs":{"src/operations/update-dialog.ts":{"bytesInOutput":679}},"bytes":930},"dist/lib/neutral/update-popover-DOORE3TD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2562},"dist/lib/neutral/update-popover-DOORE3TD.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-ULNF6GTG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-popover.ts","inputs":{"src/operations/update-popover.ts":{"bytesInOutput":1071}},"bytes":1325},"dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1342},"dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-ULNF6GTG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-sidebar.ts","inputs":{"src/operations/update-sidebar.ts":{"bytesInOutput":494}},"bytes":748},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":569},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-HI5MWUZZ.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-S4IEYCPX.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["StorybookPlugin","TestingOperationHandlerSet"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":112}},"bytes":373},"dist/lib/neutral/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/types/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["StorybookCapabilities"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":209},"dist/lib/neutral/operation-handler-LQIWHQVY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":931},"dist/lib/neutral/operation-handler-LQIWHQVY.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#operations","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler.ts","inputs":{"src/capabilities/operation-handler.ts":{"bytesInOutput":347}},"bytes":527},"dist/lib/neutral/state-AJ62JEEG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2680},"dist/lib/neutral/state-AJ62JEEG.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/state.tsx","inputs":{"src/capabilities/state.tsx":{"bytesInOutput":1142}},"bytes":1287},"dist/lib/neutral/add-toast-Z2RXG4RX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1115},"dist/lib/neutral/add-toast-Z2RXG4RX.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-ULNF6GTG.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/add-toast.ts","inputs":{"src/operations/add-toast.ts":{"bytesInOutput":377}},"bytes":616},"dist/lib/neutral/chunk-ULNF6GTG.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1274},"dist/lib/neutral/chunk-ULNF6GTG.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["updateState"],"inputs":{"src/operations/update-state.ts":{"bytesInOutput":428}},"bytes":606},"dist/lib/neutral/close-L3FBJQ3J.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":718},"dist/lib/neutral/close-L3FBJQ3J.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/close.ts","inputs":{"src/operations/close.ts":{"bytesInOutput":250}},"bytes":392},"dist/lib/neutral/open-O5FFJF2B.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":937},"dist/lib/neutral/open-O5FFJF2B.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/open.ts","inputs":{"src/operations/open.ts":{"bytesInOutput":533}},"bytes":672},"dist/lib/neutral/scroll-into-view-BKOOOECC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":756},"dist/lib/neutral/scroll-into-view-BKOOOECC.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/compute","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/scroll-into-view.ts","inputs":{"src/operations/scroll-into-view.ts":{"bytesInOutput":270}},"bytes":445},"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-NZ2VT6N2.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-R7AV233N.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-C7HWAFWJ.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-HI5MWUZZ.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["StorybookCapabilities","StorybookPlugin","corePlugins","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":408},"dist/lib/neutral/chunk-NZ2VT6N2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1465},"dist/lib/neutral/chunk-NZ2VT6N2.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["StorybookCapabilities_exports"],"inputs":{"src/types/StorybookCapabilities.ts":{"bytesInOutput":254},"src/types/index.ts":{"bytesInOutput":0}},"bytes":433},"dist/lib/neutral/StorybookPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/StorybookPlugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-R7AV233N.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["StorybookPlugin","default"],"entryPoint":"src/StorybookPlugin.ts","inputs":{},"bytes":229},"dist/lib/neutral/chunk-R7AV233N.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2353},"dist/lib/neutral/chunk-R7AV233N.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#components","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["StorybookPlugin","StorybookPlugin_default"],"inputs":{"src/StorybookPlugin.ts":{"bytesInOutput":921}},"bytes":1049},"dist/lib/neutral/capabilities/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":693},"dist/lib/neutral/capabilities/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/neutral/operation-handler-LQIWHQVY.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/state-AJ62JEEG.mjs","kind":"dynamic-import"}],"exports":["OperationHandler","State"],"entryPoint":"src/capabilities/index.ts","inputs":{"src/capabilities/index.ts":{"bytesInOutput":238}},"bytes":375},"dist/lib/neutral/components/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15000},"dist/lib/neutral/components/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["ErrorFallback","Layout"],"entryPoint":"src/components/index.ts","inputs":{"src/components/Layout/Layout.tsx":{"bytesInOutput":7343},"src/components/Layout/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0}},"bytes":7485},"dist/lib/neutral/core.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/core.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-C7HWAFWJ.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["corePlugins"],"entryPoint":"src/core.ts","inputs":{},"bytes":145},"dist/lib/neutral/chunk-C7HWAFWJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2154},"dist/lib/neutral/chunk-C7HWAFWJ.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme/testing","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"exports":["corePlugins"],"inputs":{"src/core.ts":{"bytesInOutput":502}},"bytes":588},"dist/lib/neutral/harness.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2741},"dist/lib/neutral/harness.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings/testing","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme/testing","kind":"dynamic-import","external":true},{"path":"@dxos/react-ui","kind":"dynamic-import","external":true}],"exports":["createComposerTestApp"],"entryPoint":"src/harness.ts","inputs":{"src/harness.ts":{"bytesInOutput":881}},"bytes":1004},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-HI5MWUZZ.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":131},"dist/lib/neutral/chunk-HI5MWUZZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":968},"dist/lib/neutral/chunk-HI5MWUZZ.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":520}},"bytes":599},"dist/lib/neutral/operations/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/operations/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-S4IEYCPX.mjs","kind":"import-statement"},{"path":"dist/lib/neutral/chunk-J5LGTIGS.mjs","kind":"import-statement"}],"exports":["TestingOperationHandlerSet"],"entryPoint":"src/operations/index.ts","inputs":{},"bytes":178},"dist/lib/neutral/chunk-S4IEYCPX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":974},"dist/lib/neutral/chunk-S4IEYCPX.mjs":{"imports":[{"path":"@dxos/compute","kind":"import-statement","external":true},{"path":"dist/lib/neutral/add-toast-Z2RXG4RX.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/close-L3FBJQ3J.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/open-O5FFJF2B.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/scroll-into-view-BKOOOECC.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/switch-workspace-SAT2NGXV.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/update-complementary-JP2OL73Z.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/update-dialog-MX6IKKJX.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/update-popover-DOORE3TD.mjs","kind":"dynamic-import"},{"path":"dist/lib/neutral/update-sidebar-LWQ3IA6S.mjs","kind":"dynamic-import"}],"exports":["TestingOperationHandlerSet"],"inputs":{"src/operations/index.ts":{"bytesInOutput":568}},"bytes":681},"dist/lib/neutral/chunk-J5LGTIGS.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/chunk-J5LGTIGS.mjs":{"imports":[],"exports":["__export"],"inputs":{},"bytes":235}}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/operations/open.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
6
|
+
import { Operation } from "@dxos/compute";
|
|
7
|
+
import { log } from "@dxos/log";
|
|
8
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-testing/src/operations/open.ts";
|
|
9
|
+
var handler = LayoutOperation.Open.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
|
|
10
|
+
log("LayoutOperation.Open handler start", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 9, S: this });
|
|
11
|
+
return input.subject;
|
|
12
|
+
})));
|
|
13
|
+
var open_default = handler;
|
|
14
|
+
export {
|
|
15
|
+
open_default as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=open-O5FFJF2B.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/open.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';\nimport { log } from '@dxos/log';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Open> = LayoutOperation.Open.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n log('LayoutOperation.Open handler start');\n return input.subject;\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,WAAW;AAEpB,IAAA,eAAoEF;IAI9D,UAAOG,gBAAa,KAAA,KAAA,UAAA,YAAA,kBAAA,WAAA,OAAA;AACtB,MAAA,sCAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,GAAA,GAAA,KAAA,CAAA;AAIJ,SAAA,MAAeC;;;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "log", "input", "handler"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/operation-handler.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
6
|
+
import { TestingOperationHandlerSet } from "#operations";
|
|
7
|
+
var operation_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
8
|
+
return Capability.contributes(Capabilities.OperationHandler, TestingOperationHandlerSet);
|
|
9
|
+
}));
|
|
10
|
+
export {
|
|
11
|
+
operation_handler_default as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=operation-handler-LQIWHQVY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/operation-handler.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport type { OperationHandlerSet } from '@dxos/compute';\n\nimport { TestingOperationHandlerSet } from '#operations';\n\nexport default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(\n Effect.fnUntraced(function* () {\n return Capability.contributes(Capabilities.OperationHandler, TestingOperationHandlerSet);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AAGzC,SAASC,kCAAkC;AAE3C,IAAA,4BAAeD,WAAWE,WACjBC,kBAAW,aAAA;AAChB,SAAOH,WAAWI,YAAYL,aAAaM,kBAAkBJ,0BAAAA;AAC/D,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "TestingOperationHandlerSet", "makeModule", "fnUntraced", "contributes", "OperationHandler"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
meta
|
|
3
|
+
} from "./chunk-HI5MWUZZ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
TestingOperationHandlerSet
|
|
6
|
+
} from "./chunk-S4IEYCPX.mjs";
|
|
7
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/plugin.ts
|
|
10
|
+
import { Plugin } from "@dxos/app-framework";
|
|
11
|
+
var StorybookPlugin = Plugin.lazy(meta, () => import("#plugin"));
|
|
12
|
+
export {
|
|
13
|
+
StorybookPlugin,
|
|
14
|
+
TestingOperationHandlerSet
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=plugin.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/plugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const StorybookPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport type { StorybookPluginOptions } from '#plugin';\n\nexport { TestingOperationHandlerSet } from './operations';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,SAASA,cAAc;AAIhB,IAAMC,kBAAkBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "StorybookPlugin", "Plugin", "lazy", "meta"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/operations/scroll-into-view.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
6
|
+
import { Operation } from "@dxos/compute";
|
|
7
|
+
var handler = LayoutOperation.ScrollIntoView.pipe(Operation.withHandler(() => Effect.void));
|
|
8
|
+
var scroll_into_view_default = handler;
|
|
9
|
+
export {
|
|
10
|
+
scroll_into_view_default as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=scroll-into-view-BKOOOECC.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/scroll-into-view.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\nconst handler: Operation.WithHandler<typeof LayoutOperation.ScrollIntoView> = LayoutOperation.ScrollIntoView.pipe(\n Operation.withHandler(() => Effect.void),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAE1B,IAAMC,UAAwEF,gBAAgBG,eAAeC,KAC3GH,UAAUI,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,2BAAeJ;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "ScrollIntoView", "pipe", "withHandler", "void"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/operations/set-layout-mode.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
6
|
+
import { Operation } from "@dxos/compute";
|
|
7
|
+
var handler = LayoutOperation.SetLayoutMode.pipe(Operation.withHandler(() => Effect.void));
|
|
8
|
+
var set_layout_mode_default = handler;
|
|
9
|
+
export {
|
|
10
|
+
set_layout_mode_default as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=set-layout-mode-2KHD2AEY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/set-layout-mode.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\nconst handler: Operation.WithHandler<typeof LayoutOperation.SetLayoutMode> = LayoutOperation.SetLayoutMode.pipe(\n Operation.withHandler(() => Effect.void),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAE1B,IAAMC,UAAuEF,gBAAgBG,cAAcC,KACzGH,UAAUI,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,0BAAeJ;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "SetLayoutMode", "pipe", "withHandler", "void"]
|
|
7
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
LayoutState
|
|
3
|
-
} from "./chunk-NWOKPVNQ.mjs";
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
4
2
|
|
|
5
|
-
// src/capabilities/state
|
|
3
|
+
// src/capabilities/state.tsx
|
|
6
4
|
import { Atom } from "@effect-atom/atom-react";
|
|
7
5
|
import * as Effect from "effect/Effect";
|
|
8
6
|
import { Capability } from "@dxos/app-framework";
|
|
9
7
|
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
8
|
+
import { StorybookCapabilities } from "#types";
|
|
10
9
|
var defaultState = {
|
|
11
10
|
sidebarState: "closed",
|
|
12
11
|
complementarySidebarState: "closed",
|
|
13
12
|
dialogOpen: false,
|
|
13
|
+
toasts: [],
|
|
14
14
|
workspace: "default"
|
|
15
15
|
};
|
|
16
16
|
var state_default = Capability.makeModule(Effect.fnUntraced(function* (props) {
|
|
@@ -33,11 +33,11 @@ var state_default = Capability.makeModule(Effect.fnUntraced(function* (props) {
|
|
|
33
33
|
};
|
|
34
34
|
});
|
|
35
35
|
return [
|
|
36
|
-
Capability.contributes(LayoutState, stateAtom),
|
|
36
|
+
Capability.contributes(StorybookCapabilities.LayoutState, stateAtom),
|
|
37
37
|
Capability.contributes(AppCapabilities.Layout, layoutAtom)
|
|
38
38
|
];
|
|
39
39
|
}));
|
|
40
40
|
export {
|
|
41
41
|
state_default as default
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=state-
|
|
43
|
+
//# sourceMappingURL=state-AJ62JEEG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/state.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Atom } from '@effect-atom/atom-react';\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\n\nimport { StorybookCapabilities } from '#types';\n\nconst defaultState: StorybookCapabilities.LayoutStateProps = {\n sidebarState: 'closed',\n complementarySidebarState: 'closed',\n dialogOpen: false,\n toasts: [],\n workspace: 'default',\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* (props?: { initialState?: Partial<StorybookCapabilities.LayoutStateProps> }) {\n const { initialState } = props ?? {};\n const stateAtom = Atom.make<StorybookCapabilities.LayoutStateProps>({ ...defaultState, ...initialState });\n\n const layoutAtom = Atom.make((get): AppCapabilities.Layout => {\n const state = get(stateAtom);\n return {\n mode: 'storybook',\n dialogOpen: state.dialogOpen,\n sidebarOpen: state.sidebarState === 'expanded',\n complementarySidebarOpen: state.complementarySidebarState === 'expanded',\n workspace: state.workspace,\n active: [],\n inactive: [],\n scrollIntoView: undefined,\n };\n });\n\n return [\n Capability.contributes(StorybookCapabilities.LayoutState, stateAtom),\n Capability.contributes(AppCapabilities.Layout, layoutAtom),\n ];\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,YAAY;AACrB,YAAYC,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAEhC,SAASC,6BAA6B;AAEtC,IAAMC,eAAuD;EAC3DC,cAAc;EACdC,2BAA2B;EAC3BC,YAAY;EACZC,QAAQ,CAAA;EACRC,WAAW;AACb;AAEA,IAAA,gBAAeR,WAAWS,WACjBC,kBAAW,WAAWC,OAA0E;AACrG,QAAM,EAAEC,aAAY,IAAKD,SAAS,CAAC;AACnC,QAAME,YAAYf,KAAKgB,KAA6C;IAAE,GAAGX;IAAc,GAAGS;EAAa,CAAA;AAEvG,QAAMG,aAAajB,KAAKgB,KAAK,CAACE,QAAAA;AAC5B,UAAMC,QAAQD,IAAIH,SAAAA;AAClB,WAAO;MACLK,MAAM;MACNZ,YAAYW,MAAMX;MAClBa,aAAaF,MAAMb,iBAAiB;MACpCgB,0BAA0BH,MAAMZ,8BAA8B;MAC9DG,WAAWS,MAAMT;MACjBa,QAAQ,CAAA;MACRC,UAAU,CAAA;MACVC,gBAAgBC;IAClB;EACF,CAAA;AAEA,SAAO;IACLxB,WAAWyB,YAAYvB,sBAAsBwB,aAAab,SAAAA;IAC1Db,WAAWyB,YAAYxB,gBAAgB0B,QAAQZ,UAAAA;;AAEnD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Atom", "Effect", "Capability", "AppCapabilities", "StorybookCapabilities", "defaultState", "sidebarState", "complementarySidebarState", "dialogOpen", "toasts", "workspace", "makeModule", "fnUntraced", "props", "initialState", "stateAtom", "make", "layoutAtom", "get", "state", "mode", "sidebarOpen", "complementarySidebarOpen", "active", "inactive", "scrollIntoView", "undefined", "contributes", "LayoutState", "Layout"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
updateState
|
|
3
|
+
} from "./chunk-ULNF6GTG.mjs";
|
|
4
|
+
import "./chunk-NZ2VT6N2.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/switch-workspace.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.SwitchWorkspace.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ subject }) {
|
|
12
|
+
yield* updateState(() => ({
|
|
13
|
+
workspace: subject
|
|
14
|
+
}));
|
|
15
|
+
})));
|
|
16
|
+
var switch_workspace_default = handler;
|
|
17
|
+
export {
|
|
18
|
+
switch_workspace_default as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=switch-workspace-SAT2NGXV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/switch-workspace.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.SwitchWorkspace> = LayoutOperation.SwitchWorkspace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ subject }) {\n yield* updateState(() => ({ workspace: subject }));\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAyEC,gBAAgBC,gBAAgBC,KAC7GC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,QAAO,GAAE;AACtC,SAAOC,YAAY,OAAO;IAAEC,WAAWF;EAAQ,EAAA;AACjD,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAeP;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "SwitchWorkspace", "pipe", "Operation", "withHandler", "fnUntraced", "subject", "updateState", "workspace"]
|
|
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-complementary.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.UpdateComplementary.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ state }) {
|
|
12
|
+
yield* updateState((layout) => {
|
|
13
|
+
const next = state ?? layout.complementarySidebarState;
|
|
14
|
+
if (next !== layout.complementarySidebarState) {
|
|
15
|
+
return {
|
|
16
|
+
complementarySidebarState: next
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return {};
|
|
20
|
+
});
|
|
21
|
+
})));
|
|
22
|
+
var update_complementary_default = handler;
|
|
23
|
+
export {
|
|
24
|
+
update_complementary_default as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=update-complementary-JP2OL73Z.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/update-complementary.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.UpdateComplementary> =\n LayoutOperation.UpdateComplementary.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ state }) {\n yield* updateState((layout) => {\n const next = state ?? layout.complementarySidebarState;\n if (next !== layout.complementarySidebarState) {\n return { complementarySidebarState: 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,UACJC,gBAAgBC,oBAAoBC,KAClCC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,MAAK,GAAE;AACpC,SAAOC,YAAY,CAACC,WAAAA;AAClB,UAAMC,OAAOH,SAASE,OAAOE;AAC7B,QAAID,SAASD,OAAOE,2BAA2B;AAC7C,aAAO;QAAEA,2BAA2BD;MAAK;IAC3C;AACA,WAAO,CAAC;EACV,CAAA;AACF,CAAA,CAAA,CAAA;AAIN,IAAA,+BAAeV;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateComplementary", "pipe", "Operation", "withHandler", "fnUntraced", "state", "updateState", "layout", "next", "complementarySidebarState"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
updateState
|
|
3
|
+
} from "./chunk-ULNF6GTG.mjs";
|
|
4
|
+
import "./chunk-NZ2VT6N2.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/update-dialog.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.UpdateDialog.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ subject, state, type, blockAlign, overlayClasses, overlayStyle, props }) {
|
|
12
|
+
yield* updateState(() => ({
|
|
13
|
+
dialogOpen: state ?? Boolean(subject),
|
|
14
|
+
dialogType: type ?? "default",
|
|
15
|
+
dialogBlockAlign: blockAlign ?? "center",
|
|
16
|
+
dialogOverlayClasses: overlayClasses,
|
|
17
|
+
dialogOverlayStyle: overlayStyle,
|
|
18
|
+
dialogContent: subject ? {
|
|
19
|
+
component: subject,
|
|
20
|
+
props
|
|
21
|
+
} : null
|
|
22
|
+
}));
|
|
23
|
+
})));
|
|
24
|
+
var update_dialog_default = handler;
|
|
25
|
+
export {
|
|
26
|
+
update_dialog_default as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=update-dialog-MX6IKKJX.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/update-dialog.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.UpdateDialog> = LayoutOperation.UpdateDialog.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ subject, state, type, blockAlign, overlayClasses, overlayStyle, props }) {\n yield* updateState(() => ({\n dialogOpen: state ?? Boolean(subject),\n dialogType: type ?? 'default',\n dialogBlockAlign: blockAlign ?? 'center',\n dialogOverlayClasses: overlayClasses,\n dialogOverlayStyle: overlayStyle,\n dialogContent: subject ? { component: subject, props } : null,\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAMC,UAAsEC,gBAAgBC,aAAaC,KACvGC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,SAASC,OAAOC,MAAMC,YAAYC,gBAAgBC,cAAcC,MAAK,GAAE;AACpG,SAAOC,YAAY,OAAO;IACxBC,YAAYP,SAASQ,QAAQT,OAAAA;IAC7BU,YAAYR,QAAQ;IACpBS,kBAAkBR,cAAc;IAChCS,sBAAsBR;IACtBS,oBAAoBR;IACpBS,eAAed,UAAU;MAAEe,WAAWf;MAASM;IAAM,IAAI;EAC3D,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,wBAAeb;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "UpdateDialog", "pipe", "Operation", "withHandler", "fnUntraced", "subject", "state", "type", "blockAlign", "overlayClasses", "overlayStyle", "props", "updateState", "dialogOpen", "Boolean", "dialogType", "dialogBlockAlign", "dialogOverlayClasses", "dialogOverlayStyle", "dialogContent", "component"]
|
|
7
|
+
}
|