@dxos/plugin-stack 0.10.0 → 0.11.0

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 (71) hide show
  1. package/dist/lib/StackPlugin.mjs +18 -0
  2. package/dist/lib/StackPlugin.mjs.map +1 -0
  3. package/dist/lib/capabilities.mjs +7 -0
  4. package/dist/lib/capabilities.mjs.map +1 -0
  5. package/dist/lib/chunk-StackArticle.mjs +155 -0
  6. package/dist/lib/chunk-StackArticle.mjs.map +1 -0
  7. package/dist/lib/{neutral/chunk-ZOIZTRMG.mjs → chunk-meta.mjs} +16 -23
  8. package/dist/lib/chunk-meta.mjs.map +1 -0
  9. package/dist/lib/chunk-react-surface.mjs +21 -0
  10. package/dist/lib/chunk-react-surface.mjs.map +1 -0
  11. package/dist/lib/chunk-types.mjs +21 -0
  12. package/dist/lib/chunk-types.mjs.map +1 -0
  13. package/dist/lib/components.mjs +242 -0
  14. package/dist/lib/components.mjs.map +1 -0
  15. package/dist/lib/containers.mjs +7 -0
  16. package/dist/lib/containers.mjs.map +1 -0
  17. package/dist/lib/index.mjs +3 -0
  18. package/dist/lib/meta.mjs +2 -0
  19. package/dist/lib/plugin.mjs +8 -0
  20. package/dist/lib/plugin.mjs.map +1 -0
  21. package/dist/lib/translations.mjs +31 -0
  22. package/dist/lib/translations.mjs.map +1 -0
  23. package/dist/lib/types.mjs +2 -0
  24. package/dist/types/src/capabilities/react-surface.d.ts +1 -1
  25. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  26. package/dist/types/src/components/Stack/Stack.d.ts +11 -4
  27. package/dist/types/src/components/Stack/Stack.d.ts.map +1 -1
  28. package/dist/types/src/components/Stack/StackContext.d.ts +6 -0
  29. package/dist/types/src/components/Stack/StackContext.d.ts.map +1 -0
  30. package/dist/types/src/components/Stack/index.d.ts +1 -0
  31. package/dist/types/src/components/Stack/index.d.ts.map +1 -1
  32. package/dist/types/src/containers/StackArticle/StackArticle.d.ts +4 -1
  33. package/dist/types/src/containers/StackArticle/StackArticle.d.ts.map +1 -1
  34. package/dist/types/src/containers/StackArticle/StackArticle.stories.d.ts.map +1 -1
  35. package/dist/types/tsconfig.tsbuildinfo +1 -1
  36. package/dx.config.ts +1 -0
  37. package/package.json +40 -37
  38. package/src/capabilities/{react-surface.tsx → react-surface.ts} +2 -4
  39. package/src/components/Stack/Stack.tsx +11 -27
  40. package/src/components/Stack/StackContext.ts +23 -0
  41. package/src/components/Stack/index.ts +2 -0
  42. package/src/containers/StackArticle/StackArticle.stories.tsx +14 -11
  43. package/src/containers/StackArticle/StackArticle.tsx +12 -6
  44. package/dist/lib/neutral/StackArticle-DDKRSUE7.mjs +0 -199
  45. package/dist/lib/neutral/StackArticle-DDKRSUE7.mjs.map +0 -7
  46. package/dist/lib/neutral/StackPlugin.mjs +0 -36
  47. package/dist/lib/neutral/StackPlugin.mjs.map +0 -7
  48. package/dist/lib/neutral/capabilities/index.mjs +0 -9
  49. package/dist/lib/neutral/capabilities/index.mjs.map +0 -7
  50. package/dist/lib/neutral/chunk-FDNICBZZ.mjs +0 -18
  51. package/dist/lib/neutral/chunk-FDNICBZZ.mjs.map +0 -7
  52. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +0 -10
  53. package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +0 -7
  54. package/dist/lib/neutral/chunk-ZOIZTRMG.mjs.map +0 -7
  55. package/dist/lib/neutral/components/index.mjs +0 -226
  56. package/dist/lib/neutral/components/index.mjs.map +0 -7
  57. package/dist/lib/neutral/containers/index.mjs +0 -9
  58. package/dist/lib/neutral/containers/index.mjs.map +0 -7
  59. package/dist/lib/neutral/index.mjs +0 -14
  60. package/dist/lib/neutral/index.mjs.map +0 -7
  61. package/dist/lib/neutral/meta.json +0 -1
  62. package/dist/lib/neutral/meta.mjs +0 -10
  63. package/dist/lib/neutral/meta.mjs.map +0 -7
  64. package/dist/lib/neutral/plugin.mjs +0 -12
  65. package/dist/lib/neutral/plugin.mjs.map +0 -7
  66. package/dist/lib/neutral/react-surface-IL4CW7ND.mjs +0 -25
  67. package/dist/lib/neutral/react-surface-IL4CW7ND.mjs.map +0 -7
  68. package/dist/lib/neutral/translations.mjs +0 -39
  69. package/dist/lib/neutral/translations.mjs.map +0 -7
  70. package/dist/lib/neutral/types/index.mjs +0 -8
  71. package/dist/lib/neutral/types/index.mjs.map +0 -7
@@ -1,12 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-ZOIZTRMG.mjs";
4
- import "./chunk-J5LGTIGS.mjs";
5
-
6
- // src/plugin.ts
7
- import { Plugin } from "@dxos/app-framework";
8
- var StackPlugin = Plugin.lazy(meta, () => import("#plugin"));
9
- export {
10
- StackPlugin
11
- };
12
- //# sourceMappingURL=plugin.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/plugin.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const StackPlugin = Plugin.lazy(meta, () => import('#plugin'));\n"],
5
- "mappings": ";;;;;;AAIA,SAASA,cAAc;AAIhB,IAAMC,cAAcC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
- "names": ["Plugin", "StackPlugin", "Plugin", "lazy", "meta"]
7
- }
@@ -1,25 +0,0 @@
1
- import "./chunk-J5LGTIGS.mjs";
2
-
3
- // src/capabilities/react-surface.tsx
4
- import * as Effect from "effect/Effect";
5
- import React from "react";
6
- import { Capabilities, Capability } from "@dxos/app-framework";
7
- import { Surface } from "@dxos/app-framework/ui";
8
- import { AppSurface } from "@dxos/app-toolkit/ui";
9
- import { Collection } from "@dxos/echo";
10
- import { StackArticle } from "#containers";
11
- var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, Surface.create({
12
- id: "article",
13
- filter: AppSurface.object(AppSurface.Article, Collection.Collection),
14
- component: ({ role, data }) => {
15
- return /* @__PURE__ */ React.createElement(StackArticle, {
16
- attendableId: data.attendableId,
17
- role,
18
- subject: data.subject
19
- });
20
- }
21
- }))));
22
- export {
23
- react_surface_default as default
24
- };
25
- //# sourceMappingURL=react-surface-IL4CW7ND.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport { Collection } from '@dxos/echo';\n\nimport { StackArticle } from '#containers';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'article',\n filter: AppSurface.object(AppSurface.Article, Collection.Collection),\n component: ({ role, data }) => {\n return <StackArticle attendableId={data.attendableId} role={role} subject={data.subject} />;\n },\n }),\n ),\n ),\n);\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,kBAAkB;AAC3B,SAASC,kBAAkB;AAE3B,SAASC,oBAAoB;AAE7B,IAAA,wBAAeJ,WAAWK,WAAW,MAC5BC,eACLN,WAAWO,YACTR,aAAaS,cACbP,QAAQQ,OAAO;EACbC,IAAI;EACJC,QAAQT,WAAWU,OAAOV,WAAWW,SAASV,WAAWA,UAAU;EACnEW,WAAW,CAAC,EAAEC,MAAMC,KAAI,MAAE;AACxB,WAAO,sBAAA,cAACZ,cAAAA;MAAaa,cAAcD,KAAKC;MAAcF;MAAYG,SAASF,KAAKE;;EAClF;AACF,CAAA,CAAA,CAAA,CAAA;",
6
- "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "AppSurface", "Collection", "StackArticle", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "filter", "object", "Article", "component", "role", "data", "attendableId", "subject"]
7
- }
@@ -1,39 +0,0 @@
1
- import "./chunk-J5LGTIGS.mjs";
2
-
3
- // src/translations.ts
4
- import { meta } from "#meta";
5
- var translations = [
6
- {
7
- "en-US": {
8
- [meta.profile.key]: {
9
- "plugin.name": "Stacks",
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
- "move-up.label": "Move up",
24
- "move-down.label": "Move down",
25
- "expand.label": "Expand",
26
- "collapse.label": "Collapse",
27
- "collapse-all.label": "Collapse all",
28
- "expand-all.label": "Expand all",
29
- "options.label": "Options",
30
- "open-chat-thread.label": "Open chat thread",
31
- "drag-handle.label": "Press space or enter to begin dragging this object."
32
- }
33
- }
34
- }
35
- ];
36
- export {
37
- translations
38
- };
39
- //# sourceMappingURL=translations.mjs.map
@@ -1,7 +0,0 @@
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';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.profile.key]: {\n 'plugin.name': 'Stacks',\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 'move-up.label': 'Move up',\n 'move-down.label': 'Move down',\n 'expand.label': 'Expand',\n 'collapse.label': 'Collapse',\n 'collapse-all.label': 'Collapse all',\n 'expand-all.label': 'Expand all',\n 'options.label': 'Options',\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] as const satisfies Resource[];\n"],
5
- "mappings": ";;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,QAAQC,GAAG,GAAG;QAClB,eAAe;QACf,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,iBAAiB;QACjB,mBAAmB;QACnB,gBAAgB;QAChB,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,iBAAiB;QACjB,0BAA0B;QAC1B,qBAAqB;MACvB;IACF;EACF;;",
6
- "names": ["meta", "translations", "profile", "key"]
7
- }
@@ -1,8 +0,0 @@
1
- import {
2
- Stack_exports
3
- } from "../chunk-FDNICBZZ.mjs";
4
- import "../chunk-J5LGTIGS.mjs";
5
- export {
6
- Stack_exports as Stack
7
- };
8
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }