efficient-web-builder 68.2.0 → 69.1.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 +46 -0
- package/dist/editor/components/useSocialSettings.d.ts +2 -2
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +1 -0
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/document/passes/settings-groups.js +1 -1
- package/dist/format/lib/document/section-catalog.d.ts +1 -0
- package/dist/format/lib/document/section-catalog.js +8 -2
- package/dist/format/lib/document/seed-parts.d.ts +1 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +1 -0
- package/dist/format/lib/editor-words-catalogue.js +1 -1
- package/dist/format/lib/sections/integrations-rows.d.ts +3 -0
- package/dist/format/lib/sections/integrations-rows.js +1 -0
- package/dist/format/lib/sections/logo-look.d.ts +1 -1
- package/dist/format/lib/sections/logo-look.js +1 -1
- package/dist/format/lib/source-rules/motion-vars-from-the-shell.js +3 -3
- package/dist/format/lib/source-rules/one-alignment-row.js +3 -3
- package/dist/format/lib/source-rules/one-block-box-word-map.d.ts +9 -0
- package/dist/format/lib/source-rules/one-block-box-word-map.js +13 -0
- package/dist/format/lib/source-rules/one-items-align-map.js +4 -7
- package/dist/format/lib/source-rules/one-loop-module.js +2 -2
- package/dist/format/lib/source-rules/one-page-theme-reader.js +2 -2
- package/dist/format/lib/source-rules/support/align-word-rule.d.ts +5 -0
- package/dist/format/lib/source-rules/support/align-word-rule.js +4 -0
- package/dist/format/lib/source-rules/support/exemptions.d.ts +2 -0
- package/dist/format/lib/source-rules/support/exemptions.js +1 -0
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/InBoxContext.d.ts +1 -0
- package/dist/render/components/IntegrationsSection.js +1 -1
- package/dist/render/components/Logos.d.ts +4 -0
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/Ticker.js +1 -1
- package/dist/render/lib/animation/LoopTrack.d.ts +1 -1
- package/dist/render/lib/animation/LoopTrack.js +1 -1
- package/dist/render/lib/animation/loop-fill.d.ts +9 -0
- package/dist/render/lib/animation/loop-fill.js +1 -0
- 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-integrations.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-integrations.js +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/passes/cell-width.d.ts +0 -1
- package/dist/render/lib/document/passes/cell-width.js +1 -1
- package/dist/render/lib/media.d.ts +0 -1
- package/dist/render/lib/media.js +1 -1
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +4 -6
- package/dist/render/components/integrationIcons.d.ts +0 -2
- package/dist/render/components/integrationIcons.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 69.1.0 - 2026-11-15
|
|
4
|
+
|
|
5
|
+
From main at `2ee511c3`: #755, #757, #758, #759. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.3.0` and `efficient-shell` `^13.3.0`. New exports only. No stored key or value moves.
|
|
6
|
+
|
|
7
|
+
**For hosts:**
|
|
8
|
+
- storefront-blocks and storefront: import `ALIGN_TABLE_WORDS` from `efficient-web-builder/format/lib/content/box-layout` and drop their own copy of the align words (each its own small PR, #758). They can add the new `oneBlockBoxWordMap` source rule to their rule runs; the storefront-blocks `test-items-align-home-import.tsx` §2b check moves into it (#759).
|
|
9
|
+
- No step is required to take this release.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **One exported list of align-table words** (#758): `ALIGN_TABLE_WORDS` in `lib/content/box-layout`, every key of `BOX_ALIGN_CLASS` and block-align `BLOCK_ALIGN_TEXT`, once each.
|
|
14
|
+
- **One home for a block word's box word** (#759): new source rule `format/lib/source-rules/one-block-box-word-map` (`oneBlockBoxWordMap`, `OneBlockBoxWordMapOptions`) fails a typed block word -> box word pair and a `BOX_ALIGN_CLASS` read by a typed box word. New support modules `source-rules/support/align-word-rule` (`assertPlainWords`, `LEADS`, `findingsWith`, `exemptionChecks`) and `source-rules/support/exemptions` (`checkExemptionsStillHere`). `section-to-box-rows-editorial` `splitItems` reads `BLOCK_ALIGN_BOX_WORD` (same words out for every stored value).
|
|
15
|
+
- **Loop fill exports** (#755): `render/lib/animation/loop-fill` (`loopFillCount`, `loopFillSeconds`, `useLoopFill`, `LOOP_FILL_MAX`).
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **A scrolling Box row fills its band with no empty space** (#755): each half of a Loop › Marquee track holds as many copies as cover the band; the run is seconds × copies, so the speed in px/s does not change. The server still draws 2 copies (the same bytes); every copy after the first is `aria-hidden` and `inert`. The old Scrolling Bar (`components/Ticker`) uses the same rule and no longer jumps once a loop; its server bytes do not change.
|
|
20
|
+
|
|
21
|
+
### Internal
|
|
22
|
+
|
|
23
|
+
- Build and test against efficient-easel 34.3.2 (#757): dev range only; the peer stays `^34.3.0`.
|
|
24
|
+
|
|
25
|
+
## 69.0.0 - 2026-11-14
|
|
26
|
+
|
|
27
|
+
From main at `5f8f035a`: #752. A major: #752 carries `!`. The `efficient-shell` peer moves `^13.0.0` -> `^13.3.0`; the `simple-icons` peer is removed. No stored key or value moves; stored Integrations bands draw the same chip as the new Chips look.
|
|
28
|
+
|
|
29
|
+
### BREAKING
|
|
30
|
+
|
|
31
|
+
- **Peers** (#752): install efficient-shell 13.3.0 or later (the first shell with `efficient-shell/icons/brands`). `simple-icons` is no longer a peer: a host that installed it only for web-builder can drop it.
|
|
32
|
+
- **Removed exports** (#752): `BOX_BLOCK_KEYS` (`lib/document/passes/cell-width`, `@deprecated` since 68.2.0) and `hasAv1Variant` (`lib/media`). 0 callers outside this repository.
|
|
33
|
+
- **Removed file** (#752): `dist/render/components/integrationIcons.{js,d.ts}` (REMOVALS 68.2.0 / 69.0.0). Do not import `components/integrationIcons`; brand marks come from `efficient-shell/icons/brands`.
|
|
34
|
+
|
|
35
|
+
**For hosts:**
|
|
36
|
+
- storefront-blocks: the peer `efficient-web-builder ^68.2.0` must be widened (a small blocks PR) before a host takes 69.0.0; its dev install moves to 69.0.0 with efficient-shell 13.3.0.
|
|
37
|
+
- storefront: take 69.0.0 with efficient-shell 13.3.0 and a vendored blocks copy whose peer takes 69; drop `simple-icons` if only web-builder needed it.
|
|
38
|
+
- efficient-admin-portal: none beyond the version and efficient-shell 13.3.0.
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- **Integrations Grid presses a Box of real parts** (#752): header, three looping Logos rows and a stat, all real parts. New exports `INTEGRATIONS_SECTION_TO_BOX`, `integrationsPressStarter`; `BoxCell` takes `loops?` (a Logos wall in a scrolling Box draws one line). Integrations is now a retired page type (stored nodes still draw, with the Design and Animation tabs).
|
|
43
|
+
- **Logo style "Chips"** (#752): a bordered chip with the brand mark (from `efficient-shell/icons/brands`) and the app name. One logo chip part (`LogoChip`, class `sf-logo-chip`) for the Cards and Chips looks.
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- **Type scale** (#752): the chip name falls back to 14 px (was 13); new Integrations, Chart and Mockup presses use body 16 (was 15). Stored pages and sites with a body size token do not change.
|
|
48
|
+
|
|
3
49
|
## 68.2.0 - 2026-11-14
|
|
4
50
|
|
|
5
51
|
From main at `ea8dd417`: #750, #751. A minor: no `!`, no export is removed, the peers stay `efficient-easel` `^34.3.0` and `efficient-shell` `^13.0.0`. New exports only. No stored key or value moves; no look change on stored pages.
|
|
@@ -7,8 +7,8 @@ export declare function useSocialSettings({ token, siteId, enabled, }: {
|
|
|
7
7
|
siteId: string | null;
|
|
8
8
|
enabled: boolean;
|
|
9
9
|
}): {
|
|
10
|
-
links: Partial<Record<"
|
|
11
|
-
rows: Record<"
|
|
10
|
+
links: Partial<Record<"line" | "x" | "youtube" | "instagram" | "facebook" | "tiktok" | "linkedin" | "pinterest" | "whatsapp" | "telegram" | "wechat", string>>;
|
|
11
|
+
rows: Record<"line" | "x" | "youtube" | "instagram" | "facebook" | "tiktok" | "linkedin" | "pinterest" | "whatsapp" | "telegram" | "wechat", SocialRowState>;
|
|
12
12
|
canSave: boolean;
|
|
13
13
|
saveLink: (platform: SocialPlatform, value: string) => Promise<SocialSaveOutcome>;
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as O,ColumnsIcon as c,HeightIcon as g,PaddingYIcon as p,StylesIcon as _}from"efficient-easel/icons";import{plainText as d,textarea as S,toggle as L,upload as h,withPanelOnly as u}from"../../../controls.js";import{VIEW_KEY_ACCESS as f,group as n}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentFields as C,iconPickerRow as E,slider as r}from"../../../box-fields.js";import{LAYOUT_CELL as P,LOGO_LOOK_PICTURES as W}from"../../../choice-pictures.js";import{DEFAULT_LOGO_LOOK as I,LOGO_LOOK_OPTIONS as R}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as H,OWN_BOX_ROWS_SHOW_WHEN as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as y,withShowWhen as t}from"../../../../../../render/lib/document/show-when.js";import{blockSourceField as b,blockSourceFields as k,NO_BLOCK_SOURCE as B}from"../../../block-source-fields.js";import{BLOCK_SOURCE_PROP as i}from"../../../../../../format/lib/content/block-sources.js";import{seedLogosTemplate as T}from"../../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{LOGOS_PH as w,LogosSlots as a}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const A=["items","heading","bandPadding"],x=["look"],D={field:"bandPadding",set:!0},F={field:i,set:!0},m={not:{field:"look",is:"chips"}},K=y({_gContent:n("Content"),dataSource:b("Logo content","Manual"),heading:S("Heading",w.heading),items:{type:"array",label:"Logos",arrayFields:{src:h("Image","image/*"),alt:u(d("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:t(a.logos,B),template:t(a.template,F),_gStyle:n("Style"),columns:r("Columns",e(c,{}),3,6,1,5),logoHeight:t(r("Logo height",e(g,{}),16,72,2,28,"px"),m),bandPadding:t(r("Space above and below",e(p,{}),16,120,4,40,"px"),D),grayscale:t(L("Black and white logos",!0,e(O,{})),m),look:E("Logo style",e(_,{}),R.map(o=>({...o,picture:W[o.value]})),I,{columns:2,cell:P}),...C("align",{access:f})},[[A,H],[x,N]]),oo={fields:K,resolveFields:(o,{fields:l})=>k("Logos",l,o.props,{hides:["logos"]}),resolveData:(o,l)=>{if(!l?.changed?.[i])return o;const s=T(o.props);return s===o.props?o:{...o,props:s}}};export{oo as LogosFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "HostPart" | "PostCard" | "HeroSlide" | "HeroGroup"
|
|
2
|
-
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "HostPart" | "PostCard" | "HeroSlide" | "HeroGroup"
|
|
1
|
+
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "Integrations" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "HostPart" | "PostCard" | "HeroSlide" | "HeroGroup", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
2
|
+
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "Integrations" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "HostPart" | "PostCard" | "HeroSlide" | "HeroGroup", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{NoSymbolIcon as k}from"efficient-easel/icons";import{useId as I}from"react";import{STRIPE_GEOMETRY as S}from"../../../format/lib/sections/divider-style.js";import{GALLERY_COLUMNS_PHONE as C}from"../../../format/lib/content/gallery-layout.js";const p=44,E=28;function y({children:n}){return t("svg",{width:p,height:E,viewBox:`0 0 ${p} ${E}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:w,w:l,t:o=2,faint:a=!1})=>t("rect",{x:n,y:w,width:l,height:o,rx:o/2,stroke:"none",opacity:a?.45:1}),r=({x:n,y:w,w:l,h:o})=>t("rect",{x:n,y:w,width:l,height:o,rx:2,fill:"none"}),c=({x:n,y:w})=>t("circle",{cx:n,cy:w,r:1.75,stroke:"none"}),i=({x1:n,y1:w,x2:l,y2:o})=>t("line",{x1:n,y1:w,x2:l,y2:o});function N(n){const o=20/C,a=5,h=1,T=[];let u=0,m=0,d=0;for(const[s,f]of n)u+s>C&&(m+=d*(a+h),u=0,d=0),T.push({x:12+u*o,y:m,w:s*o-h,h:f*a+(f-1)*h}),u+=s,d=Math.max(d,f);const P=m+d*(a+h)-h,R=(E-P)/2;return t(y,{children:T.map((s,f)=>t("rect",{x:s.x,y:R+s.y,width:s.w,height:s.h,rx:1,stroke:"none",opacity:.6},f))})}const b={bars:e(y,{children:[t(x,{x:8,y:14,w:5,t:10}),t(x,{x:16,y:8,w:5,t:16}),t(x,{x:24,y:18,w:5,t:6}),t(x,{x:32,y:11,w:5,t:13})]}),line:e(y,{children:[t("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),t(i,{x1:6,y1:25,x2:38,y2:25})]}),donut:e(y,{children:[t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function v(n){if(n==="none")return t("span",{style:{display:"flex",width:p,height:E,alignItems:"center",justifyContent:"center"},children:t(k,{size:20})});if(n==="line")return t(y,{children:t(i,{x1:4,y1:14,x2:40,y2:14})});const{ink:w,period:l}=S[n],o=.4,a=[];for(let h=-12;h<p;h+=l*o)a.push(t("polygon",{points:`${h},22 ${h+w*o},22 ${h+w*o+10},6 ${h+10},6`,stroke:"none"},h));return t(g,{children:a})}function g({children:n}){const w=`sf-div-${I().replace(/[^\w-]/g,"")}`;return e(y,{children:[t("clipPath",{id:w,children:t("rect",{x:4,y:6,width:36,height:16,rx:2})}),t("g",{clipPath:`url(#${w})`,children:n})]})}const _=({x:n,y:w,w:l,h:o})=>t("rect",{x:n,y:w,width:l,height:o,rx:2,stroke:"none",opacity:.3}),D={tabs:e(y,{children:[t(x,{x:5,y:10,w:9}),t(x,{x:18,y:10,w:9,faint:!0}),t(x,{x:31,y:10,w:9,faint:!0}),t(i,{x1:4,y1:17,x2:40,y2:17}),t(x,{x:4,y:16,w:11,t:2})]}),largeTabs:e(y,{children:[t(i,{x1:4,y1:5,x2:40,y2:5}),t(c,{x:7,y:10}),t(x,{x:11,y:9,w:16}),t(x,{x:31,y:9,w:9,faint:!0}),t(i,{x1:4,y1:14,x2:40,y2:14}),t(c,{x:7,y:19}),t(x,{x:11,y:18,w:13,faint:!0}),t(x,{x:31,y:18,w:9,faint:!0}),t(i,{x1:4,y1:23,x2:40,y2:23})]})},$={card:e(y,{children:[t(r,{x:10,y:3,w:24,h:22}),t(_,{x:12,y:5,w:20,h:10}),t(x,{x:13,y:18,w:16}),t(x,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:e(y,{children:[t(_,{x:10,y:3,w:24,h:22}),t(r,{x:10,y:3,w:24,h:22}),t(x,{x:13,y:17,w:16}),t(x,{x:13,y:21,w:11,t:1.5})]})},W={cards:e(y,{children:[t(r,{x:3,y:5,w:11,h:18}),t(r,{x:17,y:5,w:11,h:18}),t(r,{x:31,y:5,w:11,h:18}),t(x,{x:5,y:9,w:7}),t(x,{x:19,y:9,w:7}),t(x,{x:33,y:9,w:7}),t(x,{x:5,y:13,w:5,t:1.5,faint:!0}),t(x,{x:19,y:13,w:5,t:1.5,faint:!0}),t(x,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":e(y,{children:[t("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),t(x,{x:5,y:18,w:7}),t(x,{x:19,y:18,w:7}),t(x,{x:33,y:18,w:7})]})},j={table:e(y,{children:[t(r,{x:3,y:5,w:38,h:18}),t(i,{x1:15.7,y1:5,x2:15.7,y2:23}),t(i,{x1:28.3,y1:5,x2:28.3,y2:23}),t("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),t(x,{x:6,y:9,w:6,t:3}),t(x,{x:19,y:9,w:6,t:3}),t(x,{x:31,y:9,w:6,t:3}),t(x,{x:6,y:18,w:7,t:1.5,faint:!0}),t(x,{x:19,y:18,w:7,t:1.5,faint:!0}),t(x,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:e(y,{children:[t(i,{x1:3,y1:7,x2:13,y2:7}),t(i,{x1:17,y1:7,x2:27,y2:7}),t(i,{x1:31,y1:7,x2:41,y2:7}),t(x,{x:3,y:11,w:6,t:3}),t(x,{x:17,y:11,w:6,t:3}),t(x,{x:31,y:11,w:6,t:3}),t(x,{x:3,y:17,w:8,t:1.5,faint:!0}),t(x,{x:17,y:17,w:8,t:1.5,faint:!0}),t(x,{x:31,y:17,w:8,t:1.5,faint:!0})]})},G={plain:e(y,{children:[t(x,{x:5,y:12,w:9,t:4}),t(x,{x:18,y:12,w:9,t:4}),t(x,{x:31,y:12,w:9,t:4})]}),cards:e(y,{children:[t(r,{x:3,y:7,w:11,h:14}),t(r,{x:17,y:7,w:11,h:14}),t(r,{x:31,y:7,w:11,h:14}),t(x,{x:5,y:13,w:7}),t(x,{x:19,y:13,w:7}),t(x,{x:33,y:13,w:7})]}),marks:e(y,{children:[t(x,{x:8,y:12,w:6,t:4}),t(x,{x:17,y:12,w:6,t:4}),t(x,{x:26,y:12,w:6,t:4}),t(x,{x:35,y:12,w:3,t:4})]})},H={overlay:e(y,{children:[t(_,{x:4,y:3,w:36,h:22}),t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:15,w:18,t:3}),t(x,{x:8,y:20,w:12})]}),stacked:e(y,{children:[t(x,{x:4,y:3,w:18,t:3}),t(x,{x:4,y:8,w:12}),t(_,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},Y={split:e(y,{children:[t(x,{x:4,y:6,w:12,t:3}),t(x,{x:4,y:11,w:9,faint:!0}),t(i,{x1:20,y1:4,x2:20,y2:24}),t(x,{x:24,y:6,w:16}),t(x,{x:24,y:10,w:11,faint:!0}),t(x,{x:24,y:17,w:16}),t(x,{x:24,y:21,w:11,faint:!0})]}),spine:e(y,{children:[t(i,{x1:9,y1:4,x2:9,y2:24}),t(c,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(c,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(c,{x:9,y:20}),t(x,{x:14,y:19,w:24})]}),alternating:e(y,{children:[t(i,{x1:22,y1:4,x2:22,y2:24}),t(c,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(c,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(c,{x:22,y:20}),t(x,{x:4,y:19,w:14})]}),track:e(y,{children:[t(i,{x1:4,y1:12,x2:40,y2:12}),t(c,{x:8,y:12}),t(c,{x:22,y:12}),t(c,{x:36,y:12}),t(x,{x:4,y:17,w:8}),t(x,{x:18,y:17,w:8}),t(x,{x:32,y:17,w:8}),t(x,{x:4,y:21,w:6,faint:!0}),t(x,{x:18,y:21,w:6,faint:!0}),t(x,{x:32,y:21,w:6,faint:!0})]})},z={standard:e(y,{children:[t(x,{x:4,y:5,w:10,t:1.5,faint:!0}),t(x,{x:4,y:10,w:28,t:4}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:24,faint:!0})]}),editorial:e(y,{children:[t(x,{x:4,y:5,w:5,t:1.5,faint:!0}),t(x,{x:4,y:10,w:20,t:5}),t(x,{x:28,y:11,w:12,faint:!0}),t(x,{x:28,y:15,w:9,faint:!0}),t(i,{x1:4,y1:22,x2:40,y2:22})]}),simple:e(y,{children:[t(x,{x:4,y:8,w:10,t:1.5,faint:!0}),t(x,{x:4,y:13,w:26,t:4})]}),statement:e(y,{children:[t(x,{x:4,y:6,w:36,t:7}),t(x,{x:4,y:16,w:24,t:7})]}),natural:e(y,{children:[t(x,{x:4,y:8,w:22,t:3}),t(x,{x:4,y:15,w:34,faint:!0}),t(x,{x:4,y:19,w:28,faint:!0})]}),essay:e(y,{children:[t(x,{x:4,y:5,w:24,t:4}),t(x,{x:4,y:13,w:36,faint:!0}),t(x,{x:4,y:17,w:36,faint:!0}),t(x,{x:4,y:21,w:30,faint:!0})]})},B={"spec-card":e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:14}),t(r,{x:8,y:12,w:8,h:9}),t(r,{x:18,y:12,w:8,h:9}),t(r,{x:28,y:12,w:8,h:9})]}),fitment:e(y,{children:[t(r,{x:4,y:4,w:10,h:5}),t(r,{x:16,y:4,w:10,h:5}),t(r,{x:28,y:4,w:10,h:5}),t(x,{x:4,y:14,w:34,faint:!0}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:34,faint:!0})]}),portal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:10,t:4}),t(x,{x:8,y:14,w:16,faint:!0}),t(x,{x:26,y:18,w:10,t:4})]}),kanban:e(y,{children:[t(r,{x:4,y:3,w:10,h:22}),t(r,{x:17,y:3,w:10,h:22}),t(r,{x:30,y:3,w:10,h:22}),t(x,{x:6,y:6,w:6,t:4}),t(x,{x:6,y:12,w:6,t:4}),t(x,{x:19,y:6,w:6,t:4}),t(x,{x:32,y:6,w:6,t:4}),t(x,{x:32,y:12,w:6,t:4})]}),claims:e(y,{children:[t(x,{x:4,y:5,w:12,faint:!0}),t(x,{x:20,y:4,w:18,t:4}),t(x,{x:4,y:12,w:12,faint:!0}),t(x,{x:20,y:11,w:10,t:4}),t(x,{x:4,y:19,w:12,faint:!0}),t(x,{x:20,y:18,w:14,t:4})]}),browser:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(i,{x1:4,y1:8,x2:40,y2:8}),t(x,{x:8,y:11,w:28,t:5,faint:!0}),t(r,{x:8,y:18,w:8,h:4}),t(r,{x:18,y:18,w:8,h:4}),t(r,{x:28,y:18,w:8,h:4})]}),terminal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t("polyline",{points:"8,9 11,11 8,13",fill:"none"}),t(x,{x:13,y:10,w:14}),t(x,{x:8,y:16,w:22,faint:!0}),t(x,{x:8,y:20,w:16,faint:!0})]})},K={width:"5.75rem",height:"3.75rem",words:!0},F={width:"8.5rem",height:"3.75rem",words:!0},X={columns:e(y,{children:[t(r,{x:3,y:4,w:11,h:8}),t(r,{x:17,y:4,w:11,h:8}),t(r,{x:31,y:4,w:11,h:8}),t(x,{x:3,y:16,w:9}),t(x,{x:17,y:16,w:9}),t(x,{x:31,y:16,w:9}),t(x,{x:3,y:20,w:7,t:1.5,faint:!0}),t(x,{x:17,y:20,w:7,t:1.5,faint:!0}),t(x,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":e(y,{children:[t(r,{x:6,y:3,w:14,h:9}),t(x,{x:24,y:5,w:14}),t(x,{x:24,y:9,w:10,t:1.5,faint:!0}),t(r,{x:24,y:16,w:14,h:9}),t(x,{x:6,y:18,w:14}),t(x,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":e(y,{children:[t(r,{x:24,y:3,w:14,h:9}),t(x,{x:6,y:5,w:14}),t(x,{x:6,y:9,w:10,t:1.5,faint:!0}),t(r,{x:6,y:16,w:14,h:9}),t(x,{x:24,y:18,w:14}),t(x,{x:24,y:22,w:10,t:1.5,faint:!0})]})};export{j as CARD_LIST_STYLE_PICTURES,W as CARD_STYLE_PICTURES,b as CHART_PICTURES,X as IMAGE_TEXT_ARRANGEMENT_PICTURES,H as INTRO_BLEED_PICTURES,K as LAYOUT_CELL,G as LOGO_LOOK_PICTURES,F as LONG_WORD_CELL,B as MOCKUP_PICTURES,$ as POST_CARD_PICTURES,z as SECTION_HEAD_PICTURES,D as TAB_SHAPE_PICTURES,Y as TIMELINE_PICTURES,v as dividerPicture,N as galleryPhonePicture};
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{NoSymbolIcon as k}from"efficient-easel/icons";import{useId as I}from"react";import{STRIPE_GEOMETRY as S}from"../../../format/lib/sections/divider-style.js";import{GALLERY_COLUMNS_PHONE as C}from"../../../format/lib/content/gallery-layout.js";const p=44,E=28;function y({children:n}){return t("svg",{width:p,height:E,viewBox:`0 0 ${p} ${E}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:w,w:l,t:o=2,faint:a=!1})=>t("rect",{x:n,y:w,width:l,height:o,rx:o/2,stroke:"none",opacity:a?.45:1}),r=({x:n,y:w,w:l,h:o})=>t("rect",{x:n,y:w,width:l,height:o,rx:2,fill:"none"}),c=({x:n,y:w})=>t("circle",{cx:n,cy:w,r:1.75,stroke:"none"}),i=({x1:n,y1:w,x2:l,y2:o})=>t("line",{x1:n,y1:w,x2:l,y2:o});function N(n){const o=20/C,a=5,h=1,T=[];let u=0,m=0,d=0;for(const[s,f]of n)u+s>C&&(m+=d*(a+h),u=0,d=0),T.push({x:12+u*o,y:m,w:s*o-h,h:f*a+(f-1)*h}),u+=s,d=Math.max(d,f);const P=m+d*(a+h)-h,R=(E-P)/2;return t(y,{children:T.map((s,f)=>t("rect",{x:s.x,y:R+s.y,width:s.w,height:s.h,rx:1,stroke:"none",opacity:.6},f))})}const b={bars:e(y,{children:[t(x,{x:8,y:14,w:5,t:10}),t(x,{x:16,y:8,w:5,t:16}),t(x,{x:24,y:18,w:5,t:6}),t(x,{x:32,y:11,w:5,t:13})]}),line:e(y,{children:[t("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),t(i,{x1:6,y1:25,x2:38,y2:25})]}),donut:e(y,{children:[t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),t("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function v(n){if(n==="none")return t("span",{style:{display:"flex",width:p,height:E,alignItems:"center",justifyContent:"center"},children:t(k,{size:20})});if(n==="line")return t(y,{children:t(i,{x1:4,y1:14,x2:40,y2:14})});const{ink:w,period:l}=S[n],o=.4,a=[];for(let h=-12;h<p;h+=l*o)a.push(t("polygon",{points:`${h},22 ${h+w*o},22 ${h+w*o+10},6 ${h+10},6`,stroke:"none"},h));return t(g,{children:a})}function g({children:n}){const w=`sf-div-${I().replace(/[^\w-]/g,"")}`;return e(y,{children:[t("clipPath",{id:w,children:t("rect",{x:4,y:6,width:36,height:16,rx:2})}),t("g",{clipPath:`url(#${w})`,children:n})]})}const _=({x:n,y:w,w:l,h:o})=>t("rect",{x:n,y:w,width:l,height:o,rx:2,stroke:"none",opacity:.3}),D={tabs:e(y,{children:[t(x,{x:5,y:10,w:9}),t(x,{x:18,y:10,w:9,faint:!0}),t(x,{x:31,y:10,w:9,faint:!0}),t(i,{x1:4,y1:17,x2:40,y2:17}),t(x,{x:4,y:16,w:11,t:2})]}),largeTabs:e(y,{children:[t(i,{x1:4,y1:5,x2:40,y2:5}),t(c,{x:7,y:10}),t(x,{x:11,y:9,w:16}),t(x,{x:31,y:9,w:9,faint:!0}),t(i,{x1:4,y1:14,x2:40,y2:14}),t(c,{x:7,y:19}),t(x,{x:11,y:18,w:13,faint:!0}),t(x,{x:31,y:18,w:9,faint:!0}),t(i,{x1:4,y1:23,x2:40,y2:23})]})},$={card:e(y,{children:[t(r,{x:10,y:3,w:24,h:22}),t(_,{x:12,y:5,w:20,h:10}),t(x,{x:13,y:18,w:16}),t(x,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:e(y,{children:[t(_,{x:10,y:3,w:24,h:22}),t(r,{x:10,y:3,w:24,h:22}),t(x,{x:13,y:17,w:16}),t(x,{x:13,y:21,w:11,t:1.5})]})},W={cards:e(y,{children:[t(r,{x:3,y:5,w:11,h:18}),t(r,{x:17,y:5,w:11,h:18}),t(r,{x:31,y:5,w:11,h:18}),t(x,{x:5,y:9,w:7}),t(x,{x:19,y:9,w:7}),t(x,{x:33,y:9,w:7}),t(x,{x:5,y:13,w:5,t:1.5,faint:!0}),t(x,{x:19,y:13,w:5,t:1.5,faint:!0}),t(x,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":e(y,{children:[t("path",{d:"M8.5 7l3 3-3 3-3-3zM22.5 7l3 3-3 3-3-3zM36.5 7l3 3-3 3-3-3z",stroke:"none"}),t(x,{x:5,y:18,w:7}),t(x,{x:19,y:18,w:7}),t(x,{x:33,y:18,w:7})]})},j={table:e(y,{children:[t(r,{x:3,y:5,w:38,h:18}),t(i,{x1:15.7,y1:5,x2:15.7,y2:23}),t(i,{x1:28.3,y1:5,x2:28.3,y2:23}),t("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),t(x,{x:6,y:9,w:6,t:3}),t(x,{x:19,y:9,w:6,t:3}),t(x,{x:31,y:9,w:6,t:3}),t(x,{x:6,y:18,w:7,t:1.5,faint:!0}),t(x,{x:19,y:18,w:7,t:1.5,faint:!0}),t(x,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:e(y,{children:[t(i,{x1:3,y1:7,x2:13,y2:7}),t(i,{x1:17,y1:7,x2:27,y2:7}),t(i,{x1:31,y1:7,x2:41,y2:7}),t(x,{x:3,y:11,w:6,t:3}),t(x,{x:17,y:11,w:6,t:3}),t(x,{x:31,y:11,w:6,t:3}),t(x,{x:3,y:17,w:8,t:1.5,faint:!0}),t(x,{x:17,y:17,w:8,t:1.5,faint:!0}),t(x,{x:31,y:17,w:8,t:1.5,faint:!0})]})},G={plain:e(y,{children:[t(x,{x:5,y:12,w:9,t:4}),t(x,{x:18,y:12,w:9,t:4}),t(x,{x:31,y:12,w:9,t:4})]}),cards:e(y,{children:[t(r,{x:3,y:7,w:11,h:14}),t(r,{x:17,y:7,w:11,h:14}),t(r,{x:31,y:7,w:11,h:14}),t(x,{x:5,y:13,w:7}),t(x,{x:19,y:13,w:7}),t(x,{x:33,y:13,w:7})]}),marks:e(y,{children:[t(x,{x:8,y:12,w:6,t:4}),t(x,{x:17,y:12,w:6,t:4}),t(x,{x:26,y:12,w:6,t:4}),t(x,{x:35,y:12,w:3,t:4})]}),chips:e(y,{children:[t(r,{x:3,y:9,w:18,h:10}),t(r,{x:23,y:9,w:18,h:10}),t(c,{x:7,y:14}),t(x,{x:10,y:13,w:8}),t(c,{x:27,y:14}),t(x,{x:30,y:13,w:8})]})},H={overlay:e(y,{children:[t(_,{x:4,y:3,w:36,h:22}),t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:15,w:18,t:3}),t(x,{x:8,y:20,w:12})]}),stacked:e(y,{children:[t(x,{x:4,y:3,w:18,t:3}),t(x,{x:4,y:8,w:12}),t(_,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},Y={split:e(y,{children:[t(x,{x:4,y:6,w:12,t:3}),t(x,{x:4,y:11,w:9,faint:!0}),t(i,{x1:20,y1:4,x2:20,y2:24}),t(x,{x:24,y:6,w:16}),t(x,{x:24,y:10,w:11,faint:!0}),t(x,{x:24,y:17,w:16}),t(x,{x:24,y:21,w:11,faint:!0})]}),spine:e(y,{children:[t(i,{x1:9,y1:4,x2:9,y2:24}),t(c,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(c,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(c,{x:9,y:20}),t(x,{x:14,y:19,w:24})]}),alternating:e(y,{children:[t(i,{x1:22,y1:4,x2:22,y2:24}),t(c,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(c,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(c,{x:22,y:20}),t(x,{x:4,y:19,w:14})]}),track:e(y,{children:[t(i,{x1:4,y1:12,x2:40,y2:12}),t(c,{x:8,y:12}),t(c,{x:22,y:12}),t(c,{x:36,y:12}),t(x,{x:4,y:17,w:8}),t(x,{x:18,y:17,w:8}),t(x,{x:32,y:17,w:8}),t(x,{x:4,y:21,w:6,faint:!0}),t(x,{x:18,y:21,w:6,faint:!0}),t(x,{x:32,y:21,w:6,faint:!0})]})},z={standard:e(y,{children:[t(x,{x:4,y:5,w:10,t:1.5,faint:!0}),t(x,{x:4,y:10,w:28,t:4}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:24,faint:!0})]}),editorial:e(y,{children:[t(x,{x:4,y:5,w:5,t:1.5,faint:!0}),t(x,{x:4,y:10,w:20,t:5}),t(x,{x:28,y:11,w:12,faint:!0}),t(x,{x:28,y:15,w:9,faint:!0}),t(i,{x1:4,y1:22,x2:40,y2:22})]}),simple:e(y,{children:[t(x,{x:4,y:8,w:10,t:1.5,faint:!0}),t(x,{x:4,y:13,w:26,t:4})]}),statement:e(y,{children:[t(x,{x:4,y:6,w:36,t:7}),t(x,{x:4,y:16,w:24,t:7})]}),natural:e(y,{children:[t(x,{x:4,y:8,w:22,t:3}),t(x,{x:4,y:15,w:34,faint:!0}),t(x,{x:4,y:19,w:28,faint:!0})]}),essay:e(y,{children:[t(x,{x:4,y:5,w:24,t:4}),t(x,{x:4,y:13,w:36,faint:!0}),t(x,{x:4,y:17,w:36,faint:!0}),t(x,{x:4,y:21,w:30,faint:!0})]})},B={"spec-card":e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:14}),t(r,{x:8,y:12,w:8,h:9}),t(r,{x:18,y:12,w:8,h:9}),t(r,{x:28,y:12,w:8,h:9})]}),fitment:e(y,{children:[t(r,{x:4,y:4,w:10,h:5}),t(r,{x:16,y:4,w:10,h:5}),t(r,{x:28,y:4,w:10,h:5}),t(x,{x:4,y:14,w:34,faint:!0}),t(x,{x:4,y:18,w:34,faint:!0}),t(x,{x:4,y:22,w:34,faint:!0})]}),portal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(x,{x:8,y:7,w:10,t:4}),t(x,{x:8,y:14,w:16,faint:!0}),t(x,{x:26,y:18,w:10,t:4})]}),kanban:e(y,{children:[t(r,{x:4,y:3,w:10,h:22}),t(r,{x:17,y:3,w:10,h:22}),t(r,{x:30,y:3,w:10,h:22}),t(x,{x:6,y:6,w:6,t:4}),t(x,{x:6,y:12,w:6,t:4}),t(x,{x:19,y:6,w:6,t:4}),t(x,{x:32,y:6,w:6,t:4}),t(x,{x:32,y:12,w:6,t:4})]}),claims:e(y,{children:[t(x,{x:4,y:5,w:12,faint:!0}),t(x,{x:20,y:4,w:18,t:4}),t(x,{x:4,y:12,w:12,faint:!0}),t(x,{x:20,y:11,w:10,t:4}),t(x,{x:4,y:19,w:12,faint:!0}),t(x,{x:20,y:18,w:14,t:4})]}),browser:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t(i,{x1:4,y1:8,x2:40,y2:8}),t(x,{x:8,y:11,w:28,t:5,faint:!0}),t(r,{x:8,y:18,w:8,h:4}),t(r,{x:18,y:18,w:8,h:4}),t(r,{x:28,y:18,w:8,h:4})]}),terminal:e(y,{children:[t(r,{x:4,y:3,w:36,h:22}),t("polyline",{points:"8,9 11,11 8,13",fill:"none"}),t(x,{x:13,y:10,w:14}),t(x,{x:8,y:16,w:22,faint:!0}),t(x,{x:8,y:20,w:16,faint:!0})]})},K={width:"5.75rem",height:"3.75rem",words:!0},F={width:"8.5rem",height:"3.75rem",words:!0},X={columns:e(y,{children:[t(r,{x:3,y:4,w:11,h:8}),t(r,{x:17,y:4,w:11,h:8}),t(r,{x:31,y:4,w:11,h:8}),t(x,{x:3,y:16,w:9}),t(x,{x:17,y:16,w:9}),t(x,{x:31,y:16,w:9}),t(x,{x:3,y:20,w:7,t:1.5,faint:!0}),t(x,{x:17,y:20,w:7,t:1.5,faint:!0}),t(x,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":e(y,{children:[t(r,{x:6,y:3,w:14,h:9}),t(x,{x:24,y:5,w:14}),t(x,{x:24,y:9,w:10,t:1.5,faint:!0}),t(r,{x:24,y:16,w:14,h:9}),t(x,{x:6,y:18,w:14}),t(x,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":e(y,{children:[t(r,{x:24,y:3,w:14,h:9}),t(x,{x:6,y:5,w:14}),t(x,{x:6,y:9,w:10,t:1.5,faint:!0}),t(r,{x:6,y:16,w:14,h:9}),t(x,{x:24,y:18,w:14}),t(x,{x:24,y:22,w:10,t:1.5,faint:!0})]})};export{j as CARD_LIST_STYLE_PICTURES,W as CARD_STYLE_PICTURES,b as CHART_PICTURES,X as IMAGE_TEXT_ARRANGEMENT_PICTURES,H as INTRO_BLEED_PICTURES,K as LAYOUT_CELL,G as LOGO_LOOK_PICTURES,F as LONG_WORD_CELL,B as MOCKUP_PICTURES,$ as POST_CARD_PICTURES,z as SECTION_HEAD_PICTURES,D as TAB_SHAPE_PICTURES,Y as TIMELINE_PICTURES,v as dividerPicture,N as galleryPhonePicture};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{convertSection as P,pressesAsBox as m,SECTION_TO_BOX_PRESS as R,sectionToBoxRow as
|
|
1
|
+
import{convertSection as P,pressesAsBox as m,SECTION_TO_BOX_PRESS as R,sectionToBoxRow as S}from"../../../render/lib/sections/section-to-box.js";import{SECTION_PRESETS as _,presetFor as k}from"../../../format/lib/sections/section-presets.js";import{GENERAL_SECTION_TO_BOX as N,TEXT_PRESS_STARTERS as g}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{SECTION_CATALOG as w}from"../../../format/lib/document/section-catalog.js";import{statsBoxSeed as T,statsPressSeed as x,statsSeedRows as B}from"../../../render/lib/document/blocks/general/section-to-box-rows-stats.js";import{footerPaymentPressStarter as C,logosPressStarter as L,paymentPressStarter as A}from"../../../render/lib/document/blocks/general/section-to-box-rows-logos.js";import{cardsPressStarter as j}from"../../../render/lib/document/blocks/general/section-to-box-rows-cards.js";import{integrationsPressStarter as I}from"../../../render/lib/document/blocks/general/section-to-box-rows-integrations.js";import{pageHeaderPressStarter as X}from"../../../render/lib/document/blocks/general/section-to-box-rows-pageheader.js";import{tabBarPressStarter as v}from"../../../render/lib/document/blocks/general/section-to-box-rows-tabbar.js";import{milestoneTimelinePressStarter as D,storyTimelinePressStarter as G}from"../../../render/lib/document/blocks/general/section-to-box-rows-timeline.js";import{seedNodes as U}from"../../../format/lib/document/seed-parts.js";import{isNodeList as u}from"efficient-easel/data";import{mapEachNode as M,mapNodeLists as W}from"../../../format/lib/document/node-lists.js";import{ownEntry as a}from"../../../format/lib/own-entry.js";const Y=Object.keys(N),l={Logos:L,DocMasthead:X,DocTabs:v,Timeline:G,TimelineTrack:D},$={PaymentBadges:A,PaymentLogosBlock:C,Integrations:I};function c(t,s,r){const o={};for(const n of Object.keys(s(t.type)))o[n]=void 0;for(const[n,e]of Object.entries(t.props))o[n]=u(e)?e.map(p=>c(p,s,r)):e;return o.id=r(t.type),{type:t.type,props:o}}const E=t=>({...t?.theme?{theme:t.theme}:{},...t?.site?{site:t.site}:{},press:!0});function O(t,s,r=0,o=()=>({})){return(n,e,p)=>{const{nodes:i}=P({type:t,props:{...n(t),...o(),id:e(t)}},s,E(p));return c(i[r],n,e)}}const H={Stats:z,Cards:q};function q(){const t=S("Cards");if(!t)return null;const s=O("Cards",t,0,j);return(r,o,n)=>{const e=s(r,o,n);return{...e,props:{...e.props,name:"Cards section"}}}}function z(){const t=S("StatsParagraph");return t?(s,r,o)=>{const{nodes:n}=P({type:"StatsParagraph",props:{...s("StatsParagraph"),...x(),id:r("StatsParagraph")}},t,E(o)),e=n[0],p=u(e.props.content)?e.props.content.filter(b=>b.props?.cardStyle===void 0):[],i=d(T(B(),"table")),h=p.map(y),f=c({...e,props:{...e.props,content:[...h,i]}},s,r);return{...f,props:{...f.props,name:"Stats section"}}}:null}function y(t){return t.props?.name==="Words"?{...t,props:{...t.props,widthFitPhone:"fill"}}:u(t.props?.content)?{...t,props:{...t.props,content:t.props.content.map(y)}}:t}const d=t=>U([t],(s,r)=>`${s}-seed-${r}`)[0];function J(t,s){if(!m(t,s))return null;const r=a(H,t);if(r)return r();const o=S(t);return o?O(t,o,0,a(l,t)??a(g,t)??a($,t)):null}function K(t){return(s,r,o)=>{const n=e=>{if(e.type==="Stats"){const i=c(d(T([],"list")),s,r);return{...i,props:{...i.props,name:"Numbers"}}}const p=W(e,i=>M(i,n));return p===e?e:{type:e.type,props:p.props}};return n(t(s,r,o))}}function ut(t,s=R){const r=k(t);return r?K(r):J(t,s)}const Q=t=>w.some(s=>s.key==="structure"&&s.sections.some(r=>r.type===t));function ft(){return[...Object.keys(_),...Y.filter(t=>m(t)&&!Q(t)),...Object.keys(l).filter(t=>m(t))]}export{l as MERGE_LAYOUTS,Y as TEXT_LAYOUTS,O as conversionPreset,ut as layoutPresetFor,ft as layoutTypes};
|
|
@@ -6,6 +6,7 @@ export declare const NESTED_BOX_PADDING: {
|
|
|
6
6
|
readonly sectionPaddingBottom: 0;
|
|
7
7
|
};
|
|
8
8
|
export declare const BOX_ALIGN_CLASS: Record<BoxAlign, string>;
|
|
9
|
+
export declare const ALIGN_TABLE_WORDS: readonly string[];
|
|
9
10
|
export declare function boxLayoutClasses(justify: unknown, align: unknown): string;
|
|
10
11
|
export declare function boxWrapClass(wrap: unknown): string;
|
|
11
12
|
export declare function boxJustifyViewAnswers(justify: unknown, justifyTablet: unknown, justifyPhone: unknown): ViewOverrides<BoxJustify>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PARENT_BOX_IS_NOT_CARD_RULE as R}from"./box-card-rule.js";import{isStripBox as f}from"./box-separator.js";import{viewOverrides as P}from"./view-overrides.js";import{hasOwnEntry as m}from"../own-entry.js";const re={sectionPaddingTop:0,sectionPaddingBottom:0},c={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},v={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function le(e,i){const s=typeof e=="string"&&m(c,e)?c[e]:"",t=typeof i=="string"&&m(v,i)?v[i]:"";return[s,t].filter(Boolean).join(" ")}function I(e){return e===!0||e==="wrap"?"flex-wrap":""}const H={start:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!",end:"view-wide:max-view-desktop:justify-end!"},M={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},X={start:"view-wide:max-view-desktop:items-start!",center:"view-wide:max-view-desktop:items-center!",end:"view-wide:max-view-desktop:items-end!",stretch:"view-wide:max-view-desktop:items-stretch!"},$={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},U={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function o(e,i){return typeof i=="string"&&m(e,i)?i:void 0}function h(e,i,s){const t=P("same",e,i,s),a={};return t.tablet!==void 0&&t.tablet!==e&&(a.tablet=t.tablet),t.phone!==void 0&&t.phone!==e&&(a.phone=t.phone),a}function _(e,i,s){return[e.tablet?i[e.tablet]:"",e.phone?s[e.phone]:""].filter(Boolean).join(" ")}function W(e,i,s){return h(o(c,e)??"start",o(c,i),o(c,s))}function ce(e,i,s){return _(W(e,i,s),H,M)}function ve(e,i,s){const t=o(v,e)??"stretch";if(t==="stretch")return"";const a=h(t,o(v,i),o(v,s));return _(a,X,$)}function b(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function xe(e,i){const s=I(e)===""?"nowrap":"wrap",t=b(i);return t&&t!==s?U[t]:""}const pe="Block widths",u=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],j="data-sf-box-items",F=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${j}\\][^\\s"'\`]*`,"g");function fe(e){return e.replace(F,"")}const me=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function he(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in p?"custom":"content"}const S=4,k=10;function G(e,i){if(!Number.isInteger(i)||i<2||i>S||e.length!==i-1||!e.every(a=>typeof a=="number"&&Number.isFinite(a)))return;const s=[];let t=0;return e.forEach((a,n)=>{const w=100-t-k*(i-1-n),x=Math.min(w,Math.max(k,Math.round(a)));s.push(x),t+=x}),s}function O(e,i,s){if(!Array.isArray(i))return;const t=G(i,s),a=t?[...t,100-t.reduce((w,x)=>w+x,0)]:[],n={};for(let w=0;w<S;w+=1)n[`--${e}-${w+1}`]=a[w]??1;return n}function _e(e,i,s){const t=O("sf-share",e,s),a=O("sf-share-tablet",i,s);return t||a?{...t,...a}:void 0}function q(e,i){const s=Array.from({length:i},()=>1),t=u.find(w=>w.value===e);if(!t?.weights||i<1)return s;const[a,n]=t.weights;return a>1&&(s[0]=a),n>1&&(s[i-1]=n),s}function be(e,i){if(typeof e!="string"||!(e in p)||e==="equal")return e;const s=q(e,i),t=s.reduce((a,n)=>a+n,0);return s.slice(0,-1).map(a=>Math.round(a/t*100))}const d="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",p={equal:d,bigLeft:`${d} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${d} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${d} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${d} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${d} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},D=`${d} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function V(e){return Array.isArray(e)?D:typeof e=="string"?p[e]??"":""}const ge={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},R,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(p)}]}]}]},A="view-wide:max-view-desktop:flex-row!",r=`${A} [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-0!`,C={content:`${A} [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]!`,equal:r,bigLeft:`${r} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,bigRight:`${r} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,biggerLeft:`${r} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,biggerRight:`${r} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,twoThree:`${r} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`},K=`${r} [&>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function J(e){return Array.isArray(e)||typeof e=="string"&&e in C?e:null}function ue(e){if(e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||L(e.columns)!==""||N(e.columnsTablet)!=="")return"";const i=J(e.shareTablet);return i===null?"":typeof i=="string"?C[i]:K}const Y="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function Se(e){return V(e)===""?Y:""}const ke="Columns",Oe=1,Ae=3,g={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Ce=u.filter(e=>e.value==="content"||e.value==="equal"),Le="equal",Ne=1,Ee=6,l="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",Q={1:`${l} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${l} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${l} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${l} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${l} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${l} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function L(e){return typeof e=="number"?Q[e]??"":""}const z={1:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]!",2:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function N(e){return typeof e=="number"?z[e]??"":""}function Te(e){return e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":N(e.columnsTablet)}function Be(e){return e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":L(e.columns)}const E={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},T={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},ye=Object.keys(E).map(Number),Re=Object.keys(T).map(Number);function Pe(e,i,s=!1){const t=typeof e=="number"?E[e]??"":"",a=T[Number(i)]??"";return!t&&!a?"":[t,a,s?"gap-y-0!":""].filter(Boolean).join(" ")}const Z="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",ee={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},ie="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function te(e,i){return(b(e)??b(i)??"wrap")==="nowrap"}function Ie(e,i,s,t){const a=g[Number(e)];if(!a)return"max-view-wide:flex-col";const n=te(s,t);return B(e,i)?n?ie:Z:n?ee[Number(e)]:a}function He(e,i){return Number(e)in g&&!B(e,i)}function B(e,i){return Number(e)in g&&i==="content"}const Me="Block spacing",Xe=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],se="sf-box-gap-only";function $e(e){return e==="gap"?se:""}const y={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},ae={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Ue(e,i,s){const t=n=>o(y,n),a=h(e==="gap"?"gap":"each",t(i),t(s));return _(a,y,ae)}export{ye as ACCORDION_COLUMN_COUNTS,Re as ACCORDION_PHONE_COLUMN_COUNTS,v as BOX_ALIGN_CLASS,Me as BOX_BLOCK_SPACING_LABEL,Xe as BOX_BLOCK_SPACING_POINTS,Ee as BOX_COLUMNS_MAX,Ne as BOX_COLUMNS_MIN,se as BOX_GAP_ONLY_CLASS,ge as BOX_GIVES_PICTURES_A_HEIGHT,j as BOX_ITEMS_ATTR,ke as BOX_PHONE_ROW_LABEL,Ae as BOX_PHONE_ROW_MAX,Oe as BOX_PHONE_ROW_MIN,me as BOX_SHARE_CHOICES,pe as BOX_SHARE_LABEL,Le as BOX_SHARE_PHONE_DEFAULT,Ce as BOX_SHARE_PHONE_POINTS,u as BOX_SHARE_POINTS,re as NESTED_BOX_PADDING,Pe as boxAccordionColumnsClass,ve as boxAlignViewClasses,$e as boxBlockSpacingClass,Ue as boxBlockSpacingViewClasses,L as boxColumnsClass,Se as boxFitContentClass,W as boxJustifyViewAnswers,ce as boxJustifyViewClasses,le as boxLayoutClasses,He as boxPhoneCellsShareLine,Ie as boxPhoneRowClasses,B as boxPhoneRowFits,te as boxPhoneRowOneLine,Be as boxRowColumnsClass,Te as boxRowTabletColumnsClass,ue as boxRowTabletShareClass,he as boxShareChoiceOf,V as boxShareClasses,J as boxShareTabletOf,_e as boxShareVars,be as boxShareWidthsOf,N as boxTabletColumnsClass,I as boxWrapClass,xe as boxWrapTabletClass,b as boxWrapWordOf,fe as withoutBoxItemsHalf};
|
|
1
|
+
import{BLOCK_ALIGN_TEXT as R}from"./block-align.js";import{PARENT_BOX_IS_NOT_CARD_RULE as I}from"./box-card-rule.js";import{isStripBox as f}from"./box-separator.js";import{viewOverrides as P}from"./view-overrides.js";import{hasOwnEntry as m}from"../own-entry.js";const ce={sectionPaddingTop:0,sectionPaddingBottom:0},v={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},l={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},ve=[...new Set([...Object.keys(l),...Object.keys(R)])];function xe(e,i){const s=typeof e=="string"&&m(v,e)?v[e]:"",t=typeof i=="string"&&m(l,i)?l[i]:"";return[s,t].filter(Boolean).join(" ")}function H(e){return e===!0||e==="wrap"?"flex-wrap":""}const X={start:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!",end:"view-wide:max-view-desktop:justify-end!"},M={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},$={start:"view-wide:max-view-desktop:items-start!",center:"view-wide:max-view-desktop:items-center!",end:"view-wide:max-view-desktop:items-end!",stretch:"view-wide:max-view-desktop:items-stretch!"},U={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},j={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function o(e,i){return typeof i=="string"&&m(e,i)?i:void 0}function h(e,i,s){const t=P("same",e,i,s),a={};return t.tablet!==void 0&&t.tablet!==e&&(a.tablet=t.tablet),t.phone!==void 0&&t.phone!==e&&(a.phone=t.phone),a}function _(e,i,s){return[e.tablet?i[e.tablet]:"",e.phone?s[e.phone]:""].filter(Boolean).join(" ")}function W(e,i,s){return h(o(v,e)??"start",o(v,i),o(v,s))}function pe(e,i,s){return _(W(e,i,s),X,M)}function fe(e,i,s){const t=o(l,e)??"stretch";if(t==="stretch")return"";const a=h(t,o(l,i),o(l,s));return _(a,$,U)}function b(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function me(e,i){const s=H(e)===""?"nowrap":"wrap",t=b(i);return t&&t!==s?j[t]:""}const he="Block widths",u=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],G="data-sf-box-items",F=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${G}\\][^\\s"'\`]*`,"g");function _e(e){return e.replace(F,"")}const be=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function ge(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in p?"custom":"content"}const S=4,k=10;function q(e,i){if(!Number.isInteger(i)||i<2||i>S||e.length!==i-1||!e.every(a=>typeof a=="number"&&Number.isFinite(a)))return;const s=[];let t=0;return e.forEach((a,n)=>{const w=100-t-k*(i-1-n),x=Math.min(w,Math.max(k,Math.round(a)));s.push(x),t+=x}),s}function O(e,i,s){if(!Array.isArray(i))return;const t=q(i,s),a=t?[...t,100-t.reduce((w,x)=>w+x,0)]:[],n={};for(let w=0;w<S;w+=1)n[`--${e}-${w+1}`]=a[w]??1;return n}function ue(e,i,s){const t=O("sf-share",e,s),a=O("sf-share-tablet",i,s);return t||a?{...t,...a}:void 0}function D(e,i){const s=Array.from({length:i},()=>1),t=u.find(w=>w.value===e);if(!t?.weights||i<1)return s;const[a,n]=t.weights;return a>1&&(s[0]=a),n>1&&(s[i-1]=n),s}function Se(e,i){if(typeof e!="string"||!(e in p)||e==="equal")return e;const s=D(e,i),t=s.reduce((a,n)=>a+n,0);return s.slice(0,-1).map(a=>Math.round(a/t*100))}const d="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",p={equal:d,bigLeft:`${d} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${d} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${d} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${d} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${d} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},V=`${d} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function K(e){return Array.isArray(e)?V:typeof e=="string"?p[e]??"":""}const ke={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},I,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(p)}]}]}]},A="view-wide:max-view-desktop:flex-row!",r=`${A} [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-0!`,C={content:`${A} [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]!`,equal:r,bigLeft:`${r} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,bigRight:`${r} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,biggerLeft:`${r} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,biggerRight:`${r} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,twoThree:`${r} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`},J=`${r} [&>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function Y(e){return Array.isArray(e)||typeof e=="string"&&e in C?e:null}function Oe(e){if(e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||L(e.columns)!==""||N(e.columnsTablet)!=="")return"";const i=Y(e.shareTablet);return i===null?"":typeof i=="string"?C[i]:J}const Q="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function Ae(e){return K(e)===""?Q:""}const Ce="Columns",Le=1,Ne=3,g={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Ee=u.filter(e=>e.value==="content"||e.value==="equal"),Te="equal",Be=1,ye=6,c="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",z={1:`${c} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${c} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function L(e){return typeof e=="number"?z[e]??"":""}const Z={1:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]!",2:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function N(e){return typeof e=="number"?Z[e]??"":""}function Re(e){return e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":N(e.columnsTablet)}function Ie(e){return e.direction!=="row"||f(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":L(e.columns)}const E={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},T={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},Pe=Object.keys(E).map(Number),He=Object.keys(T).map(Number);function Xe(e,i,s=!1){const t=typeof e=="number"?E[e]??"":"",a=T[Number(i)]??"";return!t&&!a?"":[t,a,s?"gap-y-0!":""].filter(Boolean).join(" ")}const ee="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",ie={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},te="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function se(e,i){return(b(e)??b(i)??"wrap")==="nowrap"}function Me(e,i,s,t){const a=g[Number(e)];if(!a)return"max-view-wide:flex-col";const n=se(s,t);return B(e,i)?n?te:ee:n?ie[Number(e)]:a}function $e(e,i){return Number(e)in g&&!B(e,i)}function B(e,i){return Number(e)in g&&i==="content"}const Ue="Block spacing",je=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],ae="sf-box-gap-only";function We(e){return e==="gap"?ae:""}const y={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},ne={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Ge(e,i,s){const t=n=>o(y,n),a=h(e==="gap"?"gap":"each",t(i),t(s));return _(a,y,ne)}export{Pe as ACCORDION_COLUMN_COUNTS,He as ACCORDION_PHONE_COLUMN_COUNTS,ve as ALIGN_TABLE_WORDS,l as BOX_ALIGN_CLASS,Ue as BOX_BLOCK_SPACING_LABEL,je as BOX_BLOCK_SPACING_POINTS,ye as BOX_COLUMNS_MAX,Be as BOX_COLUMNS_MIN,ae as BOX_GAP_ONLY_CLASS,ke as BOX_GIVES_PICTURES_A_HEIGHT,G as BOX_ITEMS_ATTR,Ce as BOX_PHONE_ROW_LABEL,Ne as BOX_PHONE_ROW_MAX,Le as BOX_PHONE_ROW_MIN,be as BOX_SHARE_CHOICES,he as BOX_SHARE_LABEL,Te as BOX_SHARE_PHONE_DEFAULT,Ee as BOX_SHARE_PHONE_POINTS,u as BOX_SHARE_POINTS,ce as NESTED_BOX_PADDING,Xe as boxAccordionColumnsClass,fe as boxAlignViewClasses,We as boxBlockSpacingClass,Ge as boxBlockSpacingViewClasses,L as boxColumnsClass,Ae as boxFitContentClass,W as boxJustifyViewAnswers,pe as boxJustifyViewClasses,xe as boxLayoutClasses,$e as boxPhoneCellsShareLine,Me as boxPhoneRowClasses,B as boxPhoneRowFits,se as boxPhoneRowOneLine,Ie as boxRowColumnsClass,Re as boxRowTabletColumnsClass,Oe as boxRowTabletShareClass,ge as boxShareChoiceOf,K as boxShareClasses,Y as boxShareTabletOf,ue as boxShareVars,Se as boxShareWidthsOf,N as boxTabletColumnsClass,H as boxWrapClass,me as boxWrapTabletClass,b as boxWrapWordOf,_e as withoutBoxItemsHalf};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BOX_SHAPES: ("
|
|
1
|
+
export declare const BOX_SHAPES: ("auto" | "square" | "video" | "screen" | "tall" | "wide" | "landscape" | "portrait" | "panorama" | "story" | "poster")[];
|
|
2
2
|
export type BoxShape = (typeof BOX_SHAPES)[number];
|
|
3
3
|
export declare function boxShapeOf(value: unknown): BoxShape;
|
|
4
4
|
export declare function boxShapeClass(value: unknown): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ENTRANCE_GROUP_KEY as i}from"../../animation/index.js";const r=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),l={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(r.has(e)||o.isHostBlock(e)),panel(e,o,t){const s=t.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,o))}},
|
|
1
|
+
import{ENTRANCE_GROUP_KEY as i}from"../../animation/index.js";const r=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),l={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(r.has(e)||o.isHostBlock(e)),panel(e,o,t){const s=t.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,o))}},n=new Set(["HeroSlide","HeroGroup"]),c={name:"blockGroups",applies:(e,o,t)=>n.has(e)||!o.isSection(e)&&i in(t?.fields??{}),panel(e,o,t){const s=t.assignSectionGroups;e?.fields&&(e.fields=s(e.fields,o))}};export{c as blockGroups,l as sectionGroups};
|
|
@@ -19,6 +19,7 @@ export declare function buildBlockCategories(): Record<string, {
|
|
|
19
19
|
defaultExpanded?: boolean;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const KEY_FEATURES_DELETE_BY = "2027-02-05";
|
|
22
|
+
export declare const INTEGRATIONS_DELETE_BY = "2027-02-14";
|
|
22
23
|
export declare const RETIRED_SECTIONS: Record<string, string>;
|
|
23
24
|
export declare const RETIRED_NESTABLE_SECTIONS: readonly ["Grid", "Spacer", "TyreFitment"];
|
|
24
25
|
export declare const ALL_SECTION_TYPES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ownEntry as r}from"../own-entry.js";const
|
|
1
|
+
import{ownEntry as r}from"../own-entry.js";const w=["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:"GalleryB",label:"Gallery",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"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",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:"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:"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:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",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"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function E(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const c="2027-02-05",h="2027-02-14",l={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
2
2
|
|
|
3
3
|
WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
|
|
4
4
|
|
|
@@ -70,4 +70,10 @@ WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("
|
|
|
70
70
|
|
|
71
71
|
NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
|
|
72
72
|
|
|
73
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},
|
|
73
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},Integrations:{label:"Integrations Grid",note:`Never listed: the Integrations Grid was registered but never offered (2026-11-14: a press of this type lays down a Box of real parts, SECTION_TO_BOX_PRESS, and its converter row \`section-to-box-rows-integrations\` moves a stored one).
|
|
74
|
+
|
|
75
|
+
WHAT REPLACES IT: a Box. \`eyebrow\`, \`title\` and \`body\` are Text blocks; each of \`apps\` is a Logo block named by the app in a Logos wall, Logo style Chips (the shell's brand mark beside the name, efficient-shell/icons/brands), dealt round-robin into three scrolling rows; \`statValue\`, \`statLabel\` and \`note\` are Text blocks.
|
|
76
|
+
|
|
77
|
+
0 Integrations nodes are stored on the US sites (76 pages, read only, 2026-11-14). Old sites stay as they are (owner, 2026-11-06).
|
|
78
|
+
|
|
79
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until ${h}. A stored Integrations node still renders through it and can still be edited; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items · Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. ⛔ A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},p=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,t.note])),S=["Grid","Spacer","TyreFitment"],f=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(p)])),u=Object.fromEntries(Object.entries(l).map(([e,t])=>[e,t.label])),O={...u,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},m={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"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",CategoryBar:"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",WheelDiagram:"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",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},s={...m,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))},b={DocTabs:{set:"service",blocks:["MenuBlock"],reason:"the Tab Bar press holds the Menu block, whose only source is a Console menu; a stored bar's typed tabs need nothing, so the Tab Bar stays general"}};function v(e,t,a=b){const i=r(a,e);return i!==void 0&&!t.includes(i.set)}function A(e){return r(s,e)}function n(e){return Object.keys(s).filter(t=>r(s,t)===e).sort()}const C=n("general"),k=n("commerce"),B=n("service"),y="Flex",d="Box",x=`${d}es`;function g(e){return e==="section"?"Blank section":d}function N(e,t,a){return e===y?g(t):a}export{f as ALL_SECTION_TYPES,w as BLOCK_SETS,d as BOX_LABEL,x as BOX_LABEL_PLURAL,k as COMMERCE_BLOCKS,C as GENERAL_BLOCKS,h as INTEGRATIONS_DELETE_BY,c as KEY_FEATURES_DELETE_BY,y as LEVEL_NAMED_TYPE,b as PRESS_NEEDS_SET,S as RETIRED_NESTABLE_SECTIONS,p as RETIRED_SECTIONS,u as RETIRED_SECTION_LABELS,o as SECTION_CATALOG,O as SECTION_LABELS,B as SERVICE_BLOCKS,m as UNLISTED_BLOCK_SETS,A as blockSetOf,n as blocksInSet,E as buildBlockCategories,N as labelAtLevel,g as labelForFlex,v as pressWithheld};
|
|
@@ -8,6 +8,7 @@ export declare const boxPadding: (y: number, x?: number, yPhone?: number, xPhone
|
|
|
8
8
|
export declare const fillSlot: (slot: FillColorSlot) => Props;
|
|
9
9
|
export declare const markBoxProps: (size: number, fill?: FillColorSlot, look?: Props) => Props;
|
|
10
10
|
export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
|
|
11
|
+
export declare const relaxedBodyLook: (px: number) => Props;
|
|
11
12
|
export declare const LABEL_FACE: Readonly<Props>;
|
|
12
13
|
export declare const labelLook: (px: number, pxPhone?: number) => Props;
|
|
13
14
|
export declare const labelStyle: (px: number, pxPhone?: number) => Props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NESTED_BOX_PADDING as
|
|
1
|
+
import{NESTED_BOX_PADDING as l}from"../content/box-layout.js";import{TextMeta as g}from"./blocks/general/Text/meta.js";const{text:L,tag:y,...x}=g.defaultProps,f=x,T={...f,tone:"dim"},P={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},m={...P,direction:"column",...l},_=(t,o=t,e=t,n=o)=>({sectionPaddingTop:t,sectionPaddingRight:o,sectionPaddingBottom:t,sectionPaddingLeft:o,sectionPaddingTopPhone:e,sectionPaddingRightPhone:n,sectionPaddingBottomPhone:e,sectionPaddingLeftPhone:n}),h=t=>({fillColor:t}),k=(t,o,e={})=>({...m,widthFit:"fixed",width:t,minWidth:t,sectionHeightMode:"fixed",sectionHeightValue:t,sectionHeightUnit:"px",...o?h(o):{},...e}),c=(t,o,e,n)=>({sizeToken:{step:t,px:o,...n?{stepPhone:n}:{},...e?{pxPhone:e}:{}}}),A=t=>({textStyle:"body-1",...c("body",t),lineHeight:1.625}),d={case:"upper"},S={textStyle:"body-5",...d},b=(t,o)=>({...c("label",t,o),letterSpacing:.2,...d}),N=(t,o)=>({...S,...b(t,o)});function u(t,o,e=""){return t.map((n,i)=>{const r=e?`${e}.${i}`:String(i),s={...n.props??{}};for(const[p,a]of Object.entries(n.slots??{}))s[p]=u(a,o,r);return{type:n.type,props:{...s,id:o(n.type,r)}}})}export{P as BOX,T as DIM,m as INNER_BOX,S as LABEL_FACE,f as TEXT,_ as boxPadding,h as fillSlot,b as labelLook,N as labelStyle,k as markBoxProps,A as relaxedBodyLook,u as seedNodes,c as token};
|
|
@@ -280,6 +280,7 @@ export declare const WEB_BUILDER_WORDS: {
|
|
|
280
280
|
readonly "Check it with Preview. Press Publish to put it live.": "Check it with Preview. Press Publish to put it live.";
|
|
281
281
|
readonly "Checkout & ordering": "Checkout & ordering";
|
|
282
282
|
readonly "Chip label": "Chip label";
|
|
283
|
+
readonly Chips: "Chips";
|
|
283
284
|
readonly "Choose a page": "Choose a page";
|
|
284
285
|
readonly "Choose a popup": "Choose a popup";
|
|
285
286
|
readonly "Choose a post": "Choose a post";
|