efficient-web-builder 59.0.0 → 59.2.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 +31 -0
- package/dist/editor/components/HoverEffectField.js +1 -1
- package/dist/editor/components/SwitchToBoxFooter.js +1 -1
- package/dist/editor/components/useCardContentSwitchPass.d.ts +1 -0
- package/dist/editor/components/useCardContentSwitchPass.js +1 -0
- package/dist/editor/components/usePinnedChromeSeed.js +1 -1
- package/dist/editor/lib/animation/fields.js +1 -1
- package/dist/editor/lib/animation/hover-fields.d.ts +10 -1
- package/dist/editor/lib/animation/hover-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/box-footer-rows.d.ts +3 -0
- package/dist/editor/lib/document/box-footer-rows.js +1 -0
- package/dist/editor/lib/document/box-side-space-field.d.ts +11 -0
- package/dist/editor/lib/document/box-side-space-field.js +1 -0
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -1
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/animation/hover.d.ts +8 -0
- package/dist/format/lib/animation/hover.js +1 -1
- package/dist/format/lib/content/block-align.d.ts +1 -0
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +1 -0
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/box-side-space.d.ts +13 -0
- package/dist/format/lib/content/box-side-space.js +1 -0
- package/dist/format/lib/content/page-width.d.ts +3 -0
- package/dist/format/lib/content/page-width.js +1 -1
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.d.ts +18 -0
- package/dist/format/lib/document/blocks/general/Cards/card-list-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.d.ts +9 -0
- package/dist/format/lib/document/blocks/general/Cards/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -1
- package/dist/format/lib/document/box-footer.d.ts +13 -2
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/card-content-switch.d.ts +22 -0
- package/dist/format/lib/document/card-content-switch.js +1 -0
- package/dist/format/lib/document/cards-template-on-read.js +1 -1
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/section-catalog.d.ts +1 -0
- package/dist/format/lib/document/section-catalog.js +4 -12
- package/dist/format/lib/document/seed-parts.d.ts +3 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- 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/one-section-edge-inset.d.ts +6 -0
- package/dist/format/lib/source-rules/one-section-edge-inset.js +2 -0
- package/dist/format/lib/source-rules/one-site-column.js +3 -3
- package/dist/render/components/BlockFrame.d.ts +2 -0
- package/dist/render/components/BlockFrame.js +1 -1
- package/dist/render/components/Flex.d.ts +5 -2
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Logos.d.ts +5 -1
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +7 -2
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/Text.d.ts +2 -1
- package/dist/render/components/Text.js +1 -1
- package/dist/render/lib/content/box-stack-line.d.ts +3 -1
- package/dist/render/lib/content/box-stack-line.js +1 -1
- package/dist/render/lib/content/section-edge.d.ts +12 -0
- package/dist/render/lib/content/section-edge.js +1 -1
- package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/wall-rows.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/Logos/wall-rows.js +1 -0
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +3 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -1
- package/dist/render/lib/document/head-core-boxes.d.ts +1 -0
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/wall-labels.d.ts +3 -0
- package/dist/render/lib/document/wall-labels.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +1 -0
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 59.2.0 - 2026-11-08
|
|
4
|
+
|
|
5
|
+
From main at `c14a6f97`: #620, #621, #622, #623. A minor: no `!` in any title, no declared export is removed (22 exports added in #621, vs npm 59.1.0), the peers stay `efficient-easel` `^29.0.0` and `efficient-shell` `^12.17.0`. No stored key or value moves.
|
|
6
|
+
|
|
7
|
+
**For hosts:**
|
|
8
|
+
- storefront-blocks: a later blocks bump takes `^59.2.0`. ContactRouting moves to `sectionEdgeBandAttrs` (#623), and `sectionEdgeBeyondAttrs` is `@deprecated` (delete it in the next major).
|
|
9
|
+
- The stored Key Features node still draws through `components/KeyFeatures.tsx` until its move; the delete date is `KEY_FEATURES_DELETE_BY` (2026-12-04) (#621).
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **A Box takes a Side space choice, Box or Site** (#620): a new Design row. Box (unset) is the same frame as before; Site (`sideSpace: "site"`) leaves the site column's side space, read from the site's own token.
|
|
14
|
+
- **Label only is a card template of real parts** (#621): a card Box with a Mark Box (the diamond) and a label Text, on the Box structure. A stored Label only node with no template gets it on read. The old drawing branch in the Cards block is removed.
|
|
15
|
+
- **A stored Q&A converts to the Box path in its own look** (#622): the conversion writes `sideSpace: "site"`, and a node with its own run style is held by name. No data moves and `SECTION_TO_BOX_ON` stays empty.
|
|
16
|
+
- **A band reaches the section edge and pads back** (#623): new `sectionEdgeBandAttrs`, `oneSectionEdgeInset` and `OneSectionEdgeInsetOptions`. `sectionEdgeBeyondAttrs` is deprecated.
|
|
17
|
+
|
|
18
|
+
## 59.1.0 - 2026-11-08
|
|
19
|
+
|
|
20
|
+
From main at `7197efbc`: #612, #616, #614, #617, #618. A minor: no `!` in any title, no declared export is removed, the peers stay `efficient-easel` `^29.0.0` and `efficient-shell` `^12.17.0`. No stored key or value moves.
|
|
21
|
+
|
|
22
|
+
**For hosts:**
|
|
23
|
+
- storefront-blocks: a later blocks bump takes `^59.1.0` for the band fix (#617: `SectionEdge.beyond`), the host-row presses (#616, #618) and the footer payment wall (#612).
|
|
24
|
+
- With no host row for a press type, a press is the ordinary insert as before (#616, #618).
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- **The footer payment line is a Logos wall** (#612): a Box of a lead Text and a Logos wall with the Logo style Marks; a Logos Alignment row; a published page drops a nested Box over sourced logos that were served no row. The Payment Logos block leaves the Add menu. Stored nodes still draw.
|
|
29
|
+
- **Five host-row types join the press list** (#616): new export `HOST_PRESS_TYPES`; ContactRouting, ReviewForm, AppointmentBooking, Reviews and CheckoutCTA press as a Box when a host registers the row.
|
|
30
|
+
- **Events joins the host-row press types** (#618): the Add menu's Events presses a Box with a host card row.
|
|
31
|
+
- **The delivery card gets its own time and price parts** (#614): a Cards press switched to Delivery options draws the card as parts on the Box structure; the Box that holds the Card list follows the Card content switch in every website host.
|
|
32
|
+
- **A full-width band stops at the Box edge** (#617): new `SectionEdge.beyond`, `sectionEdgeBeyondAttrs`, `groundBeyond`, `EDGE_BEYOND_VAR` and `FULL_SECTION_WIDTH`, so a band stops at the Box edge when the Box Background is Content (0 at Background: Content and in a Content header or footer group).
|
|
33
|
+
|
|
3
34
|
## 59.0.0 - 2026-11-08
|
|
4
35
|
|
|
5
36
|
From main at `bb1ff965`: #608, #610, #611, #602, #613. A major: #608 has `!` in its title, narrows a peer and removes a module. The peer `efficient-shell` narrows from `^12.16.0` to `^12.17.0`; `efficient-easel` stays `^29.0.0`. No stored key or value moves (a stored hex paints as before; 0 rewritten).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as t}from"react/jsx-runtime";import{SettingsDefaultReset as c,SettingsField as E,SettingsSegmented as d}from"efficient-easel/panel";import{HoverIcon as p}from"efficient-easel/icons";import{HOVER_KIND_LABELS as s}from"../../format/lib/animation/hover.js";import{say as e,editorEaselWords as
|
|
1
|
+
"use client";import{jsx as t}from"react/jsx-runtime";import{SettingsDefaultReset as c,SettingsField as E,SettingsSegmented as d}from"efficient-easel/panel";import{HoverIcon as p}from"efficient-easel/icons";import{HIGHLIGHT_LABEL as H,HOVER_KIND_LABELS as s}from"../../format/lib/animation/hover.js";import{say as e,editorEaselWords as m}from"../../format/lib/editor-words.js";import{HOVER_EFFECTS as h,DEFAULT_HOVER_EFFECT as f}from"../../format/lib/theme.js";const o={none:s.none,lift:s.lift,highlight:H},u="What a card does when a shopper points at it — or taps it, on a phone. Highlight is the effect your cards already use.";function F({value:i,onChange:n}){const r=i===null,a=i??f;return t(E,{label:e("Hover effect"),icon:t(p,{}),value:e(o[a]),changed:!r,action:t(c,{words:m()?.panel,label:e("Hover effect"),changed:!r,detail:e(o[f]),onReset:()=>n(null)}),hint:e(u),children:t(d,{options:h.map(l=>({id:l,label:e(o[l])})),value:a,ariaLabel:e("Hover effect"),onChange:n})})}export{o as HOVER_EFFECT_LABELS,F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r,Fragment as g,jsxs as k}from"react/jsx-runtime";import{useState as y}from"react";import{createNode as w,newId as x}from"efficient-easel/data";import{useEasel as F}from"efficient-easel/easel";import{Banner as S,Button as s}from"efficient-shell/ui";import{useScreenDocument as B}from"efficient-easel/screen/components/ScreenDocumentContext";import{boxFooterFromFooter as T}from"../../format/lib/document/box-footer.js";import{convertFooterBlock as E}from"../lib/document/box-footer-rows.js";import{FOOTER_TYPE as _}from"../lib/document/footer-blocks.js";import{SITE_FOOTER_TYPE as a,withSectionGroup as O}from"../../format/lib/document/section-groups.js";import{say as t}from"../../format/lib/editor-words.js";function j(){const{appState:c,dispatch:m,config:l}=F(o=>o),{readOnly:f}=B(),[u,n]=y(!1),i=c.data.content;if(f||i.some(o=>o.type===a))return null;const p=i.find(o=>o.type===_)??null,d=(o,e)=>w(l,o,e),h=()=>{const o=T(p,d,x(a),E);m({type:"setData",data:e=>({...e,content:[...O(e.content,o)]}),recordHistory:!0}),n(!1)};return r(S,{tone:"info",title:t("This footer uses the old layout"),action:u?k(g,{children:[r(s,{variant:"primary",size:"sm",onClick:h,children:t("Switch now")}),r(s,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:t("Cancel")})]}):r(s,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:t("Switch to Box footer")}),children:t("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCardContentSwitchPass(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{useEffect as e}from"react";import{useEaselApi as r}from"efficient-easel/easel";import{followCardContentSwitches as n}from"../../format/lib/document/card-content-switch.js";function c(){const t=o();e(()=>t?n(t):void 0,[t])}function o(){try{return r()}catch{return null}}export{c as useCardContentSwitchPass};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{useEffect as
|
|
1
|
+
"use client";import{useEffect as q,useRef as J}from"react";import{createNode as T,newId as I}from"efficient-easel/data";import{useEaselApi as K}from"efficient-easel/easel";import{useScreenDocument as M}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Q}from"efficient-easel/screen/lib/session-context";import{SITE_FOOTER_SLUG as L}from"../../format/lib/content/footer.js";import{boxFooterFromFooter as U}from"../../format/lib/document/box-footer.js";import{convertFooterBlock as Z}from"../lib/document/box-footer-rows.js";import{useSectionToBoxPass as V}from"./useSectionToBoxPass.js";import{ROOT_ZONE as l,missingPinnedTypes as W,pinnedDuplicateIds as O}from"efficient-easel/draw";import{FOOTER_TYPE as a,HEADER_TYPE as E,buildDefaultFooterBlocks as b,buildDefaultHeaderNode as N}from"../lib/document/footer-blocks.js";import{canSeedPinnedChrome as X}from"../../format/lib/document/pinned-seed-gate.js";import{siteFooterDocChrome as $,SITE_FOOTER_TYPE as f}from"../../format/lib/document/section-groups.js";import{inPlaceSeedPlan as ee}from"../lib/document/pinned-in-place-seed.js";import{seedNewSiteHeader as te}from"../../format/lib/document/new-site-header-seed.js";import{SITE_HEADER_TYPE as R}from"../../format/lib/document/section-groups.js";import{blocksOf as oe}from"../lib/website-session.js";function ke(t,D){const{adapter:_,capabilities:y,currentSlug:w,docId:S,data:C,saveStatus:v,siteId:H,tokenRef:x}=M(),B=Q(),{hasSiteSettings:z,hasPinnedChrome:Y}=y;V(t);const A=!!y.editsPinnedInPlace&&w!==L,g=w===L,h=K().getState,k=J(null);q(()=>{if(!X({docId:S,saveStatus:v,seededDocId:k.current})||(k.current=S,!Y))return;const p=h().appState.data,n=p.content,d=C?.content??[],s=(e,r)=>e.some(i=>i?.type===r);if(!z){const e=new Set(O(n)),r=e.size?n.filter(c=>!e.has(c.props.id)):n;if(e.size&&t.setDocument({...p,content:r}),g)return;const i=W(r,d);if(i.includes(a)){const c=r.length,o=t.insertSection(a,c);t.replaceComponent(l,c,{type:a,props:{id:o,blocks:b()}})}i.includes(E)&&t.insertNode(l,0,N());return}if(g){const e=$(n);if(e!==n&&t.setDocument({...p,content:[...e]}),!e.find(i=>i.type===a)&&!s(d,a)&&!s(e,f)&&!s(d,f)){const i=(o,m)=>T(D,o,m),c={type:a,props:{blocks:b()}};t.insertNode(l,e.length,U(c,i,I(f),Z))}return}if(A){const e=!!_?.pinnedChrome?.state().docId,r=ee(n,{hasChromeDoc:e}),i=new Set([...r.remove,...O(n.filter(o=>!r.remove.includes(String(o.props.id))))]),c=i.size?n.filter(o=>!i.has(String(o.props.id))):n;if(c.length!==n.length&&t.setDocument({...p,content:c}),r.seedFooter&&!s(d,a)&&!s(d,f)){const o=(u,j)=>T(D,u,j),m={type:a,props:{blocks:b()}};t.insertNode(l,c.length,U(m,o,I(f),Z))}if(r.seedHeader&&!s(d,E)){const o=c[0]?.type===R?1:0;t.insertNode(l,o,N())}if(r.seedSiteHeader&&!s(d,R)&&!s(d,a)&&!s(d,f)){const o=S;te({blocks:oe(B),make:(m,u)=>T(D,m,u),id:I(R),siteId:H??null,token:x.current,latest:()=>h().appState.data.content,stillOpen:()=>k.current===o,write:m=>{const u=h().appState.data;t.setDocument({...u,content:[...m]})}})}return}const P=n.filter(e=>e.type!==a),G=new Set(O(P)),F=G.size?P.filter(e=>!G.has(e.props.id)):P;F.length!==n.length&&t.setDocument({...p,content:F}),!s(F,E)&&!s(d,E)&&t.insertNode(l,0,N())},[S,v,C,h,t,z,Y,g,A,_,B,H,x])}export{ke as usePinnedChromeSeed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{loopDelayField as
|
|
1
|
+
import{loopDelayField as c,loopDurationField as a}from"./AnimationDurationRow.js";import{entranceFields as o}from"./entrance-fields.js";import{HOVER_GROUP_KEY as l,HOVER_KEY as p,cardHoverResting as m,pictureHoverResting as u}from"../../../format/lib/animation/hover.js";import{boxHoverFields as d,cardHoverFields as f,hoverFields as F,pictureHoverFields as H}from"./hover-fields.js";import{ON_A_CARD as g}from"../document/card-display-chips.js";import{customize as b}from"efficient-easel/screen/lib/document/box-fields";import{loopDirectionField as h,loopFields as v,loopHeading as D}from"./loop-fields.js";import{truthy as t,withRowsShownWhen as i}from"../../../format/lib/document/show-when-attach.js";function R(){const r=d(),e=[l,p],n=i(r,Object.keys(r).filter(s=>!e.includes(s)),t("bgImage"));return i(n,e,{any:[t("bgImage"),g]})}function I(r,e=""){switch(r){case"section":case"block":return o();case"box":return{...o(),...v(),...R()};case"picture":return{...o(),...H(u(e),e)};case"textPart":return{...o(),...F()};case"cards":return{...o(),...f(m(e))};case"marquee":return{...o(),_gLoop:D(),_cLoop:b(),scrollDirection:h(),loopDuration:a({readsSpeed:!0}),loopDelay:c()}}}export{I as animationTabFields};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { ShowWhenRule } from "../../../render/lib/document/show-when.js";
|
|
3
|
+
import { type BoxHover, type CardHover, type PictureHover } from "../../../format/lib/animation/hover.js";
|
|
2
4
|
export declare function hoverFields(): Record<string, unknown>;
|
|
3
5
|
export declare function cardHoverFields(resting: CardHover): Record<string, unknown>;
|
|
4
6
|
export declare function pictureHoverFields(resting: PictureHover, blockKey?: string): Record<string, unknown>;
|
|
@@ -7,3 +9,10 @@ export declare function offerNextPicture<Fields extends Record<string, unknown>>
|
|
|
7
9
|
}, params: {
|
|
8
10
|
appState?: unknown;
|
|
9
11
|
}): Fields;
|
|
12
|
+
export declare const BOX_HIGHLIGHT_ROW: {
|
|
13
|
+
description: string;
|
|
14
|
+
type: "custom";
|
|
15
|
+
render: (props: import("efficient-easel/screen/lib/document/box-fields").BoxFieldRenderProps<BoxHover | undefined>) => ReactElement;
|
|
16
|
+
showWhen?: ShowWhenRule;
|
|
17
|
+
};
|
|
18
|
+
export declare function boxHoverFields(): Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as s}from"react/jsx-runtime";import{AccentIcon as U,ContrastIcon as F,NoSymbolIcon as I,HoverLiftIcon as X,HoverNextImageIcon as L,HoverRotateIcon as W,HoverZoomIcon as O,OpacityIcon as G}from"efficient-easel/icons";import{customize as z,describedAs as v,group as M}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as w}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Y,noControlField as j}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BOX_DARKEN as p}from"../../../format/lib/content/box-background.js";import{cardTemplateField as Z,cardTemplateOwner as q,namedRowField as J}from"../../../format/lib/content/card-template.js";import{angleRow as Q,slider as T}from"../document/box-fields.js";import{say as d}from"../../../format/lib/editor-words.js";import{withShowWhen as a}from"../../../format/lib/document/show-when-attach.js";import{animationDelayField as N,animationDurationField as x,showsWhatRuns as _}from"./AnimationDurationRow.js";import{BOX_HIGHLIGHT as V,BOX_HOVER_KINDS as k,BOX_HOVER_LABELS as C,CARD_HOVER_KEYS as i,CARD_HOVER_KINDS as $,CARD_HOVER_TURN as oo,HOVER_KEY as l,HOVER_KIND_LABELS as S,NEXT_PICTURE_BLOCKS as eo,NEXT_PICTURE_HOVER_KINDS as to,OLD_SPIN_KEY as no,PART_HOVER_KINDS as D,PICTURE_HOVER_KEYS as K,PICTURE_HOVER_KINDS as ro,PICTURE_HOVER_ZOOM as u,cardHoverAngleOf as so,cardHoverKindOf as io,cardRotatesRule as ao,HOVER_GROUP_KEY as m,pictureHoverKindOf as co,pictureHoverMovesRule as po,pictureHoverRunsRule as b}from"../../../format/lib/animation/hover.js";const f=o=>r("desktop",M("Hover",{dot:o})),P=()=>r("desktop",z()),lo="What this does when a shopper points at it, or taps it on a phone.",uo="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",ho="What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.",mo="What each card does when a shopper points at it, or taps it on a phone. Rotate turns the wheel picture.",fo={none:()=>s(I,{}),nextImage:()=>s(L,{}),rotate:()=>s(W,{}),zoom:()=>s(O,{}),lift:()=>s(X,{}),mono:()=>s(F,{})};function H(o,e){const n=w({label:d("Hover effect"),options:o.map(t=>({value:t,label:d(S[t]),picture:fo[t]()})),fallback:e});return v(n,{type:"select",label:"Hover effect",options:o.map(t=>({value:t,label:S[t]}))})}function bo(){return{[m]:f({field:l,in:D.filter(o=>o!=="none")}),[l]:r("desktop",{...H(D,"none"),description:lo})}}function Po(o){const e=ao(o),n=Q(oo);return{[m]:f(e),[i.kind]:r("desktop",{..._(H($,o),(t,c)=>io(c??{},o)),description:mo}),[no]:j({type:"custom",render:()=>s(Y,{})},"always"),_cHover:P(),[i.angle]:r("desktop",a(_(n,t=>so(t)),e)),[i.duration]:r("desktop",a(x("hover"),e)),[i.delay]:r("desktop",a(N("hover"),e))}}function Ro(o,e=""){const n=b(o);return{[m]:f(n),[i.kind]:g(ro,o,uo),_cHover:P(),...eo.includes(e)?_o():{},[i.duration]:r("desktop",a(x("hover"),n)),[i.delay]:r("desktop",a(N("hover"),n))}}function _o(){const o=po(),e=T("Zoom",s(O,{}),u.min,u.max,u.step,u.min,u.unit),n=T("Darken on hover",s(G,{}),p.min,p.max,p.step,p.fallback,p.unit);return{[K.zoom]:r("desktop",a(e,o)),[K.darken]:r("desktop",a(n,o))}}function g(o,e,n){const t=r("desktop",{..._(H(o,e),c=>co({[l]:c},e,o)),description:n});return Object.assign(t,{[y]:e})}const y="sfPictureResting",A=new WeakMap;function go(o,e,n){const t=o[i.kind],c=t?.[y];if(!t||!c)return o;const E=e.props?.[l]==="nextImage",R=E?null:q(n.appState,e.props?.id),B=R?Z(String(R.type),J(e.props),R):null;if(!E&&!B?.next)return o;let h=A.get(o);return h||(h={...o,[i.kind]:g(to,c,ho)},A.set(o,h)),h}const Ho="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",Eo={none:()=>s(I,{}),[V]:()=>s(U,{})},yo=r("desktop",{...v(w({label:d("Hover effect"),options:k.map(o=>({value:o,label:d(C[o]),picture:Eo[o]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:k.map(o=>({value:o,label:C[o]}))}),description:Ho});function Ao(){const o={any:[b("none"),{field:l,is:V}]};return{...Ro("none"),[m]:f(o)}}export{yo as BOX_HIGHLIGHT_ROW,Ao as boxHoverFields,Po as cardHoverFields,bo as hoverFields,go as offerNextPicture,Ro as pictureHoverFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as w}from"react/jsx-runtime";import{AccentIcon as O,ListIcon as F}from"efficient-easel/icons";import{isNodeList as L,newId as b}from"efficient-easel/data";import{group as u}from"efficient-easel/screen/lib/document/box-fields";import{COUNT_KEY_PROP as h}from"../../../../../../format/lib/content/block-sources.js";import{CARD_LIST_ROWS as p,CARD_LIST_TYPE as f,cardListFieldsOf as S,cardTemplateOwner as g,namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{BLOCK_SOURCE_EDIT_PROP as T,NO_BLOCK_SOURCE as E,blockSourceEditField as A,blockSourceField as M,blockSourceFields as D}from"../../../block-source-fields.js";import{select as P}from"../../../box-fields.js";import{text as W}from"../../../controls.js";import{cardsFieldsFollowContent as x}from"../../../../../../format/lib/document/cards-template-on-read.js";import{cardFollowsContentSwitch as N}from"../../../../../../format/lib/document/card-content-switch.js";import{cardPicks as j,pickRow as v,withOwnCardKeys as B}from"../../../../../../format/lib/document/card-row-keys.js";import{ROW_LIVE_NUMBER_FIELD as U}from"../../../live-number-field.js";import{withShowWhen as d}from"../../../../../../format/lib/document/show-when-attach.js";import{CARD_ROW_FACTS as K,cardRowField as H,cardRowFields as Y,cardRowItemField as J}from"../../../card-row-fields.js";import{say as V}from"../../../../../../format/lib/editor-words.js";import{CardListSlots as q}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function y(e){return L(e)?e.some(o=>{const t=o.props??{};return o.type==="Text"&&typeof t[h]=="string"&&I(t)?!0:Object.values(t).some(y)}):!1}const z=e=>Object.defineProperty(Object.fromEntries(e.map(o=>[o.key,""])),"key",{get:()=>b("row"),enumerable:!0}),_=new WeakMap;function G(e,o,t){const r=o.filter(c=>!c.everySource);let s=_.get(e);s||_.set(e,s=new Map);const i=JSON.stringify([r,t]);let n=s.get(i);if(!n){const c=Object.fromEntries(r.map(l=>[l.key,J(l)]));t&&(c[h]=U);const a=r[0]?.key;n={...e,arrayFields:c,defaultItemProps:z(r),getItemSummary:l=>a&&typeof l?.[a]=="string"&&l[a]||V("Row")},s.set(i,n)}return n}const C="cardListInCardTemplate",m={not:{context:C,is:!0}},Q={...K,[C]:(e,o)=>{const t=g(o.appState,e.props?.id);return t===void 0?void 0:t!==null}},X=d({type:"array",label:"Rows",icon:w(F,{}),arrayFields:{}},{all:[m,E]}),Z=e=>e.find(o=>!o.everySource&&(o.kind??"text")==="text")?.key??"title",R=new WeakMap;function $(e,o){let t=R.get(e);t||R.set(e,t=new WeakMap);let r=t.get(o);return r||t.set(o,r={...e,highlightedCard:o}),r}const tt=e=>{const o=new Set(S(null,{type:f,props:e}).map(t=>t.key));return t=>o.has(t)},k=new WeakMap;function et(e,o){let t=k.get(e);t||k.set(e,t=new WeakMap);let r=t.get(o);return r||t.set(o,r={...e,[p]:o}),r}const yt={fields:{_gSource:u("Source"),dataSource:d(M("Card content","Manual"),m),[T]:A(),_gCardList:u("Card list"),rowField:H("Shows","list"),[p]:X,highlightedCard:d(P("Highlighted card",w(O,{}),[{label:"None",value:""}],""),m),highlightBadge:d(W("Highlight badge","Most popular"),m),...q},resolveData:(e,o)=>{const t=e.props,r=o?.lastData?.props,s=B(N(t,r),p),i=x(s,tt(s));return i===t?e:{...e,props:i}},resolveFields:(e,o)=>{const t=e.props??{},r=D(f,Y(o.fields,e,o),t),s=!!g(o.appState,t.id),i=r[p];if(s||!i)return r;const n=S(o.appState,{type:f,props:t}),c=et(r,G(i,n,y(t.template))),a=r.highlightedCard;return a?$(c,v(a,j(t,{rows:p,label:Z(n)}))):c},showWhenFacts:Q};export{yt as CardListFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{AccentIcon as g,ColumnsIcon as S,StylesIcon as d}from"efficient-easel/icons";import{copyText as w,plainText as E,text as m,textarea as F,withOffPage as L}from"../../../controls.js";import{group as n}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,select as p,slider as _}from"../../../box-fields.js";import{CARD_STYLE_PICTURES as y,LAYOUT_CELL as O}from"../../../choice-pictures.js";import{SPLITTABLE_SECTIONS as T,headFieldsForPlacement as k}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as P,eyebrowLookFor as h}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as R,blockSourceEditField as x,blockSourceField as D,blockSourceFields as M}from"../../../block-source-fields.js";import{cardTemplateFields as u}from"../../../../../../format/lib/content/card-template.js";import{cardRowItemField as b}from"../../../card-row-fields.js";import{cardPicks as j,newCard as v,pickRow as A,withOwnCardKeys as B}from"../../../../../../format/lib/document/card-row-keys.js";import{isNodeList as H}from"efficient-easel/data";import{cardsFieldsFollowContent as N}from"../../../../../../format/lib/document/cards-template-on-read.js";import{cardsFollowCardStyle as K}from"../../../../../../format/lib/document/card-content-switch.js";import{CARDS_PH as C,CardsSlots as U}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const Y=e=>H(e.template)&&e.template.length>0;function W(e,o){const l=Y(o)&&o.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,r])=>t==="highlightedCard"?l?[[t,A(r,j(o))]]:[]:t==="highlightBadge"?l?[[t,r]]:[]:t==="items"&&l&&r?[[t,G(r)]]:[[t,r]]))}const q=Object.fromEntries(u("Cards").filter(e=>!e.everySource).map(e=>[e.key,b(e)])),z=Object.fromEntries(u("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,b(e)])),f=new WeakMap;function G(e){let o=f.get(e);return o||f.set(e,o={...e,arrayFields:q}),o}const de={fields:{_gSource:n("Source"),dataSource:D("Card content","Manual"),[R]:x(),_gContent:n("Content"),eyebrow:m("Eyebrow",C.eyebrow),eyebrowLook:p("Eyebrow style",i(d,{}),[...P],h("Cards")),title:F("Heading",C.title),items:{type:"array",label:"Cards",arrayFields:z,defaultItemProps:v({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...U,highlightedCard:p("Highlighted card",i(g,{}),[{label:"None",value:""}],""),highlightBadge:m("Highlight badge","Most popular"),_gStyle:n("Style"),cardStyle:I("Card style",i(d,{}),[{label:"Cards",value:"cards",picture:y.cards},{label:"Label only",value:"label-only",picture:y["label-only"]}],"cards",{columns:2,cell:O}),columns:_("Columns",i(S,{}),2,4,1,3)},resolveData:(e,o)=>{const l=o?.lastData?.props,t=K(e.props,l),r=N(t),s=r===e.props?e:{...e,props:r},a=s.props,c=B(a);return c===a?s:{...s,props:c}},resolveFields:(e,{fields:o})=>{const l=k(M("Cards",o,e.props,{hides:["items"]}),e.props.headPlacement,T.Cards.headRows),t=e.props,r=W(l,t);if(t.cardStyle!=="label-only")return r;const s=l.items,a=l.eyebrowLook;return{...r,...s?{items:{...s,arrayFields:{title:w("Feature label"),href:L(E("Link"))}}}:{},...a?{eyebrowLook:{...a,fallback:h("KeyFeatures")}}:{}}}};export{de as CardsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as C,BOX_SWATCH_PROP as Ro,isBackgroundBox as uo}from"../../../../../../format/lib/content/box-background.js";import{CARD_ROW_FACTS as Ao,cardRowField as Co,cardRowFields as wo}from"../../../card-row-fields.js";import{darkenFields as To}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as Eo,REEL_SHAPE_LABELS as No}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as x,CARD_LIST_STYLE_PICTURES as go,TAB_SHAPE_PICTURES as Do}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as u,CARD_STYLE_POINTS as Lo,applyCardStyle as Io,isCardStyle as bo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as l}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Fo,ClockIcon as Po,CropIcon as y,GapIcon as ko,MediaLayoutStackedIcon as Ho,LineBetweenIcon as xo,LineSolidIcon as yo,ListIcon as Wo,NumberedListIcon as W,ShadowIcon as Bo,StylesIcon as B,TableIcon as M,TargetIcon as Mo,WrapIcon as U}from"efficient-easel/icons";import{boxBlockSpacingField as Uo,boxFillField as Ko,boxColumnsFields as Xo,boxShareField as Yo,boxSharePhoneField as jo,boxShareTabletField as vo,containerDirectionField as Go,containerGapRows as Vo,linkField as Jo,plainText as zo,swapPadding as K,toggle as c,upload as X,withPanelOnly as qo}from"../../../controls.js";import{BOX_STACK_LINE as Y,BOX_STACK_RANGE as T,STACK_BELOW_PROP as j}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as v,boxShapeOf as Qo}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as Zo}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as G}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as V}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as $o,ACCORDION_PHONE_COLUMN_COUNTS as oe,BOX_COLUMNS_MAX as E,BOX_COLUMNS_MIN as N,boxPhoneRowOneLine as ee,boxWrapWordOf as J}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as z}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as q,VIEW_KEY_ACCESS as s,group as m,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as ne,boxAlignField as te,boxJustifyField as re,boxWrapField as w,iconPickerRow as g,placementField as ie,select as D,sidesPaddingFields as Q,slider as ae}from"../../../box-fields.js";import{withRowRules as le}from"../../../../../../render/lib/document/show-when.js";import{separatorField as se}from"../../../separator-field.js";import{LOOP_SCROLLS as de}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as ce,TICKER_JOIN_OPTIONS as pe}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as _e}from"../../../../../../format/lib/document/passes/document-position.js";import{accordionOnSet as Se}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Oe,ACCORDION_ROW_STYLE_PROP as L}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as Z}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as me,CONTAINER_BLOCKS_SLOT as fe}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as he}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Re,ON_A_CARD as ue,cardDisplayField as I}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Ae,MIRROR_CARDS_MIRRORS as Ce,mirrorCardsField as we}from"../../../mirror-cards-field.js";import{handedRowOf as $}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Te,showForField as Ee,showForFields as Ne}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as f,SHARED_COLUMNS_LABEL as oo,SHARED_COLUMNS_OFF as eo,sharedColumnsDrawn as no,sharedColumnsFits as to,SHARED_COLUMNS_PHONE_POINTS as ge,SHARED_COLUMNS_POINTS as De,sharedRowsDrawn as Le}from"../../../../../../render/lib/content/box-shared-columns.js";const b={field:"bgImage",set:!0},ro={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Ie={field:"direction",is:"tabs"},be={field:"line",in:[!0,!1]},Fe={field:"anchor",set:!0},F=["fixed","screen"],Pe={not:{any:[{field:"sectionHeightMode",in:F},{field:"sectionHeightModeTablet",in:F},{field:"sectionHeightModePhone",in:F}]}},ke={context:"parent.line",is:!0},p={not:{field:"direction",is:"accordion"}},io={field:"direction",is:"accordion"},ao={any:[p,{not:{field:L,is:"numbered"}},{field:"columns",in:[...$o]},{field:"phoneRow",in:[...oe]}]},lo="notAccordionRow",He={not:{context:lo,is:!0}},xe={[lo]:(o,e)=>e.parent?.props?.direction!=="accordion"},P={field:"direction",is:"row",default:"row"},_={not:de},S={all:[P,_,{not:{field:"separator",in:z.map(o=>o.value)}},{not:{field:"line",is:!0}}]},so={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:E},(e,n)=>n+N)}}))]},ye={all:[_,{not:{all:[P,{field:"separator",in:z.map(o=>o.value)}]}}]},k={not:{all:[S,{field:"columns",in:Array.from({length:E},(o,e)=>e+N)}]}},We="sharedColumnsFits",co="sharedColumnsMisfit",po="sharedColumnsDraws",_o="sharedColumnsPhoneDraws",Be={[We]:o=>to(o.props??{}),[co]:o=>!to(o.props??{}),[po]:o=>no(o.props??{}).desktop,[_o]:o=>no(o.props??{}).phone};function So(o){return{all:[{not:{context:co,is:!0}},{any:[ue,{field:o,set:!0}]}]}}const O={not:{context:po,is:!0}},h={not:{context:_o,is:!0}},Oo="sharedRowsDraws",Me={[Oo]:(o,e)=>Le(o.props??{})&&$(e.appState,o.props?.id)?.row===void 0},A={not:{context:Oo,is:!0}},Ue={any:[O,h]},H={not:b},Ke={not:{context:Ce,is:!0}},mo="rowHanded",Xe={not:{context:mo,is:!0}},Ye={[mo]:(o,e)=>{const n=$(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},fo={all:[p,H,O,h,Ke]},je={field:"direction",is:"row"},ve={field:"align",in:["start","center","end"]},Ge={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function Ve(){const{darken:o,darkenStyle:e}=To();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const ho={not:{all:[S,{field:i("columns"),in:Array.from({length:E},(o,e)=>e+N)}]}};function Je(){const o=c(q,!1,t(U,{})),e=n=>{const a=J(n);return a===void 0?void 0:a==="wrap"};return{...w(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:a=>n.onChange(a===void 0?void 0:a?"wrap":"nowrap")})}}function ze(){const o=c(q,!0,t(U,{})),e=n=>{const a=J(n);return a===void 0?void 0:a==="wrap"};return{...w(),render:n=>{const a=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!ee(void 0,a?n.follows:void 0),followsNoView:!a,onChange:R=>n.onChange(R===void 0?void 0:R?"wrap":"nowrap")})}}}const kn={fields:le({_gContent:m("Content"),rowTitle:Z.rowTitle,content:Z.content,_gCardDisplay:m("Display"),cardDisplay:I("desktop"),cardDisplayTablet:I("tablet"),cardDisplayPhone:I("mobile"),showFor:Ee(),_gLayout:m("Layout"),direction:Go("Flex"),tabShape:g("Tab shape",t(B,{}),Eo.map(o=>({label:No[o],value:o,picture:Do[o]})),"tabs",{columns:2,cell:x}),mirrorCards:we(),[j]:l("desktop",ae("Stacks below",t(Ho,{}),T.min,T.max,T.step,Y,"px",{clear:{hint:Y},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),startsOpen:l("desktop",c("Starts open",!1,t(Fo,{}))),[L]:l("desktop",g("Row style",t(W,{}),Oe.map(o=>({...o,picture:o.value==="numbered"?t(W,{}):t(Wo,{})})),"plain",{columns:2})),label:qo(zo("Tab name")),...Vo("Flex"),...d("justify",re(),s),...d("align",te(),s),...(()=>{const o=d("wrap",w(),s,{phoneRow:ze()}),e=d("wrap",w(),s,{phoneRow:Je()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:he(),...d("boxShape",V("Box shape",t(y,{}),G(v),"shape","auto"),s,{phoneRow:V("Box shape",t(y,{}),G(v),"shape","auto",{phoneRest:o=>Qo(o)})}),[Zo]:l("desktop",ne(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:se(t(xo,{size:18}),"none"),[u]:l("desktop",g("Card style",t(B,{}),Lo.map(o=>({...o,picture:go[o.value]})),"table",{columns:2,cell:x})),share:l("desktop",Yo()),[i("share")]:vo(),[r("share")]:jo(),[f]:l("desktop",D(oo,t(M,{}),[...De],eo)),[r(f)]:l("mobile",D(oo,t(M,{}),[...ge],eo)),...Xo(),...d("blockSpacing",Uo(),s),line:c("Line",!1,t(yo,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(Po,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:D("Join",t(ko,{}),pe,ce),_gShadow:m("Shadow"),...d("shadow",c("Shadow",!1,t(Bo,{})),s),...d("fillColor",Ko(),s),[Ro]:Co("Fill content","colour"),_gBackground:m("Background image"),bgImage:l("desktop",X("Image","image/*")),bgImagePhone:l("mobile",X("Image","image/*")),...Ve(),placement:ie("Content position"),_gLink:m("Link"),link:Jo("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,t(Mo,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],b],[[r("share")],{all:[ro,h]}],[[f],So(f)],[[r(f)],So(r(f))],[[r("wrap")],{all:[ro,_,h,A]}],[[r("order")],{all:[S,h,O]}],[["phoneRow"],h],[[L],io],[["tabShape"],Ie],[["rowTitle","startsOpen"],He],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],p],[[i("justify"),r("justify")],{all:[_,fo,A]}],[[i("align"),r("align")],{all:[je,ve,fo]}],[[i("wrap")],{all:[_,k,ho,O,p,A]}],[[i("shadow"),r("shadow")],H],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[b,Ge]}],[["separator"],P],[[u],{field:u,set:!0}],[["columns"],{any:[S,io]}],[[i("columns")],S],[[j],{all:[S,H,ho,{not:{all:[so,{field:i("share"),set:!0}]}}]}],[[i("gap")],{all:[ye,ao]}],[["gap",r("gap")],ao],[["justify"],{all:[_,Ue,p,A]}],[["wrap"],{all:[_,k,O,p,A]}],[["share"],{all:[k,O,p]}],[[i("share")],{all:[so,O]}],[["line"],be],[["upcoming"],ke],[["jumpHighlight"],Fe],[["boxShape",i("boxShape"),r("boxShape")],Pe],[["direction","share",r("order")],Xe],[["join"],_e]]),resolveData:(o,e)=>{const n=o.props,a=n[u];return e.changed?.[u]===!0&&bo(a)?{...o,props:Io(n,a,me,fe)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:Se(n)}:o},resolveFields:(o,e)=>Ne(qe(o,{...e,fields:wo(e.fields,o,e)}),o.props),showWhenFacts:{...Ao,...Re,...Ae,...Ye,...Be,...Me,...Te,...xe}};function qe(...[o,{fields:e}]){{const n=o.props;if(uo(n.bgImage)){const R=Q({fallback:{top:C.desktop,bottom:C.desktop,left:C.side,right:C.side},tablet:!0});return K(e,R)}return o.props.padV2!==!0?K(e,Q({fallback:{top:24,bottom:24},tablet:!0})):e}}export{kn as FlexFields};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as C,BOX_SWATCH_PROP as To,isBackgroundBox as W}from"../../../../../../format/lib/content/box-background.js";import{CARD_ROW_FACTS as No,cardRowField as x,cardRowFields as go}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Do}from"../../../../../../format/lib/content/card-template.js";import{HOVER_KEY as B}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as Io}from"../../../../animation/hover-fields.js";import{darkenFields as Lo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as bo,REEL_SHAPE_LABELS as Po}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as y,CARD_LIST_STYLE_PICTURES as Fo,TAB_SHAPE_PICTURES as Ho}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as u,CARD_STYLE_POINTS as ko,applyCardStyle as Wo,isCardStyle as xo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Bo,ClockIcon as yo,CropIcon as M,GapIcon as Mo,MediaLayoutStackedIcon as Uo,LineBetweenIcon as Ko,LineSolidIcon as Xo,ListIcon as Go,NumberedListIcon as U,ShadowIcon as Yo,StylesIcon as K,TableIcon as X,TargetIcon as vo,WrapIcon as G}from"efficient-easel/icons";import{boxBlockSpacingField as jo,boxFillField as Vo,boxColumnsFields as Jo,boxShareField as zo,boxSharePhoneField as qo,boxShareTabletField as Qo,containerDirectionField as Zo,containerGapRows as $o,linkField as oe,plainText as ee,swapPadding as Y,toggle as c,upload as v,withPanelOnly as ne}from"../../../controls.js";import{BOX_STACK_LINE as j,BOX_STACK_RANGE as E,STACK_BELOW_PROP as V}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as J,boxShapeOf as te}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as re}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as z}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as q}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as ie,ACCORDION_PHONE_COLUMN_COUNTS as le,BOX_COLUMNS_MAX as T,BOX_COLUMNS_MIN as N,boxPhoneRowOneLine as ae,boxWrapWordOf as Q}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as Z}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as $,VIEW_KEY_ACCESS as s,group as O,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as se,boxAlignField as de,boxJustifyField as ce,boxWrapField as w,iconPickerRow as g,placementField as pe,select as D,sidesPaddingFields as oo,slider as _e}from"../../../box-fields.js";import{withRowRules as Se,withShowWhen as me}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Oe}from"../../../separator-field.js";import{LOOP_SCROLLS as fe}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as he,TICKER_JOIN_OPTIONS as Re}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as eo}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as no}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as ue}from"../../../box-side-space-field.js";import{accordionOnSet as Ae}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Ce,ACCORDION_ROW_STYLE_PROP as I}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as to}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as we,CONTAINER_BLOCKS_SLOT as Ee}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as Te}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Ne,ON_A_CARD as ro,cardDisplayField as L}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as ge,MIRROR_CARDS_MIRRORS as De,mirrorCardsField as Ie}from"../../../mirror-cards-field.js";import{handedRowOf as io}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Le,showForField as be,showForFields as Pe}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as f,SHARED_COLUMNS_LABEL as lo,SHARED_COLUMNS_OFF as ao,sharedColumnsDrawn as so,sharedColumnsFits as co,SHARED_COLUMNS_PHONE_POINTS as Fe,SHARED_COLUMNS_POINTS as He,sharedRowsDrawn as ke}from"../../../../../../render/lib/content/box-shared-columns.js";const b={field:"bgImage",set:!0},po={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},We={field:"direction",is:"tabs"},xe={field:"line",in:[!0,!1]},Be={field:"anchor",set:!0},P=["fixed","screen"],ye={not:{any:[{field:"sectionHeightMode",in:P},{field:"sectionHeightModeTablet",in:P},{field:"sectionHeightModePhone",in:P}]}},Me={context:"parent.line",is:!0},p={not:{field:"direction",is:"accordion"}},_o={field:"direction",is:"accordion"},So={any:[p,{not:{field:I,is:"numbered"}},{field:"columns",in:[...ie]},{field:"phoneRow",in:[...le]}]},mo="notAccordionRow",Ue={not:{context:mo,is:!0}},Ke={[mo]:(o,e)=>e.parent?.props?.direction!=="accordion"},F={field:"direction",is:"row",default:"row"},_={not:fe},S={all:[F,_,{not:{field:"separator",in:Z.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Oo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:T},(e,n)=>n+N)}}))]},Xe={all:[_,{not:{all:[F,{field:"separator",in:Z.map(o=>o.value)}]}}]},H={not:{all:[S,{field:"columns",in:Array.from({length:T},(o,e)=>e+N)}]}},Ge="sharedColumnsFits",fo="sharedColumnsMisfit",ho="sharedColumnsDraws",Ro="sharedColumnsPhoneDraws",Ye={[Ge]:o=>co(o.props??{}),[fo]:o=>!co(o.props??{}),[ho]:o=>so(o.props??{}).desktop,[Ro]:o=>so(o.props??{}).phone};function uo(o){return{all:[{not:{context:fo,is:!0}},{any:[ro,{field:o,set:!0}]}]}}const m={not:{context:ho,is:!0}},h={not:{context:Ro,is:!0}},Ao="sharedRowsDraws",ve={[Ao]:(o,e)=>ke(o.props??{})&&io(e.appState,o.props?.id)?.row===void 0},A={not:{context:Ao,is:!0}},je={any:[m,h]},k={not:b},Ve={not:{context:De,is:!0}},Co="rowHanded",Je={not:{context:Co,is:!0}},ze={[Co]:(o,e)=>{const n=io(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},wo={all:[p,k,m,h,Ve]},qe={field:"direction",is:"row"},Qe={field:"align",in:["start","center","end"]},Ze={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function $e(){const{darken:o,darkenStyle:e}=Lo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const Eo={not:{all:[S,{field:i("columns"),in:Array.from({length:T},(o,e)=>e+N)}]}};function on(){const o=c($,!1,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...w(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:l=>n.onChange(l===void 0?void 0:l?"wrap":"nowrap")})}}function en(){const o=c($,!0,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...w(),render:n=>{const l=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!ae(void 0,l?n.follows:void 0),followsNoView:!l,onChange:R=>n.onChange(R===void 0?void 0:R?"wrap":"nowrap")})}}}const jn={fields:Se({_gContent:O("Content"),rowTitle:to.rowTitle,content:to.content,_gCardDisplay:O("Display"),cardDisplay:L("desktop"),cardDisplayTablet:L("tablet"),cardDisplayPhone:L("mobile"),showFor:be(),_gLayout:O("Layout"),direction:Zo("Flex"),tabShape:g("Tab shape",t(K,{}),bo.map(o=>({label:Po[o],value:o,picture:Ho[o]})),"tabs",{columns:2,cell:y}),mirrorCards:Ie(),[V]:a("desktop",_e("Stacks below",t(Uo,{}),E.min,E.max,E.step,j,"px",{clear:{hint:j},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[no]:ue(),startsOpen:a("desktop",c("Starts open",!1,t(Bo,{}))),[I]:a("desktop",g("Row style",t(U,{}),Ce.map(o=>({...o,picture:o.value==="numbered"?t(U,{}):t(Go,{})})),"plain",{columns:2})),label:ne(ee("Tab name")),...$o("Flex"),...d("justify",ce(),s),...d("align",de(),s),...(()=>{const o=d("wrap",w(),s,{phoneRow:en()}),e=d("wrap",w(),s,{phoneRow:on()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:Te(),...d("boxShape",q("Box shape",t(M,{}),z(J),"shape","auto"),s,{phoneRow:q("Box shape",t(M,{}),z(J),"shape","auto",{phoneRest:o=>te(o)})}),[re]:a("desktop",se(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:Oe(t(Ko,{size:18}),"none"),[u]:a("desktop",g("Card style",t(K,{}),ko.map(o=>({...o,picture:Fo[o.value]})),"table",{columns:2,cell:y})),share:a("desktop",zo()),[i("share")]:Qo(),[r("share")]:qo(),[f]:a("desktop",D(lo,t(X,{}),[...He],ao)),[r(f)]:a("mobile",D(lo,t(X,{}),[...Fe],ao)),...Jo(),...d("blockSpacing",jo(),s),line:c("Line",!1,t(Xo,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(yo,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:D("Join",t(Mo,{}),Re,he),_gShadow:O("Shadow"),...d("shadow",c("Shadow",!1,t(Yo,{})),s),...d("fillColor",Vo(),s),[To]:x("Fill content","colour"),_gBackground:O("Background image"),bgImage:a("desktop",v("Image","image/*")),bgImagePhone:a("mobile",v("Image","image/*")),...$e(),placement:pe("Content position"),_gLink:O("Link"),link:oe("Link to"),[Do]:x("Link from","link"),jumpHighlight:c("Highlight when a link jumps here",!1,t(vo,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],b],[[r("share")],{all:[po,h]}],[[f],uo(f)],[[r(f)],uo(r(f))],[[r("wrap")],{all:[po,_,h,A]}],[[r("order")],{all:[S,h,m]}],[["phoneRow"],h],[[I],_o],[["tabShape"],We],[["rowTitle","startsOpen"],Ue],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],p],[[i("justify"),r("justify")],{all:[_,wo,A]}],[[i("align"),r("align")],{all:[qe,Qe,wo]}],[[i("wrap")],{all:[_,H,Eo,m,p,A]}],[[i("shadow"),r("shadow")],k],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[b,Ze]}],[["separator"],F],[[u],{field:u,set:!0}],[["columns"],{any:[S,_o]}],[[i("columns")],S],[[V],{all:[S,k,Eo,{not:{all:[Oo,{field:i("share"),set:!0}]}}]}],[[i("gap")],{all:[Xe,So]}],[["gap",r("gap")],So],[["justify"],{all:[_,je,p,A]}],[["wrap"],{all:[_,H,m,p,A]}],[["share"],{all:[H,m,p]}],[[i("share")],{all:[Oo,m]}],[["line"],xe],[["upcoming"],Me],[["jumpHighlight"],Be],[["boxShape",i("boxShape"),r("boxShape")],ye],[["direction","share",r("order")],Je],[["join"],eo],[[no],eo]]),resolveData:(o,e)=>{const n=o.props,l=n[u];return e.changed?.[u]===!0&&xo(l)?{...o,props:Wo(n,l,we,Ee)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:Ae(n)}:o},resolveFields:(o,e)=>tn(Pe(rn(o,{...e,fields:go(e.fields,o,e)}),o.props),o.props),showWhenFacts:{...No,...Ne,...ge,...ze,...Ye,...ve,...Le,...Ke}},nn=me(Io,ro);function tn(o,e){const n=o;return!(B in n)||W(e.bgImage)?o:{...n,[B]:nn}}function rn(...[o,{fields:e}]){{const n=o.props;if(W(n.bgImage)){const R=oo({fallback:{top:C.desktop,bottom:C.desktop,left:C.side,right:C.side},tablet:!0});return Y(e,R)}return o.props.padV2!==!0?Y(e,oo({fallback:{top:24,bottom:24},tablet:!0})):e}}export{jn as FlexFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as m,ColumnsIcon as O,HeightIcon as g,PaddingYIcon as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as m,ColumnsIcon as O,HeightIcon as g,PaddingYIcon as c,StylesIcon as p}from"efficient-easel/icons";import{plainText as _,textarea as d,toggle as S,upload as L,withPanelOnly as h}from"../../../controls.js";import{VIEW_KEY_ACCESS as u,group as s}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentFields as f,iconPickerRow as C,slider as r}from"../../../box-fields.js";import{LAYOUT_CELL as E,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 y,OWN_BOX_ROWS_SHOW_WHEN as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as P,withShowWhen as n}from"../../../../../../render/lib/document/show-when.js";import{blockSourceField as N,blockSourceFields as b,NO_BLOCK_SOURCE as k}from"../../../block-source-fields.js";import{BLOCK_SOURCE_PROP as i}from"../../../../../../format/lib/content/block-sources.js";import{seedLogosTemplate as w}from"../../../../../../format/lib/document/blocks/general/Logos/card-seed.js";import{LOGOS_PH as B,LogosSlots as a}from"../../../../../../format/lib/document/blocks/general/Logos/meta.js";const x=["items","heading","bandPadding"],F=["look"],K={field:i,set:!0},T=P({_gContent:s("Content"),dataSource:N("Logo content","Manual"),heading:d("Heading",B.heading),items:{type:"array",label:"Logos",arrayFields:{src:L("Image","image/*"),alt:h(_("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:n(a.logos,k),template:n(a.template,K),_gStyle:s("Style"),columns:r("Columns",e(O,{}),3,6,1,5),logoHeight:r("Logo height",e(g,{}),16,72,2,28,"px"),bandPadding:r("Space above and below",e(c,{}),16,120,4,40,"px"),grayscale:S("Black and white logos",!0,e(m,{})),look:C("Logo style",e(p,{}),R.map(o=>({...o,picture:W[o.value]})),I,{columns:2,cell:E}),...f("align",{access:u})},[[x,y],[F,H]]),Z={fields:T,resolveFields:(o,{fields:t})=>b("Logos",t,o.props,{hides:["logos"]}),resolveData:(o,t)=>{if(!t?.changed?.[i])return o;const l=w(o.props);return l===o.props?o:{...o,props:l}}};export{Z as LogosFields};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isNodeList as c}from"efficient-easel/data";import{registerGeneralSectionRows as f}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{convertSection as m,sectionToBoxRow as u}from"../../../render/lib/sections/section-to-box.js";const l=["FooterPayment"];function n(o,r){const{id:e,...t}=o.props;for(const[i,p]of Object.entries(t))c(p)&&(t[i]=p.map(s=>n(s,r)));return r(o.type,t)}const R=(o,r)=>{if(!l.includes(o.type))return null;f();const e=u(o.type);return e?m({type:o.type,props:{...o.props}},e).nodes.map(t=>n(t,r)):null};export{l as FOOTER_ROW_TYPES,R as convertFooterBlock};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
export declare function boxSideSpaceField(): {
|
|
3
|
+
render: (props: Parameters<(props: import("efficient-easel/screen/lib/document/box-fields").BoxFieldRenderProps<string>) => ReactElement>[0]) => ReactElement<{
|
|
4
|
+
hint?: string;
|
|
5
|
+
}, string | import("react").JSXElementConstructor<any>>;
|
|
6
|
+
type: "custom";
|
|
7
|
+
showWhen?: import("efficient-shell/ui").ShowWhenRule;
|
|
8
|
+
options: readonly import("efficient-easel/screen/lib/document/box-fields").SelectOption[];
|
|
9
|
+
fallback: string;
|
|
10
|
+
note?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{jsx as i}from"react/jsx-runtime";import{cloneElement as n}from"react";import{PaddingXIcon as m}from"efficient-easel/icons";import{deviceField as S}from"efficient-easel/screen/lib/document/device-fields";import{SIDE_SPACE_LABEL as d}from"../../components/SideSpaceField.js";import{BOX_SIDE_SPACE_DEFAULT as _,BOX_SIDE_SPACE_HINT as a,BOX_SIDE_SPACE_OPTIONS as c,boxSideSpaceOf as E,boxSideSpaceWrite as f}from"../../../format/lib/content/box-side-space.js";import{select as p}from"./box-fields.js";import{say as l}from"../../../format/lib/editor-words.js";function D(){const o=p(d,i(m,{}),c,_);return S("desktop",{...o,render:e=>{const r=o.render({...e,value:E(e.value),onChange:t=>e.onChange(f(t))});return n(r,{hint:l(a)})}})}export{D as boxSideSpaceField};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type { DividerStyle } from "../../../format/lib/sections/divider-style.js";
|
|
3
3
|
import type { SectionHeadStyle } from "../../../format/lib/sections/section-head-style.js";
|
|
4
|
+
import type { LogoLook } from "../../../format/lib/sections/logo-look.js";
|
|
4
5
|
export declare const CHART_PICTURES: Record<"bars" | "line" | "donut", ReactNode>;
|
|
5
6
|
export declare function dividerPicture(style: DividerStyle): ReactNode;
|
|
6
7
|
export declare const TAB_SHAPE_PICTURES: Record<"tabs" | "largeTabs", ReactNode>;
|
|
7
8
|
export declare const POST_CARD_PICTURES: Record<"card" | "cover", ReactNode>;
|
|
8
9
|
export declare const CARD_STYLE_PICTURES: Record<"cards" | "label-only", ReactNode>;
|
|
9
10
|
export declare const CARD_LIST_STYLE_PICTURES: Record<"table" | "list", ReactNode>;
|
|
10
|
-
export declare const LOGO_LOOK_PICTURES: Record<
|
|
11
|
+
export declare const LOGO_LOOK_PICTURES: Record<LogoLook, ReactNode>;
|
|
11
12
|
export declare const INTRO_BLEED_PICTURES: Record<"overlay" | "stacked", ReactNode>;
|
|
12
13
|
export declare const TIMELINE_PICTURES: Record<"split" | "spine" | "alternating" | "track", ReactNode>;
|
|
13
14
|
export declare const SECTION_HEAD_PICTURES: Record<SectionHeadStyle, ReactNode>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{NoSymbolIcon as u}from"efficient-easel/icons";import{useId as p}from"react";import{STRIPE_GEOMETRY as E}from"../../../format/lib/sections/divider-style.js";const s=44,f=28;function y({children:n}){return t("svg",{width:s,height:f,viewBox:`0 0 ${s} ${f}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:w,w:c,t:h=2,faint:l=!1})=>t("rect",{x:n,y:w,width:c,height:h,rx:h/2,stroke:"none",opacity:l?.45:1}),r=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,fill:"none"}),o=({x:n,y:w})=>t("circle",{cx:n,cy:w,r:1.75,stroke:"none"}),i=({x1:n,y1:w,x2:c,y2:h})=>t("line",{x1:n,y1:w,x2:c,y2:h}),I={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 P(n){if(n==="none")return t("span",{style:{display:"flex",width:s,height:f,alignItems:"center",justifyContent:"center"},children:t(u,{size:20})});if(n==="line")return t(y,{children:t(i,{x1:4,y1:14,x2:40,y2:14})});const{ink:w,period:c}=E[n],h=.4,l=[];for(let a=-12;a<s;a+=c*h)l.push(t("polygon",{points:`${a},22 ${a+w*h},22 ${a+w*h+10},6 ${a+10},6`,stroke:"none"},a));return t(T,{children:l})}function T({children:n}){const w=`sf-div-${p().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 d=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,stroke:"none",opacity:.3}),S={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(o,{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(o,{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})]})},k={card:e(y,{children:[t(r,{x:10,y:3,w:24,h:22}),t(d,{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(d,{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})]})},g={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})]})},L={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})]})},U={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})]})},O={overlay:e(y,{children:[t(d,{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(d,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},A={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(o,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(o,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(o,{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(o,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(o,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(o,{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(o,{x:8,y:12}),t(o,{x:22,y:12}),t(o,{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})]})},M={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})]})},v={width:"5.75rem",height:"3.75rem"},D={width:"8.5rem",height:"3.75rem"},$={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{L as CARD_LIST_STYLE_PICTURES,g as CARD_STYLE_PICTURES,I as CHART_PICTURES,$ as IMAGE_TEXT_ARRANGEMENT_PICTURES,O as INTRO_BLEED_PICTURES,v as LAYOUT_CELL,U as LOGO_LOOK_PICTURES,D as LONG_WORD_CELL,b as MOCKUP_PICTURES,k as POST_CARD_PICTURES,M as SECTION_HEAD_PICTURES,S as TAB_SHAPE_PICTURES,A as TIMELINE_PICTURES,P as dividerPicture};
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import{NoSymbolIcon as u}from"efficient-easel/icons";import{useId as p}from"react";import{STRIPE_GEOMETRY as E}from"../../../format/lib/sections/divider-style.js";const s=44,f=28;function y({children:n}){return t("svg",{width:s,height:f,viewBox:`0 0 ${s} ${f}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:n})}const x=({x:n,y:w,w:c,t:h=2,faint:l=!1})=>t("rect",{x:n,y:w,width:c,height:h,rx:h/2,stroke:"none",opacity:l?.45:1}),r=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,fill:"none"}),o=({x:n,y:w})=>t("circle",{cx:n,cy:w,r:1.75,stroke:"none"}),i=({x1:n,y1:w,x2:c,y2:h})=>t("line",{x1:n,y1:w,x2:c,y2:h}),I={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 P(n){if(n==="none")return t("span",{style:{display:"flex",width:s,height:f,alignItems:"center",justifyContent:"center"},children:t(u,{size:20})});if(n==="line")return t(y,{children:t(i,{x1:4,y1:14,x2:40,y2:14})});const{ink:w,period:c}=E[n],h=.4,l=[];for(let a=-12;a<s;a+=c*h)l.push(t("polygon",{points:`${a},22 ${a+w*h},22 ${a+w*h+10},6 ${a+10},6`,stroke:"none"},a));return t(T,{children:l})}function T({children:n}){const w=`sf-div-${p().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 d=({x:n,y:w,w:c,h})=>t("rect",{x:n,y:w,width:c,height:h,rx:2,stroke:"none",opacity:.3}),S={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(o,{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(o,{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})]})},k={card:e(y,{children:[t(r,{x:10,y:3,w:24,h:22}),t(d,{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(d,{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})]})},g={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})]})},L={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})]})},U={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})]})},O={overlay:e(y,{children:[t(d,{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(d,{x:4,y:13,w:36,h:12}),t(r,{x:4,y:13,w:36,h:12})]})},A={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(o,{x:9,y:8}),t(x,{x:14,y:7,w:24}),t(o,{x:9,y:14}),t(x,{x:14,y:13,w:20}),t(o,{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(o,{x:22,y:8}),t(x,{x:4,y:7,w:14}),t(o,{x:22,y:14}),t(x,{x:26,y:13,w:14}),t(o,{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(o,{x:8,y:12}),t(o,{x:22,y:12}),t(o,{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})]})},M={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})]})},v={width:"5.75rem",height:"3.75rem"},D={width:"8.5rem",height:"3.75rem"},$={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{L as CARD_LIST_STYLE_PICTURES,g as CARD_STYLE_PICTURES,I as CHART_PICTURES,$ as IMAGE_TEXT_ARRANGEMENT_PICTURES,O as INTRO_BLEED_PICTURES,v as LAYOUT_CELL,U as LOGO_LOOK_PICTURES,D as LONG_WORD_CELL,b as MOCKUP_PICTURES,k as POST_CARD_PICTURES,M as SECTION_HEAD_PICTURES,S as TAB_SHAPE_PICTURES,A as TIMELINE_PICTURES,P as dividerPicture};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as o,jsxs as
|
|
2
|
-
`),O=
|
|
1
|
+
import{jsx as o,jsxs as C}from"react/jsx-runtime";import{accentItalicCss as $,storedTextStyles as K,textStylesCss as X}from"../../../render/lib/text-styles/site-text-styles.js";import{pageWidthMarker as Y,PAGE_WIDTH_ATTR as q,siteWidthTokens as J,siteGutterTokens as Q,siteGutterPhoneClass as U,siteGutterPhoneTokens as Z,heroBackgroundTokens as ee}from"../../../format/lib/content/page-width.js";import{siteBlockGapPhoneClass as te,siteBlockGapPhoneTokens as oe,siteBlockGapTokens as ne}from"../../../format/lib/content/container-gap.js";import{usePreviewHeader as re}from"../../../render/components/PreviewHeaderContext.js";import{SitePhotographyProvider as se}from"../../../render/components/SitePhotographyContext.js";import{CORNER_STYLE_TO_PX as ae,normalizeCornerStyle as ie,normalizeCornerRadius as de,themeColorStyle as ce,typeSizesStyle as le,headingTypographyStyle as he,normalizeHeadingTypography as pe,themeAccentStyle as me,themeButtonStyle as fe,themePresetAccentVars as ue,themeSurfaceStyle as Se,siteCornerRadiusTokens as ge,shadowColorTokens as ye,headingCompressionAttr as xe,cardShadowAttr as Te,cardGapAttr as ke,hoverEffectAttr as Ce}from"../../../format/lib/theme.js";import{fontRoleStyle as Pe}from"../../../format/lib/fonts.js";import{wordStyleTokens as Ee}from"../../../format/lib/word-styles.js";import{isStandaloneSectionDocument as Ae,pageHasHeaderSection as P,pageTakesTopSpace as Ge,topSpaceMarker as ve,TOP_SPACE_ATTR as _e,HEADER_CLEARANCE_CLASS as Be}from"../../../render/lib/document/header-clearance.js";import{leadSectionInk as we,HEADER_INK_ATTR as Re}from"../../../render/lib/document/header-ink.js";import{useEasel as Ie}from"efficient-easel/easel";import{useCardContentSwitchPass as We}from"../../components/useCardContentSwitchPass.js";import{pageBackgroundVars as He}from"../../../format/lib/content/page-background.js";import{pageWidthTokens as Ne}from"../../../render/lib/document/page-frame.js";import{EditingBridgesProvider as be}from"../../../render/lib/document/editing-bridges.js";import De from"../../components/SectionTextPartBridge.js";import{PageContentsFromDocument as E}from"../../../render/components/PageContentsContext.js";const ze={SectionTextParts:De};import{PageWidthWrapper as lt,PublishedPageFrame as ht,pageWidthTokens as pt}from"../../../render/lib/document/page-frame.js";const je="color-mix(in oklab, var(--bg) 40%, #ffffff)",Fe="12vh";function Ve({style:n,children:a}){const{appState:i}=Ie(u=>u),t=i.data.content,r=i.data.root;if(Ae(t))return o("div",{className:"sf-themed-content",style:{...n,background:je,minHeight:"100vh",paddingBottom:Fe},children:o("div",{style:{background:"var(--bg)"},children:o(E,{content:t,children:a})})});const d=P(t)&&Ge(r,t),c=P(t)?ve(r,t):null,p=c?{[_e]:c}:null,l=Y(r?.widthChoice),m=l?{[q]:l}:null,h=d?null:we(t),f=h?{[Re]:h}:null;return o("div",{className:`sf-themed-content${d?` ${Be}`:""}`,style:n,...f,...p,...m,children:o("div",{style:{background:"var(--bg)",minHeight:"100%"},children:o(E,{content:t,children:a})})})}function at({propsTheme:n,propsFonts:a,propsCornerStyle:i,propsCornerRadiusPx:t,propsHeadingCompression:r,propsHeadingTypography:d,pageBackground:c,chromeInheritsSiteBackground:p,suppressPreviewNav:l,footer:m,overlay:h,children:f}){const{theme:u,fonts:A,sizes:G,cornerRadiusPx:v,cardShadow:S,shadowColor:_,cardGap:B,hoverEffect:g,headingCompression:w,siteWidth:R,siteGutter:I,siteGutterPhone:y,blockGap:W,blockGapPhone:x,headingTypography:H,heroBackgroundFollowsWidth:N,photographyGrayscale:b,textStyles:D,wordStyles:z,themeFromDocument:e}=re();We();const s=e?n:u,j=e?a:A,F=e?void 0:G,V=e?t===void 0?ae[ie(i)]:de(t):v,L=e?r:w,T=e?d:H,k=[X(K(e?void 0:D)),$(pe(T).italicStrong)].filter(Boolean).join(`
|
|
2
|
+
`),O=Ne(),M={...ce(s),...le(F),...he(T),...O.style,...p?{}:He(c)};return C("div",{className:`sf-theme-surfaces sf-theme-accent ${[U(e?void 0:y),te(e?void 0:x)].filter(Boolean).join(" ")}`.trim(),style:{...Pe(j),...Ee(e?null:z),...me(s),...fe(s),...ue(s),...Se(s),...ge(V),...ye(e?void 0:S,e?void 0:_,e?void 0:g),...J(e?void 0:R),...Q(e?void 0:I),...Z(e?void 0:y),...ne(e?void 0:W),...oe(e?void 0:x),...ee(e?void 0:N)},"data-sf-headings":xe(L),"data-sf-card-shadow":e?void 0:Te(S),"data-sf-card-gap":e?void 0:ke(B),"data-sf-card-hover":e?void 0:Ce(g),onClickCapture:l,children:[k?o("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:k}}):null,o(se,{grayscale:e?void 0:b,children:C(be,{value:ze,children:[o(Ve,{style:M,children:f}),m,h]})})]})}const it=n=>{n.target?.closest?.("a")&&n.preventDefault()};export{ze as EDITING_BRIDGES,Ve as EditorPageBody,at as EditorThemedBody,lt as PageWidthWrapper,ht as PublishedPageFrame,je as SECTION_PREVIEW_CANVAS,Fe as SECTION_PREVIEW_CANVAS_TAIL,pt as pageWidthTokens,it as suppressPreviewNav};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{convertSection as P,pressesAsBox as S,SECTION_TO_BOX_PRESS as _,sectionToBoxRow as l}from"../../../render/lib/sections/section-to-box.js";import{SECTION_PRESETS as
|
|
1
|
+
import{convertSection as P,pressesAsBox as S,SECTION_TO_BOX_PRESS as _,sectionToBoxRow as l}from"../../../render/lib/sections/section-to-box.js";import{SECTION_PRESETS as k,presetFor as R}from"../../../format/lib/sections/section-presets.js";import{GENERAL_SECTION_TO_BOX as B}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{statsBoxSeed as T,statsPressSeed as d,statsSeedRows as C}from"../../../render/lib/document/blocks/general/section-to-box-rows-stats.js";import{footerPaymentPressStarter as L,logosPressStarter as N,paymentPressStarter as w}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{pageHeaderPressStarter as v}from"../../../render/lib/document/blocks/general/section-to-box-rows-pageheader.js";import{milestoneTimelinePressStarter as A,storyTimelinePressStarter as U}from"../../../render/lib/document/blocks/general/section-to-box-rows-timeline.js";import{seedNodes as W}from"../../../format/lib/document/seed-parts.js";import{propsWithPartStyleValue as X}from"../../../render/lib/document/part-styles.js";import{isNodeList as m}from"efficient-easel/data";const D=Object.keys(B),E={Logos:N,DocMasthead:v,Timeline:U,TimelineTrack:A},G={PaymentBadges:w,PaymentLogosBlock:L};function u(t,r,e){const o={};for(const n of Object.keys(r(t.type)))o[n]=void 0;for(const[n,s]of Object.entries(t.props))o[n]=m(s)?s.map(p=>u(p,r,e)):s;return o.id=e(t.type),{type:t.type,props:o}}const O=t=>({...t?.theme?{theme:t.theme}:{},press:!0});function b(t,r,e=0,o=()=>({})){return(n,s,p)=>{const{nodes:i}=P({type:t,props:{...n(t),...o(),id:s(t)}},r,O(p));return u(i[e],n,s)}}const M={Stats:$,Cards:Y};function Y(){const t=l("Cards");if(!t)return null;const r=b("Cards",t,0,j);return(e,o,n)=>{const s=r(e,o,n);return{...s,props:{...s.props,name:"Cards section"}}}}function $(){const t=l("StatsParagraph");return t?(r,e,o)=>{const{nodes:n}=P({type:"StatsParagraph",props:{...r("StatsParagraph"),...d(),id:e("StatsParagraph")}},t,O(o)),s=n[0],p=m(s.props.content)?s.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=x(T(C(),"table")),a=p.map(h),c=u({...s,props:{...s.props,content:[...a,i]}},r,e);return{...c,props:{...c.props,name:"Stats section"}}}:null}function h(t){if(t.props?.name==="Words"){const r=m(t.props.content)?t.props.content.map(H):t.props.content;return{...t,props:{...t.props,widthFitPhone:"fill",content:r}}}return m(t.props?.content)?{...t,props:{...t.props,content:t.props.content.map(h)}}:t}function H(t){return t.type!=="Text"?t:{...t,props:X({...t.props,alignTablet:"left"},"text","alignTablet","left")}}const x=t=>W([t],(r,e)=>`${r}-seed-${e}`)[0];function I(t,r){if(!S(t,r))return null;const e=M[t];if(e)return e();const o=l(t);return o?b(t,o,0,E[t]??G[t]):null}function V(t){return(r,e,o)=>{const n=s=>{if(s.type==="Stats"){const a=u(x(T([],"list")),r,e);return{...a,props:{...a.props,name:"Numbers"}}}let p=!1;const i={};for(const[a,c]of Object.entries(s.props))if(m(c)){const f=c.map(n);p||=f.some((y,g)=>y!==c[g]),i[a]=f}else i[a]=c;return p?{type:s.type,props:i}:s};return n(t(r,e,o))}}function ot(t,r=_){const e=R(t);return e?V(e):I(t,r)}function nt(){return[...Object.keys(k),...D.filter(t=>S(t)),...Object.keys(E).filter(t=>S(t))]}export{E as MERGE_LAYOUTS,D as TEXT_LAYOUTS,b as conversionPreset,ot as layoutPresetFor,nt as layoutTypes};
|
|
@@ -3,6 +3,14 @@ export declare const HOVER_KEY = "hover";
|
|
|
3
3
|
export declare const HOVER_GROUP_KEY = "_gHover";
|
|
4
4
|
export type { HoverKind };
|
|
5
5
|
export declare const HOVER_KIND_LABELS: Readonly<Record<HoverKind, string>>;
|
|
6
|
+
export declare const BOX_HIGHLIGHT = "highlight";
|
|
7
|
+
export declare const HIGHLIGHT_LABEL = "Highlight";
|
|
8
|
+
export type BoxHover = "none" | typeof BOX_HIGHLIGHT;
|
|
9
|
+
export declare const BOX_HOVER_KINDS: readonly BoxHover[];
|
|
10
|
+
export declare const BOX_HOVER_LABELS: Readonly<Record<BoxHover, string>>;
|
|
11
|
+
export declare function boxHoverOf(record: Readonly<Record<string, unknown>>): BoxHover;
|
|
12
|
+
export declare const BOX_HIGHLIGHT_CLASS = "transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]";
|
|
13
|
+
export declare function boxHighlightStyle(record: Readonly<Record<string, unknown>>, ink: (slot: string) => string): Record<string, string> | null;
|
|
6
14
|
export type PartHover = Extract<HoverKind, "none" | "lift">;
|
|
7
15
|
export declare const PART_HOVER_KINDS: readonly PartHover[];
|
|
8
16
|
export declare function hoverOf(record: Readonly<Record<string, unknown>>): PartHover;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HOVER_MOTION as
|
|
1
|
+
import{HOVER_MOTION as m,hoverKindsOf as a,motionSeconds as c}from"efficient-shell/format";import{ANGLE_RANGE as v}from"../content/box-angle.js";import{finiteNumber as l}from"../finite-number.js";const i="hover",b="_gHover",h={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},u="highlight",g="Highlight",M=["none",u],U={none:h.none,[u]:g};function I(n){return n[i]===u?u:"none"}const X="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]";function Y(n,e){return I(n)!==u?null:{"--sf-hl-bg":e("surface"),"--sf-hl-ink":e("main")}}const S=a(["none","lift"]);function z(n){const e=n[i];return S.includes(e)?e:"none"}const _=a(["none","rotate"]),r={kind:i,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay"},f="spinOnHover",x=v,R={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Z=Object.keys(R);function N(n){return R[n]??"none"}const k=m.rotateFallbackDeg;function V(n,e){const t=n[r.kind];if(_.includes(t))return t;const o=n[f];return typeof o=="boolean"?o?"rotate":"none":e}function D(n){const e=l(n);return e===void 0?k:Math.min(x.max,Math.max(x.min,e))}function w(n,e){const t=N(e),o=V(n,t);return{kind:o,angle:o==="rotate"?D(n[r.angle]):null,duration:c("hover","duration",o==="rotate"?n[r.duration]:void 0),delay:c("hover","delay",o==="rotate"?n[r.delay]:void 0)}}function j(n){const e={field:r.kind,in:[..._]};return{any:[{field:r.kind,is:"rotate"},{all:[{not:e},n==="rotate"?{not:{field:f,is:!1}}:{field:f,is:!0}]}]}}const O=a(["none","mono"]),C=a(["none","nextImage","mono"]),H={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},F=Object.keys(H);function L(n){return H[n]??"none"}const E={zoom:"hoverZoom",darken:"hoverDarken"},d={min:100,max:150,step:1,unit:"%"},s=["nextImage"];function T(n,e){if(!s.includes(e))return null;const t=l(n[E.zoom]);if(t===void 0)return null;const o=Math.min(d.max,Math.max(d.min,t));return o===d.min?null:String(o/100)}function A(n,e){if(!s.includes(e))return null;const t=l(n[E.darken]);return t!==void 0&&t>0?t:null}const K=["ImageBlock"];function G(n,e,t=O){const o=n[i];return t.includes(o)?o:e}function W(n,e=""){const t=K.includes(e)?C:O,o=G(n,L(e),t),p=o!=="none";return{kind:o,duration:c("hover","duration",p?n[r.duration]:void 0),delay:c("hover","delay",p?n[r.delay]:void 0),...s.includes(o)?{zoom:T(n,o),darken:A(n,o)}:{}}}function q(){return{field:i,in:[...s]}}function J(n){return n==="none"?{field:i,in:["mono","nextImage"]}:{not:{field:i,is:"none"}}}export{u as BOX_HIGHLIGHT,X as BOX_HIGHLIGHT_CLASS,M as BOX_HOVER_KINDS,U as BOX_HOVER_LABELS,x as CARD_HOVER_ANGLE,r as CARD_HOVER_KEYS,_ as CARD_HOVER_KINDS,Z as CARD_HOVER_SECTIONS,k as CARD_HOVER_TURN,g as HIGHLIGHT_LABEL,b as HOVER_GROUP_KEY,i as HOVER_KEY,h as HOVER_KIND_LABELS,K as NEXT_PICTURE_BLOCKS,C as NEXT_PICTURE_HOVER_KINDS,f as OLD_SPIN_KEY,S as PART_HOVER_KINDS,F as PICTURE_HOVER_BLOCKS,E as PICTURE_HOVER_KEYS,O as PICTURE_HOVER_KINDS,d as PICTURE_HOVER_ZOOM,Y as boxHighlightStyle,I as boxHoverOf,D as cardHoverAngleOf,V as cardHoverKindOf,w as cardHoverOf,N as cardHoverResting,j as cardRotatesRule,z as hoverOf,G as pictureHoverKindOf,q as pictureHoverMovesRule,W as pictureHoverOf,L as pictureHoverResting,J as pictureHoverRunsRule,T as pictureHoverZoomOf};
|
|
@@ -3,5 +3,6 @@ export type BlockAlign = "left" | "center" | "right";
|
|
|
3
3
|
export declare const BLOCK_ALIGN_JUSTIFY: Record<BlockAlign, string>;
|
|
4
4
|
export type AlignKind = "text" | "place" | "justify" | "items";
|
|
5
5
|
export declare function blockAlignOf(value: unknown): BlockAlign | undefined;
|
|
6
|
+
export declare function legacyBlockAlignOf(value: unknown): BlockAlign | undefined;
|
|
6
7
|
export declare function alignViewAnswers(desktop: unknown, tablet: unknown, phone: unknown): ViewOverrides<BlockAlign>;
|
|
7
8
|
export declare function alignViewClasses(kind: AlignKind, desktop: unknown, tablet: unknown, phone: unknown): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{viewOverrides as n}from"./view-overrides.js";const
|
|
1
|
+
import{viewOverrides as n}from"./view-overrides.js";const f={left:"justify-start",center:"justify-center",right:"justify-end"},o={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},w={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function a(t){return t==="left"||t==="center"||t==="right"?t:void 0}function v(t){return t==="start"?"left":t==="end"?"right":a(t)}function m(t,r,s){const i=a(t)??"left",e=n("same",i,a(r),a(s)),l={};return e.tablet&&e.tablet!==i&&(l.tablet=e.tablet),e.phone&&e.phone!==i&&(l.phone=e.phone),l}function b(t,r,s,i){const e=m(r,s,i);return[e.tablet?o[t][e.tablet]:"",e.phone?w[t][e.phone]:""].filter(Boolean).join(" ")}export{f as BLOCK_ALIGN_JUSTIFY,m as alignViewAnswers,b as alignViewClasses,a as blockAlignOf,v as legacyBlockAlignOf};
|
|
@@ -6,6 +6,7 @@ export declare const COUNT_KEY_PROP = "countKey";
|
|
|
6
6
|
export declare const COUNTS_SOURCE = "counts";
|
|
7
7
|
export declare const LOCATION_PAYMENT_METHODS_SOURCE = "location-payment-methods";
|
|
8
8
|
export declare const SHOP_PAYMENT_METHODS_SOURCE = "shop-payment-methods";
|
|
9
|
+
export declare const DELIVERY_OPTIONS_SOURCE = "delivery-options";
|
|
9
10
|
export type SourceRow = Readonly<Record<string, string>>;
|
|
10
11
|
export interface SourceChoice {
|
|
11
12
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{globalRegistry as c}from"../global-registry.js";import{nonEmptyString as a}from"../non-empty-string.js";const f="dataSource",x="dataSourceOptions",
|
|
1
|
+
import{globalRegistry as c}from"../global-registry.js";import{nonEmptyString as a}from"../non-empty-string.js";const f="dataSource",x="dataSourceOptions",p="dataRows",_="countKey",g="counts",A="location-payment-methods",C="shop-payment-methods",w="delivery-options";function u(e){return typeof e.open=="function"}const y=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function s(){return c("efficient.block-sources",()=>({sources:new Map,revision:0}))}const m=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),b=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),i=e=>typeof e=="string"&&e.trim()!=="";function O(e){if(!e||!i(e.label))return null;if(u(e))return{label:e.label.trim(),open:e.open};const t=e.href;return i(t)?{label:e.label.trim(),href:t.trim()}:null}function d(e){if(typeof e.key!="string"||!y.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(r=>typeof r!="string"||!r))throw new Error(`The block source ${e.key} names no block it can fill.`);const t=O(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>l(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(m)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(b).map(r=>({...r}))}:{},...t?{edit:t}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>r.trim())}:{}}}function P(e){const t=e.map(d),r=s();for(const o of t)r.sources.set(o.key,o);t.length&&(r.revision+=1)}function v(e){const t=[...s().sources.values()];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function h(e){return s().sources.get(e)??null}function T(e){return s().sources.get(e)?.choices??[]}function U(){return s().revision}function S(e){const t=e?.[f];return typeof t=="string"?t.trim():""}function l(e){if(!e||typeof e!="object"||Array.isArray(e))return null;const t={};for(const[r,o]of Object.entries(e)){const n=a(o);n&&(t[r]=n)}return Object.keys(t).length?t:null}function k(e){const t=e?.[p];return Array.isArray(t)?t.map(l).filter(r=>r!==null):null}function N(e,t,r=[]){const o=k(e);if(o!==null&&(o.length||!t))return{rows:o,sample:!1};if(!t)return{rows:[],sample:!1};const n=h(S(e))?.sample;return{rows:n?.length?n:r,sample:!0}}export{x as BLOCK_SOURCE_OPTIONS_PROP,f as BLOCK_SOURCE_PROP,p as BLOCK_SOURCE_ROWS_PROP,g as COUNTS_SOURCE,_ as COUNT_KEY_PROP,w as DELIVERY_OPTIONS_SOURCE,A as LOCATION_PAYMENT_METHODS_SOURCE,C as SHOP_PAYMENT_METHODS_SOURCE,h as blockSourceSpec,v as blockSources,U as blockSourcesRevision,S as declaredBlockSource,u as isSourceEditAction,P as registerBlockSources,k as servedRows,T as sourceChoices,N as sourcedRows};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BOX_SHAPES: ("square" | "
|
|
1
|
+
export declare const BOX_SHAPES: ("square" | "auto" | "video" | "poster" | "tall" | "wide" | "landscape" | "portrait" | "panorama" | "story")[];
|
|
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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BOX_SIDE_SPACE_PROP = "sideSpace";
|
|
2
|
+
export declare const BOX_SIDE_SPACE_OPTIONS: readonly [{
|
|
3
|
+
readonly value: "box";
|
|
4
|
+
readonly label: "Box";
|
|
5
|
+
}, {
|
|
6
|
+
readonly value: "site";
|
|
7
|
+
readonly label: "Site";
|
|
8
|
+
}];
|
|
9
|
+
export type BoxSideSpace = (typeof BOX_SIDE_SPACE_OPTIONS)[number]["value"];
|
|
10
|
+
export declare const BOX_SIDE_SPACE_DEFAULT: BoxSideSpace;
|
|
11
|
+
export declare const BOX_SIDE_SPACE_HINT = "Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";
|
|
12
|
+
export declare function boxSideSpaceOf(value: unknown): BoxSideSpace;
|
|
13
|
+
export declare function boxSideSpaceWrite(next: unknown): "site" | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t="sideSpace",s=[{value:"box",label:"Box"},{value:"site",label:"Site"}],o="box",i="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function n(e){return e==="site"?"site":"box"}function S(e){return e==="site"?"site":void 0}export{o as BOX_SIDE_SPACE_DEFAULT,i as BOX_SIDE_SPACE_HINT,s as BOX_SIDE_SPACE_OPTIONS,t as BOX_SIDE_SPACE_PROP,n as boxSideSpaceOf,S as boxSideSpaceWrite};
|