@spillway-cms/blocks 0.1.24 → 0.1.25

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.
Files changed (55) hide show
  1. package/dist/collection.d.ts +32 -1
  2. package/dist/collection.js +40 -5
  3. package/dist/collection.js.map +1 -1
  4. package/dist/config.d.ts +15 -1
  5. package/dist/config.js +23 -3
  6. package/dist/config.js.map +1 -1
  7. package/dist/countdown.d.ts +34 -0
  8. package/dist/countdown.js +81 -0
  9. package/dist/countdown.js.map +1 -0
  10. package/dist/css.js +17 -0
  11. package/dist/css.js.map +1 -1
  12. package/dist/documents.d.ts +52 -0
  13. package/dist/documents.js +146 -0
  14. package/dist/documents.js.map +1 -0
  15. package/dist/examples.js +74 -0
  16. package/dist/examples.js.map +1 -1
  17. package/dist/form.d.ts +11 -3
  18. package/dist/form.js +27 -11
  19. package/dist/form.js.map +1 -1
  20. package/dist/glossary.d.ts +56 -0
  21. package/dist/glossary.js +117 -0
  22. package/dist/glossary.js.map +1 -0
  23. package/dist/hours.d.ts +44 -0
  24. package/dist/hours.js +163 -0
  25. package/dist/hours.js.map +1 -0
  26. package/dist/index.d.ts +16 -0
  27. package/dist/index.js +9 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/language-switcher.d.ts +38 -0
  30. package/dist/language-switcher.js +60 -0
  31. package/dist/language-switcher.js.map +1 -0
  32. package/dist/listing-script.d.ts +13 -0
  33. package/dist/listing-script.js +44 -0
  34. package/dist/listing-script.js.map +1 -0
  35. package/dist/location-map.d.ts +60 -0
  36. package/dist/location-map.js +215 -0
  37. package/dist/location-map.js.map +1 -0
  38. package/dist/meta.js +37 -2
  39. package/dist/meta.js.map +1 -1
  40. package/dist/motion.js +1 -1
  41. package/dist/progress.d.ts +46 -0
  42. package/dist/progress.js +106 -0
  43. package/dist/progress.js.map +1 -0
  44. package/dist/registry-package.js +1 -1
  45. package/dist/registry-package.js.map +1 -1
  46. package/dist/registry-types.d.ts +5 -0
  47. package/dist/registry-types.js.map +1 -1
  48. package/dist/styles.css +193 -1
  49. package/dist/utility-script.d.ts +20 -0
  50. package/dist/utility-script.js +90 -0
  51. package/dist/utility-script.js.map +1 -0
  52. package/dist/utility-shared.d.ts +18 -0
  53. package/dist/utility-shared.js +32 -0
  54. package/dist/utility-shared.js.map +1 -0
  55. package/package.json +2 -2
@@ -0,0 +1,106 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { countableValue } from './marketing.js';
3
+ import { cx, keyFor, textOf } from './utility-shared.js';
4
+ let currencies = null;
5
+ /** Whether Intl knows the currency (it formats any three letters, "ZZZ 1,200", otherwise). */
6
+ function knownCurrency(code) {
7
+ const list = Intl.supportedValuesOf;
8
+ if (!list)
9
+ return true;
10
+ currencies ??= new Set(list('currency'));
11
+ return currencies.has(code.toUpperCase());
12
+ }
13
+ /** 12500 usd → "$12,500"; 12.5 → "$12.50"; plain numbers with grouping; an unknown currency falls back to plain. */
14
+ export function formatAmount(n, currency) {
15
+ const v = Number.isFinite(n) ? n : 0;
16
+ const whole = Math.abs(v - Math.round(v)) < 0.005;
17
+ if (currency && /^[a-z]{3}$/i.test(currency) && knownCurrency(currency)) {
18
+ try {
19
+ return new Intl.NumberFormat('en-US', { style: 'currency', currency: currency.toUpperCase(), minimumFractionDigits: whole ? 0 : 2, maximumFractionDigits: whole ? 0 : 2 }).format(v);
20
+ }
21
+ catch {
22
+ /* not a currency Intl knows: plain number */
23
+ }
24
+ }
25
+ return new Intl.NumberFormat('en-US', { maximumFractionDigits: whole ? 0 : 2 }).format(v);
26
+ }
27
+ /** The percentage of the goal reached, whole, floored (99.6 percent is not yet 100); 0 without a goal. */
28
+ export function percentOf(raised, goal) {
29
+ return goal > 0 && raised > 0 ? Math.floor((raised / goal) * 100) : 0;
30
+ }
31
+ /** A figure that counts up when the motion script runs: the digits for the eye, the final value once for screen readers. */
32
+ function Figure({ value, countUp, className }) {
33
+ const n = countUp ? countableValue(value) : null;
34
+ if (!n)
35
+ return _jsx("span", { className: className, children: value });
36
+ return (_jsxs("span", { className: className, children: [_jsx("span", { "aria-hidden": "true", "data-count-to": n.to, "data-count-prefix": n.prefix, "data-count-suffix": n.suffix, "data-count-decimals": n.decimals, "data-count-group": n.group ? '' : undefined, children: value }), _jsx("span", { className: "sw-visually-hidden", children: value })] }));
37
+ }
38
+ export const campaignProgressComponent = {
39
+ label: 'Campaign progress',
40
+ fields: {
41
+ title: { type: 'text', label: 'Title', contentEditable: true },
42
+ text: { type: 'textarea', label: 'Text' },
43
+ source: { type: 'radio', label: 'Numbers from', options: [{ label: 'Typed here', value: 'manual' }, { label: 'A payment form', value: 'form' }, { label: 'A module', value: 'module' }] },
44
+ raised: { type: 'number', label: 'Raised', min: 0 },
45
+ goal: { type: 'number', label: 'Goal', min: 0 },
46
+ count: { type: 'number', label: 'Number of gifts (typed numbers)', min: 0 },
47
+ formKey: { type: 'text', label: 'Payment form key (numbers from a payment form)' },
48
+ sourceKey: { type: 'text', label: 'Module source key (numbers from a module)' },
49
+ format: { type: 'radio', label: 'Show as', options: [{ label: 'Money', value: 'currency' }, { label: 'Plain numbers', value: 'number' }] },
50
+ currency: { type: 'text', label: 'Currency (ISO code, such as usd)', placeholder: 'usd' },
51
+ unit: { type: 'text', label: 'Unit for plain numbers', placeholder: 'meals' },
52
+ showCount: { type: 'radio', label: 'Number of gifts', options: [{ label: 'Show', value: true }, { label: 'Hide', value: false }] },
53
+ countLabel: { type: 'text', label: 'What a gift is called', placeholder: 'gifts' },
54
+ countUp: { type: 'radio', label: 'Count up as it comes into view', options: [{ label: 'Off', value: false }, { label: 'On', value: true }] },
55
+ },
56
+ defaultProps: {
57
+ title: 'Help us reach our goal',
58
+ text: '',
59
+ source: 'manual',
60
+ raised: 12500,
61
+ goal: 50000,
62
+ count: 0,
63
+ formKey: '',
64
+ sourceKey: '',
65
+ format: 'currency',
66
+ currency: 'usd',
67
+ unit: '',
68
+ showCount: false,
69
+ countLabel: 'gifts',
70
+ countUp: false,
71
+ },
72
+ render: (props) => {
73
+ const { title, text, format, currency, unit, showCount, countLabel, countUp, resolved } = props;
74
+ const raised = Math.max(0, Number(resolved?.raised ?? props.raised) || 0);
75
+ const goal = Math.max(0, Number(resolved?.goal ?? props.goal) || 0);
76
+ const count = resolved ? resolved.count : Number.isFinite(Number(props.count)) && Number(props.count) > 0 ? Math.floor(Number(props.count)) : null;
77
+ const cur = format === 'number' ? null : (resolved?.currency ?? (textOf(currency).trim().toLowerCase() || 'usd'));
78
+ const unitText = format === 'number' ? textOf(unit).trim() : '';
79
+ const pct = percentOf(raised, goal);
80
+ const raisedText = formatAmount(raised, cur);
81
+ const goalText = formatAmount(goal, cur);
82
+ const key = keyFor('progress', props.id, `${raised}/${goal}`);
83
+ const titleText = textOf(title);
84
+ const u = unitText ? ` ${unitText}` : '';
85
+ const valueText = goal > 0 ? `${raisedText}${u} raised of ${goalText}${u}, ${pct} percent` : `${raisedText}${u} raised`;
86
+ const animate = countUp === true;
87
+ return (_jsx("section", { className: "sw-block sw-progress", "data-motion-count": animate ? '' : undefined, "aria-labelledby": titleText ? `${key}-title` : undefined, children: _jsxs("div", { className: "sw-container", children: [titleText ? (_jsx("h2", { className: "sw-progress__title", id: `${key}-title`, children: title })) : null, textOf(text).trim() ? _jsx("p", { className: "sw-progress__text", children: text }) : null, _jsxs("p", { className: "sw-progress__figures", children: [_jsx(Figure, { className: "sw-progress__raised", value: raisedText, countUp: animate }), u ? _jsx("span", { className: "sw-progress__unit", children: u }) : null, _jsx("span", { className: "sw-progress__of", children: goal > 0 ? ` raised of ${goalText}${u}` : ' raised' })] }), _jsx("div", { className: cx('sw-progress__bar', pct >= 100 && 'sw-progress__bar--met'), role: "progressbar", "aria-labelledby": titleText ? `${key}-title` : undefined, "aria-label": titleText ? undefined : 'Campaign progress', "aria-valuemin": 0, "aria-valuemax": goal > 0 ? goal : 100, "aria-valuenow": goal > 0 ? Math.min(raised, goal) : 0, "aria-valuetext": valueText, children: _jsx("span", { className: "sw-progress__fill", style: { ['--sw-progress']: String(Math.min(1, goal > 0 ? raised / goal : 0).toFixed(4)) } }) }), _jsxs("p", { className: "sw-progress__meta", children: [goal > 0 ? (_jsxs("span", { children: [_jsx(Figure, { className: "sw-progress__pct", value: `${pct}%`, countUp: animate }), " of the goal"] })) : null, showCount && count !== null ? (_jsx("span", { children: `${formatAmount(count, null)} ${textOf(countLabel).trim() || 'gifts'}` })) : null] })] }) }));
88
+ },
89
+ };
90
+ export const PROGRESS_CSS = `
91
+ /* ---------- Campaign progress ---------- */
92
+ .sw-progress__title { margin: 0 0 var(--sw-space-1); }
93
+ .sw-progress__text { margin: 0 0 var(--sw-space-2); color: var(--sw-color-muted); max-width: 70ch; }
94
+ .sw-progress__figures { margin: 0 0 var(--sw-space-1); font-size: 1.125rem; }
95
+ .sw-progress__raised { font-family: var(--sw-font-heading); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; color: var(--sw-color-primary); font-variant-numeric: tabular-nums; }
96
+ .sw-progress__bar { position: relative; height: 1rem; overflow: hidden; border-radius: 999px; background: var(--sw-color-surface); border: 1px solid var(--sw-color-border); }
97
+ .sw-progress__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--sw-progress, 0)); background: var(--sw-color-primary); border-radius: inherit; }
98
+ [dir="rtl"] .sw-progress__fill { transform-origin: right center; }
99
+ .sw-progress__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sw-space-1); margin: var(--sw-space-1) 0 0; color: var(--sw-color-muted); font-variant-numeric: tabular-nums; }
100
+ .sw-progress__pct { font-weight: 700; color: var(--sw-color-text); }
101
+ @media (prefers-reduced-motion: no-preference) {
102
+ html.sw-motion-ready:not(.sw-reduce-motion) .sw-progress[data-motion-count] .sw-progress__fill { transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
103
+ html.sw-motion-ready:not(.sw-reduce-motion) .sw-progress[data-motion-count]:not([data-motion-counted]) .sw-progress__fill { transform: scaleX(0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CACtF,CAAC,CAAC,CAAC,IAAI,IACN,IACA,GACE,CACX,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;CAe3B,CAAC"}
@@ -56,7 +56,7 @@ export const registryPackageComponent = {
56
56
  return (_jsx("section", { className: "sw-block sw-reg-package", children: _jsx("div", { className: "sw-container", children: _jsx(Placeholder, { label: "Registry package: resolved from the page path (/registry/<name>)" }) }) }));
57
57
  }
58
58
  const isModule = data.kind === 'module';
59
- return (_jsx("article", { className: "sw-block sw-reg-package", "data-package": data.name, "data-kind": data.kind, children: _jsxs("div", { className: "sw-container", children: [_jsxs("header", { className: "sw-reg-package__head", children: [_jsxs("div", { className: "sw-reg-package__title-row", children: [_jsx("h1", { className: "sw-reg-package__name", children: data.name }), data.latest ? _jsxs("code", { className: "sw-reg-package__version", children: ["v", data.latest] }) : null] }), _jsxs("div", { className: "sw-reg-badges", children: [_jsx(KindBadge, { kind: data.kind }), isModule ? _jsx(TierBadge, { tier: data.tier }) : null, _jsx(StatusBadges, { reviewed: data.reviewed, checked: data.checked, verified: Boolean(data.org ? data.org.verified : data.publisher?.verified), deprecated: Boolean(data.deprecated) })] }), data.description ? _jsx("p", { className: "sw-reg-package__desc", children: data.description }) : null, _jsxs("dl", { className: "sw-reg-package__facts", children: [data.org ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "By" }), _jsxs("dd", { children: [_jsx("a", { href: data.org.href, rel: "author", className: "sw-reg-package__org", children: data.org.name || data.org.handle }), data.org.verified ? _jsx("span", { className: "sw-reg-package__verified", children: " (verified organization)" }) : null] })] })) : null, data.publisher ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "Publisher" }), _jsxs("dd", { children: [_jsx("a", { href: data.publisher.href, rel: "author", children: data.publisher.name || data.publisher.handle }), data.publisher.verified ? _jsx("span", { className: "sw-reg-package__verified", children: " (verified)" }) : null] })] })) : null, _jsx("dt", { children: "Downloads" }), _jsx("dd", { children: formatCount(data.downloads) }), data.license ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "License" }), _jsx("dd", { children: data.license })] })) : null, data.compatibility ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "Spillway" }), _jsx("dd", { children: _jsx("code", { children: data.compatibility }) })] })) : null, data.updatedAt ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "Updated" }), _jsx("dd", { children: _jsx("time", { dateTime: data.updatedAt, children: formatDate(data.updatedAt) }) })] })) : null] }), _jsxs("ul", { className: "sw-reg-package__links", children: [data.homepage ? (_jsx("li", { children: _jsx("a", { href: data.homepage, rel: "noopener", children: "Homepage" }) })) : null, data.repository ? (_jsx("li", { children: _jsx("a", { href: data.repository, rel: "noopener", children: "Repository" }) })) : null, data.previewHref ? (_jsx("li", { children: _jsx("a", { href: data.previewHref, children: "Preview" }) })) : null, _jsx("li", { children: _jsx("a", { href: data.manifestUrl, children: "manifest.json" }) })] })] }), data.deprecated ? (_jsxs("div", { className: "sw-reg-banner sw-reg-banner--deprecated", role: "status", children: [_jsx("strong", { className: "sw-reg-banner__title", children: "Deprecated" }), " ", data.deprecated.reason || 'The publisher no longer maintains this package.', data.deprecated.since ? _jsxs("span", { className: "sw-reg-banner__meta", children: [" \u00B7 since ", formatDate(data.deprecated.since)] }) : null] })) : null, data.pendingReview ? (_jsxs("div", { className: "sw-reg-banner sw-reg-banner--pending", role: "status", children: [_jsx("strong", { className: "sw-reg-banner__title", children: "Awaiting review." }), " This trusted module runs in the server process. It is listed here by direct link only until a maintainer has read the code; install it only if you trust the publisher."] })) : null, _jsx(Advisories, { items: data.advisories }), _jsxs("div", { className: "sw-reg-package__grid", children: [_jsxs("div", { className: "sw-reg-package__main", children: [_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-install`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-install`, children: "Install" }), _jsx(InstallBox, { id: bid, command: data.installCommand, nonce: nonce }), data.kind === 'module' ? (_jsxs("p", { className: "sw-reg-section__hint", children: ["Or in the admin: ", _jsx("strong", { children: "Modules \u2192 Install from registry" }), ", search for ", _jsx("code", { children: data.name }), "."] })) : (_jsxs("p", { className: "sw-reg-section__hint", children: ["Or in the admin: ", _jsx("strong", { children: "Kits \u2192 Install from registry" }), ", search for ", _jsx("code", { children: data.name }), "."] }))] }), data.pack ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-pack`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-pack`, children: "What the pack adds" }), _jsxs("p", { className: "sw-reg-section__hint", children: ["Patterns land in the site\u2019s pattern library. Styles land in the brand draft for review and follow the site\u2019s colors and fonts.", data.pack.components?.length ? _jsx(_Fragment, { children: " Site components arrive as drafts in the component studio, where someone publishes them." }) : null] }), data.pack.patterns.length ? (_jsxs(_Fragment, { children: [_jsx("h3", { className: "sw-reg-pack__title", children: "Patterns" }), _jsx("ul", { className: "sw-reg-pack__list", children: data.pack.patterns.map((p, i) => (_jsxs("li", { children: [_jsx("strong", { children: p.label }), " ", _jsx("span", { className: "sw-reg-pack__meta", children: p.category }), p.description ? _jsx("span", { className: "sw-reg-pack__desc", children: p.description }) : null] }, i))) })] })) : null, data.pack.components?.length ? (_jsxs(_Fragment, { children: [_jsx("h3", { className: "sw-reg-pack__title", children: "Site components" }), _jsx("ul", { className: "sw-reg-pack__list", children: data.pack.components.map((c, i) => (_jsxs("li", { children: [_jsx("strong", { children: c.label }), c.fields.length ? _jsxs("span", { className: "sw-reg-pack__meta", children: ["Fields: ", c.fields.join(', ')] }) : null, c.variants.length ? _jsxs("span", { className: "sw-reg-pack__meta", children: ["Variants: ", c.variants.join(', ')] }) : null, c.description ? _jsx("span", { className: "sw-reg-pack__desc", children: c.description }) : null] }, i))) })] })) : null, data.pack.styles.length ? (_jsxs(_Fragment, { children: [_jsx("h3", { className: "sw-reg-pack__title", children: "Block styles" }), _jsx("ul", { className: "sw-reg-pack__list", children: data.pack.styles.map((s) => (_jsxs("li", { children: [_jsx("strong", { children: s.label }), " ", _jsx("span", { className: "sw-reg-pack__meta", children: s.block }), s.description ? _jsx("span", { className: "sw-reg-pack__desc", children: s.description }) : null] }, `${s.block}:${s.key}`))) })] })) : null] })) : null, showReadme !== false && data.readmeHtml ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-readme`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-readme`, children: "README" }), _jsx("div", { className: "sw-prose sw-reg-readme", dangerouslySetInnerHTML: { __html: keyboardScrollable(data.readmeHtml) } })] })) : null, showVersions !== false ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-versions`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-versions`, children: "Versions" }), _jsx(Versions, { items: data.versions })] })) : null, showChangelog !== false && data.changelogHtml ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-changelog`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-changelog`, children: "Changelog" }), _jsx("div", { className: "sw-prose sw-reg-readme", dangerouslySetInnerHTML: { __html: keyboardScrollable(data.changelogHtml) } })] })) : null] }), _jsxs("div", { className: "sw-reg-package__side", children: [isModule ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-caps`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-caps`, children: "Capabilities" }), data.capabilities.length === 0 ? (_jsx("p", { className: "sw-reg-empty", children: "This module declares no capabilities: it cannot read content, call out or hook into events." })) : (_jsx("ul", { className: "sw-reg-caps", children: data.capabilities.map((c) => (_jsxs("li", { className: cx('sw-reg-cap', c.sensitive && 'sw-reg-cap--sensitive'), children: [_jsx("code", { className: "sw-reg-cap__key", children: c.key }), _jsx("span", { className: "sw-reg-cap__text", children: c.explanation })] }, c.key))) })), _jsx("p", { className: "sw-reg-section__hint", children: data.tier === 'trusted'
59
+ return (_jsx("article", { className: "sw-block sw-reg-package", "data-package": data.name, "data-kind": data.kind, children: _jsxs("div", { className: "sw-container", children: [_jsxs("header", { className: "sw-reg-package__head", children: [_jsxs("div", { className: "sw-reg-package__title-row", children: [_jsx("h1", { className: "sw-reg-package__name", children: data.name }), data.latest ? _jsxs("code", { className: "sw-reg-package__version", children: ["v", data.latest] }) : null] }), _jsxs("div", { className: "sw-reg-badges", children: [_jsx(KindBadge, { kind: data.kind }), isModule ? _jsx(TierBadge, { tier: data.tier }) : null, _jsx(StatusBadges, { reviewed: data.reviewed, checked: data.checked, verified: Boolean(data.org ? data.org.verified : data.publisher?.verified), deprecated: Boolean(data.deprecated) })] }), data.description ? _jsx("p", { className: "sw-reg-package__desc", children: data.description }) : null, data.notices?.length ? (_jsxs("p", { className: "sw-reg-package__notices", children: [data.notices.map((n) => (_jsx("span", { className: "sw-reg-badge sw-reg-badge--notice", children: n }, n))), ' ', _jsx("span", { children: "Its scripts run in visitors' browsers on your site; mention it in your privacy policy." })] })) : null, _jsxs("dl", { className: "sw-reg-package__facts", children: [data.org ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "By" }), _jsxs("dd", { children: [_jsx("a", { href: data.org.href, rel: "author", className: "sw-reg-package__org", children: data.org.name || data.org.handle }), data.org.verified ? _jsx("span", { className: "sw-reg-package__verified", children: " (verified organization)" }) : null] })] })) : null, data.publisher ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "Publisher" }), _jsxs("dd", { children: [_jsx("a", { href: data.publisher.href, rel: "author", children: data.publisher.name || data.publisher.handle }), data.publisher.verified ? _jsx("span", { className: "sw-reg-package__verified", children: " (verified)" }) : null] })] })) : null, _jsx("dt", { children: "Downloads" }), _jsx("dd", { children: formatCount(data.downloads) }), data.license ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "License" }), _jsx("dd", { children: data.license })] })) : null, data.compatibility ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "Spillway" }), _jsx("dd", { children: _jsx("code", { children: data.compatibility }) })] })) : null, data.updatedAt ? (_jsxs(_Fragment, { children: [_jsx("dt", { children: "Updated" }), _jsx("dd", { children: _jsx("time", { dateTime: data.updatedAt, children: formatDate(data.updatedAt) }) })] })) : null] }), _jsxs("ul", { className: "sw-reg-package__links", children: [data.homepage ? (_jsx("li", { children: _jsx("a", { href: data.homepage, rel: "noopener", children: "Homepage" }) })) : null, data.repository ? (_jsx("li", { children: _jsx("a", { href: data.repository, rel: "noopener", children: "Repository" }) })) : null, data.previewHref ? (_jsx("li", { children: _jsx("a", { href: data.previewHref, children: "Preview" }) })) : null, _jsx("li", { children: _jsx("a", { href: data.manifestUrl, children: "manifest.json" }) })] })] }), data.deprecated ? (_jsxs("div", { className: "sw-reg-banner sw-reg-banner--deprecated", role: "status", children: [_jsx("strong", { className: "sw-reg-banner__title", children: "Deprecated" }), " ", data.deprecated.reason || 'The publisher no longer maintains this package.', data.deprecated.since ? _jsxs("span", { className: "sw-reg-banner__meta", children: [" \u00B7 since ", formatDate(data.deprecated.since)] }) : null] })) : null, data.pendingReview ? (_jsxs("div", { className: "sw-reg-banner sw-reg-banner--pending", role: "status", children: [_jsx("strong", { className: "sw-reg-banner__title", children: "Awaiting review." }), " This trusted module runs in the server process. It is listed here by direct link only until a maintainer has read the code; install it only if you trust the publisher."] })) : null, _jsx(Advisories, { items: data.advisories }), _jsxs("div", { className: "sw-reg-package__grid", children: [_jsxs("div", { className: "sw-reg-package__main", children: [_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-install`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-install`, children: "Install" }), _jsx(InstallBox, { id: bid, command: data.installCommand, nonce: nonce }), data.kind === 'module' ? (_jsxs("p", { className: "sw-reg-section__hint", children: ["Or in the admin: ", _jsx("strong", { children: "Modules \u2192 Install from registry" }), ", search for ", _jsx("code", { children: data.name }), "."] })) : (_jsxs("p", { className: "sw-reg-section__hint", children: ["Or in the admin: ", _jsx("strong", { children: "Kits \u2192 Install from registry" }), ", search for ", _jsx("code", { children: data.name }), "."] }))] }), data.pack ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-pack`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-pack`, children: "What the pack adds" }), _jsxs("p", { className: "sw-reg-section__hint", children: ["Patterns land in the site\u2019s pattern library. Styles land in the brand draft for review and follow the site\u2019s colors and fonts.", data.pack.components?.length ? _jsx(_Fragment, { children: " Site components arrive as drafts in the component studio, where someone publishes them." }) : null] }), data.pack.patterns.length ? (_jsxs(_Fragment, { children: [_jsx("h3", { className: "sw-reg-pack__title", children: "Patterns" }), _jsx("ul", { className: "sw-reg-pack__list", children: data.pack.patterns.map((p, i) => (_jsxs("li", { children: [_jsx("strong", { children: p.label }), " ", _jsx("span", { className: "sw-reg-pack__meta", children: p.category }), p.description ? _jsx("span", { className: "sw-reg-pack__desc", children: p.description }) : null] }, i))) })] })) : null, data.pack.components?.length ? (_jsxs(_Fragment, { children: [_jsx("h3", { className: "sw-reg-pack__title", children: "Site components" }), _jsx("ul", { className: "sw-reg-pack__list", children: data.pack.components.map((c, i) => (_jsxs("li", { children: [_jsx("strong", { children: c.label }), c.fields.length ? _jsxs("span", { className: "sw-reg-pack__meta", children: ["Fields: ", c.fields.join(', ')] }) : null, c.variants.length ? _jsxs("span", { className: "sw-reg-pack__meta", children: ["Variants: ", c.variants.join(', ')] }) : null, c.description ? _jsx("span", { className: "sw-reg-pack__desc", children: c.description }) : null] }, i))) })] })) : null, data.pack.styles.length ? (_jsxs(_Fragment, { children: [_jsx("h3", { className: "sw-reg-pack__title", children: "Block styles" }), _jsx("ul", { className: "sw-reg-pack__list", children: data.pack.styles.map((s) => (_jsxs("li", { children: [_jsx("strong", { children: s.label }), " ", _jsx("span", { className: "sw-reg-pack__meta", children: s.block }), s.description ? _jsx("span", { className: "sw-reg-pack__desc", children: s.description }) : null] }, `${s.block}:${s.key}`))) })] })) : null] })) : null, showReadme !== false && data.readmeHtml ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-readme`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-readme`, children: "README" }), _jsx("div", { className: "sw-prose sw-reg-readme", dangerouslySetInnerHTML: { __html: keyboardScrollable(data.readmeHtml) } })] })) : null, showVersions !== false ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-versions`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-versions`, children: "Versions" }), _jsx(Versions, { items: data.versions })] })) : null, showChangelog !== false && data.changelogHtml ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-changelog`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-changelog`, children: "Changelog" }), _jsx("div", { className: "sw-prose sw-reg-readme", dangerouslySetInnerHTML: { __html: keyboardScrollable(data.changelogHtml) } })] })) : null] }), _jsxs("div", { className: "sw-reg-package__side", children: [isModule ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-caps`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-caps`, children: "Capabilities" }), data.capabilities.length === 0 ? (_jsx("p", { className: "sw-reg-empty", children: "This module declares no capabilities: it cannot read content, call out or hook into events." })) : (_jsx("ul", { className: "sw-reg-caps", children: data.capabilities.map((c) => (_jsxs("li", { className: cx('sw-reg-cap', c.sensitive && 'sw-reg-cap--sensitive'), children: [_jsx("code", { className: "sw-reg-cap__key", children: c.key }), _jsx("span", { className: "sw-reg-cap__text", children: c.explanation })] }, c.key))) })), _jsx("p", { className: "sw-reg-section__hint", children: data.tier === 'trusted'
60
60
  ? 'Trusted modules run in the server process; the capabilities are a declaration enforced by review, not a sandbox.'
61
61
  : 'Sandboxed extensions run in WebAssembly; the host refuses anything the manifest does not declare.' })] })) : null, data.screenshots && data.screenshots.length ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-shots`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-shots`, children: "Screenshots" }), _jsx("ul", { className: "sw-reg-shots", children: data.screenshots.map((s, i) => (_jsx("li", { children: _jsx("img", { src: s.url, alt: s.alt, loading: "lazy" }) }, i))) })] })) : null, data.keywords && data.keywords.length ? (_jsxs("section", { className: "sw-reg-section", "aria-labelledby": `${bid}-kw`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-kw`, children: "Keywords" }), _jsx("ul", { className: "sw-reg-keywords", children: data.keywords.map((k) => (_jsx("li", { children: _jsx("a", { href: `/registry?q=${encodeURIComponent(k)}`, children: k }) }, k))) })] })) : null, showAgents !== false ? (_jsxs("section", { className: "sw-reg-section sw-reg-agents", "aria-labelledby": `${bid}-agents`, children: [_jsx("h2", { className: "sw-reg-section__title", id: `${bid}-agents`, children: "For agents" }), _jsxs("p", { children: ["An AI agent with an API token can install and configure this package from a conversation. The machine-readable description (kind, versions, checksums, capabilities, settings schema and the install call) is at", ' ', _jsx("a", { href: data.manifestUrl, children: _jsx("code", { children: data.manifestUrl }) }), "."] }), data.indexUrl ? (_jsxs("p", { className: "sw-reg-section__hint", children: ["Signed index entry: ", _jsx("a", { href: data.indexUrl, children: data.indexUrl })] })) : null] })) : null] })] })] }) }));
62
62
  },
@@ -1 +1 @@
1
- {"version":3,"file":"registry-package.js","sourceRoot":"","sources":["../src/registry-package.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACjI,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAiBnD,MAAM,KAAK,GAAG;IACZ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;IAC7B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;CACrB,CAAC;AAEX,kIAAkI;AAClI,MAAM,CAAC,MAAM,WAAW,GAAG,kyBAAkyB,CAAC;AAE9zB,MAAM,cAAc,GAAoD,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU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C,EAAE,EAAE,GAAG,GAAG,KAAK,yBAEhD,EACL,aAAI,SAAS,EAAC,iBAAiB,YAC5B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACxB,uBACE,YAAG,IAAI,EAAE,eAAe,kBAAkB,CAAC,CAAC,CAAC,EAAE,YAAG,CAAC,GAAK,IADjD,CAAC,CAEL,CACN,CAAC,GACC,IACG,CACX,CAAC,CAAC,CAAC,IAAI,EAEP,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,CACtB,mBAAS,SAAS,EAAC,8BAA8B,qBAAkB,GAAG,GAAG,SAAS,aAChF,aAAI,SAAS,EAAC,uBAAuB,EAAC,EAAE,EAAE,GAAG,GAAG,SAAS,2BAEpD,EACL,4OACmN,GAAG,EACpN,YAAG,IAAI,EAAE,IAAI,CAAC,WAAW,YACvB,yBAAO,IAAI,CAAC,WAAW,GAAQ,GAC7B,SAEF,EACH,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CACf,aAAG,SAAS,EAAC,sBAAsB,qCACb,YAAG,IAAI,EAAE,IAAI,CAAC,QAAQ,YAAG,IAAI,CAAC,QAAQ,GAAK,IAC7D,CACL,CAAC,CAAC,CAAC,IAAI,IACA,CACX,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,IACF,GACE,CACX,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFjC,CAAC"}
@@ -123,6 +123,11 @@ export interface RegistryPackageData {
123
123
  homepage?: string | null;
124
124
  repository?: string | null;
125
125
  license?: string | null;
126
+ /**
127
+ * What a module's scripts do to visitors, as the registry labels it: "Shows ads", "Sets cookies" (ModuleManifest.notices), shown
128
+ * as badges and a sentence under the description.
129
+ */
130
+ notices?: string[];
126
131
  installCommand: string;
127
132
  downloads: number;
128
133
  latest: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"registry-types.js","sourceRoot":"","sources":["../src/registry-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiLH,gDAAgD;AAChD,MAAM,CAAC,MAAM,oBAAoB,GAAiC,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;AAE7J,0EAA0E;AAC1E,MAAM,UAAU,iBAAiB,CAAC,GAAW;IAC3C,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,sCAAsC,IAAI,2EAA2E,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IACtK,CAAC;IACD,MAAM,KAAK,GAAsC;QAC/C,KAAK,EAAE,CAAC,+FAA+F,EAAE,KAAK,CAAC;QAC/G,MAAM,EAAE,CAAC,kCAAkC,EAAE,KAAK,CAAC;QACnD,MAAM,EAAE,CAAC,oCAAoC,EAAE,KAAK,CAAC;QACrD,KAAK,EAAE,CAAC,0BAA0B,EAAE,KAAK,CAAC;QAC1C,UAAU,EAAE,CAAC,oDAAoD,EAAE,KAAK,CAAC;QACzE,aAAa,EAAE,CAAC,2CAA2C,EAAE,KAAK,CAAC;QACnE,cAAc,EAAE,CAAC,0EAA0E,EAAE,IAAI,CAAC;QAClG,WAAW,EAAE,CAAC,6CAA6C,EAAE,KAAK,CAAC;QACnE,YAAY,EAAE,CAAC,mCAAmC,EAAE,KAAK,CAAC;KAC3D,CAAC;IACF,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,WAAW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AK,CAAC;KAC3D,CAAC;IACF,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,2EAA2E,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AACpL,CAAC"}
package/dist/styles.css CHANGED
@@ -641,6 +641,19 @@
641
641
  .sw-listing__pages a, .sw-listing__pages span { display: inline-block; min-width: 2rem; padding: 0.25rem 0.5rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }
642
642
  .sw-listing__pages span[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }
643
643
  .sw-listing__pager-disabled { color: var(--sw-color-muted); }
644
+ .sw-listing__field--checkboxes { min-width: 12rem; }
645
+ .sw-listing__checks { display: flex; flex-wrap: wrap; gap: 4px var(--sw-space-2); }
646
+ .sw-listing__check { display: flex; align-items: center; gap: 6px; }
647
+ .sw-listing__check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--sw-color-primary, #1d4ed8); }
648
+ .sw-listing__check input:focus-visible { outline: none; box-shadow: var(--sw-focus-ring); }
649
+ .sw-listing__letters { margin: 0 0 var(--sw-space-2); }
650
+ .sw-listing__letter-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
651
+ .sw-listing__letter { display: inline-block; min-width: 2rem; padding: 0.25rem 0.4rem; text-align: center; border-radius: var(--sw-radius, 8px); text-decoration: none; }
652
+ a.sw-listing__letter:hover { text-decoration: underline; }
653
+ a.sw-listing__letter[aria-current] { background: var(--sw-color-primary, #1d4ed8); color: var(--sw-color-primary-contrast, #fff); }
654
+ .sw-listing__letter--empty { color: var(--sw-color-muted); opacity: 0.6; }
655
+ .sw-collection[aria-busy="true"] .sw-collection__results { opacity: 0.6; }
656
+ .sw-collection__results:focus { outline: none; }
644
657
 
645
658
  /* Fields, table, groups and downloads (Collections level 2) */
646
659
  .sw-collection__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sw-space-2); margin: var(--sw-space-1) 0 0; font-size: 0.9rem; }
@@ -662,6 +675,53 @@
662
675
  .sw-collection__exports a { margin-right: var(--sw-space-2); }
663
676
  .sw-collection .sw-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
664
677
 
678
+ /* ---------- Location map ---------- */
679
+ .sw-locmap { padding: var(--sw-space-4, 2rem) 0; }
680
+ .sw-locmap__heading { margin: 0 0 var(--sw-space-2, 1rem); }
681
+ .sw-locmap__list { list-style: none; margin: var(--sw-space-2, 1rem) 0 0; padding: 0; display: grid; gap: var(--sw-space-2, 1rem); }
682
+ .sw-locmap__item { padding: 0.9rem 1rem; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: var(--sw-radius, 8px); background: var(--sw-color-surface, transparent); }
683
+ .sw-locmap__item[data-active] { border-color: var(--sw-color-primary); box-shadow: 0 0 0 1px var(--sw-color-primary); }
684
+ .sw-locmap__title { margin: 0; font-size: 1.1rem; }
685
+ .sw-locmap__summary { margin: 0.35rem 0 0; color: var(--sw-color-muted, #555); }
686
+ .sw-locmap__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sw-space-2, 1rem); margin: 0.5rem 0 0; font-size: 0.9375rem; }
687
+ .sw-locmap__field { display: contents; }
688
+ .sw-locmap__field dt { font-weight: 600; }
689
+ .sw-locmap__field dd { margin: 0; white-space: pre-line; }
690
+ .sw-locmap__links { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: 0.9375rem; }
691
+ .sw-locmap__show { font: inherit; font-weight: 600; cursor: pointer; padding: 0.3rem 0.7rem; color: var(--sw-color-primary); background: transparent; border: 1px solid currentColor; border-radius: var(--sw-radius, 8px); }
692
+ .sw-locmap__show:focus-visible, .sw-locmap__marker:focus-visible, .sw-locmap__map:focus-visible, .sw-locmap__zoom button:focus-visible, .sw-locmap__load:focus-visible { outline: 2px solid var(--sw-color-primary); outline-offset: 2px; }
693
+ .sw-locmap__map { position: relative; overflow: hidden; height: 440px; border-radius: var(--sw-radius, 8px); background: color-mix(in srgb, currentColor 6%, var(--sw-color-bg, #fff)); touch-action: none; user-select: none; }
694
+ .sw-locmap--h-s .sw-locmap__map { height: 320px; }
695
+ .sw-locmap--h-l .sw-locmap__map { height: 600px; }
696
+ .sw-locmap__map[hidden] { display: none; }
697
+ .sw-locmap__tiles { position: absolute; inset: 0; cursor: grab; }
698
+ .sw-locmap__tiles:active { cursor: grabbing; }
699
+ .sw-locmap__tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; }
700
+ .sw-locmap__marker { position: absolute; width: 28px; height: 28px; margin: -28px 0 0 -14px; padding: 0; border: 0; background: transparent; cursor: pointer; }
701
+ .sw-locmap__marker::before { content: ""; position: absolute; inset: 0; background: var(--sw-color-primary, #1d4ed8); border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
702
+ .sw-locmap__marker[aria-pressed="true"]::before { background: var(--sw-color-accent, #b45309); }
703
+ .sw-locmap__popup { position: absolute; z-index: 3; width: max-content; max-width: 16rem; padding: 0.6rem 0.75rem; transform: translate(-50%, calc(-100% - 34px)); background: var(--sw-color-bg, #fff); color: var(--sw-color-text, #111); border-radius: var(--sw-radius, 8px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); font-size: 0.9375rem; }
704
+ .sw-locmap__popup[hidden] { display: none; }
705
+ .sw-locmap__popup p { margin: 0.25rem 0 0; }
706
+ .sw-locmap__popup strong { display: block; }
707
+ .sw-locmap__zoom { position: absolute; z-index: 4; top: 0.5rem; right: 0.5rem; display: flex; flex-direction: column; gap: 4px; }
708
+ .sw-locmap__zoom button { width: 2.25rem; height: 2.25rem; font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--sw-color-text, #111); background: var(--sw-color-bg, #fff); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: var(--sw-radius, 8px); }
709
+ .sw-locmap__attribution { position: absolute; z-index: 4; right: 0; bottom: 0; padding: 2px 6px; font-size: 0.75rem; background: color-mix(in srgb, var(--sw-color-bg, #fff) 85%, transparent); color: var(--sw-color-text, #111); }
710
+ .sw-locmap__attribution a { color: inherit; }
711
+ .sw-locmap__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; text-align: center; }
712
+ .sw-locmap__load { font: inherit; font-weight: 600; cursor: pointer; padding: 0.5rem 1rem; color: var(--sw-color-primary-contrast, #fff); background: var(--sw-color-primary, #1d4ed8); border: 0; border-radius: var(--sw-radius, 8px); }
713
+ @media (min-width: 900px) {
714
+ .sw-locmap--live .sw-locmap__layout { display: grid; grid-template-columns: minmax(16rem, 2fr) 3fr; gap: var(--sw-space-3, 1.5rem); align-items: start; }
715
+ .sw-locmap--live .sw-locmap__list { margin-top: 0; max-height: 440px; overflow: auto; padding-right: 4px; }
716
+ .sw-locmap--live.sw-locmap--h-s .sw-locmap__list { max-height: 320px; }
717
+ .sw-locmap--live.sw-locmap--h-l .sw-locmap__list { max-height: 600px; }
718
+ .sw-locmap--live .sw-locmap__map { position: sticky; top: 1rem; order: 2; }
719
+ }
720
+ @media (max-width: 899px) {
721
+ .sw-locmap--live .sw-locmap__layout { display: flex; flex-direction: column-reverse; gap: var(--sw-space-2, 1rem); }
722
+ .sw-locmap--live .sw-locmap__map { height: min(60vh, 440px); }
723
+ }
724
+
665
725
  /* ---------- Calendar ---------- */
666
726
 
667
727
  .sw-calendar__month + .sw-calendar__month { margin-top: var(--sw-space-4); }
@@ -842,6 +902,24 @@
842
902
  .sw-breadcrumbs__item [aria-current="page"] { font-weight: 600; text-decoration: none; }
843
903
  .sw-breadcrumbs__placeholder { padding: 0.75rem 1rem; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--sw-radius, 8px); font-size: 0.9rem; opacity: 0.8; }
844
904
 
905
+ /* ---------- Language switcher ---------- */
906
+ .sw-language-switcher-block { padding: var(--sw-space-2, 0.75rem) 0; }
907
+ .sw-language-switcher__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
908
+ .sw-language-switcher__list a { display: inline-block; padding: 0.35rem 0.15rem; font-weight: 500; text-decoration: none; color: inherit; }
909
+ .sw-language-switcher__list a:hover { text-decoration: underline; }
910
+ .sw-language-switcher__list a[aria-current="page"] { font-weight: 700; color: var(--sw-color-primary); text-decoration: underline; text-underline-offset: 0.2em; }
911
+ .sw-language-switcher__list a:focus-visible, .sw-language-switcher__summary:focus-visible { outline: 2px solid var(--sw-color-primary); outline-offset: 2px; }
912
+ .sw-language-switcher__note { font-weight: 400; font-size: 0.875em; color: var(--sw-color-muted, #555); }
913
+ .sw-language-switcher__menu { position: relative; display: inline-block; }
914
+ .sw-language-switcher__summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.75rem; font-weight: 600; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: var(--sw-radius, 8px); }
915
+ .sw-language-switcher__summary::-webkit-details-marker { display: none; }
916
+ .sw-language-switcher__summary::after { content: ""; width: 0.45em; height: 0.45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -0.25em; }
917
+ .sw-language-switcher__menu[open] > .sw-language-switcher__summary::after { transform: rotate(225deg); margin-top: 0.15em; }
918
+ .sw-language-switcher__menu .sw-language-switcher__list { flex-direction: column; gap: 0; margin-top: 0.35rem; padding: 0.35rem; min-width: 12rem; border: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-radius: var(--sw-radius, 8px); background: var(--sw-color-bg, #fff); }
919
+ .sw-language-switcher__menu .sw-language-switcher__list a { display: block; padding: 0.45rem 0.6rem; }
920
+ @media (min-width: 600px) { .sw-language-switcher__menu .sw-language-switcher__list { position: absolute; right: 0; z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); } }
921
+ .sw-language-switcher__placeholder { padding: 0.75rem 1rem; border: 1px dashed color-mix(in srgb, currentColor 30%, transparent); border-radius: var(--sw-radius, 8px); font-size: 0.9rem; }
922
+
845
923
  /* ---------- Regions (Structure, Placements) ----------
846
924
  Blocks placed above the content, beside it in a sidebar, or below it. The main column comes first in the document; from
847
925
  900 px the sidebars sit beside it, below that they follow it. Inside the grid the page's own containers drop their gutter. */
@@ -911,6 +989,10 @@
911
989
  .sw-form [aria-invalid="true"] { border-color: #b91c1c; }
912
990
  .sw-form__check { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
913
991
  .sw-form__check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--sw-color-primary); }
992
+ .sw-form__field--radio, .sw-form__field--checkboxes { margin: 0; padding: 0; border: 0; min-width: 0; }
993
+ .sw-form__field--radio legend, .sw-form__field--checkboxes legend { padding: 0; margin-bottom: 0.35rem; }
994
+ .sw-form__choices { display: grid; gap: 0.4rem; }
995
+ .sw-form__field--radio[aria-invalid="true"] .sw-form__choices, .sw-form__field--checkboxes[aria-invalid="true"] .sw-form__choices { outline: 1px solid #b91c1c; outline-offset: 4px; border-radius: 2px; }
914
996
  .sw-form__help { margin: 0; font-size: 0.875rem; color: var(--sw-color-muted); }
915
997
  .sw-form__error { margin: 0; font-size: 0.875rem; color: #b91c1c; }
916
998
  .sw-form__error[hidden] { display: none; }
@@ -950,7 +1032,7 @@
950
1032
  .sw-form__step-fields { display: grid; gap: var(--sw-space-2); }
951
1033
  @media (min-width: 640px) {
952
1034
  .sw-form__body, .sw-form__step-fields { grid-template-columns: 1fr 1fr; }
953
- .sw-form__field--textarea, .sw-form__field--checkbox, .sw-form__field--file, .sw-form__actions, .sw-form__hp { grid-column: 1 / -1; }
1035
+ .sw-form__field--textarea, .sw-form__field--checkbox, .sw-form__field--checkboxes, .sw-form__field--radio, .sw-form__field--file, .sw-form__actions, .sw-form__hp { grid-column: 1 / -1; }
954
1036
  }
955
1037
 
956
1038
  /* ---------- Shared block ---------- */
@@ -1474,6 +1556,116 @@
1474
1556
  html:not(.sw-reduce-motion) .sw-carousel__track { scroll-behavior: smooth; }
1475
1557
  }
1476
1558
 
1559
+ .sw-builder-note { margin: 0; padding: var(--sw-space-2); border: 1px dashed var(--sw-color-border); border-radius: var(--sw-radius); color: var(--sw-color-muted); font-size: 0.875rem; }
1560
+
1561
+ /* ---------- Countdown ---------- */
1562
+ .sw-countdown__title { margin: 0 0 var(--sw-space-2); }
1563
+ .sw-countdown--center { text-align: center; }
1564
+ .sw-countdown__label { margin: 0 0 var(--sw-space-1); font-weight: 600; }
1565
+ .sw-countdown__units { display: flex; flex-wrap: wrap; gap: var(--sw-space-2); }
1566
+ .sw-countdown--center .sw-countdown__units { justify-content: center; }
1567
+ .sw-countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 4.5rem; padding: var(--sw-space-1) var(--sw-space-2); border: 1px solid var(--sw-color-border); border-radius: var(--sw-radius); background: var(--sw-color-surface); }
1568
+ .sw-countdown__value { font-family: var(--sw-font-heading); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--sw-color-primary); }
1569
+ .sw-countdown__name { font-size: 0.875rem; color: var(--sw-color-muted); }
1570
+ .sw-countdown__when { margin: var(--sw-space-1) 0 0; color: var(--sw-color-muted); font-size: 0.9375rem; }
1571
+ .sw-countdown__pause { margin-top: var(--sw-space-1); padding: 0.375rem 0.75rem; font: inherit; font-size: 0.875rem; color: var(--sw-color-text); background: transparent; border: 1px solid var(--sw-color-border); border-radius: var(--sw-radius); cursor: pointer; min-height: 2.75rem; }
1572
+ .sw-countdown__pause:focus-visible { outline: none; box-shadow: var(--sw-focus-ring); }
1573
+ .sw-countdown__ended { margin: 0; font-size: 1.125rem; font-weight: 600; }
1574
+ .sw-countdown[hidden], .sw-countdown [hidden] { display: none !important; }
1575
+
1576
+
1577
+ /* ---------- Hours of operation ---------- */
1578
+ .sw-hours__title { margin: 0 0 var(--sw-space-2); }
1579
+ .sw-hours__grid { display: grid; gap: var(--sw-space-3); }
1580
+ @media (min-width: 640px) { .sw-hours__grid--many { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }
1581
+ .sw-hours__location { padding: var(--sw-space-2); border: 1px solid var(--sw-color-border); border-radius: var(--sw-radius); background: var(--sw-color-bg); }
1582
+ .sw-hours__name { margin: 0 0 var(--sw-space-1); font-size: 1.25rem; }
1583
+ .sw-hours__status { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 var(--sw-space-1); font-weight: 600; }
1584
+ .sw-hours__status::before { content: ""; flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--sw-color-muted); }
1585
+ .sw-hours__status--open::before { background: var(--sw-color-success, #15803d); }
1586
+ .sw-hours__status--closed::before { background: var(--sw-color-danger, #b91c1c); }
1587
+ .sw-hours__status[hidden] { display: none; }
1588
+ .sw-hours__detail, .sw-hours__note { margin: 0 0 0.25rem; color: var(--sw-color-muted); }
1589
+ .sw-hours__week { width: 100%; margin-top: var(--sw-space-1); border-collapse: collapse; font-variant-numeric: tabular-nums; }
1590
+ .sw-hours__week th, .sw-hours__week td { padding: 0.375rem 0; text-align: left; border-bottom: 1px solid var(--sw-color-border); vertical-align: top; }
1591
+ .sw-hours__week th { font-weight: 400; padding-right: var(--sw-space-2); }
1592
+ .sw-hours__today th, .sw-hours__today td { font-weight: 700; }
1593
+ .sw-hours__exceptions { margin-top: var(--sw-space-2); }
1594
+ .sw-hours__subhead { margin: 0 0 0.25rem; font-weight: 700; }
1595
+ .sw-hours__exceptions ul { margin: 0; padding-left: 1.25rem; }
1596
+ .sw-hours__exception-date { font-weight: 600; }
1597
+
1598
+
1599
+ /* ---------- Search and filter (Document library, Glossary) ---------- */
1600
+ .sw-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sw-space-2); margin: 0 0 var(--sw-space-2); }
1601
+ .sw-filter[hidden] { display: none; }
1602
+ .sw-filter__field { display: flex; flex-direction: column; gap: 0.25rem; min-width: min(100%, 14rem); }
1603
+ .sw-filter__field label { font-weight: 600; font-size: 0.9375rem; }
1604
+ .sw-filter__input { min-height: 2.75rem; padding: 0.5rem 0.75rem; font: inherit; color: var(--sw-color-text); background: var(--sw-color-bg); border: 1px solid var(--sw-color-muted); border-radius: var(--sw-radius); }
1605
+ .sw-filter__input:focus-visible { outline: none; box-shadow: var(--sw-focus-ring); }
1606
+ .sw-filter__status { flex-basis: 100%; margin: 0; min-height: 1.5em; color: var(--sw-color-muted); font-size: 0.9375rem; }
1607
+ [data-sw-filter-item][hidden], [data-sw-filter-group][hidden] { display: none !important; }
1608
+
1609
+
1610
+ /* ---------- Document library ---------- */
1611
+ .sw-doclib__title { margin: 0 0 var(--sw-space-1); }
1612
+ .sw-doclib__intro { margin: 0 0 var(--sw-space-2); color: var(--sw-color-muted); max-width: 70ch; }
1613
+ .sw-doclib__group + .sw-doclib__group { margin-top: var(--sw-space-3); }
1614
+ .sw-doclib__group-title { margin: 0 0 var(--sw-space-1); font-size: 1.125rem; }
1615
+ .sw-doclib__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sw-color-border); }
1616
+ .sw-doclib__item { display: flex; gap: var(--sw-space-2); align-items: flex-start; padding: var(--sw-space-2) 0; border-bottom: 1px solid var(--sw-color-border); }
1617
+ .sw-doclib__icon { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; width: 2.75rem; color: var(--sw-color-muted); }
1618
+ .sw-doclib__icon svg { width: 2rem; height: 2rem; }
1619
+ .sw-doclib__ext { margin-top: -0.125rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; color: var(--sw-color-text); }
1620
+ .sw-doclib__icon--pdf { color: var(--sw-color-danger, #b91c1c); }
1621
+ .sw-doclib__icon--doc { color: var(--sw-color-primary); }
1622
+ .sw-doclib__icon--sheet { color: var(--sw-color-success, #15803d); }
1623
+ .sw-doclib__icon--slides { color: var(--sw-color-warning, #b45309); }
1624
+ .sw-doclib__body { min-width: 0; }
1625
+ .sw-doclib__link { font-weight: 600; overflow-wrap: anywhere; }
1626
+ .sw-doclib__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--sw-color-muted); }
1627
+ .sw-doclib__members-badge { font-weight: 600; color: var(--sw-color-text); }
1628
+ .sw-doclib__desc { margin: 0.25rem 0 0; max-width: 70ch; }
1629
+ .sw-doclib__empty, .sw-doclib__members { margin: var(--sw-space-2) 0 0; color: var(--sw-color-muted); }
1630
+ .sw-doclib__empty[hidden] { display: none; }
1631
+
1632
+
1633
+ /* ---------- Glossary ---------- */
1634
+ .sw-glossary__title { margin: 0 0 var(--sw-space-1); }
1635
+ .sw-glossary__intro { margin: 0 0 var(--sw-space-2); color: var(--sw-color-muted); max-width: 70ch; }
1636
+ .sw-glossary__letters ul { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0 0 var(--sw-space-2); padding: 0; }
1637
+ .sw-glossary__letters a, .sw-glossary__letter-empty { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: var(--sw-radius); font-weight: 700; text-decoration: none; }
1638
+ .sw-glossary__letters a { color: var(--sw-color-primary); border: 1px solid var(--sw-color-border); }
1639
+ .sw-glossary__letters a:hover { background: var(--sw-color-surface); }
1640
+ .sw-glossary__letters a:focus-visible { outline: none; box-shadow: var(--sw-focus-ring); }
1641
+ .sw-glossary__letter-empty { color: var(--sw-color-muted); }
1642
+ .sw-glossary__section { scroll-margin-top: var(--sw-space-3); }
1643
+ .sw-glossary__section + .sw-glossary__section { margin-top: var(--sw-space-3); }
1644
+ .sw-glossary__letter { margin: 0 0 var(--sw-space-1); padding-bottom: 0.25rem; border-bottom: 2px solid var(--sw-color-primary); font-size: 1.5rem; }
1645
+ .sw-glossary__list { margin: 0; }
1646
+ .sw-glossary__entry { padding: var(--sw-space-1) 0; border-bottom: 1px solid var(--sw-color-border); scroll-margin-top: var(--sw-space-3); }
1647
+ .sw-glossary__entry:target { background: var(--sw-color-surface); }
1648
+ .sw-glossary__term { font-weight: 700; }
1649
+ .sw-glossary__definition { margin: 0.25rem 0 0; max-width: 70ch; }
1650
+ .sw-glossary__empty { color: var(--sw-color-muted); }
1651
+ .sw-glossary__empty[hidden] { display: none; }
1652
+
1653
+
1654
+ /* ---------- Campaign progress ---------- */
1655
+ .sw-progress__title { margin: 0 0 var(--sw-space-1); }
1656
+ .sw-progress__text { margin: 0 0 var(--sw-space-2); color: var(--sw-color-muted); max-width: 70ch; }
1657
+ .sw-progress__figures { margin: 0 0 var(--sw-space-1); font-size: 1.125rem; }
1658
+ .sw-progress__raised { font-family: var(--sw-font-heading); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; color: var(--sw-color-primary); font-variant-numeric: tabular-nums; }
1659
+ .sw-progress__bar { position: relative; height: 1rem; overflow: hidden; border-radius: 999px; background: var(--sw-color-surface); border: 1px solid var(--sw-color-border); }
1660
+ .sw-progress__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--sw-progress, 0)); background: var(--sw-color-primary); border-radius: inherit; }
1661
+ [dir="rtl"] .sw-progress__fill { transform-origin: right center; }
1662
+ .sw-progress__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sw-space-1); margin: var(--sw-space-1) 0 0; color: var(--sw-color-muted); font-variant-numeric: tabular-nums; }
1663
+ .sw-progress__pct { font-weight: 700; color: var(--sw-color-text); }
1664
+ @media (prefers-reduced-motion: no-preference) {
1665
+ html.sw-motion-ready:not(.sw-reduce-motion) .sw-progress[data-motion-count] .sw-progress__fill { transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
1666
+ html.sw-motion-ready:not(.sw-reduce-motion) .sw-progress[data-motion-count]:not([data-motion-counted]) .sw-progress__fill { transform: scaleX(0); }
1667
+ }
1668
+
1477
1669
 
1478
1670
  /* Scrollytelling: an ordinary list of steps until the motion script adds sw-story-on (wide screens only). */
1479
1671
  .sw-story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sw-space-5, 3rem); }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The page script for the utility blocks (docs/dev/utility-blocks.md), inline with the page's nonce, once per page, only when the
3
+ * page has a Countdown or an Hours block, or a Document library or Glossary with search on. It:
4
+ *
5
+ * - ticks countdowns (`data-sw-countdown` holds the target instant): once a minute, or every second when the block shows seconds,
6
+ * the brand's motion is on (`data-sw-motion` on the root) and the visitor has not asked for reduced motion (the device's
7
+ * setting, the stored choice or `sw-reduce-motion` on the root); the Pause countdown button stops it; at the target the block
8
+ * shows its message or hides; the live region, when the block has one, speaks when it ends or at most once a minute;
9
+ * - refreshes the Hours status line and today's row every minute from `data-sw-hours-schedule`, in `data-tz`, with a copy of
10
+ * `hoursStatus` (packages/shared/src/hours.ts; the tests hold the two to the same answers);
11
+ * - filters a Document library or Glossary (`data-sw-filter`) as the visitor types or picks a type, hides empty groups, greys
12
+ * the glossary's letter links for them and says how many match in a polite status line once typing pauses.
13
+ *
14
+ * It runs once per document and picks up blocks added later (a Personalize island). Without it the blocks keep the server's HTML.
15
+ */
16
+ export declare const UTILITY_SCRIPT = "(function(){var d=document,h=d.documentElement;if(h.hasAttribute('data-sw-utility'))return;h.setAttribute('data-sw-utility','');\nvar K='sw-reduce-motion',mq=window.matchMedia?matchMedia('(prefers-reduced-motion: reduce)'):null,MS=60000,redraws=[],hours=[];\nfunction stored(){try{return localStorage.getItem(K)}catch(e){return null}}\nfunction reduced(){if(h.classList.contains('sw-reduce-motion'))return true;if(h.classList.contains('sw-motion-allowed'))return false;var s=stored();return s===null?!!(mq&&mq.matches):s==='1'}\nfunction pad(n){return n<10?'0'+n:''+n}\nfunction pl(n,one){return n+' '+one+(n===1?'':'s')}\nfunction parts(t,now){var l=Math.max(0,Math.floor((t-now)/1000));return{d:Math.floor(l/86400),h:Math.floor(l%86400/3600),m:Math.floor(l%3600/60),s:l%60,end:t<=now}}\nfunction sentence(p){var a=[];if(p.d)a.push(pl(p.d,'day'));if(p.d||p.h)a.push(pl(p.h,'hour'));a.push(pl(p.m,'minute'));return a.length>1?a.slice(0,-1).join(', ')+' and '+a[a.length-1]:a[0]}\nfunction countdown(root){if(root._sw)return;root._sw=1;var t=+root.getAttribute('data-sw-countdown');if(!t)return;\nvar sec=root.hasAttribute('data-seconds'),body=root.querySelector('[data-sw-countdown-body]'),units=root.querySelector('.sw-countdown__units'),txt=root.querySelector('[data-sw-countdown-text]'),endEl=root.querySelector('[data-sw-countdown-ended]'),live=root.querySelector('[data-sw-countdown-live]'),mode=root.getAttribute('data-announce'),hide=root.getAttribute('data-ended')==='hide',btn=root.querySelector('[data-sw-countdown-pause]'),paused=false,timer=0,lastMin=null,started=Date.now()>=t;\nfunction secondsOn(){return sec&&h.hasAttribute('data-sw-motion')&&!reduced()}\nfunction unit(u,v,one,many){var el=root.querySelector('[data-unit=\"'+u+'\"]');if(!el)return el;el.querySelector('.sw-countdown__value').textContent=u==='days'?String(v):pad(v);el.querySelector('.sw-countdown__name').textContent=v===1?one:many;return el}\nfunction draw(){clearTimeout(timer);var now=Date.now(),p=parts(t,now),showS=secondsOn();\nif(p.end){if(body)body.hidden=true;if(hide)root.hidden=true;else if(endEl)endEl.hidden=false;if(live&&!started&&!root._swSaid){root._swSaid=1;live.textContent=hide?'':(endEl?endEl.textContent:'')}return}\nif(units)units.hidden=false;unit('days',p.d,'day','days');unit('hours',p.h,'hour','hours');unit('minutes',p.m,'minute','minutes');var su=unit('seconds',p.s,'second','seconds');if(su)su.hidden=!showS;if(btn)btn.hidden=!showS;\nvar m=Math.floor((t-now)/MS);if(m!==lastMin){if(txt)txt.textContent=sentence(p)+' left.';if(live&&mode==='minute'&&lastMin!==null)live.textContent=sentence(p)+' left.';lastMin=m}\nif(paused)return;var left=t-now,wait=showS?left%1000:left%MS;timer=setTimeout(draw,wait+30)}\nif(btn)btn.addEventListener('click',function(){paused=!paused;btn.setAttribute('aria-pressed',paused?'true':'false');btn.textContent=paused?'Resume countdown':'Pause countdown';if(paused)clearTimeout(timer);else draw()});\nd.addEventListener('visibilitychange',function(){if(!d.hidden&&!paused)draw()});\nredraws.push(function(){if(!paused)draw()});draw()}\nvar fc={};function fmt(tz){return fc[tz]||(fc[tz]=new Intl.DateTimeFormat('en-US',{timeZone:tz,hourCycle:'h23',year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'}))}\nfunction lf(ms,tz){var p={};fmt(tz).formatToParts(new Date(ms)).forEach(function(x){p[x.type]=x.value});return{y:+p.year,m:+p.month,d:+p.day,h:(+p.hour)%24,mi:+p.minute,s:+p.second}}\nfunction asUtc(f){return Date.UTC(f.y,f.m-1,f.d,f.h,f.mi,f.s||0)}\nfunction toUtc(f,tz){var a=asUtc(f),g=a-(asUtc(lf(a,tz))-a);return a-(asUtc(lf(g,tz))-g)}\nfunction add(f,n){var x=new Date(Date.UTC(f.y,f.m-1,f.d+n));return{y:x.getUTCFullYear(),m:x.getUTCMonth()+1,d:x.getUTCDate()}}\nfunction wd(f){return(new Date(Date.UTC(f.y,f.m-1,f.d)).getUTCDay()+6)%7}\nfunction ymd(f){return f.y+'-'+pad(f.m)+'-'+pad(f.d)}\nfunction mins(t){var m=/^([01]\\d|2[0-3]):([0-5]\\d)$/.exec((t||'').trim());return m?+m[1]*60+ +m[2]:null}\nfunction rowOn(day,w){return day==='daily'||(day==='weekdays'&&w<5)||(day==='weekend'&&w>=5)||['MO','TU','WE','TH','FR','SA','SU'].indexOf(day)===w}\nfunction exOn(ex,date){for(var i=0;i<ex.length;i++){var e=ex[i],end=e[1]&&e[1]>=e[0]?e[1]:e[0];if(date>=e[0]&&date<=end)return e}return null}\nvar WD=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],MO=['January','February','March','April','May','June','July','August','September','October','November','December'];\nfunction clock(n,ck){var hh=Math.floor(n/60)%24,mm=pad(n%60);return ck==='24'?pad(hh)+':'+mm:(hh%12===0?12:hh%12)+':'+mm+' '+(hh<12?'AM':'PM')}\nfunction spansOn(s,f){var e=exOn(s.ex,ymd(f)),pairs=e?(e[3]?[]:[[e[4],e[5]]]):s.rows.filter(function(r){return rowOn(r[0],wd(f))}).map(function(r){return[r[1],r[2]]}),out=[];\npairs.forEach(function(p){var a=mins(p[0]),b=mins(p[1]);if(a===null||b===null)return;out.push([a,b<=a?b+1440:b])});return{spans:out.sort(function(x,y){return x[0]-y[0]}),ex:e}}\nfunction status(s,now,tz,ck){var n0=lf(now,tz),today={y:n0.y,m:n0.m,d:n0.d},all=[],i,merged=[];\nfor(i=-1;i<=8;i++){var day=add(today,i);spansOn(s,day).spans.forEach(function(sp){function at(x){var dd=add(day,Math.floor(x/1440)),r=x%1440;return toUtc({y:dd.y,m:dd.m,d:dd.d,h:Math.floor(r/60),mi:r%60,s:0},tz)}all.push({a:at(sp[0]),b:at(sp[1])})})}\nall.sort(function(x,y){return x.a-y.a});all.forEach(function(x){var l=merged[merged.length-1];if(l&&x.a<=l.b)l.b=Math.max(l.b,x.b);else merged.push({a:x.a,b:x.b})});\nfunction when(ms){var f=lf(ms,tz),diff=Math.round((Date.UTC(f.y,f.m-1,f.d)-Date.UTC(today.y,today.m-1,today.d))/864e5),tm=clock(f.h*60+f.mi,ck);if(diff===0)return'at '+tm;if(diff===1)return'tomorrow at '+tm;var w=WD[wd(f)];return diff<7?w+' at '+tm:w+', '+MO[f.m-1]+' '+f.d+' at '+tm}\nvar cur=null,next=null;merged.forEach(function(x){if(!cur&&x.a<=now&&now<x.b)cur=x;if(!next&&x.a>now)next=x});var w0=wd(today);\nif(cur&&cur.b-now>=7*864e5)return{open:true,text:'Open now, 24 hours',wd:w0};if(cur)return{open:true,text:'Open now, closes '+when(cur.b),wd:w0};\nvar te=spansOn(s,today).ex,closed=te&&te[3]&&(te[2]||'').trim()?'Closed today ('+te[2].trim()+')':'Closed';return{open:false,text:next?closed+', opens '+when(next.a):closed,wd:w0}}\nfunction refreshHours(root){var tz=root.getAttribute('data-tz')||'UTC',ck=root.getAttribute('data-clock')||'12',now=Date.now();\n[].forEach.call(root.querySelectorAll('[data-sw-hours-schedule]'),function(loc){var s;try{s=JSON.parse(loc.getAttribute('data-sw-hours-schedule'))}catch(e){return}var st;try{st=status(s,now,tz,ck)}catch(e){return}\nvar el=loc.querySelector('[data-sw-hours-status]');if(el){el.hidden=false;if(el.textContent!==st.text)el.textContent=st.text;el.classList.toggle('sw-hours__status--open',st.open);el.classList.toggle('sw-hours__status--closed',!st.open)}\n[].forEach.call(loc.querySelectorAll('tr[data-weekday]'),function(tr){var on=+tr.getAttribute('data-weekday')===st.wd;tr.classList.toggle('sw-hours__today',on);if(on)tr.setAttribute('aria-current','date');else tr.removeAttribute('aria-current')})})}\nfunction hoursBlock(root){if(root._sw)return;root._sw=1;hours.push(root);refreshHours(root)}\nfunction tick(){hours.forEach(refreshHours);setTimeout(tick,MS-Date.now()%MS+50)}\nfunction norm(s){s=String(s||'');return(s.normalize?s.normalize('NFKD').replace(/[\\u0300-\\u036f]/g,''):s).toLowerCase().replace(/\\s+/g,' ')}\nfunction filter(root){if(root._sw)return;root._sw=1;var tools=root.querySelector('[data-sw-filter-tools]');if(!tools)return;tools.hidden=false;\nvar input=tools.querySelector('[data-sw-filter-input]'),type=tools.querySelector('[data-sw-filter-type]'),out=tools.querySelector('[data-sw-filter-status]'),empty=root.querySelector('[data-sw-filter-empty]'),items=[].slice.call(root.querySelectorAll('[data-sw-filter-item]')),groups=[].slice.call(root.querySelectorAll('[data-sw-filter-group]')),terms=root.getAttribute('data-sw-filter')==='terms',one=terms?'term':'document',many=terms?'terms':'documents',timer=0;\nitems.forEach(function(it){it._swText=norm(it.textContent)});\nfunction apply(){var q=norm(input?input.value:'').trim(),tv=type?type.value:'',n=0;\nitems.forEach(function(it){var ok=(!q||it._swText.indexOf(q)>=0)&&(!tv||it.getAttribute('data-filter-type')===tv);it.hidden=!ok;if(ok)n++});\ngroups.forEach(function(g){var any=[].some.call(g.querySelectorAll('[data-sw-filter-item]'),function(it){return!it.hidden});g.hidden=!any;var id=g.getAttribute('data-sw-filter-group');if(!id)return;var a=root.querySelector('[data-sw-filter-letter=\"'+id+'\"]');if(!a)return;\nif(any){if(a._swHref)a.setAttribute('href',a._swHref);a.removeAttribute('aria-disabled')}else{a._swHref=a._swHref||a.getAttribute('href');a.removeAttribute('href');a.setAttribute('aria-disabled','true')}});\nif(empty)empty.hidden=n>0;clearTimeout(timer);timer=setTimeout(function(){if(out)out.textContent=q||tv?(n?(n===items.length?'All ':'')+n+' '+(n===1?one:many)+(n===items.length?'':' of '+items.length):'No '+many+' match'):''},400)}\nif(input)input.addEventListener('input',apply);if(type)type.addEventListener('change',apply);if(input&&input.value)apply()}\nfunction init(scope){if(scope.matches){if(scope.matches('[data-sw-countdown]'))countdown(scope);if(scope.matches('[data-sw-hours]'))hoursBlock(scope);if(scope.matches('[data-sw-filter]'))filter(scope)}\n[].forEach.call(scope.querySelectorAll('[data-sw-countdown]'),countdown);[].forEach.call(scope.querySelectorAll('[data-sw-hours]'),hoursBlock);[].forEach.call(scope.querySelectorAll('[data-sw-filter]'),filter)}\ninit(d);setTimeout(tick,MS-Date.now()%MS+50);\nfunction motionChanged(){redraws.forEach(function(f){f()})}\nif(mq){if(mq.addEventListener)mq.addEventListener('change',motionChanged);else if(mq.addListener)mq.addListener(motionChanged)}\nwindow.addEventListener('storage',function(e){if(e.key===K)motionChanged()});\nif('MutationObserver' in window){new MutationObserver(motionChanged).observe(h,{attributes:true,attributeFilter:['class','data-sw-motion']});\nnew MutationObserver(function(ms){ms.forEach(function(m){[].forEach.call(m.addedNodes,function(nd){if(nd.nodeType===1&&nd.querySelectorAll)init(nd)})})}).observe(d.body,{childList:true,subtree:true})}\n})();";
17
+ /** The blocks that can need UTILITY_SCRIPT; `needsUtilityScript` says whether one does. */
18
+ export declare const UTILITY_BLOCKS: readonly ["Countdown", "Hours", "DocumentLibrary", "Glossary"];
19
+ /** Whether a block needs UTILITY_SCRIPT: every Countdown and Hours block, a Document library or Glossary with search on. */
20
+ export declare function needsUtilityScript(type: string, props: Record<string, unknown> | undefined): boolean;