@dxos/plugin-stack 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/StackPlugin-QWVPZHNO.mjs +42 -0
- package/dist/lib/browser/StackPlugin-QWVPZHNO.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -71
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +37 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs.map +2 -2
- package/dist/lib/node-esm/StackPlugin-5PFRZ364.mjs +44 -0
- package/dist/lib/node-esm/StackPlugin-5PFRZ364.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +5 -71
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +39 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs.map +2 -2
- package/dist/types/src/StackPlugin.d.ts +1 -0
- package/dist/types/src/StackPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/StackSection/CaretDownUp.d.ts +1 -1
- package/dist/types/src/components/StackSection/CaretDownUp.d.ts.map +1 -1
- package/dist/types/src/components/StackSection/StackSection.d.ts.map +1 -1
- package/dist/types/src/components/StackSettings/StackSettings.d.ts.map +1 -1
- package/dist/types/src/containers/StackContainer/StackContainer.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +30 -31
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -34
- package/src/StackPlugin.ts +3 -2
- package/src/capabilities/react-surface.tsx +1 -2
- package/src/components/StackSection/StackSection.tsx +2 -1
- package/src/index.ts +6 -1
- package/src/translations.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-stack",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.abd8ff62ef",
|
|
4
4
|
"description": "DXOS Surface plugin for Stack entities",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"#components": "./src/components/index.ts",
|
|
18
18
|
"#containers": "./src/containers/index.ts",
|
|
19
19
|
"#meta": "./src/meta.ts",
|
|
20
|
+
"#translations": "./src/translations.ts",
|
|
20
21
|
"#types": "./src/types/index.ts"
|
|
21
22
|
},
|
|
22
23
|
"exports": {
|
|
@@ -26,6 +27,12 @@
|
|
|
26
27
|
"browser": "./dist/lib/browser/index.mjs",
|
|
27
28
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
28
29
|
},
|
|
30
|
+
"./translations": {
|
|
31
|
+
"source": "./src/translations.ts",
|
|
32
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
33
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
34
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
35
|
+
},
|
|
29
36
|
"./types": {
|
|
30
37
|
"source": "./src/types/index.ts",
|
|
31
38
|
"types": "./dist/types/src/types/index.d.ts",
|
|
@@ -34,13 +41,6 @@
|
|
|
34
41
|
}
|
|
35
42
|
},
|
|
36
43
|
"types": "dist/types/src/index.d.ts",
|
|
37
|
-
"typesVersions": {
|
|
38
|
-
"*": {
|
|
39
|
-
"types": [
|
|
40
|
-
"dist/types/src/types/index.d.ts"
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist",
|
|
46
46
|
"src"
|
|
@@ -52,26 +52,26 @@
|
|
|
52
52
|
"effect": "3.20.0",
|
|
53
53
|
"node-fetch": "^2.6.0",
|
|
54
54
|
"react-is": "~19.2.0",
|
|
55
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/echo": "0.8.4-main.
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/echo-atom": "0.8.4-main.
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/plugin-
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/react-client": "0.8.4-main.
|
|
69
|
-
"@dxos/react-ui-
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/util": "0.8.4-main.
|
|
55
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
56
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
57
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
58
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
|
|
59
|
+
"@dxos/echo-atom": "0.8.4-main.abd8ff62ef",
|
|
60
|
+
"@dxos/invariant": "0.8.4-main.abd8ff62ef",
|
|
61
|
+
"@dxos/operation": "0.8.4-main.abd8ff62ef",
|
|
62
|
+
"@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
|
|
63
|
+
"@dxos/plugin-client": "0.8.4-main.abd8ff62ef",
|
|
64
|
+
"@dxos/plugin-space": "0.8.4-main.abd8ff62ef",
|
|
65
|
+
"@dxos/plugin-deck": "0.8.4-main.abd8ff62ef",
|
|
66
|
+
"@dxos/client": "0.8.4-main.abd8ff62ef",
|
|
67
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
68
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
69
|
+
"@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
|
|
70
|
+
"@dxos/react-ui-list": "0.8.4-main.abd8ff62ef",
|
|
71
|
+
"@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
|
|
72
|
+
"@dxos/schema": "0.8.4-main.abd8ff62ef",
|
|
73
|
+
"@dxos/types": "0.8.4-main.abd8ff62ef",
|
|
74
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@babel/core": "^7.18.13",
|
|
@@ -79,18 +79,19 @@
|
|
|
79
79
|
"@types/react-dom": "~19.2.3",
|
|
80
80
|
"react": "~19.2.3",
|
|
81
81
|
"react-dom": "~19.2.3",
|
|
82
|
-
"vite": "^
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
85
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
82
|
+
"vite": "^8.0.10",
|
|
83
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
|
|
84
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
85
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
|
|
86
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef"
|
|
86
87
|
},
|
|
87
88
|
"peerDependencies": {
|
|
88
89
|
"@effect-atom/atom-react": "^0.5.0",
|
|
89
90
|
"effect": "3.20.0",
|
|
90
91
|
"react": "~19.2.3",
|
|
91
92
|
"react-dom": "~19.2.3",
|
|
92
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
93
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
93
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
94
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
94
95
|
},
|
|
95
96
|
"publishConfig": {
|
|
96
97
|
"access": "public"
|
package/src/StackPlugin.ts
CHANGED
|
@@ -8,10 +8,9 @@ import { type Obj } from '@dxos/echo';
|
|
|
8
8
|
|
|
9
9
|
import { ReactSurface } from '#capabilities';
|
|
10
10
|
import { SECTION_IDENTIFIER, meta } from '#meta';
|
|
11
|
+
import { translations } from '#translations';
|
|
11
12
|
import { StackViewType } from '#types';
|
|
12
13
|
|
|
13
|
-
import { translations } from './translations';
|
|
14
|
-
|
|
15
14
|
export const StackPlugin = Plugin.define(meta).pipe(
|
|
16
15
|
AppPlugin.addMetadataModule({
|
|
17
16
|
metadata: {
|
|
@@ -35,3 +34,5 @@ export const StackPlugin = Plugin.define(meta).pipe(
|
|
|
35
34
|
AppPlugin.addTranslationsModule({ translations }),
|
|
36
35
|
Plugin.make,
|
|
37
36
|
);
|
|
37
|
+
|
|
38
|
+
export default StackPlugin;
|
|
@@ -18,8 +18,7 @@ export default Capability.makeModule(() =>
|
|
|
18
18
|
Capabilities.ReactSurface,
|
|
19
19
|
Surface.create({
|
|
20
20
|
id: 'article',
|
|
21
|
-
|
|
22
|
-
filter: AppSurface.objectArticle(Collection.Collection),
|
|
21
|
+
filter: AppSurface.object(AppSurface.Article, Collection.Collection),
|
|
23
22
|
component: ({ role, data }) => {
|
|
24
23
|
return <StackContainer attendableId={data.attendableId} role={role} subject={data.subject} />;
|
|
25
24
|
},
|
|
@@ -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
|
|
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'>
|
package/src/index.ts
CHANGED
|
@@ -2,5 +2,10 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const StackPlugin = Plugin.lazy(meta, () => import('./StackPlugin'));
|
|
10
|
+
|
|
5
11
|
export * from './meta';
|
|
6
|
-
export * from './StackPlugin';
|
package/src/translations.ts
CHANGED