@dxos/plugin-stack 0.8.4-main.a4bbb77 → 0.8.4-main.abd8ff62ef

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/lib/browser/StackPlugin-QWVPZHNO.mjs +42 -0
  2. package/dist/lib/browser/StackPlugin-QWVPZHNO.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +19 -91
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/translations.mjs +37 -0
  7. package/dist/lib/browser/translations.mjs.map +7 -0
  8. package/dist/lib/browser/types/index.mjs +21 -4
  9. package/dist/lib/browser/types/index.mjs.map +4 -4
  10. package/dist/lib/node-esm/StackPlugin-5PFRZ364.mjs +44 -0
  11. package/dist/lib/node-esm/StackPlugin-5PFRZ364.mjs.map +7 -0
  12. package/dist/lib/node-esm/index.mjs +19 -90
  13. package/dist/lib/node-esm/index.mjs.map +4 -4
  14. package/dist/lib/node-esm/meta.json +1 -1
  15. package/dist/lib/node-esm/translations.mjs +39 -0
  16. package/dist/lib/node-esm/translations.mjs.map +7 -0
  17. package/dist/lib/node-esm/types/index.mjs +22 -4
  18. package/dist/lib/node-esm/types/index.mjs.map +4 -4
  19. package/dist/types/src/StackPlugin.d.ts +3 -1
  20. package/dist/types/src/StackPlugin.d.ts.map +1 -1
  21. package/dist/types/src/capabilities/index.d.ts +2 -1
  22. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  24. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  25. package/dist/types/src/components/{StackContext.d.ts → StackContext/StackContext.d.ts} +2 -1
  26. package/dist/types/src/components/StackContext/StackContext.d.ts.map +1 -0
  27. package/dist/types/src/components/StackContext/index.d.ts +2 -0
  28. package/dist/types/src/components/StackContext/index.d.ts.map +1 -0
  29. package/dist/types/src/components/{CaretDownUp.d.ts → StackSection/CaretDownUp.d.ts} +1 -1
  30. package/dist/types/src/components/StackSection/CaretDownUp.d.ts.map +1 -0
  31. package/dist/types/src/components/{StackSection.d.ts → StackSection/StackSection.d.ts} +1 -1
  32. package/dist/types/src/components/StackSection/StackSection.d.ts.map +1 -0
  33. package/dist/types/src/components/StackSection/index.d.ts +2 -0
  34. package/dist/types/src/components/StackSection/index.d.ts.map +1 -0
  35. package/dist/types/src/components/{StackSettings.d.ts → StackSettings/StackSettings.d.ts} +1 -1
  36. package/dist/types/src/components/StackSettings/StackSettings.d.ts.map +1 -0
  37. package/dist/types/src/components/StackSettings/index.d.ts +2 -0
  38. package/dist/types/src/components/StackSettings/index.d.ts.map +1 -0
  39. package/dist/types/src/components/index.d.ts +2 -7
  40. package/dist/types/src/components/index.d.ts.map +1 -1
  41. package/dist/types/src/containers/StackContainer/StackContainer.d.ts +7 -0
  42. package/dist/types/src/containers/StackContainer/StackContainer.d.ts.map +1 -0
  43. package/dist/types/src/containers/StackContainer/index.d.ts +2 -0
  44. package/dist/types/src/containers/StackContainer/index.d.ts.map +1 -0
  45. package/dist/types/src/containers/index.d.ts +3 -0
  46. package/dist/types/src/containers/index.d.ts.map +1 -0
  47. package/dist/types/src/index.d.ts +2 -1
  48. package/dist/types/src/index.d.ts.map +1 -1
  49. package/dist/types/src/meta.d.ts +3 -3
  50. package/dist/types/src/meta.d.ts.map +1 -1
  51. package/dist/types/src/translations.d.ts +31 -31
  52. package/dist/types/src/translations.d.ts.map +1 -1
  53. package/dist/types/src/types/stack.d.ts +13 -14
  54. package/dist/types/src/types/stack.d.ts.map +1 -1
  55. package/dist/types/src/types/types.d.ts +3 -3
  56. package/dist/types/src/types/types.d.ts.map +1 -1
  57. package/dist/types/tsconfig.tsbuildinfo +1 -1
  58. package/package.json +57 -43
  59. package/src/StackPlugin.ts +29 -42
  60. package/src/capabilities/index.ts +2 -2
  61. package/src/capabilities/react-surface.tsx +20 -26
  62. package/src/components/{StackContext.tsx → StackContext/StackContext.tsx} +3 -1
  63. package/src/components/StackContext/index.ts +5 -0
  64. package/src/components/{StackSection.tsx → StackSection/StackSection.tsx} +27 -24
  65. package/src/components/StackSection/index.ts +5 -0
  66. package/src/components/StackSettings/StackSettings.tsx +28 -0
  67. package/src/components/StackSettings/index.ts +5 -0
  68. package/src/components/index.ts +2 -4
  69. package/src/containers/StackContainer/StackContainer.tsx +170 -0
  70. package/src/containers/StackContainer/index.ts +5 -0
  71. package/src/containers/index.ts +7 -0
  72. package/src/index.ts +6 -1
  73. package/src/meta.ts +9 -5
  74. package/src/translations.ts +23 -22
  75. package/src/types/stack.ts +12 -8
  76. package/src/types/types.ts +3 -3
  77. package/dist/lib/browser/StackMain-XB2KQL47.mjs +0 -299
  78. package/dist/lib/browser/StackMain-XB2KQL47.mjs.map +0 -7
  79. package/dist/lib/browser/chunk-IRTROCUQ.mjs +0 -28
  80. package/dist/lib/browser/chunk-IRTROCUQ.mjs.map +0 -7
  81. package/dist/lib/browser/chunk-MS4QSWEZ.mjs +0 -17
  82. package/dist/lib/browser/chunk-MS4QSWEZ.mjs.map +0 -7
  83. package/dist/lib/browser/react-surface-DEADYQ54.mjs +0 -46
  84. package/dist/lib/browser/react-surface-DEADYQ54.mjs.map +0 -7
  85. package/dist/lib/node-esm/StackMain-BXSBDAF5.mjs +0 -300
  86. package/dist/lib/node-esm/StackMain-BXSBDAF5.mjs.map +0 -7
  87. package/dist/lib/node-esm/chunk-5FDDKAPB.mjs +0 -19
  88. package/dist/lib/node-esm/chunk-5FDDKAPB.mjs.map +0 -7
  89. package/dist/lib/node-esm/chunk-LRAZXJ65.mjs +0 -30
  90. package/dist/lib/node-esm/chunk-LRAZXJ65.mjs.map +0 -7
  91. package/dist/lib/node-esm/react-surface-VDFOPDUT.mjs +0 -47
  92. package/dist/lib/node-esm/react-surface-VDFOPDUT.mjs.map +0 -7
  93. package/dist/types/src/components/CaretDownUp.d.ts.map +0 -1
  94. package/dist/types/src/components/StackContext.d.ts.map +0 -1
  95. package/dist/types/src/components/StackMain.d.ts +0 -9
  96. package/dist/types/src/components/StackMain.d.ts.map +0 -1
  97. package/dist/types/src/components/StackSection.d.ts.map +0 -1
  98. package/dist/types/src/components/StackSettings.d.ts.map +0 -1
  99. package/src/components/StackMain.tsx +0 -160
  100. package/src/components/StackSettings.tsx +0 -30
  101. /package/src/components/{CaretDownUp.tsx → StackSection/CaretDownUp.tsx} +0 -0
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":2047,"imports":[],"format":"esm"},"src/components/StackSettings.tsx":{"bytes":3545,"imports":[{"path":"@preact-signals/safe-react/tracking","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-form","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/StackContext.tsx":{"bytes":1834,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/CaretDownUp.tsx":{"bytes":3228,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/StackSection.tsx":{"bytes":17860,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-collapsible","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-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/CaretDownUp.tsx","kind":"import-statement","original":"./CaretDownUp"},{"path":"src/components/StackContext.tsx","kind":"import-statement","original":"./StackContext"}],"format":"esm"},"src/components/StackMain.tsx":{"bytes":19077,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","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-stack","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/StackContext.tsx","kind":"import-statement","original":"./StackContext"},{"path":"src/components/StackSection.tsx","kind":"import-statement","original":"./StackSection"}],"format":"esm"},"src/components/index.ts":{"bytes":824,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/components/StackSettings.tsx","kind":"import-statement","original":"./StackSettings"},{"path":"src/components/StackMain.tsx","kind":"dynamic-import","original":"./StackMain"}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":4516,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":778,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":4437,"imports":[{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/types/stack.ts":{"bytes":3625,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":499,"imports":[{"path":"src/types/stack.ts","kind":"import-statement","original":"./stack"}],"format":"esm"},"src/StackPlugin.ts":{"bytes":6689,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":547,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StackPlugin.ts","kind":"import-statement","original":"./StackPlugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5373},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-LRAZXJ65.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-5FDDKAPB.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-VDFOPDUT.mjs","kind":"dynamic-import"},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["SECTION_IDENTIFIER","StackPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/StackPlugin.ts":{"bytesInOutput":1394},"src/capabilities/index.ts":{"bytesInOutput":115},"src/translations.ts":{"bytesInOutput":1268}},"bytes":3185},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-LRAZXJ65.mjs","kind":"import-statement"}],"exports":["SectionSchema","StackViewType"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":246},"dist/lib/node-esm/chunk-LRAZXJ65.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1754},"dist/lib/node-esm/chunk-LRAZXJ65.mjs":{"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"inputs":{"src/types/stack.ts":{"bytesInOutput":595},"src/types/index.ts":{"bytesInOutput":0}},"bytes":800},"dist/lib/node-esm/StackMain-BXSBDAF5.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21511},"dist/lib/node-esm/StackMain-BXSBDAF5.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-5FDDKAPB.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/client/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","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-stack","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-collapsible","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-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/components/StackMain.tsx","inputs":{"src/components/StackMain.tsx":{"bytesInOutput":4469},"src/components/StackContext.tsx":{"bytesInOutput":265},"src/components/StackSection.tsx":{"bytesInOutput":5406},"src/components/CaretDownUp.tsx":{"bytesInOutput":972}},"bytes":11551},"dist/lib/node-esm/react-surface-VDFOPDUT.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3735},"dist/lib/node-esm/react-surface-VDFOPDUT.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-5FDDKAPB.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/schema","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","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-form","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/StackMain-BXSBDAF5.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":858},"src/components/index.ts":{"bytesInOutput":94},"src/components/StackSettings.tsx":{"bytesInOutput":263}},"bytes":1624},"dist/lib/node-esm/chunk-5FDDKAPB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":959},"dist/lib/node-esm/chunk-5FDDKAPB.mjs":{"imports":[],"exports":["SECTION_IDENTIFIER","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":524}},"bytes":718}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":2443,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4332,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":948,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StackPlugin.ts","kind":"dynamic-import","original":"./StackPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":4619,"imports":[{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/stack.ts":{"bytes":3664,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":409,"imports":[{"path":"src/types/stack.ts","kind":"import-statement","original":"./stack"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1541},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/StackPlugin-5PFRZ364.mjs","kind":"dynamic-import"}],"exports":["SECTION_IDENTIFIER","StackPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":127},"src/meta.ts":{"bytesInOutput":695}},"bytes":1055},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2141},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1404}},"bytes":1589},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1758},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"entryPoint":"src/types/index.ts","inputs":{"src/types/stack.ts":{"bytesInOutput":575},"src/types/index.ts":{"bytesInOutput":0}},"bytes":770},"dist/lib/node-esm/StackPlugin-5PFRZ364.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2213},"dist/lib/node-esm/StackPlugin-5PFRZ364.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["StackPlugin","default"],"entryPoint":"src/StackPlugin.ts","inputs":{"src/StackPlugin.ts":{"bytesInOutput":1018}},"bytes":1243}}}
@@ -0,0 +1,39 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/translations.ts
4
+ import { translations as stackTranslations } from "@dxos/react-ui-stack/translations";
5
+ import { meta } from "#meta";
6
+ var translations = [
7
+ {
8
+ "en-US": {
9
+ [meta.id]: {
10
+ "plugin.name": "Stacks",
11
+ "settings.title": "Stack settings",
12
+ "settings.separation.label": "Separate sections",
13
+ "settings.separation.description": "Add visual dividers between sections in stacks.",
14
+ "add-section-beforeAll-dialog.title": "Add a section to the start",
15
+ "add-section-afterAll-dialog.title": "Add a section to the end",
16
+ "add-section-before-dialog.title": "Add a section",
17
+ "add-section-after-dialog.title": "Add a section",
18
+ "add-section-input.placeholder": "Find the type of section to add",
19
+ "upload-file.label": "Add file",
20
+ "add-section.label": "Add section",
21
+ "empty-stack.message": "Drag objects into the stack.",
22
+ "remove-section.label": "Delete",
23
+ "navigate-to-section.label": "Navigate to object",
24
+ "untitled-section.title": "Untitled section",
25
+ "add-section-before.label": "Add before",
26
+ "add-section-after.label": "Add after",
27
+ "expand.label": "Expand",
28
+ "collapse.label": "Collapse",
29
+ "open-chat-thread.label": "Open chat thread",
30
+ "drag-handle.label": "Press space or enter to begin dragging this object."
31
+ }
32
+ }
33
+ },
34
+ ...stackTranslations
35
+ ];
36
+ export {
37
+ translations
38
+ };
39
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as stackTranslations } from '@dxos/react-ui-stack/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Stacks',\n 'settings.title': 'Stack settings',\n 'settings.separation.label': 'Separate sections',\n 'settings.separation.description': 'Add visual dividers between sections in stacks.',\n 'add-section-beforeAll-dialog.title': 'Add a section to the start',\n 'add-section-afterAll-dialog.title': 'Add a section to the end',\n 'add-section-before-dialog.title': 'Add a section',\n 'add-section-after-dialog.title': 'Add a section',\n 'add-section-input.placeholder': 'Find the type of section to add',\n 'upload-file.label': 'Add file',\n 'add-section.label': 'Add section',\n 'empty-stack.message': 'Drag objects into the stack.',\n 'remove-section.label': 'Delete',\n 'navigate-to-section.label': 'Navigate to object',\n 'untitled-section.title': 'Untitled section',\n 'add-section-before.label': 'Add before',\n 'add-section-after.label': 'Add after',\n 'expand.label': 'Expand',\n 'collapse.label': 'Collapse',\n 'open-chat-thread.label': 'Open chat thread',\n 'drag-handle.label': 'Press space or enter to begin dragging this object.',\n },\n },\n },\n ...stackTranslations,\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAEd,IAAMF,eAAe;EAC1B;IACE,SAAS;MACP,CAACE,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,6BAA6B;QAC7B,mCAAmC;QACnC,sCAAsC;QACtC,qCAAqC;QACrC,mCAAmC;QACnC,kCAAkC;QAClC,iCAAiC;QACjC,qBAAqB;QACrB,qBAAqB;QACrB,uBAAuB;QACvB,wBAAwB;QACxB,6BAA6B;QAC7B,0BAA0B;QAC1B,4BAA4B;QAC5B,2BAA2B;QAC3B,gBAAgB;QAChB,kBAAkB;QAClB,0BAA0B;QAC1B,qBAAqB;MACvB;IACF;EACF;KACGF;;",
6
+ "names": ["translations", "stackTranslations", "meta", "id"]
7
+ }
@@ -1,8 +1,26 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SectionSchema,
4
- StackViewType
5
- } from "../chunk-LRAZXJ65.mjs";
2
+
3
+ // src/types/stack.ts
4
+ import * as Schema from "effect/Schema";
5
+ import { Type } from "@dxos/echo";
6
+ var SectionSchema = Schema.Struct({
7
+ height: Schema.optional(Schema.Number),
8
+ // Space for data that isn't stack-specific but is specific to this view instance.
9
+ // e.g. cover/fill for an image
10
+ custom: Schema.optional(Schema.Record({
11
+ key: Schema.String,
12
+ value: Schema.Any
13
+ }))
14
+ });
15
+ var StackViewType = Schema.Struct({
16
+ sections: Schema.Record({
17
+ key: Schema.String,
18
+ value: SectionSchema
19
+ })
20
+ }).pipe(Type.object({
21
+ typename: "org.dxos.type.stackView",
22
+ version: "0.1.0"
23
+ }));
6
24
  export {
7
25
  SectionSchema,
8
26
  StackViewType
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
3
+ "sources": ["../../../../src/types/stack.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Type } from '@dxos/echo';\n\n// All section metadata needs to be optional/have defaults.\n// Any objects added to the collection will start with the section defaults.\n// If an object is removed from the collection without removing the section metadata this is fine.\n// Stack components should clean-up the superfluous data on future edits.\n\nexport const SectionSchema = Schema.Struct({\n height: Schema.optional(Schema.Number),\n // Space for data that isn't stack-specific but is specific to this view instance.\n // e.g. cover/fill for an image\n custom: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n});\n\n// TODO(wittjosiah): This needs a relation to be connected to a stack.\nexport const StackViewType = Schema.Struct({\n sections: Schema.Record({ key: Schema.String, value: SectionSchema }),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.stackView',\n version: '0.1.0',\n }),\n);\n\nexport interface StackViewType extends Schema.Schema.Type<typeof StackViewType> {}\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AAOd,IAAMC,gBAAuBC,cAAO;EACzCC,QAAeC,gBAAgBC,aAAM;;;EAGrCC,QAAeF,gBAAgBG,cAAO;IAAEC,KAAYC;IAAQC,OAAcC;EAAI,CAAA,CAAA;AAChF,CAAA;AAGO,IAAMC,gBAAuBV,cAAO;EACzCW,UAAiBN,cAAO;IAAEC,KAAYC;IAAQC,OAAOT;EAAc,CAAA;AACrE,CAAA,EAAGa,KACDd,KAAKe,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;",
6
+ "names": ["Schema", "Type", "SectionSchema", "Struct", "height", "optional", "Number", "custom", "Record", "key", "String", "value", "Any", "StackViewType", "sections", "pipe", "object", "typename", "version"]
7
7
  }
@@ -1,2 +1,4 @@
1
- export declare const StackPlugin: import("@dxos/app-framework").PluginFactory<void>;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const StackPlugin: Plugin.PluginFactory<void>;
3
+ export default StackPlugin;
2
4
  //# sourceMappingURL=StackPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StackPlugin.d.ts","sourceRoot":"","sources":["../../../src/StackPlugin.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,mDAqCtB,CAAC"}
1
+ {"version":3,"file":"StackPlugin.d.ts","sourceRoot":"","sources":["../../../src/StackPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS7C,eAAO,MAAM,WAAW,4BAsBvB,CAAC;eAEa,WAAW"}
@@ -1,2 +1,3 @@
1
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.ReactSurface>> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ import { Capability } from '@dxos/app-framework';
2
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,4OAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.ReactSurface>>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAQ/E,wBAmBI"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,5 +1,6 @@
1
- import { type AddSectionPosition } from '../types';
1
+ import { type AddSectionPosition } from '#types';
2
2
  export type StackContextValue = {
3
+ attendableId: string;
3
4
  onCollapse: (id: string, collapsed: boolean) => void;
4
5
  onNavigate: (id: string) => Promise<void>;
5
6
  onDelete: (id: string) => Promise<void>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackContext/StackContext.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,YAAY,4CAMvB,CAAC;AAEH,eAAO,MAAM,QAAQ,yBAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StackContext';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackContext/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import React, { type ComponentPropsWithoutRef } from 'react';
2
- export declare const CaretDownUp: ({ children, ...props }: ComponentPropsWithoutRef<"svg">) => React.JSX.Element;
2
+ export declare const CaretDownUp: ({ children, ...props }: ComponentPropsWithoutRef<'svg'>) => React.JSX.Element;
3
3
  //# sourceMappingURL=CaretDownUp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaretDownUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/CaretDownUp.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAE7D,eAAO,MAAM,WAAW,2BAA4B,wBAAwB,CAAC,KAAK,CAAC,sBAuBlF,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type StackSectionItem } from '../types';
2
+ import { type StackSectionItem } from '#types';
3
3
  export type StackSectionProps = StackSectionItem;
4
4
  export declare const StackSection: ({ id, view, object, metadata: { icon }, }: StackSectionProps) => React.JSX.Element;
5
5
  //# sourceMappingURL=StackSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/StackSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAUjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO/C,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY,8CAKtB,iBAAiB,sBA6FnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StackSection';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type StackSettingsProps } from '../types';
2
+ import { type StackSettingsProps } from '#types';
3
3
  export declare const StackSettings: ({ settings }: {
4
4
  settings: StackSettingsProps;
5
5
  }) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSettings/StackSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,eAAO,MAAM,aAAa,iBAAkB;IAAE,QAAQ,EAAE,kBAAkB,CAAA;CAAE,sBAe3E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './StackSettings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSettings/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
@@ -1,9 +1,4 @@
1
- export declare const StackMain: import("react").LazyExoticComponent<({ id, collection }: {
2
- id: string;
3
- collection: import("@dxos/echo/Type").OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
4
- name?: string | undefined;
5
- objects: import("@dxos/echo-schema").Ref<import("@dxos/echo/Type").Expando>[];
6
- };
7
- }) => import("react").JSX.Element>;
1
+ export * from './StackContext';
2
+ export * from './StackSection';
8
3
  export * from './StackSettings';
9
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;kCAAoC,CAAC;AAE3D,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type Collection } from '@dxos/echo';
4
+ type StackContainerProps = AppSurface.ObjectArticleProps<Collection.Collection>;
5
+ export declare const StackContainer: ({ attendableId, subject: collection }: StackContainerProps) => React.JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=StackContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/StackContainer/StackContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AA8B7C,KAAK,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEhF,eAAO,MAAM,cAAc,0CAA2C,mBAAmB,sBA6HxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { StackContainer as default } from './StackContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/StackContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ComponentType } from 'react';
2
+ export declare const StackContainer: ComponentType<any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,GAAG,CAA0C,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const StackPlugin: Plugin.PluginFactory<void>;
1
3
  export * from './meta';
2
- export * from './StackPlugin';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,WAAW,4BAAmD,CAAC;AAE5E,cAAc,QAAQ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const SECTION_IDENTIFIER = "dxos.org/type/StackSection";
3
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const SECTION_IDENTIFIER = "org.dxos.type.stackSection";
3
+ export declare const meta: Plugin.Meta;
4
4
  //# 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,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,+BAA+B,CAAC;AAE/D,eAAO,MAAM,IAAI,EAAE,UAQlB,CAAC"}
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,kBAAkB,+BAA+B,CAAC;AAE/D,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAWzB,CAAC"}
@@ -1,40 +1,40 @@
1
- import { meta } from './meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin name': "Stacks";
6
- readonly 'settings title': "Stack plugin settings";
7
- readonly 'settings separation label': "Separate sections";
8
- readonly 'add section beforeAll dialog title': "Add a section to the start";
9
- readonly 'add section afterAll dialog title': "Add a section to the end";
10
- readonly 'add section before dialog title': "Add a section";
11
- readonly 'add section after dialog title': "Add a section";
12
- readonly 'add section input placeholder': "Find the type of section to add";
13
- readonly 'upload file label': "Add file";
14
- readonly 'add section label': "Add section";
15
- readonly 'empty stack message': "Drag items into the stack.";
16
- readonly 'remove section label': "Delete";
17
- readonly 'navigate to section label': "Navigate to item";
18
- readonly 'untitled section title': "Untitled section";
19
- readonly 'add section before label': "Add before";
20
- readonly 'add section after label': "Add after";
21
- readonly 'expand label': "Expand";
22
- readonly 'collapse label': "Collapse";
23
- readonly 'open chat thread label': "Open chat thread";
24
- readonly 'drag handle label': "Press space or enter to begin dragging this item.";
3
+ readonly [x: string]: {
4
+ readonly 'plugin.name': 'Stacks';
5
+ readonly 'settings.title': 'Stack settings';
6
+ readonly 'settings.separation.label': 'Separate sections';
7
+ readonly 'settings.separation.description': 'Add visual dividers between sections in stacks.';
8
+ readonly 'add-section-beforeAll-dialog.title': 'Add a section to the start';
9
+ readonly 'add-section-afterAll-dialog.title': 'Add a section to the end';
10
+ readonly 'add-section-before-dialog.title': 'Add a section';
11
+ readonly 'add-section-after-dialog.title': 'Add a section';
12
+ readonly 'add-section-input.placeholder': 'Find the type of section to add';
13
+ readonly 'upload-file.label': 'Add file';
14
+ readonly 'add-section.label': 'Add section';
15
+ readonly 'empty-stack.message': 'Drag objects into the stack.';
16
+ readonly 'remove-section.label': 'Delete';
17
+ readonly 'navigate-to-section.label': 'Navigate to object';
18
+ readonly 'untitled-section.title': 'Untitled section';
19
+ readonly 'add-section-before.label': 'Add before';
20
+ readonly 'add-section-after.label': 'Add after';
21
+ readonly 'expand.label': 'Expand';
22
+ readonly 'collapse.label': 'Collapse';
23
+ readonly 'open-chat-thread.label': 'Open chat thread';
24
+ readonly 'drag-handle.label': 'Press space or enter to begin dragging this object.';
25
25
  };
26
26
  };
27
27
  }, {
28
28
  readonly 'en-US': {
29
- readonly "react-ui-stack": {
30
- readonly "resize label": "Drag to resize";
31
- readonly "drag handle label": "Drag to rearrange";
32
- readonly "pin start label": "Pin to the left sidebar";
33
- readonly "pin end label": "Pin to the right sidebar";
34
- readonly "increment start label": "Move to the left";
35
- readonly "increment end label": "Move to the right";
36
- readonly "close label": "Close";
37
- readonly "minify label": "Minify";
29
+ readonly "@dxos/react-ui-stack": {
30
+ readonly 'resize.label': 'Drag to resize';
31
+ readonly 'drag-handle.label': 'Drag to rearrange';
32
+ readonly 'pin-start.label': 'Pin to the left sidebar';
33
+ readonly 'pin-end.label': 'Pin to the right sidebar';
34
+ readonly 'increment-start.label': 'Move to the left';
35
+ readonly 'increment-end.label': 'Move to the right';
36
+ readonly 'close.label': 'Close';
37
+ readonly 'minify.label': 'Minify';
38
38
  };
39
39
  };
40
40
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;UAqBR;;;;;;;;;;;;;;;EAIwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;oCAIF,QAAQ;uCACL,gBAAgB;kDACL,mBAAmB;wDACb,iDAAiD;2DAC9C,4BAA4B;0DAC7B,0BAA0B;wDAC5B,eAAe;uDAChB,eAAe;sDAChB,iCAAiC;0CAC7C,UAAU;0CACV,aAAa;4CACX,8BAA8B;6CAC7B,QAAQ;kDACH,oBAAoB;+CACvB,kBAAkB;iDAChB,YAAY;gDACb,WAAW;qCACtB,QAAQ;uCACN,UAAU;+CACF,kBAAkB;0CACvB,qDAAqD;;;;;;;;;;;;;;;;EAKnD,CAAC"}
@@ -1,20 +1,19 @@
1
- import { Schema } from 'effect';
1
+ import * as Schema from 'effect/Schema';
2
+ import { Type } from '@dxos/echo';
2
3
  export declare const SectionSchema: Schema.Struct<{
3
4
  height: Schema.optional<typeof Schema.Number>;
4
5
  custom: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
5
6
  }>;
6
- declare const StackViewType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
7
- sections: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Struct<{
8
- height: Schema.optional<typeof Schema.Number>;
9
- custom: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
10
- }>>>;
11
- }, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<{
12
- sections: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Struct<{
13
- height: Schema.optional<typeof Schema.Number>;
14
- custom: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
15
- }>>>;
16
- }>>;
17
- export declare class StackViewType extends StackViewType_base {
7
+ export declare const StackViewType: Type.Obj<{
8
+ readonly sections: {
9
+ readonly [x: string]: {
10
+ readonly height?: number | undefined;
11
+ readonly custom?: {
12
+ readonly [x: string]: any;
13
+ } | undefined;
14
+ };
15
+ };
16
+ }, Schema.Struct.Fields>;
17
+ export interface StackViewType extends Schema.Schema.Type<typeof StackViewType> {
18
18
  }
19
- export {};
20
19
  //# sourceMappingURL=stack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/types/stack.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAShC,eAAO,MAAM,aAAa;;;EAKxB,CAAC;;;;;;;;;;;;AAGH,qBAAa,aAAc,SAAQ,kBAKjC;CAAG"}
1
+ {"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../src/types/stack.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAOlC,eAAO,MAAM,aAAa;;;EAKxB,CAAC;AAGH,eAAO,MAAM,aAAa;;;;;;;;;wBAOzB,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG"}
@@ -1,11 +1,11 @@
1
1
  import { type FC } from 'react';
2
2
  import { type Obj } from '@dxos/echo';
3
+ import { type Collection } from '@dxos/echo';
3
4
  import { type Label } from '@dxos/react-ui';
4
5
  import { type StackItemSize } from '@dxos/react-ui-stack';
5
- import { type DataType } from '@dxos/schema';
6
6
  export type AddSectionPosition = 'before' | 'after' | 'beforeAll' | 'afterAll';
7
7
  export type CollapsedSections = Record<string, boolean>;
8
- export type CollectionItem = DataType.Collection['objects'][number];
8
+ export type CollectionItem = Collection.Collection['objects'][number];
9
9
  export type StackSectionView = {
10
10
  title?: string;
11
11
  size?: StackItemSize;
@@ -34,7 +34,7 @@ export type StackSectionMetadata = {
34
34
  };
35
35
  export type StackSectionItem = {
36
36
  id: string;
37
- object: Obj.Any;
37
+ object: Obj.Unknown;
38
38
  view: StackSectionView;
39
39
  metadata: StackSectionMetadata;
40
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzC,IAAI,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,kBAAkB,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzC,IAAI,EAAE,EAAE,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,kBAAkB,CAAC;CAC5D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;IACpB,IAAI,EAAE,gBAAgB,CAAC;IACvB,QAAQ,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC"}