@dxos/plugin-board 0.9.1-main.c7dcc2e112 → 0.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-board",
3
- "version": "0.9.1-main.c7dcc2e112",
3
+ "version": "0.10.0",
4
4
  "description": "Surface plugin for card baords",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -77,47 +77,46 @@
77
77
  "dependencies": {
78
78
  "@effect-atom/atom": "^0.5.3",
79
79
  "@effect-atom/atom-react": "^0.5.0",
80
- "effect": "3.21.3",
81
- "@dxos/app-framework": "0.9.1-main.c7dcc2e112",
82
- "@dxos/compute": "0.9.1-main.c7dcc2e112",
83
- "@dxos/echo-react": "0.9.1-main.c7dcc2e112",
84
- "@dxos/app-toolkit": "0.9.1-main.c7dcc2e112",
85
- "@dxos/keys": "0.9.1-main.c7dcc2e112",
86
- "@dxos/invariant": "0.9.1-main.c7dcc2e112",
87
- "@dxos/plugin-markdown": "0.9.1-main.c7dcc2e112",
88
- "@dxos/plugin-client": "0.9.1-main.c7dcc2e112",
89
- "@dxos/plugin-space": "0.9.1-main.c7dcc2e112",
90
- "@dxos/random": "0.9.1-main.c7dcc2e112",
91
- "@dxos/react-client": "0.9.1-main.c7dcc2e112",
92
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
93
- "@dxos/react-ui-attention": "0.9.1-main.c7dcc2e112",
94
- "@dxos/echo": "0.9.1-main.c7dcc2e112",
95
- "@dxos/react-ui-form": "0.9.1-main.c7dcc2e112",
96
- "@dxos/react-ui-stack": "0.9.1-main.c7dcc2e112",
97
- "@dxos/util": "0.9.1-main.c7dcc2e112",
98
- "@dxos/react-ui-board": "0.9.1-main.c7dcc2e112",
99
- "@dxos/types": "0.9.1-main.c7dcc2e112"
80
+ "effect": "3.21.4",
81
+ "@dxos/app-framework": "0.10.0",
82
+ "@dxos/app-toolkit": "0.10.0",
83
+ "@dxos/compute": "0.10.0",
84
+ "@dxos/echo": "0.10.0",
85
+ "@dxos/echo-react": "0.10.0",
86
+ "@dxos/invariant": "0.10.0",
87
+ "@dxos/keys": "0.10.0",
88
+ "@dxos/plugin-client": "0.10.0",
89
+ "@dxos/plugin-markdown": "0.10.0",
90
+ "@dxos/plugin-space": "0.10.0",
91
+ "@dxos/react-ui": "0.10.0",
92
+ "@dxos/react-ui-attention": "0.10.0",
93
+ "@dxos/react-ui-board": "0.10.0",
94
+ "@dxos/react-ui-form": "0.10.0",
95
+ "@dxos/types": "0.10.0",
96
+ "@dxos/util": "0.10.0",
97
+ "@dxos/random": "0.10.0",
98
+ "@dxos/react-client": "0.10.0"
100
99
  },
101
100
  "devDependencies": {
102
- "@types/react": "~19.2.7",
101
+ "@types/react": "~19.2.17",
103
102
  "@types/react-dom": "~19.2.3",
104
- "react": "~19.2.3",
105
- "react-dom": "~19.2.3",
103
+ "react": "~19.2.7",
104
+ "react-dom": "~19.2.7",
106
105
  "vite": "^8.0.16",
107
- "@dxos/plugin-testing": "0.9.1-main.c7dcc2e112",
108
- "@dxos/plugin-preview": "0.9.1-main.c7dcc2e112",
109
- "@dxos/plugin-theme": "0.9.1-main.c7dcc2e112",
110
- "@dxos/react-ui-syntax-highlighter": "0.9.1-main.c7dcc2e112",
111
- "@dxos/storybook-utils": "0.9.1-main.c7dcc2e112",
112
- "@dxos/test-utils": "0.9.1-main.c7dcc2e112",
113
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
106
+ "@dxos/plugin-preview": "0.10.0",
107
+ "@dxos/plugin-testing": "0.10.0",
108
+ "@dxos/plugin-theme": "0.10.0",
109
+ "@dxos/storybook-utils": "0.10.0",
110
+ "@dxos/test-utils": "0.10.0",
111
+ "@dxos/ui-theme": "0.10.0",
112
+ "@dxos/react-ui-syntax-highlighter": "0.10.0"
114
113
  },
115
114
  "peerDependencies": {
116
- "effect": "3.21.3",
117
- "react": "~19.2.3",
118
- "react-dom": "~19.2.3",
119
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
120
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
115
+ "effect": "3.21.4",
116
+ "react": "~19.2.7",
117
+ "react-dom": "~19.2.7",
118
+ "@dxos/react-ui": "0.10.0",
119
+ "@dxos/ui-theme": "0.10.0"
121
120
  },
122
121
  "publishConfig": {
123
122
  "access": "public"
@@ -22,7 +22,6 @@ export default Capability.makeModule(
22
22
  return yield* Operation.invoke(SpaceOperation.AddObject, {
23
23
  object,
24
24
  target: options.target,
25
- hidden: true,
26
25
  targetNodeId: options.targetNodeId,
27
26
  });
28
27
  }),
@@ -14,7 +14,6 @@ import { PreviewPlugin } from '@dxos/plugin-preview/testing';
14
14
  import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
15
15
  import { random } from '@dxos/random';
16
16
  import { useQuery, useSpaces } from '@dxos/react-client/echo';
17
- import { translations as stackTranslations } from '@dxos/react-ui-stack/translations';
18
17
  import { withLayout } from '@dxos/react-ui/testing';
19
18
  import { Organization, Person } from '@dxos/types';
20
19
 
@@ -111,7 +110,7 @@ const meta = {
111
110
  ],
112
111
  parameters: {
113
112
  layout: 'fullscreen',
114
- translations: [...translations, ...stackTranslations],
113
+ translations,
115
114
  },
116
115
  };
117
116
 
@@ -4,24 +4,23 @@
4
4
 
5
5
  import * as Schema from 'effect/Schema';
6
6
 
7
- import { DXN, Annotation, Obj, Ref, Type } from '@dxos/echo';
7
+ import { Annotation, DXN, Obj, Ref, Type } from '@dxos/echo';
8
8
  import { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/Annotation';
9
9
  import { BoardLayout, defaultLayout } from '@dxos/react-ui-board';
10
10
 
11
11
  /**
12
12
  * Board and layout.
13
13
  */
14
- export const Board = Schema.Struct({
15
- name: Schema.String.pipe(Schema.optional),
16
- items: Ref.Ref(Obj.Unknown).pipe(Schema.Array, FormInputAnnotation.set(false)),
17
- layout: BoardLayout.pipe(FormInputAnnotation.set(false)),
18
- }).pipe(
19
- LabelAnnotation.set(['name']),
20
- Annotation.IconAnnotation.set({ icon: 'ph--squares-four--regular', hue: 'green' }),
21
- Type.makeObject(DXN.make('org.dxos.type.board', '0.1.0')),
22
- );
23
-
24
- export type Board = Type.InstanceType<typeof Board>;
14
+ export class Board extends Type.makeObject<Board>(DXN.make('org.dxos.type.board', '0.1.0'))(
15
+ Schema.Struct({
16
+ name: Schema.String.pipe(Schema.optional),
17
+ items: Ref.Ref(Obj.Unknown).pipe(Schema.Array, FormInputAnnotation.set(false)),
18
+ layout: BoardLayout.pipe(FormInputAnnotation.set(false)),
19
+ }).pipe(
20
+ LabelAnnotation.set(['name']),
21
+ Annotation.IconAnnotation.set({ icon: 'ph--squares-four--regular', hue: 'green' }),
22
+ ),
23
+ ) {}
25
24
 
26
25
  export const makeBoard = (props: Partial<Obj.MakeProps<typeof Board>> = {}) =>
27
26
  Obj.make(Board, {
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/Board.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { DXN, Annotation, Obj, Ref, Type } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/Annotation';\nimport { BoardLayout, defaultLayout } from '@dxos/react-ui-board';\n\n/**\n * Board and layout.\n */\nexport const Board = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n items: Ref.Ref(Obj.Unknown).pipe(Schema.Array, FormInputAnnotation.set(false)),\n layout: BoardLayout.pipe(FormInputAnnotation.set(false)),\n}).pipe(\n LabelAnnotation.set(['name']),\n Annotation.IconAnnotation.set({ icon: 'ph--squares-four--regular', hue: 'green' }),\n Type.makeObject(DXN.make('org.dxos.type.board', '0.1.0')),\n);\n\nexport type Board = Type.InstanceType<typeof Board>;\n\nexport const makeBoard = (props: Partial<Obj.MakeProps<typeof Board>> = {}) =>\n Obj.make(Board, {\n items: [],\n layout: defaultLayout,\n ...props,\n });\n"],
5
- "mappings": ";;;;;AAAA;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,YAAYC,KAAKC,KAAKC,YAAY;AAChD,SAASC,qBAAqBC,uBAAuB;AACrD,SAASC,aAAaC,qBAAqB;AAKpC,IAAMC,QAAeC,cAAO;EACjCC,MAAaC,cAAOC,KAAYC,eAAQ;EACxCC,OAAOZ,IAAIA,IAAID,IAAIc,OAAO,EAAEH,KAAYI,cAAOZ,oBAAoBa,IAAI,KAAA,CAAA;EACvEC,QAAQZ,YAAYM,KAAKR,oBAAoBa,IAAI,KAAA,CAAA;AACnD,CAAA,EAAGL,KACDP,gBAAgBY,IAAI;EAAC;CAAO,GAC5BjB,WAAWmB,eAAeF,IAAI;EAAEG,MAAM;EAA6BC,KAAK;AAAQ,CAAA,GAChFlB,KAAKmB,WAAWvB,IAAIwB,KAAK,uBAAuB,OAAA,CAAA,CAAA;AAK3C,IAAMC,YAAY,CAACC,QAA8C,CAAC,MACvExB,IAAIsB,KAAKf,OAAO;EACdM,OAAO,CAAA;EACPI,QAAQX;EACR,GAAGkB;AACL,CAAA;",
6
- "names": ["Schema", "DXN", "Annotation", "Obj", "Ref", "Type", "FormInputAnnotation", "LabelAnnotation", "BoardLayout", "defaultLayout", "Board", "Struct", "name", "String", "pipe", "optional", "items", "Unknown", "Array", "set", "layout", "IconAnnotation", "icon", "hue", "makeObject", "make", "makeBoard", "props"]
7
- }