@jskit-ai/ui-generator 0.1.21 → 0.1.23

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.21",
4
+ version: "0.1.23",
5
5
  kind: "generator",
6
6
  description: "Create non-CRUD pages, reusable UI elements, and subpage hosts.",
7
7
  options: {
@@ -278,7 +278,7 @@ export default Object.freeze({
278
278
  mutations: {
279
279
  dependencies: {
280
280
  runtime: {
281
- "@jskit-ai/users-web": "0.1.53"
281
+ "@jskit-ai/users-web": "0.1.55"
282
282
  },
283
283
  dev: {}
284
284
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jskit-ai/ui-generator",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
7
7
  },
8
8
  "dependencies": {
9
- "@jskit-ai/kernel": "0.1.38",
10
- "@jskit-ai/shell-web": "0.1.37"
9
+ "@jskit-ai/kernel": "0.1.40",
10
+ "@jskit-ai/shell-web": "0.1.39"
11
11
  },
12
12
  "exports": {
13
13
  "./server/buildTemplateContext": "./src/server/buildTemplateContext.js"
@@ -32,8 +32,8 @@ function renderPageLinkPlacementBlock({
32
32
  " props: {\n" +
33
33
  ` label: "${label}",\n` +
34
34
  ` surface: "${surface}",\n` +
35
- ` workspaceSuffix: "${context.__JSKIT_UI_LINK_WORKSPACE_SUFFIX__}",\n` +
36
- ` nonWorkspaceSuffix: "${context.__JSKIT_UI_LINK_NON_WORKSPACE_SUFFIX__}",\n` +
35
+ ` scopedSuffix: "${context.__JSKIT_UI_LINK_WORKSPACE_SUFFIX__}",\n` +
36
+ ` unscopedSuffix: "${context.__JSKIT_UI_LINK_NON_WORKSPACE_SUFFIX__}",\n` +
37
37
  `${context.__JSKIT_UI_LINK_TO_PROP_LINE__} },\n` +
38
38
  `${String(context.__JSKIT_UI_LINK_WHEN_LINE__ || "")}` +
39
39
  " });\n" +
@@ -84,7 +84,7 @@ test("ui-generator page subcommand creates an index page from an explicit target
84
84
 
85
85
  const placementSource = await readFile(path.join(appRoot, "src", "placement.js"), "utf8");
86
86
  assert.match(placementSource, /id: "ui-generator\.page\.admin\.practice\.link"/);
87
- assert.match(placementSource, /workspaceSuffix: "\/practice"/);
87
+ assert.match(placementSource, /scopedSuffix: "\/practice"/);
88
88
  assert.match(placementSource, /label: "Practice"/);
89
89
  });
90
90
  });
@@ -107,7 +107,7 @@ test("ui-generator page subcommand creates a file route and derives label from t
107
107
  assert.match(pageSource, /<h1 class="text-h5 mb-2">Contact Id<\/h1>/);
108
108
 
109
109
  const placementSource = await readFile(path.join(appRoot, "src", "placement.js"), "utf8");
110
- assert.match(placementSource, /workspaceSuffix: "\/contacts\/\[contactId\]"/);
110
+ assert.match(placementSource, /scopedSuffix: "\/contacts\/\[contactId\]"/);
111
111
  assert.match(placementSource, /id: "ui-generator\.page\.admin\.contacts\.contact-id\.link"/);
112
112
  assert.match(placementSource, /label: "Contact Id"/);
113
113
  });
@@ -275,7 +275,7 @@ test("ui-generator page subcommand chooses the most specific matching surface pa
275
275
 
276
276
  const placementSource = await readFile(path.join(appRoot, "src", "placement.js"), "utf8");
277
277
  assert.match(placementSource, /id: "ui-generator\.page\.admin\.practice\.link"/);
278
- assert.match(placementSource, /workspaceSuffix: "\/practice"/);
278
+ assert.match(placementSource, /scopedSuffix: "\/practice"/);
279
279
  });
280
280
  });
281
281
 
@@ -314,7 +314,7 @@ test("ui-generator page subcommand accepts target files with a src/pages prefix"
314
314
  assert.match(pageSource, /Practice/);
315
315
  const placementSource = await readFile(path.join(appRoot, "src", "placement.js"), "utf8");
316
316
  assert.match(placementSource, /id: "ui-generator\.page\.admin\.practice\.link"/);
317
- assert.match(placementSource, /workspaceSuffix: "\/practice"/);
317
+ assert.match(placementSource, /scopedSuffix: "\/practice"/);
318
318
  });
319
319
  });
320
320