@mccaskie-labs/workbench-ask 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-ask
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: the website question box. `createAsk` (answers from the project's own pages and questions-and-answers through the Gateway's `ask.answer` job, withholds answers with facts its passages don't hold, hands questions to the owner by email or to the app, endpoint with origin check, rate limit and a bot trap), `renderAskWidget` and `ASK_SCRIPT`, `ASK_STYLES` (`wb-ask-*`), `ASK_WORDS` (English, Tagalog, Taglish), and `npx workbench-ask init | build | check`.
package/dist/cli.js CHANGED
File without changes
package/dist/styles.js CHANGED
@@ -20,18 +20,18 @@ export const ASK_STYLES = {
20
20
  title: "Website question box",
21
21
  prefix: "wb-ask-",
22
22
  variables: [
23
- { name: "--wb-ask-text", value: "#e8e8ec", about: "Text: answers, questions, labels" },
24
- { name: "--wb-ask-muted", value: "#9a9aa6", about: "Quieter text: the privacy line, waiting" },
25
- { name: "--wb-ask-surface", value: "#1b1b1f", about: "Background of the panel" },
26
- { name: "--wb-ask-sunk", value: "#141417", about: "Background of the chat and the fields" },
27
- { name: "--wb-ask-line", value: "#33333b", about: "Borders" },
28
- { name: "--wb-ask-bot", value: "#24242b", about: "Background of the box's answers" },
29
- { name: "--wb-ask-visitor", value: "#4c8dff", about: "Background of the visitor's questions" },
30
- { name: "--wb-ask-on-visitor", value: "#ffffff", about: "Text on the visitor's questions" },
31
- { name: "--wb-ask-accent", value: "#4c8dff", about: "The button in the corner, Send, links" },
32
- { name: "--wb-ask-on-accent", value: "#ffffff", about: "Text on the main buttons" },
33
- { name: "--wb-ask-focus", value: "rgba(76,141,255,.4)", about: "The ring round a control with focus" },
34
- { name: "--wb-ask-radius", value: "12px", about: "Corner rounding" },
23
+ { name: "--wb-ask-text", value: "var(--wb-text, #1f2937)", about: "Text: answers, questions, labels" },
24
+ { name: "--wb-ask-muted", value: "var(--wb-muted, #5b6472)", about: "Quieter text: the privacy line, waiting" },
25
+ { name: "--wb-ask-surface", value: "var(--wb-surface, #f7f8f8)", about: "Background of the panel" },
26
+ { name: "--wb-ask-sunk", value: "color-mix(in srgb, var(--wb-background, #ffffff), var(--wb-text, #1f2937) 3%)", about: "Background of the chat and the fields" },
27
+ { name: "--wb-ask-line", value: "var(--wb-line, #d7d8db)", about: "Borders" },
28
+ { name: "--wb-ask-bot", value: "color-mix(in srgb, var(--wb-surface, #f7f8f8), var(--wb-text, #1f2937) 7%)", about: "Background of the box's answers" },
29
+ { name: "--wb-ask-visitor", value: "var(--wb-accent, #2563eb)", about: "Background of the visitor's questions" },
30
+ { name: "--wb-ask-on-visitor", value: "var(--wb-on-accent, #ffffff)", about: "Text on the visitor's questions" },
31
+ { name: "--wb-ask-accent", value: "var(--wb-accent, #2563eb)", about: "The button in the corner, Send, links" },
32
+ { name: "--wb-ask-on-accent", value: "var(--wb-on-accent, #ffffff)", about: "Text on the main buttons" },
33
+ { name: "--wb-ask-focus", value: "var(--wb-focus, rgba(37,99,235,0.4))", about: "The ring round a control with focus" },
34
+ { name: "--wb-ask-radius", value: "var(--wb-radius, 8px)", about: "Corner rounding" },
35
35
  { name: "--wb-ask-shadow", value: "0 12px 32px rgba(0,0,0,.35)", about: "The panel's shadow when it floats" },
36
36
  { name: "--wb-ask-z", value: "1000", about: "How far above the page the button and panel sit" },
37
37
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-ask",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "A question box for a Workbench project's website: answers visitors from the project's own pages and questions-and-answers through the Gateway, says so when it isn't sure, and hands the question to the owner by email or to the app. Workbench keeps no visitor's words.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",