@dxos/plugin-template 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112

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/dx.config.ts ADDED
@@ -0,0 +1,20 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Config2 } from '@dxos/app-framework/config';
6
+ import { trim } from '@dxos/util';
7
+
8
+ export default Config2.make({
9
+ plugin: {
10
+ key: 'org.dxos.plugin.template',
11
+ name: 'Template',
12
+ author: 'DXOS',
13
+ description: trim`
14
+ Create reusable templates for documents, tables, and other objects.
15
+ Define structured patterns that can be quickly instantiated with pre-configured content and settings.
16
+ `,
17
+ source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template',
18
+ icon: { key: 'ph--asterisk--regular', hue: 'sky' },
19
+ },
20
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-template",
3
- "version": "0.8.4-staging.60fe92afc8",
3
+ "version": "0.9.1-main.c7dcc2e112",
4
4
  "description": "Template for new plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -64,18 +64,19 @@
64
64
  "types": "dist/types/src/index.d.ts",
65
65
  "files": [
66
66
  "dist",
67
+ "dx.config.ts",
67
68
  "src"
68
69
  ],
69
70
  "dependencies": {
70
71
  "effect": "3.21.3",
71
- "@dxos/app-framework": "0.8.4-staging.60fe92afc8",
72
- "@dxos/compute": "0.8.4-staging.60fe92afc8",
73
- "@dxos/keys": "0.8.4-staging.60fe92afc8",
74
- "@dxos/echo": "0.8.4-staging.60fe92afc8",
75
- "@dxos/plugin-client": "0.8.4-staging.60fe92afc8",
76
- "@dxos/util": "0.8.4-staging.60fe92afc8",
77
- "@dxos/plugin-space": "0.8.4-staging.60fe92afc8",
78
- "@dxos/app-toolkit": "0.8.4-staging.60fe92afc8"
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"
79
80
  },
80
81
  "devDependencies": {
81
82
  "@types/react": "~19.2.7",
@@ -83,17 +84,17 @@
83
84
  "react": "~19.2.3",
84
85
  "react-dom": "~19.2.3",
85
86
  "vite": "^8.0.16",
86
- "@dxos/plugin-testing": "0.8.4-staging.60fe92afc8",
87
- "@dxos/react-ui": "0.8.4-staging.60fe92afc8",
88
- "@dxos/storybook-utils": "0.8.4-staging.60fe92afc8",
89
- "@dxos/ui-theme": "0.8.4-staging.60fe92afc8"
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"
90
91
  },
91
92
  "peerDependencies": {
92
93
  "effect": "3.21.3",
93
94
  "react": "~19.2.3",
94
95
  "react-dom": "~19.2.3",
95
- "@dxos/react-ui": "0.8.4-staging.60fe92afc8",
96
- "@dxos/ui-theme": "0.8.4-staging.60fe92afc8"
96
+ "@dxos/react-ui": "0.9.1-main.c7dcc2e112",
97
+ "@dxos/ui-theme": "0.9.1-main.c7dcc2e112"
97
98
  },
98
99
  "publishConfig": {
99
100
  "access": "public"
@@ -11,7 +11,7 @@ import { TemplatePlugin } from '#plugin';
11
11
 
12
12
  import { meta } from './meta';
13
13
 
14
- const moduleId = (name: string) => `${meta.id}.module.${name}`;
14
+ const moduleId = (name: string) => `${meta.profile.key}.module.${name}`;
15
15
 
16
16
  describe('TemplatePlugin', () => {
17
17
  test('modules activate on the expected events', async ({ expect }) => {
package/src/meta.ts CHANGED
@@ -3,18 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Plugin } from '@dxos/app-framework';
6
- import { DXN } from '@dxos/keys';
7
- import { trim } from '@dxos/util';
8
6
 
9
- export const meta = Plugin.makeMeta({
10
- key: DXN.make('org.dxos.plugin.template'),
11
- name: 'Template',
12
- author: 'DXOS',
13
- description: trim`
14
- Create reusable templates for documents, tables, and other objects.
15
- Define structured patterns that can be quickly instantiated with pre-configured content and settings.
16
- `,
17
- icon: 'ph--asterisk--regular',
18
- iconHue: 'sky',
19
- source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template',
20
- });
7
+ import config from '../dx.config';
8
+
9
+ export const meta = Plugin.getMetaFromConfig(config);
@@ -22,7 +22,7 @@ export const translations = [
22
22
  'delete-object.label': 'Delete template',
23
23
  'object-deleted.label': 'Template deleted',
24
24
  },
25
- [meta.id]: {
25
+ [meta.profile.key]: {
26
26
  'plugin.name': 'Template',
27
27
  },
28
28
  },
@@ -1,21 +0,0 @@
1
- // src/meta.ts
2
- import { Plugin } from "@dxos/app-framework";
3
- import { DXN } from "@dxos/keys";
4
- import { trim } from "@dxos/util";
5
- var meta = Plugin.makeMeta({
6
- key: DXN.make("org.dxos.plugin.template"),
7
- name: "Template",
8
- author: "DXOS",
9
- description: trim`
10
- Create reusable templates for documents, tables, and other objects.
11
- Define structured patterns that can be quickly instantiated with pre-configured content and settings.
12
- `,
13
- icon: "ph--asterisk--regular",
14
- iconHue: "sky",
15
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template"
16
- });
17
-
18
- export {
19
- meta
20
- };
21
- //# sourceMappingURL=chunk-7RN2XYO6.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nexport const meta = Plugin.makeMeta({\n key: DXN.make('org.dxos.plugin.template'),\n name: 'Template',\n author: 'DXOS',\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"],
5
- "mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,WAAW;AACpB,SAASC,YAAY;AAEd,IAAMC,OAAOH,OAAOI,SAAS;EAClCC,KAAKJ,IAAIK,KAAK,0BAAA;EACdC,MAAM;EACNC,QAAQ;EACRC,aAAaP;;;;EAIbQ,MAAM;EACNC,SAAS;EACTC,QAAQ;AACV,CAAA;",
6
- "names": ["Plugin", "DXN", "trim", "meta", "makeMeta", "key", "make", "name", "author", "description", "icon", "iconHue", "source"]
7
- }