@jskit-ai/ui-generator 0.1.17 → 0.1.18

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,7 +1,7 @@
1
1
  export default Object.freeze({
2
2
  packageVersion: 1,
3
3
  packageId: "@jskit-ai/ui-generator",
4
- version: "0.1.17",
4
+ version: "0.1.18",
5
5
  kind: "generator",
6
6
  description: "Create non-CRUD pages, reusable UI elements, and subpage hosts.",
7
7
  options: {
@@ -277,7 +277,7 @@ export default Object.freeze({
277
277
  mutations: {
278
278
  dependencies: {
279
279
  runtime: {
280
- "@jskit-ai/users-web": "0.1.49"
280
+ "@jskit-ai/users-web": "0.1.50"
281
281
  },
282
282
  dev: {}
283
283
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jskit-ai/ui-generator",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
7
7
  },
8
8
  "dependencies": {
9
- "@jskit-ai/kernel": "0.1.34",
10
- "@jskit-ai/shell-web": "0.1.33"
9
+ "@jskit-ai/kernel": "0.1.35",
10
+ "@jskit-ai/shell-web": "0.1.34"
11
11
  },
12
12
  "exports": {
13
13
  "./server/buildTemplateContext": "./src/server/buildTemplateContext.js"
@@ -46,17 +46,8 @@ export default function getPlacements() {
46
46
  path.join(appRoot, "packages", "main", "src", "client", "providers", "MainClientProvider.js"),
47
47
  `const mainClientComponents = [];
48
48
 
49
- function registerMainClientComponent(componentToken, resolveComponent) {
50
- const token = String(componentToken || "").trim();
51
- if (!token || typeof resolveComponent !== "function") {
52
- return;
53
- }
54
- mainClientComponents.push(
55
- Object.freeze({
56
- token,
57
- resolveComponent
58
- })
59
- );
49
+ function registerMainClientComponent(token, resolveComponent) {
50
+ mainClientComponents.push({ token, resolveComponent });
60
51
  }
61
52
 
62
53
  class MainClientProvider {}
@@ -59,17 +59,8 @@ export default function getPlacements() {
59
59
  path.join(appRoot, "packages", "main", "src", "client", "providers", "MainClientProvider.js"),
60
60
  `const mainClientComponents = [];
61
61
 
62
- function registerMainClientComponent(componentToken, resolveComponent) {
63
- const token = String(componentToken || "").trim();
64
- if (!token || typeof resolveComponent !== "function") {
65
- return;
66
- }
67
- mainClientComponents.push(
68
- Object.freeze({
69
- token,
70
- resolveComponent
71
- })
72
- );
62
+ function registerMainClientComponent(token, resolveComponent) {
63
+ mainClientComponents.push({ token, resolveComponent });
73
64
  }
74
65
 
75
66
  class MainClientProvider {}