@dxos/plugin-template 0.6.3-staging.9c1c979 → 0.6.3-staging.f9246a6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"main.tsx.t.d.ts","sourceRoot":"","sources":["../../../src/composer/main.tsx.t.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAqGG"}
1
+ {"version":3,"file":"main.tsx.t.d.ts","sourceRoot":"","sources":["../../../src/composer/main.tsx.t.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAkHG"}
@@ -10,6 +10,7 @@ exports.default = template_t_1.default.define.script({
10
10
  import "@dxosTheme";
11
11
 
12
12
  import React from "react";
13
+ import { registerSignalRuntime } from '@dxos/echo-signals';
13
14
  import { Status, ThemeProvider, Tooltip } from "@dxos/react-ui";
14
15
  import { defaultTx } from "@dxos/react-ui-theme";
15
16
  import { createApp, Plugin } from "@dxos/app-framework";
@@ -17,7 +18,8 @@ exports.default = template_t_1.default.define.script({
17
18
  import translations from "./translations";
18
19
 
19
20
  import ThemeMeta from "@braneframe/plugin-theme/meta";
20
- ${defaultPlugins && (0, plate_1.plate /* javascript */) `
21
+ ${defaultPlugins &&
22
+ (0, plate_1.plate /* javascript */) `
21
23
  import ClientMeta from "@braneframe/plugin-client/meta";
22
24
  import GraphMeta from "@braneframe/plugin-graph/meta";
23
25
  import LayoutMeta from "@braneframe/plugin-layout/meta";
@@ -34,7 +36,10 @@ exports.default = template_t_1.default.define.script({
34
36
  import { meta } from "../src/plugin";
35
37
 
36
38
  (async function () {
37
- ${defaultPlugins && (0, plate_1.plate /* javascript */) `
39
+ registerSignalRuntime();
40
+
41
+ ${defaultPlugins &&
42
+ (0, plate_1.plate /* javascript */) `
38
43
  const config = await createConfig();
39
44
  const services = await createClientServices(
40
45
  config,
@@ -65,7 +70,8 @@ exports.default = template_t_1.default.define.script({
65
70
  [ThemeMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-theme"), {
66
71
  appName: "Composer",
67
72
  }),
68
- ${defaultPlugins && (0, plate_1.plate /* javascript */) `
73
+ ${defaultPlugins &&
74
+ (0, plate_1.plate /* javascript */) `
69
75
  [LayoutMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-layout")),
70
76
  [NavTreeMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-navTree")),
71
77
  [SettingsMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-settings")),
@@ -87,7 +93,8 @@ exports.default = template_t_1.default.define.script({
87
93
  order: [
88
94
  // Outside of error boundary so error dialog is styled.
89
95
  ThemeMeta,
90
- ${defaultPlugins && (0, plate_1.plate /* javascript */) `
96
+ ${defaultPlugins &&
97
+ (0, plate_1.plate /* javascript */) `
91
98
  LayoutMeta,
92
99
  NavTreeMeta,
93
100
  SettingsMeta,
@@ -103,6 +110,6 @@ exports.default = template_t_1.default.define.script({
103
110
 
104
111
  createRoot(document.getElementById("root")!).render(<App />);
105
112
  })();
106
- `
113
+ `,
107
114
  });
108
115
  //# sourceMappingURL=main.tsx.t.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.tsx.t.js","sourceRoot":"","sources":["../../../src/composer/main.tsx.t.ts"],"names":[],"mappings":";;;;;AAAA,+DAAqC;AACrC,uCAAoC;AAEpC,kBAAe,oBAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,CAAC,IAAA,aAAK,CAAA,gBAAgB,EAAA;;;;;;;;;;;MAW7D,cAAc,IAAI,IAAA,aAAK,CAAA,gBAAgB,EAAA;;;;;;;;;;;;KAYxC;;;;;QAMG,cAAc,IAAI,IAAA,aAAK,CAAA,gBAAgB,EAAA;;;;;;;;;WAUzC;;;;;;;;;;;;;;;;;;;;;;YAsBM,cAAc,IAAI,IAAA,aAAK,CAAA,gBAAgB,EAAA;;;;;;;;;;;;;;;;WAgBxC;;;;;;YAMC,cAAc,IAAI,IAAA,aAAK,CAAA,gBAAgB,EAAA;;;;;;;;;WASxC;;;;;;;GAOR;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"main.tsx.t.js","sourceRoot":"","sources":["../../../src/composer/main.tsx.t.ts"],"names":[],"mappings":";;;;;AAAA,+DAAqC;AACrC,uCAAoC;AAEpC,kBAAe,oBAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,CAAC,IAAA,aAAK,CAAA,gBAAgB,EAAC;;;;;;;;;;;;MAa9D,cAAc;QACd,IAAA,aAAK,CAAA,gBAAgB,EAAC;;;;;;;;;;;;KAaxB;;;;;;;QAQI,cAAc;QACd,IAAA,aAAK,CAAA,gBAAgB,EAAC;;;;;;;;;WAUxB;;;;;;;;;;;;;;;;;;;;;;YAuBM,cAAc;QACd,IAAA,aAAK,CAAA,gBAAgB,EAAC;;;;;;;;;;;;;;;;WAiBxB;;;;;;YAOE,cAAc;QACd,IAAA,aAAK,CAAA,gBAAgB,EAAC;;;;;;;;;WAUxB;;;;;;;GAOP;CACF,CAAC,CAAC"}
@@ -48,7 +48,7 @@ exports.default = template_t_1.default.define.script({
48
48
  resolver: (intent) => {},
49
49
  },
50
50
  graph: {
51
- builder: (plugins) => {},
51
+ builder: (plugins) => [],
52
52
  },
53
53
  translations: [
54
54
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-template",
3
- "version": "0.6.3-staging.9c1c979",
3
+ "version": "0.6.3-staging.f9246a6",
4
4
  "description": "An template project for prototyping plugins for DXOS Composer.",
5
5
  "keywords": [
6
6
  "dxos",
@@ -21,7 +21,7 @@
21
21
  "chalk": "^4.1.0",
22
22
  "lodash.merge": "^4.6.2",
23
23
  "sanitize-filename": "1.6.3",
24
- "@dxos/plate": "0.6.3-staging.9c1c979"
24
+ "@dxos/plate": "0.6.3-staging.f9246a6"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@phosphor-icons/react": "^2.1.5",
@@ -30,9 +30,9 @@
30
30
  "ts-node": "10.9.1",
31
31
  "types-package-json": "^2.0.39",
32
32
  "typescript": "^5.4.5",
33
- "@dxos/app-framework": "0.6.3-staging.9c1c979",
34
- "@dxos/config": "0.6.3-staging.9c1c979",
35
- "@dxos/shell": "0.6.3-staging.9c1c979"
33
+ "@dxos/config": "0.6.3-staging.f9246a6",
34
+ "@dxos/shell": "0.6.3-staging.f9246a6",
35
+ "@dxos/app-framework": "0.6.3-staging.f9246a6"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
@@ -2,10 +2,11 @@ import template from '../template.t';
2
2
  import { plate } from '@dxos/plate';
3
3
 
4
4
  export default template.define.script({
5
- content: ({ input: { defaultPlugins } }) => plate/* javascript */`
5
+ content: ({ input: { defaultPlugins } }) => plate/* javascript */ `
6
6
  import "@dxosTheme";
7
7
 
8
8
  import React from "react";
9
+ import { registerSignalRuntime } from '@dxos/echo-signals';
9
10
  import { Status, ThemeProvider, Tooltip } from "@dxos/react-ui";
10
11
  import { defaultTx } from "@dxos/react-ui-theme";
11
12
  import { createApp, Plugin } from "@dxos/app-framework";
@@ -13,7 +14,9 @@ export default template.define.script({
13
14
  import translations from "./translations";
14
15
 
15
16
  import ThemeMeta from "@braneframe/plugin-theme/meta";
16
- ${defaultPlugins && plate/* javascript */`
17
+ ${
18
+ defaultPlugins &&
19
+ plate/* javascript */ `
17
20
  import ClientMeta from "@braneframe/plugin-client/meta";
18
21
  import GraphMeta from "@braneframe/plugin-graph/meta";
19
22
  import LayoutMeta from "@braneframe/plugin-layout/meta";
@@ -25,13 +28,17 @@ export default template.define.script({
25
28
 
26
29
  import { createClientServices } from "@dxos/react-client";
27
30
  import { createConfig } from "./config";
28
- `}
31
+ `
32
+ }
29
33
 
30
34
  import { meta } from "../src/plugin";
31
35
 
32
36
  (async function () {
37
+ registerSignalRuntime();
38
+
33
39
  ${
34
- defaultPlugins && plate/* javascript */`
40
+ defaultPlugins &&
41
+ plate/* javascript */ `
35
42
  const config = await createConfig();
36
43
  const services = await createClientServices(
37
44
  config,
@@ -63,7 +70,9 @@ export default template.define.script({
63
70
  [ThemeMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-theme"), {
64
71
  appName: "Composer",
65
72
  }),
66
- ${defaultPlugins && plate/* javascript */`
73
+ ${
74
+ defaultPlugins &&
75
+ plate/* javascript */ `
67
76
  [LayoutMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-layout")),
68
77
  [NavTreeMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-navTree")),
69
78
  [SettingsMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-settings")),
@@ -79,13 +88,16 @@ export default template.define.script({
79
88
  () => import("@braneframe/plugin-metadata")
80
89
  ),
81
90
  [StackMeta.id]: Plugin.lazy(() => import("@braneframe/plugin-stack")),
82
- `}
91
+ `
92
+ }
83
93
  [meta.id]: Plugin.lazy(() => import("../src/plugin")),
84
94
  },
85
95
  order: [
86
96
  // Outside of error boundary so error dialog is styled.
87
97
  ThemeMeta,
88
- ${defaultPlugins && plate/* javascript */`
98
+ ${
99
+ defaultPlugins &&
100
+ plate/* javascript */ `
89
101
  LayoutMeta,
90
102
  NavTreeMeta,
91
103
  SettingsMeta,
@@ -94,12 +106,13 @@ export default template.define.script({
94
106
  GraphMeta,
95
107
  MetadataMeta,
96
108
  StackMeta,
97
- `}
109
+ `
110
+ }
98
111
  meta,
99
112
  ],
100
113
  });
101
114
 
102
115
  createRoot(document.getElementById("root")!).render(<App />);
103
116
  })();
104
- `
105
- });
117
+ `,
118
+ });
@@ -44,7 +44,7 @@ export default template.define.script({
44
44
  resolver: (intent) => {},
45
45
  },
46
46
  graph: {
47
- builder: (plugins) => {},
47
+ builder: (plugins) => [],
48
48
  },
49
49
  translations: [
50
50
  {