efficient-web-builder 59.3.0 → 60.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/editor/lib/animation/hover-fields.js +1 -1
  3. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  4. package/dist/editor/lib/document/blocks/general/ListSearch/fields.js +1 -1
  5. package/dist/editor/lib/document/canvas-typing.js +1 -1
  6. package/dist/editor/lib/document/card-display-chips.d.ts +4 -2
  7. package/dist/editor/lib/document/card-display-chips.js +1 -1
  8. package/dist/editor/lib/document/controls.js +1 -1
  9. package/dist/editor/lib/document/field-groups.js +1 -1
  10. package/dist/format/lib/animation/hover.d.ts +23 -1
  11. package/dist/format/lib/animation/hover.js +1 -1
  12. package/dist/format/lib/content/card-template.d.ts +9 -1
  13. package/dist/format/lib/content/card-template.js +1 -1
  14. package/dist/format/lib/content/footprint.d.ts +2 -0
  15. package/dist/format/lib/content/footprint.js +1 -1
  16. package/dist/format/lib/content/hover-media.d.ts +30 -0
  17. package/dist/format/lib/content/hover-media.js +1 -0
  18. package/dist/format/lib/content/ink.d.ts +3 -0
  19. package/dist/format/lib/content/ink.js +1 -1
  20. package/dist/format/lib/content/list-position.d.ts +3 -0
  21. package/dist/format/lib/content/list-position.js +1 -0
  22. package/dist/format/lib/content/list-query.d.ts +2 -0
  23. package/dist/format/lib/content/list-query.js +1 -1
  24. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +3 -0
  25. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  26. package/dist/format/lib/document/blocks/general/text-part-shapes.json +7 -0
  27. package/dist/format/lib/document/card-content-switch.js +1 -1
  28. package/dist/format/lib/document/panel-only.d.ts +2 -0
  29. package/dist/format/lib/document/panel-only.js +1 -0
  30. package/dist/format/lib/document/seed-shape.d.ts +2 -0
  31. package/dist/format/lib/document/seed-shape.js +1 -0
  32. package/dist/format/lib/editor-words-catalogue.d.ts +14 -0
  33. package/dist/format/lib/editor-words-catalogue.js +4 -4
  34. package/dist/format/lib/editor-words-kept.js +1 -1
  35. package/dist/format/lib/source-rules/published-mounts.d.ts +11 -1
  36. package/dist/format/lib/source-rules/published-mounts.js +57 -9
  37. package/dist/format/lib/source-rules/support/panel-select-cascade.js +1 -2
  38. package/dist/format/lib/source-rules/support/ts-program.d.ts +4 -0
  39. package/dist/format/lib/source-rules/support/ts-program.js +2 -0
  40. package/dist/format/lib/theme.d.ts +1 -0
  41. package/dist/format/lib/theme.js +3 -3
  42. package/dist/render/components/CardRowContext.d.ts +5 -2
  43. package/dist/render/components/CardRowContext.js +1 -1
  44. package/dist/render/components/DealerFinder.js +1 -1
  45. package/dist/render/components/Flex.js +1 -1
  46. package/dist/render/components/Footprint.js +1 -1
  47. package/dist/render/components/HeroArrows.d.ts +6 -3
  48. package/dist/render/components/HeroArrows.js +1 -1
  49. package/dist/render/components/HoverMediaLayer.d.ts +9 -0
  50. package/dist/render/components/HoverMediaLayer.js +1 -0
  51. package/dist/render/components/ListSearchBox.d.ts +2 -1
  52. package/dist/render/components/ListSearchBox.js +1 -1
  53. package/dist/render/components/SideListLayout.d.ts +14 -0
  54. package/dist/render/components/SideListLayout.js +1 -0
  55. package/dist/render/lib/dealer-source.d.ts +3 -2
  56. package/dist/render/lib/dealer-source.js +1 -1
  57. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  58. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  59. package/dist/render/lib/document/blocks/general/ListSearch/render.js +1 -1
  60. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
  61. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  62. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
  63. package/dist/render/lib/document/text-parts.d.ts +1 -0
  64. package/dist/render/lib/document/text-parts.js +1 -1
  65. package/package.json +1 -1
@@ -10,17 +10,21 @@ export declare const BOX_HOVER_KINDS: readonly BoxHover[];
10
10
  export declare const BOX_HOVER_LABELS: Readonly<Record<BoxHover, string>>;
11
11
  export declare function boxHoverOf(record: Readonly<Record<string, unknown>>): BoxHover;
12
12
  export declare const BOX_HIGHLIGHT_CLASS = "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)]";
13
+ export declare const BOX_HIGHLIGHT_OVER_ROW_INK_CLASS = "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]!";
13
14
  export declare function boxHighlightStyle(record: Readonly<Record<string, unknown>>, ink: (slot: string) => string): Record<string, string> | null;
14
15
  export type PartHover = Extract<HoverKind, "none" | "lift">;
15
16
  export declare const PART_HOVER_KINDS: readonly PartHover[];
16
17
  export declare function hoverOf(record: Readonly<Record<string, unknown>>): PartHover;
17
- export type CardHover = Extract<HoverKind, "none" | "rotate">;
18
+ export type CardHover = Extract<HoverKind, "none" | "nextImage" | "rotate">;
18
19
  export declare const CARD_HOVER_KINDS: readonly CardHover[];
19
20
  export declare const CARD_HOVER_KEYS: {
20
21
  readonly kind: "hover";
21
22
  readonly angle: "hoverAngle";
22
23
  readonly duration: "hoverDuration";
23
24
  readonly delay: "hoverDelay";
25
+ readonly mediaKind: "hoverKind";
26
+ readonly mediaGroup: "hoverGroup";
27
+ readonly cover: "hoverCover";
24
28
  };
25
29
  export declare const OLD_SPIN_KEY = "spinOnHover";
26
30
  export declare const CARD_HOVER_ANGLE: {
@@ -36,7 +40,25 @@ export type CardHoverDrawn = {
36
40
  angle: number | null;
37
41
  duration: number;
38
42
  delay: number;
43
+ media?: CardHoverMedia;
39
44
  };
45
+ export declare const HOVER_MEDIA_KINDS: readonly ["photos", "lifestyle", "renderings", "accessories", "others"];
46
+ export type HoverMediaKind = (typeof HOVER_MEDIA_KINDS)[number];
47
+ export declare const HOVER_MEDIA_KIND_LABELS: Readonly<Record<HoverMediaKind, string>>;
48
+ export declare const HOVER_MEDIA_GROUPS: readonly ["finish", "first"];
49
+ export type HoverMediaGroup = (typeof HOVER_MEDIA_GROUPS)[number];
50
+ export declare const HOVER_MEDIA_GROUP_LABELS: Readonly<Record<HoverMediaGroup, string>>;
51
+ export declare const HOVER_MEDIA_COVERS: readonly ["card", "picture"];
52
+ export type HoverMediaCover = (typeof HOVER_MEDIA_COVERS)[number];
53
+ export declare const HOVER_MEDIA_COVER_LABELS: Readonly<Record<HoverMediaCover, string>>;
54
+ export type CardHoverMedia = {
55
+ kind: HoverMediaKind;
56
+ group: HoverMediaGroup;
57
+ cover: HoverMediaCover;
58
+ };
59
+ export declare const HOVER_MEDIA_DEFAULTS: Readonly<CardHoverMedia>;
60
+ export declare function cardHoverMediaOf(record: Readonly<Record<string, unknown>>): CardHoverMedia;
61
+ export declare function cardShowsNextRule(): ShowWhenRule;
40
62
  export declare function cardHoverKindOf(record: Readonly<Record<string, unknown>>, resting: CardHover): CardHover;
41
63
  export declare function cardHoverAngleOf(stored: unknown): number;
42
64
  export declare function cardHoverOf(record: Readonly<Record<string, unknown>>, blockKey: string): CardHoverDrawn;
@@ -1 +1 @@
1
- import{HOVER_MOTION as m,hoverKindsOf as a,motionSeconds as c}from"efficient-shell/format";import{ANGLE_RANGE as v}from"../content/box-angle.js";import{finiteNumber as l}from"../finite-number.js";const i="hover",b="_gHover",h={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},u="highlight",g="Highlight",M=["none",u],U={none:h.none,[u]:g};function I(n){return n[i]===u?u:"none"}const X="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)]";function Y(n,e){return I(n)!==u?null:{"--sf-hl-bg":e("surface"),"--sf-hl-ink":e("main")}}const S=a(["none","lift"]);function z(n){const e=n[i];return S.includes(e)?e:"none"}const _=a(["none","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay"},f="spinOnHover",x=v,R={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Z=Object.keys(R);function N(n){return R[n]??"none"}const k=m.rotateFallbackDeg;function V(n,e){const t=n[r.kind];if(_.includes(t))return t;const o=n[f];return typeof o=="boolean"?o?"rotate":"none":e}function D(n){const e=l(n);return e===void 0?k:Math.min(x.max,Math.max(x.min,e))}function w(n,e){const t=N(e),o=V(n,t);return{kind:o,angle:o==="rotate"?D(n[r.angle]):null,duration:c("hover","duration",o==="rotate"?n[r.duration]:void 0),delay:c("hover","delay",o==="rotate"?n[r.delay]:void 0)}}function j(n){const e={field:r.kind,in:[..._]};return{any:[{field:r.kind,is:"rotate"},{all:[{not:e},n==="rotate"?{not:{field:f,is:!1}}:{field:f,is:!0}]}]}}const O=a(["none","mono"]),C=a(["none","nextImage","mono"]),H={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},F=Object.keys(H);function L(n){return H[n]??"none"}const E={zoom:"hoverZoom",darken:"hoverDarken"},d={min:100,max:150,step:1,unit:"%"},s=["nextImage"];function T(n,e){if(!s.includes(e))return null;const t=l(n[E.zoom]);if(t===void 0)return null;const o=Math.min(d.max,Math.max(d.min,t));return o===d.min?null:String(o/100)}function A(n,e){if(!s.includes(e))return null;const t=l(n[E.darken]);return t!==void 0&&t>0?t:null}const K=["ImageBlock"];function G(n,e,t=O){const o=n[i];return t.includes(o)?o:e}function W(n,e=""){const t=K.includes(e)?C:O,o=G(n,L(e),t),p=o!=="none";return{kind:o,duration:c("hover","duration",p?n[r.duration]:void 0),delay:c("hover","delay",p?n[r.delay]:void 0),...s.includes(o)?{zoom:T(n,o),darken:A(n,o)}:{}}}function q(){return{field:i,in:[...s]}}function J(n){return n==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}export{u as BOX_HIGHLIGHT,X as BOX_HIGHLIGHT_CLASS,M as BOX_HOVER_KINDS,U as BOX_HOVER_LABELS,x as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,_ as CARD_HOVER_KINDS,Z as CARD_HOVER_SECTIONS,k as CARD_HOVER_TURN,g as HIGHLIGHT_LABEL,b as HOVER_GROUP_KEY,i as HOVER_KEY,h as HOVER_KIND_LABELS,K as NEXT_PICTURE_BLOCKS,C as NEXT_PICTURE_HOVER_KINDS,f as OLD_SPIN_KEY,S as PART_HOVER_KINDS,F as PICTURE_HOVER_BLOCKS,E as PICTURE_HOVER_KEYS,O as PICTURE_HOVER_KINDS,d as PICTURE_HOVER_ZOOM,Y as boxHighlightStyle,I as boxHoverOf,D as cardHoverAngleOf,V as cardHoverKindOf,w as cardHoverOf,N as cardHoverResting,j as cardRotatesRule,z as hoverOf,G as pictureHoverKindOf,q as pictureHoverMovesRule,W as pictureHoverOf,L as pictureHoverResting,J as pictureHoverRunsRule,T as pictureHoverZoomOf};
1
+ import{HOVER_MOTION as m,hoverKindsOf as c,motionSeconds as a}from"efficient-shell/format";import{ANGLE_RANGE as I}from"../content/box-angle.js";import{finiteNumber as l}from"../finite-number.js";const i="hover",z="_gHover",g={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},s="highlight",S="Highlight",Z=["none",s],F={none:g.none,[s]:S};function A(e){return e[i]===s?s:"none"}const W="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)]",j="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 q(e,n){return A(e)!==s?null:{"--sf-hl-bg":n("surface"),"--sf-hl-ink":n("main")}}const V=c(["none","lift"]);function J(e){const n=e[i];return V.includes(n)?n:"none"}const E=c(["none","nextImage","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},f="spinOnHover",O=I,R={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Q=Object.keys(R);function D(e){return R[e]??"none"}const L=m.rotateFallbackDeg,k=["photos","lifestyle","renderings","accessories","others"],$={photos:"Product photos",lifestyle:"Lifestyle photos",renderings:"Renderings",accessories:"Accessories",others:"Others"},N=["finish","first"],ee={finish:"Same finish",first:"First group"},C=["card","picture"],ne={card:"Whole card",picture:"Picture"},d={kind:"photos",group:"finish",cover:"card"},p=(e,n,t)=>e.includes(n)?n:t;function K(e){return{kind:p(k,e[r.mediaKind],d.kind),group:p(N,e[r.mediaGroup],d.group),cover:p(C,e[r.cover],d.cover)}}function oe(){return{field:r.kind,is:"nextImage"}}function G(e,n){const t=e[r.kind];if(E.includes(t))return t;const o=e[f];return typeof o=="boolean"?o?"rotate":"none":n}function T(e){const n=l(e);return n===void 0?L:Math.min(O.max,Math.max(O.min,n))}function te(e,n){const t=D(n),o=G(e,t);return{kind:o,angle:o==="rotate"?T(e[r.angle]):null,duration:a("hover","duration",o==="rotate"?e[r.duration]:void 0),delay:a("hover","delay",o==="rotate"?e[r.delay]:void 0),...o==="nextImage"?{media:K(e)}:{}}}function re(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 x=c(["none","mono"]),M=c(["none","nextImage","mono"]),v={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},ie=Object.keys(v);function y(e){return v[e]??"none"}const H={zoom:"hoverZoom",darken:"hoverDarken"},_={min:100,max:150,step:1,unit:"%"},u=["nextImage"];function B(e,n){if(!u.includes(n))return null;const t=l(e[H.zoom]);if(t===void 0)return null;const o=Math.min(_.max,Math.max(_.min,t));return o===_.min?null:String(o/100)}function P(e,n){if(!u.includes(n))return null;const t=l(e[H.darken]);return t!==void 0&&t>0?t:null}const U=["ImageBlock"];function b(e,n,t=x){const o=e[i];return t.includes(o)?o:n}function se(e,n=""){const t=U.includes(n)?M:x,o=b(e,y(n),t),h=o!=="none";return{kind:o,duration:a("hover","duration",h?e[r.duration]:void 0),delay:a("hover","delay",h?e[r.delay]:void 0),...u.includes(o)?{zoom:B(e,o),darken:P(e,o)}:{}}}function ce(){return{field:i,in:[...u]}}function ae(e){return e==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}export{s as BOX_HIGHLIGHT,W as BOX_HIGHLIGHT_CLASS,j as BOX_HIGHLIGHT_OVER_ROW_INK_CLASS,Z as BOX_HOVER_KINDS,F as BOX_HOVER_LABELS,O as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,E as CARD_HOVER_KINDS,Q as CARD_HOVER_SECTIONS,L as CARD_HOVER_TURN,S as HIGHLIGHT_LABEL,z as HOVER_GROUP_KEY,i as HOVER_KEY,g as HOVER_KIND_LABELS,C as HOVER_MEDIA_COVERS,ne as HOVER_MEDIA_COVER_LABELS,d as HOVER_MEDIA_DEFAULTS,N as HOVER_MEDIA_GROUPS,ee as HOVER_MEDIA_GROUP_LABELS,k as HOVER_MEDIA_KINDS,$ as HOVER_MEDIA_KIND_LABELS,U as NEXT_PICTURE_BLOCKS,M as NEXT_PICTURE_HOVER_KINDS,f as OLD_SPIN_KEY,V as PART_HOVER_KINDS,ie as PICTURE_HOVER_BLOCKS,H as PICTURE_HOVER_KEYS,x as PICTURE_HOVER_KINDS,_ as PICTURE_HOVER_ZOOM,q as boxHighlightStyle,A as boxHoverOf,T as cardHoverAngleOf,G as cardHoverKindOf,K as cardHoverMediaOf,te as cardHoverOf,D as cardHoverResting,re as cardRotatesRule,oe as cardShowsNextRule,J as hoverOf,b as pictureHoverKindOf,ce as pictureHoverMovesRule,se as pictureHoverOf,y as pictureHoverResting,ae as pictureHoverRunsRule,B as pictureHoverZoomOf};
@@ -62,6 +62,14 @@ export declare function cardTemplateField(type: string | undefined, key: string,
62
62
  type?: unknown;
63
63
  props?: Record<string, unknown>;
64
64
  } | null): CardRowFieldSpec | null;
65
+ export declare function rowFieldSpec(copy: {
66
+ ownerType?: string;
67
+ fields?: readonly CardRowFieldSpec[];
68
+ owner?: {
69
+ type?: unknown;
70
+ props?: Record<string, unknown>;
71
+ } | null;
72
+ } | null | undefined, key: string): CardRowFieldSpec | null;
65
73
  export declare function namedRowField(props: Record<string, unknown> | null | undefined, prop?: string): string;
66
74
  export declare function cardKeyOf(row: SourceRow, index: number): string;
67
75
  export declare function cardRow(value: unknown): SourceRow;
@@ -74,7 +82,7 @@ export declare function rowPartByKey(type: string, props: Record<string, unknown
74
82
  export declare function rowBound(type: string, props: Record<string, unknown> | null | undefined, key: string): boolean;
75
83
  export declare function rowFieldOf(type: string, props: Record<string, unknown> | null | undefined, key: string): string;
76
84
  export declare function rowFieldText(row: SourceRow | null | undefined, key: string): string | null;
77
- export declare function rowFilledProps(type: string, props: Record<string, unknown>, row: SourceRow | null | undefined, ownerType?: string): Record<string, unknown>;
85
+ export declare function rowFilledProps(type: string, props: Record<string, unknown>, row: SourceRow | null | undefined, ownerType?: string, fields?: readonly CardRowFieldSpec[]): Record<string, unknown>;
78
86
  type DocNode = {
79
87
  type?: unknown;
80
88
  props?: Record<string, unknown>;
@@ -1 +1 @@
1
- import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as O}from"efficient-easel/data";import{BOX_TYPE as _}from"../document/container-blocks.js";import{globalRegistry as C}from"../global-registry.js";import{nonEmptyString as w}from"../non-empty-string.js";import{accentItalicRuns as h}from"../markup.js";import{withCardsTemplate as A}from"../document/cards-template-on-read.js";import{withCardListTemplate as S}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as I,withArticleBodyTemplate as E}from"../document/article-body-seed.js";import{withLogosTemplate as P}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as F}from"../document/blocks/general/FAQ/card-seed.js";const D="template",ce="Card template",y="CardList",B=["Text","ImageBlock","ButtonBlock","Flex"],f="rowField",v="rowLinkField";function ue(){return{type:"slot",allow:[...B]}}const W=B.filter(e=>e!=="ButtonBlock"),T="items",R="itemFields";function de(){return{type:"slot",allow:[...W]}}const M=[{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=>F(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ"},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region · country"},{key:"address",label:"Address"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}]},{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}],seed:e=>A("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=>P(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0}],typedRows:T,seed:e=>S(e)},{block:I,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>E(e)}];function a(){return C("efficient.card-templates",()=>new Map(M.map(e=>[e.block,e])))}function fe(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(i=>i.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=w(t.typedRows);a().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function N(e,t){const r=e?a().get(e)?.seed:void 0;return r?r(t):t}function pe(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,i=e?a().get(e)?.seedOnInsert:void 0,l=i?i(o):N(e,o);return l===o?t:l}function ye(){for(const e of a().values())if(e.blocks?.length)return!0;return!1}function me(e){return a().get(e)?.blocks??[]}function ke(e){for(const t of a().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function be(e){return typeof e=="string"&&a().get(e)?.typedRows||""}function xe(e){return typeof e=="string"&&a().get(e)?.linesBetween===!0}function K(e){return typeof e=="string"&&a().has(e)}function j(e,t){const r=a().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function H(e){return typeof e=="string"?j(e,"list")[0]?.key??"":""}function Y(e,t){return m(e)||H(t)}function L(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=a().get(r)?.fields??[],o=x(g(e?.props))?.fields,i=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?i.filter(l=>(l.kind??"text")===t):i}function Q(e,t,r){return e?r?L(r).find(n=>n.key===t)??null:a().get(e)?.fields.find(n=>n.key===t)??null:null}function m(e,t=f){const r=e?.[t];return typeof r=="string"?r.trim():""}function ge(e,t){return e.key||String(t+1)}function we(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 U="hideWhenRowEmpty";function Be(e,t){const r=e[U];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}function Te(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const i=typeof o=="string"?o:o?.src,l=w(typeof i=="string"?i.trim():void 0);if(l&&l!==r.trim())return l}return""}const k={Text:{text:f},ImageBlock:{src:f},ButtonBlock:{label:f,href:v},LogoBlock:{alt:f},Breadcrumb:{currentCrumb:f}},Re=k,$=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Le(e,t,r){return q(e,t,r)&&!$.has(`${e}.${r}`)}function q(e,t,r){return V(e,t,r)!==""}function V(e,t,r){const n=k[e]?.[r];return n?m(t,n):""}function X(e,t){return!t||!e?null:e[t]??""}function Oe(e,t,r,n){if(!r)return t;let o=null;for(const[i,l]of Object.entries(k[e]??{})){const s=m(t,l),c=X(r,s);c!==null&&(o??={...t},o[i]=n&&Q(n,s)?.mark==="accentItalic"?h(c):c)}return o??t}function b(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,l)=>{for(const s of i){if(s?.props?.id===t)return l;for(const[c,u]of Object.entries(s?.props??{})){if(!O(u))continue;const d=c===D&&K(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===_},p=n(u,d);if(p!==void 0)return p}}},o=n(r,null);return o===void 0?null:o}function z(e,t){const r=b(e,t);return r&&r.owner}function _e(e,t){const r=b(e,t);return r&&(r.direct?r.owner:null)}function Ce(e,t){const r=b(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function he(e,t,r){if(t?.type!==y)return[];const n=z(e,t.props?.id);if(!n){const l=x(g(t.props))?.fields,s=l?.length?l.map(d=>({...d})):G(t.props),c=(a().get(y)?.fields??[]).filter(d=>d.everySource&&!s.some(p=>p.key===d.key)),u=[...s,...c];return r?u.filter(d=>(d.kind??"text")===r):u}const o=Y(t.props,n.type),i=o&&L(n,"list").find(l=>l.key===o)?.fields||[];return r?i.filter(l=>(l.kind??"text")===r):i}function Ae(e,t){return{[f]:"",[T]:e.map(r=>({...r})),[R]:t.map(r=>({...r}))}}function G(e,t){const r=e?.[R];if(!Array.isArray(r))return[];const n=r.flatMap(o=>{if(!o||typeof o!="object")return[];const{key:i,label:l,kind:s,multiline:c}=o;if(typeof i!="string"||!i||typeof l!="string")return[];const u=s==="image"||s==="link"||s==="colour"?s:void 0;return[{key:i,label:l,...u?{kind:u}:{},...c===!0?{multiline:!0}:{}}]});return t?n.filter(o=>(o.kind??"text")===t):n}export{U as BOX_HIDE_WHEN_ROW_EMPTY,R as CARD_LIST_FIELDS,W as CARD_LIST_ITEM_BLOCKS,T as CARD_LIST_ROWS,y as CARD_LIST_TYPE,f as CARD_ROW_FIELD_PROP,v as CARD_ROW_LINK_PROP,B as CARD_TEMPLATE_BLOCKS,ce as CARD_TEMPLATE_LABEL,D as CARD_TEMPLATE_SLOT,Re as ROW_BOUND_PROPS,$ as ROW_PART_BY_WORDS,Ce as cardCopyPlace,ge as cardKeyOf,he as cardListFieldsOf,de as cardListItemSlot,Ae as cardListProps,Y as cardListShows,we as cardRow,me as cardTemplateBlocks,_e as cardTemplateCardOwner,Q as cardTemplateField,j as cardTemplateFields,L as cardTemplateFieldsOf,xe as cardTemplateLinesBetween,z as cardTemplateOwner,ue as cardTemplateSlot,be as cardTemplateTypedRows,ye as cardTemplatesNameBlocks,H as defaultListField,K as hasCardTemplate,ke as isCardTemplateBlock,m as namedRowField,fe as registerCardTemplates,q as rowBound,V as rowFieldOf,X as rowFieldText,Oe as rowFilledProps,Te as rowNextPicture,Le as rowPartByKey,Be as templateBoxIsEmpty,pe as templateOnInsert,N as templateOnRead};
1
+ import{blockSourceSpec as x,declaredBlockSource as g}from"./block-sources.js";import{isNodeList as h}from"efficient-easel/data";import{BOX_TYPE as O}from"../document/container-blocks.js";import{globalRegistry as _}from"../global-registry.js";import{nonEmptyString as w}from"../non-empty-string.js";import{accentItalicRuns as C}from"../markup.js";import{withCardsTemplate as A}from"../document/cards-template-on-read.js";import{withCardListTemplate as S}from"../document/blocks/general/CardList/item-seed.js";import{ARTICLE_BODY_BLOCK as I,withArticleBodyTemplate as E}from"../document/article-body-seed.js";import{withLogosTemplate as P}from"../document/blocks/general/Logos/card-seed.js";import{withFaqTemplate as F}from"../document/blocks/general/FAQ/card-seed.js";import{withFootprintSideTemplate as D}from"../document/blocks/general/Footprint/card-seed.js";const v="template",fe="Card template",y="CardList",B=["Text","ImageBlock","ButtonBlock","Flex"],p="rowField",W="rowLinkField";function pe(){return{type:"slot",allow:[...B]}}const M=B.filter(e=>e!=="ButtonBlock"),T="items",R="itemFields";function ye(){return{type:"slot",allow:[...M]}}const N=[{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=>F(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ"},{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=>D(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}],seed:e=>A("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=>P(e)},{block:y,fields:[{key:"badge",label:"Highlight badge",everySource:!0}],typedRows:T,seed:e=>S(e)},{block:I,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>E(e)}];function c(){return _("efficient.card-templates",()=>new Map(N.map(e=>[e.block,e])))}function me(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(i=>i.type===o.type)||r.push({type:o.type,label:o.label||o.type})}const n=w(t.typedRows);c().set(t.block,{block:t.block,fields:t.fields.map(o=>({...o})),blocks:r,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function K(e,t){const r=e?c().get(e)?.seed:void 0;return r?r(t):t}function ke(e,t){if(!(t.template===void 0||Array.isArray(t.template)&&t.template.length===0))return t;const{template:n,...o}=t,i=e?c().get(e)?.seedOnInsert:void 0,l=i?i(o):K(e,o);return l===o?t:l}function be(){for(const e of c().values())if(e.blocks?.length)return!0;return!1}function xe(e){return c().get(e)?.blocks??[]}function ge(e){for(const t of c().values())if(t.blocks?.some(r=>r.type===e))return!0;return!1}function we(e){return typeof e=="string"&&c().get(e)?.typedRows||""}function Be(e){return typeof e=="string"&&c().get(e)?.linesBetween===!0}function j(e){return typeof e=="string"&&c().has(e)}function H(e,t){const r=c().get(e)?.fields??[];return t?r.filter(n=>(n.kind??"text")===t):r}function Y(e){return typeof e=="string"?H(e,"list")[0]?.key??"":""}function Q(e,t){return m(e)||Y(t)}function L(e,t){const r=typeof e?.type=="string"?e.type:"";if(!r)return[];const n=c().get(r)?.fields??[],o=x(g(e?.props))?.fields,i=o?.length?[...o.map(l=>({...l})),...n.filter(l=>l.everySource&&!o.some(s=>s.key===l.key))]:n;return t?i.filter(l=>(l.kind??"text")===t):i}function U(e,t,r){return e?r?L(r).find(n=>n.key===t)??null:c().get(e)?.fields.find(n=>n.key===t)??null:null}function $(e,t){return!e||!t?null:e.fields?.find(r=>r.key===t)??U(e.ownerType,t,e.owner)}function m(e,t=p){const r=e?.[t];return typeof r=="string"?r.trim():""}function Te(e,t){return e.key||String(t+1)}function Re(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 q="hideWhenRowEmpty";function Le(e,t){const r=e[q];return!t||!Array.isArray(r)||!r.length?!1:r.every(n=>typeof n!="string"||!t[n]?.trim())}function he(e,t,r=""){const n=t&&e&&typeof e=="object"?e[t]:void 0;if(!Array.isArray(n))return"";for(const o of n){const i=typeof o=="string"?o:o?.src,l=w(typeof i=="string"?i.trim():void 0);if(l&&l!==r.trim())return l}return""}const k={Text:{text:p},ImageBlock:{src:p},ButtonBlock:{label:p,href:W},LogoBlock:{alt:p},Breadcrumb:{currentCrumb:p}},Oe=k,V=new Set(["ButtonBlock.label","LogoBlock.alt"]);function _e(e,t,r){return X(e,t,r)&&!V.has(`${e}.${r}`)}function X(e,t,r){return z(e,t,r)!==""}function z(e,t,r){const n=k[e]?.[r];return n?m(t,n):""}function G(e,t){return!t||!e?null:e[t]??""}function Ce(e,t,r,n,o){if(!r)return t;let i=null;for(const[l,s]of Object.entries(k[e]??{})){const d=m(t,s),a=G(r,d);a!==null&&(i??={...t},i[l]=$({ownerType:n,fields:o},d)?.mark==="accentItalic"?C(a):a)}return i??t}function b(e,t){const r=e?.data?.content;if(!Array.isArray(r)||typeof t!="string")return;const n=(i,l)=>{for(const s of i){if(s?.props?.id===t)return l;for(const[d,a]of Object.entries(s?.props??{})){if(!h(a))continue;const u=d===v&&j(s.type)?{owner:s,direct:!0,nested:l!==null,underBox:!1}:l&&{owner:l.owner,direct:!1,nested:l.nested,underBox:l.underBox||s.type===O},f=n(a,u);if(f!==void 0)return f}}},o=n(r,null);return o===void 0?null:o}function J(e,t){const r=b(e,t);return r&&r.owner}function Ae(e,t){const r=b(e,t);return r&&(r.direct?r.owner:null)}function Se(e,t){const r=b(e,t);if(r!==void 0)return r===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:r.nested,underBox:r.underBox}}function Ie(e,t,r){if(t?.type!==y)return[];const n=J(e,t.props?.id);if(!n){const l=x(g(t.props))?.fields,s=l?.length?l.map(u=>({...u})):Z(t.props),d=(c().get(y)?.fields??[]).filter(u=>u.everySource&&!s.some(f=>f.key===u.key)),a=[...s,...d];return r?a.filter(u=>(u.kind??"text")===r):a}const o=Q(t.props,n.type),i=o&&L(n,"list").find(l=>l.key===o)?.fields||[];return r?i.filter(l=>(l.kind??"text")===r):i}function Ee(e,t){return{[p]:"",[T]:e.map(r=>({...r})),[R]:t.map(r=>({...r}))}}function Z(e,t){const r=e?.[R];if(!Array.isArray(r))return[];const n=r.flatMap(o=>{if(!o||typeof o!="object")return[];const{key:i,label:l,kind:s,multiline:d,alt:a,next:u}=o;if(typeof i!="string"||!i||typeof l!="string")return[];const f=s==="image"||s==="link"||s==="colour"?s:void 0;return[{key:i,label:l,...f?{kind:f}:{},...d===!0?{multiline:!0}:{},...typeof a=="string"&&a?{alt:a}:{},...typeof u=="string"&&u?{next:u}:{}}]});return t?n.filter(o=>(o.kind??"text")===t):n}export{q as BOX_HIDE_WHEN_ROW_EMPTY,R as CARD_LIST_FIELDS,M as CARD_LIST_ITEM_BLOCKS,T as CARD_LIST_ROWS,y as CARD_LIST_TYPE,p as CARD_ROW_FIELD_PROP,W as CARD_ROW_LINK_PROP,B as CARD_TEMPLATE_BLOCKS,fe as CARD_TEMPLATE_LABEL,v as CARD_TEMPLATE_SLOT,Oe as ROW_BOUND_PROPS,V as ROW_PART_BY_WORDS,Se as cardCopyPlace,Te as cardKeyOf,Ie as cardListFieldsOf,ye as cardListItemSlot,Ee as cardListProps,Q as cardListShows,Re as cardRow,xe as cardTemplateBlocks,Ae as cardTemplateCardOwner,U as cardTemplateField,H as cardTemplateFields,L as cardTemplateFieldsOf,Be as cardTemplateLinesBetween,J as cardTemplateOwner,pe as cardTemplateSlot,we as cardTemplateTypedRows,be as cardTemplatesNameBlocks,Y as defaultListField,j as hasCardTemplate,ge as isCardTemplateBlock,m as namedRowField,me as registerCardTemplates,X as rowBound,z as rowFieldOf,$ as rowFieldSpec,G as rowFieldText,Ce as rowFilledProps,he as rowNextPicture,_e as rowPartByKey,Le as templateBoxIsEmpty,ke as templateOnInsert,K as templateOnRead};
@@ -6,6 +6,7 @@ export interface FootprintOffice {
6
6
  city: string;
7
7
  country: string;
8
8
  address?: string;
9
+ phone?: string;
9
10
  lat: number;
10
11
  lng: number;
11
12
  geocode?: GeocodeState;
@@ -16,6 +17,7 @@ export interface FootprintOffice {
16
17
  }
17
18
  export declare function footprintOfficeOfRow(row: Readonly<Record<string, string>>): FootprintOffice;
18
19
  export declare function footprintCardRow(office: FootprintOffice): Record<string, string>;
20
+ export declare function footprintSearchText(office: FootprintOffice): string;
19
21
  export interface FootprintContent {
20
22
  sectionNumber: string;
21
23
  heading: string;
@@ -1 +1 @@
1
- import{hasMapCoords as a,mapCoordOfText as e}from"../map-styles.js";const s=/^https?:\/\//i;function h(t){const r=(t.href??"").trim(),n=(t.linkLabel??"").trim();return{role:t.role??"",city:t.city??"",country:t.country??"",address:t.address??"",hq:t.hq==="true",lat:e(t.lat),lng:e(t.lng),...r&&n&&s.test(r)?{href:r,linkLabel:n}:{}}}function i(t){const r=n=>typeof n=="string"?n:"";return{badge:t.hq?"HQ":"",role:r(t.role),city:r(t.city),country:r(t.country),address:r(t.address),...t.href&&t.linkLabel?{href:t.href,linkLabel:t.linkLabel}:{}}}const p={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function u(t){const r=[];return t.forEach((n,l)=>{a(n.lat,n.lng)&&r.push({key:String(l),label:n.city||n.role||"Office",lat:n.lat,lng:n.lng,glyph:"",tone:"",...n.hq?{badge:"HQ"}:{}})}),r}export{p as FOOTPRINT_DEFAULTS,i as footprintCardRow,h as footprintOfficeOfRow,u as footprintPins};
1
+ import{hasMapCoords as a,mapCoordOfText as e}from"../map-styles.js";const o=/^https?:\/\//i;function p(t){const n=(t.href??"").trim(),r=(t.linkLabel??"").trim();return{role:t.role??"",city:t.city??"",country:t.country??"",address:t.address??"",hq:t.hq==="true",lat:e(t.lat),lng:e(t.lng),...n&&r&&o.test(n)?{href:n,linkLabel:r}:{}}}function h(t){const n=r=>typeof r=="string"?r:"";return{badge:t.hq?"HQ":"",role:n(t.role),city:n(t.city),country:n(t.country),address:n(t.address),phone:n(t.phone),...t.href&&t.linkLabel?{href:t.href,linkLabel:t.linkLabel}:{}}}function i(t){return[t.city,t.country,t.address,t.role].map(n=>typeof n=="string"?n.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}const u={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function d(t){const n=[];return t.forEach((r,l)=>{a(r.lat,r.lng)&&n.push({key:String(l),label:r.city||r.role||"Office",lat:r.lat,lng:r.lng,glyph:"",tone:"",...r.hq?{badge:"HQ"}:{}})}),n}export{u as FOOTPRINT_DEFAULTS,h as footprintCardRow,p as footprintOfficeOfRow,d as footprintPins,i as footprintSearchText};
@@ -0,0 +1,30 @@
1
+ import type { HoverMediaGroup, HoverMediaKind } from "../animation/hover.js";
2
+ export declare const HOVER_MEDIA_LIMIT = 8;
3
+ export type HoverMediaItem = {
4
+ url?: string;
5
+ kind?: string;
6
+ };
7
+ export type HoverMediaGroupRow = {
8
+ finish?: string;
9
+ items?: readonly HoverMediaItem[];
10
+ };
11
+ type ZoneKind = Exclude<HoverMediaKind, "renderings">;
12
+ export type HoverMediaRow = {
13
+ hoverMedia?: Partial<Record<ZoneKind, readonly HoverMediaGroupRow[] | undefined>> | null;
14
+ finishes?: readonly {
15
+ name?: string;
16
+ angles?: readonly string[];
17
+ }[] | null;
18
+ };
19
+ export type HoverMediaPick = {
20
+ kind: HoverMediaKind;
21
+ fit: "cover" | "contain";
22
+ urls: readonly string[];
23
+ };
24
+ export declare function pickHoverMedia(row: HoverMediaRow | null | undefined, media: {
25
+ kind: HoverMediaKind;
26
+ group: HoverMediaGroup;
27
+ }, finish?: string): HoverMediaPick | null;
28
+ export declare function hoverArrowLabel(direction: "prev" | "next", name: string): string;
29
+ export declare function hoverMediaCount(index: number, count: number): string;
30
+ export {};
@@ -0,0 +1 @@
1
+ import{nonEmptyString as f}from"../non-empty-string.js";const a=8,c=(t,n)=>!!t&&!!n&&t.trim().toLowerCase()===n.trim().toLowerCase(),l=(t,n,e)=>{if(e){const o=n(e);if(o.length>0)return o}for(const o of t){const r=n(o);if(r.length>0)return r}return[]},d=t=>(t.items??[]).flatMap(n=>{const e=n.kind==="image"?f(n.url):void 0;return e?[e]:[]}),g=t=>(t.angles??[]).flatMap(n=>{const e=f(n);return e?[e]:[]});function h(t,n,e){if(!t)return null;const o=n.group==="finish";let r;if(n.kind==="renderings"){const i=t.finishes??[],s=o?i.find(u=>c(u.name,e)):void 0;r=l(i,g,s)}else{const i=t.hoverMedia?.[n.kind]??[],s=o?i.find(u=>c(u.finish,e)):void 0;r=l(i,d,s)}return r.length===0?null:{kind:n.kind,fit:n.kind==="renderings"?"contain":"cover",urls:r.slice(0,a)}}function m(t,n){return`${t==="prev"?"Previous":"Next"} photo of ${n}`}function k(t,n){return`Photo ${t+1} of ${n}`}export{a as HOVER_MEDIA_LIMIT,m as hoverArrowLabel,k as hoverMediaCount,h as pickHoverMedia};
@@ -33,4 +33,7 @@ export type InkSource = Readonly<Record<InkRole, string>>;
33
33
  export declare function inkStyle(source: InkSource): Record<string, string>;
34
34
  export declare const ON_MEDIA_INK: InkSource;
35
35
  export declare const ON_MEDIA_INK_STYLE: Readonly<Record<string, string>>;
36
+ export declare const ON_LIGHT_INK: InkSource;
37
+ export declare const ON_LIGHT_INK_STYLE: Readonly<Record<string, string>>;
38
+ export declare function rowFillInkStyle(fill: string | null | undefined): Readonly<Record<string, string>> | null;
36
39
  export {};
@@ -1 +1 @@
1
- const n=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],l=n.filter(e=>e.ink);function i(e){const r={color:e.fg};for(const{role:o,token:t}of l)r[t]=e[o];return r}const f={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},s=Object.freeze(i(f));export{l as INK,f as ON_MEDIA_INK,s as ON_MEDIA_INK_STYLE,n as SECTION_PALETTE,i as inkStyle};
1
+ import{parseHexColor as l}from"efficient-shell/format";import{fillIsDark as i}from"../theme.js";const a=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],f=a.filter(e=>e.ink);function o(e){const r={color:e.fg};for(const{role:t,token:n}of f)r[n]=e[t];return r}const s={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},c=Object.freeze(o(s)),g={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},k=Object.freeze(o(g));function x(e){const r=e?l(e):null;return r?i(r)?c:k:null}export{f as INK,g as ON_LIGHT_INK,k as ON_LIGHT_INK_STYLE,s as ON_MEDIA_INK,c as ON_MEDIA_INK_STYLE,a as SECTION_PALETTE,o as inkStyle,x as rowFillInkStyle};
@@ -0,0 +1,3 @@
1
+ export type ListPosition = "below" | "left" | "right";
2
+ export declare function parseListPosition(value: unknown): ListPosition;
3
+ export declare function listBesideMap(value: unknown): boolean;
@@ -0,0 +1 @@
1
+ const e=["below","left","right"];function o(t){return e.includes(t)?t:"below"}function i(t){return o(t)!=="below"}export{i as listBesideMap,o as parseListPosition};
@@ -1,5 +1,7 @@
1
1
  export declare const LIST_ROW_ATTR = "data-list-row";
2
2
  export declare const LIST_ROW_SELECTOR = "details, [data-list-row]";
3
+ export declare const LIST_TEXT_ATTR = "data-list-text";
4
+ export declare function listRowText(row: Element): string;
3
5
  export declare function foldText(value: string): string;
4
6
  export declare function rowMatchesQuery(text: string, query: string): boolean;
5
7
  export declare const LIST_KEY_ATTR = "data-list-key";
@@ -1 +1 @@
1
- const c="data-list-row",a=`details, [${c}]`;function i(r){return r.normalize("NFD").replace(/\p{M}/gu,"").toLowerCase()}function f(r,o){const e=i(o).split(/\s+/).filter(Boolean);if(e.length===0)return!0;const n=i(r);return e.every(t=>n.includes(t))}const u="data-list-key";function p(r,o){const e=r.ownerDocument;return Array.from(e.querySelectorAll(`[${u}]`)).filter(t=>t.getAttribute(u)===o).flatMap(t=>Array.from(t.querySelectorAll(a)).filter(s=>{if(s.hasAttribute(c))return!0;const l=s.parentElement?.closest(`[${c}]`);return!l||!t.contains(l)})).filter(t=>!r.contains(t))}function d(r,o,e){const n=p(r,o);if(n.length===0)return null;let t=0;for(const s of n){const l=f(s.textContent??"",e);s.hidden=!l,l&&(t+=1)}return t}export{u as LIST_KEY_ATTR,c as LIST_ROW_ATTR,a as LIST_ROW_SELECTOR,i as foldText,p as listRowsFor,d as narrowList,f as rowMatchesQuery};
1
+ const i="data-list-row",a=`details, [${i}]`,f="data-list-text";function T(t){return t.getAttribute(f)??t.textContent??""}function c(t){return t.normalize("NFD").replace(/\p{M}/gu,"").toLowerCase()}function p(t,o){const r=c(o).split(/\s+/).filter(Boolean);if(r.length===0)return!0;const n=c(t);return r.every(e=>n.includes(e))}const u="data-list-key";function x(t,o){const r=t.ownerDocument;return Array.from(r.querySelectorAll(`[${u}]`)).filter(e=>e.getAttribute(u)===o).flatMap(e=>Array.from(e.querySelectorAll(a)).filter(s=>{if(s.hasAttribute(i))return!0;const l=s.parentElement?.closest(`[${i}]`);return!l||!e.contains(l)})).filter(e=>!t.contains(e))}function d(t,o,r){const n=x(t,o);if(n.length===0)return null;let e=0;for(const s of n){const l=p(T(s),r);s.hidden=!l,l&&(e+=1)}return e}export{u as LIST_KEY_ATTR,i as LIST_ROW_ATTR,a as LIST_ROW_SELECTOR,f as LIST_TEXT_ATTR,c as foldText,T as listRowText,x as listRowsFor,d as narrowList,p as rowMatchesQuery};
@@ -1,2 +1,5 @@
1
1
  import { type BlockSeed } from "../../../seed-parts.js";
2
2
  export declare const footprintCardSeed: () => BlockSeed;
3
+ export declare const footprintSideCardSeed: () => BlockSeed;
4
+ export declare function isUntouchedFootprintSideRow(props: Record<string, unknown>): boolean;
5
+ export declare function withFootprintSideTemplate(props: Record<string, unknown>): Record<string, unknown>;
@@ -1 +1 @@
1
- import{BOX_TYPE as l,CONTAINER_BLOCKS_SLOT as r}from"../../../container-blocks.js";import{DIM as e,INNER_BOX as p,TEXT as o,boxPadding as a,labelLook as d,token as f}from"../../../seed-parts.js";import{rowFieldTextSeed as t}from"../Cards/card-seed.js";import{CARD_ROW_FIELD_PROP as n,CARD_ROW_LINK_PROP as O}from"../../../../content/card-template.js";const i=d(11),_={textStyle:"body-1",...f("body",18),weight:500,lineHeight:1.2},s=()=>({type:l,props:{...p,gap:8,gapPhone:8,...a(20,24,20,20),name:"Office"},slots:{[r]:[t("badge",{...o,tag:"p",widthFit:"fill"},i,!0),t("role",{...o,tag:"p",widthFit:"fill"},i,!0),t("city",{...o,tag:"p",widthFit:"fill"},_),t("country",{...e,tag:"p",widthFit:"fill"},i),t("address",{...e,tag:"p",widthFit:"fill"},i),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[n]:"linkLabel",[O]:"href"}}]}});export{s as footprintCardSeed};
1
+ import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as d}from"../../../container-blocks.js";import{DIM as i,INNER_BOX as f,TEXT as o,boxPadding as p,labelLook as y,seedNodes as O,token as l}from"../../../seed-parts.js";import{listBesideMap as _}from"../../../../content/list-position.js";import{nonEmptyString as u}from"../../../../non-empty-string.js";import{shapeKeyOf as m}from"../../../seed-shape.js";import{rowFieldTextSeed as e}from"../Cards/card-seed.js";import{CARD_ROW_FIELD_PROP as w,CARD_ROW_LINK_PROP as S}from"../../../../content/card-template.js";const n=y(11),F={textStyle:"body-1",...l("body",18),weight:500,lineHeight:1.2},K=()=>({type:r,props:{...f,gap:8,gapPhone:8,...p(20,24,20,20),name:"Office"},slots:{[d]:[e("badge",{...o,tag:"p",widthFit:"fill"},n,!0),e("role",{...o,tag:"p",widthFit:"fill"},n,!0),e("city",{...o,tag:"p",widthFit:"fill"},F),e("country",{...i,tag:"p",widthFit:"fill"},n),e("address",{...i,tag:"p",widthFit:"fill"},n),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[w]:"linkLabel",[S]:"href"}}]}}),L={textStyle:"body-1",fontRole:"heading",...l("body",16),weight:500,lineHeight:1.25},h={textStyle:"body-1",...l("body",14),lineHeight:1.5},b=()=>({type:r,props:{...f,gap:4,gapPhone:4,...p(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[d]:[e("city",{...o,tag:"p",widthFit:"fill"},L),e("address",{...i,tag:"p",widthFit:"fill"},h),e("phone",{...i,tag:"p",widthFit:"fill"},h)]}});function g(t){const a=u(t.id)??"Footprint";let c=0;return O([b()],s=>s===r?`${a}~office`:`${a}~office.${c++}`)}function R(t){return Array.isArray(t.template)&&t.template.length>0&&m(t.template)===m(g(t))}const E=t=>t===void 0||Array.isArray(t)&&t.length===0;function N(t){return _(t.listPosition)?!E(t.template)||t.source==="dealers"?t:{...t,template:g(t)}:R(t)?{...t,template:[]}:t}export{K as footprintCardSeed,b as footprintSideCardSeed,R as isUntouchedFootprintSideRow,N as withFootprintSideTemplate};
@@ -612,6 +612,13 @@
612
612
  "label": "Address"
613
613
  }
614
614
  },
615
+ "phone": {
616
+ "type": "custom",
617
+ "__text": {
618
+ "control": "plainText",
619
+ "label": "Phone"
620
+ }
621
+ },
615
622
  "group": {
616
623
  "type": "custom",
617
624
  "__text": {
@@ -1 +1 @@
1
- import{DELIVERY_OPTIONS_SOURCE as K,declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as p}from"../non-empty-string.js";import{CARD_LIST_TYPE as _,CARD_TEMPLATE_SLOT as f}from"../content/card-template.js";import{find as R,walk as g}from"efficient-easel/data";import{BOX_TYPE as j,CONTAINER_BLOCKS_SLOT as F}from"./container-blocks.js";import{seedNodes as S}from"./seed-parts.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as u,cardIdOf as A,cardsCardSeed as m,labelOnlyCardSeed as O}from"./blocks/general/Cards/card-seed.js";import{GRID_LOOK_KEYS as h,cardListCardSeed as w,cardsGridLook as k,deliveryCardSeed as D,deliveryGridLook as L}from"./blocks/general/Cards/card-list-seed.js";import{finiteNumber as Y}from"../finite-number.js";function l(t){return Array.isArray(t)?t.map(l):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).filter(([e,r])=>e!=="id"&&r!==void 0&&!(Array.isArray(r)&&r.length===0)).sort(([e],[r])=>e<r?-1:e>r?1:0).map(([e,r])=>[e,l(r)]))}const P=()=>"",G=t=>JSON.stringify(l(S([t],P)));function N(t,e,r){if(!Array.isArray(t)||t.length!==1)return null;const o=r.keys??=Object.fromEntries(Object.entries(e()).map(([n,s])=>[n,new Set(s.map(G))])),i=JSON.stringify(l(t));return Object.keys(o).find(n=>o[n].has(i))??null}const J=()=>({press:[w(u),w(a)],delivery:[D()]}),B={},C=t=>N(t,J,B),M=t=>d(t)===K?"delivery":"press";function et(t,e){if(!e||d(t)===d(e))return t;const r=C(t[f]),o=M(t);if(!r||r===o)return t;const i=p(t.id)??_,n=o==="delivery"?D():w(d(t)?a:u),s=S([n],A(i));return{...t,[f]:s}}const V=()=>({cards:[m(u),m(a)],label:[O(!1),O(!0)]}),v={},z=t=>N(t,V,v);function nt(t,e){if(!e||t.cardStyle==="label-only"==(e.cardStyle==="label-only"))return t;const r=z(t[f]),o=t.cardStyle==="label-only"?"label":"cards";if(!r||r===o)return t;const i=p(t.id)??"Cards",n=Array.isArray(t.items)&&t.items.some(b=>p(b?.href)!==void 0),s=o==="label"?O(n):m(d(t)?a:u),c=S([s],A(i));return{...t,[f]:c}}const I=(t,e)=>h.every(r=>JSON.stringify(t[r])===JSON.stringify(e[r]));function T(t,e){const r={...t};for(const o of h)delete r[o];return{...r,...structuredClone(e)}}function E(t){const e=t?.[F];if(!Array.isArray(e)||e.length!==1)return null;const r=e[0];return r?.type===_&&r.props?r:null}function H(t,e){const r=E(t),o=E(e);if(!r?.props||!o?.props||o.props.id!==r.props.id||d(r.props)===d(o.props))return t;const i=C(r.props[f]);if(!i||i===C(o.props[f]))return t;const n=Y(t.columns);return n===void 0?t:i==="delivery"&&I(t,k(n))?T(t,L(n)):i==="press"&&I(t,L(n))?T(t,k(n)):t}function ot(t){const e=y.get(t);e?e.count+=1:y.set(t,{count:1,stop:U(t)});let r=!1;return()=>{const o=y.get(t);r||!o||(r=!0,o.count-=1,!(o.count>0)&&(o.stop(),y.delete(t)))}}const y=new WeakMap;function U(t){let e=t.getState().appState.data;return t.subscribe(()=>{const r=t.getState().appState.data;if(r===e)return;const o=e;if(e=r,r===t.loaded)return;const i=new Map;g(r,t.config,n=>{if(n.type!==j||!E(n.props))return;const s=R(o,t.config,n.props.id);if(!s||s.node===n)return;const c=H(n.props,s.node.props);c!==n.props&&i.set(n.props.id,c)}),i.size&&t.dispatch({type:"setData",recordHistory:!1,data:n=>g(n,t.config,s=>{const c=i.get(s.props.id);return c?{...s,props:{...c,id:s.props.id}}:void 0})})})}export{et as cardFollowsContentSwitch,nt as cardsFollowCardStyle,H as cardsGridFollowsContent,ot as followCardContentSwitches};
1
+ import{DELIVERY_OPTIONS_SOURCE as R,declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as p}from"../non-empty-string.js";import{CARD_LIST_TYPE as E,CARD_TEMPLATE_SLOT as f}from"../content/card-template.js";import{find as v,walk as _}from"efficient-easel/data";import{BOX_TYPE as b,CONTAINER_BLOCKS_SLOT as F}from"./container-blocks.js";import{seedNodes as y}from"./seed-parts.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as l,cardIdOf as k,cardsCardSeed as S,labelOnlyCardSeed as m}from"./blocks/general/Cards/card-seed.js";import{GRID_LOOK_KEYS as D,cardListCardSeed as O,cardsGridLook as L,deliveryCardSeed as g,deliveryGridLook as h}from"./blocks/general/Cards/card-list-seed.js";import{finiteNumber as Y}from"../finite-number.js";import{shapeKeyOf as A}from"./seed-shape.js";const P=()=>"",G=t=>A(y([t],P));function I(t,e,r){if(!Array.isArray(t)||t.length!==1)return null;const o=r.keys??=Object.fromEntries(Object.entries(e()).map(([n,s])=>[n,new Set(s.map(G))])),i=A(t);return Object.keys(o).find(n=>o[n].has(i))??null}const j=()=>({press:[O(l),O(a)],delivery:[g()]}),B={},w=t=>I(t,j,B),M=t=>d(t)===R?"delivery":"press";function nt(t,e){if(!e||d(t)===d(e))return t;const r=w(t[f]),o=M(t);if(!r||r===o)return t;const i=p(t.id)??E,n=o==="delivery"?g():O(d(t)?a:l),s=y([n],k(i));return{...t,[f]:s}}const J=()=>({cards:[S(l),S(a)],label:[m(!1),m(!0)]}),V={},z=t=>I(t,J,V);function ot(t,e){if(!e||t.cardStyle==="label-only"==(e.cardStyle==="label-only"))return t;const r=z(t[f]),o=t.cardStyle==="label-only"?"label":"cards";if(!r||r===o)return t;const i=p(t.id)??"Cards",n=Array.isArray(t.items)&&t.items.some(N=>p(N?.href)!==void 0),s=o==="label"?m(n):S(d(t)?a:l),c=y([s],k(i));return{...t,[f]:c}}const T=(t,e)=>D.every(r=>JSON.stringify(t[r])===JSON.stringify(e[r]));function K(t,e){const r={...t};for(const o of D)delete r[o];return{...r,...structuredClone(e)}}function C(t){const e=t?.[F];if(!Array.isArray(e)||e.length!==1)return null;const r=e[0];return r?.type===E&&r.props?r:null}function H(t,e){const r=C(t),o=C(e);if(!r?.props||!o?.props||o.props.id!==r.props.id||d(r.props)===d(o.props))return t;const i=w(r.props[f]);if(!i||i===w(o.props[f]))return t;const n=Y(t.columns);return n===void 0?t:i==="delivery"&&T(t,L(n))?K(t,h(n)):i==="press"&&T(t,h(n))?K(t,L(n)):t}function it(t){const e=u.get(t);e?e.count+=1:u.set(t,{count:1,stop:U(t)});let r=!1;return()=>{const o=u.get(t);r||!o||(r=!0,o.count-=1,!(o.count>0)&&(o.stop(),u.delete(t)))}}const u=new WeakMap;function U(t){let e=t.getState().appState.data;return t.subscribe(()=>{const r=t.getState().appState.data;if(r===e)return;const o=e;if(e=r,r===t.loaded)return;const i=new Map;_(r,t.config,n=>{if(n.type!==b||!C(n.props))return;const s=v(o,t.config,n.props.id);if(!s||s.node===n)return;const c=H(n.props,s.node.props);c!==n.props&&i.set(n.props.id,c)}),i.size&&t.dispatch({type:"setData",recordHistory:!1,data:n=>_(n,t.config,s=>{const c=i.get(s.props.id);return c?{...s,props:{...c,id:s.props.id}}:void 0})})})}export{nt as cardFollowsContentSwitch,ot as cardsFollowCardStyle,H as cardsGridFollowsContent,it as followCardContentSwitches};
@@ -0,0 +1,2 @@
1
+ export declare const PANEL_ONLY_FIELD: "sfPanelOnly";
2
+ export declare function fieldPanelOnly(field: unknown): boolean;
@@ -0,0 +1 @@
1
+ const t="sfPanelOnly";function e(n){return!!n&&typeof n=="object"&&n[t]===!0}export{t as PANEL_ONLY_FIELD,e as fieldPanelOnly};
@@ -0,0 +1,2 @@
1
+ export declare function shapeOf(value: unknown): unknown;
2
+ export declare const shapeKeyOf: (value: unknown) => string;
@@ -0,0 +1 @@
1
+ function i(r){return Array.isArray(r)?r.map(i):!r||typeof r!="object"?r:Object.fromEntries(Object.entries(r).filter(([e,t])=>e!=="id"&&t!==void 0&&!(Array.isArray(t)&&t.length===0)).sort(([e],[t])=>e<t?-1:e>t?1:0).map(([e,t])=>[e,i(t)]))}const n=r=>JSON.stringify(i(r));export{n as shapeKeyOf,i as shapeOf};
@@ -84,6 +84,7 @@ export declare const WEB_BUILDER_WORDS: {
84
84
  readonly "A world map of your locations with a legend \u2014 designed here, sold worldwide.": "A world map of your locations with a legend — designed here, sold worldwide.";
85
85
  readonly "A write-a-review form \u2014 submissions wait for your approval before they show.": "A write-a-review form — submissions wait for your approval before they show.";
86
86
  readonly "About & brand story": "About & brand story";
87
+ readonly Accessories: "Accessories";
87
88
  readonly Accordion: "Accordion";
88
89
  readonly Account: "Account";
89
90
  readonly "Active tab": "Active tab";
@@ -339,6 +340,7 @@ export declare const WEB_BUILDER_WORDS: {
339
340
  readonly "Country Switch": "Country Switch";
340
341
  readonly Cover: "Cover";
341
342
  readonly "Cover image": "Cover image";
343
+ readonly Covers: "Covers";
342
344
  readonly "Cross \u2715": "Cross ✕";
343
345
  readonly Crumbs: "Crumbs";
344
346
  readonly "Current page": "Current page";
@@ -491,6 +493,7 @@ export declare const WEB_BUILDER_WORDS: {
491
493
  readonly "Finish steps": "Finish steps";
492
494
  readonly "Finish swatches": "Finish swatches";
493
495
  readonly "Finish \u00B7 Size \u00B7 \u00D71": "Finish · Size · ×1";
496
+ readonly "First group": "First group";
494
497
  readonly "First item": "First item";
495
498
  readonly "First section": "First section";
496
499
  readonly "Fit content": "Fit content";
@@ -680,6 +683,7 @@ export declare const WEB_BUILDER_WORDS: {
680
683
  readonly "Legal Line": "Legal Line";
681
684
  readonly Length: "Length";
682
685
  readonly Level: "Level";
686
+ readonly "Lifestyle photos": "Lifestyle photos";
683
687
  readonly Lift: "Lift";
684
688
  readonly Lifted: "Lifted";
685
689
  readonly Light: "Light";
@@ -844,6 +848,7 @@ export declare const WEB_BUILDER_WORDS: {
844
848
  readonly "Order Table": "Order Table";
845
849
  readonly "Order content": "Order content";
846
850
  readonly "Order summary": "Order summary";
851
+ readonly Others: "Others";
847
852
  readonly Outline: "Outline";
848
853
  readonly Outlined: "Outlined";
849
854
  readonly Overlay: "Overlay";
@@ -884,6 +889,7 @@ export declare const WEB_BUILDER_WORDS: {
884
889
  readonly "Pick a color to see how it reads.": "Pick a color to see how it reads.";
885
890
  readonly "Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.": "Pick a post from {place} to auto-fill this section, or keep “None (manual)” to author it yourself below.";
886
891
  readonly "Pick who to reach, then a form that routes the message.": "Pick who to reach, then a form that routes the message.";
892
+ readonly Picture: "Picture";
887
893
  readonly "Picture first": "Picture first";
888
894
  readonly Pinterest: "Pinterest";
889
895
  readonly Place: "Place";
@@ -917,6 +923,7 @@ export declare const WEB_BUILDER_WORDS: {
917
923
  readonly "Product collections in a tidy grid.": "Product collections in a tidy grid.";
918
924
  readonly "Product name": "Product name";
919
925
  readonly "Product page": "Product page";
926
+ readonly "Product photos": "Product photos";
920
927
  readonly "Product record": "Product record";
921
928
  readonly "Product record (spec tiles)": "Product record (spec tiles)";
922
929
  readonly "Product tiles": "Product tiles";
@@ -950,6 +957,7 @@ export declare const WEB_BUILDER_WORDS: {
950
957
  readonly "Region \u00B7 country": "Region · country";
951
958
  readonly "Related Products": "Related Products";
952
959
  readonly "Remove section": "Remove section";
960
+ readonly Renderings: "Renderings";
953
961
  readonly "Repeating full-width rows \u2014 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.";
954
962
  readonly "Reset color": "Reset color";
955
963
  readonly "Reset {name} to the preset": "Reset {name} to the preset";
@@ -983,6 +991,8 @@ export declare const WEB_BUILDER_WORDS: {
983
991
  readonly Rows: "Rows";
984
992
  readonly "Rows, first image on the left": "Rows, first image on the left";
985
993
  readonly "Rows, first image on the right": "Rows, first image on the right";
994
+ readonly "Same finish": "Same finish";
995
+ readonly "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.";
986
996
  readonly Sans: "Sans";
987
997
  readonly Save: "Save";
988
998
  readonly "Save as Template": "Save as Template";
@@ -1335,6 +1345,7 @@ export declare const WEB_BUILDER_WORDS: {
1335
1345
  readonly "We accept": "We accept";
1336
1346
  readonly WeChat: "WeChat";
1337
1347
  readonly "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.": "What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.";
1348
+ readonly "What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.": "What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.";
1338
1349
  readonly "What people *say.*": "What people *say.*";
1339
1350
  readonly "What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.": "What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.";
1340
1351
  readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
@@ -1346,6 +1357,9 @@ export declare const WEB_BUILDER_WORDS: {
1346
1357
  readonly "When the text does not fit": "When the text does not fit";
1347
1358
  readonly "Where this content is edited.": "Where this content is edited.";
1348
1359
  readonly "Whether this page sits on the site's content column, or runs edge to edge.": "Whether this page sits on the site's content column, or runs edge to edge.";
1360
+ readonly "Which of the product's pictures the card shows.": "Which of the product's pictures the card shows.";
1361
+ readonly "Whole card": "Whole card";
1362
+ readonly "Whole card hides the words under the photo. Picture keeps the words and swatches in view.": "Whole card hides the words under the photo. Picture keeps the words and swatches in view.";
1349
1363
  readonly "Whole number Theme Color": "Whole number Theme Color";
1350
1364
  readonly "Wide (2:1)": "Wide (2:1)";
1351
1365
  readonly "Wide 2:1": "Wide 2:1";