domma-cms 1.69.0 → 1.69.2

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,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.69.2] - 2026-11-16
4
+
5
+ ### Security
6
+
7
+ - **Form wording keeps only simple formatting.** Helper text, checkbox labels and hints, wizard step titles, descriptions and button texts, and form modal titles are cleaned to a short list of inline tags (links, bold, italic, code, line breaks and similar); anything else is reduced to its text, and links keep only safe addresses (domma-js 1.2.2).
8
+
9
+ ### Fixed
10
+
11
+ - A form field whose name holds a quote or backslash validates, and the CRUD delete prompt shows a record's name as typed (domma-js 1.2.3).
12
+
13
+ ### Changed
14
+
15
+ - **Built against domma-js 1.2.3** - see [its release notes](https://github.com/pinpointzero73/domma/releases/tag/v1.2.3).
16
+
17
+ ## [1.69.1] - 2026-11-16
18
+
19
+ ### Security
20
+
21
+ - **Table column titles and form option labels are text.** A sortable table's column titles, and the values and labels of select, radio and checkbox options, are written as text, so markup in them can no longer run or change the page (domma-js 1.2.1).
22
+
23
+ ### Changed
24
+
25
+ - **Built against domma-js 1.2.1** - see [its release notes](https://github.com/pinpointzero73/domma/releases/tag/v1.2.1).
26
+
3
27
  ## [1.69.0] - 2026-11-15
4
28
 
5
29
  ### Security
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Tools CSS v1.2.0
2
+ * Domma Tools CSS v1.2.3
3
3
  * Dynamic Object Manipulation & Modeling API
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-11-13T12:53:16.815Z
6
- * Commit: 1ebfa81
5
+ * Built: 2026-11-16T12:47:19.488Z
6
+ * Commit: b7291ac
7
7
  */
8
8
 
9
9
  /*!
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * Domma Tools v1.2.0
2
+ * Domma Tools v1.2.3
3
3
  * Developer tools: Theme Roller & Page Roller
4
4
  * (c) 2026 Darryl Waterhouse & DCBW-IT
5
- * Built: 2026-11-13T12:53:02.828Z
6
- * Commit: 1ebfa81
5
+ * Built: 2026-11-16T12:47:07.869Z
6
+ * Commit: b7291ac
7
7
  *
8
8
  * Requires: domma.min.js
9
9
  */
@@ -76,7 +76,7 @@ Code was treated as the truth. Where docs disagree with it, the disagreement is
76
76
  | `shopping-cart-pro` | paid | 0.3.2 | More for the Shop: discount codes (other Tools such as Prize Wheel can make single-use ones), shipping zones with rates by weight or order value, tax by country and class, branded order emails from confirmation to dispatch, and Insights - takings by week, best sellers, repeat customers and abandoned checkouts you can nudge. Adds to the free Shopping Cart; a lapsed licence leaves the Cart and every order just as they were. |
77
77
  | `sliding-puzzle` | paid (giftable) | 1.0.0 | The tile-sliding puzzle, 3x3 to 6x6, numbers or a Media picture. Same board for everyone, a new board each go, or a daily puzzle; every move checked by the server. Fewest moves or fastest time wins. |
78
78
  | `social-media-pro` | paid | 0.4.0 | How the site looks when it is shared, and posting it: share cards per page for Facebook, X, LinkedIn, WhatsApp and Slack with previews; a share image drawn for every page that has none, in the site's colours; share and follow buttons; posting to Bluesky, Mastodon and LinkedIn (through the site's own LinkedIn app, with a reminder before its 60-day sign-in runs out) - now, scheduled, or drafted automatically for every new blog post or page - with links tagged for Analytics and the posts on the Calendar; and LinkedIn conversions - chosen forms reported to LinkedIn's Conversions API when a visitor who accepted marketing cookies sends one. Sold with SEO Pro. |
79
- | `surveys` | paid | 1.10.0 | Targeted surveys over the Forms engine: shared audiences, tokenised invites, reminders, and per-survey statistics. |
79
+ | `surveys` | paid | 1.19.0 | Targeted surveys over the Forms engine: shared audiences and Contacts groups, tokenised invites, reminders, NPS, star, smiley and number scales, quiz mode with scores, closing rules, and Results with charts, filters, Live refresh, a printable PDF report and (with AI Assist) themed summaries of free-text answers. |
80
80
  | `sweepstake` | paid (giftable) | 1.0.0 | Office, pub and club sweepstakes for any event: picks, entry fee and prizes, entrants by name with paid ticks, and one recorded, repeatable draw revealed live on the page, then who has what and the money. |
81
81
  | `theme-roller` | paid | 1.1.3 | Make your own themes: start from any built-in theme, change its colours, fonts, spacing and borders with a live preview, and save it. Saved themes join the built-in ones everywhere a theme is chosen - the site, the admin, day and night, a region of a page. Needs Domma CMS 0.73 or later to use them. |
82
82
  | `timeline` | paid (giftable) | 1.0.0 | Put events in date order: all at once (Sort) or one at a time into a growing timeline with lives (Place). Years, months or full dates, BC too; dates stay on the server until a card is placed. Shortcode `[timeline-game]`. |
@@ -2471,20 +2471,30 @@ Control how every page looks when it is shared, and post it. Social Media Pro ed
2471
2471
 
2472
2472
  ### Surveys (`surveys`)
2473
2473
 
2474
- Tier: paid (closed source) · Version: 1.10.0 · Requires: nothing declared; collections declare MongoDB (`storage.adapter: "mongodb"`) and fall back to files when `config/connections.json` is absent · Uses: `contacts` ("Import an audience from Contacts"); notes say core 0.88 · Built over core Forms
2474
+ Tier: paid (closed source) · Version: 1.19.0 · Requires: Domma CMS 1.67.2+ (`minCmsVersion`); collections declare MongoDB (`storage.adapter: "mongodb"`) and fall back to files when `config/connections.json` is absent · Uses: `contacts` ("Import an audience from Contacts"); notes say core 0.88 · Built over core Forms
2475
2475
 
2476
2476
  Targeted surveys on top of the Forms engine. Pick any form, choose an audience from your own contact list and groups, send tokenised email invitations and reminders, and watch response rates and per-question statistics - identified or anonymous. Surveys can also be embedded in any page or opened from a hosted survey page with a code.
2477
2477
 
2478
2478
  **Features**
2479
2479
  - Surveys list: All / Open / Drafts / Closed, search, latest activity, response rate per survey; context menu Edit, Results, Open / Close, Send invitations, Send a reminder (non-responders), Copy embed shortcode, Duplicate.
2480
2480
  - Editor (`#/plugins/surveys/new`, `/edit/:slug`): title, slug (fixed once created), form (any core Form), description, audience groups, status (Draft / Open / Closed), mode (Identified / Anonymous), opens and closes dates, reminder after N days (7), Markdown intro and footer, thank-you message, invite email subject and body (`{{name}}`, `{{link}}` - link becomes a "Take the survey" button); Ctrl+S, unsaved-changes guard, draft restored on next visit.
2481
- - Audience (`#/plugins/surveys/audience`): contacts (name, email, groups) with search, add, copy email, delete (contacts cannot be edited once added); named groups (no rename, and no delete-group route); "Import from Contacts" (your own core Contacts; hidden when the Contacts Tool is off).
2481
+ - Audience (`#/plugins/surveys/audience`): contacts (name, email, groups) with search, add, edit, copy email, delete (edit since 1.18.0); named groups with rename and delete (1.18.0: `PUT`/`DELETE /api/plugins/surveys/groups/:id` - its contacts, surveys and campaigns follow); "Import from Contacts" (your own core Contacts; hidden when the Contacts Tool is off).
2482
2482
  - Invitations: one 8-character code per recipient (e.g. `ABCD-EFGH`, SHA-256 hashed, never stored in plain text), sent through the site's SMTP; one response per invite. Links are built on the Site URL setting (`site.baseUrl`), else the old `site.url`, else the request's address (1.4.4).
2483
2483
  - Hosted page `/survey/:slug` (token in `?t=` or typed code), 404 unknown / 403 before its Opens day / 410 closed; submit at `POST /api/plugins/surveys/submit/:slug`.
2484
2484
  - **Theme per survey (1.9.0)** - Survey page > Theme picks the hosted page's colour theme (any built-in palette or a Theme Roller custom theme); "Use site theme" follows Content > Theme. Before 1.9.0 the hosted page ignored the site theme entirely. Embeds take the host page's theme. Stored as `theme` on the survey (theme id or blank) and carried by JSON export/import.
2485
2485
  - **Wizard steps scroll to the top (1.9.0)** - Next, Back and logic step jumps on a multi-page survey jump to the top of the hosted page, or to the top of an embedded survey (clear of a sticky navbar), so the next step starts at its first question.
2486
2486
  - **Results by section and view switches (1.10.0)** - Results' Show card: Split into sections (the form's wizard pages, each with title, description and "N questions · M answered", plus Jump to buttons), Hide questions nobody answered, Show free-text answers. Kept on the survey (`results`), `PUT /api/plugins/surveys/surveys/:slug/results-view`; the cog's Split results into sections (`resultsBySection`, on) is the starting point. Read-only users' flips stay on screen only.
2487
2487
  - **Results exports (1.10.0)** - Export JSON is a full report (`format: domma-surveys-results`, v1: survey, summary, sections or questions with counts/percentages/averages, every response keyed by question label) instead of a bare array of rows. Export CSV adds Submitted and heads columns with question labels (`Section: Question` when split); headings are formula-defused like cells.
2488
+ - **Rating scales (1.18.0)** - a single-line text or number question can show as NPS (0 to 10), stars, smileys or a numbered scale: a row of buttons that works with a tap or the arrow keys.
2489
+ - **Quiz mode (1.18.0)** - mark the correct option of a choice question or type the accepted answers of a text one, with an optional pass mark; each person sees their score under the thank-you (unless Show each person their score is off). Marks are worked out again whenever they are shown.
2490
+ - **Closing rules (1.18.0)** - Close after (responses) stops a survey at that many; a Closed message (Markdown) of your own shows on the survey's themed page however it closed. A full survey sends no invitations or reminders and shows Full in the list. Two people submitting at the very same moment can both get in past the limit.
2491
+ - **Results charts, filters and report (1.18.0)** - NPS score with promoters, passives and detractors; Quiz scores (average, passed, spread); filter every figure to one answer of one question, or to one audience group in an identified survey; Live refresh every 30 seconds; Print or save as PDF opens a clean report in its own tab (`lib/report-html.js`). CSV gains Score (%) on a quiz, and both exports follow the filter.
2492
+ - **Share card (1.18.0)** - the survey's link, its `[survey]` embed shortcode and a QR code (PNG or SVG).
2493
+ - **Contacts groups as audience (1.18.0)** - groups from the core Contacts Tool under Audience, read live each time invitations go out (`GET /api/plugins/surveys/contact-groups`, `lib/live-audience.js`), as in Campaigns Pro.
2494
+ - **Delete a survey (1.18.0)** - Delete... in the menu or Delete survey in the editor (`DELETE /api/plugins/surveys/surveys/:slug`, permission `delete`): its invitation links stop at once; its answers stay with the form's submissions. A survey a Campaigns Pro campaign sends cannot be deleted until that campaign changes.
2495
+ - **Branching (1.18.0)** - uses the form's own Conditional Logic and triggers from Data > Forms, on the survey page and when a submission is checked; a hidden question is never required.
2496
+ - **Outreach group (1.18.0)** - Surveys and Campaigns Pro sit together under Outreach in the sidebar.
2497
+ - **Summarise answers (1.19.0)** - with AI Assist (Pro plan), a free-text question with two answers or more gets Summarise answers: Claude groups the answers into themes (title, what people said, how many said it, a few quotes) under a short summary. Follows the current Results filter. Asks once per visit before sending; only the survey's title, the question and the answers' text go to the AI - no names, emails or other parts of the responses. `POST /api/plugins/surveys/surveys/:slug/themes` (permission `update`; 400 under two answers, 422 when Claude declines). The last summary per question is kept on the survey (`summaries`, with when and the filter used), shows whenever Results opens and goes into the printed report; Summarise again replaces it. 300 summaries a month per site, with the count shown in Results.
2488
2498
  - Opens/Closes are days in the site's time zone (`timeZone` setting, default `Europe/London`): a survey takes answers from the start of its Opens day to the END of its Closes day. The hosted page, submissions, scheduler reminders, Send (409 once closed), the list chip, the badge and the closing notices all use the same rule (1.4.4).
2489
2499
  - Shortcode `[survey slug="..." /]` - embeds the survey on any page; Copy embed shortcode copies exactly this, and the page gets the survey script added automatically (1.4.4).
2490
2500
  - Results (`#/plugins/surveys/results/:slug`): invited, answered, response rate, per-question aggregates (only this survey's responses, tagged `survey:<slug>`); Export CSV and Export JSON; anonymous flag.
@@ -2492,12 +2502,12 @@ Targeted surveys on top of the Forms engine. Pick any form, choose an audience f
2492
2502
  - External scheduler contract: `GET /api/plugins/surveys/due-work` and `POST /api/plugins/surveys/run` with a `schedulerToken` for automatic reminders.
2493
2503
  - Notifications: `surveys:responses` (one notice per survey per day, updated with the count), `surveys:closing` (daily and at boot: open surveys closing within 3 days).
2494
2504
  - Sidebar badge: responses in the last 7 days, with open and closing-soon surveys in the popover.
2495
- - Permission `surveys` with `read`, `create`, `update` (edit and send invitations), `delete` (contacts and groups), granted to `admin`.
2505
+ - Permission `surveys` with `read`, `create`, `update` (edit, send invitations, summarise answers), `delete` (surveys, contacts and groups; opens the settings cog), granted to `admin`.
2496
2506
  - Collections `surveys-surveys`, `outreach-contacts`, `outreach-groups`, `outreach-unsubscribes`, `surveys-invites` (1.5.0 - rows from the old `survey-contacts`/`survey-groups` are carried across once at boot).
2497
2507
  - **Shared outreach store (1.5.0)** - the survey audience moves to the shared outreach store (one audience for Surveys and Campaigns, carried across automatically), and sends honour the new shared unsubscribe list: an address that opts out is never emailed by any outreach Tool again.
2498
2508
  - Settings: `schedulerToken`, `fromName` ("Surveys"), `timeZone` ("Europe/London"; read at boot).
2499
2509
 
2500
- **Where:** Admin sidebar "Surveys" (`#/plugins/surveys`); banner actions Audience and New survey.
2510
+ **Where:** Admin sidebar Outreach > "Surveys" (`#/plugins/surveys`); banner actions Audience and New survey.
2501
2511
 
2502
2512
  ### Theme Roller (`theme-roller`)
2503
2513
 
@@ -3335,7 +3345,7 @@ entries are genuine code issues.
3335
3345
 
3336
3346
  - CLAUDE.md "Permission family" gotcha says never to put `permission: "surveys"` on the sidebar item; plugin.json does, and the 1.3.0 section says the sidebar entry needs it. (fixed)
3337
3347
  - CLAUDE.md headings still call the routes "planned"; they are implemented. (fixed)
3338
- - There is no delete-survey route or menu item, although the `delete` permission exists (it covers contacts and groups only). (needs decision: what deleting does to responses; noted in CLAUDE.md) (stated in the plugin guide; the feature decision is still open)
3348
+ - There is no delete-survey route or menu item, although the `delete` permission exists (it covers contacts and groups only). (fixed: Delete a survey in 1.18.0 - invitation links stop, answers stay with the form)
3339
3349
  - Reminders are not sent automatically without an external scheduler and `schedulerToken`; `reminderAfterDays` alone does nothing on its own. (by design; noted in CLAUDE.md) (fixed: user docs)
3340
3350
  - The scheduler `/run` route ignores `fromName` and always sends as "Surveys". (fixed)
3341
3351
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domma-cms",
3
- "version": "1.69.0",
3
+ "version": "1.69.2",
4
4
  "description": "File-based CMS powered by Domma and Fastify. Run npx domma-cms my-site to create a new project.",
5
5
  "type": "module",
6
6
  "main": "server/server.js",
@@ -87,7 +87,7 @@
87
87
  "bcryptjs": "^3.0.3",
88
88
  "css-select": "^7.0.0",
89
89
  "dom-serializer": "^3.1.1",
90
- "domma-js": "1.2.0",
90
+ "domma-js": "1.2.3",
91
91
  "dotenv": "^18.0.9",
92
92
  "fastify": "5.12.8",
93
93
  "gray-matter": "^4.0.3",