@dxos/plugin-template 0.9.1-main.c7dcc2e112 → 0.9.1-staging.ee54ba693a
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/neutral/capabilities/index.mjs +1 -1
- package/dist/lib/neutral/{chunk-XVITFXCJ.mjs → chunk-NZ3DSXJY.mjs} +7 -5
- package/dist/lib/neutral/chunk-NZ3DSXJY.mjs.map +7 -0
- package/dist/lib/neutral/{create-object-K2JXEGV4.mjs → create-object-2ARJFAMW.mjs} +1 -2
- package/dist/lib/neutral/{create-object-K2JXEGV4.mjs.map → create-object-2ARJFAMW.mjs.map} +3 -3
- package/dist/lib/neutral/index.mjs +1 -1
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/types/index.mjs +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +1 -7
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +6 -7
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -22
- package/src/capabilities/create-object.ts +0 -1
- package/src/types/schema.ts +6 -9
- package/dist/lib/neutral/chunk-XVITFXCJ.mjs.map +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-template",
|
|
3
|
-
"version": "0.9.1-
|
|
3
|
+
"version": "0.9.1-staging.ee54ba693a",
|
|
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.
|
|
72
|
-
"@dxos/app-
|
|
73
|
-
"@dxos/compute": "0.9.1-
|
|
74
|
-
"@dxos/app-
|
|
75
|
-
"@dxos/echo": "0.9.1-
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/plugin-space": "0.9.1-
|
|
79
|
-
"@dxos/
|
|
71
|
+
"effect": "3.21.4",
|
|
72
|
+
"@dxos/app-toolkit": "0.9.1-staging.ee54ba693a",
|
|
73
|
+
"@dxos/compute": "0.9.1-staging.ee54ba693a",
|
|
74
|
+
"@dxos/app-framework": "0.9.1-staging.ee54ba693a",
|
|
75
|
+
"@dxos/echo": "0.9.1-staging.ee54ba693a",
|
|
76
|
+
"@dxos/plugin-client": "0.9.1-staging.ee54ba693a",
|
|
77
|
+
"@dxos/util": "0.9.1-staging.ee54ba693a",
|
|
78
|
+
"@dxos/plugin-space": "0.9.1-staging.ee54ba693a",
|
|
79
|
+
"@dxos/keys": "0.9.1-staging.ee54ba693a"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@types/react": "~19.2.
|
|
82
|
+
"@types/react": "~19.2.17",
|
|
83
83
|
"@types/react-dom": "~19.2.3",
|
|
84
|
-
"react": "~19.2.
|
|
85
|
-
"react-dom": "~19.2.
|
|
84
|
+
"react": "~19.2.7",
|
|
85
|
+
"react-dom": "~19.2.7",
|
|
86
86
|
"vite": "^8.0.16",
|
|
87
|
-
"@dxos/plugin-testing": "0.9.1-
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/ui-theme": "0.9.1-
|
|
87
|
+
"@dxos/plugin-testing": "0.9.1-staging.ee54ba693a",
|
|
88
|
+
"@dxos/storybook-utils": "0.9.1-staging.ee54ba693a",
|
|
89
|
+
"@dxos/react-ui": "0.9.1-staging.ee54ba693a",
|
|
90
|
+
"@dxos/ui-theme": "0.9.1-staging.ee54ba693a"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"effect": "3.21.
|
|
94
|
-
"react": "~19.2.
|
|
95
|
-
"react-dom": "~19.2.
|
|
96
|
-
"@dxos/react-ui": "0.9.1-
|
|
97
|
-
"@dxos/ui-theme": "0.9.1-
|
|
93
|
+
"effect": "3.21.4",
|
|
94
|
+
"react": "~19.2.7",
|
|
95
|
+
"react-dom": "~19.2.7",
|
|
96
|
+
"@dxos/react-ui": "0.9.1-staging.ee54ba693a",
|
|
97
|
+
"@dxos/ui-theme": "0.9.1-staging.ee54ba693a"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public"
|
package/src/types/schema.ts
CHANGED
|
@@ -4,17 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Annotation, DXN, Obj, Type } from '@dxos/echo';
|
|
8
8
|
|
|
9
9
|
export namespace Template {
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Annotation.IconAnnotation.set({ icon: 'ph--asterisk--regular', hue: 'sky' }),
|
|
14
|
-
|
|
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
|
-
}
|