@dxos/plugin-template 0.6.3-main.9e4e207 → 0.6.3-next.2f65b78
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":"plugin.tsx.t.d.ts","sourceRoot":"","sources":["../../../src/src/plugin.tsx.t.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,
|
|
1
|
+
{"version":3,"file":"plugin.tsx.t.d.ts","sourceRoot":"","sources":["../../../src/src/plugin.tsx.t.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBA2DE"}
|
|
@@ -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: ({ parent, plugins }) => {},
|
|
52
52
|
},
|
|
53
53
|
translations: [
|
|
54
54
|
{
|
|
@@ -63,6 +63,6 @@ exports.default = template_t_1.default.define.script({
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
export default plugin;
|
|
66
|
-
|
|
66
|
+
`
|
|
67
67
|
});
|
|
68
68
|
//# sourceMappingURL=plugin.tsx.t.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.tsx.t.js","sourceRoot":"","sources":["../../../src/src/plugin.tsx.t.ts"],"names":[],"mappings":";;;;;AAAA,uCAAoC;AACpC,+DAAqC;AAErC,kBAAe,oBAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,aAAK,CAAA,gBAAgB,
|
|
1
|
+
{"version":3,"file":"plugin.tsx.t.js","sourceRoot":"","sources":["../../../src/src/plugin.tsx.t.ts"],"names":[],"mappings":";;;;;AAAA,uCAAoC;AACpC,+DAAqC;AAErC,kBAAe,oBAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,IAAA,aAAK,CAAA,gBAAgB,EAAA;MAC5D,OAAO;;;;;;;;;;;;;gCAamB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CjC;CACF,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-template",
|
|
3
|
-
"version": "0.6.3-
|
|
3
|
+
"version": "0.6.3-next.2f65b78",
|
|
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-
|
|
24
|
+
"@dxos/plate": "0.6.3-next.2f65b78"
|
|
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/
|
|
34
|
-
"@dxos/shell": "0.6.3-
|
|
35
|
-
"@dxos/
|
|
33
|
+
"@dxos/config": "0.6.3-next.2f65b78",
|
|
34
|
+
"@dxos/shell": "0.6.3-next.2f65b78",
|
|
35
|
+
"@dxos/app-framework": "0.6.3-next.2f65b78"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
package/src/src/plugin.tsx.t.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { plate } from
|
|
2
|
-
import template from
|
|
1
|
+
import { plate } from "@dxos/plate";
|
|
2
|
+
import template from "../template.t";
|
|
3
3
|
|
|
4
4
|
export default template.define.script({
|
|
5
|
-
content: ({ input: { name }, imports }) => plate/* javascript
|
|
5
|
+
content: ({ input: { name }, imports }) => plate/* javascript */`
|
|
6
6
|
${imports}
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Asterisk } from '@phosphor-icons/react';
|
|
@@ -44,7 +44,7 @@ export default template.define.script({
|
|
|
44
44
|
resolver: (intent) => {},
|
|
45
45
|
},
|
|
46
46
|
graph: {
|
|
47
|
-
builder: (plugins) => {},
|
|
47
|
+
builder: ({ parent, plugins }) => {},
|
|
48
48
|
},
|
|
49
49
|
translations: [
|
|
50
50
|
{
|
|
@@ -59,5 +59,5 @@ export default template.define.script({
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
export default plugin;
|
|
62
|
-
|
|
63
|
-
})
|
|
62
|
+
`
|
|
63
|
+
})
|