@dxos/plugin-template 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393
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/TemplatePlugin.mjs +24 -0
- package/dist/lib/neutral/TemplatePlugin.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +9 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/{browser/types/index.mjs → neutral/chunk-3GJBJD5H.mjs} +2 -1
- package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-3GJBJD5H.mjs.map} +3 -3
- package/dist/lib/neutral/chunk-PXZQRDPR.mjs +18 -0
- package/dist/lib/neutral/chunk-PXZQRDPR.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +14 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-YYTSDVP3.mjs +25 -0
- package/dist/lib/neutral/create-object-YYTSDVP3.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +11 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +7 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +11 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-SYA2674P.mjs +21 -0
- package/dist/lib/neutral/react-surface-SYA2674P.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +27 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +7 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/TemplatePlugin.d.ts +1 -0
- package/dist/types/src/TemplatePlugin.d.ts.map +1 -1
- package/dist/types/src/TemplatePlugin.test.d.ts +2 -0
- package/dist/types/src/TemplatePlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/TemplatePanel/TemplatePanel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +22 -15
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +60 -28
- package/src/TemplatePlugin.test.ts +26 -0
- package/src/TemplatePlugin.tsx +5 -29
- package/src/capabilities/create-object.ts +30 -0
- package/src/capabilities/index.ts +1 -0
- package/src/index.ts +1 -1
- package/src/plugin.ts +9 -0
- package/dist/lib/browser/index.mjs +0 -82
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-template",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.4f23b4e393",
|
|
4
4
|
"description": "Template for new plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -13,21 +13,52 @@
|
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
-
"#capabilities":
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#components": {
|
|
22
|
+
"source": "./src/components/index.ts",
|
|
23
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#meta": {
|
|
27
|
+
"source": "./src/meta.ts",
|
|
28
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#plugin": {
|
|
32
|
+
"source": "./src/TemplatePlugin.tsx",
|
|
33
|
+
"types": "./dist/types/src/TemplatePlugin.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/TemplatePlugin.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#translations": {
|
|
37
|
+
"source": "./src/translations.ts",
|
|
38
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#types": {
|
|
42
|
+
"source": "./src/types/index.ts",
|
|
43
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
44
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
45
|
+
}
|
|
20
46
|
},
|
|
21
47
|
"exports": {
|
|
22
48
|
".": {
|
|
23
49
|
"source": "./src/index.ts",
|
|
24
50
|
"types": "./dist/types/src/index.d.ts",
|
|
25
|
-
"
|
|
51
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
26
52
|
},
|
|
27
|
-
"./
|
|
28
|
-
"source": "./src/
|
|
29
|
-
"types": "./dist/types/src/
|
|
30
|
-
"
|
|
53
|
+
"./plugin": {
|
|
54
|
+
"source": "./src/plugin.ts",
|
|
55
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
56
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
57
|
+
},
|
|
58
|
+
"./translations": {
|
|
59
|
+
"source": "./src/translations.ts",
|
|
60
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
61
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
31
62
|
}
|
|
32
63
|
},
|
|
33
64
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -38,35 +69,36 @@
|
|
|
38
69
|
"dependencies": {
|
|
39
70
|
"@radix-ui/react-context": "1.1.1",
|
|
40
71
|
"effect": "3.20.0",
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/app-toolkit": "0.8.4-main.
|
|
43
|
-
"@dxos/echo": "0.8.4-main.
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/plugin-
|
|
47
|
-
"@dxos/plugin-space": "0.8.4-main.
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-ui-
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/react-
|
|
52
|
-
"@dxos/
|
|
72
|
+
"@dxos/app-framework": "0.8.4-main.4f23b4e393",
|
|
73
|
+
"@dxos/app-toolkit": "0.8.4-main.4f23b4e393",
|
|
74
|
+
"@dxos/echo": "0.8.4-main.4f23b4e393",
|
|
75
|
+
"@dxos/plugin-client": "0.8.4-main.4f23b4e393",
|
|
76
|
+
"@dxos/compute": "0.8.4-main.4f23b4e393",
|
|
77
|
+
"@dxos/plugin-graph": "0.8.4-main.4f23b4e393",
|
|
78
|
+
"@dxos/plugin-space": "0.8.4-main.4f23b4e393",
|
|
79
|
+
"@dxos/react-client": "0.8.4-main.4f23b4e393",
|
|
80
|
+
"@dxos/react-ui-stack": "0.8.4-main.4f23b4e393",
|
|
81
|
+
"@dxos/util": "0.8.4-main.4f23b4e393",
|
|
82
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.4f23b4e393",
|
|
83
|
+
"@dxos/async": "0.8.4-main.4f23b4e393"
|
|
53
84
|
},
|
|
54
85
|
"devDependencies": {
|
|
55
86
|
"@types/react": "~19.2.7",
|
|
56
87
|
"@types/react-dom": "~19.2.3",
|
|
57
88
|
"react": "~19.2.3",
|
|
58
89
|
"react-dom": "~19.2.3",
|
|
59
|
-
"vite": "^
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
90
|
+
"vite": "^8.0.10",
|
|
91
|
+
"@dxos/plugin-testing": "0.8.4-main.4f23b4e393",
|
|
92
|
+
"@dxos/storybook-utils": "0.8.4-main.4f23b4e393",
|
|
93
|
+
"@dxos/react-ui": "0.8.4-main.4f23b4e393",
|
|
94
|
+
"@dxos/ui-theme": "0.8.4-main.4f23b4e393"
|
|
63
95
|
},
|
|
64
96
|
"peerDependencies": {
|
|
65
97
|
"effect": "3.20.0",
|
|
66
98
|
"react": "~19.2.3",
|
|
67
99
|
"react-dom": "~19.2.3",
|
|
68
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
69
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
100
|
+
"@dxos/react-ui": "0.8.4-main.4f23b4e393",
|
|
101
|
+
"@dxos/ui-theme": "0.8.4-main.4f23b4e393"
|
|
70
102
|
},
|
|
71
103
|
"publishConfig": {
|
|
72
104
|
"access": "public"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { ClientPlugin } from '@dxos/plugin-client/plugin';
|
|
8
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
9
|
+
|
|
10
|
+
import { TemplatePlugin } from '#plugin';
|
|
11
|
+
|
|
12
|
+
import { meta } from './meta';
|
|
13
|
+
|
|
14
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
15
|
+
|
|
16
|
+
describe('TemplatePlugin', () => {
|
|
17
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
18
|
+
await using harness = await createComposerTestApp({
|
|
19
|
+
plugins: [ClientPlugin({}), TemplatePlugin()],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
expect(harness.manager.getActive()).toEqual(
|
|
23
|
+
expect.arrayContaining([moduleId('CreateObject'), moduleId('schema'), moduleId('ReactSurface')]),
|
|
24
|
+
);
|
|
25
|
+
}, 20_000);
|
|
26
|
+
});
|
package/src/TemplatePlugin.tsx
CHANGED
|
@@ -2,44 +2,20 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Option from 'effect/Option';
|
|
7
|
-
|
|
8
5
|
import { Plugin } from '@dxos/app-framework';
|
|
9
6
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
10
|
-
import { Annotation } from '@dxos/echo';
|
|
11
|
-
import { Operation } from '@dxos/operation';
|
|
12
|
-
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
13
|
-
import { type CreateObject } from '@dxos/plugin-space/types';
|
|
14
7
|
|
|
15
|
-
import { ReactSurface } from '#capabilities';
|
|
8
|
+
import { CreateObject, ReactSurface } from '#capabilities';
|
|
16
9
|
import { meta } from '#meta';
|
|
10
|
+
import { translations } from '#translations';
|
|
17
11
|
import { Template } from '#types';
|
|
18
12
|
|
|
19
|
-
import { translations } from './translations';
|
|
20
|
-
|
|
21
13
|
export const TemplatePlugin = Plugin.define(meta).pipe(
|
|
22
|
-
AppPlugin.
|
|
23
|
-
metadata: {
|
|
24
|
-
id: Template.Data.typename,
|
|
25
|
-
metadata: {
|
|
26
|
-
icon: Annotation.IconAnnotation.get(Template.Data).pipe(Option.getOrThrow).icon,
|
|
27
|
-
iconHue: Annotation.IconAnnotation.get(Template.Data).pipe(Option.getOrThrow).hue ?? 'white',
|
|
28
|
-
createObject: ((props, options) =>
|
|
29
|
-
Effect.gen(function* () {
|
|
30
|
-
const object = Template.make(props);
|
|
31
|
-
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
32
|
-
object,
|
|
33
|
-
target: options.target,
|
|
34
|
-
hidden: true,
|
|
35
|
-
targetNodeId: options.targetNodeId,
|
|
36
|
-
});
|
|
37
|
-
})) satisfies CreateObject,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
}),
|
|
14
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
41
15
|
AppPlugin.addSchemaModule({ schema: [Template.Data] }),
|
|
42
16
|
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
43
17
|
AppPlugin.addTranslationsModule({ translations }),
|
|
44
18
|
Plugin.make,
|
|
45
19
|
);
|
|
20
|
+
|
|
21
|
+
export default TemplatePlugin;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
9
|
+
import { SpaceOperation } from '@dxos/plugin-space';
|
|
10
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
11
|
+
|
|
12
|
+
import { Template } from '#types';
|
|
13
|
+
|
|
14
|
+
export default Capability.makeModule(
|
|
15
|
+
Effect.fnUntraced(function* () {
|
|
16
|
+
return Capability.contributes(SpaceCapabilities.CreateObjectEntry, {
|
|
17
|
+
id: Template.Data.typename,
|
|
18
|
+
createObject: (props, options) =>
|
|
19
|
+
Effect.gen(function* () {
|
|
20
|
+
const object = Template.make(props);
|
|
21
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
22
|
+
object,
|
|
23
|
+
target: options.target,
|
|
24
|
+
hidden: true,
|
|
25
|
+
targetNodeId: options.targetNodeId,
|
|
26
|
+
});
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
29
|
+
}),
|
|
30
|
+
);
|
package/src/index.ts
CHANGED
package/src/plugin.ts
ADDED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// src/meta.ts
|
|
2
|
-
import { trim } from "@dxos/util";
|
|
3
|
-
var meta = {
|
|
4
|
-
id: "org.dxos.plugin.template",
|
|
5
|
-
name: "Template",
|
|
6
|
-
description: trim`
|
|
7
|
-
Create reusable templates for documents, tables, and other objects.
|
|
8
|
-
Define structured patterns that can be quickly instantiated with pre-configured content and settings.
|
|
9
|
-
`,
|
|
10
|
-
icon: "ph--asterisk--regular",
|
|
11
|
-
iconHue: "sky",
|
|
12
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template"
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
// src/TemplatePlugin.tsx
|
|
16
|
-
import * as Effect from "effect/Effect";
|
|
17
|
-
import * as Option from "effect/Option";
|
|
18
|
-
import { Plugin } from "@dxos/app-framework";
|
|
19
|
-
import { AppPlugin } from "@dxos/app-toolkit";
|
|
20
|
-
import { Annotation } from "@dxos/echo";
|
|
21
|
-
import { Operation } from "@dxos/operation";
|
|
22
|
-
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
23
|
-
import { ReactSurface } from "#capabilities";
|
|
24
|
-
import { meta as meta3 } from "#meta";
|
|
25
|
-
import { Template as Template2 } from "#types";
|
|
26
|
-
|
|
27
|
-
// src/translations.ts
|
|
28
|
-
import { meta as meta2 } from "#meta";
|
|
29
|
-
import { Template } from "#types";
|
|
30
|
-
var translations = [
|
|
31
|
-
{
|
|
32
|
-
"en-US": {
|
|
33
|
-
[Template.Data.typename]: {
|
|
34
|
-
"typename.label": "Template",
|
|
35
|
-
"typename.label_zero": "Templates",
|
|
36
|
-
"typename.label_one": "Template",
|
|
37
|
-
"typename.label_other": "Templates",
|
|
38
|
-
"object-name.placeholder": "New template",
|
|
39
|
-
"add-object.label": "Add template",
|
|
40
|
-
"rename-object.label": "Rename template",
|
|
41
|
-
"delete-object.label": "Delete template",
|
|
42
|
-
"object-deleted.label": "Template deleted"
|
|
43
|
-
},
|
|
44
|
-
[meta2.id]: {
|
|
45
|
-
"plugin.name": "Template"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
// src/TemplatePlugin.tsx
|
|
52
|
-
var TemplatePlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
53
|
-
metadata: {
|
|
54
|
-
id: Template2.Data.typename,
|
|
55
|
-
metadata: {
|
|
56
|
-
icon: Annotation.IconAnnotation.get(Template2.Data).pipe(Option.getOrThrow).icon,
|
|
57
|
-
iconHue: Annotation.IconAnnotation.get(Template2.Data).pipe(Option.getOrThrow).hue ?? "white",
|
|
58
|
-
createObject: (props, options) => Effect.gen(function* () {
|
|
59
|
-
const object = Template2.make(props);
|
|
60
|
-
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
61
|
-
object,
|
|
62
|
-
target: options.target,
|
|
63
|
-
hidden: true,
|
|
64
|
-
targetNodeId: options.targetNodeId
|
|
65
|
-
});
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}), AppPlugin.addSchemaModule({
|
|
70
|
-
schema: [
|
|
71
|
-
Template2.Data
|
|
72
|
-
]
|
|
73
|
-
}), AppPlugin.addSurfaceModule({
|
|
74
|
-
activate: ReactSurface
|
|
75
|
-
}), AppPlugin.addTranslationsModule({
|
|
76
|
-
translations
|
|
77
|
-
}), Plugin.make);
|
|
78
|
-
export {
|
|
79
|
-
TemplatePlugin,
|
|
80
|
-
meta
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts", "../../../src/TemplatePlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.template',\n name: 'Template',\n description: trim`\n Create reusable templates for documents, tables, and other objects.\n Define structured patterns that can be quickly instantiated with pre-configured content and settings.\n `,\n icon: 'ph--asterisk--regular',\n iconHue: 'sky',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template',\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Annotation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { Template } from '#types';\n\nimport { translations } from './translations';\n\nexport const TemplatePlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Template.Data.typename,\n metadata: {\n icon: Annotation.IconAnnotation.get(Template.Data).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(Template.Data).pipe(Option.getOrThrow).hue ?? 'white',\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = Template.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Template.Data] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Template } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Template.Data.typename]: {\n 'typename.label': 'Template',\n 'typename.label_zero': 'Templates',\n 'typename.label_one': 'Template',\n 'typename.label_other': 'Templates',\n 'object-name.placeholder': 'New template',\n 'add-object.label': 'Add template',\n 'rename-object.label': 'Rename template',\n 'delete-object.label': 'Delete template',\n 'object-deleted.label': 'Template deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Template',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
-
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;AACV;;;ACbA,YAAYC,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,sBAAsB;AAG/B,SAASC,oBAAoB;AAC7B,SAASC,QAAAA,aAAY;AACrB,SAASC,YAAAA,iBAAgB;;;ACVzB,SAASC,QAAAA,aAAY;AACrB,SAASC,gBAAgB;AAElB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,SAASC,KAAKC,QAAQ,GAAG;QACxB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,MAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;ADPK,IAAMC,iBAAiBC,OAAOC,OAAOC,KAAAA,EAAMC,KAChDC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,UAASC,KAAKC;IAClBJ,UAAU;MACRK,MAAMC,WAAWC,eAAeC,IAAIN,UAASC,IAAI,EAAEN,KAAYY,iBAAU,EAAEJ;MAC3EK,SAASJ,WAAWC,eAAeC,IAAIN,UAASC,IAAI,EAAEN,KAAYY,iBAAU,EAAEE,OAAO;MACrFC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASd,UAASe,KAAKJ,KAAAA;AAC7B,eAAO,OAAOK,UAAUC,OAAOC,eAAeC,WAAW;UACvDL;UACAM,QAAQR,QAAQQ;UAChBC,QAAQ;UACRC,cAAcV,QAAQU;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACA1B,UAAU2B,gBAAgB;EAAEC,QAAQ;IAACxB,UAASC;;AAAM,CAAA,GACpDL,UAAU6B,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpD/B,UAAUgC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CrC,OAAOuB,IAAI;",
|
|
6
|
-
"names": ["trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "Effect", "Option", "Plugin", "AppPlugin", "Annotation", "Operation", "SpaceOperation", "ReactSurface", "meta", "Template", "meta", "Template", "translations", "Template", "Data", "typename", "meta", "id", "TemplatePlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Template", "Data", "typename", "icon", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "Operation", "invoke", "SpaceOperation", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":1835,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2680,"imports":[{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/TemplatePlugin.tsx":{"bytes":5932,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":557,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TemplatePlugin.tsx","kind":"import-statement","original":"./TemplatePlugin"}],"format":"esm"},"src/types/schema.ts":{"bytes":2327,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":463,"imports":[{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5113},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["TemplatePlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":444},"src/index.ts":{"bytesInOutput":0},"src/TemplatePlugin.tsx":{"bytesInOutput":1314},"src/translations.ts":{"bytesInOutput":647}},"bytes":2570},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1272},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["Template"],"entryPoint":"src/types/index.ts","inputs":{"src/types/schema.ts":{"bytesInOutput":478},"src/types/index.ts":{"bytesInOutput":0}},"bytes":559}}}
|