@mccaskie-labs/workbench-site 0.13.0 → 0.13.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @mccaskie-labs/workbench-site
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - A page with a tool's own section imports `../lib/wiring.ts`, the template's tools wiring registry, which installs itself on import. A tool's section function reads its settings and database client from there, even when the page is drawn directly (as the generated pages test does). Pages without a tool section are unchanged.
8
+
3
9
  ## 0.13.0
4
10
 
5
11
  ### Minor Changes
package/dist/builder.js CHANGED
@@ -344,6 +344,8 @@ function pageFile(r, version, base, pathOf) {
344
344
  "",
345
345
  ...(used.length ? [`import { ${used.join(", ")} } from "${PACKAGE}";`] : []),
346
346
  ...toolImports,
347
+ // The tools' wiring registry (the template's src/lib/wiring.ts installs it on import), which a tool's section reads.
348
+ ...(tools.length ? [`import "../lib/wiring.ts";`] : []),
347
349
  ...(store.length ? [`import { ${store.join(", ")} } from "./enquiry-store.ts";`] : []),
348
350
  ...(guide ? [`import { guideView, styleGuide } from "@mccaskie-labs/workbench-ui";`, `import { SAMPLES } from "../samples.generated.ts";`] : []),
349
351
  ...(looks ? [`import { lookPreview } from "@mccaskie-labs/workbench-ui";`] : []),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-site",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "A Workbench project's standard pages: page recipes, the builder that turns them into thin page files calling Workbench's tools, and the page frames and sections they are drawn with (wb-site-*, restylable, on the project's theme tokens).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",