efficient-web-builder 55.1.0 → 55.3.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 +54 -0
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/lib/document/block-source-fields.d.ts +1 -0
- package/dist/editor/lib/document/block-source-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/live-number-field.d.ts +5 -0
- package/dist/editor/lib/document/live-number-field.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/part-anchors.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.js +1 -1
- package/dist/editor/lib/host-document-bridge.d.ts +4 -1
- package/dist/editor/lib/host-document-bridge.js +1 -1
- package/dist/editor/lib/sections/text-layouts.d.ts +2 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +18 -2
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +3 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/card-state.d.ts +6 -0
- package/dist/format/lib/content/card-state.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +14 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/count-numbers.d.ts +1 -1
- package/dist/format/lib/content/count-numbers.js +1 -1
- package/dist/format/lib/content/footer.js +1 -1
- package/dist/format/lib/content/footprint.d.ts +1 -0
- package/dist/format/lib/content/footprint.js +1 -1
- package/dist/format/lib/content/image-text-rows.d.ts +22 -0
- package/dist/format/lib/content/image-text-rows.js +1 -0
- package/dist/format/lib/content/mirror-cards.d.ts +17 -0
- package/dist/format/lib/content/mirror-cards.js +1 -1
- package/dist/format/lib/content/view-lines.d.ts +1 -1
- package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Footprint/meta.d.ts +6 -0
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +7 -0
- package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +11 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +11 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -0
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/passes/document-position.d.ts +8 -0
- package/dist/format/lib/document/passes/document-position.js +1 -1
- package/dist/format/lib/document/row-hand.d.ts +5 -0
- package/dist/format/lib/document/row-hand.js +1 -0
- package/dist/format/lib/document/section-catalog.js +20 -2
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/document/seed-parts.d.ts +3 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/document/text-seeds.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +38 -1
- package/dist/format/lib/editor-words-catalogue.js +6 -6
- package/dist/format/lib/editor-words-kept.d.ts +1 -0
- package/dist/format/lib/editor-words-kept.js +1 -0
- package/dist/format/lib/fonts.js +1 -1
- package/dist/format/lib/sections/strip-shape.js +1 -1
- package/dist/format/lib/sections/ticker-join.d.ts +1 -0
- package/dist/format/lib/sections/ticker-join.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +2 -2
- package/dist/format/lib/theme.d.ts +1 -0
- package/dist/format/lib/theme.js +3 -3
- package/dist/render/components/CardRowContext.d.ts +8 -2
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/ClientRows.d.ts +8 -0
- package/dist/render/components/ClientRows.js +1 -0
- package/dist/render/components/Flex.d.ts +3 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Footprint.d.ts +4 -1
- package/dist/render/components/Footprint.js +1 -1
- package/dist/render/components/HeroPictures.d.ts +2 -2
- package/dist/render/components/JoinBox.d.ts +4 -0
- package/dist/render/components/JoinBox.js +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +4 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/MirrorContext.d.ts +12 -0
- package/dist/render/components/MirrorContext.js +1 -1
- package/dist/render/components/PartStyledKind.d.ts +2 -1
- package/dist/render/components/PartStyledKind.js +1 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +5 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/Text.d.ts +3 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/content/box-shared-columns.d.ts +6 -0
- package/dist/render/lib/content/box-shared-columns.js +1 -1
- package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.d.ts +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
- package/dist/render/lib/document/part-styles.d.ts +2 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/box-join.d.ts +2 -0
- package/dist/render/lib/document/passes/box-join.js +1 -0
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/text-parts.d.ts +2 -1
- package/dist/render/lib/document/text-parts.js +1 -1
- package/dist/render/lib/sections/card-list-style.d.ts +18 -0
- package/dist/render/lib/sections/card-list-style.js +1 -0
- package/dist/render/lib/sections/payment-rows.d.ts +16 -0
- package/dist/render/lib/sections/payment-rows.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +3 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Rows, first image on the left"},{value:"rows-right",label:"Rows, first image on the right"}],i=[{value:"half",label:"Half"},{value:"third",label:"One third"}],s=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function o(e){return e==="rows-left"||e==="rows-right"?e:"columns"}const l={"rows-left":"even","rows-right":"odd"},n={half:"equal",third:"bigRight"};function h(e){const r=o(e?.arrangement);if(r==="columns")return null;const t=e?.imageWidth==="third"?"third":"half";return{mirror:l[r],row:{share:n[t],phoneReverse:e?.phoneOrder==="words"}}}export{a as ARRANGEMENT_OPTIONS,i as IMAGE_WIDTH_OPTIONS,s as PHONE_ORDER_OPTIONS,o as arrangementOf,h as imageTextRowsHand};
|
|
@@ -30,3 +30,20 @@ export declare function isMirroredCopy(value: unknown, index: number | undefined
|
|
|
30
30
|
export declare const MIRROR_ROW_CLASS = "view-wide:flex-row-reverse";
|
|
31
31
|
export declare function mirroredTextClasses(mirrored: boolean, align: unknown, partAlign: unknown): string;
|
|
32
32
|
export declare function mirroredBoxClass(mirrored: boolean, direction: unknown, justify: unknown, align: unknown): string;
|
|
33
|
+
export type RowHand = {
|
|
34
|
+
mirror: MirrorCards | null;
|
|
35
|
+
row?: {
|
|
36
|
+
share: string;
|
|
37
|
+
phoneReverse: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type MirrorParentBox = {
|
|
41
|
+
direction?: unknown;
|
|
42
|
+
loop?: unknown;
|
|
43
|
+
bgImage?: unknown;
|
|
44
|
+
columns?: unknown;
|
|
45
|
+
};
|
|
46
|
+
export declare function mirrorChildrenActs(box: MirrorParentBox, inCopy: boolean): boolean;
|
|
47
|
+
export declare function boxChildrenHand(box: MirrorParentBox & {
|
|
48
|
+
mirrorCards?: unknown;
|
|
49
|
+
}, inCopy: boolean): RowHand | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isBackgroundBox as i}from"./box-background.js";import{boxColumnsClass as
|
|
1
|
+
import{isBackgroundBox as i}from"./box-background.js";import{boxColumnsClass as s,boxShareClasses as u,boxTabletColumnsClass as d,boxWrapClass as a}from"./box-layout.js";import{isStripBox as l}from"./box-separator.js";const _="Mirror cards",c="off",A=[{value:c,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],v={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function o(r){return r==="even"||r==="odd"?r:null}function O(r){return o(r)??void 0}function y(r){return r.inCopy&&!r.nestedCopy&&!r.underBox}function h(r,e,t){return!e||r.direction!=="row"||t||l("row",r.separator)||r.loop==="scroll"||r.line===!0||i(typeof r.bgImage=="string"?r.bgImage:void 0)||s(r.columns)!==""||d(r.columnsTablet)!==""?!1:!(u(r.share)===""&&a(r.wrap)!=="")}function T(r,e){const t=o(r);return!t||typeof e!="number"||!Number.isInteger(e)||e<0?!1:t==="even"?e%2===1:e%2===0}const x="view-wide:flex-row-reverse",m={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},p={left:"view-wide:text-right!",right:"view-wide:text-left!"},w={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},C={start:"view-wide:items-end!",end:"view-wide:items-start!"},n=(r,e)=>typeof e=="string"&&Object.prototype.hasOwnProperty.call(r,e)?r[e]:"";function M(r,e,t){return r?[n(m,e),n(p,t)].filter(Boolean).join(" "):""}function B(r,e,t,f){return r?e==="row"?n(w,t):e==="column"?n(C,f):"":""}function R(r,e){return e||r.direction!==void 0&&r.direction!=="column"||r.loop==="scroll"||i(typeof r.bgImage=="string"?r.bgImage:void 0)?!1:s(r.columns)===""}function L(r,e){const t=o(r.mirrorCards);return t&&R(r,e)?{mirror:t}:null}export{_ as MIRROR_CARDS_LABEL,c as MIRROR_CARDS_OFF,A as MIRROR_CARDS_OPTIONS,v as MIRROR_CARDS_TITLES,x as MIRROR_ROW_CLASS,L as boxChildrenHand,T as isMirroredCopy,h as mirrorCardsActs,o as mirrorCardsOf,O as mirrorCardsWrite,R as mirrorChildrenActs,B as mirroredBoxClass,M as mirroredTextClasses,y as ownsCard};
|
|
@@ -2,7 +2,7 @@ export declare const RESPONSIVE_RULES: "v1" | "v2";
|
|
|
2
2
|
export declare const VIEW_LINE_PX: {
|
|
3
3
|
readonly "view-tablet": 720;
|
|
4
4
|
readonly "view-desktop": 1100;
|
|
5
|
-
readonly "view-wide":
|
|
5
|
+
readonly "view-wide": 720 | 800;
|
|
6
6
|
};
|
|
7
7
|
export type ViewLine = keyof typeof VIEW_LINE_PX;
|
|
8
8
|
export declare function breakpointOf(variant: string): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{cardListItemSlot as t}from"../../../../content/card-template.js";const e={template:t()},l={label:"Card list",inline:!0,fields:e,defaultProps:{rowField:""}};export{l as CardListMeta,e as CardListSlots};
|
|
@@ -0,0 +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,2 +1,2 @@
|
|
|
1
|
-
import{FOOTPRINT_DEFAULTS as
|
|
2
|
-
*${e.accent}*`,tagline:e.body},
|
|
1
|
+
import{FOOTPRINT_DEFAULTS as t}from"../../../../content/footprint.js";import{PH as e}from"../../placeholders.js";import{cardTemplateSlot as o}from"../../../../content/card-template.js";const s={sectionNumber:e.sectionNumber,heading:`${e.heading}
|
|
2
|
+
*${e.accent}*`,tagline:e.body},a={template:o()},p={label:"Locations Map",fields:a,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:t.mapTheme,padTop:120,padBottom:120,source:"typed",search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};export{s as FOOTPRINT_PH,p as FootprintMeta,a as FootprintSlots};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type BlockSeed } from "../../../seed-parts.js";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
export declare const LOGOS_CARD_FIELD = "label";
|
|
4
|
+
export declare const logosCardSeed: () => BlockSeed;
|
|
5
|
+
export declare function withLogosTemplate(props: Props): Props;
|
|
6
|
+
export declare function seedLogosTemplate(props: Props): Props;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{declaredBlockSource as o}from"../../../../content/block-sources.js";import{CARD_ROW_FIELD_PROP as n}from"../../../../content/card-template.js";import{nonEmptyString as i}from"../../../../non-empty-string.js";import{seedNodes as m}from"../../../seed-parts.js";const d="label",l=()=>({type:"LogoBlock",props:{[n]:d}}),r=e=>{const t=i(e.id)??"Logos";return{...e,template:m([l()],()=>`${t}~logo`)}};function g(e){return!o(e)||e.template!==void 0?e:r(e)}function s(e){if(!o(e))return e;const t=e.template;return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:r(e)}export{d as LOGOS_CARD_FIELD,l as logosCardSeed,s as seedLogosTemplate,g as withLogosTemplate};
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import type { BlockMeta } from "../../block-types.js";
|
|
2
|
+
export declare const LOGOS_PH: {
|
|
3
|
+
heading: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const logosScaffoldItems: () => {
|
|
6
|
+
src: string;
|
|
7
|
+
alt: string;
|
|
8
|
+
}[];
|
|
2
9
|
export declare const LogosSlots: {
|
|
3
10
|
logos: {
|
|
4
11
|
type: "slot";
|
|
5
12
|
allow: string[];
|
|
6
13
|
};
|
|
14
|
+
template: {
|
|
15
|
+
type: "slot";
|
|
16
|
+
allow: string[];
|
|
17
|
+
};
|
|
7
18
|
};
|
|
8
19
|
export declare const LogosMeta: BlockMeta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o={logos:{type:"slot",allow:["LogoBlock"]}},
|
|
1
|
+
import{say as o}from"../../../../editor-words.js";const s={heading:"Trusted by *teams worldwide*"},l=()=>[{src:"",alt:o("Logo one")},{src:"",alt:o("Logo two")},{src:"",alt:o("Logo three")},{src:"",alt:o("Logo four")},{src:"",alt:o("Logo five")}],t={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},r={label:"Logos",fields:t,defaultProps:{items:[],contained:!0}};export{s as LOGOS_PH,r as LogosMeta,t as LogosSlots,l as logosScaffoldItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PH as t}from"../../placeholders.js";const
|
|
1
|
+
import{PH as t}from"../../placeholders.js";import{cardTemplateSlot as e}from"../../../../content/card-template.js";const l={num:t.sectionNumber,title:t.headingAccent,description:t.body,cta:t.viewAll},o={boxes:{type:"slot"},template:e()},r={label:"Image & Text Columns",fields:o,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};export{l as PROCESS_PH,r as ProcessStepsMeta,o as ProcessStepsSlots};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type BlockSeed, type SeededNode } from "../../../seed-parts.js";
|
|
2
|
+
export declare const IMAGE_TEXT_ROW_FIELDS: {
|
|
3
|
+
readonly eyebrow: "eyebrow";
|
|
4
|
+
readonly title: "title";
|
|
5
|
+
readonly copy: "copy";
|
|
6
|
+
readonly image: "image";
|
|
7
|
+
readonly tag: "tag";
|
|
8
|
+
readonly specs: "specs";
|
|
9
|
+
};
|
|
10
|
+
export declare const imageTextRowSeed: () => BlockSeed;
|
|
11
|
+
export declare function imageTextRowTemplate(sectionId: string): SeededNode[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CARD_LIST_TYPE as c,CARD_ROW_FIELD_PROP as m}from"../../../../content/card-template.js";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as s}from"../../../container-blocks.js";import{DIM as l,INNER_BOX as a,TEXT as g,labelStyle as d,seedNodes as f,token as y}from"../../../seed-parts.js";import{rowFieldTextSeed as i}from"../Cards/card-seed.js";import{withCardListTemplate as w}from"../CardList/item-seed.js";import{isNodeList as u}from"efficient-easel/data";const P={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},t=P,h=()=>({type:r,props:{...a,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[s]:[{type:r,props:{...a,name:"Picture",direction:"column",gap:12},slots:{[s]:[{type:"ImageBlock",props:{[m]:t.image,aspect:"1/1",fit:"contain"}},i(t.tag,{...l,tag:"p"},d(11))]}},{type:r,props:{...a,name:"Words",direction:"column",gap:16},slots:{[s]:[i(t.eyebrow,{...g,tag:"p"},{...d(13),color:"accent"}),i(t.title,{...g,tag:"h2"},{textStyle:"heading-2",...y("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),i(t.copy,{...l,tag:"p"},{textStyle:"body-1",...y("body",15),lineHeight:1.6}),{type:c,props:{[m]:t.specs}}]}}]}});function T(p){return p.map(o=>{let e=o.props;for(const[_,n]of Object.entries(e))u(n)&&(e={...e,[_]:T(n)});return o.type===c?{...o,props:w(e)}:{...o,props:e}})}function b(p){return T(f([h()],(o,e)=>e==="0"?`${p}~row`:`${p}~row.${e.slice(2)}`))}export{P as IMAGE_TEXT_ROW_FIELDS,h as imageTextRowSeed,b as imageTextRowTemplate};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,
|
|
1
|
+
import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,u=l.filter(e=>e.type!=="HeroGroup");function C(e){return e<O?l:u}const b={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:C}};function S(e,r=0){const t=b[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{T as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,B as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,S as containerBlocksFor};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ShowWhenRule } from "../show-when-attach.js";
|
|
1
2
|
export type ResolveFields = (data: {
|
|
2
3
|
props: Record<string, unknown>;
|
|
3
4
|
}, params: {
|
|
@@ -9,6 +10,13 @@ export declare function isNestedNode(data: {
|
|
|
9
10
|
}, params: {
|
|
10
11
|
appState?: unknown;
|
|
11
12
|
}): boolean;
|
|
13
|
+
export declare const NOT_HELD_BY_A_NODE: ShowWhenRule;
|
|
14
|
+
export declare function heldByANode(data: {
|
|
15
|
+
props?: Record<string, unknown>;
|
|
16
|
+
}, params: {
|
|
17
|
+
parent?: unknown;
|
|
18
|
+
appState?: unknown;
|
|
19
|
+
}): boolean;
|
|
12
20
|
export type DocNode = {
|
|
13
21
|
type?: unknown;
|
|
14
22
|
props?: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNodeList as u}from"efficient-easel/data";function a(
|
|
1
|
+
import{isNodeList as u}from"efficient-easel/data";function a(e,t){const n=e.props?.id,o=t.appState?.data?.content;return!Array.isArray(o)||typeof n!="string"?!0:!o.some(r=>r?.props?.id===n)}const l={not:{context:"heldByANode",is:!0}};function y(e,t){return"parent"in t?t.parent!=null:!!f(t.appState,e.props?.id)}function f(e,t){const n=e?.data?.content;if(!Array.isArray(n)||typeof t!="string")return;const o=(r,p)=>{for(const i of r){if(i?.props?.id===t)return p;for(const d of Object.values(i?.props??{}))if(u(d)){const s=o(d,i);if(s!==void 0)return s}}};return o(n,null)}export{l as NOT_HELD_BY_A_NODE,f as findParentNode,y as heldByANode,a as isNestedNode};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type RowHand } from "../content/mirror-cards.js";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
export declare function handedRowOf(appState: unknown, id: unknown): RowHand | null | undefined;
|
|
4
|
+
export declare function holdsABox(props: Props | undefined): boolean;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNodeList as i}from"efficient-easel/data";import{boxChildrenHand as l}from"../content/mirror-cards.js";import{imageTextRowsHand as a}from"../content/image-text-rows.js";import{cardCopyPlace as y,cardTemplateCardOwner as h}from"../content/card-template.js";import{BOX_TYPE as d,CONTAINER_BLOCKS_SLOT as c}from"./container-blocks.js";import{findParentNode as O}from"./passes/document-position.js";const f={ProcessSteps:{slot:"boxes",hand:a}},m=(r,n,o)=>i(r.props?.[n])&&(r.props?.[n]).some(e=>e?.props?.id===o);function R(r,n){const o=O(r,n);if(o===void 0)return;if(o!==null){const p=typeof o.type=="string"?o.type:"";if(p===d&&m(o,c,n)){const u=y(r,o.props?.id);return l(o.props??{},u?.inCopy===!0)}const t=f[p];if(t&&m(o,t.slot,n))return t.hand(o.props??{})}const e=h(r,n),s=e&&typeof e.type=="string"?f[e.type]:void 0;return s&&e?s.hand(e.props??{}):null}function _(r){const n=r?.[c];return i(n)&&n.some(o=>o?.type===d)}export{R as handedRowOf,_ as holdsABox};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A — shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` — 256 documents): 2 Grid nodes, and they are ONE Grid counted twice — the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 — equal thirds — and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n⚠️ THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned — hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. ⛔ So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says — Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS — the owner redoes live sections himself.\n\n⚠️ AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot — a Box included — refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` §3 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings — it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 — it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n⚠️ THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call — nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n • settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT — the map holds only TimelineTrack and Footprint, both AUTHORED lists\n • read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n • panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n • head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero — neither can style them — and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS — the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n⚠️ AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',Spacer:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
|
|
1
|
+
const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Masthead:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
|
|
2
|
+
|
|
3
|
+
WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
|
|
4
|
+
|
|
5
|
+
WHAT A MERCHANT LOSES: a press that lays down the two-row issue shape with its "In this issue" panel; the merchant builds it from Boxes and Text blocks. No field is lost.
|
|
6
|
+
|
|
7
|
+
1 Issue Header is stored on the US sites (journal, draft and published; read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
|
|
8
|
+
|
|
9
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding an Issue Header still renders through it and can still be edited; no document is rewritten.`,Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A — shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` — 256 documents): 2 Grid nodes, and they are ONE Grid counted twice — the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 — equal thirds — and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n⚠️ THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned — hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. ⛔ So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says — Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS — the owner redoes live sections himself.\n\n⚠️ AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot — a Box included — refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` §3 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings — it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 — it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n⚠️ THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call — nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n • settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT — the map holds only TimelineTrack and Footprint, both AUTHORED lists\n • read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n • panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n • head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero — neither can style them — and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS — the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n⚠️ AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',Spacer:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
|
|
2
10
|
|
|
3
11
|
WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` §5 holds it.
|
|
4
12
|
|
|
@@ -32,4 +40,14 @@ WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value
|
|
|
32
40
|
|
|
33
41
|
WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
|
|
34
42
|
|
|
35
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,
|
|
43
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`,StatsParagraph:`Lewis, 2026-10-10 (approved): one Stats holds Stats and Stats with Text. Its head (eyebrow, heading, body) and each number's Prefix, Unit, Superscript, Label, "Use accent color" and text go into Stats; Card style Table (the old Stats with Text) or List (the old Stats). 2026-10-27: no Number block, the cards are Box + Text. Retired when the two became one Stats (2026-11-06).
|
|
44
|
+
|
|
45
|
+
WHAT REPLACES IT: a Stats press, a Box of real parts: three head Texts, then a Stats Box holding ONE Card list, Card style Table. Each number is a row of the Card list; its card is a figure Text (the prefix and number typed in it, the unit marked \`==_yr_==\`, which draws the section theme's Main colour; a whole number in that colour is \`==_8_==\`), a superscript Text beside it, a label Text and a body Text, each showing its row's field, and a row may link its own live number. The Stats Box's Card style row (Table / List) writes the Box's Gap and the card's own Border, Padding and Height.
|
|
46
|
+
|
|
47
|
+
WHAT A MERCHANT LOSES: the numbers do not count up (the Text block's Count up numbers setting is its own change, held); the figure has no tabular numbers; a unit is not a lighter weight than its number; rows of four stack below 800px, not two columns from 1100px.
|
|
48
|
+
|
|
49
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Stats with Text still renders through it and can still be edited; no document is rewritten (owner 2026-11-06: old sites stay as they are).`,Testimonials:"Lewis, 2026-10-10 (section-merges.md group 6, approved): Testimonials goes into Reviews, whose Review content is Manual (typed quotes) or Reviews (the store's approved reviews), with a product choice in place of the old Design code. Retired by card [MERGE] Remaining Section Merges (2026-11-06), after Reviews took typed quotes and a card template (efficient-storefront-blocks #242) and the product choice (#359).\n\nWHAT REPLACES IT: Reviews with Review content set to Manual. Every Testimonials key has the same key there: `eyebrow`, `eyebrowLook`, `title`, `items[]` (`quote`, `name`, `role`), `columns` 1-3 and `headPlacement` (both split their head). A typed review also has a `title` and a `rating`, empty for a quote that has none.\n\nWHAT A MERCHANT LOSES on a NEW quote list: nothing this section had. Reviews is in the service set where this section was general; no host narrows the sets (2026-11-06).\n\nNO CONVERTER ROW HERE: its Box row is efficient-storefront-blocks' (`section-to-box-rows-reviews`, OFF). 0 Testimonials nodes on the US sites, draft or published (read only, 2026-11-06). Old sites stay as they are (owner, 2026-11-06).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Testimonials anywhere still renders through it and can still be edited; no document is rewritten.",SubscribeBlogs:"card 66396 — folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it.",RelatedProducts:`Owner, 2026-11-06 (plan productgrid-card-template-2026-11-06, inovit row 19): a Product Grid with "Show the current product's related" on IS the related grid, so offering both asked a merchant to choose between two names for one section.
|
|
50
|
+
|
|
51
|
+
WHAT REPLACES IT: Product Grid, bound to the current product. Both draw every card through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
|
|
52
|
+
|
|
53
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Related Products node is read as that grid by the host (\`relatedToGrid\`) and draws the same cards; no document is rewritten. Its footnote is the one value the grid has no home for.`},u=["Grid","Spacer"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ArticleBody:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",RelatedProducts:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function b(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const g=a("general"),T=a("commerce"),w=a("service"),d="Flex",s="Box",E=`${s}es`;function c(e){return e==="section"?"Blank section":s}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,E as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,g as GENERAL_BLOCKS,d as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,b as blockSetOf,a as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it — a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker — make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"Customer photos in a card grid with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip — small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero — image beside price, bullets and a buy button.",SpecTable:"A spec sheet — labeled rows of product specifications.",ProcessSteps:"A heading over columns of image, title, blurb and specs.",DetailRows:"Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table — per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel — items, totals and a note.",DeliveryOptions:"Delivery tiers as cards — name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart — bars, line or donut — drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card — spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section — eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones — company history or roadmap.",Footprint:"A world map of your locations with a legend — designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid — the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal…).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article — big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A
|
|
1
|
+
const e={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it — a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker — make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"Customer photos in a card grid with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip — small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero — image beside price, bullets and a buy button.",SpecTable:"A spec sheet — labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows — eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table — per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres — image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row — the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel — items, totals and a note.",DeliveryOptions:"Delivery tiers as cards — name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart — bars, line or donut — drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card — spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section — eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones — company history or roadmap.",Footprint:"A world map of your locations with a legend — designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid — the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal…).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article — big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar to switch between documents.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers — years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form — submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};export{e as SECTION_DESCRIPTIONS};
|
|
@@ -5,6 +5,9 @@ export declare const BOX: Props;
|
|
|
5
5
|
export declare const INNER_BOX: Props;
|
|
6
6
|
export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone?: number) => Props;
|
|
7
7
|
export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
|
|
8
|
+
export declare const LABEL_FACE: Readonly<Props>;
|
|
9
|
+
export declare const labelLook: (px: number, pxPhone?: number) => Props;
|
|
10
|
+
export declare const labelStyle: (px: number, pxPhone?: number) => Props;
|
|
8
11
|
export type BlockSeed = {
|
|
9
12
|
type: string;
|
|
10
13
|
props?: Props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NESTED_BOX_PADDING as
|
|
1
|
+
import{NESTED_BOX_PADDING as a}from"../content/box-layout.js";import{TextMeta as g}from"./blocks/general/Text/meta.js";const{text:B,tag:L,...l}=g.defaultProps,x=l,T={...x,tone:"dim"},P={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...P,direction:"column",...a},A=(t,o=t,n=t,e=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:n,sectionPaddingRightPhone:e,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:e}),f=(t,o,n,e)=>({sizeToken:{step:t,px:o,...e?{stepPhone:e}:{},...n?{pxPhone:n}:{}}}),i={case:"upper"},m={textStyle:"body-5",...i},u=(t,o)=>({...f("label",t,o),letterSpacing:.2,...i}),N=(t,o)=>({...m,...u(t,o)});function E(t,o,n=""){return t.map((e,s)=>{const r=n?`${n}.${s}`:String(s),c={...e.props??{}};for(const[p,d]of Object.entries(e.slots??{}))c[p]=E(d,o,r);return{type:e.type,props:{...c,id:o(e.type,r)}}})}export{P as BOX,T as DIM,_ as INNER_BOX,m as LABEL_FACE,x as TEXT,A as boxPadding,u as labelLook,N as labelStyle,E as seedNodes,f as token};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{LABEL_FACE as t}from"./seed-parts.js";const a=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),l=()=>({_partStyles:{text:{...t,color:"accent",letterSpacing:.3,lineHeight:1.5}}});export{a as headingTextSeed,l as labelTextSeed};
|