@dxos/plugin-template 0.8.4-main.72ec0f3 → 0.8.4-main.7ace549

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.8.4-main.72ec0f3",
3
+ "version": "0.8.4-main.7ace549",
4
4
  "description": "Template for new plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -35,17 +35,17 @@
35
35
  "dependencies": {
36
36
  "@preact-signals/safe-react": "^0.9.0",
37
37
  "@preact/signals-core": "^1.12.1",
38
- "@radix-ui/react-context": "^1.1.1",
38
+ "@radix-ui/react-context": "1.1.1",
39
39
  "effect": "3.18.3",
40
- "@dxos/app-framework": "0.8.4-main.72ec0f3",
41
- "@dxos/echo": "0.8.4-main.72ec0f3",
42
- "@dxos/plugin-client": "0.8.4-main.72ec0f3",
43
- "@dxos/async": "0.8.4-main.72ec0f3",
44
- "@dxos/plugin-graph": "0.8.4-main.72ec0f3",
45
- "@dxos/plugin-space": "0.8.4-main.72ec0f3",
46
- "@dxos/react-ui-stack": "0.8.4-main.72ec0f3",
47
- "@dxos/react-client": "0.8.4-main.72ec0f3",
48
- "@dxos/util": "0.8.4-main.72ec0f3"
40
+ "@dxos/app-framework": "0.8.4-main.7ace549",
41
+ "@dxos/async": "0.8.4-main.7ace549",
42
+ "@dxos/echo": "0.8.4-main.7ace549",
43
+ "@dxos/plugin-graph": "0.8.4-main.7ace549",
44
+ "@dxos/plugin-client": "0.8.4-main.7ace549",
45
+ "@dxos/plugin-space": "0.8.4-main.7ace549",
46
+ "@dxos/util": "0.8.4-main.7ace549",
47
+ "@dxos/react-ui-stack": "0.8.4-main.7ace549",
48
+ "@dxos/react-client": "0.8.4-main.7ace549"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/react": "~19.2.2",
@@ -53,16 +53,16 @@
53
53
  "react": "~19.2.0",
54
54
  "react-dom": "~19.2.0",
55
55
  "vite": "7.1.9",
56
- "@dxos/react-ui": "0.8.4-main.72ec0f3",
57
- "@dxos/react-ui-theme": "0.8.4-main.72ec0f3",
58
- "@dxos/storybook-utils": "0.8.4-main.72ec0f3"
56
+ "@dxos/react-ui": "0.8.4-main.7ace549",
57
+ "@dxos/react-ui-theme": "0.8.4-main.7ace549",
58
+ "@dxos/storybook-utils": "0.8.4-main.7ace549"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "effect": "^3.13.3",
62
62
  "react": "^19.0.0",
63
63
  "react-dom": "^19.0.0",
64
- "@dxos/react-ui": "0.8.4-main.72ec0f3",
65
- "@dxos/react-ui-theme": "0.8.4-main.72ec0f3"
64
+ "@dxos/react-ui": "0.8.4-main.7ace549",
65
+ "@dxos/react-ui-theme": "0.8.4-main.7ace549"
66
66
  },
67
67
  "publishConfig": {
68
68
  "access": "public"
@@ -4,8 +4,7 @@
4
4
 
5
5
  import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
6
6
  import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
7
- import { SpaceCapabilities } from '@dxos/plugin-space';
8
- import { defineObjectForm } from '@dxos/plugin-space/types';
7
+ import { type CreateObjectIntent } from '@dxos/plugin-space/types';
9
8
 
10
9
  import { IntentResolver, ReactSurface } from './capabilities';
11
10
  import { meta } from './meta';
@@ -27,21 +26,11 @@ export const TemplatePlugin = definePlugin(meta, () => [
27
26
  metadata: {
28
27
  icon: 'ph--asterisk--regular',
29
28
  iconHue: 'sky',
29
+ createObjectIntent: (() => createIntent(Template.Create)) satisfies CreateObjectIntent,
30
+ addToCollectionOnCreate: true,
30
31
  },
31
32
  }),
32
33
  }),
33
- defineModule({
34
- id: `${meta.id}/module/object-form`,
35
- activatesOn: ClientEvents.SetupSchema,
36
- activate: () =>
37
- contributes(
38
- SpaceCapabilities.ObjectForm,
39
- defineObjectForm({
40
- objectSchema: Template.Data,
41
- getIntent: () => createIntent(Template.Create),
42
- }),
43
- ),
44
- }),
45
34
  defineModule({
46
35
  id: `${meta.id}/module/schema`,
47
36
  activatesOn: ClientEvents.SetupSchema,
@@ -20,7 +20,7 @@ const [ExampleContextProvider, useExampleContext] = createContext<ExampleContext
20
20
  // Root
21
21
  //
22
22
 
23
- type ExampleRootProps = PropsWithChildren;
23
+ type ExampleRootProps = PropsWithChildren<{}>;
24
24
 
25
25
  const ExampleRoot = ({ children }: ExampleRootProps) => {
26
26
  return <ExampleContextProvider>{children}</ExampleContextProvider>;
@@ -18,6 +18,7 @@ export const translations = [
18
18
  'object name placeholder': 'New template',
19
19
  'rename object label': 'Rename template',
20
20
  'delete object label': 'Delete template',
21
+ 'object deleted label': 'Template deleted',
21
22
  },
22
23
  [meta.id]: {
23
24
  'plugin name': 'Template',