@dxos/plugin-stack 0.8.4-main.4a85c3132b → 0.8.4-main.51f1e5ca51

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 (82) hide show
  1. package/dist/lib/browser/index.mjs +21 -47
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +37 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/browser/types/index.mjs +21 -4
  7. package/dist/lib/browser/types/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/index.mjs +22 -47
  9. package/dist/lib/node-esm/index.mjs.map +4 -4
  10. package/dist/lib/node-esm/meta.json +1 -1
  11. package/dist/lib/node-esm/translations.mjs +39 -0
  12. package/dist/lib/node-esm/translations.mjs.map +7 -0
  13. package/dist/lib/node-esm/types/index.mjs +22 -4
  14. package/dist/lib/node-esm/types/index.mjs.map +4 -4
  15. package/dist/types/src/capabilities/index.d.ts +2 -1
  16. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  18. package/dist/types/src/components/{StackContext.d.ts → StackContext/StackContext.d.ts} +2 -1
  19. package/dist/types/src/components/StackContext/StackContext.d.ts.map +1 -0
  20. package/dist/types/src/components/StackContext/index.d.ts +2 -0
  21. package/dist/types/src/components/StackContext/index.d.ts.map +1 -0
  22. package/dist/types/src/components/{CaretDownUp.d.ts → StackSection/CaretDownUp.d.ts} +1 -1
  23. package/dist/types/src/components/StackSection/CaretDownUp.d.ts.map +1 -0
  24. package/dist/types/src/components/{StackSection.d.ts → StackSection/StackSection.d.ts} +1 -1
  25. package/dist/types/src/components/StackSection/StackSection.d.ts.map +1 -0
  26. package/dist/types/src/components/StackSection/index.d.ts +2 -0
  27. package/dist/types/src/components/StackSection/index.d.ts.map +1 -0
  28. package/dist/types/src/components/{StackSettings.d.ts → StackSettings/StackSettings.d.ts} +1 -1
  29. package/dist/types/src/components/StackSettings/StackSettings.d.ts.map +1 -0
  30. package/dist/types/src/components/StackSettings/index.d.ts +2 -0
  31. package/dist/types/src/components/StackSettings/index.d.ts.map +1 -0
  32. package/dist/types/src/containers/StackContainer/StackContainer.d.ts +3 -5
  33. package/dist/types/src/containers/StackContainer/StackContainer.d.ts.map +1 -1
  34. package/dist/types/src/containers/StackContainer/index.d.ts +1 -2
  35. package/dist/types/src/containers/StackContainer/index.d.ts.map +1 -1
  36. package/dist/types/src/meta.d.ts +1 -1
  37. package/dist/types/src/translations.d.ts +30 -30
  38. package/dist/types/src/translations.d.ts.map +1 -1
  39. package/dist/types/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +43 -36
  41. package/src/StackPlugin.ts +4 -4
  42. package/src/capabilities/index.ts +3 -1
  43. package/src/capabilities/react-surface.tsx +28 -0
  44. package/src/components/{StackContext.tsx → StackContext/StackContext.tsx} +3 -1
  45. package/src/components/StackContext/index.ts +5 -0
  46. package/src/components/{StackSection.tsx → StackSection/StackSection.tsx} +23 -20
  47. package/src/components/StackSection/index.ts +5 -0
  48. package/src/components/StackSettings/StackSettings.tsx +28 -0
  49. package/src/components/StackSettings/index.ts +5 -0
  50. package/src/containers/StackContainer/StackContainer.tsx +29 -28
  51. package/src/containers/StackContainer/index.ts +1 -3
  52. package/src/meta.ts +2 -2
  53. package/src/translations.ts +23 -22
  54. package/src/types/stack.ts +1 -1
  55. package/dist/lib/browser/StackContainer-BIFUBD3Y.mjs +0 -289
  56. package/dist/lib/browser/StackContainer-BIFUBD3Y.mjs.map +0 -7
  57. package/dist/lib/browser/chunk-4X7CK6FM.mjs +0 -21
  58. package/dist/lib/browser/chunk-4X7CK6FM.mjs.map +0 -7
  59. package/dist/lib/browser/chunk-CD32XYEB.mjs +0 -27
  60. package/dist/lib/browser/chunk-CD32XYEB.mjs.map +0 -7
  61. package/dist/lib/browser/react-surface-PVND4UCN.mjs +0 -34
  62. package/dist/lib/browser/react-surface-PVND4UCN.mjs.map +0 -7
  63. package/dist/lib/node-esm/StackContainer-7XVJHW4D.mjs +0 -290
  64. package/dist/lib/node-esm/StackContainer-7XVJHW4D.mjs.map +0 -7
  65. package/dist/lib/node-esm/chunk-26XWE7UY.mjs +0 -29
  66. package/dist/lib/node-esm/chunk-26XWE7UY.mjs.map +0 -7
  67. package/dist/lib/node-esm/chunk-HEEGXPSW.mjs +0 -23
  68. package/dist/lib/node-esm/chunk-HEEGXPSW.mjs.map +0 -7
  69. package/dist/lib/node-esm/react-surface-SZETVRAZ.mjs +0 -35
  70. package/dist/lib/node-esm/react-surface-SZETVRAZ.mjs.map +0 -7
  71. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  72. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  73. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  74. package/dist/types/src/components/CaretDownUp.d.ts.map +0 -1
  75. package/dist/types/src/components/StackContext.d.ts.map +0 -1
  76. package/dist/types/src/components/StackSection.d.ts.map +0 -1
  77. package/dist/types/src/components/StackSettings.d.ts.map +0 -1
  78. package/src/capabilities/react-surface/index.ts +0 -7
  79. package/src/capabilities/react-surface/react-surface.tsx +0 -34
  80. package/src/components/StackSettings.tsx +0 -30
  81. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
  82. /package/src/components/{CaretDownUp.tsx → StackSection/CaretDownUp.tsx} +0 -0
@@ -1,55 +1,29 @@
1
- import {
2
- StackViewType
3
- } from "./chunk-CD32XYEB.mjs";
4
- import {
5
- SECTION_IDENTIFIER,
6
- meta
7
- } from "./chunk-4X7CK6FM.mjs";
1
+ // src/meta.ts
2
+ import { trim } from "@dxos/util";
3
+ var SECTION_IDENTIFIER = "org.dxos.type.stackSection";
4
+ var meta = {
5
+ id: "org.dxos.plugin.stack",
6
+ // TODO(wittjosiah): Prevents "stacks" language from being exposed to users in settings panel.
7
+ // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.
8
+ name: "Collections",
9
+ description: trim`
10
+ Organize and view curated collections of workspace objects in customizable layouts.
11
+ Group related items together and manage collections with sections and filtering.
12
+ `,
13
+ icon: "ph--stack-simple--regular",
14
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack"
15
+ };
8
16
 
9
17
  // src/StackPlugin.ts
10
18
  import { Plugin } from "@dxos/app-framework";
11
19
  import { AppPlugin } from "@dxos/app-toolkit";
12
-
13
- // src/capabilities/react-surface/index.ts
14
- import { Capability } from "@dxos/app-framework";
15
- var ReactSurface = Capability.lazy("ReactSurface", () => import("./react-surface-PVND4UCN.mjs"));
16
-
17
- // src/translations.ts
18
- import { translations as stackTranslations } from "@dxos/react-ui-stack";
19
- var translations = [
20
- {
21
- "en-US": {
22
- [meta.id]: {
23
- "plugin name": "Stacks",
24
- "settings title": "Stack plugin settings",
25
- "settings separation label": "Separate sections",
26
- "add section beforeAll dialog title": "Add a section to the start",
27
- "add section afterAll dialog title": "Add a section to the end",
28
- "add section before dialog title": "Add a section",
29
- "add section after dialog title": "Add a section",
30
- "add section input placeholder": "Find the type of section to add",
31
- "upload file label": "Add file",
32
- "add section label": "Add section",
33
- "empty stack message": "Drag objects into the stack.",
34
- "remove section label": "Delete",
35
- "navigate to section label": "Navigate to object",
36
- "untitled section title": "Untitled section",
37
- "add section before label": "Add before",
38
- "add section after label": "Add after",
39
- "expand label": "Expand",
40
- "collapse label": "Collapse",
41
- "open chat thread label": "Open chat thread",
42
- "drag handle label": "Press space or enter to begin dragging this object."
43
- }
44
- }
45
- },
46
- ...stackTranslations
47
- ];
48
-
49
- // src/StackPlugin.ts
50
- var StackPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
20
+ import { ReactSurface } from "#capabilities";
21
+ import { SECTION_IDENTIFIER as SECTION_IDENTIFIER2, meta as meta2 } from "#meta";
22
+ import { translations } from "#translations";
23
+ import { StackViewType } from "#types";
24
+ var StackPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
51
25
  metadata: {
52
- id: SECTION_IDENTIFIER,
26
+ id: SECTION_IDENTIFIER2,
53
27
  metadata: {
54
28
  parse: (section, type) => {
55
29
  switch (type) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/StackPlugin.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type Obj } from '@dxos/echo';\n\nimport { ReactSurface } from './capabilities';\nimport { SECTION_IDENTIFIER, meta } from './meta';\nimport { translations } from './translations';\nimport { StackViewType } from './types';\n\nexport const StackPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: SECTION_IDENTIFIER,\n metadata: {\n parse: (section: { object: Obj.Unknown }, type: string) => {\n switch (type) {\n case 'node':\n return { id: section.object.id, label: (section.object as any).title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [StackViewType] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as stackTranslations } from '@dxos/react-ui-stack';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin name': 'Stacks',\n 'settings title': 'Stack plugin settings',\n 'settings separation label': 'Separate sections',\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": ";;;;;;;;;AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;;;ACD1B,SAASC,kBAAkB;AAEpB,IAAMC,eAAeC,WAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACDzE,SAASC,gBAAgBC,yBAAyB;AAI3C,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,6BAA6B;QAC7B,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;KACGC;;;;AFvBE,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC;IACJF,UAAU;MACRG,OAAO,CAACC,SAAkCC,SAAAA;AACxC,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEJ,IAAIG,QAAQE,OAAOL;cAAIM,OAAQH,QAAQE,OAAeE;cAAOC,MAAML,QAAQE;YAAO;UAC7F,KAAK;AACH,mBAAOF,QAAQE;UACjB,KAAK;AACH,mBAAOF;QACX;MACF;IACF;EACF;AACF,CAAA,GACAN,UAAUY,gBAAgB;EAAEC,QAAQ;IAACC;;AAAe,CAAA,GACpDd,UAAUe,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpDjB,UAAUkB,sBAAsB;EAAEC;AAAa,CAAA,GAC/CvB,OAAOwB,IAAI;",
6
- "names": ["Plugin", "AppPlugin", "Capability", "ReactSurface", "Capability", "lazy", "translations", "stackTranslations", "translations", "meta", "id", "stackTranslations", "StackPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "SECTION_IDENTIFIER", "parse", "section", "type", "object", "label", "title", "data", "addSchemaModule", "schema", "StackViewType", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "make"]
3
+ "sources": ["../../../src/meta.ts", "../../../src/StackPlugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const SECTION_IDENTIFIER = 'org.dxos.type.stackSection';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.stack',\n // TODO(wittjosiah): Prevents \"stacks\" language from being exposed to users in settings panel.\n // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.\n name: 'Collections',\n description: trim`\n Organize and view curated collections of workspace objects in customizable layouts.\n Group related items together and manage collections with sections and filtering.\n `,\n icon: 'ph--stack-simple--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack',\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type Obj } from '@dxos/echo';\n\nimport { ReactSurface } from '#capabilities';\nimport { SECTION_IDENTIFIER, meta } from '#meta';\nimport { translations } from '#translations';\nimport { StackViewType } from '#types';\n\nexport const StackPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: SECTION_IDENTIFIER,\n metadata: {\n parse: (section: { object: Obj.Unknown }, type: string) => {\n switch (type) {\n case 'node':\n return { id: section.object.id, label: (section.object as any).title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [StackViewType] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n"],
5
+ "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,qBAAqB;AAE3B,IAAMC,OAAoB;EAC/BC,IAAI;;;EAGJC,MAAM;EACNC,aAAaL;;;;EAIbM,MAAM;EACNC,QAAQ;AACV;;;AChBA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,oBAAoB;AAC7B,SAASC,sBAAAA,qBAAoBC,QAAAA,aAAY;AACzC,SAASC,oBAAoB;AAC7B,SAASC,qBAAqB;AAEvB,IAAMC,cAAcP,OAAOQ,OAAOJ,KAAAA,EAAMK,KAC7CR,UAAUS,kBAAkB;EAC1BC,UAAU;IACRC,IAAIT;IACJQ,UAAU;MACRE,OAAO,CAACC,SAAkCC,SAAAA;AACxC,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEH,IAAIE,QAAQE,OAAOJ;cAAIK,OAAQH,QAAQE,OAAeE;cAAOC,MAAML,QAAQE;YAAO;UAC7F,KAAK;AACH,mBAAOF,QAAQE;UACjB,KAAK;AACH,mBAAOF;QACX;MACF;IACF;EACF;AACF,CAAA,GACAb,UAAUmB,gBAAgB;EAAEC,QAAQ;IAACf;;AAAe,CAAA,GACpDL,UAAUqB,iBAAiB;EAAEC,UAAUrB;AAAa,CAAA,GACpDD,UAAUuB,sBAAsB;EAAEnB;AAAa,CAAA,GAC/CL,OAAOyB,IAAI;",
6
+ "names": ["trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "icon", "source", "Plugin", "AppPlugin", "ReactSurface", "SECTION_IDENTIFIER", "meta", "translations", "StackViewType", "StackPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "parse", "section", "type", "object", "label", "title", "data", "addSchemaModule", "schema", "addSurfaceModule", "activate", "addTranslationsModule", "make"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":2522,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/StackContext.tsx":{"bytes":1834,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/CaretDownUp.tsx":{"bytes":2962,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/StackSection.tsx":{"bytes":17327,"imports":[{"path":"@radix-ui/react-collapsible","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/CaretDownUp.tsx","kind":"import-statement","original":"./CaretDownUp"},{"path":"src/components/StackContext.tsx","kind":"import-statement","original":"./StackContext"}],"format":"esm"},"src/components/StackSettings.tsx":{"bytes":3224,"imports":[{"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/index.ts":{"bytes":684,"imports":[{"path":"src/components/StackContext.tsx","kind":"import-statement","original":"./StackContext"},{"path":"src/components/StackSection.tsx","kind":"import-statement","original":"./StackSection"},{"path":"src/components/StackSettings.tsx","kind":"import-statement","original":"./StackSettings"}],"format":"esm"},"src/containers/StackContainer/StackContainer.tsx":{"bytes":19926,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-atom","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","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/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/containers/StackContainer/index.ts":{"bytes":676,"imports":[{"path":"src/containers/StackContainer/StackContainer.tsx","kind":"import-statement","original":"./StackContainer"}],"format":"esm"},"src/containers/index.ts":{"bytes":809,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/StackContainer/index.ts","kind":"dynamic-import","original":"./StackContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":4498,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/containers/index.ts","kind":"import-statement","original":"../../containers"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":486,"imports":[{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":4451,"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":3750,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","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":4334,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/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/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4449},"dist/lib/browser/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-CD32XYEB.mjs","kind":"import-statement"},{"path":"dist/lib/browser/chunk-4X7CK6FM.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/browser/react-surface-PVND4UCN.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":797},"src/capabilities/react-surface/index.ts":{"bytesInOutput":148},"src/capabilities/index.ts":{"bytesInOutput":0},"src/translations.ts":{"bytesInOutput":1274}},"bytes":2549},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"dist/lib/browser/chunk-CD32XYEB.mjs","kind":"import-statement"}],"exports":["SectionSchema","StackViewType"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":154},"dist/lib/browser/chunk-CD32XYEB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1761},"dist/lib/browser/chunk-CD32XYEB.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"inputs":{"src/types/stack.ts":{"bytesInOutput":575},"src/types/index.ts":{"bytesInOutput":0}},"bytes":687},"dist/lib/browser/StackContainer-BIFUBD3Y.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":23640},"dist/lib/browser/StackContainer-BIFUBD3Y.mjs":{"imports":[{"path":"dist/lib/browser/chunk-4X7CK6FM.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-atom","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","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":"@radix-ui/react-collapsible","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","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}],"exports":["default"],"entryPoint":"src/containers/StackContainer/index.ts","inputs":{"src/containers/StackContainer/StackContainer.tsx":{"bytesInOutput":4379},"src/components/StackContext.tsx":{"bytesInOutput":265},"src/components/index.ts":{"bytesInOutput":0},"src/components/StackSection.tsx":{"bytesInOutput":5062},"src/components/CaretDownUp.tsx":{"bytesInOutput":771},"src/components/StackSettings.tsx":{"bytesInOutput":151},"src/containers/StackContainer/index.ts":{"bytesInOutput":45}},"bytes":11150},"dist/lib/browser/react-surface-PVND4UCN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2585},"dist/lib/browser/react-surface-PVND4UCN.mjs":{"imports":[{"path":"dist/lib/browser/chunk-4X7CK6FM.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/browser/StackContainer-BIFUBD3Y.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":790},"src/containers/index.ts":{"bytesInOutput":104}},"bytes":1174},"dist/lib/browser/chunk-4X7CK6FM.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1165},"dist/lib/browser/chunk-4X7CK6FM.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["SECTION_IDENTIFIER","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":695}},"bytes":796}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":2443,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4240,"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":463,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StackPlugin.ts","kind":"import-statement","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/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3247},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["SECTION_IDENTIFIER","StackPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":695},"src/index.ts":{"bytesInOutput":0},"src/StackPlugin.ts":{"bytesInOutput":1013}},"bytes":1837},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2139},"dist/lib/browser/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":1496},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1756},"dist/lib/browser/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":677}}}
@@ -0,0 +1,37 @@
1
+ // src/translations.ts
2
+ import { translations as stackTranslations } from "@dxos/react-ui-stack/translations";
3
+ import { meta } from "#meta";
4
+ var translations = [
5
+ {
6
+ "en-US": {
7
+ [meta.id]: {
8
+ "plugin.name": "Stacks",
9
+ "settings.title": "Stack settings",
10
+ "settings.separation.label": "Separate sections",
11
+ "settings.separation.description": "Add visual dividers between sections in stacks.",
12
+ "add-section-beforeAll-dialog.title": "Add a section to the start",
13
+ "add-section-afterAll-dialog.title": "Add a section to the end",
14
+ "add-section-before-dialog.title": "Add a section",
15
+ "add-section-after-dialog.title": "Add a section",
16
+ "add-section-input.placeholder": "Find the type of section to add",
17
+ "upload-file.label": "Add file",
18
+ "add-section.label": "Add section",
19
+ "empty-stack.message": "Drag objects into the stack.",
20
+ "remove-section.label": "Delete",
21
+ "navigate-to-section.label": "Navigate to object",
22
+ "untitled-section.title": "Untitled section",
23
+ "add-section-before.label": "Add before",
24
+ "add-section-after.label": "Add after",
25
+ "expand.label": "Expand",
26
+ "collapse.label": "Collapse",
27
+ "open-chat-thread.label": "Open chat thread",
28
+ "drag-handle.label": "Press space or enter to begin dragging this object."
29
+ }
30
+ }
31
+ },
32
+ ...stackTranslations
33
+ ];
34
+ export {
35
+ translations
36
+ };
37
+ //# 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,7 +1,24 @@
1
- import {
2
- SectionSchema,
3
- StackViewType
4
- } from "../chunk-CD32XYEB.mjs";
1
+ // src/types/stack.ts
2
+ import * as Schema from "effect/Schema";
3
+ import { Type } from "@dxos/echo";
4
+ var SectionSchema = Schema.Struct({
5
+ height: Schema.optional(Schema.Number),
6
+ // Space for data that isn't stack-specific but is specific to this view instance.
7
+ // e.g. cover/fill for an image
8
+ custom: Schema.optional(Schema.Record({
9
+ key: Schema.String,
10
+ value: Schema.Any
11
+ }))
12
+ });
13
+ var StackViewType = Schema.Struct({
14
+ sections: Schema.Record({
15
+ key: Schema.String,
16
+ value: SectionSchema
17
+ })
18
+ }).pipe(Type.object({
19
+ typename: "org.dxos.type.stackView",
20
+ version: "0.1.0"
21
+ }));
5
22
  export {
6
23
  SectionSchema,
7
24
  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,56 +1,31 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- StackViewType
4
- } from "./chunk-26XWE7UY.mjs";
5
- import {
6
- SECTION_IDENTIFIER,
7
- meta
8
- } from "./chunk-HEEGXPSW.mjs";
2
+
3
+ // src/meta.ts
4
+ import { trim } from "@dxos/util";
5
+ var SECTION_IDENTIFIER = "org.dxos.type.stackSection";
6
+ var meta = {
7
+ id: "org.dxos.plugin.stack",
8
+ // TODO(wittjosiah): Prevents "stacks" language from being exposed to users in settings panel.
9
+ // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.
10
+ name: "Collections",
11
+ description: trim`
12
+ Organize and view curated collections of workspace objects in customizable layouts.
13
+ Group related items together and manage collections with sections and filtering.
14
+ `,
15
+ icon: "ph--stack-simple--regular",
16
+ source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack"
17
+ };
9
18
 
10
19
  // src/StackPlugin.ts
11
20
  import { Plugin } from "@dxos/app-framework";
12
21
  import { AppPlugin } from "@dxos/app-toolkit";
13
-
14
- // src/capabilities/react-surface/index.ts
15
- import { Capability } from "@dxos/app-framework";
16
- var ReactSurface = Capability.lazy("ReactSurface", () => import("./react-surface-SZETVRAZ.mjs"));
17
-
18
- // src/translations.ts
19
- import { translations as stackTranslations } from "@dxos/react-ui-stack";
20
- var translations = [
21
- {
22
- "en-US": {
23
- [meta.id]: {
24
- "plugin name": "Stacks",
25
- "settings title": "Stack plugin settings",
26
- "settings separation label": "Separate sections",
27
- "add section beforeAll dialog title": "Add a section to the start",
28
- "add section afterAll dialog title": "Add a section to the end",
29
- "add section before dialog title": "Add a section",
30
- "add section after dialog title": "Add a section",
31
- "add section input placeholder": "Find the type of section to add",
32
- "upload file label": "Add file",
33
- "add section label": "Add section",
34
- "empty stack message": "Drag objects into the stack.",
35
- "remove section label": "Delete",
36
- "navigate to section label": "Navigate to object",
37
- "untitled section title": "Untitled section",
38
- "add section before label": "Add before",
39
- "add section after label": "Add after",
40
- "expand label": "Expand",
41
- "collapse label": "Collapse",
42
- "open chat thread label": "Open chat thread",
43
- "drag handle label": "Press space or enter to begin dragging this object."
44
- }
45
- }
46
- },
47
- ...stackTranslations
48
- ];
49
-
50
- // src/StackPlugin.ts
51
- var StackPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
22
+ import { ReactSurface } from "#capabilities";
23
+ import { SECTION_IDENTIFIER as SECTION_IDENTIFIER2, meta as meta2 } from "#meta";
24
+ import { translations } from "#translations";
25
+ import { StackViewType } from "#types";
26
+ var StackPlugin = Plugin.define(meta2).pipe(AppPlugin.addMetadataModule({
52
27
  metadata: {
53
- id: SECTION_IDENTIFIER,
28
+ id: SECTION_IDENTIFIER2,
54
29
  metadata: {
55
30
  parse: (section, type) => {
56
31
  switch (type) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/StackPlugin.ts", "../../../src/capabilities/react-surface/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type Obj } from '@dxos/echo';\n\nimport { ReactSurface } from './capabilities';\nimport { SECTION_IDENTIFIER, meta } from './meta';\nimport { translations } from './translations';\nimport { StackViewType } from './types';\n\nexport const StackPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: SECTION_IDENTIFIER,\n metadata: {\n parse: (section: { object: Obj.Unknown }, type: string) => {\n switch (type) {\n case 'node':\n return { id: section.object.id, label: (section.object as any).title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [StackViewType] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as stackTranslations } from '@dxos/react-ui-stack';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin name': 'Stacks',\n 'settings title': 'Stack plugin settings',\n 'settings separation label': 'Separate sections',\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": ";;;;;;;;;;AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;;;ACD1B,SAASC,kBAAkB;AAEpB,IAAMC,eAAeC,WAAWC,KAAK,gBAAgB,MAAM,OAAO,8BAAA,CAAA;;;ACDzE,SAASC,gBAAgBC,yBAAyB;AAI3C,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,6BAA6B;QAC7B,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;KACGC;;;;AFvBE,IAAMC,cAAcC,OAAOC,OAAOC,IAAAA,EAAMC,KAC7CC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC;IACJF,UAAU;MACRG,OAAO,CAACC,SAAkCC,SAAAA;AACxC,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEJ,IAAIG,QAAQE,OAAOL;cAAIM,OAAQH,QAAQE,OAAeE;cAAOC,MAAML,QAAQE;YAAO;UAC7F,KAAK;AACH,mBAAOF,QAAQE;UACjB,KAAK;AACH,mBAAOF;QACX;MACF;IACF;EACF;AACF,CAAA,GACAN,UAAUY,gBAAgB;EAAEC,QAAQ;IAACC;;AAAe,CAAA,GACpDd,UAAUe,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpDjB,UAAUkB,sBAAsB;EAAEC;AAAa,CAAA,GAC/CvB,OAAOwB,IAAI;",
6
- "names": ["Plugin", "AppPlugin", "Capability", "ReactSurface", "Capability", "lazy", "translations", "stackTranslations", "translations", "meta", "id", "stackTranslations", "StackPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "SECTION_IDENTIFIER", "parse", "section", "type", "object", "label", "title", "data", "addSchemaModule", "schema", "StackViewType", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations", "make"]
3
+ "sources": ["../../../src/meta.ts", "../../../src/StackPlugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const SECTION_IDENTIFIER = 'org.dxos.type.stackSection';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.stack',\n // TODO(wittjosiah): Prevents \"stacks\" language from being exposed to users in settings panel.\n // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.\n name: 'Collections',\n description: trim`\n Organize and view curated collections of workspace objects in customizable layouts.\n Group related items together and manage collections with sections and filtering.\n `,\n icon: 'ph--stack-simple--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack',\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type Obj } from '@dxos/echo';\n\nimport { ReactSurface } from '#capabilities';\nimport { SECTION_IDENTIFIER, meta } from '#meta';\nimport { translations } from '#translations';\nimport { StackViewType } from '#types';\n\nexport const StackPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: SECTION_IDENTIFIER,\n metadata: {\n parse: (section: { object: Obj.Unknown }, type: string) => {\n switch (type) {\n case 'node':\n return { id: section.object.id, label: (section.object as any).title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [StackViewType] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n"],
5
+ "mappings": ";;;AAKA,SAASA,YAAY;AAEd,IAAMC,qBAAqB;AAE3B,IAAMC,OAAoB;EAC/BC,IAAI;;;EAGJC,MAAM;EACNC,aAAaL;;;;EAIbM,MAAM;EACNC,QAAQ;AACV;;;AChBA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,oBAAoB;AAC7B,SAASC,sBAAAA,qBAAoBC,QAAAA,aAAY;AACzC,SAASC,oBAAoB;AAC7B,SAASC,qBAAqB;AAEvB,IAAMC,cAAcP,OAAOQ,OAAOJ,KAAAA,EAAMK,KAC7CR,UAAUS,kBAAkB;EAC1BC,UAAU;IACRC,IAAIT;IACJQ,UAAU;MACRE,OAAO,CAACC,SAAkCC,SAAAA;AACxC,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEH,IAAIE,QAAQE,OAAOJ;cAAIK,OAAQH,QAAQE,OAAeE;cAAOC,MAAML,QAAQE;YAAO;UAC7F,KAAK;AACH,mBAAOF,QAAQE;UACjB,KAAK;AACH,mBAAOF;QACX;MACF;IACF;EACF;AACF,CAAA,GACAb,UAAUmB,gBAAgB;EAAEC,QAAQ;IAACf;;AAAe,CAAA,GACpDL,UAAUqB,iBAAiB;EAAEC,UAAUrB;AAAa,CAAA,GACpDD,UAAUuB,sBAAsB;EAAEnB;AAAa,CAAA,GAC/CL,OAAOyB,IAAI;",
6
+ "names": ["trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "icon", "source", "Plugin", "AppPlugin", "ReactSurface", "SECTION_IDENTIFIER", "meta", "translations", "StackViewType", "StackPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "parse", "section", "type", "object", "label", "title", "data", "addSchemaModule", "schema", "addSurfaceModule", "activate", "addTranslationsModule", "make"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":2522,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/StackContext.tsx":{"bytes":1834,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/CaretDownUp.tsx":{"bytes":2962,"imports":[{"path":"react","kind":"import-statement","external":true}],"format":"esm"},"src/components/StackSection.tsx":{"bytes":17327,"imports":[{"path":"@radix-ui/react-collapsible","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"src/components/CaretDownUp.tsx","kind":"import-statement","original":"./CaretDownUp"},{"path":"src/components/StackContext.tsx","kind":"import-statement","original":"./StackContext"}],"format":"esm"},"src/components/StackSettings.tsx":{"bytes":3224,"imports":[{"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/index.ts":{"bytes":684,"imports":[{"path":"src/components/StackContext.tsx","kind":"import-statement","original":"./StackContext"},{"path":"src/components/StackSection.tsx","kind":"import-statement","original":"./StackSection"},{"path":"src/components/StackSettings.tsx","kind":"import-statement","original":"./StackSettings"}],"format":"esm"},"src/containers/StackContainer/StackContainer.tsx":{"bytes":19926,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-atom","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","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/components/index.ts","kind":"import-statement","original":"../../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/containers/StackContainer/index.ts":{"bytes":676,"imports":[{"path":"src/containers/StackContainer/StackContainer.tsx","kind":"import-statement","original":"./StackContainer"}],"format":"esm"},"src/containers/index.ts":{"bytes":809,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"src/containers/StackContainer/index.ts","kind":"dynamic-import","original":"./StackContainer"}],"format":"esm"},"src/capabilities/react-surface/react-surface.tsx":{"bytes":4498,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"src/containers/index.ts","kind":"import-statement","original":"../../containers"},{"path":"src/meta.ts","kind":"import-statement","original":"../../meta"}],"format":"esm"},"src/capabilities/react-surface/index.ts":{"bytes":909,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/react-surface/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":486,"imports":[{"path":"src/capabilities/react-surface/index.ts","kind":"import-statement","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":4451,"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":3750,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","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":4334,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/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":4450},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-26XWE7UY.mjs","kind":"import-statement"},{"path":"dist/lib/node-esm/chunk-HEEGXPSW.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/react-surface-SZETVRAZ.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":797},"src/capabilities/react-surface/index.ts":{"bytesInOutput":148},"src/capabilities/index.ts":{"bytesInOutput":0},"src/translations.ts":{"bytesInOutput":1274}},"bytes":2641},"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-26XWE7UY.mjs","kind":"import-statement"}],"exports":["SectionSchema","StackViewType"],"entryPoint":"src/types/index.ts","inputs":{},"bytes":246},"dist/lib/node-esm/chunk-26XWE7UY.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1763},"dist/lib/node-esm/chunk-26XWE7UY.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"inputs":{"src/types/stack.ts":{"bytesInOutput":575},"src/types/index.ts":{"bytesInOutput":0}},"bytes":780},"dist/lib/node-esm/StackContainer-7XVJHW4D.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":23641},"dist/lib/node-esm/StackContainer-7XVJHW4D.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HEEGXPSW.mjs","kind":"import-statement"},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo-atom","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","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":"@radix-ui/react-collapsible","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-attention","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","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}],"exports":["default"],"entryPoint":"src/containers/StackContainer/index.ts","inputs":{"src/containers/StackContainer/StackContainer.tsx":{"bytesInOutput":4379},"src/components/StackContext.tsx":{"bytesInOutput":265},"src/components/index.ts":{"bytesInOutput":0},"src/components/StackSection.tsx":{"bytesInOutput":5062},"src/components/CaretDownUp.tsx":{"bytesInOutput":771},"src/components/StackSettings.tsx":{"bytesInOutput":151},"src/containers/StackContainer/index.ts":{"bytesInOutput":45}},"bytes":11242},"dist/lib/node-esm/react-surface-SZETVRAZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2586},"dist/lib/node-esm/react-surface-SZETVRAZ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-HEEGXPSW.mjs","kind":"import-statement"},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/ui","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/StackContainer-7XVJHW4D.mjs","kind":"dynamic-import"}],"exports":["default"],"entryPoint":"src/capabilities/react-surface/react-surface.tsx","inputs":{"src/capabilities/react-surface/react-surface.tsx":{"bytesInOutput":790},"src/containers/index.ts":{"bytesInOutput":104}},"bytes":1266},"dist/lib/node-esm/chunk-HEEGXPSW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1167},"dist/lib/node-esm/chunk-HEEGXPSW.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["SECTION_IDENTIFIER","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":695}},"bytes":889}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":2443,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4240,"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":463,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StackPlugin.ts","kind":"import-statement","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":3249},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["SECTION_IDENTIFIER","StackPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":695},"src/index.ts":{"bytesInOutput":0},"src/StackPlugin.ts":{"bytesInOutput":1013}},"bytes":1930},"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}}}
@@ -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-26XWE7UY.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,3 @@
1
- export * from './react-surface';
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":"AAIA,cAAc,iBAAiB,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"}
@@ -0,0 +1 @@
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"}