@mccaskie-labs/workbench-library 0.1.0 → 0.2.0

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-library
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Every tool follows the project's look (docs/theming.md step 2, Robert, 24 November 2026). Each tool's colour, font and corner variables now default to the shared theme tokens with a Clean, light fallback (`--wb-booking-accent: var(--wb-accent, #2563eb)`), and tool colours with no token of their own (a recessed panel, a status mark, a tinted pill) are worked out from the tokens with `color-mix()`. So a page drawn with these tools takes the look in the project's workbench.css: light (Clean) by default, or whatever brand.json and project.css say. Breaking for a project page that relied on the old dark defaults: give brand.json the look you want, or set the tokens in project.css. Variable and class names are unchanged, so existing project.css overrides still win. workbench-ui: `styleProblems` refuses a tool's text, muted, surface, line, background, accent, focus, danger, success, warning, font or radius variable whose default doesn't read its token (email, PDF and image follow in step 3); the `wb-ui` class no longer forces dark, and Workbench's own pages (`STYLE`, `UI_CSS`) keep their dark values; `shell` with `stylesheets` (a project page) no longer says dark in its meta tag.
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  - First version (`docs/capabilities/28-library.md`, block B9): `createLibrary` over the app's own database with `libraryMigration`, and files in the app's own R2 bucket. Courses, shows and shelves of items with words and a YouTube or Vimeo player, audio, a PDF, a picture or a download. Each collection is open to everyone, anyone signed in, a plan feature, or buyers (`purchase`, `grant` on the payments tool's `paid` outcome, once per payment; `revoke` after a refund; access for good or a number of months). Free preview items, lessons that open a set number of days after the person started (midnight in the project's time zone), scheduled items, short-lived signed file links and `serveFile` with Range support, sponsor slots with dates, a podcast feed for public shows, `finished` answering the progress tool's mark, `mine` for the member area, and `tick`, `cleanup` and `forget`. Service role only. The collection page, item page, locked notice and member's list in `./ui` (`wb-library-*`, `LIBRARY_STYLES`, words in English, Tagalog and Taglish, money to 2 decimal places), and `npx workbench-library init|generate|migration`.
package/dist/cli.js CHANGED
File without changes
package/dist/styles.js CHANGED
@@ -16,14 +16,14 @@ export const LIBRARY_STYLES = {
16
16
  title: "Library: courses, shows and resources",
17
17
  prefix: "wb-library-",
18
18
  variables: [
19
- { name: "--wb-library-text", value: "#e8e8ec", about: "Text: titles, lessons, notes" },
20
- { name: "--wb-library-muted", value: "#9a9aa6", about: "Quieter text: running times, dates, counts" },
21
- { name: "--wb-library-surface", value: "#1b1b1f", about: "Background of the lists, notices and player" },
22
- { name: "--wb-library-line", value: "#33333b", about: "Borders and dividers" },
23
- { name: "--wb-library-accent", value: "#4c8dff", about: "Links, buttons and the preview badge" },
24
- { name: "--wb-library-good", value: "#3fb37f", about: "Done ticks and the done badge" },
25
- { name: "--wb-library-warn", value: "#d9822b", about: "The edge of a locked notice" },
26
- { name: "--wb-library-radius", value: "8px", about: "Corner rounding" },
19
+ { name: "--wb-library-text", value: "var(--wb-text, #1f2937)", about: "Text: titles, lessons, notes" },
20
+ { name: "--wb-library-muted", value: "var(--wb-muted, #5b6472)", about: "Quieter text: running times, dates, counts" },
21
+ { name: "--wb-library-surface", value: "var(--wb-surface, #f7f8f8)", about: "Background of the lists, notices and player" },
22
+ { name: "--wb-library-line", value: "var(--wb-line, #d7d8db)", about: "Borders and dividers" },
23
+ { name: "--wb-library-accent", value: "var(--wb-accent, #2563eb)", about: "Links, buttons and the preview badge" },
24
+ { name: "--wb-library-good", value: "var(--wb-success, #15803d)", about: "Done ticks and the done badge" },
25
+ { name: "--wb-library-warn", value: "var(--wb-warning, #a15c07)", about: "The edge of a locked notice" },
26
+ { name: "--wb-library-radius", value: "var(--wb-radius, 8px)", about: "Corner rounding" },
27
27
  { name: "--wb-library-measure", value: "42rem", about: "The widest a page's text runs" },
28
28
  ],
29
29
  classes: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-library",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Courses, shows and member content for Workbench apps: lessons and episodes with words, embedded videos and files in the app's own R2 bucket, shown to everyone, signed-in members, a plan feature or buyers, with dripped lessons, scheduled items, signed file links and a podcast feed.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",