@domandigital/craft 0.13.0 → 0.15.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 +24 -0
- package/CHARACTER.md +272 -39
- package/COPY.md +5 -0
- package/README.md +19 -1
- package/art-direction.schema.json +428 -25
- package/dist/{audit-5TYDYRXV.js → audit-MTUC24XU.js} +3 -2
- package/dist/audit.cjs +674 -92
- package/dist/audit.d.cts +15 -1
- package/dist/audit.d.ts +15 -1
- package/dist/audit.js +674 -92
- package/dist/{chunk-IMB4V34S.js → chunk-2IQ5OXFR.js} +7 -7
- package/dist/{chunk-GMVXADJ6.js → chunk-LFNSB6W7.js} +711 -92
- package/dist/{chunk-3VTPI7BU.js → chunk-MUVFECFC.js} +74 -96
- package/dist/chunk-OQXTQQAU.js +27 -0
- package/dist/{chunk-ZLDA2SYB.js → chunk-OUQ25LY2.js} +47 -6
- package/dist/{chunk-K2BZN4GA.js → chunk-QU6Q2QZZ.js} +49 -14
- package/dist/chunk-QYBAVU3P.js +6 -0
- package/dist/{chunk-ESCVTKPN.js → chunk-RXXRXV3V.js} +9 -26
- package/dist/{chunk-CZDOMIVS.js → chunk-WUACK2HX.js} +2 -1
- package/dist/chunk-YDURAOYR.js +711 -0
- package/dist/cli-22TSWAX6.js +21 -0
- package/dist/cli-5ACKICBO.js +22 -0
- package/dist/{cli-DRKAMFAH.js → cli-7OZCYOQY.js} +89 -22
- package/dist/{cli-J5ECRCD4.js → cli-FCKHYAVZ.js} +40 -16
- package/dist/{cli-ILH7OO5G.js → cli-FLG3ZCAF.js} +6 -4
- package/dist/cli.js +3 -2
- package/dist/generate.js +6 -0
- package/dist/index.cjs +1618 -328
- package/dist/index.d.cts +619 -58
- package/dist/index.d.ts +619 -58
- package/dist/index.js +1555 -328
- package/dist/migrate-VIFAYIBM.js +9 -0
- package/package.json +1 -1
- package/word-lists.json +1 -1
- package/dist/chunk-ZZ5CKOJP.js +0 -295
- package/dist/cli-BKJMLD3H.js +0 -18
- package/dist/cli-N2IDXH7W.js +0 -20
package/dist/audit.d.cts
CHANGED
|
@@ -101,6 +101,13 @@ interface SnapshotSection {
|
|
|
101
101
|
carousel?: boolean;
|
|
102
102
|
/** Version 2: large standalone figures ("500+", "98%", "4.9/5") at 24px or more. */
|
|
103
103
|
figures?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Version 2, craft 0.13 and later: the section's visible text, one block per
|
|
106
|
+
* heading, paragraph, list item or quote, each at most 300 characters, at
|
|
107
|
+
* most 40. Navigation, buttons and footers are left out. What the
|
|
108
|
+
* specificity and proof tells read.
|
|
109
|
+
*/
|
|
110
|
+
text?: string[];
|
|
104
111
|
}
|
|
105
112
|
type ImageRole = "photo" | "illustration" | "icon" | "avatar" | "logo";
|
|
106
113
|
/**
|
|
@@ -212,10 +219,17 @@ interface Snapshot {
|
|
|
212
219
|
/** Version 2: absent when the page could not be screenshotted. */
|
|
213
220
|
visual?: SnapshotVisual;
|
|
214
221
|
/**
|
|
215
|
-
* Version 2, craft 0.
|
|
222
|
+
* Version 2, craft 0.13 and later: every image on the page, largest first, at
|
|
216
223
|
* most 60. Absent in older snapshots, which the imagery tells never judge.
|
|
217
224
|
*/
|
|
218
225
|
images?: SnapshotImage[];
|
|
226
|
+
/**
|
|
227
|
+
* Version 2, craft 0.13 and later: the text a visitor reads before
|
|
228
|
+
* scrolling, at most 12 blocks. Navigation, a header without the headline,
|
|
229
|
+
* and the words on buttons and links are left out: this is the page's
|
|
230
|
+
* claim, not its menu or its calls to action.
|
|
231
|
+
*/
|
|
232
|
+
firstScreenText?: string[];
|
|
219
233
|
/** Set when a version 1 snapshot was read and upgraded in memory. */
|
|
220
234
|
migratedFrom?: 1;
|
|
221
235
|
/** The design-system measures trawl has collected since v7, kept so it can switch to this. */
|
package/dist/audit.d.ts
CHANGED
|
@@ -101,6 +101,13 @@ interface SnapshotSection {
|
|
|
101
101
|
carousel?: boolean;
|
|
102
102
|
/** Version 2: large standalone figures ("500+", "98%", "4.9/5") at 24px or more. */
|
|
103
103
|
figures?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Version 2, craft 0.13 and later: the section's visible text, one block per
|
|
106
|
+
* heading, paragraph, list item or quote, each at most 300 characters, at
|
|
107
|
+
* most 40. Navigation, buttons and footers are left out. What the
|
|
108
|
+
* specificity and proof tells read.
|
|
109
|
+
*/
|
|
110
|
+
text?: string[];
|
|
104
111
|
}
|
|
105
112
|
type ImageRole = "photo" | "illustration" | "icon" | "avatar" | "logo";
|
|
106
113
|
/**
|
|
@@ -212,10 +219,17 @@ interface Snapshot {
|
|
|
212
219
|
/** Version 2: absent when the page could not be screenshotted. */
|
|
213
220
|
visual?: SnapshotVisual;
|
|
214
221
|
/**
|
|
215
|
-
* Version 2, craft 0.
|
|
222
|
+
* Version 2, craft 0.13 and later: every image on the page, largest first, at
|
|
216
223
|
* most 60. Absent in older snapshots, which the imagery tells never judge.
|
|
217
224
|
*/
|
|
218
225
|
images?: SnapshotImage[];
|
|
226
|
+
/**
|
|
227
|
+
* Version 2, craft 0.13 and later: the text a visitor reads before
|
|
228
|
+
* scrolling, at most 12 blocks. Navigation, a header without the headline,
|
|
229
|
+
* and the words on buttons and links are left out: this is the page's
|
|
230
|
+
* claim, not its menu or its calls to action.
|
|
231
|
+
*/
|
|
232
|
+
firstScreenText?: string[];
|
|
219
233
|
/** Set when a version 1 snapshot was read and upgraded in memory. */
|
|
220
234
|
migratedFrom?: 1;
|
|
221
235
|
/** The design-system measures trawl has collected since v7, kept so it can switch to this. */
|