@dxos/plugin-deck 0.8.4-main.b97322e → 0.8.4-main.bc674ce
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/app-graph-builder-DTVCULQ4.mjs +120 -0
- package/dist/lib/browser/app-graph-builder-DTVCULQ4.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-57U62A3A.mjs → check-app-scheme-JSRXXIYF.mjs} +9 -9
- package/dist/lib/browser/check-app-scheme-JSRXXIYF.mjs.map +7 -0
- package/dist/lib/browser/{chunk-F5BQOOEG.mjs → chunk-ATFPDN6J.mjs} +155 -23
- package/dist/lib/browser/chunk-ATFPDN6J.mjs.map +7 -0
- package/dist/lib/browser/{chunk-CNTGBCMK.mjs → chunk-NHABISX2.mjs} +40 -33
- package/dist/lib/browser/chunk-NHABISX2.mjs.map +7 -0
- package/dist/lib/browser/chunk-S4A5UO4K.mjs +1448 -0
- package/dist/lib/browser/chunk-S4A5UO4K.mjs.map +7 -0
- package/dist/lib/browser/chunk-UNG4CLLP.mjs +161 -0
- package/dist/lib/browser/chunk-UNG4CLLP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +79 -67
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs +595 -0
- package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs.map +7 -0
- package/dist/lib/browser/react-root-XDCMNENQ.mjs +47 -0
- package/dist/lib/browser/react-root-XDCMNENQ.mjs.map +7 -0
- package/dist/lib/browser/react-surface-HODERLOL.mjs +42 -0
- package/dist/lib/browser/react-surface-HODERLOL.mjs.map +7 -0
- package/dist/lib/browser/settings-OMHVGZ6V.mjs +37 -0
- package/dist/lib/browser/settings-OMHVGZ6V.mjs.map +7 -0
- package/dist/lib/browser/state-OC3BSB6E.mjs +103 -0
- package/dist/lib/browser/state-OC3BSB6E.mjs.map +7 -0
- package/dist/lib/browser/toolkit-R53LD3EA.mjs +53 -0
- package/dist/lib/browser/toolkit-R53LD3EA.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +11 -4
- package/dist/lib/browser/url-handler-53TE6JZO.mjs +93 -0
- package/dist/lib/browser/url-handler-53TE6JZO.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs +121 -0
- package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs.map +7 -0
- package/dist/lib/node-esm/check-app-scheme-IVYRHKRH.mjs +33 -0
- package/dist/lib/node-esm/check-app-scheme-IVYRHKRH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ADPMWKLL.mjs +154 -0
- package/dist/lib/node-esm/chunk-ADPMWKLL.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-D34L3ECT.mjs +1449 -0
- package/dist/lib/node-esm/chunk-D34L3ECT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs +162 -0
- package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XAKTY3EB.mjs +294 -0
- package/dist/lib/node-esm/chunk-XAKTY3EB.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +181 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs +596 -0
- package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-O6GZO62Z.mjs +48 -0
- package/dist/lib/node-esm/react-root-O6GZO62Z.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-IHDJDGC5.mjs +43 -0
- package/dist/lib/node-esm/react-surface-IHDJDGC5.mjs.map +7 -0
- package/dist/lib/node-esm/settings-2HB6FKIK.mjs +38 -0
- package/dist/lib/node-esm/settings-2HB6FKIK.mjs.map +7 -0
- package/dist/lib/node-esm/state-JRQ45ACJ.mjs +104 -0
- package/dist/lib/node-esm/state-JRQ45ACJ.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs +54 -0
- package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +40 -0
- package/dist/lib/node-esm/url-handler-QGF2R24T.mjs +94 -0
- package/dist/lib/node-esm/url-handler-QGF2R24T.mjs.map +7 -0
- package/dist/types/src/DeckPlugin.d.ts +2 -1
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts +5 -0
- package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts.map +1 -0
- package/dist/types/src/capabilities/check-app-scheme/index.d.ts +3 -0
- package/dist/types/src/capabilities/check-app-scheme/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +8 -13
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
- package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +19 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +21 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +172 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +175 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts +26 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
- package/dist/types/src/capabilities/tools/index.d.ts +3 -0
- package/dist/types/src/capabilities/tools/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/tools/tools.d.ts +12 -0
- package/dist/types/src/capabilities/tools/tools.d.ts.map +1 -0
- package/dist/types/src/capabilities/url-handler/index.d.ts +3 -0
- package/dist/types/src/capabilities/url-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts +5 -0
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +2 -3
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts +74 -0
- package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/DeckMain.d.ts +3 -0
- package/dist/types/src/components/DeckLayout/DeckMain.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts +7 -2
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts +4 -2
- package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.d.ts +4 -4
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +104 -5
- package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts +3 -3
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useDeckCompanions.d.ts +3 -3
- package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -1
- package/dist/types/src/hooks/useDeckState.d.ts +17 -0
- package/dist/types/src/hooks/useDeckState.d.ts.map +1 -0
- package/dist/types/src/hooks/useHoistStatusbar.d.ts +1 -1
- package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts +1 -1
- package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/{capabilities → types}/capabilities.d.ts +96 -90
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +7 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +90 -30
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/util/set-active.d.ts +18 -3
- package/dist/types/src/util/set-active.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -46
- package/src/DeckPlugin.ts +45 -61
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +118 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/{check-app-scheme.ts → check-app-scheme/check-app-scheme.ts} +12 -11
- package/src/capabilities/check-app-scheme/index.ts +7 -0
- package/src/capabilities/index.ts +9 -13
- package/src/capabilities/operation-resolver/index.ts +10 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +555 -0
- package/src/capabilities/react-root/index.ts +7 -0
- package/src/capabilities/react-root/react-root.tsx +47 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +37 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +38 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +104 -0
- package/src/capabilities/toolkit/index.ts +7 -0
- package/src/capabilities/toolkit/toolkit.ts +63 -0
- package/src/capabilities/tools/index.ts +7 -0
- package/src/capabilities/tools/tools.ts +92 -0
- package/src/capabilities/url-handler/index.ts +7 -0
- package/src/capabilities/url-handler/url-handler.ts +95 -0
- package/src/components/DeckLayout/ActiveNode.tsx +1 -1
- package/src/components/DeckLayout/Banner.tsx +6 -6
- package/src/components/DeckLayout/ContentEmpty.tsx +4 -5
- package/src/components/DeckLayout/DeckLayout.stories.tsx +51 -0
- package/src/components/DeckLayout/DeckLayout.tsx +18 -285
- package/src/components/DeckLayout/DeckMain.tsx +286 -0
- package/src/components/DeckLayout/Dialog.tsx +13 -10
- package/src/components/DeckLayout/Fallback.tsx +4 -4
- package/src/components/DeckLayout/Popover.tsx +44 -32
- package/src/components/DeckLayout/StatusBar.tsx +1 -1
- package/src/components/DeckLayout/Toast.tsx +30 -5
- package/src/components/DeckSettings/DeckSettings.tsx +91 -66
- package/src/components/Plank/Plank.stories.tsx +23 -16
- package/src/components/Plank/Plank.tsx +89 -56
- package/src/components/Plank/PlankControls.tsx +9 -9
- package/src/components/Plank/PlankError.tsx +5 -4
- package/src/components/Plank/PlankHeading.tsx +38 -42
- package/src/components/Sidebar/ComplementarySidebar.tsx +61 -33
- package/src/components/Sidebar/Sidebar.tsx +6 -6
- package/src/components/Sidebar/SidebarButton.tsx +39 -32
- package/src/components/fragments.ts +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useCompanions.ts +1 -1
- package/src/hooks/useDeckCompanions.ts +7 -5
- package/src/hooks/useDeckState.ts +82 -0
- package/src/hooks/useHoistStatusbar.ts +4 -5
- package/src/hooks/useNodeActionExpander.ts +4 -4
- package/src/index.ts +1 -2
- package/src/meta.ts +8 -5
- package/src/translations.ts +3 -1
- package/src/types/capabilities.ts +33 -0
- package/src/types/events.ts +20 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +86 -14
- package/src/util/layoutAppliesTopbar.ts +1 -1
- package/src/util/set-active.ts +49 -29
- package/dist/lib/browser/app-graph-builder-JTFSDT2I.mjs +0 -152
- package/dist/lib/browser/app-graph-builder-JTFSDT2I.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-57U62A3A.mjs.map +0 -7
- package/dist/lib/browser/chunk-CNTGBCMK.mjs.map +0 -7
- package/dist/lib/browser/chunk-D7KTFCUV.mjs +0 -1494
- package/dist/lib/browser/chunk-D7KTFCUV.mjs.map +0 -7
- package/dist/lib/browser/chunk-F5BQOOEG.mjs.map +0 -7
- package/dist/lib/browser/chunk-JFTXENFN.mjs +0 -129
- package/dist/lib/browser/chunk-JFTXENFN.mjs.map +0 -7
- package/dist/lib/browser/chunk-M57WD3V6.mjs +0 -16
- package/dist/lib/browser/chunk-M57WD3V6.mjs.map +0 -7
- package/dist/lib/browser/chunk-QDZO4AJ4.mjs +0 -127
- package/dist/lib/browser/chunk-QDZO4AJ4.mjs.map +0 -7
- package/dist/lib/browser/chunk-Z5KITAZW.mjs +0 -13
- package/dist/lib/browser/chunk-Z5KITAZW.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-P2OBK5HK.mjs +0 -521
- package/dist/lib/browser/intent-resolver-P2OBK5HK.mjs.map +0 -7
- package/dist/lib/browser/react-root-PO64J7ML.mjs +0 -43
- package/dist/lib/browser/react-root-PO64J7ML.mjs.map +0 -7
- package/dist/lib/browser/react-surface-E45YOVF5.mjs +0 -40
- package/dist/lib/browser/react-surface-E45YOVF5.mjs.map +0 -7
- package/dist/lib/browser/settings-6AJZPZPM.mjs +0 -29
- package/dist/lib/browser/settings-6AJZPZPM.mjs.map +0 -7
- package/dist/lib/browser/state-MVDYX77Y.mjs +0 -12
- package/dist/lib/browser/tools-TKQDPCHJ.mjs +0 -88
- package/dist/lib/browser/tools-TKQDPCHJ.mjs.map +0 -7
- package/dist/lib/browser/url-handler-7L7M6IKH.mjs +0 -70
- package/dist/lib/browser/url-handler-7L7M6IKH.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts +0 -4
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root.d.ts +0 -7
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -101
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/tools.d.ts +0 -11
- package/dist/types/src/capabilities/tools.d.ts.map +0 -1
- package/dist/types/src/capabilities/url-handler.d.ts +0 -4
- package/dist/types/src/capabilities/url-handler.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -141
- package/src/capabilities/capabilities.ts +0 -14
- package/src/capabilities/intent-resolver.ts +0 -468
- package/src/capabilities/react-root.tsx +0 -38
- package/src/capabilities/react-surface.tsx +0 -30
- package/src/capabilities/settings.ts +0 -26
- package/src/capabilities/state.ts +0 -104
- package/src/capabilities/tools.ts +0 -81
- package/src/capabilities/url-handler.ts +0 -59
- package/src/events.ts +0 -11
- /package/dist/lib/{browser/state-MVDYX77Y.mjs.map → node-esm/types/index.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Banner.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAMtE,eAAO,MAAM,MAAM,GAAI,yBAAyB,eAAe,CAAC;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAAC,sBAyBlG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentEmpty.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/ContentEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,YAAY,yBAexB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
2
|
+
import { type ToasterProps } from './Toast';
|
|
3
|
+
export type DeckLayoutProps = Pick<ToasterProps, 'onDismissToast'>;
|
|
5
4
|
export declare const DeckLayout: ({ onDismissToast }: DeckLayoutProps) => React.JSX.Element;
|
|
6
5
|
//# sourceMappingURL=DeckLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeckLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,UAAU,GAAI,oBAAoB,eAAe,sBAe7D,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ onDismissToast }: import("./DeckLayout").DeckLayoutProps) => React.JSX.Element;
|
|
6
|
+
render: (args: import("./DeckLayout").DeckLayoutProps) => React.JSX.Element;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
translations: [{
|
|
11
|
+
readonly 'en-US': {
|
|
12
|
+
readonly [meta.id]: {
|
|
13
|
+
readonly 'plugin name': "Deck";
|
|
14
|
+
readonly 'settings title': "Deck settings";
|
|
15
|
+
readonly 'main header label': "Main header";
|
|
16
|
+
readonly 'open navigation sidebar label': "Open sidebar";
|
|
17
|
+
readonly 'collapse navigation sidebar label': "Minimize sidebar";
|
|
18
|
+
readonly 'open complementary sidebar label': "Open context sidebar";
|
|
19
|
+
readonly 'close complementary sidebar label': "Minimize context sidebar";
|
|
20
|
+
readonly 'sidebar title': "Navigation sidebar";
|
|
21
|
+
readonly 'complementary sidebar title': "Context sidebar";
|
|
22
|
+
readonly 'plugin error message': "Content failed to render.";
|
|
23
|
+
readonly 'content fallback message': "Unsupported";
|
|
24
|
+
readonly 'content fallback description': "No plugin had a response for the address you navigated to. Double-check the URL, and ensure you’ve enabled a plugin that supports the object.";
|
|
25
|
+
readonly 'toggle fullscreen label': "Toggle fullscreen";
|
|
26
|
+
readonly 'settings show hints label': "Show hints";
|
|
27
|
+
readonly 'settings native redirect label': "Enable native url redirect (experimental)";
|
|
28
|
+
readonly 'settings new plank position start label': "Start";
|
|
29
|
+
readonly 'settings new plank position end label': "End";
|
|
30
|
+
readonly 'select new plank positioning placeholder': "Select new plank positioning";
|
|
31
|
+
readonly 'select new plank positioning label': "New plank positioning";
|
|
32
|
+
readonly 'undo available label': "Click to undo previous action.";
|
|
33
|
+
readonly 'undo action label': "Undo";
|
|
34
|
+
readonly 'undo action alt': "Undo previous action";
|
|
35
|
+
readonly 'undo close label': "Dismiss";
|
|
36
|
+
readonly 'error fallback message': "Unable to open this object";
|
|
37
|
+
readonly 'plank heading fallback label': "Untitled";
|
|
38
|
+
readonly 'actions menu label': "Options";
|
|
39
|
+
readonly 'settings deck label': "Disable deck";
|
|
40
|
+
readonly 'pending heading': "Loading…";
|
|
41
|
+
readonly 'insert plank label': "Open";
|
|
42
|
+
readonly 'resize label': "Drag to resize";
|
|
43
|
+
readonly 'pin start label': "Pin to the left sidebar";
|
|
44
|
+
readonly 'pin end label': "Pin to the right sidebar";
|
|
45
|
+
readonly 'increment start label': "Move to the left";
|
|
46
|
+
readonly 'increment end label': "Move to the right";
|
|
47
|
+
readonly 'show deck plank label': "Return to deck";
|
|
48
|
+
readonly 'show solo plank label': "Maximize";
|
|
49
|
+
readonly 'exit fullscreen label': "Exit fullscreen";
|
|
50
|
+
readonly 'show fullscreen plank label': "Fullscreen";
|
|
51
|
+
readonly 'close label': "Close";
|
|
52
|
+
readonly 'minify label': "Minify";
|
|
53
|
+
readonly 'open companion label': "Open companion";
|
|
54
|
+
readonly 'close companion label': "Close companion";
|
|
55
|
+
readonly 'settings overscroll label': "Plank scrolling";
|
|
56
|
+
readonly 'select overscroll placeholder': "Select plank scrolling behavior";
|
|
57
|
+
readonly 'settings overscroll centering label': "Centering";
|
|
58
|
+
readonly 'settings overscroll none label': "None";
|
|
59
|
+
readonly 'settings enable statusbar label': "Show status bar";
|
|
60
|
+
readonly 'settings enable deck label': "Enable Deck";
|
|
61
|
+
readonly 'settings encapsulated planks label': "Encapsulated planks";
|
|
62
|
+
readonly 'close current label': "Close current plank";
|
|
63
|
+
readonly 'close others label': "Close other planks";
|
|
64
|
+
readonly 'close all label': "Close all planks";
|
|
65
|
+
readonly 'companion plank heading fallback label': "Related";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
export default meta;
|
|
72
|
+
type Story = StoryObj<typeof meta>;
|
|
73
|
+
export declare const Default: Story;
|
|
74
|
+
//# sourceMappingURL=DeckLayout.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAyB1B,QAAA,MAAM,IAAI;;;;;;;;;yBAvB0B,CAAO,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChB,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeckMain.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/DeckMain.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAoB/F,eAAO,MAAM,QAAQ,yBA4PpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAQ3C,eAAO,MAAM,MAAM,yBA0BlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4C,MAAM,OAAO,CAAC;AAShG,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAUzD,eAAO,MAAM,WAAW,GAAI,cAAc,oBAAoB,sBA+B7D,CAAC;AAEF,eAAO,MAAM,cAAc,yBA0D1B,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Common } from '@dxos/app-framework';
|
|
3
3
|
import { type ToastRootProps } from '@dxos/react-ui';
|
|
4
|
-
export declare const Toast: ({ id, title, description, icon, duration, actionLabel, actionAlt, closeLabel, onAction, onOpenChange, }:
|
|
4
|
+
export declare const Toast: ({ id, title, description, icon, duration, actionLabel, actionAlt, closeLabel, onAction, onOpenChange, }: Common.LayoutOperation.Toast & Pick<ToastRootProps, "onOpenChange">) => React.JSX.Element;
|
|
5
|
+
export type ToasterProps = {
|
|
6
|
+
toasts?: Common.LayoutOperation.Toast[];
|
|
7
|
+
onDismissToast?: (id: string) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const Toaster: ({ toasts, onDismissToast }: ToasterProps) => React.JSX.Element;
|
|
5
10
|
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAIL,KAAK,cAAc,EAGpB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,KAAK,GAAI,yGAWnB,MAAM,CAAC,eAAe,CAAC,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,sBA8BrE,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,4BAA4B,YAAY,sBAkB/D,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DeckSettingsProps } from '../../types';
|
|
3
|
-
export
|
|
3
|
+
export type DeckSettingsComponentProps = {
|
|
4
4
|
settings: DeckSettingsProps;
|
|
5
|
-
|
|
5
|
+
onSettingsChange: (fn: (current: DeckSettingsProps) => DeckSettingsProps) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const DeckSettings: ({ settings, onSettingsChange }: DeckSettingsComponentProps) => React.JSX.Element;
|
|
6
8
|
//# sourceMappingURL=DeckSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAIrB,
|
|
1
|
+
{"version":3,"file":"DeckSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckSettings/DeckSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,aAAa,CAAC;AAIrB,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,iBAAiB,KAAK,IAAI,CAAC;CACnF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,gCAAgC,0BAA0B,sBAuFtF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Node } from '@dxos/plugin-graph';
|
|
3
|
-
import { type
|
|
3
|
+
import { type DeckSettingsProps, type LayoutMode, type ResolvedPart } from '../../types';
|
|
4
4
|
export type PlankProps = Pick<PlankComponentProps, 'layoutMode' | 'part' | 'path' | 'order' | 'active' | 'settings'> & {
|
|
5
5
|
id?: string;
|
|
6
6
|
companionId?: string;
|
|
@@ -18,9 +18,9 @@ type PlankComponentProps = {
|
|
|
18
18
|
order?: number;
|
|
19
19
|
active?: string[];
|
|
20
20
|
companioned?: 'primary' | 'companion';
|
|
21
|
-
node?: Node;
|
|
22
|
-
primary?: Node;
|
|
23
|
-
companions?: Node[];
|
|
21
|
+
node?: Node.Node;
|
|
22
|
+
primary?: Node.Node;
|
|
23
|
+
companions?: Node.Node[];
|
|
24
24
|
settings?: DeckSettingsProps;
|
|
25
25
|
};
|
|
26
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAKA,OAAO,KAQN,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,IAAI,EAAW,MAAM,oBAAoB,CAAC;AAOxD,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAYxG,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC,GAAG;IACrH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgBF;;;GAGG;AACH,eAAO,MAAM,KAAK,4DAAqD,UAAU,uBAkC/E,CAAC;AAqCH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,UAAU,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC"}
|
|
@@ -1,8 +1,107 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.MemoExoticComponent<({ id, companionId, ...props }: import("./Plank").PlankProps) => React.JSX.Element>;
|
|
6
|
+
render: (args: Pick<{
|
|
7
|
+
layoutMode: import("../../types").LayoutMode;
|
|
8
|
+
id: string;
|
|
9
|
+
part: import("../../types").ResolvedPart;
|
|
10
|
+
path?: string[];
|
|
11
|
+
order?: number;
|
|
12
|
+
active?: string[];
|
|
13
|
+
companioned?: "primary" | "companion";
|
|
14
|
+
node?: Readonly<{
|
|
15
|
+
id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
cacheable?: string[];
|
|
18
|
+
properties: Readonly<Record<string, any>>;
|
|
19
|
+
data: any;
|
|
20
|
+
}>;
|
|
21
|
+
primary?: Readonly<{
|
|
22
|
+
id: string;
|
|
23
|
+
type: string;
|
|
24
|
+
cacheable?: string[];
|
|
25
|
+
properties: Readonly<Record<string, any>>;
|
|
26
|
+
data: any;
|
|
27
|
+
}>;
|
|
28
|
+
companions?: Readonly<{
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
cacheable?: string[];
|
|
32
|
+
properties: Readonly<Record<string, any>>;
|
|
33
|
+
data: any;
|
|
34
|
+
}>[];
|
|
35
|
+
settings?: import("../../types").DeckSettingsProps;
|
|
36
|
+
}, "active" | "order" | "path" | "part" | "layoutMode" | "settings"> & {
|
|
37
|
+
id?: string;
|
|
38
|
+
companionId?: string;
|
|
39
|
+
}) => React.JSX.Element;
|
|
40
|
+
decorators: import("@storybook/react").Decorator[];
|
|
41
|
+
parameters: {
|
|
42
|
+
layout: string;
|
|
43
|
+
translations: [{
|
|
44
|
+
readonly 'en-US': {
|
|
45
|
+
readonly [meta.id]: {
|
|
46
|
+
readonly 'plugin name': "Deck";
|
|
47
|
+
readonly 'settings title': "Deck settings";
|
|
48
|
+
readonly 'main header label': "Main header";
|
|
49
|
+
readonly 'open navigation sidebar label': "Open sidebar";
|
|
50
|
+
readonly 'collapse navigation sidebar label': "Minimize sidebar";
|
|
51
|
+
readonly 'open complementary sidebar label': "Open context sidebar";
|
|
52
|
+
readonly 'close complementary sidebar label': "Minimize context sidebar";
|
|
53
|
+
readonly 'sidebar title': "Navigation sidebar";
|
|
54
|
+
readonly 'complementary sidebar title': "Context sidebar";
|
|
55
|
+
readonly 'plugin error message': "Content failed to render.";
|
|
56
|
+
readonly 'content fallback message': "Unsupported";
|
|
57
|
+
readonly 'content fallback description': "No plugin had a response for the address you navigated to. Double-check the URL, and ensure you’ve enabled a plugin that supports the object.";
|
|
58
|
+
readonly 'toggle fullscreen label': "Toggle fullscreen";
|
|
59
|
+
readonly 'settings show hints label': "Show hints";
|
|
60
|
+
readonly 'settings native redirect label': "Enable native url redirect (experimental)";
|
|
61
|
+
readonly 'settings new plank position start label': "Start";
|
|
62
|
+
readonly 'settings new plank position end label': "End";
|
|
63
|
+
readonly 'select new plank positioning placeholder': "Select new plank positioning";
|
|
64
|
+
readonly 'select new plank positioning label': "New plank positioning";
|
|
65
|
+
readonly 'undo available label': "Click to undo previous action.";
|
|
66
|
+
readonly 'undo action label': "Undo";
|
|
67
|
+
readonly 'undo action alt': "Undo previous action";
|
|
68
|
+
readonly 'undo close label': "Dismiss";
|
|
69
|
+
readonly 'error fallback message': "Unable to open this object";
|
|
70
|
+
readonly 'plank heading fallback label': "Untitled";
|
|
71
|
+
readonly 'actions menu label': "Options";
|
|
72
|
+
readonly 'settings deck label': "Disable deck";
|
|
73
|
+
readonly 'pending heading': "Loading…";
|
|
74
|
+
readonly 'insert plank label': "Open";
|
|
75
|
+
readonly 'resize label': "Drag to resize";
|
|
76
|
+
readonly 'pin start label': "Pin to the left sidebar";
|
|
77
|
+
readonly 'pin end label': "Pin to the right sidebar";
|
|
78
|
+
readonly 'increment start label': "Move to the left";
|
|
79
|
+
readonly 'increment end label': "Move to the right";
|
|
80
|
+
readonly 'show deck plank label': "Return to deck";
|
|
81
|
+
readonly 'show solo plank label': "Maximize";
|
|
82
|
+
readonly 'exit fullscreen label': "Exit fullscreen";
|
|
83
|
+
readonly 'show fullscreen plank label': "Fullscreen";
|
|
84
|
+
readonly 'close label': "Close";
|
|
85
|
+
readonly 'minify label': "Minify";
|
|
86
|
+
readonly 'open companion label': "Open companion";
|
|
87
|
+
readonly 'close companion label': "Close companion";
|
|
88
|
+
readonly 'settings overscroll label': "Plank scrolling";
|
|
89
|
+
readonly 'select overscroll placeholder': "Select plank scrolling behavior";
|
|
90
|
+
readonly 'settings overscroll centering label': "Centering";
|
|
91
|
+
readonly 'settings overscroll none label': "None";
|
|
92
|
+
readonly 'settings enable statusbar label': "Show status bar";
|
|
93
|
+
readonly 'settings enable deck label': "Enable Deck";
|
|
94
|
+
readonly 'settings encapsulated planks label': "Encapsulated planks";
|
|
95
|
+
readonly 'close current label': "Close current plank";
|
|
96
|
+
readonly 'close others label': "Close other planks";
|
|
97
|
+
readonly 'close all label': "Close all planks";
|
|
98
|
+
readonly 'companion plank heading fallback label': "Related";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}];
|
|
102
|
+
};
|
|
103
|
+
};
|
|
5
104
|
export default meta;
|
|
6
|
-
type Story = StoryObj<
|
|
105
|
+
type Story = StoryObj<typeof meta>;
|
|
7
106
|
export declare const Default: Story;
|
|
8
107
|
//# sourceMappingURL=Plank.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Plank.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBArB0B,CAAO,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAE/B,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ButtonGroupProps } from '@dxos/react-ui';
|
|
3
|
-
import { DeckAction, type LayoutMode } from '../../types';
|
|
3
|
+
import { type DeckAction, type LayoutMode } from '../../types';
|
|
4
4
|
export type PlankControlHandler = (event: DeckAction.PartAdjustment) => void;
|
|
5
5
|
export type PlankCapabilities = {
|
|
6
6
|
incrementStart?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAe,KAAK,gBAAgB,EAAgD,MAAM,gBAAgB,CAAC;AAGlH,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"PlankControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankControls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAe,KAAK,gBAAgB,EAAgD,MAAM,gBAAgB,CAAC;AAGlH,OAAO,EAAE,KAAK,UAAU,EAAiB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,KAAK,IAAI,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACnE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,YAAY,CAAC;IAChD,YAAY,EAAE,iBAAiB,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;CAChC,CAAC;AAQF,KAAK,4BAA4B,GAAG;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qGAoBlC,CAAC;AAKF,eAAO,MAAM,aAAa,wGAyGzB,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const PlankContentError: ({ error }: {
|
|
|
7
7
|
export declare const PlankError: ({ id, part, node, error, }: {
|
|
8
8
|
id: string;
|
|
9
9
|
part: PlankHeadingProps["part"];
|
|
10
|
-
node?: Node;
|
|
10
|
+
node?: Node.Node;
|
|
11
11
|
error?: Error;
|
|
12
12
|
}) => React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=PlankError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankError.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"PlankError.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankError.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAM/C,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGtE,eAAO,MAAM,iBAAiB,GAAI,WAAW;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,sBAU7D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4BAKxB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,sBAWA,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Node } from '@dxos/plugin-graph';
|
|
3
3
|
import { type StackItemSigilAction } from '@dxos/react-ui-stack';
|
|
4
|
-
import { type
|
|
4
|
+
import { type LayoutMode, type ResolvedPart } from '../../types';
|
|
5
5
|
export type PlankHeadingProps = {
|
|
6
6
|
id: string;
|
|
7
7
|
part: ResolvedPart;
|
|
8
8
|
layoutMode?: LayoutMode;
|
|
9
|
-
node?: Node;
|
|
9
|
+
node?: Node.Node;
|
|
10
10
|
deckEnabled?: boolean;
|
|
11
11
|
canIncrementStart?: boolean;
|
|
12
12
|
canIncrementEnd?: boolean;
|
|
@@ -14,7 +14,7 @@ export type PlankHeadingProps = {
|
|
|
14
14
|
primaryId?: string;
|
|
15
15
|
pending?: boolean;
|
|
16
16
|
companioned?: 'primary' | 'companion';
|
|
17
|
-
companions?: Node[];
|
|
17
|
+
companions?: Node.Node[];
|
|
18
18
|
actions?: StackItemSigilAction[];
|
|
19
19
|
};
|
|
20
20
|
export declare const PlankHeading: React.MemoExoticComponent<({ id, part, node, deckEnabled, canIncrementStart, canIncrementEnd, popoverAnchorId, primaryId, pending, companioned, companions, layoutMode, actions, }: PlankHeadingProps) => React.JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAIhG,OAAO,EAAS,KAAK,IAAI,EAAmB,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAO5E,OAAO,EAAiB,KAAK,UAAU,EAAwB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAOtG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IACtC,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,YAAY,sLAepB,iBAAiB,uBA4KrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ComplementarySidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/ComplementarySidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAQN,MAAM,OAAO,CAAC;AAyBf,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,aAAa,yBAAyB,sBAwH1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,OAAO,yBAyBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SidebarButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sidebar/SidebarButton.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAc,KAAK,eAAe,EAAE,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAKxG,eAAO,MAAM,mBAAmB,GAAI,0BAGjC,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC,sBAsBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,yBAmB9B,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,gCAI9C,eAAe,CAAC;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,sBA4BvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type Node as NodeType } from '@dxos/plugin-graph';
|
|
2
|
+
import { type Label } from '@dxos/ui-types';
|
|
3
3
|
import { type Position } from '@dxos/util';
|
|
4
4
|
export declare const getCompanionId: (id: string) => string;
|
|
5
|
-
export type DeckCompanion = Node<any, {
|
|
5
|
+
export type DeckCompanion = NodeType.Node<any, {
|
|
6
6
|
label: Label;
|
|
7
7
|
icon: string;
|
|
8
8
|
/** If true, the panel will not be wrapped in a scroll area. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeckCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckCompanions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDeckCompanions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckCompanions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAQ,KAAK,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,QAAQ,EAAc,MAAM,YAAY,CAAC;AAIvD,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAGxC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CACvC,GAAG,EACH;IACE,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IAEb,+DAA+D;IAC/D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,aAAa,EAKjD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type DeckEphemeralStateProps, type DeckPluginState, type DeckState, type DeckStateProps } from '../types';
|
|
2
|
+
export type DeckStateHook = {
|
|
3
|
+
/** Combined state value (reactive). Includes both persisted and ephemeral state. */
|
|
4
|
+
state: DeckPluginState;
|
|
5
|
+
/** The active deck, computed from decks[activeDeck]. */
|
|
6
|
+
deck: DeckState;
|
|
7
|
+
/** Update persisted state. */
|
|
8
|
+
updateState: (fn: (current: DeckStateProps) => DeckStateProps) => void;
|
|
9
|
+
/** Update ephemeral state. */
|
|
10
|
+
updateEphemeral: (fn: (current: DeckEphemeralStateProps) => DeckEphemeralStateProps) => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Hook to access the deck plugin state reactively.
|
|
14
|
+
* Returns the combined state, the active deck, and update functions for each atom.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useDeckState: () => DeckStateHook;
|
|
17
|
+
//# sourceMappingURL=useDeckState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeckState.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeckState.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,aAAa,GAAG;IAC1B,oFAAoF;IACpF,KAAK,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,IAAI,EAAE,SAAS,CAAC;IAChB,8BAA8B;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,cAAc,KAAK,IAAI,CAAC;IACvE,8BAA8B;IAC9B,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,uBAAuB,KAAK,IAAI,CAAC;CAC9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aA+C/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useHoistStatusbar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useHoistStatusbar.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE7D,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,EAAE,aAAa,UAAU,KAAG,OAY/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeActionExpander.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNodeActionExpander.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"useNodeActionExpander.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNodeActionExpander.ts"],"names":[],"mappings":"AAMA,OAAO,EAAS,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEtD,eAAO,MAAM,qBAAqB,GAAI,OAAO,IAAI,CAAC,IAAI,SAUrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const meta: PluginMeta;
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
4
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAQzB,CAAC"}
|
|
@@ -3,6 +3,7 @@ export declare const translations: [{
|
|
|
3
3
|
readonly 'en-US': {
|
|
4
4
|
readonly [meta.id]: {
|
|
5
5
|
readonly 'plugin name': "Deck";
|
|
6
|
+
readonly 'settings title': "Deck settings";
|
|
6
7
|
readonly 'main header label': "Main header";
|
|
7
8
|
readonly 'open navigation sidebar label': "Open sidebar";
|
|
8
9
|
readonly 'collapse navigation sidebar label': "Minimize sidebar";
|
|
@@ -24,7 +25,7 @@ export declare const translations: [{
|
|
|
24
25
|
readonly 'undo action label': "Undo";
|
|
25
26
|
readonly 'undo action alt': "Undo previous action";
|
|
26
27
|
readonly 'undo close label': "Dismiss";
|
|
27
|
-
readonly 'error fallback message': "Unable to open this
|
|
28
|
+
readonly 'error fallback message': "Unable to open this object";
|
|
28
29
|
readonly 'plank heading fallback label': "Untitled";
|
|
29
30
|
readonly 'actions menu label': "Options";
|
|
30
31
|
readonly 'settings deck label': "Disable deck";
|
|
@@ -49,6 +50,7 @@ export declare const translations: [{
|
|
|
49
50
|
readonly 'settings overscroll none label': "None";
|
|
50
51
|
readonly 'settings enable statusbar label': "Show status bar";
|
|
51
52
|
readonly 'settings enable deck label': "Enable Deck";
|
|
53
|
+
readonly 'settings encapsulated planks label': "Encapsulated planks";
|
|
52
54
|
readonly 'close current label': "Close current plank";
|
|
53
55
|
readonly 'close others label': "Close other planks";
|
|
54
56
|
readonly 'close all label': "Close all planks";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDR;;EAGwB,CAAC"}
|