@dxos/plugin-deck 0.6.12-main.5cc132e → 0.6.12-main.78ddbdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +87 -76
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts +2 -2
- package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
- package/dist/types/src/hooks/useNode.d.ts.map +1 -1
- package/package.json +28 -28
- package/src/DeckPlugin.tsx +80 -51
- package/src/components/DeckLayout/ComplementarySidebar.tsx +18 -16
- package/src/components/DeckLayout/DeckLayout.tsx +34 -43
- package/src/components/DeckLayout/NodePlankHeading.tsx +6 -9
- package/src/hooks/useNode.ts +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts":{"bytes":729,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/useNode.ts":{"bytes":3926,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts":{"bytes":2645,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/useMainSize.ts":{"bytes":1668,"imports":[{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/index.ts":{"bytes":725,"imports":[{"path":"packages/plugins/plugin-deck/src/hooks/useNode.ts","kind":"import-statement","original":"./useNode"},{"path":"packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts","kind":"import-statement","original":"./useNodeActionExpander"},{"path":"packages/plugins/plugin-deck/src/hooks/useMainSize.ts","kind":"import-statement","original":"./useMainSize"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx":{"bytes":2681,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"}],"format":"esm"},"packages/plugins/plugin-deck/src/meta.ts":{"bytes":804,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx":{"bytes":19063,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-text-tooltip","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx":{"bytes":1553,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx":{"bytes":5773,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx","kind":"import-statement","original":"./NodePlankHeading"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx","kind":"import-statement","original":"./PlankLoading"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/LayoutContext.ts":{"bytes":1490,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx":{"bytes":6758,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx","kind":"import-statement","original":"./NodePlankHeading"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx","kind":"import-statement","original":"./PlankError"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx","kind":"import-statement","original":"./PlankLoading"},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx":{"bytes":2038,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Fallback.tsx":{"bytes":2488,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Fullscreen.tsx":{"bytes":3405,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Fallback.tsx","kind":"import-statement","original":"./Fallback"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts","kind":"import-statement","original":"./constants"},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckContext.ts":{"bytes":1607,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx":{"bytes":20222,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx","kind":"import-statement","original":"./NodePlankHeading"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx","kind":"import-statement","original":"./PlankError"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx","kind":"import-statement","original":"./PlankLoading"},{"path":"packages/plugins/plugin-deck/src/DeckPlugin.tsx","kind":"import-statement","original":"../../DeckPlugin"},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-deck/src/components/DeckContext.ts","kind":"import-statement","original":"../DeckContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx":{"bytes":4472,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx":{"bytes":2092,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Toast.tsx":{"bytes":5139,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/util/check-app-scheme.ts":{"bytes":2615,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/util/layout-parts.ts":{"bytes":1409,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/util/overscroll.ts":{"bytes":20285,"imports":[{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/util/index.ts":{"bytes":723,"imports":[{"path":"packages/plugins/plugin-deck/src/util/check-app-scheme.ts","kind":"import-statement","original":"./check-app-scheme"},{"path":"packages/plugins/plugin-deck/src/util/layout-parts.ts","kind":"import-statement","original":"./layout-parts"},{"path":"packages/plugins/plugin-deck/src/util/overscroll.ts","kind":"import-statement","original":"./overscroll"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx":{"bytes":32384,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx","kind":"import-statement","original":"./ActiveNode"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx","kind":"import-statement","original":"./ComplementarySidebar"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx","kind":"import-statement","original":"./ContentEmpty"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Fullscreen.tsx","kind":"import-statement","original":"./Fullscreen"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx","kind":"import-statement","original":"./Plank"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx","kind":"import-statement","original":"./Sidebar"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Toast.tsx","kind":"import-statement","original":"./Toast"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-deck/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/plugins/plugin-deck/src/components/DeckContext.ts","kind":"import-statement","original":"../DeckContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/index.ts":{"bytes":666,"imports":[{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts","kind":"import-statement","original":"./constants"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx","kind":"import-statement","original":"./DeckLayout"}],"format":"esm"},"packages/plugins/plugin-deck/src/types.ts":{"bytes":2200,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/components/LayoutSettings.tsx":{"bytes":10600,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-deck/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/index.ts":{"bytes":823,"imports":[{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/index.ts","kind":"import-statement","original":"./DeckLayout"},{"path":"packages/plugins/plugin-deck/src/components/DeckContext.ts","kind":"import-statement","original":"./DeckContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"./LayoutContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutSettings.tsx","kind":"import-statement","original":"./LayoutSettings"}],"format":"esm"},"packages/plugins/plugin-deck/src/layout.ts":{"bytes":25251,"imports":[{"path":"immer","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/translations.ts":{"bytes":6555,"imports":[{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/DeckPlugin.tsx":{"bytes":92008,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"immer","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/meta","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-deck/src/layout.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-deck/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-deck/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-deck/src/index.ts":{"bytes":752,"imports":[{"path":"packages/plugins/plugin-deck/src/DeckPlugin.tsx","kind":"import-statement","original":"./DeckPlugin"},{"path":"packages/plugins/plugin-deck/src/DeckPlugin.tsx","kind":"import-statement","original":"./DeckPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-deck/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":133605},"packages/plugins/plugin-deck/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"immer","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/meta","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-text-tooltip","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"immer","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["DeckAction","DeckPlugin","default"],"entryPoint":"packages/plugins/plugin-deck/src/index.ts","inputs":{"packages/plugins/plugin-deck/src/DeckPlugin.tsx":{"bytesInOutput":23446},"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts":{"bytesInOutput":57},"packages/plugins/plugin-deck/src/components/DeckLayout/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx":{"bytesInOutput":7844},"packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx":{"bytesInOutput":498},"packages/plugins/plugin-deck/src/hooks/useNode.ts":{"bytesInOutput":593},"packages/plugins/plugin-deck/src/hooks/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts":{"bytesInOutput":571},"packages/plugins/plugin-deck/src/hooks/useMainSize.ts":{"bytesInOutput":355},"packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx":{"bytesInOutput":1401},"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx":{"bytesInOutput":4794},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx":{"bytesInOutput":1395},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx":{"bytesInOutput":353},"packages/plugins/plugin-deck/src/components/LayoutContext.ts":{"bytesInOutput":223},"packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx":{"bytesInOutput":560},"packages/plugins/plugin-deck/src/components/DeckLayout/Fullscreen.tsx":{"bytesInOutput":691},"packages/plugins/plugin-deck/src/components/DeckLayout/Fallback.tsx":{"bytesInOutput":608},"packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx":{"bytesInOutput":4882},"packages/plugins/plugin-deck/src/components/DeckContext.ts":{"bytesInOutput":268},"packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx":{"bytesInOutput":995},"packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx":{"bytesInOutput":478},"packages/plugins/plugin-deck/src/components/DeckLayout/Toast.tsx":{"bytesInOutput":1285},"packages/plugins/plugin-deck/src/util/check-app-scheme.ts":{"bytesInOutput":454},"packages/plugins/plugin-deck/src/util/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/util/layout-parts.ts":{"bytesInOutput":115},"packages/plugins/plugin-deck/src/util/overscroll.ts":{"bytesInOutput":1153},"packages/plugins/plugin-deck/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/components/LayoutSettings.tsx":{"bytesInOutput":2974},"packages/plugins/plugin-deck/src/types.ts":{"bytesInOutput":101},"packages/plugins/plugin-deck/src/layout.ts":{"bytesInOutput":3958},"packages/plugins/plugin-deck/src/translations.ts":{"bytesInOutput":2104},"packages/plugins/plugin-deck/src/index.ts":{"bytesInOutput":30}},"bytes":64757},"packages/plugins/plugin-deck/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-deck/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs","kind":"import-statement"}],"exports":["DECK_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-deck/src/meta.ts","inputs":{},"bytes":157},"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":356},"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs":{"imports":[],"exports":["DECK_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-deck/src/meta.ts":{"bytesInOutput":100}},"bytes":231}}}
|
|
1
|
+
{"inputs":{"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts":{"bytes":729,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/useNode.ts":{"bytes":4188,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts":{"bytes":2645,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/useMainSize.ts":{"bytes":1668,"imports":[{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/hooks/index.ts":{"bytes":725,"imports":[{"path":"packages/plugins/plugin-deck/src/hooks/useNode.ts","kind":"import-statement","original":"./useNode"},{"path":"packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts","kind":"import-statement","original":"./useNodeActionExpander"},{"path":"packages/plugins/plugin-deck/src/hooks/useMainSize.ts","kind":"import-statement","original":"./useMainSize"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx":{"bytes":2681,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"}],"format":"esm"},"packages/plugins/plugin-deck/src/meta.ts":{"bytes":804,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx":{"bytes":18285,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-text-tooltip","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx":{"bytes":1553,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx":{"bytes":5773,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx","kind":"import-statement","original":"./NodePlankHeading"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx","kind":"import-statement","original":"./PlankLoading"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/LayoutContext.ts":{"bytes":1490,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx":{"bytes":7205,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx","kind":"import-statement","original":"./NodePlankHeading"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx","kind":"import-statement","original":"./PlankError"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx","kind":"import-statement","original":"./PlankLoading"},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx":{"bytes":2038,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Fallback.tsx":{"bytes":2488,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Fullscreen.tsx":{"bytes":3405,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Fallback.tsx","kind":"import-statement","original":"./Fallback"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts","kind":"import-statement","original":"./constants"},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckContext.ts":{"bytes":1607,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx":{"bytes":20222,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx","kind":"import-statement","original":"./NodePlankHeading"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx","kind":"import-statement","original":"./PlankError"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx","kind":"import-statement","original":"./PlankLoading"},{"path":"packages/plugins/plugin-deck/src/DeckPlugin.tsx","kind":"import-statement","original":"../../DeckPlugin"},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-deck/src/components/DeckContext.ts","kind":"import-statement","original":"../DeckContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx":{"bytes":4472,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx":{"bytes":2092,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/hooks/index.ts","kind":"import-statement","original":"../../hooks"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/Toast.tsx":{"bytes":5139,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/util/check-app-scheme.ts":{"bytes":2615,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/util/layout-parts.ts":{"bytes":1409,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/util/overscroll.ts":{"bytes":20285,"imports":[{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/util/index.ts":{"bytes":723,"imports":[{"path":"packages/plugins/plugin-deck/src/util/check-app-scheme.ts","kind":"import-statement","original":"./check-app-scheme"},{"path":"packages/plugins/plugin-deck/src/util/layout-parts.ts","kind":"import-statement","original":"./layout-parts"},{"path":"packages/plugins/plugin-deck/src/util/overscroll.ts","kind":"import-statement","original":"./overscroll"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx":{"bytes":32025,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx","kind":"import-statement","original":"./ActiveNode"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx","kind":"import-statement","original":"./ComplementarySidebar"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx","kind":"import-statement","original":"./ContentEmpty"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Fullscreen.tsx","kind":"import-statement","original":"./Fullscreen"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx","kind":"import-statement","original":"./Plank"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx","kind":"import-statement","original":"./Sidebar"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx","kind":"import-statement","original":"./StatusBar"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/Toast.tsx","kind":"import-statement","original":"./Toast"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../../meta"},{"path":"packages/plugins/plugin-deck/src/util/index.ts","kind":"import-statement","original":"../../util"},{"path":"packages/plugins/plugin-deck/src/components/DeckContext.ts","kind":"import-statement","original":"../DeckContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"../LayoutContext"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/DeckLayout/index.ts":{"bytes":666,"imports":[{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts","kind":"import-statement","original":"./constants"},{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx","kind":"import-statement","original":"./DeckLayout"}],"format":"esm"},"packages/plugins/plugin-deck/src/types.ts":{"bytes":2200,"imports":[],"format":"esm"},"packages/plugins/plugin-deck/src/components/LayoutSettings.tsx":{"bytes":10600,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-deck/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-deck/src/components/index.ts":{"bytes":823,"imports":[{"path":"packages/plugins/plugin-deck/src/components/DeckLayout/index.ts","kind":"import-statement","original":"./DeckLayout"},{"path":"packages/plugins/plugin-deck/src/components/DeckContext.ts","kind":"import-statement","original":"./DeckContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutContext.ts","kind":"import-statement","original":"./LayoutContext"},{"path":"packages/plugins/plugin-deck/src/components/LayoutSettings.tsx","kind":"import-statement","original":"./LayoutSettings"}],"format":"esm"},"packages/plugins/plugin-deck/src/layout.ts":{"bytes":25251,"imports":[{"path":"immer","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-deck/src/translations.ts":{"bytes":6555,"imports":[{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-deck/src/DeckPlugin.tsx":{"bytes":94464,"imports":[{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"immer","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/meta","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-deck/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-deck/src/layout.ts","kind":"import-statement","original":"./layout"},{"path":"packages/plugins/plugin-deck/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-deck/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-deck/src/util/index.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/plugin-deck/src/index.ts":{"bytes":752,"imports":[{"path":"packages/plugins/plugin-deck/src/DeckPlugin.tsx","kind":"import-statement","original":"./DeckPlugin"},{"path":"packages/plugins/plugin-deck/src/DeckPlugin.tsx","kind":"import-statement","original":"./DeckPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-deck/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":134637},"packages/plugins/plugin-deck/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs","kind":"import-statement"},{"path":"@preact/signals-core","kind":"import-statement","external":true},{"path":"immer","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/plugin-attention","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/meta","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-text-tooltip","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-deck","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"immer","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["DeckAction","DeckPlugin","default"],"entryPoint":"packages/plugins/plugin-deck/src/index.ts","inputs":{"packages/plugins/plugin-deck/src/DeckPlugin.tsx":{"bytesInOutput":23712},"packages/plugins/plugin-deck/src/components/DeckLayout/constants.ts":{"bytesInOutput":57},"packages/plugins/plugin-deck/src/components/DeckLayout/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/components/DeckLayout/DeckLayout.tsx":{"bytesInOutput":7688},"packages/plugins/plugin-deck/src/components/DeckLayout/ActiveNode.tsx":{"bytesInOutput":498},"packages/plugins/plugin-deck/src/hooks/useNode.ts":{"bytesInOutput":662},"packages/plugins/plugin-deck/src/hooks/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/hooks/useNodeActionExpander.ts":{"bytesInOutput":571},"packages/plugins/plugin-deck/src/hooks/useMainSize.ts":{"bytesInOutput":355},"packages/plugins/plugin-deck/src/components/DeckLayout/ComplementarySidebar.tsx":{"bytesInOutput":1540},"packages/plugins/plugin-deck/src/components/DeckLayout/NodePlankHeading.tsx":{"bytesInOutput":4582},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankError.tsx":{"bytesInOutput":1395},"packages/plugins/plugin-deck/src/components/DeckLayout/PlankLoading.tsx":{"bytesInOutput":353},"packages/plugins/plugin-deck/src/components/LayoutContext.ts":{"bytesInOutput":223},"packages/plugins/plugin-deck/src/components/DeckLayout/ContentEmpty.tsx":{"bytesInOutput":560},"packages/plugins/plugin-deck/src/components/DeckLayout/Fullscreen.tsx":{"bytesInOutput":691},"packages/plugins/plugin-deck/src/components/DeckLayout/Fallback.tsx":{"bytesInOutput":608},"packages/plugins/plugin-deck/src/components/DeckLayout/Plank.tsx":{"bytesInOutput":4882},"packages/plugins/plugin-deck/src/components/DeckContext.ts":{"bytesInOutput":268},"packages/plugins/plugin-deck/src/components/DeckLayout/Sidebar.tsx":{"bytesInOutput":995},"packages/plugins/plugin-deck/src/components/DeckLayout/StatusBar.tsx":{"bytesInOutput":478},"packages/plugins/plugin-deck/src/components/DeckLayout/Toast.tsx":{"bytesInOutput":1285},"packages/plugins/plugin-deck/src/util/check-app-scheme.ts":{"bytesInOutput":454},"packages/plugins/plugin-deck/src/util/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/util/layout-parts.ts":{"bytesInOutput":115},"packages/plugins/plugin-deck/src/util/overscroll.ts":{"bytesInOutput":1153},"packages/plugins/plugin-deck/src/components/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-deck/src/components/LayoutSettings.tsx":{"bytesInOutput":2974},"packages/plugins/plugin-deck/src/types.ts":{"bytesInOutput":101},"packages/plugins/plugin-deck/src/layout.ts":{"bytesInOutput":3958},"packages/plugins/plugin-deck/src/translations.ts":{"bytesInOutput":2104},"packages/plugins/plugin-deck/src/index.ts":{"bytesInOutput":30}},"bytes":64863},"packages/plugins/plugin-deck/dist/lib/browser/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-deck/dist/lib/browser/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs","kind":"import-statement"}],"exports":["DECK_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-deck/src/meta.ts","inputs":{},"bytes":157},"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":356},"packages/plugins/plugin-deck/dist/lib/browser/chunk-YVHGFQQR.mjs":{"imports":[],"exports":["DECK_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-deck/src/meta.ts":{"bytesInOutput":100}},"bytes":231}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeckPlugin.d.ts","sourceRoot":"","sources":["../../../src/DeckPlugin.tsx"],"names":[],"mappings":"AAQA,OAAO,EAUL,KAAK,gBAAgB,EAYrB,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAgC7B,OAAO,EAA4B,KAAK,kBAAkB,EAA2C,MAAM,SAAS,CAAC;AA0BrH,oBAAY,UAAU;IACpB,iBAAiB,2CAAqC;CACvD;AAED,yBAAiB,UAAU,CAAC;IAC1B,KAAY,eAAe,GAAG,UAAU,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,UAAU,wBAEpB;IACD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAQ,gBAAgB,CAAC,kBAAkB,CA4iB3C,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type LayoutParts } from '@dxos/app-framework';
|
|
3
3
|
export type ComplementarySidebarProps = {
|
|
4
|
-
|
|
4
|
+
context?: string;
|
|
5
5
|
layoutParts: LayoutParts;
|
|
6
6
|
flatDeck?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const ComplementarySidebar: ({
|
|
8
|
+
export declare const ComplementarySidebar: ({ context, layoutParts, flatDeck }: ComplementarySidebarProps) => React.JSX.Element;
|
|
9
9
|
//# sourceMappingURL=ComplementarySidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAgC,MAAM,qBAAqB,CAAC;AAarF,MAAM,MAAM,yBAAyB,GAAG;IACtC,
|
|
1
|
+
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAgC,MAAM,qBAAqB,CAAC;AAarF,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,oBAAoB,uCAAwC,yBAAyB,sBAkCjG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAErF,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,WAAW,EAEhB,KAAK,KAAK,IAAI,WAAW,EAG1B,MAAM,qBAAqB,CAAC;AAc7B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE;QACN,SAAS,CAAC,EAAE;YAAE,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACrC,CAAC;IACF,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,UAAU,sGASpB,eAAe,sBAwOjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodePlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/NodePlankHeading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NodePlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/NodePlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAQL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,IAAI,EAAY,MAAM,oBAAoB,CAAC;AAOzD,eAAO,MAAM,gBAAgB,4FAU1B;IACD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,sBA8GA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNode.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;GAOG;AAEH,eAAO,MAAM,OAAO,GAAI,CAAC,eAAe,KAAK,OAAO,MAAM,YAAY,MAAM,KAAG,IAAI,CAAC,CAAC,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"useNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNode.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;GAOG;AAEH,eAAO,MAAM,OAAO,GAAI,CAAC,eAAe,KAAK,OAAO,MAAM,YAAY,MAAM,KAAG,IAAI,CAAC,CAAC,CAAC,GAAG,SA0BxF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.6.12-main.
|
|
3
|
+
"version": "0.6.12-main.78ddbdf",
|
|
4
4
|
"description": "DXOS Surface plugin for the main application layout.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"@fluentui/react-tabster": "^9.19.0",
|
|
33
33
|
"@preact/signals-core": "^1.6.0",
|
|
34
34
|
"immer": "^10.1.1",
|
|
35
|
-
"@dxos/app-framework": "0.6.12-main.
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/plugin-
|
|
44
|
-
"@dxos/plugin-
|
|
45
|
-
"@dxos/plugin-
|
|
46
|
-
"@dxos/plugin-
|
|
47
|
-
"@dxos/plugin-
|
|
48
|
-
"@dxos/plugin-
|
|
49
|
-
"@dxos/react-client": "0.6.12-main.
|
|
50
|
-
"@dxos/react-ui-attention": "0.6.12-main.
|
|
51
|
-
"@dxos/react-ui-deck": "0.6.12-main.
|
|
52
|
-
"@dxos/react-ui-text-tooltip": "0.6.12-main.
|
|
53
|
-
"@dxos/react-ui-mosaic": "0.6.12-main.
|
|
54
|
-
"@dxos/util": "0.6.12-main.
|
|
35
|
+
"@dxos/app-framework": "0.6.12-main.78ddbdf",
|
|
36
|
+
"@dxos/debug": "0.6.12-main.78ddbdf",
|
|
37
|
+
"@dxos/async": "0.6.12-main.78ddbdf",
|
|
38
|
+
"@dxos/echo-schema": "0.6.12-main.78ddbdf",
|
|
39
|
+
"@dxos/invariant": "0.6.12-main.78ddbdf",
|
|
40
|
+
"@dxos/keyboard": "0.6.12-main.78ddbdf",
|
|
41
|
+
"@dxos/local-storage": "0.6.12-main.78ddbdf",
|
|
42
|
+
"@dxos/log": "0.6.12-main.78ddbdf",
|
|
43
|
+
"@dxos/plugin-attention": "0.6.12-main.78ddbdf",
|
|
44
|
+
"@dxos/plugin-client": "0.6.12-main.78ddbdf",
|
|
45
|
+
"@dxos/plugin-observability": "0.6.12-main.78ddbdf",
|
|
46
|
+
"@dxos/plugin-settings": "0.6.12-main.78ddbdf",
|
|
47
|
+
"@dxos/plugin-theme": "0.6.12-main.78ddbdf",
|
|
48
|
+
"@dxos/plugin-graph": "0.6.12-main.78ddbdf",
|
|
49
|
+
"@dxos/react-client": "0.6.12-main.78ddbdf",
|
|
50
|
+
"@dxos/react-ui-attention": "0.6.12-main.78ddbdf",
|
|
51
|
+
"@dxos/react-ui-deck": "0.6.12-main.78ddbdf",
|
|
52
|
+
"@dxos/react-ui-text-tooltip": "0.6.12-main.78ddbdf",
|
|
53
|
+
"@dxos/react-ui-mosaic": "0.6.12-main.78ddbdf",
|
|
54
|
+
"@dxos/util": "0.6.12-main.78ddbdf"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
"react": "~18.2.0",
|
|
61
61
|
"react-dom": "~18.2.0",
|
|
62
62
|
"vite": "5.4.7",
|
|
63
|
-
"@dxos/react-ui": "0.6.12-main.
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
63
|
+
"@dxos/react-ui": "0.6.12-main.78ddbdf",
|
|
64
|
+
"@dxos/react-ui-theme": "0.6.12-main.78ddbdf",
|
|
65
|
+
"@dxos/storybook-utils": "0.6.12-main.78ddbdf"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@phosphor-icons/react": "^2.0.5",
|
|
69
|
-
"react": "
|
|
70
|
-
"react-dom": "
|
|
71
|
-
"@dxos/react-ui": "0.6.12-main.
|
|
72
|
-
"@dxos/react-ui
|
|
69
|
+
"react": "~18.2.0",
|
|
70
|
+
"react-dom": "~18.2.0",
|
|
71
|
+
"@dxos/react-ui-theme": "0.6.12-main.78ddbdf",
|
|
72
|
+
"@dxos/react-ui": "0.6.12-main.78ddbdf"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
package/src/DeckPlugin.tsx
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { ArrowsOut, type IconProps } from '@phosphor-icons/react';
|
|
6
5
|
import { batch, effect } from '@preact/signals-core';
|
|
7
6
|
import { setAutoFreeze } from 'immer';
|
|
8
7
|
import React, { type PropsWithChildren } from 'react';
|
|
@@ -41,7 +40,6 @@ import { createExtension, type Node } from '@dxos/plugin-graph';
|
|
|
41
40
|
import { ObservabilityAction } from '@dxos/plugin-observability/meta';
|
|
42
41
|
import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
43
42
|
import { translations as deckTranslations } from '@dxos/react-ui-deck';
|
|
44
|
-
import { Mosaic } from '@dxos/react-ui-mosaic';
|
|
45
43
|
|
|
46
44
|
import {
|
|
47
45
|
DeckLayout,
|
|
@@ -71,7 +69,7 @@ const isSocket = !!(globalThis as any).__args;
|
|
|
71
69
|
// TODO(mjamesderocher): Can we get this directly from Socket?
|
|
72
70
|
const appScheme = 'composer://';
|
|
73
71
|
|
|
74
|
-
// TODO(burdon): Evolve into customizable prefs
|
|
72
|
+
// TODO(burdon): Evolve into customizable prefs.
|
|
75
73
|
const customSlots: DeckLayoutProps['slots'] = {
|
|
76
74
|
wallpaper: {
|
|
77
75
|
classNames:
|
|
@@ -190,6 +188,25 @@ export const DeckPlugin = ({
|
|
|
190
188
|
}
|
|
191
189
|
};
|
|
192
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Update the active state and ensure that attention is on an active element.
|
|
193
|
+
*/
|
|
194
|
+
const handleSetLocation = (next: LayoutParts) => {
|
|
195
|
+
if (attentionPlugin) {
|
|
196
|
+
const attended = attentionPlugin.provides.attention.attended;
|
|
197
|
+
const [attendedId] = Array.from(attended);
|
|
198
|
+
const ids = (layout.values.layoutMode === 'deck' ? next.main : next.solo)?.map(({ id }) => id) ?? [];
|
|
199
|
+
const isAttendedAvailable = !!attendedId && ids.includes(attendedId);
|
|
200
|
+
if (!isAttendedAvailable) {
|
|
201
|
+
const nextAttended = next.main?.[0]?.id;
|
|
202
|
+
const article = document.querySelector<HTMLElement>(`article[data-attendable-id="${nextAttended}"]`);
|
|
203
|
+
article?.focus();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
location.values.active = next;
|
|
208
|
+
};
|
|
209
|
+
|
|
193
210
|
return {
|
|
194
211
|
meta,
|
|
195
212
|
ready: async (plugins) => {
|
|
@@ -198,16 +215,21 @@ export const DeckPlugin = ({
|
|
|
198
215
|
attentionPlugin = resolvePlugin(plugins, parseAttentionPlugin);
|
|
199
216
|
clientPlugin = resolvePlugin(plugins, parseClientPlugin);
|
|
200
217
|
|
|
201
|
-
// prettier-ignore
|
|
202
218
|
layout
|
|
203
219
|
.prop({ key: 'layoutMode', storageKey: 'layout-mode', type: LocalStorageStore.enum<LayoutMode>() })
|
|
204
220
|
.prop({ key: 'sidebarOpen', storageKey: 'sidebar-open', type: LocalStorageStore.bool() })
|
|
205
|
-
.prop({
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
221
|
+
.prop({
|
|
222
|
+
key: 'complementarySidebarOpen',
|
|
223
|
+
storageKey: 'complementary-sidebar-open',
|
|
224
|
+
type: LocalStorageStore.bool(),
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
deck.prop({
|
|
228
|
+
key: 'plankSizing',
|
|
229
|
+
storageKey: 'plank-sizing',
|
|
230
|
+
type: LocalStorageStore.json<Record<string, number>>(),
|
|
231
|
+
});
|
|
209
232
|
|
|
210
|
-
// prettier-ignore
|
|
211
233
|
location
|
|
212
234
|
.prop({ key: 'active', storageKey: 'active', type: LocalStorageStore.json<LayoutParts>() })
|
|
213
235
|
.prop({ key: 'closed', storageKey: 'closed', type: LocalStorageStore.json<string[]>() });
|
|
@@ -220,14 +242,17 @@ export const DeckPlugin = ({
|
|
|
220
242
|
}),
|
|
221
243
|
);
|
|
222
244
|
|
|
223
|
-
// prettier-ignore
|
|
224
245
|
settings
|
|
225
246
|
.prop({ key: 'showFooter', storageKey: 'show-footer', type: LocalStorageStore.bool() })
|
|
226
247
|
.prop({ key: 'customSlots', storageKey: 'customSlots', type: LocalStorageStore.bool() })
|
|
227
248
|
.prop({ key: 'flatDeck', storageKey: 'flatDeck', type: LocalStorageStore.bool() })
|
|
228
249
|
.prop({ key: 'enableNativeRedirect', storageKey: 'enable-native-redirect', type: LocalStorageStore.bool() })
|
|
229
250
|
.prop({ key: 'disableDeck', storageKey: 'disable-deck', type: LocalStorageStore.bool() }) // Deprecated.
|
|
230
|
-
.prop({
|
|
251
|
+
.prop({
|
|
252
|
+
key: 'newPlankPositioning',
|
|
253
|
+
storageKey: 'newPlankPositioning',
|
|
254
|
+
type: LocalStorageStore.enum<NewPlankPositioning>(),
|
|
255
|
+
})
|
|
231
256
|
.prop({ key: 'overscroll', storageKey: 'overscroll', type: LocalStorageStore.enum<Overscroll>() });
|
|
232
257
|
|
|
233
258
|
if (!isSocket && settings.values.enableNativeRedirect) {
|
|
@@ -237,7 +262,7 @@ export const DeckPlugin = ({
|
|
|
237
262
|
handleNavigation = async () => {
|
|
238
263
|
const pathname = window.location.pathname;
|
|
239
264
|
if (pathname === '/reset') {
|
|
240
|
-
|
|
265
|
+
handleSetLocation({ sidebar: [{ id: NAV_ID }] });
|
|
241
266
|
location.values.closed = [];
|
|
242
267
|
layout.values.layoutMode = 'solo';
|
|
243
268
|
window.location.pathname = '/';
|
|
@@ -250,7 +275,7 @@ export const DeckPlugin = ({
|
|
|
250
275
|
}
|
|
251
276
|
|
|
252
277
|
const startingLayout = removePart(location.values.active, 'solo');
|
|
253
|
-
|
|
278
|
+
handleSetLocation(mergeLayoutParts(layoutFromUri, startingLayout));
|
|
254
279
|
layout.values.layoutMode = 'solo';
|
|
255
280
|
};
|
|
256
281
|
|
|
@@ -310,8 +335,7 @@ export const DeckPlugin = ({
|
|
|
310
335
|
},
|
|
311
336
|
properties: {
|
|
312
337
|
label: ['toggle fullscreen label', { ns: DECK_PLUGIN }],
|
|
313
|
-
icon:
|
|
314
|
-
iconSymbol: 'ph--arrows-out--regular',
|
|
338
|
+
icon: 'ph--arrows-out--regular',
|
|
315
339
|
keyBinding: {
|
|
316
340
|
macos: 'ctrl+meta+f',
|
|
317
341
|
windows: 'shift+ctrl+f',
|
|
@@ -329,31 +353,28 @@ export const DeckPlugin = ({
|
|
|
329
353
|
),
|
|
330
354
|
root: () => {
|
|
331
355
|
return (
|
|
332
|
-
<
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
/>
|
|
355
|
-
<Mosaic.DragOverlay />
|
|
356
|
-
</Mosaic.Root>
|
|
356
|
+
<DeckLayout
|
|
357
|
+
attention={attentionPlugin?.provides.attention ?? { attended: new Set() }}
|
|
358
|
+
layoutParts={location.values.active}
|
|
359
|
+
showHintsFooter={settings.values.showFooter}
|
|
360
|
+
overscroll={settings.values.overscroll}
|
|
361
|
+
flatDeck={settings.values.flatDeck}
|
|
362
|
+
slots={settings.values.customSlots ? customSlots : undefined}
|
|
363
|
+
toasts={layout.values.toasts}
|
|
364
|
+
onDismissToast={(id) => {
|
|
365
|
+
const index = layout.values.toasts.findIndex((toast) => toast.id === id);
|
|
366
|
+
if (index !== -1) {
|
|
367
|
+
// Allow time for the toast to animate out.
|
|
368
|
+
// TODO(burdon): Factor out and unregister timeout.
|
|
369
|
+
setTimeout(() => {
|
|
370
|
+
if (layout.values.toasts[index].id === currentUndoId) {
|
|
371
|
+
currentUndoId = undefined;
|
|
372
|
+
}
|
|
373
|
+
layout.values.toasts.splice(index, 1);
|
|
374
|
+
}, 1_000);
|
|
375
|
+
}
|
|
376
|
+
}}
|
|
377
|
+
/>
|
|
357
378
|
);
|
|
358
379
|
},
|
|
359
380
|
surface: {
|
|
@@ -472,7 +493,7 @@ export const DeckPlugin = ({
|
|
|
472
493
|
}
|
|
473
494
|
});
|
|
474
495
|
|
|
475
|
-
|
|
496
|
+
handleSetLocation(newLayout);
|
|
476
497
|
});
|
|
477
498
|
|
|
478
499
|
const ids = openIds(location.values.active);
|
|
@@ -522,10 +543,12 @@ export const DeckPlugin = ({
|
|
|
522
543
|
const layoutEntry = { id: data.id };
|
|
523
544
|
const effectivePart = getEffectivePart(data.part, layout.values.layoutMode);
|
|
524
545
|
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
546
|
+
handleSetLocation(
|
|
547
|
+
openEntry(location.values.active, effectivePart, layoutEntry, {
|
|
548
|
+
positioning: data.positioning ?? settings.values.newPlankPositioning,
|
|
549
|
+
pivotId: data.pivotId,
|
|
550
|
+
}),
|
|
551
|
+
);
|
|
529
552
|
|
|
530
553
|
const intents = [];
|
|
531
554
|
if (data.scrollIntoView && layout.values.layoutMode === 'deck') {
|
|
@@ -561,7 +584,11 @@ export const DeckPlugin = ({
|
|
|
561
584
|
}
|
|
562
585
|
});
|
|
563
586
|
|
|
564
|
-
|
|
587
|
+
handleSetLocation(newLayout);
|
|
588
|
+
// TODO(wittjosiah): This needs to also set the closed state.
|
|
589
|
+
// The closed state should be the existing closed state plus the newly closed ids.
|
|
590
|
+
// The closed state should also be updated when opening entries to remove the id from closed.
|
|
591
|
+
// When SET is called the closed ids should also be calculated and set.
|
|
565
592
|
return { data: true };
|
|
566
593
|
});
|
|
567
594
|
}
|
|
@@ -570,7 +597,7 @@ export const DeckPlugin = ({
|
|
|
570
597
|
case NavigationAction.SET: {
|
|
571
598
|
return batch(() => {
|
|
572
599
|
if (isLayoutParts(intent.data?.activeParts)) {
|
|
573
|
-
|
|
600
|
+
handleSetLocation(intent.data!.activeParts);
|
|
574
601
|
}
|
|
575
602
|
return { data: true };
|
|
576
603
|
});
|
|
@@ -581,10 +608,12 @@ export const DeckPlugin = ({
|
|
|
581
608
|
if (isLayoutAdjustment(intent.data)) {
|
|
582
609
|
const adjustment = intent.data;
|
|
583
610
|
if (adjustment.type === 'increment-end' || adjustment.type === 'increment-start') {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
611
|
+
handleSetLocation(
|
|
612
|
+
incrementPlank(location.values.active, {
|
|
613
|
+
type: adjustment.type,
|
|
614
|
+
layoutCoordinate: adjustment.layoutCoordinate,
|
|
615
|
+
}),
|
|
616
|
+
);
|
|
588
617
|
}
|
|
589
618
|
|
|
590
619
|
if (adjustment.type === 'solo') {
|