@dxos/plugin-stack 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934

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 (75) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/neutral/StackArticle-3FE52PUH.mjs +126 -0
  4. package/dist/lib/neutral/StackArticle-3FE52PUH.mjs.map +7 -0
  5. package/dist/lib/neutral/StackPlugin.mjs +22 -0
  6. package/dist/lib/neutral/StackPlugin.mjs.map +7 -0
  7. package/dist/lib/neutral/capabilities/index.mjs +7 -0
  8. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  9. package/dist/lib/neutral/chunk-3ISQZKGO.mjs +21 -0
  10. package/dist/lib/neutral/chunk-3ISQZKGO.mjs.map +7 -0
  11. package/dist/lib/{browser/types/index.mjs → neutral/chunk-IPU3C6TT.mjs} +2 -1
  12. package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-IPU3C6TT.mjs.map} +3 -3
  13. package/dist/lib/neutral/components/index.mjs +182 -0
  14. package/dist/lib/neutral/components/index.mjs.map +7 -0
  15. package/dist/lib/neutral/containers/index.mjs +7 -0
  16. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  17. package/dist/lib/neutral/index.mjs +15 -0
  18. package/dist/lib/neutral/index.mjs.map +7 -0
  19. package/dist/lib/neutral/meta.json +1 -0
  20. package/dist/lib/neutral/meta.mjs +9 -0
  21. package/dist/lib/neutral/meta.mjs.map +7 -0
  22. package/dist/lib/neutral/plugin.mjs +11 -0
  23. package/dist/lib/neutral/plugin.mjs.map +7 -0
  24. package/dist/lib/neutral/react-surface-MD3CVY2N.mjs +23 -0
  25. package/dist/lib/neutral/react-surface-MD3CVY2N.mjs.map +7 -0
  26. package/dist/lib/neutral/translations.mjs +37 -0
  27. package/dist/lib/neutral/translations.mjs.map +7 -0
  28. package/dist/lib/neutral/types/index.mjs +9 -0
  29. package/dist/lib/neutral/types/index.mjs.map +7 -0
  30. package/dist/types/src/StackPlugin.d.ts +1 -0
  31. package/dist/types/src/StackPlugin.d.ts.map +1 -1
  32. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  33. package/dist/types/src/components/StackSection/CaretDownUp.d.ts +1 -1
  34. package/dist/types/src/components/StackSection/CaretDownUp.d.ts.map +1 -1
  35. package/dist/types/src/components/StackSection/StackSection.d.ts.map +1 -1
  36. package/dist/types/src/components/StackSettings/StackSettings.d.ts.map +1 -1
  37. package/dist/types/src/containers/StackArticle/StackArticle.d.ts +7 -0
  38. package/dist/types/src/containers/StackArticle/StackArticle.d.ts.map +1 -0
  39. package/dist/types/src/containers/StackArticle/index.d.ts +2 -0
  40. package/dist/types/src/containers/StackArticle/index.d.ts.map +1 -0
  41. package/dist/types/src/containers/index.d.ts +1 -1
  42. package/dist/types/src/containers/index.d.ts.map +1 -1
  43. package/dist/types/src/index.d.ts +1 -1
  44. package/dist/types/src/index.d.ts.map +1 -1
  45. package/dist/types/src/plugin.d.ts +3 -0
  46. package/dist/types/src/plugin.d.ts.map +1 -0
  47. package/dist/types/src/translations.d.ts +30 -31
  48. package/dist/types/src/translations.d.ts.map +1 -1
  49. package/dist/types/src/types/types.d.ts +1 -2
  50. package/dist/types/src/types/types.d.ts.map +1 -1
  51. package/dist/types/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +74 -47
  53. package/src/StackPlugin.ts +4 -21
  54. package/src/capabilities/react-surface.tsx +3 -4
  55. package/src/components/StackSection/StackSection.tsx +2 -1
  56. package/src/containers/{StackContainer/StackContainer.tsx → StackArticle/StackArticle.tsx} +9 -10
  57. package/src/containers/StackArticle/index.ts +5 -0
  58. package/src/containers/index.ts +1 -1
  59. package/src/index.ts +1 -1
  60. package/src/plugin.ts +9 -0
  61. package/src/translations.ts +1 -1
  62. package/src/types/types.ts +1 -2
  63. package/dist/lib/browser/index.mjs +0 -93
  64. package/dist/lib/browser/index.mjs.map +0 -7
  65. package/dist/lib/browser/meta.json +0 -1
  66. package/dist/lib/node-esm/index.mjs +0 -95
  67. package/dist/lib/node-esm/index.mjs.map +0 -7
  68. package/dist/lib/node-esm/meta.json +0 -1
  69. package/dist/lib/node-esm/types/index.mjs +0 -28
  70. package/dist/lib/node-esm/types/index.mjs.map +0 -7
  71. package/dist/types/src/containers/StackContainer/StackContainer.d.ts +0 -7
  72. package/dist/types/src/containers/StackContainer/StackContainer.d.ts.map +0 -1
  73. package/dist/types/src/containers/StackContainer/index.d.ts +0 -2
  74. package/dist/types/src/containers/StackContainer/index.d.ts.map +0 -1
  75. package/src/containers/StackContainer/index.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-stack",
3
- "version": "0.8.4-main.74a063c4e0",
3
+ "version": "0.8.4-main.765dc60934",
4
4
  "description": "DXOS Surface plugin for Stack entities",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -8,39 +8,65 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/dxos/dxos"
10
10
  },
11
- "license": "MIT",
11
+ "license": "FSL-1.1-Apache-2.0",
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
15
  "imports": {
16
- "#capabilities": "./src/capabilities/index.ts",
17
- "#components": "./src/components/index.ts",
18
- "#containers": "./src/containers/index.ts",
19
- "#meta": "./src/meta.ts",
20
- "#types": "./src/types/index.ts"
16
+ "#capabilities": {
17
+ "source": "./src/capabilities/index.ts",
18
+ "types": "./dist/types/src/capabilities/index.d.ts",
19
+ "default": "./dist/lib/neutral/capabilities/index.mjs"
20
+ },
21
+ "#components": {
22
+ "source": "./src/components/index.ts",
23
+ "types": "./dist/types/src/components/index.d.ts",
24
+ "default": "./dist/lib/neutral/components/index.mjs"
25
+ },
26
+ "#containers": {
27
+ "source": "./src/containers/index.ts",
28
+ "types": "./dist/types/src/containers/index.d.ts",
29
+ "default": "./dist/lib/neutral/containers/index.mjs"
30
+ },
31
+ "#meta": {
32
+ "source": "./src/meta.ts",
33
+ "types": "./dist/types/src/meta.d.ts",
34
+ "default": "./dist/lib/neutral/meta.mjs"
35
+ },
36
+ "#plugin": {
37
+ "source": "./src/StackPlugin.ts",
38
+ "types": "./dist/types/src/StackPlugin.d.ts",
39
+ "default": "./dist/lib/neutral/StackPlugin.mjs"
40
+ },
41
+ "#translations": {
42
+ "source": "./src/translations.ts",
43
+ "types": "./dist/types/src/translations.d.ts",
44
+ "default": "./dist/lib/neutral/translations.mjs"
45
+ },
46
+ "#types": {
47
+ "source": "./src/types/index.ts",
48
+ "types": "./dist/types/src/types/index.d.ts",
49
+ "default": "./dist/lib/neutral/types/index.mjs"
50
+ }
21
51
  },
22
52
  "exports": {
23
53
  ".": {
24
54
  "source": "./src/index.ts",
25
55
  "types": "./dist/types/src/index.d.ts",
26
- "browser": "./dist/lib/browser/index.mjs",
27
- "node": "./dist/lib/node-esm/index.mjs"
56
+ "default": "./dist/lib/neutral/index.mjs"
28
57
  },
29
- "./types": {
30
- "source": "./src/types/index.ts",
31
- "types": "./dist/types/src/types/index.d.ts",
32
- "browser": "./dist/lib/browser/types/index.mjs",
33
- "node": "./dist/lib/node-esm/types/index.mjs"
58
+ "./plugin": {
59
+ "source": "./src/plugin.ts",
60
+ "types": "./dist/types/src/plugin.d.ts",
61
+ "default": "./dist/lib/neutral/plugin.mjs"
62
+ },
63
+ "./translations": {
64
+ "source": "./src/translations.ts",
65
+ "types": "./dist/types/src/translations.d.ts",
66
+ "default": "./dist/lib/neutral/translations.mjs"
34
67
  }
35
68
  },
36
69
  "types": "dist/types/src/index.d.ts",
37
- "typesVersions": {
38
- "*": {
39
- "types": [
40
- "dist/types/src/types/index.d.ts"
41
- ]
42
- }
43
- },
44
70
  "files": [
45
71
  "dist",
46
72
  "src"
@@ -52,26 +78,26 @@
52
78
  "effect": "3.20.0",
53
79
  "node-fetch": "^2.6.0",
54
80
  "react-is": "~19.2.0",
55
- "@dxos/app-framework": "0.8.4-main.74a063c4e0",
56
- "@dxos/async": "0.8.4-main.74a063c4e0",
57
- "@dxos/client": "0.8.4-main.74a063c4e0",
58
- "@dxos/echo": "0.8.4-main.74a063c4e0",
59
- "@dxos/app-toolkit": "0.8.4-main.74a063c4e0",
60
- "@dxos/invariant": "0.8.4-main.74a063c4e0",
61
- "@dxos/operation": "0.8.4-main.74a063c4e0",
62
- "@dxos/plugin-client": "0.8.4-main.74a063c4e0",
63
- "@dxos/plugin-graph": "0.8.4-main.74a063c4e0",
64
- "@dxos/plugin-deck": "0.8.4-main.74a063c4e0",
65
- "@dxos/echo-atom": "0.8.4-main.74a063c4e0",
66
- "@dxos/plugin-space": "0.8.4-main.74a063c4e0",
67
- "@dxos/react-client": "0.8.4-main.74a063c4e0",
68
- "@dxos/react-ui-attention": "0.8.4-main.74a063c4e0",
69
- "@dxos/react-ui-form": "0.8.4-main.74a063c4e0",
70
- "@dxos/react-ui-search": "0.8.4-main.74a063c4e0",
71
- "@dxos/react-ui-stack": "0.8.4-main.74a063c4e0",
72
- "@dxos/schema": "0.8.4-main.74a063c4e0",
73
- "@dxos/util": "0.8.4-main.74a063c4e0",
74
- "@dxos/types": "0.8.4-main.74a063c4e0"
81
+ "@dxos/app-framework": "0.8.4-main.765dc60934",
82
+ "@dxos/async": "0.8.4-main.765dc60934",
83
+ "@dxos/app-toolkit": "0.8.4-main.765dc60934",
84
+ "@dxos/client": "0.8.4-main.765dc60934",
85
+ "@dxos/echo": "0.8.4-main.765dc60934",
86
+ "@dxos/invariant": "0.8.4-main.765dc60934",
87
+ "@dxos/echo-atom": "0.8.4-main.765dc60934",
88
+ "@dxos/operation": "0.8.4-main.765dc60934",
89
+ "@dxos/plugin-client": "0.8.4-main.765dc60934",
90
+ "@dxos/plugin-deck": "0.8.4-main.765dc60934",
91
+ "@dxos/plugin-graph": "0.8.4-main.765dc60934",
92
+ "@dxos/plugin-space": "0.8.4-main.765dc60934",
93
+ "@dxos/react-client": "0.8.4-main.765dc60934",
94
+ "@dxos/react-ui-attention": "0.8.4-main.765dc60934",
95
+ "@dxos/react-ui-form": "0.8.4-main.765dc60934",
96
+ "@dxos/react-ui-list": "0.8.4-main.765dc60934",
97
+ "@dxos/react-ui-stack": "0.8.4-main.765dc60934",
98
+ "@dxos/schema": "0.8.4-main.765dc60934",
99
+ "@dxos/types": "0.8.4-main.765dc60934",
100
+ "@dxos/util": "0.8.4-main.765dc60934"
75
101
  },
76
102
  "devDependencies": {
77
103
  "@babel/core": "^7.18.13",
@@ -79,18 +105,19 @@
79
105
  "@types/react-dom": "~19.2.3",
80
106
  "react": "~19.2.3",
81
107
  "react-dom": "~19.2.3",
82
- "vite": "^7.1.11",
83
- "@dxos/storybook-utils": "0.8.4-main.74a063c4e0",
84
- "@dxos/react-ui": "0.8.4-main.74a063c4e0",
85
- "@dxos/ui-theme": "0.8.4-main.74a063c4e0"
108
+ "vite": "^8.0.13",
109
+ "@dxos/plugin-testing": "0.8.4-main.765dc60934",
110
+ "@dxos/storybook-utils": "0.8.4-main.765dc60934",
111
+ "@dxos/react-ui": "0.8.4-main.765dc60934",
112
+ "@dxos/ui-theme": "0.8.4-main.765dc60934"
86
113
  },
87
114
  "peerDependencies": {
88
115
  "@effect-atom/atom-react": "^0.5.0",
89
116
  "effect": "3.20.0",
90
117
  "react": "~19.2.3",
91
118
  "react-dom": "~19.2.3",
92
- "@dxos/react-ui": "0.8.4-main.74a063c4e0",
93
- "@dxos/ui-theme": "0.8.4-main.74a063c4e0"
119
+ "@dxos/react-ui": "0.8.4-main.765dc60934",
120
+ "@dxos/ui-theme": "0.8.4-main.765dc60934"
94
121
  },
95
122
  "publishConfig": {
96
123
  "access": "public"
@@ -4,34 +4,17 @@
4
4
 
5
5
  import { Plugin } from '@dxos/app-framework';
6
6
  import { AppPlugin } from '@dxos/app-toolkit';
7
- import { type Obj } from '@dxos/echo';
8
7
 
9
8
  import { ReactSurface } from '#capabilities';
10
- import { SECTION_IDENTIFIER, meta } from '#meta';
9
+ import { meta } from '#meta';
10
+ import { translations } from '#translations';
11
11
  import { StackViewType } from '#types';
12
12
 
13
- import { translations } from './translations';
14
-
15
13
  export const StackPlugin = Plugin.define(meta).pipe(
16
- AppPlugin.addMetadataModule({
17
- metadata: {
18
- id: SECTION_IDENTIFIER,
19
- metadata: {
20
- parse: (section: { object: Obj.Unknown }, type: string) => {
21
- switch (type) {
22
- case 'node':
23
- return { id: section.object.id, label: (section.object as any).title, data: section.object };
24
- case 'object':
25
- return section.object;
26
- case 'view-object':
27
- return section;
28
- }
29
- },
30
- },
31
- },
32
- }),
33
14
  AppPlugin.addSchemaModule({ schema: [StackViewType] }),
34
15
  AppPlugin.addSurfaceModule({ activate: ReactSurface }),
35
16
  AppPlugin.addTranslationsModule({ translations }),
36
17
  Plugin.make,
37
18
  );
19
+
20
+ export default StackPlugin;
@@ -10,7 +10,7 @@ import { Surface } from '@dxos/app-framework/ui';
10
10
  import { AppSurface } from '@dxos/app-toolkit/ui';
11
11
  import { Collection } from '@dxos/echo';
12
12
 
13
- import { StackContainer } from '#containers';
13
+ import { StackArticle } from '#containers';
14
14
 
15
15
  export default Capability.makeModule(() =>
16
16
  Effect.succeed(
@@ -18,10 +18,9 @@ export default Capability.makeModule(() =>
18
18
  Capabilities.ReactSurface,
19
19
  Surface.create({
20
20
  id: 'article',
21
- role: 'article',
22
- filter: AppSurface.objectArticle(Collection.Collection),
21
+ filter: AppSurface.object(AppSurface.Article, Collection.Collection),
23
22
  component: ({ role, data }) => {
24
- return <StackContainer attendableId={data.attendableId} role={role} subject={data.subject} />;
23
+ return <StackArticle attendableId={data.attendableId} role={role} subject={data.subject} />;
25
24
  },
26
25
  }),
27
26
  ),
@@ -6,6 +6,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
6
6
  import React, { useMemo, useState } from 'react';
7
7
 
8
8
  import { Surface } from '@dxos/app-framework/ui';
9
+ import { AppSurface } from '@dxos/app-toolkit/ui';
9
10
  import { DropdownMenu, Icon, IconButton, useTranslation } from '@dxos/react-ui';
10
11
  import { useAttentionAttributes } from '@dxos/react-ui-attention';
11
12
  import { StackItem } from '@dxos/react-ui-stack';
@@ -109,7 +110,7 @@ export const StackSection = ({
109
110
  </StackItem.HeadingStickyContent>
110
111
  </StackItem.Heading>
111
112
  <CollapsiblePrimitive.Content>
112
- <Surface.Surface role='section' data={data} limit={1} placeholder={<></>} />
113
+ <Surface.Surface type={AppSurface.Section} data={data} limit={1} placeholder={<></>} />
113
114
  </CollapsiblePrimitive.Content>
114
115
  {view.collapsed && (
115
116
  <StackItem.Content classNames='dx-attention-surface'>
@@ -6,14 +6,13 @@ import { Atom, useAtomValue } from '@effect-atom/atom-react';
6
6
  import * as Option from 'effect/Option';
7
7
  import React, { useCallback, useState } from 'react';
8
8
 
9
- import { useCapabilities, useOperationInvoker } from '@dxos/app-framework/ui';
10
- import { AppCapabilities, LayoutOperation } from '@dxos/app-toolkit';
9
+ import { useOperationInvoker } from '@dxos/app-framework/ui';
10
+ import { LayoutOperation } from '@dxos/app-toolkit';
11
11
  import { useAppGraph, type AppSurface } from '@dxos/app-toolkit/ui';
12
- import { Obj, type Ref } from '@dxos/echo';
13
- import { type Collection } from '@dxos/echo';
12
+ import { Annotation, type Collection, Obj, type Ref } from '@dxos/echo';
14
13
  import { AtomObj } from '@dxos/echo-atom';
15
14
  import { Graph } from '@dxos/plugin-graph';
16
- import { SpaceOperation } from '@dxos/plugin-space/operations';
15
+ import { SpaceOperation } from '@dxos/plugin-space';
17
16
  import { Toolbar, toLocalizedString, useTranslation } from '@dxos/react-ui';
18
17
  import { Stack, StackItem } from '@dxos/react-ui-stack';
19
18
  import { isNonNullable } from '@dxos/util';
@@ -40,13 +39,12 @@ const collectionObjectsFamily = Atom.family((collection: Collection.Collection)
40
39
  }),
41
40
  );
42
41
 
43
- type StackContainerProps = AppSurface.ObjectArticleProps<Collection.Collection>;
42
+ type StackArticleProps = AppSurface.ObjectArticleProps<Collection.Collection>;
44
43
 
45
- export const StackContainer = ({ attendableId, subject: collection }: StackContainerProps) => {
44
+ export const StackArticle = ({ attendableId, subject: collection }: StackArticleProps) => {
46
45
  const { invokePromise } = useOperationInvoker();
47
46
  const { graph } = useAppGraph();
48
47
  const { t } = useTranslation(meta.id);
49
- const allMetadata = useCapabilities(AppCapabilities.Metadata);
50
48
  const [collapsedSections, setCollapsedSections] = useState<CollapsedSections>({});
51
49
 
52
50
  // TODO(wittjosiah): Re-implement stack views with relations.
@@ -60,8 +58,9 @@ export const StackContainer = ({ attendableId, subject: collection }: StackConta
60
58
 
61
59
  const collectionObjects = useAtomValue(collectionObjectsFamily(collection));
62
60
  const items = collectionObjects.map((object: Obj.Unknown) => {
63
- const metadata = allMetadata.find((m) => m.id === (Obj.getTypename(object) ?? 'never'))
64
- ?.metadata as StackSectionMetadata;
61
+ const schema = Obj.getSchema(object);
62
+ const iconAnnotation = schema ? Option.getOrUndefined(Annotation.IconAnnotation.get(schema)) : undefined;
63
+ const metadata: StackSectionMetadata = { icon: iconAnnotation?.icon };
65
64
  const view = {
66
65
  // ...stack.sections[object.id],
67
66
  collapsed: collapsedSections[Obj.getDXN(object).toString()],
@@ -0,0 +1,5 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ export { StackArticle as default } from './StackArticle';
@@ -4,4 +4,4 @@
4
4
 
5
5
  import { type ComponentType, lazy } from 'react';
6
6
 
7
- export const StackContainer: ComponentType<any> = lazy(() => import('./StackContainer'));
7
+ export const StackArticle: ComponentType<any> = lazy(() => import('./StackArticle'));
package/src/index.ts CHANGED
@@ -3,4 +3,4 @@
3
3
  //
4
4
 
5
5
  export * from './meta';
6
- export * from './StackPlugin';
6
+ export * from './types';
package/src/plugin.ts ADDED
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright 2023 DXOS.org
3
+ //
4
+
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const StackPlugin = Plugin.lazy(meta, () => import('#plugin'));
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { type Resource } from '@dxos/react-ui';
6
- import { translations as stackTranslations } from '@dxos/react-ui-stack';
6
+ import { translations as stackTranslations } from '@dxos/react-ui-stack/translations';
7
7
 
8
8
  import { meta } from '#meta';
9
9
 
@@ -4,8 +4,7 @@
4
4
 
5
5
  import { type FC } from 'react';
6
6
 
7
- import { type Obj } from '@dxos/echo';
8
- import { type Collection } from '@dxos/echo';
7
+ import { type Collection, type Obj } from '@dxos/echo';
9
8
  import { type Label } from '@dxos/react-ui';
10
9
  import { type StackItemSize } from '@dxos/react-ui-stack';
11
10
 
@@ -1,93 +0,0 @@
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
- };
16
-
17
- // src/StackPlugin.ts
18
- import { Plugin } from "@dxos/app-framework";
19
- import { AppPlugin } from "@dxos/app-toolkit";
20
- import { ReactSurface } from "#capabilities";
21
- import { SECTION_IDENTIFIER as SECTION_IDENTIFIER2, meta as meta3 } from "#meta";
22
- import { StackViewType } from "#types";
23
-
24
- // src/translations.ts
25
- import { translations as stackTranslations } from "@dxos/react-ui-stack";
26
- import { meta as meta2 } from "#meta";
27
- var translations = [
28
- {
29
- "en-US": {
30
- [meta2.id]: {
31
- "plugin.name": "Stacks",
32
- "settings.title": "Stack settings",
33
- "settings.separation.label": "Separate sections",
34
- "settings.separation.description": "Add visual dividers between sections in stacks.",
35
- "add-section-beforeAll-dialog.title": "Add a section to the start",
36
- "add-section-afterAll-dialog.title": "Add a section to the end",
37
- "add-section-before-dialog.title": "Add a section",
38
- "add-section-after-dialog.title": "Add a section",
39
- "add-section-input.placeholder": "Find the type of section to add",
40
- "upload-file.label": "Add file",
41
- "add-section.label": "Add section",
42
- "empty-stack.message": "Drag objects into the stack.",
43
- "remove-section.label": "Delete",
44
- "navigate-to-section.label": "Navigate to object",
45
- "untitled-section.title": "Untitled section",
46
- "add-section-before.label": "Add before",
47
- "add-section-after.label": "Add after",
48
- "expand.label": "Expand",
49
- "collapse.label": "Collapse",
50
- "open-chat-thread.label": "Open chat thread",
51
- "drag-handle.label": "Press space or enter to begin dragging this object."
52
- }
53
- }
54
- },
55
- ...stackTranslations
56
- ];
57
-
58
- // src/StackPlugin.ts
59
- var StackPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
60
- metadata: {
61
- id: SECTION_IDENTIFIER2,
62
- metadata: {
63
- parse: (section, type) => {
64
- switch (type) {
65
- case "node":
66
- return {
67
- id: section.object.id,
68
- label: section.object.title,
69
- data: section.object
70
- };
71
- case "object":
72
- return section.object;
73
- case "view-object":
74
- return section;
75
- }
76
- }
77
- }
78
- }
79
- }), AppPlugin.addSchemaModule({
80
- schema: [
81
- StackViewType
82
- ]
83
- }), AppPlugin.addSurfaceModule({
84
- activate: ReactSurface
85
- }), AppPlugin.addTranslationsModule({
86
- translations
87
- }), Plugin.make);
88
- export {
89
- SECTION_IDENTIFIER,
90
- StackPlugin,
91
- meta
92
- };
93
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts", "../../../src/StackPlugin.ts", "../../../src/translations.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 { StackViewType } from '#types';\n\nimport { translations } from './translations';\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 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 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,YAAY;AAEd,IAAMC,qBAAqB;AAE3B,IAAMC,OAAoB;EAC/BC,IAAI;;;EAGJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,QAAQ;AACV;;;AChBA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,oBAAoB;AAC7B,SAASC,sBAAAA,qBAAoBC,QAAAA,aAAY;AACzC,SAASC,qBAAqB;;;ACL9B,SAASC,gBAAgBC,yBAAyB;AAElD,SAASC,QAAAA,aAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,MAAKC,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;KACGC;;;;ADvBE,IAAMC,cAAcC,OAAOC,OAAOC,KAAAA,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": ["trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "trim", "icon", "source", "Plugin", "AppPlugin", "ReactSurface", "SECTION_IDENTIFIER", "meta", "StackViewType", "translations", "stackTranslations", "meta", "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"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/meta.ts":{"bytes":2522,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":4677,"imports":[{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4331,"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":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"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"},"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"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5417},"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":"#types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"#meta","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":967},"src/translations.ts":{"bytesInOutput":1401}},"bytes":3239},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1764},"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}}}
@@ -1,95 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
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
- };
18
-
19
- // src/StackPlugin.ts
20
- import { Plugin } from "@dxos/app-framework";
21
- import { AppPlugin } from "@dxos/app-toolkit";
22
- import { ReactSurface } from "#capabilities";
23
- import { SECTION_IDENTIFIER as SECTION_IDENTIFIER2, meta as meta3 } from "#meta";
24
- import { StackViewType } from "#types";
25
-
26
- // src/translations.ts
27
- import { translations as stackTranslations } from "@dxos/react-ui-stack";
28
- import { meta as meta2 } from "#meta";
29
- var translations = [
30
- {
31
- "en-US": {
32
- [meta2.id]: {
33
- "plugin.name": "Stacks",
34
- "settings.title": "Stack settings",
35
- "settings.separation.label": "Separate sections",
36
- "settings.separation.description": "Add visual dividers between sections in stacks.",
37
- "add-section-beforeAll-dialog.title": "Add a section to the start",
38
- "add-section-afterAll-dialog.title": "Add a section to the end",
39
- "add-section-before-dialog.title": "Add a section",
40
- "add-section-after-dialog.title": "Add a section",
41
- "add-section-input.placeholder": "Find the type of section to add",
42
- "upload-file.label": "Add file",
43
- "add-section.label": "Add section",
44
- "empty-stack.message": "Drag objects into the stack.",
45
- "remove-section.label": "Delete",
46
- "navigate-to-section.label": "Navigate to object",
47
- "untitled-section.title": "Untitled section",
48
- "add-section-before.label": "Add before",
49
- "add-section-after.label": "Add after",
50
- "expand.label": "Expand",
51
- "collapse.label": "Collapse",
52
- "open-chat-thread.label": "Open chat thread",
53
- "drag-handle.label": "Press space or enter to begin dragging this object."
54
- }
55
- }
56
- },
57
- ...stackTranslations
58
- ];
59
-
60
- // src/StackPlugin.ts
61
- var StackPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
62
- metadata: {
63
- id: SECTION_IDENTIFIER2,
64
- metadata: {
65
- parse: (section, type) => {
66
- switch (type) {
67
- case "node":
68
- return {
69
- id: section.object.id,
70
- label: section.object.title,
71
- data: section.object
72
- };
73
- case "object":
74
- return section.object;
75
- case "view-object":
76
- return section;
77
- }
78
- }
79
- }
80
- }
81
- }), AppPlugin.addSchemaModule({
82
- schema: [
83
- StackViewType
84
- ]
85
- }), AppPlugin.addSurfaceModule({
86
- activate: ReactSurface
87
- }), AppPlugin.addTranslationsModule({
88
- translations
89
- }), Plugin.make);
90
- export {
91
- SECTION_IDENTIFIER,
92
- StackPlugin,
93
- meta
94
- };
95
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts", "../../../src/StackPlugin.ts", "../../../src/translations.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 { StackViewType } from '#types';\n\nimport { translations } from './translations';\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 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 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,YAAY;AAEd,IAAMC,qBAAqB;AAE3B,IAAMC,OAAoB;EAC/BC,IAAI;;;EAGJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,QAAQ;AACV;;;AChBA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,oBAAoB;AAC7B,SAASC,sBAAAA,qBAAoBC,QAAAA,aAAY;AACzC,SAASC,qBAAqB;;;ACL9B,SAASC,gBAAgBC,yBAAyB;AAElD,SAASC,QAAAA,aAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,MAAKC,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;KACGC;;;;ADvBE,IAAMC,cAAcC,OAAOC,OAAOC,KAAAA,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": ["trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "trim", "icon", "source", "Plugin", "AppPlugin", "ReactSurface", "SECTION_IDENTIFIER", "meta", "StackViewType", "translations", "stackTranslations", "meta", "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"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/meta.ts":{"bytes":2522,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":4677,"imports":[{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4331,"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":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"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"},"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"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5419},"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":"#types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"#meta","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":967},"src/translations.ts":{"bytesInOutput":1401}},"bytes":3332},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1766},"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}}}
@@ -1,28 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
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
- }));
24
- export {
25
- SectionSchema,
26
- StackViewType
27
- };
28
- //# sourceMappingURL=index.mjs.map