@dxos/plugin-stack 0.11.0 → 0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d
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/Stack.mjs +10 -0
- package/dist/lib/Stack.mjs.map +1 -0
- package/dist/lib/StackEvents.mjs +15 -0
- package/dist/lib/StackEvents.mjs.map +1 -0
- package/dist/lib/StackPlugin.mjs +6 -6
- package/dist/lib/StackPlugin.mjs.map +1 -1
- package/dist/lib/capabilities.mjs +2 -2
- package/dist/lib/capabilities.mjs.map +1 -1
- package/dist/lib/chunk-meta.mjs +1 -1
- package/dist/lib/chunk-meta.mjs.map +1 -1
- package/dist/lib/chunk-react-surface.mjs +3 -2
- package/dist/lib/chunk-react-surface.mjs.map +1 -1
- package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
- package/dist/lib/components.mjs +1 -1
- package/dist/lib/components.mjs.map +1 -1
- package/dist/lib/index.mjs +3 -2
- package/dist/lib/plugin.mjs +1 -1
- package/dist/lib/plugin.mjs.map +1 -1
- package/dist/types/src/StackPlugin.d.ts +1 -1
- package/dist/types/src/StackPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/Stack/Stack.d.ts +1 -0
- package/dist/types/src/components/Stack/Stack.d.ts.map +1 -1
- package/dist/types/src/containers/StackArticle/StackArticle.stories.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/plugin.d.ts +1 -1
- package/dist/types/src/plugin.d.ts.map +1 -1
- package/dist/types/src/types/StackEvents.d.ts +8 -0
- package/dist/types/src/types/StackEvents.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -37
- package/src/StackPlugin.ts +14 -9
- package/src/capabilities/index.ts +4 -2
- package/src/capabilities/react-surface.ts +3 -2
- package/src/components/Stack/Stack.tsx +1 -1
- package/src/containers/StackArticle/StackArticle.stories.tsx +7 -8
- package/src/index.ts +2 -1
- package/src/meta.ts +1 -1
- package/src/plugin.ts +1 -1
- package/src/types/StackEvents.ts +16 -0
- package/dist/lib/chunk-types.mjs +0 -21
- package/dist/lib/chunk-types.mjs.map +0 -1
- package/dist/lib/types.mjs +0 -2
- package/dist/types/src/types/index.d.ts +0 -2
- package/dist/types/src/types/index.d.ts.map +0 -1
- package/src/types/index.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-stack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
4
4
|
"description": "DXOS Surface plugin for Stack entities",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -42,11 +42,6 @@
|
|
|
42
42
|
"source": "./src/translations.ts",
|
|
43
43
|
"types": "./dist/types/src/translations.d.ts",
|
|
44
44
|
"default": "./dist/lib/translations.mjs"
|
|
45
|
-
},
|
|
46
|
-
"#types": {
|
|
47
|
-
"source": "./src/types/index.ts",
|
|
48
|
-
"types": "./dist/types/src/types/index.d.ts",
|
|
49
|
-
"default": "./dist/lib/types.mjs"
|
|
50
45
|
}
|
|
51
46
|
},
|
|
52
47
|
"exports": {
|
|
@@ -65,9 +60,30 @@
|
|
|
65
60
|
"source": "./src/translations.ts",
|
|
66
61
|
"types": "./dist/types/src/translations.d.ts",
|
|
67
62
|
"import": "./dist/lib/translations.mjs"
|
|
68
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"./Stack": {
|
|
65
|
+
"source": "./src/types/Stack.ts",
|
|
66
|
+
"types": "./dist/types/src/types/Stack.d.ts",
|
|
67
|
+
"import": "./dist/lib/Stack.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./StackEvents": {
|
|
70
|
+
"source": "./src/types/StackEvents.ts",
|
|
71
|
+
"types": "./dist/types/src/types/StackEvents.d.ts",
|
|
72
|
+
"import": "./dist/lib/StackEvents.mjs"
|
|
73
|
+
},
|
|
74
|
+
"./package.json": "./package.json"
|
|
69
75
|
},
|
|
70
76
|
"types": "dist/types/src/index.d.ts",
|
|
77
|
+
"typesVersions": {
|
|
78
|
+
"*": {
|
|
79
|
+
"Stack": [
|
|
80
|
+
"dist/types/src/types/Stack.d.ts"
|
|
81
|
+
],
|
|
82
|
+
"StackEvents": [
|
|
83
|
+
"dist/types/src/types/StackEvents.d.ts"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
71
87
|
"files": [
|
|
72
88
|
"dist",
|
|
73
89
|
"dx.config.ts",
|
|
@@ -76,50 +92,43 @@
|
|
|
76
92
|
],
|
|
77
93
|
"dependencies": {
|
|
78
94
|
"@effect-atom/atom-react": "^0.5.0",
|
|
79
|
-
"@radix-ui/react-collapsible": "1.1.3",
|
|
80
95
|
"effect": "3.21.4",
|
|
81
|
-
"@dxos/app-framework": "0.
|
|
82
|
-
"@dxos/app-toolkit": "0.
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/react-ui-attention": "0.11.0",
|
|
92
|
-
"@dxos/plugin-space": "0.11.0",
|
|
93
|
-
"@dxos/react-ui-form": "0.11.0",
|
|
94
|
-
"@dxos/react-ui-menu": "0.11.0",
|
|
95
|
-
"@dxos/react-ui-dnd": "0.11.0",
|
|
96
|
-
"@dxos/react-ui-mosaic": "0.11.0",
|
|
97
|
-
"@dxos/util": "0.11.0"
|
|
96
|
+
"@dxos/app-framework": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
97
|
+
"@dxos/app-toolkit": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
98
|
+
"@dxos/echo": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
99
|
+
"@dxos/keys": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
100
|
+
"@dxos/plugin-space": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
101
|
+
"@dxos/react-ui-attention": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
102
|
+
"@dxos/react-ui-dnd": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
103
|
+
"@dxos/react-ui-menu": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
104
|
+
"@dxos/react-ui-mosaic": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
105
|
+
"@dxos/util": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d"
|
|
98
106
|
},
|
|
99
107
|
"devDependencies": {
|
|
100
|
-
"@
|
|
108
|
+
"@storybook/react-vite": "^10.4.2",
|
|
101
109
|
"@types/react": "~19.2.17",
|
|
102
110
|
"@types/react-dom": "~19.2.3",
|
|
103
111
|
"react": "~19.2.7",
|
|
104
112
|
"react-dom": "~19.2.7",
|
|
105
113
|
"vite": "^8.1.4",
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/plugin-
|
|
108
|
-
"@dxos/plugin-illustrator": "0.
|
|
109
|
-
"@dxos/plugin-
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/
|
|
114
|
-
"@dxos/ui
|
|
114
|
+
"@dxos/echo-react": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
115
|
+
"@dxos/plugin-client": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
116
|
+
"@dxos/plugin-illustrator": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
117
|
+
"@dxos/plugin-markdown": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
118
|
+
"@dxos/plugin-testing": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
119
|
+
"@dxos/random": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
120
|
+
"@dxos/plugin-tldraw": "0.12.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
121
|
+
"@dxos/react-client": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
122
|
+
"@dxos/react-ui": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
123
|
+
"@dxos/ui-theme": "1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d"
|
|
115
124
|
},
|
|
116
125
|
"peerDependencies": {
|
|
117
126
|
"@effect-atom/atom-react": "^0.5.0",
|
|
118
127
|
"effect": "3.21.4",
|
|
119
128
|
"react": "~19.2.7",
|
|
120
129
|
"react-dom": "~19.2.7",
|
|
121
|
-
"@dxos/react-ui": "^0.
|
|
122
|
-
"@dxos/ui-theme": "^0.
|
|
130
|
+
"@dxos/react-ui": "^1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d",
|
|
131
|
+
"@dxos/ui-theme": "^1.0.0-next-bbabc02363f18d7643ea4160e3a7a7809870fd0d"
|
|
123
132
|
},
|
|
124
133
|
"publishConfig": {
|
|
125
134
|
"access": "public"
|
package/src/StackPlugin.ts
CHANGED
|
@@ -2,24 +2,29 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as Plugin from '@dxos/app-framework/Plugin';
|
|
6
|
+
import * as AppCapability from '@dxos/app-toolkit/AppCapability';
|
|
7
7
|
|
|
8
8
|
import { ReactSurface } from '#capabilities';
|
|
9
9
|
import { meta } from '#meta';
|
|
10
10
|
import { translations } from '#translations';
|
|
11
|
-
import { Stack } from '#types';
|
|
12
11
|
|
|
13
12
|
// eslint-disable-next-line import/no-relative-packages
|
|
14
13
|
import pluginSpec from '../PLUGIN.mdl?raw';
|
|
14
|
+
import * as Stack from './types/Stack';
|
|
15
15
|
|
|
16
16
|
export const StackPlugin = Plugin.define(meta).pipe(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
Plugin.addModule(AppCapability.schema([Stack.Stack])),
|
|
18
|
+
Plugin.addModule(ReactSurface),
|
|
19
|
+
Plugin.addModule(AppCapability.translations(translations)),
|
|
20
|
+
Plugin.addModule(
|
|
21
|
+
AppCapability.pluginAsset({
|
|
22
|
+
pluginId: meta.profile.key,
|
|
23
|
+
path: 'PLUGIN.mdl',
|
|
24
|
+
content: pluginSpec,
|
|
25
|
+
mimeType: 'application/x-mdl',
|
|
26
|
+
}),
|
|
27
|
+
),
|
|
23
28
|
Plugin.make,
|
|
24
29
|
);
|
|
25
30
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import * as AppCapability from '@dxos/app-toolkit/AppCapability';
|
|
6
6
|
|
|
7
|
-
export const ReactSurface =
|
|
7
|
+
export const ReactSurface = AppCapability.surface(() => import('./react-surface'), {
|
|
8
|
+
roles: ['org.dxos.role.article'],
|
|
9
|
+
});
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import * as Capabilities from '@dxos/app-framework/Capabilities';
|
|
8
|
+
import * as Capability from '@dxos/app-framework/Capability';
|
|
8
9
|
import { Surface } from '@dxos/app-framework/ui';
|
|
9
10
|
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
10
11
|
import { Collection } from '@dxos/echo';
|
|
@@ -13,7 +14,7 @@ import { StackArticle } from '#containers';
|
|
|
13
14
|
|
|
14
15
|
export default Capability.makeModule(() =>
|
|
15
16
|
Effect.succeed(
|
|
16
|
-
Capability.
|
|
17
|
+
Capability.contribute(
|
|
17
18
|
Capabilities.ReactSurface,
|
|
18
19
|
Surface.create({
|
|
19
20
|
id: 'article',
|
|
@@ -13,7 +13,7 @@ import React, {
|
|
|
13
13
|
} from 'react';
|
|
14
14
|
|
|
15
15
|
import { Surface } from '@dxos/app-framework/ui';
|
|
16
|
-
import
|
|
16
|
+
import * as GraphPath from '@dxos/app-toolkit/GraphPath';
|
|
17
17
|
import { AppSurface, AttentionSigilButton } from '@dxos/app-toolkit/ui';
|
|
18
18
|
import { Obj } from '@dxos/echo';
|
|
19
19
|
import {
|
|
@@ -6,22 +6,22 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
import * as Capability from '@dxos/app-framework/Capability';
|
|
10
10
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
11
|
-
import
|
|
11
|
+
import * as AppCapabilities from '@dxos/app-toolkit/AppCapabilities';
|
|
12
12
|
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
13
13
|
import { Collection, Filter, Ref } from '@dxos/echo';
|
|
14
14
|
import { useQuery } from '@dxos/echo-react';
|
|
15
15
|
import { ClientPlugin, initializeIdentity } from '@dxos/plugin-client/testing';
|
|
16
|
-
import
|
|
16
|
+
import * as Drawing from '@dxos/plugin-illustrator/Drawing';
|
|
17
17
|
import { IllustratorPlugin } from '@dxos/plugin-illustrator/plugin';
|
|
18
|
-
import
|
|
18
|
+
import * as Markdown from '@dxos/plugin-markdown/Markdown';
|
|
19
19
|
import { MarkdownPlugin } from '@dxos/plugin-markdown/testing';
|
|
20
20
|
import { SpacePlugin } from '@dxos/plugin-space/testing';
|
|
21
21
|
import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
|
|
22
22
|
import { TldrawModel } from '@dxos/plugin-tldraw';
|
|
23
|
-
import { Tldraw } from '@dxos/plugin-tldraw';
|
|
24
23
|
import { TldrawPlugin } from '@dxos/plugin-tldraw/plugin';
|
|
24
|
+
import * as Tldraw from '@dxos/plugin-tldraw/Tldraw';
|
|
25
25
|
import { random } from '@dxos/random';
|
|
26
26
|
import { useClient } from '@dxos/react-client';
|
|
27
27
|
import { withMosaic } from '@dxos/react-ui-mosaic/testing';
|
|
@@ -57,15 +57,14 @@ const meta: Meta<typeof StackArticle> = {
|
|
|
57
57
|
withMosaic(),
|
|
58
58
|
withLayout({ layout: 'fullscreen' }),
|
|
59
59
|
withPluginManager({
|
|
60
|
-
|
|
61
|
-
capabilities: [Capability.contributes(AppCapabilities.Translations, translations)],
|
|
60
|
+
capabilities: [Capability.contribute(AppCapabilities.Translations, translations)],
|
|
62
61
|
plugins: [
|
|
63
62
|
...corePlugins(),
|
|
64
63
|
ClientPlugin({
|
|
65
64
|
types: [Collection.Collection, Markdown.Document, Drawing.Drawing, Drawing.Canvas],
|
|
66
65
|
onClientInitialized: ({ client }) =>
|
|
67
66
|
Effect.gen(function* () {
|
|
68
|
-
const {
|
|
67
|
+
const { defaultSpace: space } = yield* initializeIdentity(client);
|
|
69
68
|
|
|
70
69
|
const documents = Array.from({ length: 5 }).map(() =>
|
|
71
70
|
Ref.make(
|
package/src/index.ts
CHANGED
package/src/meta.ts
CHANGED
package/src/plugin.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
// @import-as-namespace
|
|
6
|
+
|
|
7
|
+
import * as ActivationEvent from '@dxos/app-framework/ActivationEvent';
|
|
8
|
+
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The feature's start event: the plugin's start-gated modules (and cross-plugin
|
|
13
|
+
* contributions consumed by this feature) activate here. Fired on demand and by the
|
|
14
|
+
* host's idle trickle.
|
|
15
|
+
*/
|
|
16
|
+
export const Start = ActivationEvent.pluginStart(meta.profile.key);
|
package/dist/lib/chunk-types.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { DXN, Type } from "@dxos/echo";
|
|
3
|
-
//#region \0rolldown/runtime.js
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __exportAll = (all, no_symbols) => {
|
|
6
|
-
let target = {};
|
|
7
|
-
for (var name in all) __defProp(target, name, {
|
|
8
|
-
get: all[name],
|
|
9
|
-
enumerable: true
|
|
10
|
-
});
|
|
11
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/types/Stack.ts
|
|
16
|
-
var Stack_exports = /* @__PURE__ */ __exportAll({ Stack: () => Stack });
|
|
17
|
-
var Stack = class extends Type.makeObject(DXN.make("org.dxos.type.stack", "0.1.0"))(Schema.Struct({})) {};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { Stack_exports as t };
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=chunk-types.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-types.mjs","names":[],"sources":["../../src/types/Stack.ts"],"sourcesContent":["//\n// Copyright 2024 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { DXN, Type } from '@dxos/echo';\n\n// TODO(burdon): Placeholder.\nexport class Stack extends Type.makeObject<Stack>(DXN.make('org.dxos.type.stack', '0.1.0'))(Schema.Struct({})) {}\n"],"mappings":";;;;;;;;;;;;;;;;AAWA,IAAa,QAAb,cAA2B,KAAK,WAAkB,IAAI,KAAK,uBAAuB,OAAO,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/lib/types.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|