@taprootio/site-authoring 0.22.2 → 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 +1 -1
- package/src/changelog.json +20 -0
- package/src/reference-help.js +4 -4
- package/src/setting-reference.js +9 -0
- package/src/settings-catalog.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taprootio/site-authoring",
|
|
3
|
-
"version": "0.22.
|
|
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",
|
package/src/changelog.json
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
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
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"version": "0.22.3",
|
|
15
|
+
"note": "The forms reference now says site moderators can read form submissions.",
|
|
16
|
+
"behavior": [
|
|
17
|
+
"The forms help names who holds the submissions permissions: site.forms.submissions.read belongs to a site's owners, admins and moderators, and site.forms.submissions.manage to its owners and admins. No command or refusal changed."
|
|
18
|
+
],
|
|
19
|
+
"help": [
|
|
20
|
+
"forms"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
3
23
|
{
|
|
4
24
|
"version": "0.22.2",
|
|
5
25
|
"note": "Free-form sections pad evenly with the page padding wherever they render, including preview-page; Espalier 6.5.0 lets the page preview take the width a capped main column leaves it.",
|
package/src/reference-help.js
CHANGED
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
|
|
89
89
|
export { getAppearanceReference, getFooterReference, getSettingsReference, getThemeReference };
|
|
90
90
|
|
|
91
|
-
export const REFERENCE_VERSION =
|
|
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({
|
|
@@ -869,9 +869,9 @@ const WORKFLOW_REFERENCES = Object.freeze({
|
|
|
869
869
|
+ "turns the id back into the key. Then deploy: the release freezes the form it was built with.",
|
|
870
870
|
"The delegation.content capability carries site.forms.manage, which every forms verb needs: it covers "
|
|
871
871
|
+ "definitions, settings and status. Visitors' submissions are in no capability: reading them "
|
|
872
|
-
+ "(site.forms.submissions.read) and finding, marking or
|
|
873
|
-
+ "
|
|
874
|
-
+ "permission.",
|
|
872
|
+
+ "(site.forms.submissions.read) belongs to the site's owners, admins and moderators, and finding, marking or "
|
|
873
|
+
+ "deleting them (site.forms.submissions.manage) to its owners and admins, on the site's Forms page, never to "
|
|
874
|
+
+ "a key. A refusal names the missing permission.",
|
|
875
875
|
]),
|
|
876
876
|
example: Object.freeze({
|
|
877
877
|
key: "contact",
|
package/src/setting-reference.js
CHANGED
|
@@ -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).",
|
package/src/settings-catalog.js
CHANGED
|
@@ -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" },
|