efficient-web-builder 62.0.0 → 63.0.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 +23 -0
- package/dist/format/lib/animation/hover.d.ts +4 -2
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/card-state.d.ts +11 -1
- package/dist/format/lib/content/card-state.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +2 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/document/easel-row-words.d.ts +7 -0
- package/dist/format/lib/document/easel-row-words.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
- package/dist/format/lib/editor-words-catalogue.js +1 -1
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/source-rules/no-hard-coded-option-rows.d.ts +30 -0
- package/dist/format/lib/source-rules/no-hard-coded-option-rows.js +1 -0
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/goldPhrases.d.ts +2 -1
- package/dist/render/components/goldPhrases.js +3 -2
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 63.0.0 - 2026-11-09
|
|
4
|
+
|
|
5
|
+
From main at `beb99f54`: #656, #658, #659, #660. A MAJOR: #656 and #659 have `!`. No export is removed. No stored key or value moves.
|
|
6
|
+
|
|
7
|
+
**BREAKING (#656):** the peer `efficient-easel` moves to `^30.1.0` (was `^30.0.0`): easel 30.0.0 has no media-zones module. `efficient-shell` stays `^12.18.0`. `HOVER_MEDIA_KINDS` now follows easel's zone table: its type widens and its order changes. `HoverMediaKind` and every stored `hoverKind` value stay the same.
|
|
8
|
+
|
|
9
|
+
**BREAKING (#659):** `cardStateAttrs` (`format/lib/content/card-state`) now returns `CardStateAttrs` (the state attribute, a `className`, and on a picked copy a `style` with the picked ink); in 62.0.0 it returned `Record<string, string>`. A host that typed the result as `Record<string, string>` must type it as `CardStateAttrs`, or spread it onto the element. `renderChrome` now draws through `renderPlain`: a chrome value with a newline breaks onto lines (0 live US values have one).
|
|
10
|
+
|
|
11
|
+
**For hosts:**
|
|
12
|
+
- Install efficient-easel 30.1.0 or later with this release.
|
|
13
|
+
- **HOLD (#651, from 62.0.0) stays: the storefront takes this version ONLY in the PR that mounts `ThemeLightInkProvider` in efficient-storefront `app/layout.tsx`.**
|
|
14
|
+
- storefront-blocks: the Contact section can move its reason chips and topic cards onto the card template (`plain: true` fields, #659); the wheels filter rail can use `CardItemAction` `label` and `disabled` (#660) in place of its own aria code.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- **A guard against hard-coded shopper option rows** (#658): the rule `format/lib/source-rules/no-hard-coded-option-rows` and its guard. A list of buttons or choice roles drawn in code fails unless it is in the one exemption list.
|
|
19
|
+
- **`CardItemAction` `label` and `disabled`** (#660), and `CARD_ACTION_OFF_CLASS`. A disabled row is skipped by the keyboard, does nothing on press, and draws no hover frame.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **Picked rows show their words at full ink** (#659): a `selected` card-template copy swaps the theme's muted ink for the full text ink (`CARD_STATE_PICKED_INK`). A row field can be `plain` (its words print as typed). One home for plain words: `renderChrome` is `renderPlain`.
|
|
24
|
+
- **Card media kinds read easel's media zone table** (#656): `HOVER_MEDIA_KINDS` and `HOVER_MEDIA_KIND_LABELS` come from `efficient-easel/screen/lib/content/media-zones`.
|
|
25
|
+
|
|
3
26
|
## 62.0.0 - 2026-11-09
|
|
4
27
|
|
|
5
28
|
From main at `4ce0e69f`: #650, #651, #652, #653, #654, #655. A MAJOR: #653 has `!` (public names and a prop are removed). The peers stay `efficient-easel` `^30.0.0` and `efficient-shell` `^12.18.0`. No stored key or value moves.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MediaZone } from "efficient-easel/screen/lib/content/media-zones";
|
|
1
2
|
import { type HoverKind, type ShowWhenRule } from "efficient-shell/format";
|
|
2
3
|
export declare const HOVER_KEY = "hover";
|
|
3
4
|
export declare const HOVER_GROUP_KEY = "_gHover";
|
|
@@ -42,8 +43,9 @@ export type CardHoverDrawn = {
|
|
|
42
43
|
delay: number;
|
|
43
44
|
media?: CardHoverMedia;
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
-
export type HoverMediaKind =
|
|
46
|
+
type ImageMediaZone = Exclude<MediaZone, "videos">;
|
|
47
|
+
export type HoverMediaKind = Exclude<ImageMediaZone, "rendering"> | "renderings";
|
|
48
|
+
export declare const HOVER_MEDIA_KINDS: readonly HoverMediaKind[];
|
|
47
49
|
export declare const HOVER_MEDIA_KIND_LABELS: Readonly<Record<HoverMediaKind, string>>;
|
|
48
50
|
export declare const HOVER_MEDIA_GROUPS: readonly ["finish", "first"];
|
|
49
51
|
export type HoverMediaGroup = (typeof HOVER_MEDIA_GROUPS)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HOVER_MOTION as
|
|
1
|
+
import{MEDIA_ZONES as g,MEDIA_ZONE_LABELS as I}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as S,hoverKindsOf as a,motionSeconds as s}from"efficient-shell/format";import{ANGLE_RANGE as A}from"../content/box-angle.js";import{finiteNumber as u}from"../finite-number.js";const i="hover",q="_gHover",D={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},c="highlight",L="Highlight",J=["none",c],Q={none:D.none,[c]:L};function V(e){return e[i]===c?c:"none"}const $="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",ee="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function ne(e,n){return V(e)!==c?null:{"--sf-hl-bg":n("surface"),"--sf-hl-ink":n("main")}}const k=a(["none","lift"]);function oe(e){const n=e[i];return k.includes(n)?n:"none"}const E=a(["none","nextImage","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},f="spinOnHover",O=A,x={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},te=Object.keys(x);function N(e){return x[e]??"none"}const C=S.rotateFallbackDeg,K=e=>e==="rendering"?"renderings":e,T=e=>e==="renderings"?"rendering":e,m=Object.freeze(g.filter(e=>e!=="videos").map(K)),re=Object.freeze(Object.fromEntries(m.map(e=>[e,I[T(e)]]))),G=["finish","first"],ie={finish:"Same finish",first:"First group"},M=["card","picture"],ce={card:"Whole card",picture:"Picture"},d={kind:"photos",group:"finish",cover:"card"},l=(e,n,o)=>e.includes(n)?n:o;function R(e){return{kind:l(m,e[r.mediaKind],d.kind),group:l(G,e[r.mediaGroup],d.group),cover:l(M,e[r.cover],d.cover)}}function ae(){return{field:r.kind,is:"nextImage"}}function B(e,n){const o=e[r.kind];if(E.includes(o))return o;const t=e[f];return typeof t=="boolean"?t?"rotate":"none":n}function P(e){const n=u(e);return n===void 0?C:Math.min(O.max,Math.max(O.min,n))}function se(e,n){const o=N(n),t=B(e,o);return{kind:t,angle:t==="rotate"?P(e[r.angle]):null,duration:s("hover","duration",t==="rotate"?e[r.duration]:void 0),delay:s("hover","delay",t==="rotate"?e[r.delay]:void 0),...t==="nextImage"?{media:R(e)}:{}}}function ue(e){const n={field:r.kind,in:[...E]};return{any:[{field:r.kind,is:"rotate"},{all:[{not:n},e==="rotate"?{not:{field:f,is:!1}}:{field:f,is:!0}]}]}}const v=a(["none","mono"]),b=a(["none","nextImage","mono"]),h={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},fe=Object.keys(h);function y(e){return h[e]??"none"}const H={zoom:"hoverZoom",darken:"hoverDarken"},p={min:100,max:150,step:1,unit:"%"};function U(e){const n=u(e[H.zoom]);if(n===void 0)return null;const o=Math.min(p.max,Math.max(p.min,n));return o===p.min?null:String(o/100)}function X(e){const n=u(e[H.darken]);return n!==void 0&&n>0?n:null}const Z=["ImageBlock"];function z(e,n,o=v){const t=e[i];return o.includes(t)?t:n}function de(e,n=""){const o=Z.includes(n)?b:v,t=z(e,y(n),o),_=t==="mono";return{kind:t,duration:s("hover","duration",_?e[r.duration]:void 0),delay:s("hover","delay",_?e[r.delay]:void 0),...t==="nextImage"?{media:R(e)}:j(e)}}function j(e){const n=U(e),o=X(e);return{...n?{zoom:n}:{},...o?{darken:o}:{}}}function le(){return{not:{field:i,is:"nextImage"}}}function pe(e){return e==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}function _e(e){return e==="none"?{field:i,is:"mono"}:{not:{field:i,in:["none","nextImage"]}}}export{c as BOX_HIGHLIGHT,$ as BOX_HIGHLIGHT_CLASS,ee as BOX_HIGHLIGHT_OVER_ROW_INK_CLASS,J as BOX_HOVER_KINDS,Q as BOX_HOVER_LABELS,O as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,E as CARD_HOVER_KINDS,te as CARD_HOVER_SECTIONS,C as CARD_HOVER_TURN,L as HIGHLIGHT_LABEL,q as HOVER_GROUP_KEY,i as HOVER_KEY,D as HOVER_KIND_LABELS,M as HOVER_MEDIA_COVERS,ce as HOVER_MEDIA_COVER_LABELS,d as HOVER_MEDIA_DEFAULTS,G as HOVER_MEDIA_GROUPS,ie as HOVER_MEDIA_GROUP_LABELS,m as HOVER_MEDIA_KINDS,re as HOVER_MEDIA_KIND_LABELS,Z as NEXT_PICTURE_BLOCKS,b as NEXT_PICTURE_HOVER_KINDS,f as OLD_SPIN_KEY,k as PART_HOVER_KINDS,fe as PICTURE_HOVER_BLOCKS,H as PICTURE_HOVER_KEYS,v as PICTURE_HOVER_KINDS,p as PICTURE_HOVER_ZOOM,ne as boxHighlightStyle,V as boxHoverOf,P as cardHoverAngleOf,B as cardHoverKindOf,R as cardHoverMediaOf,se as cardHoverOf,N as cardHoverResting,ue as cardRotatesRule,ae as cardShowsNextRule,oe as hoverOf,X as pictureHoverDarkenOf,z as pictureHoverKindOf,le as pictureHoverMoveRule,de as pictureHoverOf,y as pictureHoverResting,pe as pictureHoverRunsRule,_e as pictureHoverTimedRule,U as pictureHoverZoomOf};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
1
2
|
import type { SourceRow } from "./block-sources.js";
|
|
2
3
|
declare const CARD_ROW_STATES: readonly ["selected", "highlighted"];
|
|
3
4
|
type CardRowStateName = (typeof CARD_ROW_STATES)[number];
|
|
@@ -10,9 +11,15 @@ export declare const CARD_STATE_PICKED_CLASS = "pointer-events-none absolute ins
|
|
|
10
11
|
export declare const CARD_STATE_PICKED_BAR_CLASS = "absolute inset-y-0 left-0 w-[3px] bg-accent";
|
|
11
12
|
export declare const CARD_STATE_PICKED_WASH_CLASS = "absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]";
|
|
12
13
|
export declare const CARD_ACTION_HOVER_CLASS = "after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent";
|
|
14
|
+
export declare const CARD_STATE_PICKED_INK: Readonly<Record<string, string>>;
|
|
13
15
|
export declare function cardStatePicked(state: CardRowState | undefined | null): boolean;
|
|
14
16
|
export declare function cardStateValue(state: CardRowState | undefined | null): string;
|
|
15
|
-
export
|
|
17
|
+
export type CardStateAttrs = {
|
|
18
|
+
[attribute: string]: string | CSSProperties | undefined;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
};
|
|
22
|
+
export declare function cardStateAttrs(state: CardRowState | undefined | null, line?: CardStateLine): CardStateAttrs;
|
|
16
23
|
export declare const CARD_BADGE_FIELD = "badge";
|
|
17
24
|
export declare function keyedRows(rows: readonly SourceRow[], keys?: readonly {
|
|
18
25
|
key: string;
|
|
@@ -31,8 +38,11 @@ export declare function highlightOf(props: Record<string, unknown>): {
|
|
|
31
38
|
};
|
|
32
39
|
export type CardItemAction = {
|
|
33
40
|
readonly press: () => void;
|
|
41
|
+
readonly label?: string;
|
|
42
|
+
readonly disabled?: boolean;
|
|
34
43
|
};
|
|
35
44
|
export declare function cardItemAction(item: unknown): CardItemAction | undefined;
|
|
36
45
|
export declare const CARD_ACTION_ATTR = "data-sf-card-press";
|
|
37
46
|
export declare const CARD_ACTION_CLASS = "absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent appearance-none bg-transparent border-0 p-0 m-0 cursor-pointer";
|
|
47
|
+
export declare const CARD_ACTION_OFF_CLASS = "absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent appearance-none bg-transparent border-0 p-0 m-0";
|
|
38
48
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_LINK_CLASS as
|
|
1
|
+
import{BOX_LINK_CLASS as u}from"./box-link.js";import{cardKeyOf as A}from"./card-template.js";import{INK as p}from"./ink.js";const _=["selected","highlighted"],a="data-sf-card-state",m="pointer-events-none absolute inset-0 border border-accent",D="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",E="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",R="absolute inset-y-0 left-0 w-[3px] bg-accent",I="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",y="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",c=e=>{const r=p.find(t=>t.role===e)?.token;if(!r)throw new Error(`card-state: the palette has no ink token for "${e}"`);return r},l={[c("muted")]:`var(${c("fg")})`};function C(e){return e?.selected===!0}function S(e){return e?_.filter(r=>e[r]===!0).join(" "):""}function L(e,r="frame"){const t=S(e);return t?r==="frame"&&C(e)?{[a]:t,className:"relative isolate",style:{...l}}:{[a]:t,className:"relative"}:{}}const b={highlighted:!0},T={},f="badge";function N(e,r=[]){return e.map((t,n)=>({...t,key:t.key||r[n]?.key||A(t,n)}))}function k(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([r,t])=>r==="key"||r===f||r==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function O(e,{chosen:r,badge:t}){const n=r.trim(),i=n?e.findIndex(o=>o.key===n):-1;return{rows:e.map((o,s)=>({...o,[f]:s===i?t:""})),states:e.map((o,s)=>s===i?b:T)}}function K(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function B(e){if(!e||typeof e!="object")return;const{press:r,pressLabel:t,pressDisabled:n}=e;if(typeof r=="function")return{press:r,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...n===!0?{disabled:!0}:null}}const H="data-sf-card-press",d=`${u} appearance-none bg-transparent border-0 p-0 m-0`,v=`${d} cursor-pointer`,P=d;export{H as CARD_ACTION_ATTR,v as CARD_ACTION_CLASS,y as CARD_ACTION_HOVER_CLASS,P as CARD_ACTION_OFF_CLASS,f as CARD_BADGE_FIELD,a as CARD_STATE_ATTR,m as CARD_STATE_LINE_CLASS,R as CARD_STATE_PICKED_BAR_CLASS,E as CARD_STATE_PICKED_CLASS,l as CARD_STATE_PICKED_INK,I as CARD_STATE_PICKED_WASH_CLASS,D as CARD_STATE_UNDER_LINE_CLASS,B as cardItemAction,L as cardStateAttrs,C as cardStatePicked,S as cardStateValue,K as highlightOf,N as keyedRows,O as markedRows,k as rowHoldsContent};
|
|
@@ -27,6 +27,7 @@ export interface CardRowFieldSpec {
|
|
|
27
27
|
everySource?: boolean;
|
|
28
28
|
fields?: readonly CardRowFieldSpec[];
|
|
29
29
|
mark?: "accentItalic";
|
|
30
|
+
plain?: true;
|
|
30
31
|
}
|
|
31
32
|
export interface CardTemplateSlotSpec {
|
|
32
33
|
slot: string;
|
|
@@ -77,6 +78,7 @@ export declare function rowFieldSpec(copy: {
|
|
|
77
78
|
props?: Record<string, unknown>;
|
|
78
79
|
} | null;
|
|
79
80
|
} | null | undefined, key: string): CardRowFieldSpec | null;
|
|
81
|
+
export declare function rowFieldWordsArePlain(copy: Parameters<typeof rowFieldSpec>[0], key: string): boolean;
|
|
80
82
|
export declare function namedRowField(props: Record<string, unknown> | null | undefined, prop?: string): string;
|
|
81
83
|
export declare function cardKeyOf(row: SourceRow, index: number): string;
|
|
82
84
|
export declare function cardRow(value: unknown): SourceRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{blockSourceSpec as x,declaredBlockSource as w}from"./block-sources.js";import{isNodeList as
|
|
1
|
+
import{blockSourceSpec as x,declaredBlockSource as w}from"./block-sources.js";import{isNodeList as C}from"efficient-easel/data";import{BOX_TYPE as _}from"../document/container-blocks.js";import{globalRegistry as A}from"../global-registry.js";import{nonEmptyString as T}from"../non-empty-string.js";import{accentItalicRuns as I}from"../markup.js";import{withCardsTemplate as E}from"../document/cards-template-on-read.js";import{withCardListTemplate as F}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as P,withArticleBodyTemplate as D}from"../document/article-body-seed.js";import{withLogosTemplate as v}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as W}from"../document/blocks/general/FAQ/card-seed.js";import{withFootprintSideTemplate as M}from"../document/blocks/general/Footprint/card-seed.js";const B="template",N="Card template",y="CardList",h=["Text","ImageBlock","ButtonBlock","Flex"],p="rowField",K="rowLinkField";function be(){return{type:"slot",allow:[...h]}}const j=h.filter(e=>e!=="ButtonBlock"),L="items",R="itemFields";function ke(){return{type:"slot",allow:[...j]}}const H=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>W(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>M(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>E("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:y,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>v(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:L,seed:e=>F(e)},{block:P,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>D(e)}];function a(){return A("efficient.card-templates",()=>new Map(H.map(e=>[e.block,e])))}function ge(e){for(const t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");const r=[];for(const o of t.blocks??[]){if(typeof o?.type!="string"||!o.type)throw new Error(`The card template of ${t.block} names an empty block.`);r.some(l=>l.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=[];for(const o of t.slots??[]){if(typeof o?.slot!="string"||!o.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);const l=T(o.label);n.some(s=>s.slot===o.slot)||n.push(l?{slot:o.slot,label:l}:{slot:o.slot})}const i=T(t.typedRows);a().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(o=>({...o})),blocks:r,typedRows:i,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Y(e,t){const r=e?a().get(e)?.seed:void 0;return r?r(t):t}function xe(e,t){const r=$(e),n=(r.length?r:[B]).filter(s=>t[s]===void 0||Array.isArray(t[s])&&t[s].length===0);if(!n.length)return t;const i={...t};for(const s of n)delete i[s];const o=e?a().get(e)?.seedOnInsert:void 0,l=o?o(i):Y(e,i);return l===i?t:l}function we(){for(const e of a().values())if(e.blocks?.length)return!0;return!1}function Te(e){return a().get(e)?.blocks??[]}function Be(e){for(const t of a().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function he(e){return typeof e=="string"&&a().get(e)?.typedRows||""}function Le(e){return typeof e=="string"&&a().get(e)?.linesBetween===!0}function Re(e){return typeof e=="string"&&a().has(e)}const U=[{slot:B}];function m(e){if(typeof e!="string")return[];const t=a().get(e);return t?t.slots??U:[]}function $(e){return m(e).map(t=>t.slot)}function Q(e,t){return m(e).some(r=>r.slot===t)}function Oe(e,t){const r=m(e).find(n=>n.slot===t);return r?r.label??N:null}function q(e,t){const r=a().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function V(e){return typeof e=="string"?q(e,"list")[0]?.key??"":""}function X(e,t){return b(e)||V(t)}function O(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=a().get(r)?.fields??[],i=x(w(e?.props))?.fields,o=i?.length?[...i.map(l=>({...l})),...n.filter(l=>l.everySource&&!i.some(s=>s.key===l.key))]:n;return t?o.filter(l=>(l.kind??"text")===t):o}function z(e,t,r){return e?r?O(r).find(n=>n.key===t)??null:a().get(e)?.fields.find(n=>n.key===t)??null:null}function S(e,t){return!e||!t?null:e.fields?.find(r=>r.key===t)??z(e.ownerType,t,e.owner)}function Se(e,t){return S(e,t)?.plain===!0}function b(e,t=p){const r=e?.[t];return typeof r=="string"?r.trim():""}function Ce(e,t){return e.key||String(t+1)}function _e(e){const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,n]of Object.entries(e))typeof n=="string"&&(t[r]=n);return t}const G="hideWhenRowEmpty";function Ae(e,t){const r=e[G];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}const k={Text:{text:p},ImageBlock:{src:p},ButtonBlock:{label:p,href:K},LogoBlock:{alt:p},Breadcrumb:{currentCrumb:p}},Ie=k,J=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Ee(e,t,r){return Z(e,t,r)&&!J.has(`${e}.${r}`)}function Z(e,t,r){return ee(e,t,r)!==""}function ee(e,t,r){const n=k[e]?.[r];return n?b(t,n):""}function te(e,t){return!t||!e?null:e[t]??""}function Fe(e,t,r,n,i){if(!r)return t;let o=null;for(const[l,s]of Object.entries(k[e]??{})){const f=b(t,s),c=te(r,f);c!==null&&(o??={...t},o[l]=S({ownerType:n,fields:i},f)?.mark==="accentItalic"?I(c):c)}return o??t}function g(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(o,l)=>{for(const s of o){if(s?.props?.id===t)return l;for(const[f,c]of Object.entries(s?.props??{})){if(!C(c))continue;const u=Q(s.type,f)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===_},d=n(c,u);if(d!==void 0)return d}}},i=n(r,null);return i===void 0?null:i}function re(e,t){const r=g(e,t);return r&&r.owner}function Pe(e,t){const r=g(e,t);return r&&(r.direct?r.owner:null)}function De(e,t){const r=g(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function ve(e,t,r){if(t?.type!==y)return[];const n=re(e,t.props?.id);if(!n){const l=x(w(t.props))?.fields,s=l?.length?l.map(u=>({...u})):ne(t.props),f=(a().get(y)?.fields??[]).filter(u=>u.everySource&&!s.some(d=>d.key===u.key)),c=[...s,...f];return r?c.filter(u=>(u.kind??"text")===r):c}const i=X(t.props,n.type),o=i&&O(n,"list").find(l=>l.key===i)?.fields||[];return r?o.filter(l=>(l.kind??"text")===r):o}function We(e,t){return{[p]:"",[L]:e.map(r=>({...r})),[R]:t.map(r=>({...r}))}}function ne(e,t){const r=e?.[R];if(!Array.isArray(r))return[];const n=r.flatMap(i=>{if(!i||typeof i!="object")return[];const{key:o,label:l,kind:s,multiline:f,alt:c,next:u}=i;if(typeof o!="string"||!o||typeof l!="string")return[];const d=s==="image"||s==="link"||s==="colour"?s:void 0;return[{key:o,label:l,...d?{kind:d}:{},...f===!0?{multiline:!0}:{},...typeof c=="string"&&c?{alt:c}:{},...typeof u=="string"&&u?{next:u}:{}}]});return t?n.filter(i=>(i.kind??"text")===t):n}export{G as BOX_HIDE_WHEN_ROW_EMPTY,R as CARD_LIST_FIELDS,j as CARD_LIST_ITEM_BLOCKS,L as CARD_LIST_ROWS,y as CARD_LIST_TYPE,p as CARD_ROW_FIELD_PROP,K as CARD_ROW_LINK_PROP,h as CARD_TEMPLATE_BLOCKS,N as CARD_TEMPLATE_LABEL,B as CARD_TEMPLATE_SLOT,Ie as ROW_BOUND_PROPS,J as ROW_PART_BY_WORDS,De as cardCopyPlace,Ce as cardKeyOf,ve as cardListFieldsOf,ke as cardListItemSlot,We as cardListProps,X as cardListShows,_e as cardRow,Te as cardTemplateBlocks,Pe as cardTemplateCardOwner,z as cardTemplateField,q as cardTemplateFields,O as cardTemplateFieldsOf,Le as cardTemplateLinesBetween,re as cardTemplateOwner,be as cardTemplateSlot,Oe as cardTemplateSlotLabel,$ as cardTemplateSlotNames,he as cardTemplateTypedRows,we as cardTemplatesNameBlocks,V as defaultListField,Re as hasCardTemplate,Be as isCardTemplateBlock,Q as isCardTemplateSlot,b as namedRowField,ge as registerCardTemplates,Z as rowBound,ee as rowFieldOf,S as rowFieldSpec,te as rowFieldText,Se as rowFieldWordsArePlain,Fe as rowFilledProps,Ee as rowPartByKey,Ae as templateBoxIsEmpty,xe as templateOnInsert,Y as templateOnRead};
|
|
@@ -7,3 +7,10 @@ export declare const EASEL_ROW_WORDS: {
|
|
|
7
7
|
readonly onTablet: "{value} on tablet";
|
|
8
8
|
readonly onDesktop: "{value} on desktop";
|
|
9
9
|
};
|
|
10
|
+
export declare const EASEL_MEDIA_ZONE_WORDS: {
|
|
11
|
+
readonly rendering: "Product renderings";
|
|
12
|
+
readonly photos: "Product photos";
|
|
13
|
+
readonly lifestyle: "Lifestyle photos";
|
|
14
|
+
readonly accessories: "Accessories";
|
|
15
|
+
readonly others: "Others";
|
|
16
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink",line:"One line",onTablet:"{value} on tablet",onDesktop:"{value} on desktop"};export{e as EASEL_ROW_WORDS};
|
|
1
|
+
const e={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink",line:"One line",onTablet:"{value} on tablet",onDesktop:"{value} on desktop"},o={rendering:"Product renderings",photos:"Product photos",lifestyle:"Lifestyle photos",accessories:"Accessories",others:"Others"};export{o as EASEL_MEDIA_ZONE_WORDS,e as EASEL_ROW_WORDS};
|
|
@@ -926,6 +926,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
926
926
|
readonly "Product photos": "Product photos";
|
|
927
927
|
readonly "Product record": "Product record";
|
|
928
928
|
readonly "Product record (spec tiles)": "Product record (spec tiles)";
|
|
929
|
+
readonly "Product renderings": "Product renderings";
|
|
929
930
|
readonly "Product tiles": "Product tiles";
|
|
930
931
|
readonly "Products, prices and forms always show as they are now.": "Products, prices and forms always show as they are now.";
|
|
931
932
|
readonly "Promotions & sign-ups": "Promotions & sign-ups";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const e={"$ efficient …":"$ efficient …","0 min":"0 min","0 min read":"0 min read","01 / Section":"01 / Section","100s":"100s","1st rendering":"1st rendering","2nd rendering":"2nd rendering","30-day returns":"30-day returns","3rd rendering":"3rd rendering","4th rendering":"4th rendering","5th rendering":"5th rendering","A 'Show us yours.' headline with a photo-submission form.":"A 'Show us yours.' headline with a photo-submission form.","A big headline beside a stack of call-to-action buttons.":"A big headline beside a stack of call-to-action buttons.","A bold brand statement beside a full-height image, with a stat strip.":"A bold brand statement beside a full-height image, with a stat strip.","A call-to-action button.":"A call-to-action button.","A card per city, grouped by region: address, phone, hours and a map.":"A card per city, grouped by region: address, phone, hours and a map.","A card's opening picture — a card pinned to a finish keeps its own.":"A card's opening picture — a card pinned to a finish keeps its own.","A centered 'ready to order?' headline with the checkout button.":"A centered 'ready to order?' headline with the checkout button.","A change waiting to go live could not be saved.":"A change waiting to go live could not be saved.","A chat bubble on every page":"A chat bubble on every page","A corner would need a diagonal ramp, which this overlay does not draw.":"A corner would need a diagonal ramp, which this overlay does not draw.","A detail line":"A detail line","A display order-summary panel — items, totals and a note.":"A display order-summary panel — items, totals and a note.","A document header — headline, metadata and standfirst.":"A document header — headline, metadata and standfirst.","A featured article — big cover image beside a headline and dek.":"A featured article — big cover image beside a headline and dek.","A few numbers that matter to us.":"A few numbers that matter to us.","A fitment table — per-size bolt patterns, offsets and load ratings, filterable by diameter.":"A fitment table — per-size bolt patterns, offsets and load ratings, filterable by diameter.","A frame is made from this video when you save the page.":"A frame is made from this video when you save the page.","A frequently-asked-questions accordion with a header.":"A frequently-asked-questions accordion with a header.","A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.":"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.","A heading over a grid of free-text title-and-blurb cards.":"A heading over a grid of free-text title-and-blurb cards.","A heading over columns, or alternating rows, of image, title, blurb and specs.":"A heading over columns, or alternating rows, of image, title, blurb and specs.","A headline beside a stylized product-UI mockup card — spec sheet, fitment, portal, kanban and more.":"A headline beside a stylized product-UI mockup card — spec sheet, fitment, portal, kanban and more.","A horizontal year track of milestones — company history or roadmap.":"A horizontal year track of milestones — company history or roadmap.","A journal issue header with a lead statement and contents.":"A journal issue header with a lead statement and contents.","A line across the blocks, with a dot on each.":"A line across the blocks, with a dot on each.","A line or two of supporting copy.":"A line or two of supporting copy.","A long-form article spread with a pull-quote and cover image.":"A long-form article spread with a pull-quote and cover image.","A marquee cannot run diagonally, so the corners are not answers.":"A marquee cannot run diagonally, so the corners are not answers.","A milestone still to come.":"A milestone still to come.","A newsletter signup beside a list of recent issues.":"A newsletter signup beside a list of recent issues.","A newsletter signup beside your latest blog posts, pulled live.":"A newsletter signup beside your latest blog posts, pulled live.","A numbered section title with optional link.":"A numbered section title with optional link.","A page header: eyebrow, title, details and a deck.":"A page header: eyebrow, title, details and a deck.","A paragraph of body copy.":"A paragraph of body copy.","A payment-methods trust strip with reassurance lines.":"A payment-methods trust strip with reassurance lines.","A picture worth\n*a thousand rows.*":`A picture worth
|
|
2
2
|
*a thousand rows.*`,"A plain editorial text section — eyebrow, heading and body copy.":"A plain editorial text section — eyebrow, heading and body copy.","A product hero — image beside price, bullets and a buy button.":"A product hero — image beside price, bullets and a buy button.","A row of partner or brand logos.":"A row of partner or brand logos.","A scrolling marquee of short phrases, full width.":"A scrolling marquee of short phrases, full width.","A second customer quote — what they loved, in a sentence or two.":"A second customer quote — what they loved, in a sentence or two.","A section heading over a grid of column cards.":"A section heading over a grid of column cards.","A sentence or two of supporting copy.":"A sentence or two of supporting copy.","A shared section":"A shared section","A short customer quote goes here — replace it with a real testimonial from your customers.":"A short customer quote goes here — replace it with a real testimonial from your customers.","A short customer quote goes here.":"A short customer quote goes here.","A short description of this recurring column.":"A short description of this recurring column.","A short lead paragraph introducing this section — a sentence or two about its theme.":"A short lead paragraph introducing this section — a sentence or two about its theme.","A short line about this card.":"A short line about this card.","A short line about this milestone.":"A short line about this milestone.","A short pull quote.":"A short pull quote.","A short reassurance note under the total.":"A short reassurance note under the total.","A short summary of the article goes here.":"A short summary of the article goes here.","A short summary of the featured article — one or two sentences that draw the reader in.":"A short summary of the featured article — one or two sentences that draw the reader in.","A short summary of the post — one or two sentences.":"A short summary of the post — one or two sentences.","A single heading line.":"A single heading line.","A slim trail showing where the reader is (Home / Journal…).":"A slim trail showing where the reader is (Home / Journal…).","A spec sheet — labeled rows of product specifications.":"A spec sheet — labeled rows of product specifications.","A standalone image, at the width you set.":"A standalone image, at the width you set.","A sticky row of category tabs with counts and links.":"A sticky row of category tabs with counts and links.","A sticky tab bar to switch between documents.":"A sticky tab bar to switch between documents.","A template is a blueprint — it has no website of its own, so there is nothing here to change.":"A template is a blueprint — it has no website of its own, so there is nothing here to change.","A theme-color chip and heading over a grid of short feature labels.":"A theme-color chip and heading over a grid of short feature labels.","A thin horizontal rule between sections.":"A thin horizontal rule between sections.","A thin one-line spec strip — small-caps items spread across the width, as a dark band or a bare hairline row.":"A thin one-line spec strip — small-caps items spread across the width, as a dark band or a bare hairline row.","A third short quote to round out the row.":"A third short quote to round out the row.","A three-up meta strip for the foot of a document.":"A three-up meta strip for the foot of a document.","A titled chart — bars, line or donut — drawn from your own labeled data points.":"A titled chart — bars, line or donut — drawn from your own labeled data points.","A vehicle picker — make, model, year and trim resolve the OEM stock fitment live.":"A vehicle picker — make, model, year and trim resolve the OEM stock fitment live.","A wall of city photos, grouped by region. Each photo links to its city's card.":"A wall of city photos, grouped by region. Each photo links to its city's card.","A wall of your photos or your products' pictures, with a click-to-open lightbox.":"A wall of your photos or your products' pictures, with a click-to-open lightbox.","A world map of your locations with a legend — designed here, sold worldwide.":"A world map of your locations with a legend — designed here, sold worldwide.","A write-a-review form — submissions wait for your approval before they show.":"A write-a-review form — submissions wait for your approval before they show.","About & brand story":"About & brand story",Accessories:"Accessories",Accordion:"Accordion",Account:"Account","Active tab":"Active tab",Add:"Add","Add a *headline* for this post.":"Add a *headline* for this post.","Add a *headline* for this story.":"Add a *headline* for this story.","Add a page":"Add a page","Add a sentence or two introducing this document.":"Add a sentence or two introducing this document.","Add a sentence or two of supporting copy.":"Add a sentence or two of supporting copy.","Add a short heading.":"Add a short heading.","Add a short statement here — a sentence or two is plenty.":"Add a short statement here — a sentence or two is plenty.","Add an anchor":"Add an anchor","Add an office in the inspector":"Add an office in the inspector","Add another question":"Add another question","Add city":"Add city","Add group":"Add group","Add new theme":"Add new theme","Add office coordinates to plot the map":"Add office coordinates to plot the map","Add page":"Add page","Add slide":"Add slide","Add this section's copy here.":"Add this section's copy here.","Add this section's copy here. A blank line starts a new paragraph.":"Add this section's copy here. A blank line starts a new paragraph.","Add your answer here — a sentence or two is plenty.":"Add your answer here — a sentence or two is plenty.","Add your answer here.":"Add your answer here.","Add your answer here. Keep it clear and concise so it stays easy to scan.":"Add your answer here. Keep it clear and concise so it stays easy to scan.","Add your first question":"Add your first question","Add your numbers.":"Add your numbers.",Address:"Address",After:"After",All:"All","Alt text":"Alt text",Alternating:"Alternating","Alternating (zig-zag)":"Alternating (zig-zag)",Amount:"Amount","An editorial aside beside a rail-marked timeline of dated entries.":"An editorial aside beside a rail-marked timeline of dated entries.","An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.":"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.","An editorial text panel with a stat strip and founders' note.":"An editorial text panel with a stat strip and founders' note.","An empty section. Add whatever you want inside.":"An empty section. Add whatever you want inside.",Anchor:"Anchor",Angle:"Angle",Animation:"Animation","Another group already uses this heading — pick a different one.":"Another group already uses this heading — pick a different one.",Answer:"Answer",App:"App","App chips":"App chips","App name":"App name",Appearance:"Appearance","Appearance settings belong to a website.":"Appearance settings belong to a website.","Applied to {n} card":"Applied to {n} card","Applied to {n} cards":"Applied to {n} cards","Apply to all cards":"Apply to all cards","Approved customer reviews in a star-rated card grid, pulled live.":"Approved customer reviews in a star-rated card grid, pulled live.",Arrangement:"Arrangement",Arrows:"Arrows","Arrows placement":"Arrows placement","Arrows shape":"Arrows shape",Article:"Article","Article *headline* goes here.":"Article *headline* goes here.","Article Body":"Article Body","Article Text":"Article Text","Article headline":"Article headline","Article title":"Article title","As shot":"As shot","As uploaded":"As uploaded","Aspect ratio":"Aspect ratio","At zero":"At zero",Attribution:"Attribution",Auto:"Auto","Auto contrast":"Auto contrast","Auto-advance slides":"Auto-advance slides","Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.":"Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.","Auto-slide":"Auto-slide","Avg rating":"Avg rating","Avg. weight saving":"Avg. weight saving",Background:"Background","Background color":"Background color","Background image":"Background image","Background images":"Background images","Background width":"Background width",Badge:"Badge","Bank transfer":"Bank transfer",Banner:"Banner","Banner headline":"Banner headline",Bar:"Bar",Bare:"Bare",Bars:"Bars","Bars (comparison / funnel)":"Bars (comparison / funnel)","Bars heading":"Bars heading",Basics:"Basics",Before:"Before","Begin reading":"Begin reading",Below:"Below","Below picture":"Below picture","Big first":"Big first","Big left":"Big left","Big right":"Big right","Big stat":"Big stat","Black and white":"Black and white","Black and white logos":"Black and white logos",Block:"Block","Block gap":"Block gap","Block spacing":"Block spacing","Block widths":"Block widths","Blog & journal":"Blog & journal","Blog post":"Blog post","Blog post source":"Blog post source",Body:"Body",Bold:"Bold","Bold word":"Bold word","Booking Form":"Booking Form",Border:"Border","Border bottom":"Border bottom","Border color":"Border color","Border left":"Border left","Border right":"Border right","Border style":"Border style","Border top":"Border top","Border width":"Border width",Borders:"Borders",Bottom:"Bottom","Bottom center":"Bottom center","Bottom left":"Bottom left","Bottom right":"Bottom right",Bounce:"Bounce",Box:"Box","Box name":"Box name","Box shape":"Box shape","Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.":"Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.","Brand Text":"Brand Text","Brand name":"Brand name",Breadcrumb:"Breadcrumb",Brick:"Brick","Browser mock":"Browser mock","Browser shop":"Browser shop","Browser storefront (hero + tiles)":"Browser storefront (hero + tiles)","Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.":"Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.","Bundle Products":"Bundle Products",Button:"Button","Button Right Text":"Button Right Text","Button color":"Button color","Button label":"Button label","Button link":"Button link","Button text color":"Button text color",Buttons:"Buttons","Buy button":"Buy button","By the *numbers*":"By the *numbers*","By the numbers":"By the numbers","Call-to-Action Heading":"Call-to-Action Heading",Cancel:"Cancel",Caption:"Caption",Card:"Card","Card body":"Card body","Card button":"Card button","Card content":"Card content","Card header strip":"Card header strip","Card height":"Card height","Card image":"Card image","Card layout":"Card layout","Card link":"Card link","Card list":"Card list","Card number":"Card number","Card outline":"Card outline","Card shadow":"Card shadow","Card style":"Card style","Card subtitle":"Card subtitle","Card template":"Card template","Card title":"Card title","Card title one":"Card title one","Card title three":"Card title three","Card title two":"Card title two","Card type":"Card type","Card {n}":"Card {n}",Cards:"Cards","Cards 1, 3, 5 draw the other way round":"Cards 1, 3, 5 draw the other way round","Cards 2, 4, 6 draw the other way round":"Cards 2, 4, 6 draw the other way round",Cart:"Cart",Cash:"Cash","Catalog Filter Bar":"Catalog Filter Bar",Category:"Category","Category Bar":"Category Bar","Category bar":"Category bar","Cell width":"Cell width",Center:"Center","Changed on every page":"Changed on every page","Changes not live yet":"Changes not live yet",Chart:"Chart","Chart style":"Chart style","Chat with us":"Chat with us","Check it with Preview. Press Publish to put it live.":"Check it with Preview. Press Publish to put it live.","Checkout & ordering":"Checkout & ordering","Chip label":"Chip label","Choose a page":"Choose a page","Choose a popup":"Choose a popup","Choose a post":"Choose a post","Choose a product":"Choose a product","Choose a section":"Choose a section","Choose an image":"Choose an image","Cities in this group":"Cities in this group",City:"City","City maps":"City maps","City pictures":"City pictures","City strip":"City strip","Claims bars":"Claims bars","Claims panel":"Claims panel","Claims panel (rows + defect bars)":"Claims panel (rows + defect bars)","Clear colors":"Clear colors","Clear this site’s colors?":"Clear this site’s colors?","Click to play":"Click to play",Collapse:"Collapse","Collapse {name}":"Collapse {name}",Collections:"Collections",Color:"Color","Column *title.*":"Column *title.*","Column 1 cards":"Column 1 cards","Column 1 title":"Column 1 title","Column 2 cards":"Column 2 cards","Column 2 title":"Column 2 title","Column 3 cards":"Column 3 cards","Column 3 title":"Column 3 title","Column 4 cards":"Column 4 cards","Column 4 title":"Column 4 title","Column {n}":"Column {n}",Columns:"Columns","Compatible Tyres":"Compatible Tyres","Connect to a live number":"Connect to a live number","Contact / Locations":"Contact / Locations","Contact Form":"Contact Form","Contact, FAQ & forms":"Contact, FAQ & forms",Contain:"Contain",Content:"Content","Content cannot be wider than the background.":"Content cannot be wider than the background.","Content position":"Content position","Content width":"Content width",Contents:"Contents","Contents heading":"Contents heading","Contents label":"Contents label",Coordinates:"Coordinates","Copy above image":"Copy above image","Copy over image":"Copy over image","Copying…":"Copying…","Corner note":"Corner note",Corners:"Corners","Couldn’t add the page — please retry.":"Couldn’t add the page — please retry.","Couldn’t add the popup — please retry.":"Couldn’t add the popup — please retry.","Couldn’t delete the page — please retry.":"Couldn’t delete the page — please retry.","Couldn’t duplicate the section — please retry":"Couldn’t duplicate the section — please retry","Couldn’t load pages":"Couldn’t load pages","Couldn’t open this section.":"Couldn’t open this section.","Couldn’t reach {place}.":"Couldn’t reach {place}.",Count:"Count",Countdown:"Countdown",Country:"Country","Country Switch":"Country Switch",Cover:"Cover","Cover image":"Cover image",Covers:"Covers","Cross ✕":"Cross ✕",Crumbs:"Crumbs","Current page":"Current page",Custom:"Custom","Custom HTML":"Custom HTML","Custom URL":"Custom URL","Custom color":"Custom color","Custom: the width of each block in %, the last block left out":"Custom: the width of each block in %, the last block left out","Customer Photo Grid":"Customer Photo Grid","Customer name":"Customer name","Customer photos in a card grid with a click-to-open lightbox.":"Customer photos in a card grid with a click-to-open lightbox.","Customer quotes in a grid — the quote, a name and a role.":"Customer quotes in a grid — the quote, a name and a role.",Dark:"Dark","Dark band":"Dark band",Darken:"Darken","Darken on hover":"Darken on hover","Darken style":"Darken style",Dashed:"Dashed","Data points":"Data points",Date:"Date",Dealers:"Dealers","Dealers are not available on this website":"Dealers are not available on this website","Deck / standfirst":"Deck / standfirst",Default:"Default","Defect rate by product":"Defect rate by product",Dek:"Dek",Delay:"Delay","Delete city":"Delete city","Delete group ({n} cities)":"Delete group ({n} cities)","Delete group ({n} city)":"Delete group ({n} city)","Delete {label} group ({n} cities)":"Delete {label} group ({n} cities)","Delete {label} group ({n} city)":"Delete {label} group ({n} city)","Delete {name}":"Delete {name}","Delete “{name}”":"Delete “{name}”","Deleted “{name}”":"Deleted “{name}”",Delivery:"Delivery","Delivery Options":"Delivery Options","Delivery tiers as cards — name, window and price, one highlighted.":"Delivery tiers as cards — name, window and price, one highlighted.","Describe this section in a sentence or two.":"Describe this section in a sentence or two.","Describe this step in a sentence or two.":"Describe this step in a sentence or two.","Describe what happened, in a sentence or two.":"Describe what happened, in a sentence or two.",Design:"Design",Desktop:"Desktop",Detail:"Detail","Detail line":"Detail line",Direction:"Direction","Directions link":"Directions link","Dismiss link":"Dismiss link",Display:"Display",Distance:"Distance","Distance from top":"Distance from top",Divider:"Divider","Document Detail Cards":"Document Detail Cards","Document Header":"Document Header","Document Tabs":"Document Tabs","Document Text":"Document Text","Document body":"Document body","Document masthead":"Document masthead","Document tabs":"Document tabs",Done:"Done",Donut:"Donut","Donut (split of a whole)":"Donut (split of a whole)","Dot ●":"Dot ●",Dots:"Dots",Dotted:"Dotted",Down:"Down","Draft before restore":"Draft before restore","Drop in your own sanitized HTML.":"Drop in your own sanitized HTML.","Duplicate section":"Duplicate section","Duplicate to another page":"Duplicate to another page","Duplicate to page":"Duplicate to page","Duplicate “{name}”":"Duplicate “{name}”","Duplicated to “{name}”":"Duplicated to “{name}”",Duration:"Duration",Dynamic:"Dynamic","Dynamic Pages":"Dynamic Pages","EU Tyre Label":"EU Tyre Label","Each block":"Each block","Each row":"Each row","Each side":"Each side","Each website created from this template sets its own appearance afterwards.":"Each website created from this template sets its own appearance afterwards.","Each website created from this template sets its own header afterwards.":"Each website created from this template sets its own header afterwards.","Each website created from this template sets its own live chat afterwards.":"Each website created from this template sets its own live chat afterwards.","Each website created from this template sets its own social link afterwards.":"Each website created from this template sets its own social link afterwards.","Each website created from this template sets its own {what} afterwards.":"Each website created from this template sets its own {what} afterwards.","Easy to read":"Easy to read",Edit:"Edit","Edit colors":"Edit colors","Edit colors for {name}":"Edit colors for {name}","Edit {name}":"Edit {name}","Editing {name} changes it everywhere.":"Editing {name} changes it everywhere.","Editor only — not shown live":"Editor only — not shown live",Editorial:"Editorial","Editorial Text":"Editorial Text",Effect:"Effect",Email:"Email","Email Form":"Email Form","Email address":"Email address","Email signup":"Email signup",Emphasis:"Emphasis",Empty:"Empty",Ends:"Ends","Enter by hand":"Enter by hand",Entrance:"Entrance",Entries:"Entries","Entries count":"Entries count",Equal:"Equal",Essay:"Essay",Even:"Even","Even cards":"Even cards","Every Publish keeps a copy of the whole website: pages, menus and site styles.":"Every Publish keeps a copy of the whole website: pages, menus and site styles.","Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.":"Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.","Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.":"Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.","Everything else on this block comes from the linked post. Unlink it to edit by hand.":"Everything else on this block comes from the linked post. Unlink it to edit by hand.","Everything is live":"Everything is live",Excerpt:"Excerpt","Extra large — 64px":"Extra large — 64px",Eyebrow:"Eyebrow","Eyebrow style":"Eyebrow style",Facebook:"Facebook",Fade:"Fade",Feature:"Feature","Feature Banner":"Feature Banner","Feature Rows":"Feature Rows","Feature label":"Feature label","Feature label five":"Feature label five","Feature label four":"Feature label four","Feature label one":"Feature label one","Feature label six":"Feature label six","Feature label three":"Feature label three","Feature label two":"Feature label two","Feature story":"Feature story",Featured:"Featured","Featured *image*":"Featured *image*","Featured cover":"Featured cover",Features:"Features",Feedback:"Feedback","Field label":"Field label","Field notes":"Field notes",Fill:"Fill","Fill color":"Fill color","Fill content":"Fill content","Fill row":"Fill row",Filled:"Filled","Filters the collection grids below it — a sticky row of Pills (the default), or Columns, one per filter you switch on.":"Filters the collection grids below it — a sticky row of Pills (the default), or Columns, one per filter you switch on.","Find from the address":"Find from the address","Find from the address (OpenStreetMap)":"Find from the address (OpenStreetMap)","Finding…":"Finding…","Fine print":"Fine print","Finish steps":"Finish steps","Finish swatches":"Finish swatches","Finish · Size · ×1":"Finish · Size · ×1","First group":"First group","First item":"First item","First section":"First section","Fit content":"Fit content","Fitment Form":"Fitment Form","Fitment Table":"Fitment Table",Fixed:"Fixed","Fixed size — the site’s Text setting doesn’t resize this.":"Fixed size — the site’s Text setting doesn’t resize this.",Flip:"Flip","Follow the page":"Follow the page","Follow the slideshow":"Follow the slideshow","Follows Desktop":"Follows Desktop","Follows Styles ▸ Basics ▸ Corners until you set a number here.":"Follows Styles ▸ Basics ▸ Corners until you set a number here.","Follows the section's Corners until you set a number here.":"Follows the section's Corners until you set a number here.","Follows the site":"Follows the site","Footer Box":"Footer Box",Footnote:"Footnote",Form:"Form","Form eyebrow":"Form eyebrow","Form heading":"Form heading","Form intro":"Form intro","Formatting — click a row first":"Formatting — click a row first","Formatting — row {n}":"Formatting — row {n}",Founders:"Founders","Founders heading":"Founders heading","Founders statement":"Founders statement","Four across":"Four across","Four stagger":"Four stagger",Frequency:"Frequency","Frequently *asked.*":"Frequently *asked.*",From:"From","From the bottom":"From the bottom",Full:"Full","Full width":"Full width","Full-bleed intro image the next section scrolls over.":"Full-bleed intro image the next section scrolls over.","Full-screen image or video with a headline.":"Full-screen image or video with a headline.","Full-screen opener with rotating slides.":"Full-screen opener with rotating slides.",Gallery:"Gallery",Gap:"Gap","Gap only":"Gap only","Give the new template page a name. It starts blank — add sections once it opens.":"Give the new template page a name. It starts blank — add sections once it opens.","Gives the other card this card's Corners.":"Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.":"Gives the other {n} cards this card's Corners.",Glide:"Glide",Good:"Good","Greeting message":"Greeting message",Grid:"Grid",Group:"Group","Group heading":"Group heading","Group name":"Group name",Gutter:"Gutter",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",HQ:"HQ",HTML:"HTML","HTML tag":"HTML tag",Hairline:"Hairline","Hairline borders":"Hairline borders",Half:"Half","Hand-picked products in a tidy grid.":"Hand-picked products in a tidy grid.","Hard to read":"Hard to read",Header:"Header","Header and footer not live yet":"Header and footer not live yet","Header badge":"Header badge","Header settings belong to a website.":"Header settings belong to a website.",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading font size":"Heading font size",Headings:"Headings",Headquarters:"Headquarters",Height:"Height",Hero:"Hero","Hero & intros":"Hero & intros","Hero Single":"Hero Single","Hero Slide":"Hero Slide","Hero button":"Hero button","Hero line":"Hero line","Hidden on the page":"Hidden on the page",Hide:"Hide","Hide {label} on the slide":"Hide {label} on the slide",Highlight:"Highlight","Highlight badge":"Highlight badge","Highlight key numbers — years, designs.":"Highlight key numbers — years, designs.","Highlight line":"Highlight line","Highlight when a link jumps here":"Highlight when a link jumps here","Highlighted card":"Highlighted card",Hint:"Hint","Hold video":"Hold video",Home:"Home","Hours, minutes and seconds to a set date and time, then one line.":"Hours, minutes and seconds to a set date and time, then one line.",Hover:"Hover","Hover effect":"Hover effect",Icon:"Icon","Icon after text":"Icon after text","Icon at the far end":"Icon at the far end","Icon before text":"Icon before text","Icon only":"Icon only","Icon position":"Icon position","Illustrative example":"Illustrative example",Image:"Image","Image & Text Columns":"Image & Text Columns","Image & Text Split":"Image & Text Split","Image 2":"Image 2","Image background":"Image background","Image caption":"Image caption","Image column":"Image column","Image content":"Image content","Image date":"Image date","Image fit":"Image fit","Image focus":"Image focus","Image label":"Image label","Image left":"Image left","Image meta":"Image meta","Image right":"Image right","Image side":"Image side","Image stage":"Image stage","Image tag":"Image tag","Image tint":"Image tint","Image width":"Image width","Image — set a path":"Image — set a path","In its own box":"In its own box","In progress (main)":"In progress (main)","In the card":"In the card","In the product":"In the product","In this issue":"In this issue","In this section":"In this section","In your own time zone. Every visitor counts down to the same moment.":"In your own time zone. Every visitor counts down to the same moment.",Instagram:"Instagram",Integrations:"Integrations","Integrations Grid":"Integrations Grid",Interview:"Interview",Intro:"Intro","Introduce your company in a paragraph or two.":"Introduce your company in a paragraph or two.","Issue Header":"Issue Header","Issue lines":"Issue lines","Issue meta lines":"Issue meta lines",Item:"Item","Item content":"Item content",Items:"Items","Its own":"Its own","Its size follows Styles ▸ {follows} — {px}px right now.":"Its size follows Styles ▸ {follows} — {px}px right now.","Its size follows Styles ▸ {follows}.":"Its size follows Styles ▸ {follows}.","Job card label":"Job card label",Join:"Join","Join our email list":"Join our email list","Jumps to a section on that page.":"Jumps to a section on that page.","Kanban board":"Kanban board","Kanban board (job columns)":"Kanban board (job columns)","Kanban columns":"Kanban columns","Keep this section's own built-in size":"Keep this section's own built-in size","Key *features.*":"Key *features.*","Key Features":"Key Features",Kind:"Kind",LINE:"LINE",LIVE:"LIVE",Label:"Label","Label color":"Label color","Label only":"Label only",Labels:"Labels",Ladder:"Ladder","Landscape 4:3":"Landscape 4:3",Large:"Large","Large tabs":"Large tabs","Large text only":"Large text only","Large — 56px":"Large — 56px","Latest Posts":"Latest Posts","Latest journal posts in a three-card row.":"Latest journal posts in a three-card row.",Latitude:"Latitude","Latitude, longitude":"Latitude, longitude",Layout:"Layout","Layout & structure":"Layout & structure","Layout, structure & embeds":"Layout, structure & embeds",Layouts:"Layouts",Lead:"Lead","Lead Text":"Lead Text","Learn more":"Learn more","Leave a blank line between paragraphs to start a new one.":"Leave a blank line between paragraphs to start a new one.","Leave a field blank to use the built-in wording.":"Leave a field blank to use the built-in wording.",Left:"Left","Left of the copy":"Left of the copy","Legal & documents":"Legal & documents","Legal Line":"Legal Line",Length:"Length",Level:"Level","Lifestyle photos":"Lifestyle photos",Lift:"Lift",Lifted:"Lifted",Light:"Light",Lightbox:"Lightbox","Limited release":"Limited release",Line:"Line","Line (trend)":"Line (trend)",Link:"Link","Link from":"Link from","Link to":"Link to","Linked to a blog post. This editor has no blog to pick another from; choose “None (manual)” to author the section yourself.":"Linked to a blog post. This editor has no blog to pick another from; choose “None (manual)” to author the section yourself.","Linked to “{name}”":"Linked to “{name}”",LinkedIn:"LinkedIn",Links:"Links","Links to":"Links to",List:"List","List search":"List search",Live:"Live","Live chat":"Live chat","Live chat settings belong to a website.":"Live chat settings belong to a website.","Live number":"Live number","Live numbers":"Live numbers","Loading versions":"Loading versions","Loading…":"Loading…","Location content":"Location content","Location name":"Location name",Locations:"Locations","Locations Map":"Locations Map",Logo:"Logo","Logo alt text":"Logo alt text","Logo color":"Logo color","Logo content":"Logo content","Logo description":"Logo description","Logo five":"Logo five","Logo four":"Logo four","Logo height":"Logo height","Logo image":"Logo image","Logo one":"Logo one","Logo style":"Logo style","Logo three":"Logo three","Logo two":"Logo two",Logos:"Logos","Long read":"Long read","Long-form document body with an 'On this page' contents list.":"Long-form document body with an 'On this page' contents list.",Longitude:"Longitude",Look:"Look","Lookup busy — try again in a moment.":"Lookup busy — try again in a moment.",Loop:"Loop","Los Angeles · Fort Lauderdale · Bewdley · Drachten · Mumbai · Selangor · Ho Chi Minh · Sydney. Three continents covered from one California design studio.":"Los Angeles · Fort Lauderdale · Bewdley · Drachten · Mumbai · Selangor · Ho Chi Minh · Sydney. Three continents covered from one California design studio.",Main:"Main","Main Pages":"Main Pages","Main color":"Main color","Main heading":"Main heading","Main heading\n*Highlight line*":`Main heading
|
|
3
3
|
*Highlight line*`,Manual:"Manual",Map:"Map","Map & Theme":"Map & Theme","Map theme":"Map theme",Marks:"Marks",Marquee:"Marquee","Match / done (green)":"Match / done (green)",Media:"Media",Medium:"Medium","Medium — 48px":"Medium — 48px",Menu:"Menu",Message:"Message","Meta line":"Meta line",Metadata:"Metadata","Metadata rows":"Metadata rows",Middle:"Middle","Middle meta":"Middle meta",Milestone:"Milestone","Milestone Timeline":"Milestone Timeline","Milestone title.":"Milestone title.",Milestones:"Milestones","Mirror cards":"Mirror cards","Mockup Card":"Mockup Card","Mockup card":"Mockup card","Mockup position":"Mockup position",Mono:"Mono","Month DD, YYYY":"Month DD, YYYY",More:"More","Most popular":"Most popular","Multi-column container for blocks.":"Multi-column container for blocks.",Muted:"Muted",Name:"Name","Name / alt":"Name / alt","Name this version":"Name this version","Named versions are always kept. Leave it empty to take the name away.":"Named versions are always kept. Leave it empty to take the name away.",Natural:"Natural","Navigation & wayfinding":"Navigation & wayfinding","Never published":"Never published","New page":"New page","New popup":"New popup","Next slide":"Next slide","No fill":"No fill","No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads.":"No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads.","No image yet. The slide shows its background colour until you choose one.":"No image yet. The slide shows its background colour until you choose one.","No image yet. The slide shows the video's frame until you choose one.":"No image yet. The slide shows the video's frame until you choose one.","No locations yet.":"No locations yet.","No match":"No match","No match (gray ✕)":"No match (gray ✕)","No other pages":"No other pages","No pages match your search":"No pages match your search","No pages yet. Add one with + above.":"No pages yet. Add one with + above.","No place found. Try another postcode.":"No place found. Try another postcode.","No question matches your search.":"No question matches your search.","No section anchors yet":"No section anchors yet","No style":"No style","No versions yet. Every Publish from now on keeps one.":"No versions yet. Every Publish from now on keeps one.","No. 1":"No. 1",None:"None","None (manual)":"None (manual)",Normal:"Normal","Not changed":"Not changed","Not chosen":"Not chosen","Not published":"Not published","Not saved. Reload the page.":"Not saved. Reload the page.","Not saved. Try again.":"Not saved. Try again.","Not set":"Not set","Not shown on the page":"Not shown on the page",Note:"Note","Note label":"Note label","Note value":"Note value",Nothing:"Nothing",Nudge:"Nudge",Number:"Number","Number style":"Number style",Numbered:"Numbered",Numbers:"Numbers","N°01, N°02":"N°01, N°02","Odd cards":"Odd cards",Off:"Off",Office:"Office",Offices:"Offices","Offset tall":"Offset tall","On 1 page":"On 1 page","On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.":"On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.","On a phone":"On a phone","On every blog post.":"On every blog post.","On every page":"On every page","On every page · old style":"On every page · old style","On other pages":"On other pages","On picture":"On picture","On the top line":"On the top line","On this page":"On this page","On {count} pages":"On {count} pages",One:"One","One line":"One line","One row":"One row","One then four":"One then four","One third":"One third","Only the size follows a site style. This section sets its own font, weight and letter case.":"Only the size follows a site style. This section sets its own font, weight and letter case.",Open:"Open","Open first answer":"Open first answer","Open the {name} in a new tab":"Open the {name} in a new tab","Open your saved draft in a new tab. Visitors don't see it.":"Open your saved draft in a new tab. Visitors don't see it.","Opening hours":"Opening hours","Operating footprint":"Operating footprint",Option:"Option",Order:"Order","Order Table":"Order Table","Order content":"Order content","Order summary":"Order summary",Others:"Others",Outline:"Outline",Outlined:"Outlined",Overlay:"Overlay","Overlay - ConsentBanner":"Overlay - ConsentBanner","Overlay button":"Overlay button","Overlay button link":"Overlay button link","Overlay color":"Overlay color","Overlay position":"Overlay position",Padding:"Padding","Padding bottom":"Padding bottom","Padding left":"Padding left","Padding right":"Padding right","Padding top":"Padding top",Page:"Page","Page Header":"Page Header","Page button":"Page button","Page name":"Page name","Page settings for “{name}”":"Page settings for “{name}”","Page width":"Page width",Pages:"Pages","Panel heading":"Panel heading","Panels & cards":"Panels & cards","Panels and cards":"Panels and cards","Panorama 21:9":"Panorama 21:9",Paragraph:"Paragraph","Paragraph size — 13px":"Paragraph size — 13px","Part of {name}":"Part of {name}","Paste a link to each profile. A platform left empty shows nothing on the site.":"Paste a link to each profile. A platform left empty shows nothing on the site.","Payment Logos":"Payment Logos","Payment Methods":"Payment Methods","Payment content":"Payment content","Payment methods":"Payment methods",Phone:"Phone","Photo Submission Form":"Photo Submission Form","Photo behind the words":"Photo behind the words",Photography:"Photography","Photos in a row":"Photos in a row","Pick a color to see how it reads.":"Pick a color to see how it reads.","Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.":"Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.","Pick who to reach, then a form that routes the message.":"Pick who to reach, then a form that routes the message.",Picture:"Picture","Picture first":"Picture first",Pinterest:"Pinterest",Place:"Place",Placement:"Placement",Plain:"Plain","Play video":"Play video",Playback:"Playback","Playback speed":"Playback speed","Plays well with\n*your favourite apps.*":`Plays well with
|
|
4
|
-
*your favourite apps.*`,Popup:"Popup","Portal card":"Portal card","Portal card (stock + button + orders)":"Portal card (stock + button + orders)","Portrait 4:5":"Portrait 4:5",Position:"Position",Positions:"Positions","Post Card":"Post Card","Poster 2:3":"Poster 2:3",Prefix:"Prefix",Preview:"Preview","Preview hover state":"Preview hover state","Preview the live site (opens in a new tab)":"Preview the live site (opens in a new tab)","Preview the live site in a new tab":"Preview the live site in a new tab","Preview your saved draft in a new tab":"Preview your saved draft in a new tab","Previous slide":"Previous slide",Price:"Price","Privately held since day one. Same two founders.":"Privately held since day one. Same two founders.",Product:"Product","Product Grid":"Product Grid","Product Hero":"Product Hero","Product badge":"Product badge","Product collections in a tidy grid.":"Product collections in a tidy grid.","Product name":"Product name","Product page":"Product page","Product photos":"Product photos","Product record":"Product record","Product record (spec tiles)":"Product record (spec tiles)","Product tiles":"Product tiles","Products, prices and forms always show as they are now.":"Products, prices and forms always show as they are now.","Promotions & sign-ups":"Promotions & sign-ups",Publish:"Publish",Published:"Published","Pull quote":"Pull quote","Put these drafts back":"Put these drafts back","Put this page on your site":"Put this page on your site","Put your changes on your site":"Put your changes on your site","Put your drafts back?":"Put your drafts back?","Q&A":"Q&A",Question:"Question",Questions:"Questions",Quiet:"Quiet",Quote:"Quote",Quotes:"Quotes",Rating:"Rating",Ratio:"Ratio","Read out in place of the picture, and shown if it can’t load.":"Read out in place of the picture, and shown if it can’t load.","Read the story":"Read the story","Read time":"Read time","Reads in":"Reads in","Ready-to-Order Banner":"Ready-to-Order Banner","Reassurance lines":"Reassurance lines","Record type":"Record type","Recurring Columns":"Recurring Columns","Reel label":"Reel label","Refresh now":"Refresh now","Region · country":"Region · country","Related Products":"Related Products","Remove section":"Remove section",Renderings:"Renderings","Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.":"Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.","Reset color":"Reset color","Reset {name} to the preset":"Reset {name} to the preset",Rest:"Rest",Restore:"Restore","Restore as draft":"Restore as draft","Restore one page only":"Restore one page only","Restore version {n}?":"Restore version {n}?","Restore whole website":"Restore whole website","Restore {page} from version {n}?":"Restore {page} from version {n}?","Result / order rows":"Result / order rows",Reveal:"Reveal","Review Form":"Review Form",Reviews:"Reviews",Right:"Right","Right Top Text":"Right Top Text","Right links":"Right links","Right of the copy":"Right of the copy",Rigs:"Rigs","Rigs fitted":"Rigs fitted",Rise:"Rise",Role:"Role","Role · Location":"Role · Location","Role · location":"Role · location",Rotate:"Rotate","Rounds the picture. Left alone it stays square.":"Rounds the picture. Left alone it stays square.","Rounds the picture. The card's own corner is in Styles.":"Rounds the picture. The card's own corner is in Styles.",Row:"Row","Row columns":"Row columns","Row style":"Row style",Rows:"Rows","Rows, first image on the left":"Rows, first image on the left","Rows, first image on the right":"Rows, first image on the right","Same finish":"Same finish","Same finish shows the photos of the finish the card shows, else the first group.":"Same finish shows the photos of the finish the card shows, else the first group.",Sans:"Sans",Save:"Save","Save as Template":"Save as Template","Save this website as a platform template":"Save this website as a platform template","Save your page changes first":"Save your page changes first",Scale:"Scale",Screen:"Screen","Screen 16:10":"Screen 16:10","Scroll-Over Text":"Scroll-Over Text","Scrolling Bar":"Scrolling Bar",Search:"Search","Search all pages":"Search all pages","Search all pages…":"Search all pages…","Search questions":"Search questions",Season:"Season","Second item":"Second item","Second section":"Second section","Second surface":"Second surface",Section:"Section","Section *heading.*":"Section *heading.*","Section *title*":"Section *title*","Section Header":"Section Header","Section above":"Section above","Section band":"Section band","Section below":"Section below","Section header":"Section header","Section heading":"Section heading","Section heading\n*Highlight line*":`Section heading
|
|
4
|
+
*your favourite apps.*`,Popup:"Popup","Portal card":"Portal card","Portal card (stock + button + orders)":"Portal card (stock + button + orders)","Portrait 4:5":"Portrait 4:5",Position:"Position",Positions:"Positions","Post Card":"Post Card","Poster 2:3":"Poster 2:3",Prefix:"Prefix",Preview:"Preview","Preview hover state":"Preview hover state","Preview the live site (opens in a new tab)":"Preview the live site (opens in a new tab)","Preview the live site in a new tab":"Preview the live site in a new tab","Preview your saved draft in a new tab":"Preview your saved draft in a new tab","Previous slide":"Previous slide",Price:"Price","Privately held since day one. Same two founders.":"Privately held since day one. Same two founders.",Product:"Product","Product Grid":"Product Grid","Product Hero":"Product Hero","Product badge":"Product badge","Product collections in a tidy grid.":"Product collections in a tidy grid.","Product name":"Product name","Product page":"Product page","Product photos":"Product photos","Product record":"Product record","Product record (spec tiles)":"Product record (spec tiles)","Product renderings":"Product renderings","Product tiles":"Product tiles","Products, prices and forms always show as they are now.":"Products, prices and forms always show as they are now.","Promotions & sign-ups":"Promotions & sign-ups",Publish:"Publish",Published:"Published","Pull quote":"Pull quote","Put these drafts back":"Put these drafts back","Put this page on your site":"Put this page on your site","Put your changes on your site":"Put your changes on your site","Put your drafts back?":"Put your drafts back?","Q&A":"Q&A",Question:"Question",Questions:"Questions",Quiet:"Quiet",Quote:"Quote",Quotes:"Quotes",Rating:"Rating",Ratio:"Ratio","Read out in place of the picture, and shown if it can’t load.":"Read out in place of the picture, and shown if it can’t load.","Read the story":"Read the story","Read time":"Read time","Reads in":"Reads in","Ready-to-Order Banner":"Ready-to-Order Banner","Reassurance lines":"Reassurance lines","Record type":"Record type","Recurring Columns":"Recurring Columns","Reel label":"Reel label","Refresh now":"Refresh now","Region · country":"Region · country","Related Products":"Related Products","Remove section":"Remove section",Renderings:"Renderings","Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.":"Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.","Reset color":"Reset color","Reset {name} to the preset":"Reset {name} to the preset",Rest:"Rest",Restore:"Restore","Restore as draft":"Restore as draft","Restore one page only":"Restore one page only","Restore version {n}?":"Restore version {n}?","Restore whole website":"Restore whole website","Restore {page} from version {n}?":"Restore {page} from version {n}?","Result / order rows":"Result / order rows",Reveal:"Reveal","Review Form":"Review Form",Reviews:"Reviews",Right:"Right","Right Top Text":"Right Top Text","Right links":"Right links","Right of the copy":"Right of the copy",Rigs:"Rigs","Rigs fitted":"Rigs fitted",Rise:"Rise",Role:"Role","Role · Location":"Role · Location","Role · location":"Role · location",Rotate:"Rotate","Rounds the picture. Left alone it stays square.":"Rounds the picture. Left alone it stays square.","Rounds the picture. The card's own corner is in Styles.":"Rounds the picture. The card's own corner is in Styles.",Row:"Row","Row columns":"Row columns","Row style":"Row style",Rows:"Rows","Rows, first image on the left":"Rows, first image on the left","Rows, first image on the right":"Rows, first image on the right","Same finish":"Same finish","Same finish shows the photos of the finish the card shows, else the first group.":"Same finish shows the photos of the finish the card shows, else the first group.",Sans:"Sans",Save:"Save","Save as Template":"Save as Template","Save this website as a platform template":"Save this website as a platform template","Save your page changes first":"Save your page changes first",Scale:"Scale",Screen:"Screen","Screen 16:10":"Screen 16:10","Scroll-Over Text":"Scroll-Over Text","Scrolling Bar":"Scrolling Bar",Search:"Search","Search all pages":"Search all pages","Search all pages…":"Search all pages…","Search questions":"Search questions",Season:"Season","Second item":"Second item","Second section":"Second section","Second surface":"Second surface",Section:"Section","Section *heading.*":"Section *heading.*","Section *title*":"Section *title*","Section Header":"Section Header","Section above":"Section above","Section band":"Section band","Section below":"Section below","Section header":"Section header","Section heading":"Section heading","Section heading\n*Highlight line*":`Section heading
|
|
5
5
|
*Highlight line*`,"Section heading *here.*":"Section heading *here.*","Section headline\n*Highlight line*":`Section headline
|
|
6
6
|
*Highlight line*`,"Section headline *here.*\n*Highlight line*":`Section headline *here.*
|
|
7
7
|
*Highlight line*`,"Section number":"Section number","Section settings":"Section settings",Sections:"Sections","Section’s own":"Section’s own","Secure encrypted checkout":"Secure encrypted checkout","Seen from\n*the counter.*":`Seen from
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={relatedProducts:"Related Products",bundleProducts:"Bundle Products",documentHeader:"Document Header",documentHeaderBlurb:"A document header — headline, metadata and standfirst.",shrinkToFit:"Shrink to fit",dividerPhoneHide:"Hide",tyreFitmentForm:"Tyre Fitment Form",tabbedGallery:"Tabbed Gallery",customerPhotoGrid:"Customer Photo Grid",locationsSearchShow:"Show",customerPhotoGridBlurb:"Customer photos in a card grid with a click-to-open lightbox.",cardHoverHint:"What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",nextPictureHoverHint:"What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.",renderings:"Renderings"};export{e as KEPT_EDITOR_PHRASES};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as TS from "typescript";
|
|
2
|
+
import { type RuleReport, type SourceFile } from "./rule.js";
|
|
3
|
+
export type OptionRowShape = "a" | "b" | "c";
|
|
4
|
+
export interface OptionRowPlace {
|
|
5
|
+
readonly file: string;
|
|
6
|
+
readonly job: string;
|
|
7
|
+
readonly line: number;
|
|
8
|
+
readonly shape: OptionRowShape;
|
|
9
|
+
}
|
|
10
|
+
export interface OptionRowExemption {
|
|
11
|
+
readonly file: string;
|
|
12
|
+
readonly job: string;
|
|
13
|
+
readonly shape: OptionRowShape;
|
|
14
|
+
readonly reason: string;
|
|
15
|
+
readonly owner: string;
|
|
16
|
+
readonly until: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const SYSTEM_PAGE_REASON = "system page, not a merchant section";
|
|
19
|
+
export declare const STEP_ARROWS_REASON = "previous and next arrows, not a choice among rows";
|
|
20
|
+
export declare const NOT_A_PICKER: readonly string[];
|
|
21
|
+
export declare function hardCodedOptionRows(ts: typeof TS, files: readonly SourceFile[], scan: (path: string) => boolean): OptionRowPlace[];
|
|
22
|
+
export declare function optionRowExempt(place: Pick<OptionRowPlace, "file" | "job" | "shape">, list: readonly OptionRowExemption[]): boolean;
|
|
23
|
+
export declare function noHardCodedOptionRows(ts: typeof TS, files: readonly SourceFile[], options: {
|
|
24
|
+
parts: (path: string) => boolean;
|
|
25
|
+
exempt: readonly OptionRowExemption[];
|
|
26
|
+
today: string;
|
|
27
|
+
}): {
|
|
28
|
+
report: RuleReport;
|
|
29
|
+
places: OptionRowPlace[];
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ruleChecks as R}from"./rule.js";import{programOf as T}from"./support/ts-program.js";const j="system page, not a merchant section",k="previous and next arrows, not a choice among rows",N=[j,k],_=["aria-expanded"],F=new Set(["tab","radio","option","checkbox","switch"]),P="CardTemplateRows",w=(e,t)=>!!t&&(e.isArrowFunction(t)||e.isFunctionExpression(t));function A(e,t){return e.isParenthesizedExpression(t)||e.isAsExpression(t)||e.isNonNullExpression(t)||e.isSatisfiesExpression(t)?A(e,t.expression):t}function b(e,t){const n=A(e,t);if(w(e,n))return n;if(e.isCallExpression(n)){const i=n.expression.getText().replace(/^React\./,"");if((i==="memo"||i==="forwardRef")&&n.arguments[0])return b(e,n.arguments[0])}return null}function $(e,t,n){let i=t.getSymbolAtLocation(n);i&&i.flags&e.SymbolFlags.Alias&&(i=t.getAliasedSymbol(i));const r=i?.declarations?.[0];if(!r)return null;if(e.isFunctionDeclaration(r)&&r.body)return{fn:r,name:r.name?.text??i.name};if(e.isVariableDeclaration(r)&&r.initializer){const l=b(e,r.initializer);if(l)return{fn:l,name:r.name.getText()}}return null}function C(e,t,n){if(!e.isCallExpression(n)||!e.isPropertyAccessExpression(n.expression))return null;const i=n.expression.name.text,r=i==="map"||i==="flatMap"?n.arguments[0]:i==="from"&&n.expression.expression.getText()==="Array"?n.arguments[1]:void 0;if(!r)return null;const l=b(e,r);if(l)return{fn:l,via:""};if(e.isIdentifier(r)){const c=$(e,t,r);if(c)return{fn:c.fn,via:c.name}}return null}function L(e,t){const n=t?.initializer;return n?e.isStringLiteral(n)?n.text:e.isJsxExpression(n)&&n.expression&&e.isStringLiteralLike(n.expression)?n.expression.text:null:null}function v(e,t){const n=new Map;for(const s of t.attributes.properties)e.isJsxAttribute(s)&&n.set(s.name.getText(),s);const i=t.tagName.getText(),r=L(e,n.get("role")),l=r!==null&&F.has(r);return!(i==="button"||i.endsWith(".button"))&&!l||_.some(s=>n.has(s))?null:n.has("aria-pressed")?"a":l||n.has("aria-checked")||n.has("aria-selected")?"b":"c"}function z(e,t){for(let n=t.parent;n;n=n.parent){if(e.isFunctionDeclaration(n)&&n.name)return n.name.text;if(w(e,n)){let i=n.parent;for(;e.isCallExpression(i)||e.isParenthesizedExpression(i);)i=i.parent;if(e.isVariableDeclaration(i)&&e.isIdentifier(i.name))return i.name.text}}return"(file)"}function I(e,t,n){const i=T(e,t),r=i.getTypeChecker(),l=[];for(const s of t){if(!n(s.path))continue;const u=i.getSourceFile(`/${s.path}`);if(!u)continue;const x=d=>{const p=C(e,r,d);if(p?.fn.body){const o=z(e,d),m=new Set([p.fn]),E=a=>{const f=$(e,r,a);!f?.fn.body||m.has(f.fn)||(m.add(f.fn),g(f.fn.body,f.name))},g=(a,f)=>{if(!(a!==p.fn.body&&C(e,r,a))){if(e.isJsxOpeningElement(a)||e.isJsxSelfClosingElement(a)){const h=a.tagName.getText(),S=v(e,a);if(S){const y=a.getSourceFile();l.push({file:s.path,job:f?`${o} → ${f}`:o,line:y.getLineAndCharacterOfPosition(a.getStart(y)).line+1,shape:S})}else/^[A-Z]/.test(h)&&h!==P&&E(a.tagName)}e.isCallExpression(a)&&e.isIdentifier(a.expression)&&E(a.expression),a.forEachChild(h=>g(h,f))}};g(p.fn.body,p.via)}d.forEachChild(x)};x(u)}const c=new Set;return l.filter(s=>{const u=`${s.file}:${s.line}:${s.job}:${s.shape}`;return c.has(u)?!1:(c.add(u),!0)})}function O(e,t){return t.some(n=>n.file===e.file&&n.job===e.job&&n.shape===e.shape)}function M(e,t,n){const i=I(e,t,n.parts),{check:r,report:l}=R("no hard-coded option rows"),c=o=>`${o.file} ${o.job} (${o.shape})`,s=i.filter(o=>!O(o,n.exempt));r("every hard-coded option row in the storefront parts is in the exemption list",s.length===0,s.map(o=>`${o.file}:${o.line} ${o.job} (${o.shape})`).join(", "));const u=n.exempt.filter(o=>!i.some(m=>O(m,[o])));r("every exemption names a place still found (delete-only)",u.length===0,u.map(c).join(", "));const x=n.exempt.filter(o=>!o.reason.trim()||!o.owner.trim()||!(o.until==="none"?N.includes(o.reason):/^\d{4}-\d{2}-\d{2}$/.test(o.until)));r("every exemption has a reason, an owner and a date",x.length===0,x.map(c).join(", "));const d=n.exempt.filter(o=>o.until!=="none"&&o.until<n.today);r(`no exemption is past its date (today ${n.today})`,d.length===0,d.map(o=>`${c(o)} until ${o.until}`).join(", "));const p=n.exempt.map(c);return r("no exemption is listed twice",new Set(p).size===p.length),{report:l(),places:i}}export{_ as NOT_A_PICKER,k as STEP_ARROWS_REASON,j as SYSTEM_PAGE_REASON,I as hardCodedOptionRows,M as noHardCodedOptionRows,O as optionRowExempt};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Fragment as
|
|
1
|
+
"use client";import{Fragment as C,jsx as e,jsxs as p}from"react/jsx-runtime";import{createContext as g,useContext as A,useId as k}from"react";import{REPEAT_ATTRIBUTE as v,REPEAT_INDEX_ATTRIBUTE as y}from"efficient-easel/draw";import{BOX_LINKED_CLASS as h}from"../../format/lib/content/box-link.js";import{CARD_TEMPLATE_SLOT as j,cardTemplateLinesBetween as K,rowFilledProps as $,templateBoxIsEmpty as U}from"../../format/lib/content/card-template.js";import{CARD_ACTION_ATTR as H,CARD_ACTION_CLASS as V,CARD_ACTION_HOVER_CLASS as X,CARD_ACTION_OFF_CLASS as G,CARD_STATE_LINE_CLASS as M,CARD_STATE_PICKED_BAR_CLASS as W,CARD_STATE_PICKED_CLASS as q,CARD_STATE_PICKED_WASH_CLASS as z,CARD_STATE_UNDER_LINE_CLASS as J,cardStateAttrs as Q,cardStatePicked as Y,cardStateValue as Z}from"../../format/lib/content/card-state.js";import{usePageRecordRow as tt}from"./CurrentRecord.js";import{CardCopyCell as et}from"./InBoxContext.js";import{SECTION_FILL_CLASS as rt}from"../../format/lib/content/section-min-height.js";function _t({props:n,editing:r,children:o}){const t=A(u);return!r&&U(n,t?.row)?null:e(C,{children:o})}const u=g(null);function At(){return A(u)}function mt({type:n,props:r,children:o}){const t=A(u),d=tt(),a=t?.row??d;return e(C,{children:o($(n,r,a,t?.ownerType,t?.fields),t,a)})}function nt({attrs:n,selected:r,hover:o,action:t,children:d}){const a=k(),{press:_,disabled:s}=t,c=t.label?.trim();return p("div",{...n,id:a,className:o&&!s?`${h} ${X}`:h,children:[e("button",{type:"button",[H]:"",className:s?G:V,"aria-pressed":r,...c?{"aria-label":c}:{"aria-labelledby":a},...s?{"aria-disabled":!0,tabIndex:-1}:null,onClick:s?void 0:_}),d]})}function St({ownerId:n,ownerType:r,slot:o=j,Template:t,rows:d,items:a,fields:_,states:s,stateLine:c,actions:w,fallback:b,copyAttrs:m,wrapCopy:R,children:P}){const x=A(u);if(!t||(t.blockCount??0)<=0)return e(C,{children:b});const O=x!==null,T=K(r),E=t.blockCount===1?e(et,{children:e(t,{className:rt})}):e(t,{}),B=d.map((F,l)=>{const i=s?.[l],S={row:F,index:l,ownerType:r,item:a?.[l],nested:O,..._?{fields:_}:null,...i?{state:i}:null,...T?{linesBetween:T}:null},f=Z(i)?p(C,{children:[E,c==="under"?e("span",{"aria-hidden":"true",className:J}):Y(i)?p("span",{"aria-hidden":"true",className:q,children:[e("span",{className:W}),e("span",{className:z})]}):e("span",{"aria-hidden":"true",className:M})]}):E,I={[v]:`${n}:${o}`,[y]:l,...typeof m=="function"?m(S):m},N=w?.[l],D=Q(i,c),L=N?e(nt,{attrs:{...I,...D},selected:i?.selected===!0,hover:c!=="under",action:N,children:f}):e("div",{...I,...D,children:f});return e(u.Provider,{value:S,children:R?R(L,S):L},l)});return e(C,{children:P(B)})}export{u as CardRowContext,mt as CardRowDrawn,St as CardTemplateRows,_t as RowEmptyGate,At as useCardRow};
|
|
@@ -20,7 +20,8 @@ interface TextProps {
|
|
|
20
20
|
onLine?: boolean;
|
|
21
21
|
partKey?: string;
|
|
22
22
|
partDeclare?: boolean;
|
|
23
|
+
plain?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export declare function headingLevelOfStyle(id: string): HeadingLevel;
|
|
25
|
-
export default function Text({ text, labelId, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare }: TextProps): import("react").JSX.Element;
|
|
26
|
+
export default function Text({ text, labelId, number, align, alignTablet, alignPhone, tone, contained, hero, pad, tag, textStyle, ownWidth, partAlign, onLine, partKey, partDeclare, plain }: TextProps): import("react").JSX.Element;
|
|
26
27
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as s,jsxs as R}from"react/jsx-runtime";import C from"./BlockFrame.js";import{renderGold as g,renderHeadline as A,renderPlain as k,splitParagraphs as I}from"./goldPhrases.js";import{headingLook as M}from"./Heading.js";import{alignViewClasses as P}from"../../format/lib/content/block-align.js";import{useInBox as U}from"./InBoxContext.js";import{textTagOf as G}from"../../format/lib/content/text-tag.js";import{KICKER_NUMBER_ATTR as H,kickerLead as K}from"../lib/content/page-contents.js";import{isTextStyleId as F}from"../lib/document/part-styles.js";import{faceClassOf as w}from"../../format/lib/text-style-face.js";import{useMirroredCopy as V}from"./MirrorContext.js";import{mirroredTextClasses as E}from"../../format/lib/content/mirror-cards.js";import W from"./PartStyledKind.js";const f={bodyUpTo800:"max-view-wide:text-[length:var(--size-body,14px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,17px)]",label:"text-[length:var(--size-label,13px)]"},p=e=>e?` ${e}`:"";function X(e,i,l,a){const d=P("place",e,i,l,{atSectionLine:!a});return d?` ${d}`:""}const Z={left:"text-left",center:"text-left mx-auto",right:"text-left ml-auto"},q=`max-w-[380px] ${f.bodySmall} leading-[1.5] opacity-80 ${f.bodyUpTo800}`,D={default:"text-fg",dim:"text-fg-dim"};function J(e){return String(Math.min(Number(e.slice(8)),6))}function Q({text:e,labelId:i,number:l,align:a,alignTablet:d,alignPhone:_,tone:y,contained:$,hero:L=!1,pad:m,tag:O,textStyle:T,ownWidth:j=!1,partAlign:b,onLine:c=!1,partKey:N,partDeclare:z=!1,plain:x=!1}){const u=t=>N?s(W,{kind:N,declare:z,children:t}):t,v=V(),B=U();if(L)return s("p",{className:q,children:g(e)});const n=l?s("span",{[H]:"",children:K(l)}):void 0,o=F(T)?T:void 0,S=`${o?`${w({id:o})} `:""}${j?"":"max-w-[680px] "}whitespace-pre-line ${o==="body-5"?f.label:f.bodyLarge} leading-[1.7]${p(a?Z[a]:"")}${X(a,d,_,B)}${p(y?D[y]:"")}${p(E(v,a,b))}`,h=G(O);if(o?.startsWith("heading-")){const t=J(o),r=M(t,w({id:o}));return s(C,{contained:$,className:c?"":"py-6",pad:m?{values:m,frame:c?0:24}:void 0,children:R(h,{id:i,className:`${r.className}${p(E(v,void 0,b))}`,style:r.style,children:[n,u(A(e.trim(),!1,x))]})})}return s(C,{contained:$,className:c?"":"py-4",pad:m?{values:m,frame:c?0:16}:void 0,children:h==="p"?I(e).map((t,r)=>s("p",{id:r===0?i:void 0,className:S,children:u(x?k(t,r===0?n:void 0):g(t,!1,r===0?n:void 0))},r)):s(h,{id:i,className:S,children:u(x?k(e.trim(),n):g(e.trim(),!1,n))})})}export{Q as default,J as headingLevelOfStyle};
|
|
@@ -3,5 +3,6 @@ import { type ShopMarkupNode } from "../../format/lib/markup.js";
|
|
|
3
3
|
export declare function renderGold(value: string, italic?: boolean, lead?: ReactNode): ReactNode;
|
|
4
4
|
export declare function renderMarkupNodes(nodes: readonly ShopMarkupNode[], italic?: boolean): ReactNode;
|
|
5
5
|
export declare function renderChrome(value: string): ReactNode;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function renderPlain(value: string, lead?: ReactNode): ReactNode;
|
|
7
|
+
export declare function renderHeadline(value: string, italic?: boolean, plain?: boolean): ReactNode;
|
|
7
8
|
export declare function splitParagraphs(value: string): string[];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import{jsxs as a,jsx as
|
|
2
|
-
`);return
|
|
1
|
+
import{jsxs as a,jsx as s}from"react/jsx-runtime";import{Fragment as d}from"react";import{linePrefix as L,storefrontLines as _}from"../../format/lib/markup.js";import{WORD_STYLE_ATTR as S,WORD_STYLE_BY_KIND as g}from"../../format/lib/word-styles.js";import{partInkCss as E}from"../../format/lib/document/part-inks.js";import f from"./PartStyledText.js";import{withRMark as h}from"./RMark.js";function k(e,r=!1,t){const n=m(r),c=_(e);if(c.length===1){const[i]=c,o=L(i),N=o?I(o,i.children):i.children;return a(f,{value:e,children:[t,u(N,n)]})}const l=[];return c.forEach((i,o)=>{if(i.bullet){l.push(s("span",{"data-sf-bullet":"",className:T,children:u(i.children,n)},o));return}if(i.number!=null){l.push(a("span",{"data-sf-number":i.number,className:R,children:[a("span",{className:A,children:[i.number,"."]}),u(i.children,n)]},o));return}o>0&&!B(c[o-1])&&l.push(s("br",{},`br${o}`)),l.push(s(d,{children:u(i.children,n)},o))}),a(f,{value:e,children:[t,l]})}const T="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",R="relative block pl-[2em]",A="absolute left-0 w-[1.6em] text-right tabular-nums";function B(e){return e.bullet||e.number!=null}const C="text-accent underline underline-offset-[0.18em]";function I(e,r){const[t,...n]=r;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...n]:[{kind:"text",text:e},...r]}function w(e){return E(e)||void 0}function u(e,r){const t=[];let n=!1;return e.forEach((c,l)=>{if(c.kind==="text"){t.push(s("span",{children:h(c.text)},l)),n=!0;return}n||t.push(s("span",{},`e${l}`)),t.push(b(c,l,r)),n=!1}),n||t.push(s("span",{},"end")),t}function p(e,r){return e.length===1&&e[0].kind==="text"?h(e[0].text):e.map((t,n)=>t.kind==="text"?s(d,{children:h(t.text)},n):b(t,n,r))}function U(e,r=!1){return u(e,m(r))}function m(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Y(e){return x(e)}function x(e,r){const t=e.split(`
|
|
2
|
+
`);return a(f,{value:e,children:[r,t.map((n,c)=>a(d,{children:[c>0?s("br",{}):null,s("span",{children:n})]},c))]})}function b(e,r,t){if(e.kind==="link")return s("a",{href:e.href,className:C,children:p(e.children,t)},r);const n=p(e.children,t),c=g[e.kind];if(c)return s("span",{[S]:c,children:n},r);switch(e.kind){case"underline":return s("u",{children:n},r);case"sup":return s("sup",{children:n},r);case"sub":return s("sub",{children:n},r);case"color":{const l=w(e.color);return l?s("span",{style:{color:l},children:n},r):s("span",{children:n},r)}case"accent":case"highlight":return s("em",{className:t,children:n},r);case"bold":return s("strong",{className:"font-semibold",children:n},r);case"italic":return s("em",{className:"italic",children:n},r);case"strike":return s("s",{className:"line-through",children:n},r);default:return s("span",{children:n},r)}}function v(e,r=!0,t=!1){const n=e.split(`
|
|
3
|
+
`);return s(f,{value:e,children:n.map((c,l)=>a("span",{children:[t?x(c):k(c,r),l<n.length-1?s("br",{}):null]},l))})}function O(e){return e.split(/\n\s*\n/).map(r=>r.trim()).filter(Boolean)}export{Y as renderChrome,k as renderGold,v as renderHeadline,U as renderMarkupNodes,x as renderPlain,O as splitParagraphs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as
|
|
1
|
+
import{Fragment as c,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as P}from"../../../../../components/CardRowContext.js";import{CountDrawn as p}from"../../../../../components/CountRowsContext.js";import{KickerNumberDrawn as k}from"../../../../../components/PageContentsContext.js";import{KICKER_NUMBER_PROP as D}from"../../../../content/page-contents.js";import{WALL_LABEL_ID_PROP as W}from"../../../wall-labels.js";import{namedRowField as B,rowFieldWordsArePlain as j,rowPartByKey as v}from"../../../../../../format/lib/content/card-template.js";import{TOP_LINE_ATTRIBUTE as H,TOP_LINE_CLASS as M,cardPlaceOf as U,framesItsCards as V}from"../../../../../../format/lib/content/card-place.js";import{blockSetsItsWidth as z,blockSizeValuesOf as q}from"../../../../content/block-size.js";import{linkedCount as w}from"../../../../../../format/lib/content/count-numbers.js";import{padValuesOf as G}from"../../../../content/section-padding.js";import J from"../../../../../components/Text.js";import{hidableText as l,readHidable as Q}from"efficient-easel/draw";import{PH as _}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as X}from"../../scaffold.js";import{readPartStyle as Y}from"../../../part-styles.js";import{TextMeta as Z}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const yt={...Z,render:t=>{const{text:a,align:I,alignTablet:K,alignPhone:L,tone:E,tag:R,contained:A,editor:f}=t;if(Q(a).hidden)return r(c,{});const{textStyle:s,align:C}=Y(t,"text"),O=s?.startsWith("heading-")?_.heading:_.body,S=v("Text",t,"text")?{partKey:"text",partDeclare:!!f?.isEditing}:{},u=t[W],F=typeof u=="string"?u:void 0,d=(e,n,o,i)=>r(J,{...S,plain:i,labelId:F,text:X(e,O,f)??"",number:n,align:I,alignTablet:K,alignPhone:L,tone:E,tag:R,textStyle:s,partAlign:C,ownWidth:z(q(t)),contained:A,pad:G(t),onLine:o}),g=e=>!e?.trim()&&!f?.isEditing,m=B(t),h=(e,n)=>!!m&&!!n&&j(e,m),x=w(t);if(x)return r(p,{countKey:x,children:e=>d(e??l(a))});const y=()=>{if(!m){const e=t[D];return typeof e=="string"?d(l(a),e):r(k,{id:t.id,children:n=>d(l(a),n)})}return r(P,{type:"Text",props:t,children:(e,n,o)=>{const i=l(e.text),T=w(t,o),b=h(n,o);return T?r(p,{countKey:T,children:N=>d(N??i,void 0,void 0,b)}):o&&g(i)?r(c,{}):d(i,void 0,void 0,b)}})};return U(t)!=="top-line"?y():r(P,{type:"Text",props:t,children:(e,n,o)=>{if(!n||!V(n.ownerType))return y();const i=l(m?e.text:a);return g(i)?r(c,{}):r("div",{className:M,[H]:"",children:d(i,void 0,!0,h(n,o))})}})}};export{yt as TextRender};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-web-builder",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "63.0.0",
|
|
4
4
|
"description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@tabler/icons-react": "^3.46.0",
|
|
56
|
-
"efficient-easel": "^30.
|
|
56
|
+
"efficient-easel": "^30.1.0",
|
|
57
57
|
"efficient-shell": "^12.18.0",
|
|
58
58
|
"isomorphic-dompurify": "^3.18.0",
|
|
59
59
|
"next": ">=16",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/node": "^20",
|
|
73
73
|
"@types/react": "^19",
|
|
74
74
|
"@types/react-dom": "^19",
|
|
75
|
-
"efficient-easel": "^30.
|
|
75
|
+
"efficient-easel": "^30.1.0",
|
|
76
76
|
"efficient-shell": "^12.18.0",
|
|
77
77
|
"esbuild": "^0.28.0",
|
|
78
78
|
"happy-dom": "^20.14.5",
|