@tanqory/theme-conformance 0.1.0-alpha.16 → 0.1.0-alpha.17
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/README.md +26 -1
- package/dist/browser/harness.d.ts +8 -1
- package/dist/browser/harness.js +8 -2
- package/dist/browser/harness.js.map +1 -1
- package/dist/browser/page-run.d.ts +29 -1
- package/dist/browser/page-run.js +54 -6
- package/dist/browser/page-run.js.map +1 -1
- package/dist/browser/rules.d.ts +70 -0
- package/dist/browser/rules.js +119 -6
- package/dist/browser/rules.js.map +1 -1
- package/dist/build-info.json +1 -1
- package/dist/cli.js +52 -1
- package/dist/cli.js.map +1 -1
- package/dist/client-chunks.d.ts +185 -0
- package/dist/client-chunks.js +378 -0
- package/dist/client-chunks.js.map +1 -0
- package/dist/field-types.js +6 -5
- package/dist/field-types.js.map +1 -1
- package/dist/fixtures/store-fixture.d.ts +5 -0
- package/dist/fixtures/store-fixture.js.map +1 -1
- package/dist/fixtures/stores/alpha.json +38 -0
- package/dist/fixtures/stores/beta.json +3 -0
- package/dist/html-checks.d.ts +3 -0
- package/dist/html-checks.js +15 -0
- package/dist/html-checks.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jobs.d.ts +67 -1
- package/dist/jobs.js +155 -6
- package/dist/jobs.js.map +1 -1
- package/dist/review/config.d.ts +36 -0
- package/dist/review/config.js +70 -0
- package/dist/review/config.js.map +1 -0
- package/dist/review/index.d.ts +85 -0
- package/dist/review/index.js +308 -0
- package/dist/review/index.js.map +1 -0
- package/dist/review/lighthouse.d.ts +27 -0
- package/dist/review/lighthouse.js +94 -0
- package/dist/review/lighthouse.js.map +1 -0
- package/dist/review/stores.d.ts +42 -0
- package/dist/review/stores.js +109 -0
- package/dist/review/stores.js.map +1 -0
- package/dist/runner-identity.d.ts +1 -1
- package/dist/runner-identity.js +6 -5
- package/dist/runner-identity.js.map +1 -1
- package/dist/storefront/budgets.js +26 -4
- package/dist/storefront/budgets.js.map +1 -1
- package/dist/storefront/checks/i18n.js +39 -0
- package/dist/storefront/checks/i18n.js.map +1 -1
- package/dist/storefront/fixture.d.ts +4 -3
- package/dist/storefront/fixture.js +12 -7
- package/dist/storefront/fixture.js.map +1 -1
- package/dist/storefront/gateway.d.ts +18 -2
- package/dist/storefront/gateway.js +47 -13
- package/dist/storefront/gateway.js.map +1 -1
- package/dist/storefront/locale-names.d.ts +39 -0
- package/dist/storefront/locale-names.js +63 -0
- package/dist/storefront/locale-names.js.map +1 -0
- package/dist/suites/app-blocks.d.ts +13 -0
- package/dist/suites/app-blocks.js +172 -0
- package/dist/suites/app-blocks.js.map +1 -0
- package/dist/suites/s1-static.js +4 -2
- package/dist/suites/s1-static.js.map +1 -1
- package/dist/suites/s2-render.js +20 -2
- package/dist/suites/s2-render.js.map +1 -1
- package/dist/suites/s4-limits.js +44 -1
- package/dist/suites/s4-limits.js.map +1 -1
- package/dist/suites/s5-hydration.d.ts +2 -0
- package/dist/suites/s5-hydration.js +89 -12
- package/dist/suites/s5-hydration.js.map +1 -1
- package/dist/workerd/config.js +3 -0
- package/dist/workerd/config.js.map +1 -1
- package/dist/workerd/shim.mjs +40 -3
- package/dist/workerd/storefront-data.mjs +25 -11
- package/dist/workerd/tanqory-money.generated.mjs +551 -0
- package/docs/storefront-tier.md +1 -0
- package/fixtures/chunks-pass/client/assets/boot-d9c77977.js +13 -0
- package/fixtures/chunks-pass/client/assets/core-9e704970.js +21 -0
- package/fixtures/chunks-pass/client/assets/hero-f2dd1270.js +3 -0
- package/fixtures/chunks-pass/client/assets/main-28182e68.css +1 -0
- package/fixtures/chunks-pass/client/assets/main-3401d1c6.js +22 -0
- package/fixtures/chunks-pass/client/assets/probe-bad-de7c494b.js +1 -0
- package/fixtures/chunks-pass/client/assets/probe-ok-e658f0b4.js +1 -0
- package/fixtures/chunks-pass/client/assets/shared-53e84b49.js +2 -0
- package/fixtures/chunks-pass/client/client-manifest.json +87 -0
- package/fixtures/chunks-pass/defaults/regions/header.json +1 -0
- package/fixtures/chunks-pass/defaults/settings.json +1 -0
- package/fixtures/chunks-pass/defaults/templates/index.json +1 -0
- package/fixtures/chunks-pass/defaults/templates/product.json +1 -0
- package/fixtures/chunks-pass/locales/en.json +1 -0
- package/fixtures/chunks-pass/manifest.json +1 -0
- package/fixtures/chunks-pass/server/entry.mjs +171 -0
- package/fixtures/hydration-pass/defaults/templates/product.json +1 -0
- package/fixtures/hydration-pass/manifest.json +1 -1
- package/fixtures/hydration-pass/server/entry.mjs +7 -1
- package/fixtures/hydration-violations/slot-server-children/server/entry.mjs +7 -1
- package/fixtures/invalid-url-setting/defaults/templates/product.json +1 -0
- package/fixtures/invalid-url-setting/manifest.json +1 -1
- package/fixtures/invalid-url-setting/server/entry.mjs +7 -1
- package/fixtures/minimal-pass/defaults/templates/product.json +1 -0
- package/fixtures/minimal-pass/manifest.json +1 -1
- package/fixtures/minimal-pass/server/entry.mjs +7 -1
- package/fixtures/violations/defaults/templates/product.json +1 -0
- package/fixtures/violations/entries/async-iterable-body.mjs +7 -1
- package/fixtures/violations/entries/browser-only-capability.mjs +7 -1
- package/fixtures/violations/entries/deferred-ambient-access.mjs +7 -1
- package/fixtures/violations/entries/depends-on-harness-scope.mjs +7 -1
- package/fixtures/violations/entries/fetch-without-network.mjs +7 -1
- package/fixtures/violations/entries/forges-array-push.mjs +7 -1
- package/fixtures/violations/entries/forges-json-stringify.mjs +7 -1
- package/fixtures/violations/entries/forges-object-then.mjs +7 -1
- package/fixtures/violations/entries/forges-to-json.mjs +7 -1
- package/fixtures/violations/entries/grants-own-capability.mjs +7 -1
- package/fixtures/violations/entries/lowercase-tenant-leak.mjs +7 -1
- package/fixtures/violations/entries/nondeterministic-output.mjs +7 -1
- package/fixtures/violations/entries/reads-date-now.mjs +7 -1
- package/fixtures/violations/entries/reads-new-date.mjs +7 -1
- package/fixtures/violations/entries/redefines-prototype-method.mjs +7 -1
- package/fixtures/violations/entries/renders-tq-csrf-field.mjs +7 -1
- package/fixtures/violations/entries/renders-tq-form-field.mjs +7 -1
- package/fixtures/violations/entries/response-too-large.mjs +7 -1
- package/fixtures/violations/entries/retains-tenant-state.mjs +7 -1
- package/fixtures/violations/entries/signed-in-actions-customer.mjs +7 -1
- package/fixtures/violations/entries/signed-in-harness-scope.mjs +7 -1
- package/fixtures/violations/entries/slow-cold-render.mjs +7 -1
- package/fixtures/violations/entries/slow-signed-in-render.mjs +7 -1
- package/fixtures/violations/entries/slow-store-b-render.mjs +7 -1
- package/fixtures/violations/entries/stashes-on-date-prototype.mjs +7 -1
- package/fixtures/violations/entries/stashes-on-json.mjs +7 -1
- package/fixtures/violations/entries/stashes-on-prototype.mjs +7 -1
- package/fixtures/violations/entries/swallows-data-limit.mjs +7 -1
- package/fixtures/violations/manifest.json +1 -1
- package/package.json +7 -14
- package/review-config.json +37 -0
|
@@ -45,6 +45,7 @@ export const manifest = {
|
|
|
45
45
|
title: 'Rich text',
|
|
46
46
|
regions: ['main'],
|
|
47
47
|
attributes: { body: { type: 'richtext', label: 'Body' } },
|
|
48
|
+
children: ['@app'],
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
settingsSchema: [{ group: 'Colors', items: [{ key: 'colorScheme', type: 'select', label: 'Scheme', options: [{ value: 'light', label: 'Light' }, { value: 'dark', label: 'Dark' }], default: 'light' }] }],
|
|
@@ -52,6 +53,11 @@ export const manifest = {
|
|
|
52
53
|
|
|
53
54
|
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c])
|
|
54
55
|
|
|
56
|
+
// theme-abi §7.2 AppBlocks-1: a block of an installed app renders as the platform placeholder, its settings inert JSON
|
|
57
|
+
const appJson = (v) => JSON.stringify(v ?? {}).replace(/</g, '\\u003c').replace(/>/g, '\\u003e').replace(/&/g, '\\u0026')
|
|
58
|
+
const appBlocks = (node) => (node.blocks ?? []).filter((b) => /^app:/.test(b.type)).map((b) => `<div data-tq-app-block="${esc(b.type)}" data-tq-node="${esc(b.id)}" data-tq-type="${esc(b.type)}" class="tq-app-block"><script type="application/json">${appJson(b.settings)}</script></div>`).join('')
|
|
59
|
+
|
|
60
|
+
|
|
55
61
|
function renderSection(node, snap) {
|
|
56
62
|
switch (node.type) {
|
|
57
63
|
case 'header-bar': {
|
|
@@ -62,7 +68,7 @@ function renderSection(node, snap) {
|
|
|
62
68
|
case 'hero':
|
|
63
69
|
return `<section data-tq-node="${esc(node.id)}"><h1>${esc(node.settings?.heading ?? 'Welcome')}</h1>${node.settings?.body ?? ''}</section>`
|
|
64
70
|
case 'rich-text':
|
|
65
|
-
return `<section data-tq-node="${esc(node.id)}">${node.settings?.body ?? ''}</section>`
|
|
71
|
+
return `<section data-tq-node="${esc(node.id)}">${node.settings?.body ?? ''}${appBlocks(node)}</section>`
|
|
66
72
|
default:
|
|
67
73
|
return ''
|
|
68
74
|
}
|
|
@@ -45,6 +45,7 @@ export const manifest = {
|
|
|
45
45
|
title: 'Rich text',
|
|
46
46
|
regions: ['main'],
|
|
47
47
|
attributes: { body: { type: 'richtext', label: 'Body' } },
|
|
48
|
+
children: ['@app'],
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
settingsSchema: [{ group: 'Colors', items: [{ key: 'colorScheme', type: 'select', label: 'Scheme', options: [{ value: 'light', label: 'Light' }, { value: 'dark', label: 'Dark' }], default: 'light' }] }],
|
|
@@ -52,6 +53,11 @@ export const manifest = {
|
|
|
52
53
|
|
|
53
54
|
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c])
|
|
54
55
|
|
|
56
|
+
// theme-abi §7.2 AppBlocks-1: a block of an installed app renders as the platform placeholder, its settings inert JSON
|
|
57
|
+
const appJson = (v) => JSON.stringify(v ?? {}).replace(/</g, '\\u003c').replace(/>/g, '\\u003e').replace(/&/g, '\\u0026')
|
|
58
|
+
const appBlocks = (node) => (node.blocks ?? []).filter((b) => /^app:/.test(b.type)).map((b) => `<div data-tq-app-block="${esc(b.type)}" data-tq-node="${esc(b.id)}" data-tq-type="${esc(b.type)}" class="tq-app-block"><script type="application/json">${appJson(b.settings)}</script></div>`).join('')
|
|
59
|
+
|
|
60
|
+
|
|
55
61
|
function renderSection(node, snap) {
|
|
56
62
|
switch (node.type) {
|
|
57
63
|
case 'header-bar': {
|
|
@@ -62,7 +68,7 @@ function renderSection(node, snap) {
|
|
|
62
68
|
case 'hero':
|
|
63
69
|
return `<section data-tq-node="${esc(node.id)}"><h1>${esc(node.settings?.heading ?? 'Welcome')}</h1>${node.settings?.body ?? ''}</section>`
|
|
64
70
|
case 'rich-text':
|
|
65
|
-
return `<section data-tq-node="${esc(node.id)}">${node.settings?.body ?? ''}</section>`
|
|
71
|
+
return `<section data-tq-node="${esc(node.id)}">${node.settings?.body ?? ''}${appBlocks(node)}</section>`
|
|
66
72
|
default:
|
|
67
73
|
return ''
|
|
68
74
|
}
|
|
@@ -45,6 +45,7 @@ export const manifest = {
|
|
|
45
45
|
title: 'Rich text',
|
|
46
46
|
regions: ['main'],
|
|
47
47
|
attributes: { body: { type: 'richtext', label: 'Body' } },
|
|
48
|
+
children: ['@app'],
|
|
48
49
|
},
|
|
49
50
|
},
|
|
50
51
|
settingsSchema: [{ group: 'Colors', items: [{ key: 'colorScheme', type: 'select', label: 'Scheme', options: [{ value: 'light', label: 'Light' }, { value: 'dark', label: 'Dark' }], default: 'light' }] }],
|
|
@@ -52,6 +53,11 @@ export const manifest = {
|
|
|
52
53
|
|
|
53
54
|
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c])
|
|
54
55
|
|
|
56
|
+
// theme-abi §7.2 AppBlocks-1: a block of an installed app renders as the platform placeholder, its settings inert JSON
|
|
57
|
+
const appJson = (v) => JSON.stringify(v ?? {}).replace(/</g, '\\u003c').replace(/>/g, '\\u003e').replace(/&/g, '\\u0026')
|
|
58
|
+
const appBlocks = (node) => (node.blocks ?? []).filter((b) => /^app:/.test(b.type)).map((b) => `<div data-tq-app-block="${esc(b.type)}" data-tq-node="${esc(b.id)}" data-tq-type="${esc(b.type)}" class="tq-app-block"><script type="application/json">${appJson(b.settings)}</script></div>`).join('')
|
|
59
|
+
|
|
60
|
+
|
|
55
61
|
function renderSection(node, snap) {
|
|
56
62
|
switch (node.type) {
|
|
57
63
|
case 'header-bar': {
|
|
@@ -62,7 +68,7 @@ function renderSection(node, snap) {
|
|
|
62
68
|
case 'hero':
|
|
63
69
|
return `<section data-tq-node="${esc(node.id)}"><h1>${esc(node.settings?.heading ?? 'Welcome')}</h1>${node.settings?.body ?? ''}</section>`
|
|
64
70
|
case 'rich-text':
|
|
65
|
-
return `<section data-tq-node="${esc(node.id)}">${node.settings?.body ?? ''}</section>`
|
|
71
|
+
return `<section data-tq-node="${esc(node.id)}">${node.settings?.body ?? ''}${appBlocks(node)}</section>`
|
|
66
72
|
default:
|
|
67
73
|
return ''
|
|
68
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":"2.0","capabilities":{"browser":[],"server":["data:shop","data:localization","data:catalog","data:content"]},"client":{"hydration":"none"},"components":{"header-bar":{"attributes":{"menu":{"default":"main-menu","label":"Menu","type":"menu"}},"regions":["header"],"role":"layout","title":"Header bar"},"hero":{"attributes":{"body":{"label":"Body","type":"richtext"},"heading":{"default":"Welcome","label":"Heading","type":"text"}},"presets":[{"name":"Default hero","settings":{"heading":"Welcome"}}],"regions":["main"],"role":"section","title":"Hero"},"rich-text":{"attributes":{"body":{"label":"Body","type":"richtext"}},"regions":["main"],"role":"section","title":"Rich text"}},"contentVersion":1,"engines":{"tanqory-abi":"^2.0","tanqory-field-types":"1"},"name":"@tanqory/fixture-violations","regions":{"header":{"accepts":["header-bar"],"max":1,"min":1,"scope":"shared","title":"Header"},"main":{"max":32,"scope":"template","title":"Main"}},"routes":{"collection":"collection","home":"index","not_found":"404","page":"page","product":"product"},"settingsSchema":[{"group":"Colors","items":[{"default":"light","key":"colorScheme","label":"Scheme","options":[{"label":"Light","value":"light"},{"label":"Dark","value":"dark"}],"type":"select"}]}],"templates":{"404":{"regions":["header","main"],"route":"not_found"},"collection":{"regions":["header","main"],"route":"collection"},"index":{"regions":["header","main"],"route":"home","title":"Home"},"page":{"regions":["header","main"],"route":"page"},"product":{"regions":["header","main"],"route":"product"}},"version":"1.0.0"}
|
|
1
|
+
{"abi":"2.0","capabilities":{"browser":[],"server":["data:shop","data:localization","data:catalog","data:content"]},"client":{"hydration":"none"},"components":{"header-bar":{"attributes":{"menu":{"default":"main-menu","label":"Menu","type":"menu"}},"regions":["header"],"role":"layout","title":"Header bar"},"hero":{"attributes":{"body":{"label":"Body","type":"richtext"},"heading":{"default":"Welcome","label":"Heading","type":"text"}},"presets":[{"name":"Default hero","settings":{"heading":"Welcome"}}],"regions":["main"],"role":"section","title":"Hero"},"rich-text":{"attributes":{"body":{"label":"Body","type":"richtext"}},"children":["@app"],"regions":["main"],"role":"section","title":"Rich text"}},"contentVersion":1,"engines":{"tanqory-abi":"^2.0","tanqory-field-types":"1"},"name":"@tanqory/fixture-violations","regions":{"header":{"accepts":["header-bar"],"max":1,"min":1,"scope":"shared","title":"Header"},"main":{"max":32,"scope":"template","title":"Main"}},"routes":{"collection":"collection","home":"index","not_found":"404","page":"page","product":"product"},"settingsSchema":[{"group":"Colors","items":[{"default":"light","key":"colorScheme","label":"Scheme","options":[{"label":"Light","value":"light"},{"label":"Dark","value":"dark"}],"type":"select"}]}],"templates":{"404":{"regions":["header","main"],"route":"not_found"},"collection":{"regions":["header","main"],"route":"collection"},"index":{"regions":["header","main"],"route":"home","title":"Home"},"page":{"regions":["header","main"],"route":"page"},"product":{"regions":["header","main"],"route":"product"}},"version":"1.0.0"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanqory/theme-conformance",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.17",
|
|
4
4
|
"description": "Conformance runner for Theme ABI v2 — boots a theme artifact under workerd with a host shim, runs the contract's nine suites (conformance-report.json) and the storefront / budgets tiers (storefront-report.json).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Tanqory",
|
|
@@ -28,19 +28,21 @@
|
|
|
28
28
|
"main": "./dist/index.js",
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"publishConfig": {
|
|
31
|
-
"
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/",
|
|
33
|
+
"tag": "alpha"
|
|
32
34
|
},
|
|
33
35
|
"files": [
|
|
34
36
|
"dist",
|
|
35
37
|
"schema",
|
|
36
38
|
"fixtures",
|
|
39
|
+
"review-config.json",
|
|
37
40
|
"shim-digests.json",
|
|
38
41
|
"docs/storefront-tier.md",
|
|
39
42
|
"README.md",
|
|
40
43
|
"LICENSE"
|
|
41
44
|
],
|
|
42
45
|
"scripts": {
|
|
43
|
-
"prepare": "husky",
|
|
44
46
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
45
47
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/copy-worker-assets.mjs",
|
|
46
48
|
"test": "vitest run",
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
"check": "pnpm fixtures:check && pnpm typecheck && pnpm build && pnpm test"
|
|
50
52
|
},
|
|
51
53
|
"dependencies": {
|
|
52
|
-
"@tanqory/theme-abi": "2.0.0-alpha.
|
|
54
|
+
"@tanqory/theme-abi": "2.0.0-alpha.15",
|
|
53
55
|
"ajv": "^8.17.1",
|
|
54
56
|
"axe-core": "4.10.3",
|
|
55
57
|
"eslint-scope": "^8.4.0",
|
|
@@ -58,14 +60,5 @@
|
|
|
58
60
|
"parse5": "^7.3.0",
|
|
59
61
|
"playwright": "1.63.0",
|
|
60
62
|
"workerd": "1.20261006.1"
|
|
61
|
-
}
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"@types/eslint-scope": "^8.3.1",
|
|
64
|
-
"@types/node": "^22.20.5",
|
|
65
|
-
"ajv-formats": "^3.0.1",
|
|
66
|
-
"husky": "^9.1.7",
|
|
67
|
-
"typescript": "~5.9.3",
|
|
68
|
-
"vitest": "^3.2.4"
|
|
69
|
-
},
|
|
70
|
-
"gitHead": "05bd22935cfebcc1ab02ea1b4e50c0a26052997d"
|
|
63
|
+
}
|
|
71
64
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Thresholds of `theme-conformance review` (src/review/): the extended checks a partner theme version must pass before Tanqory's human review (tanqory-platform docs/online-store/PARTNER_THEMES.md §5.2). Each number and list is configuration, read by src/review/config.ts; `--config <file>` replaces it for one run. Every value names its public source in `sources`. A change here changes the runner's identity (the last commit of packages/theme-conformance) and needs a reviewed entry in build-service config/trusted-runners.json.",
|
|
3
|
+
"format": "tq-review-config/1",
|
|
4
|
+
"performance": {
|
|
5
|
+
"minAverage": 60,
|
|
6
|
+
"pages": ["home", "product", "collection"],
|
|
7
|
+
"store": "large",
|
|
8
|
+
"sources": [
|
|
9
|
+
"Lighthouse performance score (0-100), default mobile configuration with simulated throttling: https://developer.chrome.com/docs/lighthouse/performance/performance-scoring",
|
|
10
|
+
"The reference platform's current theme store requirement: Lighthouse performance score of at least 60, averaged over the home, product and collection pages (PARTNER_THEMES.md §1.2 R1, dev docs /docs/storefronts/themes/store/requirements)"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"accessibility": {
|
|
14
|
+
"lighthouseMinAverage": 90,
|
|
15
|
+
"axeTags": ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"],
|
|
16
|
+
"axeFailImpacts": ["serious", "critical"],
|
|
17
|
+
"pages": ["home", "product", "collection"],
|
|
18
|
+
"store": "large",
|
|
19
|
+
"viewports": ["desktop", "mobile"],
|
|
20
|
+
"sources": [
|
|
21
|
+
"Lighthouse accessibility score (weighted axe-core audits, 0-100): https://developer.chrome.com/docs/lighthouse/accessibility/scoring",
|
|
22
|
+
"The reference platform's current theme store requirement: Lighthouse accessibility score of at least 90, averaged over the home, product and collection pages (PARTNER_THEMES.md §1.2 R1)",
|
|
23
|
+
"WCAG 2.2 level AA as axe-core rule tags wcag2a, wcag2aa, wcag21a, wcag21aa, wcag22aa: https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#axe-core-tags ; https://www.w3.org/TR/WCAG22/",
|
|
24
|
+
"axe-core impact levels minor < moderate < serious < critical: https://github.com/dequelabs/axe-core/blob/develop/doc/issue_impact.md"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"previews": {
|
|
28
|
+
"stores": ["small", "large", "rtl"],
|
|
29
|
+
"screenshotPages": ["home", "product", "collection"],
|
|
30
|
+
"viewports": ["desktop", "mobile"],
|
|
31
|
+
"jpegQuality": 70,
|
|
32
|
+
"sources": [
|
|
33
|
+
"theme-abi-v2.md §7.3: every component's presets[0] renders standalone (the editor's section preview); §10 suite 2: every declared route renders",
|
|
34
|
+
"PARTNER_THEMES.md §5.2 'Preview renders on sample stores' (Tanqory choice: a small catalogue; a large catalogue with variants and long titles; a second language and a right-to-left locale)"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|