@dxos/plugin-testing 0.8.4-main.7996785055 → 0.8.4-main.8baae0fced

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/LICENSE +102 -5
  2. package/dist/lib/neutral/StorybookPlugin.mjs +10 -0
  3. package/dist/lib/neutral/StorybookPlugin.mjs.map +7 -0
  4. package/dist/lib/{browser/add-toast-M6ZVP2PQ.mjs → neutral/add-toast-Z2RXG4RX.mjs} +5 -4
  5. package/dist/lib/{node-esm/add-toast-VMEADC7Y.mjs.map → neutral/add-toast-Z2RXG4RX.mjs.map} +1 -1
  6. package/dist/lib/neutral/capabilities/index.mjs +11 -0
  7. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  8. package/dist/lib/neutral/chunk-7PCQ6HGV.mjs +21 -0
  9. package/dist/lib/neutral/chunk-7PCQ6HGV.mjs.map +7 -0
  10. package/dist/lib/{browser/chunk-F2MMDTKN.mjs → neutral/chunk-G6UPW2TF.mjs} +3 -7
  11. package/dist/lib/neutral/chunk-G6UPW2TF.mjs.map +7 -0
  12. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  13. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
  14. package/dist/lib/neutral/chunk-NZ2VT6N2.mjs +17 -0
  15. package/dist/lib/neutral/chunk-NZ2VT6N2.mjs.map +7 -0
  16. package/dist/lib/neutral/chunk-R7AV233N.mjs +31 -0
  17. package/dist/lib/neutral/chunk-R7AV233N.mjs.map +7 -0
  18. package/dist/lib/neutral/chunk-S4IEYCPX.mjs +8 -0
  19. package/dist/lib/neutral/chunk-S4IEYCPX.mjs.map +7 -0
  20. package/dist/lib/{browser/chunk-M4TYMLOE.mjs → neutral/chunk-ULNF6GTG.mjs} +4 -4
  21. package/dist/lib/neutral/chunk-ULNF6GTG.mjs.map +7 -0
  22. package/dist/lib/{browser/close-M6YHTWUZ.mjs → neutral/close-L3FBJQ3J.mjs} +4 -2
  23. package/dist/lib/neutral/close-L3FBJQ3J.mjs.map +7 -0
  24. package/dist/lib/{browser → neutral/components}/index.mjs +12 -64
  25. package/dist/lib/neutral/components/index.mjs.map +7 -0
  26. package/dist/lib/neutral/core.mjs +8 -0
  27. package/dist/lib/neutral/core.mjs.map +7 -0
  28. package/dist/lib/neutral/harness.mjs +36 -0
  29. package/dist/lib/neutral/harness.mjs.map +7 -0
  30. package/dist/lib/neutral/index.mjs +20 -0
  31. package/dist/lib/neutral/index.mjs.map +7 -0
  32. package/dist/lib/neutral/meta.json +1 -0
  33. package/dist/lib/neutral/meta.mjs +8 -0
  34. package/dist/lib/neutral/meta.mjs.map +7 -0
  35. package/dist/lib/neutral/open-O5FFJF2B.mjs +17 -0
  36. package/dist/lib/neutral/open-O5FFJF2B.mjs.map +7 -0
  37. package/dist/lib/neutral/operation-handler-LQIWHQVY.mjs +13 -0
  38. package/dist/lib/neutral/operation-handler-LQIWHQVY.mjs.map +7 -0
  39. package/dist/lib/neutral/operations/index.mjs +8 -0
  40. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  41. package/dist/lib/neutral/plugin.mjs +16 -0
  42. package/dist/lib/neutral/plugin.mjs.map +7 -0
  43. package/dist/lib/{browser/scroll-into-view-UAINWR6E.mjs → neutral/scroll-into-view-BKOOOECC.mjs} +4 -2
  44. package/dist/lib/neutral/scroll-into-view-BKOOOECC.mjs.map +7 -0
  45. package/dist/lib/{browser/set-layout-mode-E6SJ6ATN.mjs → neutral/set-layout-mode-2KHD2AEY.mjs} +4 -2
  46. package/dist/lib/neutral/set-layout-mode-2KHD2AEY.mjs.map +7 -0
  47. package/dist/lib/{browser/state-MRRN7LZE.mjs → neutral/state-AJ62JEEG.mjs} +5 -6
  48. package/dist/lib/neutral/state-AJ62JEEG.mjs.map +7 -0
  49. package/dist/lib/{browser/switch-workspace-RPYF6M6L.mjs → neutral/switch-workspace-SAT2NGXV.mjs} +5 -4
  50. package/dist/lib/{node-esm/switch-workspace-ZDUCWF6E.mjs.map → neutral/switch-workspace-SAT2NGXV.mjs.map} +1 -1
  51. package/dist/lib/neutral/types/index.mjs +8 -0
  52. package/dist/lib/neutral/types/index.mjs.map +7 -0
  53. package/dist/lib/{browser/update-complementary-HNS4FIWF.mjs → neutral/update-complementary-JP2OL73Z.mjs} +5 -4
  54. package/dist/lib/{node-esm/update-complementary-LAPUAZ5I.mjs.map → neutral/update-complementary-JP2OL73Z.mjs.map} +1 -1
  55. package/dist/lib/{browser/update-dialog-W7QOCQ2N.mjs → neutral/update-dialog-MX6IKKJX.mjs} +5 -4
  56. package/dist/lib/{node-esm/update-dialog-5M7FL4XG.mjs.map → neutral/update-dialog-MX6IKKJX.mjs.map} +1 -1
  57. package/dist/lib/{browser/update-popover-UELZDJW6.mjs → neutral/update-popover-DOORE3TD.mjs} +5 -4
  58. package/dist/lib/neutral/update-popover-DOORE3TD.mjs.map +7 -0
  59. package/dist/lib/{browser/update-sidebar-RJZTREDE.mjs → neutral/update-sidebar-LWQ3IA6S.mjs} +5 -4
  60. package/dist/lib/{node-esm/update-sidebar-CU6TUDK5.mjs.map → neutral/update-sidebar-LWQ3IA6S.mjs.map} +1 -1
  61. package/dist/types/src/StorybookPlugin.d.ts +3 -2
  62. package/dist/types/src/StorybookPlugin.d.ts.map +1 -1
  63. package/dist/types/src/capabilities/index.d.ts +15 -2
  64. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  65. package/dist/types/src/capabilities/{operation-handler/operation-handler.d.ts → operation-handler.d.ts} +1 -1
  66. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/{state/state.d.ts → state.d.ts} +3 -3
  68. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  69. package/dist/types/src/components/Layout/Layout.d.ts.map +1 -1
  70. package/dist/types/src/core.d.ts.map +1 -1
  71. package/dist/types/src/harness.d.ts +20 -0
  72. package/dist/types/src/harness.d.ts.map +1 -0
  73. package/dist/types/src/index.d.ts +1 -0
  74. package/dist/types/src/index.d.ts.map +1 -1
  75. package/dist/types/src/meta.d.ts.map +1 -1
  76. package/dist/types/src/operations/add-toast.d.ts +1 -1
  77. package/dist/types/src/operations/add-toast.d.ts.map +1 -1
  78. package/dist/types/src/operations/close.d.ts +1 -1
  79. package/dist/types/src/operations/close.d.ts.map +1 -1
  80. package/dist/types/src/operations/index.d.ts +1 -1
  81. package/dist/types/src/operations/index.d.ts.map +1 -1
  82. package/dist/types/src/operations/open.d.ts +1 -1
  83. package/dist/types/src/operations/open.d.ts.map +1 -1
  84. package/dist/types/src/operations/scroll-into-view.d.ts +1 -1
  85. package/dist/types/src/operations/scroll-into-view.d.ts.map +1 -1
  86. package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
  87. package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
  88. package/dist/types/src/operations/switch-workspace.d.ts +1 -1
  89. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
  90. package/dist/types/src/operations/update-complementary.d.ts +1 -1
  91. package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
  92. package/dist/types/src/operations/update-dialog.d.ts +1 -1
  93. package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
  94. package/dist/types/src/operations/update-popover.d.ts +1 -1
  95. package/dist/types/src/operations/update-popover.d.ts.map +1 -1
  96. package/dist/types/src/operations/update-sidebar.d.ts +1 -1
  97. package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
  98. package/dist/types/src/operations/update-state.d.ts +2 -2
  99. package/dist/types/src/operations/update-state.d.ts.map +1 -1
  100. package/dist/types/src/plugin.d.ts +5 -0
  101. package/dist/types/src/plugin.d.ts.map +1 -0
  102. package/dist/types/src/types/{capabilities.d.ts → StorybookCapabilities.d.ts} +1 -1
  103. package/dist/types/src/types/StorybookCapabilities.d.ts.map +1 -0
  104. package/dist/types/src/types/index.d.ts +1 -1
  105. package/dist/types/src/types/index.d.ts.map +1 -1
  106. package/dist/types/tsconfig.tsbuildinfo +1 -1
  107. package/package.json +60 -17
  108. package/src/StorybookPlugin.ts +8 -6
  109. package/src/capabilities/index.ts +8 -2
  110. package/src/capabilities/{operation-handler/operation-handler.ts → operation-handler.ts} +2 -2
  111. package/src/capabilities/{state/state.tsx → state.tsx} +8 -5
  112. package/src/components/Layout/Layout.tsx +16 -10
  113. package/src/core.ts +19 -7
  114. package/src/harness.ts +51 -0
  115. package/src/index.ts +6 -0
  116. package/src/meta.ts +1 -0
  117. package/src/operations/add-toast.ts +1 -1
  118. package/src/operations/close.ts +1 -1
  119. package/src/operations/index.ts +1 -1
  120. package/src/operations/open.ts +8 -2
  121. package/src/operations/scroll-into-view.ts +1 -1
  122. package/src/operations/set-layout-mode.ts +1 -1
  123. package/src/operations/switch-workspace.ts +1 -1
  124. package/src/operations/update-complementary.ts +1 -1
  125. package/src/operations/update-dialog.ts +1 -1
  126. package/src/operations/update-popover.ts +3 -3
  127. package/src/operations/update-sidebar.ts +1 -1
  128. package/src/operations/update-state.ts +5 -3
  129. package/src/plugin.ts +12 -0
  130. package/src/types/{capabilities.ts → StorybookCapabilities.ts} +3 -1
  131. package/src/types/index.ts +1 -1
  132. package/dist/lib/browser/add-toast-M6ZVP2PQ.mjs.map +0 -7
  133. package/dist/lib/browser/chunk-F2MMDTKN.mjs.map +0 -7
  134. package/dist/lib/browser/chunk-M4TYMLOE.mjs.map +0 -7
  135. package/dist/lib/browser/close-M6YHTWUZ.mjs.map +0 -7
  136. package/dist/lib/browser/index.mjs.map +0 -7
  137. package/dist/lib/browser/meta.json +0 -1
  138. package/dist/lib/browser/open-ND4QPYWD.mjs +0 -10
  139. package/dist/lib/browser/open-ND4QPYWD.mjs.map +0 -7
  140. package/dist/lib/browser/operation-handler-DUWMXELV.mjs +0 -16
  141. package/dist/lib/browser/operation-handler-DUWMXELV.mjs.map +0 -7
  142. package/dist/lib/browser/scroll-into-view-UAINWR6E.mjs.map +0 -7
  143. package/dist/lib/browser/set-layout-mode-E6SJ6ATN.mjs.map +0 -7
  144. package/dist/lib/browser/state-MRRN7LZE.mjs.map +0 -7
  145. package/dist/lib/browser/switch-workspace-RPYF6M6L.mjs.map +0 -7
  146. package/dist/lib/browser/update-complementary-HNS4FIWF.mjs.map +0 -7
  147. package/dist/lib/browser/update-dialog-W7QOCQ2N.mjs.map +0 -7
  148. package/dist/lib/browser/update-popover-UELZDJW6.mjs.map +0 -7
  149. package/dist/lib/browser/update-sidebar-RJZTREDE.mjs.map +0 -7
  150. package/dist/lib/node-esm/add-toast-VMEADC7Y.mjs +0 -23
  151. package/dist/lib/node-esm/chunk-VDX7GMAD.mjs +0 -23
  152. package/dist/lib/node-esm/chunk-VDX7GMAD.mjs.map +0 -7
  153. package/dist/lib/node-esm/chunk-ZLM7QUEK.mjs +0 -22
  154. package/dist/lib/node-esm/chunk-ZLM7QUEK.mjs.map +0 -7
  155. package/dist/lib/node-esm/close-B54TW3OK.mjs +0 -12
  156. package/dist/lib/node-esm/close-B54TW3OK.mjs.map +0 -7
  157. package/dist/lib/node-esm/index.mjs +0 -236
  158. package/dist/lib/node-esm/index.mjs.map +0 -7
  159. package/dist/lib/node-esm/meta.json +0 -1
  160. package/dist/lib/node-esm/open-OLJQ7VR3.mjs +0 -12
  161. package/dist/lib/node-esm/open-OLJQ7VR3.mjs.map +0 -7
  162. package/dist/lib/node-esm/operation-handler-TCIEZXBS.mjs +0 -18
  163. package/dist/lib/node-esm/operation-handler-TCIEZXBS.mjs.map +0 -7
  164. package/dist/lib/node-esm/scroll-into-view-C3XK4YMK.mjs +0 -12
  165. package/dist/lib/node-esm/scroll-into-view-C3XK4YMK.mjs.map +0 -7
  166. package/dist/lib/node-esm/set-layout-mode-AEQI6AVR.mjs +0 -12
  167. package/dist/lib/node-esm/set-layout-mode-AEQI6AVR.mjs.map +0 -7
  168. package/dist/lib/node-esm/state-PVDE6Q6G.mjs +0 -45
  169. package/dist/lib/node-esm/state-PVDE6Q6G.mjs.map +0 -7
  170. package/dist/lib/node-esm/switch-workspace-ZDUCWF6E.mjs +0 -20
  171. package/dist/lib/node-esm/update-complementary-LAPUAZ5I.mjs +0 -26
  172. package/dist/lib/node-esm/update-dialog-5M7FL4XG.mjs +0 -28
  173. package/dist/lib/node-esm/update-popover-2TDGFHL3.mjs +0 -46
  174. package/dist/lib/node-esm/update-popover-2TDGFHL3.mjs.map +0 -7
  175. package/dist/lib/node-esm/update-sidebar-CU6TUDK5.mjs +0 -26
  176. package/dist/types/src/capabilities/operation-handler/index.d.ts +0 -4
  177. package/dist/types/src/capabilities/operation-handler/index.d.ts.map +0 -1
  178. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +0 -1
  179. package/dist/types/src/capabilities/state/index.d.ts +0 -14
  180. package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
  181. package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
  182. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  183. package/src/capabilities/operation-handler/index.ts +0 -11
  184. package/src/capabilities/state/index.ts +0 -7
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/close.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/operation';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Close> = LayoutOperation.Close.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,UAA+DC,gBAAgBC,MAAMC,KACzFC,UAAUC,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,gBAAeN;",
6
- "names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "Close", "pipe", "Operation", "withHandler", "void"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/core.ts", "../../../src/StorybookPlugin.ts", "../../../src/capabilities/operation-handler/index.ts", "../../../src/capabilities/state/index.ts", "../../../src/components/Layout/Layout.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationPlugin, type Plugin, RuntimePlugin } from '@dxos/app-framework';\nimport { AttentionPlugin } from '@dxos/plugin-attention';\nimport { GraphPlugin } from '@dxos/plugin-graph';\nimport { SettingsPlugin } from '@dxos/plugin-settings';\nimport { ThemePlugin } from '@dxos/plugin-theme';\nimport { defaultTx } from '@dxos/ui-theme';\n\n/**\n * Core plugins for testing/storybook environments.\n * NOTE: Does not include SpacePlugin to avoid circular dependencies.\n * Import SpacePlugin directly in your stories if needed.\n */\nexport const corePlugins = (): Plugin.Plugin[] => [\n AttentionPlugin(),\n GraphPlugin(),\n OperationPlugin(),\n RuntimePlugin(),\n SettingsPlugin(),\n ThemePlugin({ tx: defaultTx }),\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport { OperationHandler, State } from './capabilities';\nimport { Layout } from './components';\nimport { meta } from './meta';\nimport { type LayoutStateProps } from './types';\n\nexport type StorybookPluginOptions = {\n initialState?: Partial<LayoutStateProps>;\n};\n\nexport const StorybookPlugin = Plugin.define<StorybookPluginOptions>(meta).pipe(\n AppPlugin.addOperationHandlerModule({\n activate: OperationHandler,\n }),\n AppPlugin.addReactContextModule({\n activate: () =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactContext, {\n id: 'storybook-layout',\n context: Layout,\n }),\n ),\n }),\n Plugin.addModule(({ initialState }) => ({\n id: Capability.getModuleTag(State),\n activatesOn: ActivationEvents.Startup,\n activatesAfter: [AppActivationEvents.LayoutReady],\n activate: () => State({ initialState }),\n })),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(\n 'OperationHandler',\n () => import('./operation-handler'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const State = Capability.lazy('State', () => import('./state'));\n", "//\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 {\n AlertDialog,\n Button,\n Dialog,\n Icon,\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 { LayoutState, type LayoutStateProps } 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.Body>\n <Toast.Title classNames='items-center'>\n {toast.icon && <Icon icon={toast.icon} classNames='inline mr-1' />}\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.Body>\n <Toast.Actions>\n {toast.onAction && toast.actionAlt && toast.actionLabel && (\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 )}\n {toast.closeLabel && (\n <Toast.Close asChild>\n <Button>{toLocalizedString(toast.closeLabel, t)}</Button>\n </Toast.Close>\n )}\n </Toast.Actions>\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(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<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 role='none' 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 role='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 role='dialog' data={layout.dialogContent} limit={1} fallback={ErrorFallback} />\n </DialogOverlay>\n )}\n </DialogRoot>\n\n <Popover.VirtualTrigger key={iter} virtualRef={trigger} />\n <Popover.Portal>\n <Popover.Content\n side={layout.popoverSide}\n onInteractOutside={handleInteractOutside}\n onEscapeKeyDown={handleInteractOutside}\n sticky='always'\n hideWhenDetached\n >\n <Popover.Viewport>\n {layout.popoverKind === 'card' && (\n <Card.Root>\n <Card.Toolbar>\n {/* TODO(wittjosiah): Cleaner way to handle no drag handle in toolbar? */}\n <span />\n {layout.popoverTitle ? (\n <Card.Title>{toLocalizedString(layout.popoverTitle, t)}</Card.Title>\n ) : (\n <span />\n )}\n <Card.CloseIconButton onClick={handleClose} />\n </Card.Toolbar>\n <Surface.Surface role='card--content' data={layout.popoverContent} limit={1} />\n </Card.Root>\n )}\n {layout.popoverKind === 'base' && (\n <Surface.Surface role='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": ";;;;;;AAIA,SAASA,iBAA8BC,qBAAqB;AAC5D,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,sBAAsB;AAC/B,SAASC,mBAAmB;AAC5B,SAASC,iBAAiB;AAOnB,IAAMC,cAAc,MAAuB;EAChDC,gBAAAA;EACAC,YAAAA;EACAC,gBAAAA;EACAC,cAAAA;EACAC,eAAAA;EACAC,YAAY;IAAEC,IAAIC;EAAU,CAAA;;;;AClB9B,YAAYC,YAAY;AAExB,SAASC,kBAAkBC,cAAcC,cAAAA,aAAYC,cAAc;AACnE,SAASC,qBAAqBC,iBAAiB;;;ACH/C,SAASC,kBAAkB;AAGpB,IAAMC,mBAAmBC,WAAWC,KACzC,oBACA,MAAM,OAAO,kCAAA,CAAA;;;ACLf,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,QAAQC,YAAWC,KAAK,SAAS,MAAM,OAAO,sBAAA,CAAA;;;ACF3D,SAASC,iBAAiBC,oBAAoB;AAC9C,OAAOC,SAAiCC,aAAaC,YAAYC,WAAWC,QAAQC,gBAAgB;AAEpG,SAASC,SAASC,qBAAqB;AAEvC,SACEC,aACAC,QACAC,QACAC,MACAC,MACAC,SAEAC,OACAC,mBACAC,sBACK;AACP,SAASC,YAAY;AACrB,SAASC,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E,eAAY;IACZ+E,WAAW8C,GAAG,gEAAA;KAEd,sBAAA,cAACC,KAAAA;IAAE/C,WAAW8C,GAAGE,oBAAoB,8BAA8BJ,YAAYK,SAAS,OAAO,SAAA;KAC5FN,QAAQC,cAAcjI,EAAE,wBAAA,CAAA,CAAA;AAIjC;;;AHnNO,IAAMuI,kBAAkBC,OAAOC,OAA+BC,IAAAA,EAAMC,KACzEC,UAAUC,0BAA0B;EAClCC,UAAUC;AACZ,CAAA,GACAH,UAAUI,sBAAsB;EAC9BF,UAAU,MACDG,eACLC,YAAWC,YAAYC,aAAaC,cAAc;IAChDC,IAAI;IACJC,SAASC;EACX,CAAA,CAAA;AAEN,CAAA,GACAhB,OAAOiB,UAAU,CAAC,EAAEC,aAAY,OAAQ;EACtCJ,IAAIJ,YAAWS,aAAaC,KAAAA;EAC5BC,aAAaC,iBAAiBC;EAC9BC,gBAAgB;IAACC,oBAAoBC;;EACrCpB,UAAU,MAAMc,MAAM;IAAEF;EAAa,CAAA;AACvC,EAAA,GACAlB,OAAO2B,IAAI;",
6
- "names": ["OperationPlugin", "RuntimePlugin", "AttentionPlugin", "GraphPlugin", "SettingsPlugin", "ThemePlugin", "defaultTx", "corePlugins", "AttentionPlugin", "GraphPlugin", "OperationPlugin", "RuntimePlugin", "SettingsPlugin", "ThemePlugin", "tx", "defaultTx", "Effect", "ActivationEvents", "Capabilities", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "Capability", "OperationHandler", "Capability", "lazy", "Capability", "State", "Capability", "lazy", "RegistryContext", "useAtomValue", "React", "useCallback", "useContext", "useEffect", "useRef", "useState", "Surface", "useCapability", "AlertDialog", "Button", "Dialog", "Icon", "Main", "Popover", "Toast", "toLocalizedString", "useTranslation", "Card", "Mosaic", "descriptionMessage", "mx", "debounce_delay", "StoryToast", "toast", "onDismiss", "t", "useTranslation", "meta", "id", "Toast", "Root", "data-testid", "defaultOpen", "duration", "onOpenChange", "open", "Body", "Title", "classNames", "icon", "Icon", "title", "span", "toLocalizedString", "description", "Description", "Actions", "onAction", "actionAlt", "actionLabel", "Action", "altText", "asChild", "Button", "variant", "onClick", "closeLabel", "Close", "Layout", "children", "trigger", "useRef", "registry", "useContext", "RegistryContext", "stateAtom", "useCapability", "LayoutState", "layout", "useAtomValue", "iter", "setIter", "useState", "setOpen", "debounceRef", "updateState", "useCallback", "updates", "current", "get", "set", "useEffect", "clearTimeout", "popoverAnchor", "popoverOpen", "setTimeout", "popoverContent", "handleClose", "undefined", "popoverAnchorId", "popoverSide", "handleInteractOutside", "event", "type", "currentTarget", "classList", "contains", "preventDefault", "handleDismissToast", "toasts", "filter", "DialogRoot", "dialogType", "AlertDialog", "Dialog", "DialogOverlay", "Overlay", "Provider", "div", "role", "className", "Mosaic", "Popover", "Main", "navigationSidebarState", "sidebarState", "complementarySidebarState", "onNavigationSidebarStateChange", "next", "onComplementarySidebarStateChange", "modal", "dialogBlockAlign", "dialogOpen", "nextOpen", "Surface", "data", "dialogContent", "limit", "fallback", "ErrorFallback", "placeholder", "blockAlign", "dialogOverlayClasses", "style", "dialogOverlayStyle", "VirtualTrigger", "key", "virtualRef", "Portal", "Content", "side", "onInteractOutside", "onEscapeKeyDown", "sticky", "hideWhenDetached", "Viewport", "popoverKind", "Card", "Toolbar", "popoverTitle", "CloseIconButton", "Arrow", "map", "error", "errorString", "toString", "mx", "p", "descriptionMessage", "length", "StorybookPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addOperationHandlerModule", "activate", "OperationHandler", "addReactContextModule", "succeed", "Capability", "contributes", "Capabilities", "ReactContext", "id", "context", "Layout", "addModule", "initialState", "getModuleTag", "State", "activatesOn", "ActivationEvents", "Startup", "activatesAfter", "AppActivationEvents", "LayoutReady", "make"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/core.ts":{"bytes":2660,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":1661,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/types/capabilities.ts":{"bytes":2261,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/types/index.ts":{"bytes":476,"imports":[{"path":"src/types/capabilities.ts","kind":"import-statement","original":"./capabilities"}],"format":"esm"},"src/operations/update-state.ts":{"bytes":2266,"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":2156,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/close.ts":{"bytes":1412,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"format":"esm"},"src/operations/open.ts":{"bytes":1402,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"format":"esm"},"src/operations/scroll-into-view.ts":{"bytes":1480,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"format":"esm"},"src/operations/set-layout-mode.ts":{"bytes":1474,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"format":"esm"},"src/operations/switch-workspace.ts":{"bytes":2035,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","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":2748,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","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":3378,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","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":4904,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","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":2549,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"src/operations/update-state.ts","kind":"import-statement","original":"./update-state"}],"format":"esm"},"src/operations/index.ts":{"bytes":1914,"imports":[{"path":"@dxos/operation","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/capabilities/operation-handler/operation-handler.ts":{"bytes":1813,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/operations/index.ts","kind":"import-statement","original":"../../operations"}],"format":"esm"},"src/capabilities/operation-handler/index.ts":{"bytes":1095,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/operation-handler/operation-handler.ts","kind":"dynamic-import","original":"./operation-handler"}],"format":"esm"},"src/capabilities/state/state.tsx":{"bytes":4850,"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":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/capabilities/state/index.ts":{"bytes":837,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/state/state.tsx","kind":"dynamic-import","original":"./state"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":577,"imports":[{"path":"src/capabilities/operation-handler/index.ts","kind":"import-statement","original":"./operation-handler"},{"path":"src/capabilities/state/index.ts","kind":"import-statement","original":"./state"}],"format":"esm"},"src/components/Layout/Layout.tsx":{"bytes":27830,"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/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":"src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"src/types/index.ts","kind":"import-statement","original":"../../types"}],"format":"esm"},"src/components/Layout/index.ts":{"bytes":474,"imports":[{"path":"src/components/Layout/Layout.tsx","kind":"import-statement","original":"./Layout"}],"format":"esm"},"src/components/index.ts":{"bytes":467,"imports":[{"path":"src/components/Layout/index.ts","kind":"import-statement","original":"./Layout"}],"format":"esm"},"src/StorybookPlugin.ts":{"bytes":4308,"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":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/index.ts":{"bytes":637,"imports":[{"path":"src/core.ts","kind":"import-statement","original":"./core"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StorybookPlugin.ts","kind":"import-statement","original":"./StorybookPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/update-dialog-W7QOCQ2N.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1776},"dist/lib/browser/update-dialog-W7QOCQ2N.mjs":{"imports":[{"path":"dist/lib/browser/chunk-M4TYMLOE.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-dialog.ts","inputs":{"src/operations/update-dialog.ts":{"bytesInOutput":681}},"bytes":901},"dist/lib/browser/update-popover-UELZDJW6.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2541},"dist/lib/browser/update-popover-UELZDJW6.mjs":{"imports":[{"path":"dist/lib/browser/chunk-M4TYMLOE.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-popover.ts","inputs":{"src/operations/update-popover.ts":{"bytesInOutput":1073}},"bytes":1296},"dist/lib/browser/update-sidebar-RJZTREDE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1343},"dist/lib/browser/update-sidebar-RJZTREDE.mjs":{"imports":[{"path":"dist/lib/browser/chunk-M4TYMLOE.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-sidebar.ts","inputs":{"src/operations/update-sidebar.ts":{"bytesInOutput":496}},"bytes":719},"dist/lib/browser/operation-handler-DUWMXELV.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1880},"dist/lib/browser/operation-handler-DUWMXELV.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"dist/lib/browser/add-toast-M6ZVP2PQ.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/close-M6YHTWUZ.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/open-ND4QPYWD.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/scroll-into-view-UAINWR6E.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/set-layout-mode-E6SJ6ATN.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/switch-workspace-RPYF6M6L.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/update-complementary-HNS4FIWF.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/update-dialog-W7QOCQ2N.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/update-popover-UELZDJW6.mjs","kind":"dynamic-import"},{"path":"dist/lib/browser/update-sidebar-RJZTREDE.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/operation-handler/operation-handler.ts","inputs":{"src/capabilities/operation-handler/operation-handler.ts":{"bytesInOutput":289},"src/operations/index.ts":{"bytesInOutput":570}},"bytes":1113},"dist/lib/browser/state-MRRN7LZE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2577},"dist/lib/browser/state-MRRN7LZE.mjs":{"imports":[{"path":"dist/lib/browser/chunk-F2MMDTKN.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}],"exports":["default"],"entryPoint":"src/capabilities/state/state.tsx","inputs":{"src/capabilities/state/state.tsx":{"bytesInOutput":1072}},"bytes":1246},"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19531},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/plugin-theme","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","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":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/operation-handler-DUWMXELV.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/state-MRRN7LZE.mjs","kind":"dynamic-import"},{"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/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}],"exports":["StorybookPlugin","corePlugins","meta"],"entryPoint":"src/index.ts","inputs":{"src/core.ts":{"bytesInOutput":494},"src/index.ts":{"bytesInOutput":0},"src/StorybookPlugin.ts":{"bytesInOutput":760},"src/capabilities/operation-handler/index.ts":{"bytesInOutput":160},"src/capabilities/index.ts":{"bytesInOutput":0},"src/capabilities/state/index.ts":{"bytesInOutput":142},"src/components/Layout/Layout.tsx":{"bytesInOutput":7402},"src/components/Layout/index.ts":{"bytesInOutput":0},"src/components/index.ts":{"bytesInOutput":0}},"bytes":9299},"dist/lib/browser/add-toast-M6ZVP2PQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1116},"dist/lib/browser/add-toast-M6ZVP2PQ.mjs":{"imports":[{"path":"dist/lib/browser/chunk-M4TYMLOE.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/add-toast.ts","inputs":{"src/operations/add-toast.ts":{"bytesInOutput":379}},"bytes":587},"dist/lib/browser/close-M6YHTWUZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":750},"dist/lib/browser/close-M6YHTWUZ.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/close.ts","inputs":{"src/operations/close.ts":{"bytesInOutput":252}},"bytes":362},"dist/lib/browser/open-ND4QPYWD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":745},"dist/lib/browser/open-ND4QPYWD.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/open.ts","inputs":{"src/operations/open.ts":{"bytesInOutput":250}},"bytes":357},"dist/lib/browser/scroll-into-view-UAINWR6E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":788},"dist/lib/browser/scroll-into-view-UAINWR6E.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/scroll-into-view.ts","inputs":{"src/operations/scroll-into-view.ts":{"bytesInOutput":272}},"bytes":415},"dist/lib/browser/set-layout-mode-E6SJ6ATN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":784},"dist/lib/browser/set-layout-mode-E6SJ6ATN.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/set-layout-mode.ts","inputs":{"src/operations/set-layout-mode.ts":{"bytesInOutput":270}},"bytes":410},"dist/lib/browser/switch-workspace-RPYF6M6L.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1072},"dist/lib/browser/switch-workspace-RPYF6M6L.mjs":{"imports":[{"path":"dist/lib/browser/chunk-M4TYMLOE.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/switch-workspace.ts","inputs":{"src/operations/switch-workspace.ts":{"bytesInOutput":362}},"bytes":591},"dist/lib/browser/update-complementary-HNS4FIWF.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1451},"dist/lib/browser/update-complementary-HNS4FIWF.mjs":{"imports":[{"path":"dist/lib/browser/chunk-M4TYMLOE.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-F2MMDTKN.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/operations/update-complementary.ts","inputs":{"src/operations/update-complementary.ts":{"bytesInOutput":547}},"bytes":788},"dist/lib/browser/chunk-M4TYMLOE.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1182},"dist/lib/browser/chunk-M4TYMLOE.mjs":{"imports":[{"path":"dist/lib/browser/chunk-F2MMDTKN.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":398}},"bytes":558},"dist/lib/browser/chunk-F2MMDTKN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2117},"dist/lib/browser/chunk-F2MMDTKN.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["LayoutState","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":395},"src/types/capabilities.ts":{"bytesInOutput":105},"src/types/index.ts":{"bytesInOutput":0}},"bytes":624}}}
@@ -1,10 +0,0 @@
1
- // src/operations/open.ts
2
- import * as Effect from "effect/Effect";
3
- import { LayoutOperation } from "@dxos/app-toolkit";
4
- import { Operation } from "@dxos/operation";
5
- var handler = LayoutOperation.Open.pipe(Operation.withHandler(() => Effect.void));
6
- var open_default = handler;
7
- export {
8
- open_default as default
9
- };
10
- //# sourceMappingURL=open-ND4QPYWD.mjs.map
@@ -1,7 +0,0 @@
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/operation';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Open> = LayoutOperation.Open.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,UAA8DC,gBAAgBC,KAAKC,KACvFC,UAAUC,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,eAAeN;",
6
- "names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "Open", "pipe", "Operation", "withHandler", "void"]
7
- }
@@ -1,16 +0,0 @@
1
- // src/capabilities/operation-handler/operation-handler.ts
2
- import * as Effect from "effect/Effect";
3
- import { Capabilities, Capability } from "@dxos/app-framework";
4
-
5
- // src/operations/index.ts
6
- import { OperationHandlerSet } from "@dxos/operation";
7
- var TestingOperationHandlerSet = OperationHandlerSet.lazy(() => import("./add-toast-M6ZVP2PQ.mjs"), () => import("./close-M6YHTWUZ.mjs"), () => import("./open-ND4QPYWD.mjs"), () => import("./scroll-into-view-UAINWR6E.mjs"), () => import("./set-layout-mode-E6SJ6ATN.mjs"), () => import("./switch-workspace-RPYF6M6L.mjs"), () => import("./update-complementary-HNS4FIWF.mjs"), () => import("./update-dialog-W7QOCQ2N.mjs"), () => import("./update-popover-UELZDJW6.mjs"), () => import("./update-sidebar-RJZTREDE.mjs"));
8
-
9
- // src/capabilities/operation-handler/operation-handler.ts
10
- var operation_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
11
- return Capability.contributes(Capabilities.OperationHandler, TestingOperationHandlerSet);
12
- }));
13
- export {
14
- operation_handler_default as default
15
- };
16
- //# sourceMappingURL=operation-handler-DUWMXELV.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/operation-handler/operation-handler.ts", "../../../src/operations/index.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/operation';\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", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport const TestingOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./add-toast'),\n () => import('./close'),\n () => import('./open'),\n () => import('./scroll-into-view'),\n () => import('./set-layout-mode'),\n () => import('./switch-workspace'),\n () => import('./update-complementary'),\n () => import('./update-dialog'),\n () => import('./update-popover'),\n () => import('./update-sidebar'),\n);\n"],
5
- "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;;;ACFzC,SAASC,2BAA2B;AAE7B,IAAMC,6BAA6BC,oBAAoBC,KAC5D,MAAM,OAAO,0BAAA,GACb,MAAM,OAAO,sBAAA,GACb,MAAM,OAAO,qBAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,gCAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,qCAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,+BAAA,CAAA;;;ADLf,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,SAAOF,WAAWG,YAAYC,aAAaC,kBAAkBC,0BAAAA;AAC/D,CAAA,CAAA;",
6
- "names": ["Effect", "Capabilities", "Capability", "OperationHandlerSet", "TestingOperationHandlerSet", "OperationHandlerSet", "lazy", "Capability", "makeModule", "fnUntraced", "contributes", "Capabilities", "OperationHandler", "TestingOperationHandlerSet"]
7
- }
@@ -1,7 +0,0 @@
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/operation';\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,UAAwEC,gBAAgBC,eAAeC,KAC3GC,UAAUC,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,2BAAeN;",
6
- "names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "ScrollIntoView", "pipe", "Operation", "withHandler", "void"]
7
- }
@@ -1,7 +0,0 @@
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/operation';\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,UAAuEC,gBAAgBC,cAAcC,KACzGC,UAAUC,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,0BAAeN;",
6
- "names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "SetLayoutMode", "pipe", "Operation", "withHandler", "void"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/state/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 { LayoutState, type LayoutStateProps } from '../../types';\n\nconst defaultState: 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<LayoutStateProps> }) {\n const { initialState } = props ?? {};\n const stateAtom = Atom.make<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 [Capability.contributes(LayoutState, stateAtom), Capability.contributes(AppCapabilities.Layout, layoutAtom)];\n }),\n);\n"],
5
- "mappings": ";;;;;AAIA,SAASA,YAAY;AACrB,YAAYC,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAIhC,IAAMC,eAAiC;EACrCC,cAAc;EACdC,2BAA2B;EAC3BC,YAAY;EACZC,QAAQ,CAAA;EACRC,WAAW;AACb;AAEA,IAAA,gBAAeC,WAAWC,WACjBC,kBAAW,WAAWC,OAAoD;AAC/E,QAAM,EAAEC,aAAY,IAAKD,SAAS,CAAC;AACnC,QAAME,YAAYC,KAAKC,KAAuB;IAAE,GAAGb;IAAc,GAAGU;EAAa,CAAA;AAEjF,QAAMI,aAAaF,KAAKC,KAAK,CAACE,QAAAA;AAC5B,UAAMC,QAAQD,IAAIJ,SAAAA;AAClB,WAAO;MACLM,MAAM;MACNd,YAAYa,MAAMb;MAClBe,aAAaF,MAAMf,iBAAiB;MACpCkB,0BAA0BH,MAAMd,8BAA8B;MAC9DG,WAAWW,MAAMX;MACjBe,QAAQ,CAAA;MACRC,UAAU,CAAA;MACVC,gBAAgBC;IAClB;EACF,CAAA;AAEA,SAAO;IAACjB,WAAWkB,YAAYC,aAAad,SAAAA;IAAYL,WAAWkB,YAAYE,gBAAgBC,QAAQb,UAAAA;;AACzG,CAAA,CAAA;",
6
- "names": ["Atom", "Effect", "Capability", "AppCapabilities", "defaultState", "sidebarState", "complementarySidebarState", "dialogOpen", "toasts", "workspace", "Capability", "makeModule", "fnUntraced", "props", "initialState", "stateAtom", "Atom", "make", "layoutAtom", "get", "state", "mode", "sidebarOpen", "complementarySidebarOpen", "active", "inactive", "scrollIntoView", "undefined", "contributes", "LayoutState", "AppCapabilities", "Layout"]
7
- }
@@ -1,7 +0,0 @@
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/operation';\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
- }
@@ -1,7 +0,0 @@
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/operation';\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
- }
@@ -1,7 +0,0 @@
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/operation';\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
- }
@@ -1,7 +0,0 @@
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/operation';\n\nimport { type LayoutStateProps } 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<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,OAAkC;MACtCC,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
- }
@@ -1,7 +0,0 @@
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/operation';\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,23 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- updateState
4
- } from "./chunk-ZLM7QUEK.mjs";
5
- import "./chunk-VDX7GMAD.mjs";
6
-
7
- // src/operations/add-toast.ts
8
- import * as Effect from "effect/Effect";
9
- import { LayoutOperation } from "@dxos/app-toolkit";
10
- import { Operation } from "@dxos/operation";
11
- var handler = LayoutOperation.AddToast.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
- yield* updateState((state) => ({
13
- toasts: [
14
- ...state.toasts,
15
- input
16
- ]
17
- }));
18
- })));
19
- var add_toast_default = handler;
20
- export {
21
- add_toast_default as default
22
- };
23
- //# sourceMappingURL=add-toast-VMEADC7Y.mjs.map
@@ -1,23 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/meta.ts
4
- import { trim } from "@dxos/util";
5
- var meta = {
6
- id: "org.dxos.plugin.storybook-layout",
7
- name: "Storybook",
8
- description: trim`
9
- Development layout optimized for Storybook component testing and documentation.
10
- Provides specialized views for component development and design system exploration.
11
- `,
12
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-testing"
13
- };
14
-
15
- // src/types/capabilities.ts
16
- import { Capability } from "@dxos/app-framework";
17
- var LayoutState = Capability.make(`${meta.id}.state`);
18
-
19
- export {
20
- meta,
21
- LayoutState
22
- };
23
- //# sourceMappingURL=chunk-VDX7GMAD.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts", "../../../src/types/capabilities.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.storybook-layout',\n name: 'Storybook',\n description: trim`\n Development layout optimized for Storybook component testing and documentation.\n Provides specialized views for component development and design system exploration.\n `,\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-testing',\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\n\nimport { Capability } from '@dxos/app-framework';\nimport { type LayoutOperation } from '@dxos/app-toolkit';\nimport { type Label } from '@dxos/react-ui';\n\nimport { meta } from '../meta';\n\nexport type LayoutStateProps = {\n sidebarState?: 'expanded' | 'collapsed' | 'closed';\n complementarySidebarState?: 'expanded' | 'collapsed' | 'closed';\n\n dialogOpen: boolean;\n dialogType?: 'default' | 'alert';\n dialogBlockAlign?: 'start' | 'center' | 'end';\n dialogOverlayClasses?: string;\n dialogOverlayStyle?: Record<string, any>;\n /** Data to be passed to the dialog Surface. */\n dialogContent?: any;\n\n popoverOpen?: boolean;\n popoverSide?: 'top' | 'right' | 'bottom' | 'left';\n popoverVariant?: 'virtual' | 'react';\n popoverAnchor?: HTMLButtonElement;\n popoverAnchorId?: string;\n popoverKind?: 'base' | 'card';\n popoverTitle?: Label;\n popoverContent?: any;\n\n toasts: LayoutOperation.Toast[];\n\n workspace: string;\n};\n\nexport const LayoutState = Capability.make<Atom.Writable<LayoutStateProps>>(`${meta.id}.state`);\n"],
5
- "mappings": ";;;AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,QAAQ;AACV;;;ACTA,SAASC,kBAAkB;AAgCpB,IAAMC,cAAcC,WAAWC,KAAsC,GAAGC,KAAKC,EAAE,QAAQ;",
6
- "names": ["trim", "meta", "id", "name", "description", "trim", "source", "Capability", "LayoutState", "Capability", "make", "meta", "id"]
7
- }
@@ -1,22 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- LayoutState
4
- } from "./chunk-VDX7GMAD.mjs";
5
-
6
- // src/operations/update-state.ts
7
- import * as Effect from "effect/Effect";
8
- import { Capabilities, Capability } from "@dxos/app-framework";
9
- var updateState = (fn) => Effect.gen(function* () {
10
- const registry = yield* Capability.get(Capabilities.AtomRegistry);
11
- const stateAtom = yield* Capability.get(LayoutState);
12
- const current = registry.get(stateAtom);
13
- registry.set(stateAtom, {
14
- ...current,
15
- ...fn(current)
16
- });
17
- });
18
-
19
- export {
20
- updateState
21
- };
22
- //# sourceMappingURL=chunk-ZLM7QUEK.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/update-state.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\n\nimport { LayoutState, type LayoutStateProps } from '../types';\n\nexport const updateState = (fn: (state: LayoutStateProps) => Partial<LayoutStateProps>) =>\n Effect.gen(function* () {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(LayoutState);\n const current = registry.get(stateAtom);\n registry.set(stateAtom, { ...current, ...fn(current) });\n });\n"],
5
- "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AAIlC,IAAMC,cAAc,CAACC,OACnBC,WAAI,aAAA;AACT,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAMC,YAAY,OAAOJ,WAAWC,IAAII,WAAAA;AACxC,QAAMC,UAAUP,SAASE,IAAIG,SAAAA;AAC7BL,WAASQ,IAAIH,WAAW;IAAE,GAAGE;IAAS,GAAGT,GAAGS,OAAAA;EAAS,CAAA;AACvD,CAAA;",
6
- "names": ["Effect", "Capabilities", "Capability", "updateState", "fn", "gen", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "stateAtom", "LayoutState", "current", "set"]
7
- }
@@ -1,12 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/operations/close.ts
4
- import * as Effect from "effect/Effect";
5
- import { LayoutOperation } from "@dxos/app-toolkit";
6
- import { Operation } from "@dxos/operation";
7
- var handler = LayoutOperation.Close.pipe(Operation.withHandler(() => Effect.void));
8
- var close_default = handler;
9
- export {
10
- close_default as default
11
- };
12
- //# sourceMappingURL=close-B54TW3OK.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/close.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/operation';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.Close> = LayoutOperation.Close.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,UAA+DC,gBAAgBC,MAAMC,KACzFC,UAAUC,YAAY,MAAaC,WAAI,CAAA;AAGzC,IAAA,gBAAeN;",
6
- "names": ["Effect", "LayoutOperation", "Operation", "handler", "LayoutOperation", "Close", "pipe", "Operation", "withHandler", "void"]
7
- }