@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.
Files changed (50) hide show
  1. package/dist/lib/Stack.mjs +10 -0
  2. package/dist/lib/Stack.mjs.map +1 -0
  3. package/dist/lib/StackEvents.mjs +15 -0
  4. package/dist/lib/StackEvents.mjs.map +1 -0
  5. package/dist/lib/StackPlugin.mjs +6 -6
  6. package/dist/lib/StackPlugin.mjs.map +1 -1
  7. package/dist/lib/capabilities.mjs +2 -2
  8. package/dist/lib/capabilities.mjs.map +1 -1
  9. package/dist/lib/chunk-meta.mjs +1 -1
  10. package/dist/lib/chunk-meta.mjs.map +1 -1
  11. package/dist/lib/chunk-react-surface.mjs +3 -2
  12. package/dist/lib/chunk-react-surface.mjs.map +1 -1
  13. package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
  14. package/dist/lib/components.mjs +1 -1
  15. package/dist/lib/components.mjs.map +1 -1
  16. package/dist/lib/index.mjs +3 -2
  17. package/dist/lib/plugin.mjs +1 -1
  18. package/dist/lib/plugin.mjs.map +1 -1
  19. package/dist/types/src/StackPlugin.d.ts +1 -1
  20. package/dist/types/src/StackPlugin.d.ts.map +1 -1
  21. package/dist/types/src/capabilities/index.d.ts +1 -2
  22. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  24. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  25. package/dist/types/src/components/Stack/Stack.d.ts +1 -0
  26. package/dist/types/src/components/Stack/Stack.d.ts.map +1 -1
  27. package/dist/types/src/containers/StackArticle/StackArticle.stories.d.ts.map +1 -1
  28. package/dist/types/src/index.d.ts +2 -1
  29. package/dist/types/src/index.d.ts.map +1 -1
  30. package/dist/types/src/plugin.d.ts +1 -1
  31. package/dist/types/src/plugin.d.ts.map +1 -1
  32. package/dist/types/src/types/StackEvents.d.ts +8 -0
  33. package/dist/types/src/types/StackEvents.d.ts.map +1 -0
  34. package/dist/types/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +46 -37
  36. package/src/StackPlugin.ts +14 -9
  37. package/src/capabilities/index.ts +4 -2
  38. package/src/capabilities/react-surface.ts +3 -2
  39. package/src/components/Stack/Stack.tsx +1 -1
  40. package/src/containers/StackArticle/StackArticle.stories.tsx +7 -8
  41. package/src/index.ts +2 -1
  42. package/src/meta.ts +1 -1
  43. package/src/plugin.ts +1 -1
  44. package/src/types/StackEvents.ts +16 -0
  45. package/dist/lib/chunk-types.mjs +0 -21
  46. package/dist/lib/chunk-types.mjs.map +0 -1
  47. package/dist/lib/types.mjs +0 -2
  48. package/dist/types/src/types/index.d.ts +0 -2
  49. package/dist/types/src/types/index.d.ts.map +0 -1
  50. 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.11.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.11.0",
82
- "@dxos/app-toolkit": "0.11.0",
83
- "@dxos/invariant": "0.11.0",
84
- "@dxos/echo": "0.11.0",
85
- "@dxos/keys": "0.11.0",
86
- "@dxos/operation": "0.11.0",
87
- "@dxos/echo-react": "0.11.0",
88
- "@dxos/plugin-deck": "0.11.0",
89
- "@dxos/plugin-graph": "0.11.0",
90
- "@dxos/plugin-client": "0.11.0",
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
- "@babel/core": "^7.18.13",
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/plugin-markdown": "0.11.0",
107
- "@dxos/plugin-testing": "0.11.0",
108
- "@dxos/plugin-illustrator": "0.11.0",
109
- "@dxos/plugin-tldraw": "0.11.0",
110
- "@dxos/random": "0.11.0",
111
- "@dxos/react-client": "0.11.0",
112
- "@dxos/react-ui": "0.11.0",
113
- "@dxos/storybook-utils": "0.11.0",
114
- "@dxos/ui-theme": "0.11.0"
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.11.0",
122
- "@dxos/ui-theme": "^0.11.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"
@@ -2,24 +2,29 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Plugin } from '@dxos/app-framework';
6
- import { AppPlugin } from '@dxos/app-toolkit';
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
- AppPlugin.addSchemaModule({ schema: [Stack.Stack] }),
18
- AppPlugin.addSurfaceModule({ activate: ReactSurface }),
19
- AppPlugin.addTranslationsModule({ translations }),
20
- AppPlugin.addPluginAssetModule({
21
- asset: { pluginId: meta.profile.key, path: 'PLUGIN.mdl', content: pluginSpec, mimeType: 'application/x-mdl' },
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 { Capability } from '@dxos/app-framework';
5
+ import * as AppCapability from '@dxos/app-toolkit/AppCapability';
6
6
 
7
- export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
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 { Capabilities, Capability } from '@dxos/app-framework';
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.contributes(
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 { GraphPath } from '@dxos/app-toolkit';
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 { Capability } from '@dxos/app-framework';
9
+ import * as Capability from '@dxos/app-framework/Capability';
10
10
  import { withPluginManager } from '@dxos/app-framework/testing';
11
- import { AppActivationEvents, AppCapabilities } from '@dxos/app-toolkit';
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 { Drawing } from '@dxos/plugin-illustrator';
16
+ import * as Drawing from '@dxos/plugin-illustrator/Drawing';
17
17
  import { IllustratorPlugin } from '@dxos/plugin-illustrator/plugin';
18
- import { Markdown, MarkdownEvents } from '@dxos/plugin-markdown';
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
- setupEvents: [AppActivationEvents.SetupSettings, MarkdownEvents.SetupExtensions],
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 { personalSpace: space } = yield* initializeIdentity(client);
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
@@ -3,4 +3,5 @@
3
3
  //
4
4
 
5
5
  export * from './meta';
6
- export * from './types';
6
+ export * as Stack from './types/Stack';
7
+ export * as StackEvents from './types/StackEvents';
package/src/meta.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Plugin } from '@dxos/app-framework';
5
+ import * as Plugin from '@dxos/app-framework/Plugin';
6
6
  import { DXN } from '@dxos/keys';
7
7
 
8
8
  import config from '../dx.config';
package/src/plugin.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Plugin } from '@dxos/app-framework';
5
+ import * as Plugin from '@dxos/app-framework/Plugin';
6
6
 
7
7
  import { meta } from './meta';
8
8
 
@@ -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);
@@ -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"}
@@ -1,2 +0,0 @@
1
- import { t as Stack_exports } from "./chunk-types.mjs";
2
- export { Stack_exports as Stack };
@@ -1,2 +0,0 @@
1
- export * as Stack from './Stack';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,5 +0,0 @@
1
- //
2
- // Copyright 2024 DXOS.org
3
- //
4
-
5
- export * as Stack from './Stack';