@taprootio/site-authoring 0.22.3 → 0.22.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taprootio/site-authoring",
3
- "version": "0.22.3",
3
+ "version": "0.22.4",
4
4
  "description": "Taproot site authoring CLI: sign in once in the browser, then pull, validate, push, preview, approve, and deploy a site from the terminal",
5
5
  "type": "module",
6
6
  "license": "ISC",
@@ -1,5 +1,15 @@
1
1
  {
2
2
  "entries": [
3
+ {
4
+ "version": "0.22.4",
5
+ "note": "The publishing preferences gain analyticsConsentPrompt, the switch that asks readers before the visit cookie is set.",
6
+ "behavior": [
7
+ "A pulled settings snapshot now carries analyticsConsentPrompt (default false) in the publishing preferences, and a push can set it. It is staged like the rest of the group and applies after a deployment. With it on, published pages show a small prompt and the 30-minute visit cookie is set only after a reader accepts."
8
+ ],
9
+ "help": [
10
+ "settings"
11
+ ]
12
+ },
3
13
  {
4
14
  "version": "0.22.3",
5
15
  "note": "The forms reference now says site moderators can read form submissions.",
@@ -88,7 +88,7 @@ import {
88
88
 
89
89
  export { getAppearanceReference, getFooterReference, getSettingsReference, getThemeReference };
90
90
 
91
- export const REFERENCE_VERSION = 39;
91
+ export const REFERENCE_VERSION = 40;
92
92
 
93
93
  // The date-limit examples `help forms` prints; tests run them through the form validator.
94
94
  export const FORM_DATE_WINDOW_FIELD = Object.freeze({
@@ -263,6 +263,15 @@ const PREFERENCES_ENTRIES = {
263
263
  "The image lightbox.",
264
264
  false,
265
265
  ),
266
+ analyticsConsentPrompt: entry(
267
+ `${FEATURES} > Ask readers before counting visits`,
268
+ "Whether published pages ask readers to accept one short-lived cookie before Taproot counts their visits. Off, "
269
+ + "the cookie is set without asking; on, readers who decline or ignore the prompt are counted by the estimate "
270
+ + "only.",
271
+ "Every page of a published Standard site, as a small prompt at the bottom of the screen. A change applies after "
272
+ + "a deployment.",
273
+ false,
274
+ ),
266
275
  tiptapImageMaxHeightVh: entry(
267
276
  `${FEATURES} > Image height`,
268
277
  "The tallest an image in a page body may be, as a percent of the screen height (45, 60, 75 or 90).",
@@ -127,6 +127,9 @@ export const SETTINGS_GROUPS = Object.freeze([
127
127
  // zero and the default agree and a snapshot of an untouched site reads
128
128
  // the same as the site behaves.
129
129
  { name: "hideLightboxComments", wireType: "boolean" },
130
+ // Asks readers before the visit cookie is set (TR01263). Off is what an omitted value means, so a snapshot of
131
+ // an untouched site reads the same as the site behaves.
132
+ { name: "analyticsConsentPrompt", wireType: "boolean" },
130
133
  { name: "tiptapImageMaxHeightVh", wireType: "int" },
131
134
  { name: "tiptapImageMaxImagesPerRow", wireType: "int" },
132
135
  { name: "tiptapImageBorderWidth", wireType: "int" },