@dxos/plugin-template 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-template",
3
- "version": "0.9.1-main.c7dcc2e112",
3
+ "version": "0.10.0",
4
4
  "description": "Template for new plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -68,33 +68,33 @@
68
68
  "src"
69
69
  ],
70
70
  "dependencies": {
71
- "effect": "3.21.3",
72
- "@dxos/app-framework": "0.9.1-main.c7dcc2e112",
73
- "@dxos/compute": "0.9.1-main.c7dcc2e112",
74
- "@dxos/app-toolkit": "0.9.1-main.c7dcc2e112",
75
- "@dxos/echo": "0.9.1-main.c7dcc2e112",
76
- "@dxos/keys": "0.9.1-main.c7dcc2e112",
77
- "@dxos/plugin-client": "0.9.1-main.c7dcc2e112",
78
- "@dxos/plugin-space": "0.9.1-main.c7dcc2e112",
79
- "@dxos/util": "0.9.1-main.c7dcc2e112"
71
+ "effect": "3.21.4",
72
+ "@dxos/app-framework": "0.10.0",
73
+ "@dxos/compute": "0.10.0",
74
+ "@dxos/keys": "0.10.0",
75
+ "@dxos/echo": "0.10.0",
76
+ "@dxos/plugin-space": "0.10.0",
77
+ "@dxos/app-toolkit": "0.10.0",
78
+ "@dxos/util": "0.10.0",
79
+ "@dxos/plugin-client": "0.10.0"
80
80
  },
81
81
  "devDependencies": {
82
- "@types/react": "~19.2.7",
82
+ "@types/react": "~19.2.17",
83
83
  "@types/react-dom": "~19.2.3",
84
- "react": "~19.2.3",
85
- "react-dom": "~19.2.3",
84
+ "react": "~19.2.7",
85
+ "react-dom": "~19.2.7",
86
86
  "vite": "^8.0.16",
87
- "@dxos/plugin-testing": "0.9.1-main.c7dcc2e112",
88
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
89
- "@dxos/storybook-utils": "0.9.1-main.c7dcc2e112",
90
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
87
+ "@dxos/plugin-testing": "0.10.0",
88
+ "@dxos/react-ui": "0.10.0",
89
+ "@dxos/ui-theme": "0.10.0",
90
+ "@dxos/storybook-utils": "0.10.0"
91
91
  },
92
92
  "peerDependencies": {
93
- "effect": "3.21.3",
94
- "react": "~19.2.3",
95
- "react-dom": "~19.2.3",
96
- "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
97
- "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
93
+ "effect": "3.21.4",
94
+ "react": "~19.2.7",
95
+ "react-dom": "~19.2.7",
96
+ "@dxos/react-ui": "0.10.0",
97
+ "@dxos/ui-theme": "0.10.0"
98
98
  },
99
99
  "publishConfig": {
100
100
  "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
  }),
@@ -4,17 +4,14 @@
4
4
 
5
5
  import * as Schema from 'effect/Schema';
6
6
 
7
- import { DXN, Annotation, Obj, Type } from '@dxos/echo';
7
+ import { Annotation, DXN, Obj, Type } from '@dxos/echo';
8
8
 
9
9
  export namespace Template {
10
- export const Data = Schema.Struct({
11
- name: Schema.optional(Schema.String),
12
- }).pipe(
13
- Annotation.IconAnnotation.set({ icon: 'ph--asterisk--regular', hue: 'sky' }),
14
- Type.makeObject(DXN.make('org.dxos.type.data', '0.1.0')),
15
- );
16
-
17
- export type Data = Type.InstanceType<typeof Data>;
10
+ export class Data extends Type.makeObject<Data>(DXN.make('org.dxos.type.data', '0.1.0'))(
11
+ Schema.Struct({
12
+ name: Schema.optional(Schema.String),
13
+ }).pipe(Annotation.IconAnnotation.set({ icon: 'ph--asterisk--regular', hue: 'sky' })),
14
+ ) {}
18
15
 
19
16
  export const make = (props: Partial<Data>) => Obj.make(Data, props);
20
17
  }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/schema.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { DXN, Annotation, Obj, Type } from '@dxos/echo';\n\nexport namespace Template {\n export const Data = Schema.Struct({\n name: Schema.optional(Schema.String),\n }).pipe(\n Annotation.IconAnnotation.set({ icon: 'ph--asterisk--regular', hue: 'sky' }),\n Type.makeObject(DXN.make('org.dxos.type.data', '0.1.0')),\n );\n\n export type Data = Type.InstanceType<typeof Data>;\n\n export const make = (props: Partial<Data>) => Obj.make(Data, props);\n}\n"],
5
- "mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,YAAYC,KAAKC,YAAY;UAE1BC,WAAAA;YACFC,OAAcC,cAAO;IAChCC,MAAaC,gBAAgBC,aAAM;EACrC,CAAA,EAAGC,KACDT,WAAWU,eAAeC,IAAI;IAAEC,MAAM;IAAyBC,KAAK;EAAM,CAAA,GAC1EX,KAAKY,WAAWf,IAAIgB,KAAK,sBAAsB,OAAA,CAAA,CAAA;YAKpCA,OAAO,CAACC,UAAyBf,IAAIc,KAAIZ,UAACC,MAAMY,KAAAA;AAC/D,GAXiBb,aAAAA,WAAAA,CAAAA,EAAAA;;",
6
- "names": ["Schema", "DXN", "Annotation", "Obj", "Type", "Template", "Data", "Struct", "name", "optional", "String", "pipe", "IconAnnotation", "set", "icon", "hue", "makeObject", "make", "props"]
7
- }