efficient-web-builder 55.2.0 → 55.3.1
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 +38 -0
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/lib/document/block-source-fields.d.ts +1 -0
- package/dist/editor/lib/document/block-source-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
- package/dist/editor/lib/document/choice-pictures.js +1 -1
- package/dist/editor/lib/document/live-number-field.d.ts +5 -0
- package/dist/editor/lib/document/live-number-field.js +1 -1
- package/dist/editor/lib/document/mirror-cards-field.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.js +1 -1
- package/dist/editor/lib/sections/text-layouts.js +1 -1
- package/dist/format/lib/content/block-sources.d.ts +12 -1
- package/dist/format/lib/content/block-sources.js +1 -1
- package/dist/format/lib/content/box-background.d.ts +3 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +6 -1
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/count-numbers.d.ts +1 -1
- package/dist/format/lib/content/count-numbers.js +1 -1
- package/dist/format/lib/content/footer.js +1 -1
- package/dist/format/lib/content/image-text-rows.d.ts +22 -0
- package/dist/format/lib/content/image-text-rows.js +1 -0
- package/dist/format/lib/content/mirror-cards.d.ts +17 -0
- package/dist/format/lib/content/mirror-cards.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +7 -0
- package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.d.ts +4 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +11 -0
- package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -0
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/passes/document-position.d.ts +8 -0
- package/dist/format/lib/document/passes/document-position.js +1 -1
- package/dist/format/lib/document/row-hand.d.ts +5 -0
- package/dist/format/lib/document/row-hand.js +1 -0
- package/dist/format/lib/document/section-catalog.js +17 -3
- package/dist/format/lib/document/section-descriptions.js +1 -1
- package/dist/format/lib/document/seed-parts.d.ts +3 -0
- package/dist/format/lib/document/seed-parts.js +1 -1
- package/dist/format/lib/document/text-seeds.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +38 -1
- package/dist/format/lib/editor-words-catalogue.js +6 -6
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/sections/strip-shape.js +1 -1
- package/dist/format/lib/sections/ticker-join.d.ts +1 -0
- package/dist/format/lib/sections/ticker-join.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +2 -2
- package/dist/format/lib/theme.d.ts +1 -0
- package/dist/format/lib/theme.js +3 -3
- package/dist/render/components/CardRowContext.d.ts +5 -0
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/ClientRows.d.ts +8 -0
- package/dist/render/components/ClientRows.js +1 -0
- package/dist/render/components/Flex.d.ts +2 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/JoinBox.d.ts +4 -0
- package/dist/render/components/JoinBox.js +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/Logos.d.ts +4 -2
- package/dist/render/components/Logos.js +1 -1
- package/dist/render/components/MirrorContext.d.ts +12 -0
- package/dist/render/components/MirrorContext.js +1 -1
- package/dist/render/components/PaymentBadges.js +1 -1
- package/dist/render/components/ProcessSteps.d.ts +5 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
- package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.d.ts +5 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.d.ts +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
- package/dist/render/lib/document/head-core-boxes.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +2 -0
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/box-join.d.ts +2 -0
- package/dist/render/lib/document/passes/box-join.js +1 -0
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/sections/card-list-style.d.ts +18 -0
- package/dist/render/lib/sections/card-list-style.js +1 -0
- package/dist/render/lib/sections/payment-rows.d.ts +16 -0
- package/dist/render/lib/sections/payment-rows.js +1 -0
- package/dist/render/lib/sections/section-to-box.d.ts +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,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 55.3.1 - 2026-11-07
|
|
4
|
+
|
|
5
|
+
From main at `a63c1019`: #576. A patch: one fix, no `!` in any title, the peers stay `efficient-easel` `^28.2.0` and `efficient-shell` `^12.13.0`, the declared exports are byte for byte the same as 55.3.0. No stored key or value moves.
|
|
6
|
+
|
|
7
|
+
**For hosts:**
|
|
8
|
+
- efficient-storefront-blocks: take `^55.3.1` in the bump PR; the `FitmentPicker` and `StockFitment` lines in `scripts/registered-not-catalogued.ts` can go.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **The Fitment Form parts have a block set** (#576): `FitmentPicker` and `StockFitment` are in the commerce set. The set guard now walks every block the builder can hand a host (catalogue, unlisted sets, registry, presses, section-to-box rows, slot, drop and card-template seeds).
|
|
13
|
+
|
|
14
|
+
## 55.3.0 - 2026-11-07
|
|
15
|
+
|
|
16
|
+
From main at `e06f6ceb`: #567, #569, #568, #570, #560, #571, #557, #572, #573. A minor: no `!` in any title, the peers stay `efficient-easel` `^28.2.0` and `efficient-shell` `^12.13.0`, no module is deleted or moved and no declared export is removed (`CardRowFieldKind` gains `"colour"`; `linkedCount` gains an optional `row`; `OwnPad` gains optional tablet values). No stored key or value moves: the new converter rows stay OFF, so every stored node draws as before; only a NEW insert changes.
|
|
17
|
+
|
|
18
|
+
**For hosts:**
|
|
19
|
+
- efficient-storefront-blocks: the Filters PR takes `^55.3.0` for the row-colour fill (#569) and regenerates `words.public.d.ts` for the new catalogue keys. `efficient-block-sources.ts` can import the payment source keys (#568). The Feature Rows seed can import `imageTextRowSeed` and `LABEL_FACE` (#557).
|
|
20
|
+
- A Logos wall draws payment chips from a source only after efficient-backend #4461 is released and promoted (#568).
|
|
21
|
+
- Deprecated, removed in the next major: the `LogoWallMark` `mark` prop (#568).
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **One Stats section** (#567): a Stats press lays down a Box with three head Texts and a Stats Box of ONE Card list; Card style is Table or List. "Stats with Text" and the bare Stats block leave the Add menu. Text Alignment gets a Tablet value.
|
|
26
|
+
- **A Box in a card can take its fill from a row colour** (#569): `swatch` names a colour field of the row; only `#rgb` / `#rrggbb` paints. New exports `BOX_SWATCH_PROP`, `boxSwatchFill`.
|
|
27
|
+
- **A Logos wall can list payment methods from a source** (#568): one Logo card template repeats per served method. New exports `LOCATION_PAYMENT_METHODS_SOURCE`, `SHOP_PAYMENT_METHODS_SOURCE`, `PAYMENT_METHOD_SOURCES`, `isPaymentMethodSource`.
|
|
28
|
+
- **A Box joins a full-screen neighbour** (#560): a Box `Join` row, the same mechanism as the Scrolling Bar (`lib/sections/ticker-join.ts`).
|
|
29
|
+
- **Image & Text Columns takes Feature Rows' job** (#557): Mirror cards, client rows from a source, one label face. New exports `ClientRows`, `imageTextRowSeed`, `LABEL_FACE`, `labelLook`, `labelStyle`.
|
|
30
|
+
- **Page Header press lays down a Box** (#572): "Document Header" is now Page Header in Layouts; new export `pageHeaderPressStarter`. Issue Header leaves the Add menu (stored nodes still draw).
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
|
|
34
|
+
- **Recurring Columns and Document Detail Cards convert to a Box of one Card list** (#570) and keep the old look. Rows stay OFF.
|
|
35
|
+
- **Story Timeline Spine and Alternating convert to Boxes** (#573); Track still draws the Milestone rail. Rows stay OFF.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- **The Scrolling Bar converter row keeps a stored Join side** (#571). `NOT_HELD_BY_A_NODE` has one home (new export) and `heldByANode` is registered once.
|
|
40
|
+
|
|
3
41
|
## 55.2.0 - 2026-11-06
|
|
4
42
|
|
|
5
43
|
From main at `38004144`: #551, #527, #555, #556, #558, #552, #563, #559, #564, #561, #562. A minor: no `!` in any title, the peers stay `efficient-easel` `^28.2.0` and `efficient-shell` `^12.13.0`, no module is deleted or moved and no declared export is removed. No stored key or value moves: `SECTION_TO_BOX_ON` stays empty, so every stored node draws as before; only a NEW insert changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as n,Fragment as W,jsxs as y}from"react/jsx-runtime";import{useContext as bt,useEffect as pe,useRef as Pt,useState as Le}from"react";import{FieldSelect as wt,InspectorField as vt,fieldShownInView as Tt}from"efficient-easel/fields";import{SettingsField as Nt}from"efficient-easel/panel";import{InspectorUpLevel as Y}from"efficient-easel/chrome";import{StylesIcon as kt,TypeIcon as Ot}from"efficient-easel/icons";import{useEasel as Ct}from"efficient-easel/easel";import{TextPartPanel as Be}from"efficient-easel/copy";import{Button as Rt,IconButton as Et,Tooltip as It}from"efficient-shell/ui";import{PartTextBox as zt,partTextCells as He}from"./PartTextBox.js";import{SiteFields as me}from"./SiteFields.js";import{usePartMotion as Ft}from"./usePartMotion.js";import{UiIcon as Ue}from"efficient-easel/draw/client";import{usePreviewHeader as _t}from"../../render/components/PreviewHeaderContext.js";import{UpdateStyleDialog as Vt}from"./UpdateStyleDialog.js";import{ScreenDocumentContext as At}from"efficient-easel/screen/components/ScreenDocumentContext";import{hasStyleChange as Lt,partStyleToTextStyleValues as Bt,pushIntoStyle as Ht,resolveTextStyles as We,styleIdOfRole as Ut}from"../../render/lib/text-styles/site-text-styles.js";import{useSiteTextStylesWriter as Wt}from"../lib/site-text-styles-writer.js";import{useThemeRowPersist as jt}from"../lib/theme-row-persist.js";import{usePreviewDevice as Dt}from"efficient-easel/draw/client";import{shownTier as q}from"efficient-easel/screen/lib/document/device-fields";import{PART_PANEL_ROWS as je,partRowHasTabletValue as Gt}from"../lib/document/part-panel-rows.js";import{usePartStyle as Kt}from"./PreviewPartStyleContext.js";import{say as l}from"../../format/lib/editor-words.js";import{readHidable as J,textFieldOffPage as Mt,textFieldPanelOnly as $t}from"../lib/document/controls.js";import{TEXT_FIELD_MARKER as Xt}from"efficient-easel/draw";import{useSectionOps as Yt}from"efficient-easel/screen/lib/document/use-section-ops";import{FONT_OPTIONS as qt,FONT_ROLES as Jt,FONT_ROLE_LABELS as De,fontOption as he,fontRoleOf as Qt}from"../../format/lib/fonts.js";import{isMultilineKind as Zt,partPlaceholder as en,typeInPlaceKind as tn}from"../../render/lib/document/part-text.js";import{partRowField as nn}from"../lib/document/part-row-field.js";import{decodePartKey as on,partPropsWithRowValue as ln,partRowValue as sn}from"../../render/lib/document/part-rows.js";import{followedStyleOf as Ge,propsWithPartStyleValue as H,propsWithoutPartStyle as rn,readPartStyle as ye,regionHasOwnLook as an}from"../../render/lib/document/part-styles.js";import{partThemeColors as cn}from"../../format/lib/document/part-inks.js";import{styleKeyForPart as Ke}from"../../format/lib/sections/section-text-kinds.js";import{commitPartText as dn}from"../lib/document/part-typing.js";import{keysOnCanvas as un,useCanvasTypingPart as fn}from"../lib/document/canvas-typing.js";import{useEaselHost as pn}from"efficient-easel/screen/lib/host";import{SOURCE_LINES as mn,SOURCE_ACTIONS as hn,SOURCE_ACTION_LABEL as yn,partSourceNoteFor as gn,partSourceOf as Sn,sourceMenuIdOf as xn,sourceSlugOf as ge}from"../../format/lib/document/source-bound-parts.js";import{encodePartId as bn,holdsAuthoredText as Pn}from"../../render/lib/document/text-parts.js";import{regionsForSection as wn}from"../../format/lib/sections/section-text-regions.js";import{regionTakesSize as vn,textRegionOfPartKey as Tn}from"../../format/lib/sections/text-regions.js";import{SameInEveryViewNote as Me}from"./SameInEveryViewNote.js";function Se(t){return t?l(t):null}function $e(t){return t.kind==="role"?De[t.role]:t.kind==="custom"?"Custom":null}function Nn(t){const o=Qt(t.role);return o?{kind:"role",role:o}:null}function kn(t,o){if(!t)return{kind:"unread"};const{faceRole:r,base:i}=t;if(o[r]===i.fontKey)return{kind:"role",role:r};const c=Object.keys(o).filter(s=>o[s]===i.fontKey);return c.length===1?{kind:"role",role:c[0]}:{kind:"custom"}}function Q(t,o,r,i){return Nn(ye(t,o))??kn(r,i)}function On(t,o){if(!t.length)return null;const r=o(t[0]);return t.every(i=>o(i)===r)?r:null}function Xe(t){return[{value:j,label:l("No style"),description:l("Section’s own")},...t.map(o=>({value:o.id,label:o.name,description:o.values.font?he(o.values.font)?.label:void 0}))]}const j="";function Cn({face:t,base:o,onPick:r}){const i=t.kind==="role"?t.role:j,c=[{label:l("No style"),value:j},...Jt.map(s=>({label:l(De[s]),value:s}))];return n(wt,{ariaLabel:l("Style"),value:i,options:c,inline:!0,onChange:s=>r(s===j?null:s),renderOption:s=>s.value===j?y(W,{children:[n("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),n("span",{className:"sf-part-style-aside","aria-hidden":"true",children:l("Section’s own")})]}):n("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>n("span",{style:{fontFamily:o?.fontKey?`var(${he(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Se($e(t))}),valueText:s=>Se($e(t))??s?.label??""})}const Ye=["regionNote","regionStyle"],Rn=Object.keys(je).filter(t=>!Ye.includes(t));function qe(t,o){return!t.some(o)}function En({sectionName:t,onBack:o,textEditor:r,styleRow:i,children:c,tabs:s}){const E=y(W,{children:[r,i,c]});return y("div",{className:"sf-part-panel",children:[n(Y,{inline:!0,name:l(t),onSelect:o}),s?s(E):E]})}function Je({source:t,slug:o,menuId:r}){const i=pn(),c=hn[t],s=!c.needsSlug||!!o;return n("div",{className:"sf-note sf-note--source",children:y("p",{className:"es-field-hint sf-hint-keep",children:[l(mn[t]),s?y(W,{children:[" ",n(Rt,{type:"button",variant:"link",size:"sm",onClick:()=>{c.type==="storefront-editor:open-menus"?i.send(c.type,{menuId:r??null}):o&&i.send(c.type,{slug:o})},children:l(yn)})]}):null]})})}const Qe=4,In=120;function Ze(t){return l("Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.",{part:l(t.label).toLowerCase()})}function et({region:t,sizePx:o,face:r,base:i,onFollowStyle:c,source:s,slug:E,onBack:N,shows:x,sizedStyle:b,ownLook:I}){const D=t.follows;return y("div",{className:"sf-note",children:[n("p",{children:n("strong",{children:l(t.label)})}),x("regionNote")&&!I&&n("p",{children:o?l("Its size follows Styles ▸ {follows} — {px}px right now.",{follows:l(D),px:Math.round(o)}):l("Its size follows Styles ▸ {follows}.",{follows:l(D)})}),b?y(W,{children:[b,x("regionStyle")&&n("p",{className:"es-field-hint sf-hint-keep",children:Ze(t)})]}):c?x("regionStyle")?n(W,{children:n(Nt,{label:l("Style"),icon:n(kt,{}),hint:Ze(t),children:n(Cn,{face:r,base:i,onPick:c})})}):null:x("regionNote")&&n("p",{className:"es-field-hint sf-hint-keep",children:l("Only the size follows a site style. This section sets its own font, weight and letter case.")}),s&&x("sourceNote")?n(Je,{source:s,slug:E}):null,qe([...Ye,"sourceNote",...b?["fontSize"]:[]],z=>x(z)&&(z!=="sourceNote"||!!s))&&n(Me,{}),n(Y,{inline:!0,name:l("Page"),onSelect:N})]})}function zn({onBack:t}){return y("div",{className:"sf-note",children:[n("p",{children:n("strong",{children:l("This part is no longer here.")})}),n("p",{children:l("The section it belonged to has been changed or removed.")}),n(Y,{inline:!0,name:l("Page"),onSelect:t})]})}function Fn({onBack:t,partId:o,why:r}){return y("div",{className:"sf-note",children:[n("p",{children:n("strong",{children:l("This part's settings did not open.")})}),n("p",{children:l("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),n("p",{className:"sf-note-detail",children:y("code",{children:[o," — ",r]})}),n(Y,{inline:!0,name:l("Page"),onSelect:t})]})}function _n({nodeId:t,propKey:o,onBack:r,onEditStyle:i}){const{getItemById:c,getSelectorForId:s,config:E}=Ct(e=>e),N=Yt(),x=fn(),{partStyle:b}=Kt(),{fonts:I,textStyles:D}=_t(),z=bt(At),xe=!z?.capabilities?.hasSiteTheme,{persist:nt}=jt({themeFromDocument:xe,tokenRef:z?.tokenRef,siteId:z?.siteId??null}),k=Wt({themeFromDocument:xe,persist:nt}),[ot,Z]=Le(!1),U=Dt(),f=e=>(q(U)!=="tablet"||Gt(e))&&Tt(je[e],U),be=Pt(null),d=c(t),p=s(t),Pe=d?E.components[d.type]:void 0,{key:P,row:w}=on(o),we=Pe?.fields?.[P],g=w?nn(we,w):we,F=bn(t,o),u=d?.props??{},v=tn(g),ve=Mt(g),Te=Pn(g),Ne=d?Sn(d.type):null,ee=d?gn(d.type,P):null,te=w?sn(u[P],w):u[P],ke=!!w&&!(Array.isArray(u[P])&&w.index<u[P].length);pe(()=>{if(un(document))return;be.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[F]);const[ne,Oe]=Le(0);pe(()=>Oe(0),[F]);const oe=!!d&&!ke&&(!p||!g);pe(()=>{if(!oe||ne>=Qe)return;const e=setTimeout(()=>Oe(a=>a+1),In);return()=>clearTimeout(e)},[oe,ne]);const lt=oe&&ne<Qe,le=Ft(t,Ke(d?.type,o),"textPart");if(!d||ke)return n(zn,{onBack:r});const G=wn(d.type),Ce=G?Tn(G,o):null;if(G&&Ce){const e=b?.partId===F?b:null,a=G[Ce],h=a.writable===!0&&!!p,T=C=>{p&&N.replaceComponent(p.zone,p.index,{...d,props:H(u,o,"role",C)})};if(h&&vn(a)){const C=ye(u,o),Ae=R=>{if(!p)return;let fe=u;for(const[St,xt]of Object.entries(R))fe=H(fe,o,St,xt??null);N.replaceComponent(p.zone,p.index,{...d,props:fe})},ht=We(k.saved,k.old),yt=Ge(C)??"",gt=He(C,e?.base??tt,Ae,q(U)).filter(R=>R.key==="fontSize"&&f(R.key));return n(me,{motion:le,body:n(et,{region:a,sizePx:e?.base.sizePx??null,face:Q(u,o,e,I),base:e?.base??null,source:Ne,slug:ge(u),onBack:r,shows:f,ownLook:an(C),sizedStyle:n(Be,{style:f("style")?{value:yt,options:Xe(ht),onChange:R=>Ae(R?{textStyle:R}:{textStyle:null,role:null}),onEditStyles:i}:void 0,cells:gt})})})}return n(me,{motion:le,body:n(et,{region:a,sizePx:e?.base.sizePx??null,face:Q(u,o,e,I),base:e?.base??null,onFollowStyle:h?T:void 0,source:Ne,slug:ge(u),onBack:r,shows:f})})}if(!p||!g)return lt?n("div",{className:"sf-note","aria-busy":"true"}):n(Fn,{onBack:r,partId:F,why:p?"no field":"no selector"});const Re=e=>{N.replaceComponent(p.zone,p.index,{...d,props:e})},se=e=>{if(J(e).hidden!==J(te).hidden||!v){const h=w?ln(u,P,w,e):{...u,[P]:e};h&&Re(h);return}dn({node:d,propKey:o,kind:v,zone:p.zone,index:p.index},J(e).text,N.replaceComponent)},st=te,_=b?.partId===F?b:null,V=_?.styleOwner,K=V?c(V.owner):null,re=V&&K?s(V.owner):null,ie=!!(V&&K&&re),A=ie?K.props??{}:u,ae=ie?e=>N.replaceComponent(re.zone,re.index,{...K,props:e}):Re,M=ie?V.kind:Ke(d?.type,o),S=ye(A,M),m=[{partKey:M,face:Q(A,M,_,I),sizeGroup:_?.sizeGroup??null,base:_?.base??tt,style:S}],Ee=On(m,e=>e.sizeGroup),rt=cn(_?.inks),L=(e,a)=>{let h=A;for(const T of m)h=H(h,T.partKey,e,a);ae(h)},it=e=>e?L("textStyle",e):ce({textStyle:null,role:null}),ce=e=>{let a=A;for(const h of m)for(const[T,C]of Object.entries(e))a=H(a,h.partKey,T,C??null);ae(a)},de=v==="text"||v==="textarea",{text:Ie,hidden:B}=J(te),$=g?.[Xt]?.label??o,ze=B?l("Show {label} on the slide",{label:l($)}):l("Hide {label} on the slide",{label:l($)}),Fe=y("div",{className:"sf-field-head",children:[n(Ot,{}),n("span",{className:"sf-field-label sf-field-label--inline",children:l($)}),de&&n(It,{content:ze,children:n(Et,{"aria-pressed":B,"aria-label":ze,onClick:()=>se({text:Ie,hidden:!B}),children:B?n(Ue,{name:"eye-off",size:14}):n(Ue,{name:"eye",size:14})})})]}),X=!ve&&Te,at=!!v&&($t(g)||ve||B||!Te),_e=Q(A,M,_,I),ct=_e.kind==="role"?_e.role:null,ue=Ge(S)??Ut(ct),Ve=We(k.saved,k.old),dt=Object.entries(S).filter(([e,a])=>e!=="role"&&e!=="textStyle"&&a!==void 0).length,ut=()=>{let e=A;for(const a of m){const{role:h,textStyle:T}=a.style;e=rn(e,a.partKey),h&&(e=H(e,a.partKey,"role",h)),T&&(e=H(e,a.partKey,"textStyle",T))}ae(e)},O=ue,ft=Lt(m[0].style),pt=O?Ve.find(e=>e.id===O)?.name??O:"",mt=()=>{Z(!1),O&&(k.write(Ht({saved:k.saved,old:k.old,styleId:O,values:Bt(m[0].style)}),!0),ut())};return y(En,{sectionName:Pe?.label??d.type,onBack:r,tabs:e=>n(me,{motion:le,body:e}),textEditor:f("words")?n("div",{ref:be,className:"sf-part-text",children:at?n(zt,{text:Ie,onTextChange:e=>se(de?{text:e,hidden:B}:e),multiline:Zt(v),markup:v!=="plainText",styled:!1,style:m[0].style,base:m[0].base,setValue:ce,colors:rt,placeholder:Se(en(g))??void 0,ariaLabel:l($),head:Fe,typedOnCanvas:x===F}):v?de?Fe:null:n(vt,{field:g,name:o,value:st,onChange:se,id:`sf-part-${t}-${o}`})}):void 0,children:[ee&&f("sourceNote")&&n(Je,{source:ee,slug:ge(u),menuId:xn(u)}),X&&n(Be,{style:f("style")?{value:ue??"",options:Xe(Ve),onChange:e=>it(e||null),changed:dt>0,onEditStyles:i,onUpdateStyle:O&&ft?()=>Z(!0):void 0}:void 0,font:f("font")?{value:S.font??"",styleValue:he(m[0].base.fontKey)?.label,options:qt.map(e=>({label:e.label,value:e.key})),onChange:e=>L("font",e||null)}:void 0,italic:f("italic")?{value:S.italic,styleValue:Vn(D,ue),onChange:e=>L("italic",e??null)}:void 0,cells:He(m[0].style,m[0].base,ce,q(U)).filter(e=>f(e.key)),align:f("align")?q(U)==="mobile"?{value:S.alignPhone??"",styleValue:S.align??m[0].base.align,onChange:e=>L("alignPhone",e||null)}:{value:S.align??"",styleValue:m[0].base.align,onChange:e=>L("align",e||null)}:void 0,letterCase:f("letterCase")?{value:S.case??"",styleValue:m[0].base.case,onChange:e=>L("case",e||null)}:void 0}),ot&&O&&n(Vt,{styleName:pt,onCancel:()=>Z(!1),onConfirm:mt}),X&&Ee===null&&f("fixedSizeHint")&&n("p",{className:"es-field-hint sf-hint-keep",children:l("Fixed size — the site’s Text setting doesn’t resize this.")}),qe(Rn,e=>f(e)&&(e==="words"||(e==="sourceNote"?!!ee:e==="fixedSizeHint"?X&&Ee===null:X)))&&n(Me,{})]})}function Vn(t,o){return!o||!Array.isArray(t)?!1:t.find(i=>i?.id===o)?.values?.italic===!0}const tt={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};export{En as PartPanelBody,Je as PartSourceNote,Cn as PartStyleSelect,_n as default,Q as partFace};
|
|
1
|
+
"use client";import{jsx as o,Fragment as W,jsxs as h}from"react/jsx-runtime";import{useContext as bt,useEffect as pe,useRef as wt,useState as Ve}from"react";import{FieldSelect as Pt,InspectorField as vt,fieldShownInView as Tt}from"efficient-easel/fields";import{SettingsField as Nt}from"efficient-easel/panel";import{InspectorUpLevel as X}from"efficient-easel/chrome";import{StylesIcon as kt,TypeIcon as Ot}from"efficient-easel/icons";import{useEasel as Rt}from"efficient-easel/easel";import{TextPartPanel as Be}from"efficient-easel/copy";import{Button as Ct,IconButton as Et,Tooltip as It}from"efficient-shell/ui";import{PartTextBox as Ft,partTextCells as He}from"./PartTextBox.js";import{SiteFields as me}from"./SiteFields.js";import{usePartMotion as zt}from"./usePartMotion.js";import{UiIcon as Ue}from"efficient-easel/draw/client";import{usePreviewHeader as _t}from"../../render/components/PreviewHeaderContext.js";import{UpdateStyleDialog as At}from"./UpdateStyleDialog.js";import{ScreenDocumentContext as Lt}from"efficient-easel/screen/components/ScreenDocumentContext";import{hasStyleChange as Vt,partStyleToTextStyleValues as Bt,pushIntoStyle as Ht,resolveTextStyles as We,styleIdOfRole as Ut}from"../../render/lib/text-styles/site-text-styles.js";import{useSiteTextStylesWriter as Wt}from"../lib/site-text-styles-writer.js";import{useThemeRowPersist as jt}from"../lib/theme-row-persist.js";import{usePreviewDevice as Dt}from"efficient-easel/draw/client";import{shownTier as q}from"efficient-easel/screen/lib/document/device-fields";import{PART_PANEL_ROWS as je,partRowHasTabletValue as Gt}from"../lib/document/part-panel-rows.js";import{usePartStyle as Kt}from"./PreviewPartStyleContext.js";import{say as l}from"../../format/lib/editor-words.js";import{readHidable as J,textFieldOffPage as Mt,textFieldPanelOnly as $t}from"../lib/document/controls.js";import{TEXT_FIELD_MARKER as Yt}from"efficient-easel/draw";import{useSectionOps as Xt}from"efficient-easel/screen/lib/document/use-section-ops";import{FONT_OPTIONS as qt,FONT_ROLES as Jt,FONT_ROLE_LABELS as De,fontOption as ye,fontRoleOf as Qt}from"../../format/lib/fonts.js";import{isMultilineKind as Zt,partPlaceholder as en,typeInPlaceKind as tn}from"../../render/lib/document/part-text.js";import{partRowField as nn}from"../lib/document/part-row-field.js";import{decodePartKey as on,partPropsWithRowValue as ln,partRowValue as sn}from"../../render/lib/document/part-rows.js";import{followedStyleOf as Ge,partAlignFollowed as rn,propsWithPartStyleValue as B,propsWithoutPartStyle as an,readPartStyle as he,regionHasOwnLook as cn}from"../../render/lib/document/part-styles.js";import{partThemeColors as dn}from"../../format/lib/document/part-inks.js";import{styleKeyForPart as Ke}from"../../format/lib/sections/section-text-kinds.js";import{commitPartText as un}from"../lib/document/part-typing.js";import{keysOnCanvas as fn,useCanvasTypingPart as pn}from"../lib/document/canvas-typing.js";import{useEaselHost as mn}from"efficient-easel/screen/lib/host";import{SOURCE_LINES as yn,SOURCE_ACTIONS as hn,SOURCE_ACTION_LABEL as Sn,partSourceNoteFor as gn,partSourceOf as xn,sourceMenuIdOf as bn,sourceSlugOf as Se}from"../../format/lib/document/source-bound-parts.js";import{encodePartId as wn,holdsAuthoredText as Pn}from"../../render/lib/document/text-parts.js";import{regionsForSection as vn}from"../../format/lib/sections/section-text-regions.js";import{regionTakesSize as Tn,textRegionOfPartKey as Nn}from"../../format/lib/sections/text-regions.js";import{SameInEveryViewNote as Me}from"./SameInEveryViewNote.js";function ge(t){return t?l(t):null}function $e(t){return t.kind==="role"?De[t.role]:t.kind==="custom"?"Custom":null}function kn(t){const n=Qt(t.role);return n?{kind:"role",role:n}:null}function On(t,n){if(!t)return{kind:"unread"};const{faceRole:r,base:i}=t;if(n[r]===i.fontKey)return{kind:"role",role:r};const a=Object.keys(n).filter(s=>n[s]===i.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function Q(t,n,r,i){return kn(he(t,n))??On(r,i)}function Rn(t,n){if(!t.length)return null;const r=n(t[0]);return t.every(i=>n(i)===r)?r:null}function Ye(t){return[{value:j,label:l("No style"),description:l("Section’s own")},...t.map(n=>({value:n.id,label:n.name,description:n.values.font?ye(n.values.font)?.label:void 0}))]}const j="";function Cn({face:t,base:n,onPick:r}){const i=t.kind==="role"?t.role:j,a=[{label:l("No style"),value:j},...Jt.map(s=>({label:l(De[s]),value:s}))];return o(Pt,{ariaLabel:l("Style"),value:i,options:a,inline:!0,onChange:s=>r(s===j?null:s),renderOption:s=>s.value===j?h(W,{children:[o("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),o("span",{className:"sf-part-style-aside","aria-hidden":"true",children:l("Section’s own")})]}):o("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>o("span",{style:{fontFamily:n?.fontKey?`var(${ye(n.fontKey)?.cssVar})`:void 0,fontWeight:n?.weight},children:ge($e(t))}),valueText:s=>ge($e(t))??s?.label??""})}const Xe=["regionNote","regionStyle"],En=Object.keys(je).filter(t=>!Xe.includes(t));function qe(t,n){return!t.some(n)}function In({sectionName:t,onBack:n,textEditor:r,styleRow:i,children:a,tabs:s}){const g=h(W,{children:[r,i,a]});return h("div",{className:"sf-part-panel",children:[o(X,{inline:!0,name:l(t),onSelect:n}),s?s(g):g]})}function Je({source:t,slug:n,menuId:r}){const i=mn(),a=hn[t],s=!a.needsSlug||!!n;return o("div",{className:"sf-note sf-note--source",children:h("p",{className:"es-field-hint sf-hint-keep",children:[l(yn[t]),s?h(W,{children:[" ",o(Ct,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?i.send(a.type,{menuId:r??null}):n&&i.send(a.type,{slug:n})},children:l(Sn)})]}):null]})})}const Qe=4,Fn=120;function Ze(t){return l("Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.",{part:l(t.label).toLowerCase()})}function et({region:t,sizePx:n,face:r,base:i,onFollowStyle:a,source:s,slug:g,onBack:N,shows:x,sizedStyle:b,ownLook:I}){const D=t.follows;return h("div",{className:"sf-note",children:[o("p",{children:o("strong",{children:l(t.label)})}),x("regionNote")&&!I&&o("p",{children:n?l("Its size follows Styles ▸ {follows} — {px}px right now.",{follows:l(D),px:Math.round(n)}):l("Its size follows Styles ▸ {follows}.",{follows:l(D)})}),b?h(W,{children:[b,x("regionStyle")&&o("p",{className:"es-field-hint sf-hint-keep",children:Ze(t)})]}):a?x("regionStyle")?o(W,{children:o(Nt,{label:l("Style"),icon:o(kt,{}),hint:Ze(t),children:o(Cn,{face:r,base:i,onPick:a})})}):null:x("regionNote")&&o("p",{className:"es-field-hint sf-hint-keep",children:l("Only the size follows a site style. This section sets its own font, weight and letter case.")}),s&&x("sourceNote")?o(Je,{source:s,slug:g}):null,qe([...Xe,"sourceNote",...b?["fontSize"]:[]],F=>x(F)&&(F!=="sourceNote"||!!s))&&o(Me,{}),o(X,{inline:!0,name:l("Page"),onSelect:N})]})}function zn({onBack:t}){return h("div",{className:"sf-note",children:[o("p",{children:o("strong",{children:l("This part is no longer here.")})}),o("p",{children:l("The section it belonged to has been changed or removed.")}),o(X,{inline:!0,name:l("Page"),onSelect:t})]})}function _n({onBack:t,partId:n,why:r}){return h("div",{className:"sf-note",children:[o("p",{children:o("strong",{children:l("This part's settings did not open.")})}),o("p",{children:l("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),o("p",{className:"sf-note-detail",children:h("code",{children:[n," — ",r]})}),o(X,{inline:!0,name:l("Page"),onSelect:t})]})}function An({nodeId:t,propKey:n,onBack:r,onEditStyle:i}){const{getItemById:a,getSelectorForId:s,config:g}=Rt(e=>e),N=Xt(),x=pn(),{partStyle:b}=Kt(),{fonts:I,textStyles:D}=_t(),F=bt(Lt),xe=!F?.capabilities?.hasSiteTheme,{persist:nt}=jt({themeFromDocument:xe,tokenRef:F?.tokenRef,siteId:F?.siteId??null}),k=Wt({themeFromDocument:xe,persist:nt}),[ot,Z]=Ve(!1),H=Dt(),f=e=>(q(H)!=="tablet"||Gt(e))&&Tt(je[e],H),be=wt(null),d=a(t),p=s(t),we=d?g.components[d.type]:void 0,{key:w,row:P}=on(n),Pe=we?.fields?.[w],S=P?nn(Pe,P):Pe,z=wn(t,n),u=d?.props??{},v=tn(S),ve=Mt(S),Te=Pn(S),Ne=d?xn(d.type):null,ee=d?gn(d.type,w):null,te=P?sn(u[w],P):u[w],ke=!!P&&!(Array.isArray(u[w])&&P.index<u[w].length);pe(()=>{if(fn(document))return;be.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[z]);const[ne,Oe]=Ve(0);pe(()=>Oe(0),[z]);const oe=!!d&&!ke&&(!p||!S);pe(()=>{if(!oe||ne>=Qe)return;const e=setTimeout(()=>Oe(c=>c+1),Fn);return()=>clearTimeout(e)},[oe,ne]);const lt=oe&&ne<Qe,le=zt(t,Ke(d?.type,n),"textPart");if(!d||ke)return o(zn,{onBack:r});const G=vn(d.type),Re=G?Nn(G,n):null;if(G&&Re){const e=b?.partId===z?b:null,c=G[Re],m=c.writable===!0&&!!p,T=C=>{p&&N.replaceComponent(p.zone,p.index,{...d,props:B(u,n,"role",C)})};if(m&&Tn(c)){const C=he(u,n),Le=E=>{if(!p)return;let fe=u;for(const[gt,xt]of Object.entries(E))fe=B(fe,n,gt,xt??null);N.replaceComponent(p.zone,p.index,{...d,props:fe})},yt=We(k.saved,k.old),ht=Ge(C)??"",St=He(C,e?.base??tt,Le,q(H)).filter(E=>E.key==="fontSize"&&f(E.key));return o(me,{motion:le,body:o(et,{region:c,sizePx:e?.base.sizePx??null,face:Q(u,n,e,I),base:e?.base??null,source:Ne,slug:Se(u),onBack:r,shows:f,ownLook:cn(C),sizedStyle:o(Be,{style:f("style")?{value:ht,options:Ye(yt),onChange:E=>Le(E?{textStyle:E}:{textStyle:null,role:null}),onEditStyles:i}:void 0,cells:St})})})}return o(me,{motion:le,body:o(et,{region:c,sizePx:e?.base.sizePx??null,face:Q(u,n,e,I),base:e?.base??null,onFollowStyle:m?T:void 0,source:Ne,slug:Se(u),onBack:r,shows:f})})}if(!p||!S)return lt?o("div",{className:"sf-note","aria-busy":"true"}):o(_n,{onBack:r,partId:z,why:p?"no field":"no selector"});const Ce=e=>{N.replaceComponent(p.zone,p.index,{...d,props:e})},se=e=>{if(J(e).hidden!==J(te).hidden||!v){const m=P?ln(u,w,P,e):{...u,[w]:e};m&&Ce(m);return}un({node:d,propKey:n,kind:v,zone:p.zone,index:p.index},J(e).text,N.replaceComponent)},st=te,_=b?.partId===z?b:null,A=_?.styleOwner,K=A?a(A.owner):null,re=A&&K?s(A.owner):null,ie=!!(A&&K&&re),L=ie?K.props??{}:u,ae=ie?e=>N.replaceComponent(re.zone,re.index,{...K,props:e}):Ce,M=ie?A.kind:Ke(d?.type,n),O=he(L,M),y=[{partKey:M,face:Q(L,M,_,I),sizeGroup:_?.sizeGroup??null,base:_?.base??tt,style:O}],Ee=Rn(y,e=>e.sizeGroup),rt=dn(_?.inks),U=(e,c)=>{let m=L;for(const T of y)m=B(m,T.partKey,e,c);ae(m)},it=e=>e?U("textStyle",e):ce({textStyle:null,role:null}),ce=e=>{let c=L;for(const m of y)for(const[T,C]of Object.entries(e))c=B(c,m.partKey,T,C??null);ae(c)},de=v==="text"||v==="textarea",{text:Ie,hidden:V}=J(te),$=S?.[Yt]?.label??n,Fe=V?l("Show {label} on the slide",{label:l($)}):l("Hide {label} on the slide",{label:l($)}),ze=h("div",{className:"sf-field-head",children:[o(Ot,{}),o("span",{className:"sf-field-label sf-field-label--inline",children:l($)}),de&&o(It,{content:Fe,children:o(Et,{"aria-pressed":V,"aria-label":Fe,onClick:()=>se({text:Ie,hidden:!V}),children:V?o(Ue,{name:"eye-off",size:14}):o(Ue,{name:"eye",size:14})})})]}),Y=!ve&&Te,at=!!v&&($t(S)||ve||V||!Te),_e=Q(L,M,_,I),ct=_e.kind==="role"?_e.role:null,ue=Ge(O)??Ut(ct),Ae=We(k.saved,k.old),dt=Object.entries(O).filter(([e,c])=>e!=="role"&&e!=="textStyle"&&c!==void 0).length,ut=()=>{let e=L;for(const c of y){const{role:m,textStyle:T}=c.style;e=an(e,c.partKey),m&&(e=B(e,c.partKey,"role",m)),T&&(e=B(e,c.partKey,"textStyle",T))}ae(e)},R=ue,ft=Vt(y[0].style),pt=R?Ae.find(e=>e.id===R)?.name??R:"",mt=()=>{Z(!1),R&&(k.write(Ht({saved:k.saved,old:k.old,styleId:R,values:Bt(y[0].style)}),!0),ut())};return h(In,{sectionName:we?.label??d.type,onBack:r,tabs:e=>o(me,{motion:le,body:e}),textEditor:f("words")?o("div",{ref:be,className:"sf-part-text",children:at?o(Ft,{text:Ie,onTextChange:e=>se(de?{text:e,hidden:V}:e),multiline:Zt(v),markup:v!=="plainText",styled:!1,style:y[0].style,base:y[0].base,setValue:ce,colors:rt,placeholder:ge(en(S))??void 0,ariaLabel:l($),head:ze,typedOnCanvas:x===z}):v?de?ze:null:o(vt,{field:S,name:n,value:st,onChange:se,id:`sf-part-${t}-${n}`})}):void 0,children:[ee&&f("sourceNote")&&o(Je,{source:ee,slug:Se(u),menuId:bn(u)}),Y&&o(Be,{style:f("style")?{value:ue??"",options:Ye(Ae),onChange:e=>it(e||null),changed:dt>0,onEditStyles:i,onUpdateStyle:R&&ft?()=>Z(!0):void 0}:void 0,font:f("font")?{value:O.font??"",styleValue:ye(y[0].base.fontKey)?.label,options:qt.map(e=>({label:e.label,value:e.key})),onChange:e=>U("font",e||null)}:void 0,italic:f("italic")?{value:O.italic,styleValue:Bn(D,ue),onChange:e=>U("italic",e??null)}:void 0,cells:He(y[0].style,y[0].base,ce,q(H)).filter(e=>f(e.key)),align:f("align")?Vn(O,y[0].base.align,q(H),U):void 0,letterCase:f("letterCase")?{value:O.case??"",styleValue:y[0].base.case,onChange:e=>U("case",e||null)}:void 0}),ot&&R&&o(At,{styleName:pt,onCancel:()=>Z(!1),onConfirm:mt}),Y&&Ee===null&&f("fixedSizeHint")&&o("p",{className:"es-field-hint sf-hint-keep",children:l("Fixed size — the site’s Text setting doesn’t resize this.")}),qe(En,e=>f(e)&&(e==="words"||(e==="sourceNote"?!!ee:e==="fixedSizeHint"?Y&&Ee===null:Y)))&&o(Me,{})]})}const Ln={desktop:"align",tablet:"alignTablet",mobile:"alignPhone"};function Vn(t,n,r,i){const a=Ln[r],s=rn(t,r);return{value:t[a]??"",styleValue:s??n,onChange:g=>i(a,g||null)}}function Bn(t,n){return!n||!Array.isArray(t)?!1:t.find(i=>i?.id===n)?.values?.italic===!0}const tt={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};export{In as PartPanelBody,Je as PartSourceNote,Cn as PartStyleSelect,An as default,Q as partFace};
|
|
@@ -10,4 +10,5 @@ export declare function blockSourceEditField(): {
|
|
|
10
10
|
export declare const NO_BLOCK_SOURCE: ShowWhenRule;
|
|
11
11
|
export declare function blockSourceFields<Fields extends Record<string, unknown>>(block: string, fields: Fields, props: Record<string, unknown> | null | undefined, options?: {
|
|
12
12
|
hides?: readonly string[];
|
|
13
|
+
root?: Record<string, unknown> | null;
|
|
13
14
|
}): Fields;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as w}from"react/jsx-runtime";import{ListIcon as C}from"efficient-easel/icons";import E from"../../components/SourceStatus.js";import{say as j}from"../../../format/lib/editor-words.js";import{NoControlMark as W,noControlField as L}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{BLOCK_SOURCE_PROP as d,blockSourceSpec as B,blockSources as F,blockSourcesRevision as m,declaredBlockSource as K,isSourceEditAction as P}from"../../../format/lib/content/block-sources.js";import{editorRecordType as U}from"../../../format/lib/document/editor-page-context.js";import{select as I}from"./box-fields.js";import{withShowWhen as N}from"../../../render/lib/document/show-when.js";function ee(e,t){return I(e,w(C,{}),[{label:t,value:""}],"")}const A="_sourceEdit";function te(){return L({type:"custom",render:()=>w(W,{})},"always")}const R=new Map,$=new WeakMap,g=(e,t)=>({type:"custom",render:()=>w(E,{compact:!0,status:"ok",hint:j("Where this content is edited."),edit:{label:e,onClick:t}})});function D(e){if(P(e)){let o=$.get(e.open);o||$.set(e.open,o=new Map);let r=o.get(e.label);return r||o.set(e.label,r=g(e.label,e.open)),r}const t=`${e.label}\0${e.href}`;let n=R.get(t);return n||(n=g(e.label,()=>window.open(e.href,"_blank","noopener")),R.set(t,n)),n}const k=new WeakMap;let v=-1,b={};const O=new WeakMap;function _(e,t,n){return F(e).filter(o=>!o.records||o.key===t||n!==null&&o.records.includes(n))}function G(e,t,n,o){v!==m()&&(v=m(),b={});let r=k.get(t);(!r||O.get(r)!==b)&&(r=new Map,O.set(r,b),k.set(t,r));const i=_(e,n,o),c=n&&!i.some(s=>s.key===n)?n:"",a=`${e}\0${c}\0${o??""}\0${i.map(s=>s.key).join(",")}`;let u=r.get(a);return u||(u={...t,options:[...t.options,...i.map(s=>({label:s.label,value:s.key})),...c?[{label:c,value:c}]:[]]},r.set(a,u)),u}const M=new WeakMap,T={not:{field:d,set:!0}};function oe(e,t,n,o={}){const r=t[d];if(!r)return t;const i=K(n),c=U(o.root),a=_(e,i,c).length>0||i!=="",u=a?G(e,r,i,c):null;let s=M.get(t);s||M.set(t,s=new Map);const S=`${m()}\0${a?"1":"0"}\0${i}\0${(o.hides??[]).join(",")}\0${c??""}`,h=s.get(S);if(h)return h;const x=new Set(o.hides??[]),y=i?B(i)?.edit:void 0,f={};for(const[l,p]of Object.entries(t))l===d?u&&(f[l]=u):l===A?y&&(f[l]=D(y)):f[l]=x.has(l)&&p&&typeof p=="object"?N(p,T):p;return s.set(S,f),f}export{A as BLOCK_SOURCE_EDIT_PROP,T as NO_BLOCK_SOURCE,te as blockSourceEditField,ee as blockSourceField,oe as blockSourceFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{group as
|
|
1
|
+
import{jsx as R}from"react/jsx-runtime";import{ListIcon as _}from"efficient-easel/icons";import{isNodeList as y,newId as S}from"efficient-easel/data";import{group as L}from"efficient-easel/screen/lib/document/box-fields";import{COUNT_KEY_PROP as c}from"../../../../../../format/lib/content/block-sources.js";import{CARD_LIST_ROWS as m,CARD_LIST_TYPE as C,cardListFieldsOf as F,cardTemplateOwner as f,namedRowField as I}from"../../../../../../format/lib/content/card-template.js";import{ROW_LIVE_NUMBER_FIELD as O}from"../../../live-number-field.js";import{withShowWhen as T}from"../../../../../../format/lib/document/show-when-attach.js";import{CARD_ROW_FACTS as g,cardRowField as A,cardRowFields as h,cardRowItemField as E}from"../../../card-row-fields.js";import{say as W}from"../../../../../../format/lib/editor-words.js";import{CardListSlots as b}from"../../../../../../format/lib/document/blocks/general/CardList/meta.js";function l(o){return y(o)?o.some(t=>{const e=t.props??{};return t.type==="Text"&&typeof e[c]=="string"&&I(e)?!0:Object.values(e).some(l)}):!1}const D=o=>Object.defineProperty(Object.fromEntries(o.map(t=>[t.key,""])),"key",{get:()=>S("row"),enumerable:!0}),d=new WeakMap;function k(o,t,e){let r=d.get(o);r||d.set(o,r=new Map);const i=JSON.stringify([t,e]);let s=r.get(i);if(!s){const p=Object.fromEntries(t.map(n=>[n.key,E(n)]));e&&(p[c]=O);const a=t[0]?.key;s={...o,arrayFields:p,defaultItemProps:D(t),getItemSummary:n=>a&&typeof n?.[a]=="string"&&n[a]||W("Row")},r.set(i,s)}return s}const w="cardListInCardTemplate",M={not:{context:w,is:!0}},j={...g,[w]:(o,t)=>{const e=f(t.appState,o.props?.id);return e===void 0?void 0:e!==null}},x=T({type:"array",label:"Rows",icon:R(_,{}),arrayFields:{}},M),u=new WeakMap;function N(o,t){let e=u.get(o);e||u.set(o,e=new WeakMap);let r=e.get(t);return r||e.set(t,r={...o,[m]:t}),r}const G={fields:{_gCardList:L("Card list"),rowField:A("Shows","list"),[m]:x,...b},resolveFields:(o,t)=>{const e=h(t.fields,o,t),r=o.props??{},i=!!f(t.appState,r.id),s=e[m];if(i||!s)return e;const p=F(t.appState,{type:C,props:r});return N(e,k(s,p,l(r.template)))},showWhenFacts:j};export{G as CardListFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as c}from"react/jsx-runtime";import{AccentIcon as
|
|
1
|
+
import{jsx as c}from"react/jsx-runtime";import{AccentIcon as R,ColumnsIcon as A,StylesIcon as h}from"efficient-easel/icons";import{copyText as j,plainText as v,text as g,textarea as B,withOffPage as M}from"../../../controls.js";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as x,select as b,slider as D}from"../../../box-fields.js";import{CARD_STYLE_PICTURES as C,LAYOUT_CELL as H}from"../../../choice-pictures.js";import{SPLITTABLE_SECTIONS as N,headFieldsForPlacement as K}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as U,eyebrowLookFor as w}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as W,blockSourceEditField as Y,blockSourceField as J,blockSourceFields as q}from"../../../block-source-fields.js";import{declaredBlockSource as S,sourceChoices as z}from"../../../../../../format/lib/content/block-sources.js";import{cardKeyOf as G,cardRow as Q,cardTemplateFields as k}from"../../../../../../format/lib/content/card-template.js";import{cardRowItemField as E}from"../../../card-row-fields.js";import{isNodeList as V,newId as O}from"efficient-easel/data";import{say as X}from"../../../../../../format/lib/editor-words.js";import{cardsFieldsFollowContent as Z}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as F,CardsSlots as $}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const ee=e=>V(e.template)&&e.template.length>0;function te(e){const r=S(e);return r?z(r).map(t=>({label:t.label,value:t.key})):(Array.isArray(e.items)?e.items:[]).map((t,l)=>({label:typeof t?.title=="string"&&t.title.trim()||X("Card {n}",{n:l+1}),value:G(Q(t),l)}))}const re=e=>Object.defineProperty({...e},"key",{get:()=>O("card"),enumerable:!0});function oe(e,r){const o=ee(r)&&r.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,l])=>t==="highlightedCard"?o?[[t,le(l,te(r))]]:[]:t==="highlightBadge"?o?[[t,l]]:[]:t==="items"&&o&&l?[[t,ie(l)]]:[[t,l]]))}const I=new WeakMap;function le(e,r){let o=I.get(e);o||I.set(e,o=new Map);const t=JSON.stringify(r);let l=o.get(t);return l||o.set(t,l={...e,options:[...e.options,...r]}),l}const se=Object.fromEntries(k("Cards").filter(e=>!e.everySource).map(e=>[e.key,E(e)])),ae=Object.fromEntries(k("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,E(e)])),L=new WeakMap;function ie(e){let r=L.get(e);return r||L.set(e,r={...e,arrayFields:se}),r}const Oe={fields:{_gSource:p("Source"),dataSource:J("Card content","Manual"),[W]:Y(),_gContent:p("Content"),eyebrow:g("Eyebrow",F.eyebrow),eyebrowLook:b("Eyebrow style",c(h,{}),[...U],w("Cards")),title:B("Heading",F.title),items:{type:"array",label:"Cards",arrayFields:ae,defaultItemProps:re({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...$,highlightedCard:b("Highlighted card",c(R,{}),[{label:"None",value:""}],""),highlightBadge:g("Highlight badge","Most popular"),_gStyle:p("Style"),cardStyle:x("Card style",c(h,{}),[{label:"Cards",value:"cards",picture:C.cards},{label:"Label only",value:"label-only",picture:C["label-only"]}],"cards",{columns:2,cell:H}),columns:D("Columns",c(A,{}),2,4,1,3)},resolveData:e=>{const r=Z(e.props),o=r===e.props?e:{...e,props:r},t=o.props;if(!Array.isArray(t.items)||S(t))return o;const l=t.items,a=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",i=s=>s&&typeof s=="object"&&typeof s.key=="string"?s.key:"",_=!!a&&!l.some(s=>i(s)===a),d=new Set;let y=t.highlightedCard,u=!1;const T=l.map((s,P)=>{if(!s||typeof s!="object")return s;const n=i(s);if(n&&!d.has(n))return d.add(n),s;const f=!n&&_&&a===String(P+1);if(n||f){const m=O("card");return d.add(m),u=!0,f&&(y=m),{...s,key:m}}return s});return u?{...o,props:{...t,items:T,highlightedCard:y}}:o},resolveFields:(e,{fields:r})=>{const o=K(q("Cards",r,e.props,{hides:["items"]}),e.props.headPlacement,N.Cards.headRows),t=e.props,l=oe(o,t);if(t.cardStyle!=="label-only")return l;const a=o.items,i=o.eyebrowLook;return{...l,...a?{items:{...a,arrayFields:{title:j("Feature label"),href:M(v("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:w("KeyFeatures")}}:{}}}};export{Oe as CardsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{phoneKey as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{phoneKey as t,tabletKey as r}from"efficient-easel/draw";import{BOX_CARD_PAD as u,BOX_SWATCH_PROP as co,isBackgroundBox as po}from"../../../../../../format/lib/content/box-background.js";import{CARD_ROW_FACTS as _o,cardRowField as So,cardRowFields as mo}from"../../../card-row-fields.js";import{darkenFields as Oo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as ho,REEL_SHAPE_LABELS as fo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as k,CARD_LIST_STYLE_PICTURES as Ro,TAB_SHAPE_PICTURES as Ao}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as R,CARD_STYLE_POINTS as uo,applyCardStyle as Co,isCardStyle as wo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as d}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Eo,ClockIcon as To,CropIcon as H,GapIcon as go,MediaLayoutStackedIcon as Do,LineBetweenIcon as No,LineSolidIcon as Lo,ShadowIcon as Io,StylesIcon as P,TableIcon as x,TargetIcon as bo,WrapIcon as Fo}from"efficient-easel/icons";import{boxBlockSpacingField as ko,boxFillField as Ho,boxColumnsFields as Po,boxShareField as xo,boxSharePhoneField as Wo,boxShareTabletField as Bo,containerDirectionField as yo,containerGapRows as Mo,linkField as Uo,plainText as Ko,swapPadding as W,toggle as S,upload as B,withPanelOnly as Xo}from"../../../controls.js";import{BOX_STACK_LINE as y,BOX_STACK_RANGE as w,STACK_BELOW_PROP as M}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as U,boxShapeOf as jo}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as K}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as X}from"../../../shape-picker.js";import{BOX_COLUMNS_MAX as E,BOX_COLUMNS_MIN as T,boxPhoneRowOneLine as Yo,boxWrapWordOf as vo}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as j}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as Go,VIEW_KEY_ACCESS as s,group as m,phoneTwinFields as a}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as Jo,boxJustifyField as Vo,boxWrapField as C,iconPickerRow as Y,placementField as zo,select as g,sidesPaddingFields as v,slider as qo}from"../../../box-fields.js";import{withRowRules as Qo}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Zo}from"../../../separator-field.js";import{LOOP_SCROLLS as $o}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as oe,TICKER_JOIN_OPTIONS as ee}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as ne}from"../../../../../../format/lib/document/passes/document-position.js";import{accordionOnSet as te}from"../../../box-accordion-seed.js";import{FlexSlots as G}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as re,CONTAINER_BLOCKS_SLOT as ie}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as ae}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as le,ON_A_CARD as se,cardDisplayField as de}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as ce,MIRROR_CARDS_MIRRORS as pe,mirrorCardsField as _e}from"../../../mirror-cards-field.js";import{handedRowOf as J}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Se,showForField as me,showForFields as Oe}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as O,SHARED_COLUMNS_LABEL as V,SHARED_COLUMNS_OFF as z,sharedColumnsDrawn as q,sharedColumnsFits as Q,SHARED_COLUMNS_PHONE_POINTS as he,SHARED_COLUMNS_POINTS as fe,sharedRowsDrawn as Re}from"../../../../../../render/lib/content/box-shared-columns.js";const D={field:"bgImage",set:!0},Z={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Ae={field:"direction",is:"tabs"},ue={field:"line",in:[!0,!1]},Ce={field:"anchor",set:!0},N=["fixed","screen"],we={not:{any:[{field:"sectionHeightMode",in:N},{field:"sectionHeightModeTablet",in:N},{field:"sectionHeightModePhone",in:N}]}},Ee={context:"parent.line",is:!0},c={not:{field:"direction",is:"accordion"}},$="notAccordionRow",Te={not:{context:$,is:!0}},ge={[$]:(o,e)=>e.parent?.props?.direction!=="accordion"},L={field:"direction",is:"row",default:"row"},p={not:$o},h={all:[L,p,{not:{field:"separator",in:j.map(o=>o.value)}},{not:{field:"line",is:!0}}]},oo={all:[h,...["columns",r("columns")].map(o=>({not:{field:o,in:Array.from({length:E},(e,n)=>n+T)}}))]},De={all:[p,{not:{all:[L,{field:"separator",in:j.map(o=>o.value)}]}}]},I={not:{all:[h,{field:"columns",in:Array.from({length:E},(o,e)=>e+T)}]}},Ne="sharedColumnsFits",eo="sharedColumnsMisfit",no="sharedColumnsDraws",to="sharedColumnsPhoneDraws",Le={[Ne]:o=>Q(o.props??{}),[eo]:o=>!Q(o.props??{}),[no]:o=>q(o.props??{}).desktop,[to]:o=>q(o.props??{}).phone};function ro(o){return{all:[{not:{context:eo,is:!0}},{any:[se,{field:o,set:!0}]}]}}const _={not:{context:no,is:!0}},f={not:{context:to,is:!0}},io="sharedRowsDraws",Ie={[io]:(o,e)=>Re(o.props??{})&&J(e.appState,o.props?.id)?.row===void 0},A={not:{context:io,is:!0}},be={any:[_,f]},b={not:D},Fe={not:{context:pe,is:!0}},ao="rowHanded",ke={not:{context:ao,is:!0}},He={[ao]:(o,e)=>{const n=J(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},lo={all:[c,b,_,f,Fe]},Pe={field:"direction",is:"row"},xe={field:"align",in:["start","center","end"]},We={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function Be(){const{darken:o,darkenStyle:e}=Oo();return{...a("darken",o,s),...a("darkenStyle",e,s)}}const so={not:{all:[h,{field:r("columns"),in:Array.from({length:E},(o,e)=>e+T)}]}};function ye(){const o=S(Go,!1,i(Fo,{})),e=n=>{const l=vo(n);return l===void 0?void 0:l==="wrap"};return{...C(),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 Me(o){return{...o,render:e=>o.render({...e,value:Yo(e.value)?"nowrap":"wrap"})}}const Cn={fields:Qo({_gContent:m("Content"),rowTitle:G.rowTitle,content:G.content,_gCardDisplay:m("Display"),cardDisplay:de(),showFor:me(),_gLayout:m("Layout"),direction:yo("Flex"),tabShape:Y("Tab shape",i(P,{}),ho.map(o=>({label:fo[o],value:o,picture:Ao[o]})),"tabs",{columns:2,cell:k}),mirrorCards:_e(),[M]:d("desktop",qo("Stacks below",i(Do,{}),w.min,w.max,w.step,y,"px",{clear:{hint:y},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),startsOpen:d("desktop",S("Starts open",!1,i(Eo,{}))),label:Xo(Ko("Tab name")),...Mo("Flex"),...a("justify",Vo(),s),...a("align",Jo(),s),...(()=>{const o=a("wrap",C(),void 0,{phoneRow:Me(C())}),e=a("wrap",C(),s,{phoneRow:ye()});return{wrap:o.wrap,[r("wrap")]:e[r("wrap")],[t("wrap")]:o[t("wrap")]}})(),[t("order")]:ae(),...a("boxShape",X("Box shape",i(H,{}),K(U),"shape","auto"),s,{phoneRow:X("Box shape",i(H,{}),K(U),"shape","auto",{phoneRest:o=>jo(o)})}),separator:Zo(i(No,{size:18}),"none"),[R]:d("desktop",Y("Card style",i(P,{}),uo.map(o=>({...o,picture:Ro[o.value]})),"table",{columns:2,cell:k})),share:d("desktop",xo()),[r("share")]:Bo(),[t("share")]:Wo(),[O]:d("desktop",g(V,i(x,{}),[...fe],z)),[t(O)]:d("mobile",g(V,i(x,{}),[...he],z)),...Po(),...a("blockSpacing",ko(),s),line:S("Line",!1,i(Lo,{}),"A line across the blocks, with a dot on each."),upcoming:S("Upcoming",!1,i(To,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:g("Join",i(go,{}),ee,oe),_gShadow:m("Shadow"),...a("shadow",S("Shadow",!1,i(Io,{})),s),...a("fillColor",Ho(),s),[co]:So("Fill content","colour"),_gBackground:m("Background image"),bgImage:d("desktop",B("Image","image/*")),bgImagePhone:d("mobile",B("Image","image/*")),...Be(),placement:zo("Content position"),_gLink:m("Link"),link:Uo("Link to"),jumpHighlight:S("Highlight when a link jumps here",!1,i(bo,{}),"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"],D],[[t("share")],{all:[Z,f]}],[[O],ro(O)],[[t(O)],ro(t(O))],[[t("wrap")],{all:[Z,p,f,A]}],[[t("order")],{all:[h,f,_]}],[["phoneRow"],{all:[f,c]}],[["tabShape"],Ae],[["rowTitle","startsOpen"],Te],[["align","blockSpacing",r("blockSpacing"),t("blockSpacing")],c],[[r("justify"),t("justify")],{all:[p,lo,A]}],[[r("align"),t("align")],{all:[Pe,xe,lo]}],[[r("wrap")],{all:[p,I,so,_,c,A]}],[[r("shadow"),t("shadow")],b],[[r("darken"),t("darken"),r("darkenStyle"),t("darkenStyle")],{all:[D,We]}],[["separator"],L],[[R],{field:R,set:!0}],[["columns",r("columns")],h],[[M],{all:[h,b,so,{not:{all:[oo,{field:r("share"),set:!0}]}}]}],[[r("gap")],De],[["justify"],{all:[p,be,c,A]}],[["wrap"],{all:[p,I,_,c,A]}],[["share"],{all:[I,_,c]}],[[r("share")],{all:[oo,_]}],[["line"],ue],[["upcoming"],Ee],[["jumpHighlight"],Ce],[["boxShape",r("boxShape"),t("boxShape")],we],[["direction","share",t("order")],ke],[["join"],ne]]),resolveData:(o,e)=>{const n=o.props,l=n[R];return e.changed?.[R]===!0&&wo(l)?{...o,props:Co(n,l,re,ie)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:te(n)}:o},resolveFields:(o,e)=>Oe(Ue(o,{...e,fields:mo(e.fields,o,e)}),o.props),showWhenFacts:{..._o,...le,...ce,...He,...Le,...Ie,...Se,...ge}};function Ue(...[o,{fields:e}]){{const n=o.props;if(po(n.bgImage)){const F=v({fallback:{top:u.desktop,bottom:u.desktop,left:u.side,right:u.side},tablet:!0});return W(e,F)}return o.props.padV2!==!0?W(e,v({fallback:{top:24,bottom:24},tablet:!0})):e}}export{Cn as FlexFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{FOOTER_LOGO_PX as t,HEADER_LOGO_PX_MIN as r,LOGO_BLOCK_PX_MAX as l}from"../../../../../../render/components/Logo.js";import{HeightIcon as m}from"efficient-easel/icons";import{linkField as s,plainText as a,upload as d,withPanelOnly as n}from"../../../controls.js";import{slider as f}from"../../../box-fields.js";import{blockAlignmentFields as p}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as _,group as O}from"efficient-easel/screen/lib/document/box-fields";import{withRowRules as c}from"../../../../../../render/lib/document/show-when.js";import{LOGO_COLOR_FIELDS as h}from"../../../logo-color-fields.js";import{CARD_ROW_FACTS as g,cardRowField as F,cardRowFields as x}from"../../../card-row-fields.js";const k={fields:c({src:d("Logo image","image/*"),alt:n(a("Alt text","Brand name","Read out in place of the picture, and shown if it can’t load.")),href:s("Link"),heightPx:f("Height",i(m,{}),r,l,1,t,"px"),...p("align",{access:_}),...h,_gText:O("Text"),rowField:F("Shows","text")},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,o)=>x(o.fields,e,o),showWhenFacts:g};export{k as LogoBlockFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{BlackAndWhiteIcon as m,ColumnsIcon as O,HeightIcon as g,PaddingYIcon as p,StylesIcon as c}from"efficient-easel/icons";import{plainText as _,textarea as d,toggle as L,upload as S,withPanelOnly as h}from"../../../controls.js";import{group as s}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as u,slider as r}from"../../../box-fields.js";import{LAYOUT_CELL as f,LOGO_LOOK_PICTURES as C}from"../../../choice-pictures.js";import{DEFAULT_LOGO_LOOK as W,LOGO_LOOK_OPTIONS as E}from"../../../../../../format/lib/sections/logo-look.js";import{HEAD_ROWS_SHOW_WHEN as R,OWN_BOX_ROWS_SHOW_WHEN as y}from"../../../../../../format/lib/sections/section-head-placement.js";import{withRowRules as H,withShowWhen as n}from"../../../../../../render/lib/document/show-when.js";import{blockSourceField as I,blockSourceFields as P,NO_BLOCK_SOURCE as N}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 b=["items","heading","bandPadding"],k=["look"],x={field:i,set:!0},T=H({_gContent:s("Content"),dataSource:I("Logo content","Manual"),heading:d("Heading",B.heading),items:{type:"array",label:"Logos",arrayFields:{src:S("Image","image/*"),alt:h(_("Name / alt"))},getItemSummary:o=>o.alt||o.src||"logo"},logos:n(a.logos,N),template:n(a.template,x),_gStyle:s("Style"),columns:r("Columns",e(O,{}),3,6,1,5),logoHeight:r("Logo height",e(g,{}),20,72,2,28,"px"),bandPadding:r("Space above and below",e(p,{}),16,120,4,40,"px"),grayscale:L("Black and white logos",!0,e(m,{})),look:u("Logo style",e(c,{}),E.map(o=>({...o,picture:C[o.value]})),W,{columns:2,cell:f})},[[b,R],[k,y]]),Q={fields:T,resolveFields:(o,{fields:t})=>P("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{Q as LogosFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as g,PlacementIcon as T}from"efficient-easel/icons";import{deviceField as E}from"efficient-easel/screen/lib/document/device-fields";import{cardImageField as O,text as i,textarea as b}from"../../../controls.js";import{group as a,section as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,segmented as s,slider as R}from"../../../box-fields.js";import{IMAGE_TEXT_ARRANGEMENT_PICTURES as h,LAYOUT_CELL as C}from"../../../choice-pictures.js";import{BLOCK_SOURCE_EDIT_PROP as L,blockSourceEditField as x,blockSourceField as A,blockSourceFields as w}from"../../../block-source-fields.js";import{declaredBlockSource as n}from"../../../../../../format/lib/content/block-sources.js";import{ARRANGEMENT_OPTIONS as N,IMAGE_WIDTH_OPTIONS as v,PHONE_ORDER_OPTIONS as F}from"../../../../../../format/lib/content/image-text-rows.js";import{imageTextRowTemplate as y}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/row-seed.js";import{SPLITTABLE_SECTIONS as D,headFieldsForPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as H}from"../../../../../../format/lib/document/blocks/placeholders.js";import{innerSpacingFields as W}from"../../shared-fields.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{isNodeList as m}from"efficient-easel/data";import{PROCESS_PH as p,ProcessStepsSlots as c}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const u={field:"arrangement",in:["rows-left","rows-right"]},d="drawsLegacySteps",S={not:{context:d,is:!0}},M={[d]:e=>{const o=e.props??{};return!n(o)&&!m(o.boxes)}},B=e=>e?.data?.root?.props??null,se={fields:k({_gSource:a("Source"),dataSource:A("Item content","Manual"),[L]:x(),_sHeader:l("Header"),_gContent:a("Content"),num:i("Number",p.num),title:i("Heading",p.title),description:b("Body",H.body),boxes:c.boxes,template:c.template,_dDesign:l("Design"),arrangement:I("Arrangement",r(P,{}),N.map(e=>({label:e.label,value:e.value,picture:h[e.value]})),"columns",{columns:3,cell:C}),imageWidth:s("Image width",r(f,{}),v.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:E("mobile",s("Order",r(g,{}),F.map(e=>({label:e.label,value:e.value})),"picture")),columns:R("Columns",r(_,{}),2,4,1,3),cardImage:O(),cardText:s("Text position",r(T,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below"),_dLayout:l("Layout"),...W("ProcessSteps")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],S],[["imageWidth","phoneOrder"],{all:[u,S]}],[["columns"],{not:u}]]),showWhenFacts:M,resolveFields:(e,o)=>w("ProcessSteps",G(o.fields,e.props.headPlacement,D.ProcessSteps.headRows),e.props,{root:B(o.appState)}),resolveData:(e,o)=>{const t=e.props;return o?.changed?.dataSource!==!0||!n(t)||m(t.template)?e:{...e,props:{...t,template:y(String(t.id??"ProcessSteps"))}}}};export{se as ProcessStepsFields};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{cardTemplateOwner as f}from"../../../../../../format/lib/content/card-template.js";import{CARD_ROW_FACTS as h,cardRowField as u,cardRowFields as g}from"../../../card-row-fields.js";import{textarea as w}from"../../../controls.js";import{group as _}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as b}from"efficient-easel/screen/lib/document/style-fields";import{segmented as x,select as R}from"../../../box-fields.js";import{withShowWhen as v}from"../../../../../../format/lib/document/show-when-attach.js";import{PH as F}from"../../../../../../format/lib/document/blocks/placeholders.js";import{toneField as T}from"../../shared-fields.js";import{blockAlignmentFields as C}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as P}from"efficient-easel/screen/lib/document/box-fields";import{consentWordsKept as y,withConsentWordsRow as A}from"../../../consent-words-field.js";import{withLiveNumberRow as H}from"../../../live-number-field.js";function I(e,o){const t=o?.textStyle;if(typeof t!="string"||!t.startsWith("heading-"))return e;const{align:O,alignTablet:S,alignPhone:W,...i}=e;return i}const Z={fields:{text:w("Body",F.body),consentWords:y("text"),[s]:b("text"),...C("align",{access:P}),tone:T(),_gText:_("Text"),rowField:u("Shows","text"),[d]:v(x("Place",r(n,{}),[{label:"In the card",value:"",picture:r(p,{})},{label:"On the top line",value:"top-line",picture:r(a,{})}],""),{not:{context:l,is:!0}}),tag:R("HTML tag",r(m,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,o)=>I(H(A(g(o.fields,e,o),e.props,"text"),e.props),e.props),showWhenFacts:{...h,[l]:(e,o)=>{const t=f(o.appState,e.props?.id);return t===void 0?void 0:!c(t?.type)}}};export{Z as TextFields};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "
|
|
2
|
-
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "
|
|
1
|
+
export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "Chart" | "Mockup" | "Banner" | "TitleWithButtons" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
2
|
+
export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "Chart" | "Mockup" | "Banner" | "TitleWithButtons" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { type CardRowFieldKind } from "../../../format/lib/content/card-template.js";
|
|
1
|
+
import { type CardRowFieldKind, type CardRowFieldSpec } from "../../../format/lib/content/card-template.js";
|
|
2
2
|
import { type SelectField } from "efficient-easel/screen/lib/document/box-fields";
|
|
3
3
|
import { type BlockShowWhenFacts, type ShowWhenRule } from "../../../format/lib/document/show-when-attach.js";
|
|
4
4
|
export declare const OUTSIDE_CARD_TEMPLATE = "outsideCardTemplate";
|
|
5
5
|
export declare const IN_CARD_TEMPLATE: ShowWhenRule;
|
|
6
6
|
export declare const CARD_ROW_FACTS: BlockShowWhenFacts;
|
|
7
7
|
export declare function cardRowField(label: string, kind: CardRowFieldKind): SelectField;
|
|
8
|
+
export declare function cardRowItemField(f: CardRowFieldSpec): import("./controls.js").CustomField<string> | import("./controls.js").CustomField<import("efficient-easel/draw").HidableValue>;
|
|
8
9
|
export declare function cardRowFields<Fields extends Record<string, unknown>>(fields: Fields, data: {
|
|
9
10
|
props?: Record<string, unknown>;
|
|
10
11
|
}, params: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as w}from"react/jsx-runtime";import{GroundIcon as k,ListIcon as M}from"efficient-easel/icons";import{FieldGlyph as P}from"../../components/FieldGlyph.js";import{CARD_LIST_FIELDS as W,CARD_LIST_TYPE as x,cardListFieldsOf as B,cardListShows as G,cardTemplateFieldsOf as N,cardTemplateOwner as b}from"../../../format/lib/content/card-template.js";import{colorInput as $,copyText as J,plainText as U,plainTextarea as Y,withOffPage as q}from"./controls.js";import{recordRowFields as F}from"../../../format/lib/content/record-row.js";import{recordTypesRevision as z}from"../../../format/lib/content/record-types.js";import{editorRecordType as H}from"../../../format/lib/document/editor-page-context.js";import{blockSourcesRevision as Q,declaredBlockSource as I}from"../../../format/lib/content/block-sources.js";import{select as V}from"./box-fields.js";import{withShowWhen as X}from"../../../format/lib/document/show-when-attach.js";function L(o){const e=o?.data?.root,t=H(e?.props)??"";return t&&F(t,"text").length?t:""}const O="outsideCardTemplate",Z={not:{context:O,is:!0}},mo={[O]:(o,e)=>{const t=b(e.appState,o.props?.id);if(t!==void 0)return t===null&&!L(e.appState)}};function wo(o,e){const t=e==="link"?w(P,{noun:"link"}):e==="colour"?w(k,{}):w(M,{}),a={...V(o,t,[e==="colour"?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:e};return X(a,Z)}function fo(o){return o.kind==="link"?q(U(o.label)):o.kind==="colour"?$(o.label,"",w(k,{})):o.multiline?Y(o.label):J(o.label)}function oo(o){return!!(o&&typeof o=="object"&&"cardRowKind"in o)}const A=new WeakMap;function Ro(o,e,t){const a=Object.keys(o).filter(n=>oo(o[n]));if(!a.length)return o;const f=e.props??{},r=b(t.appState,f.id),s=typeof r?.type=="string"?r.type:"",l=a.map(n=>typeof f[n]=="string"?f[n].trim():""),C=I(r?.props),c=s===x?b(t.appState,r?.props?.id):null,E=c?G(r?.props,c.type):"",K=c?I(c.props):"",D=c?`${String(c.type??"")}\0${K}`:"",v=s===x&&!c?JSON.stringify(r?.props?.[W]??null):"",R=r?"":L(t.appState),g=[s,C,E,D,v,Q(),R,z(),...l].join("\0");let d=A.get(o);d||A.set(o,d=new Map);const h=d.get(g);if(h)return h;const m={...o};return a.forEach((n,u)=>{const p=o[n],y=s===x?B(t.appState,r,p.cardRowKind):s?N(r,p.cardRowKind):F(R,p.cardRowKind);if(!y.length&&!l[u]&&(!s&&R||p.cardRowKind==="colour")){delete m[n];return}const T=l[u]&&!y.some(i=>i.key===l[u])?l[u]:"",_=p.cardRowKind==="list",j=(i,S)=>_&&S===0&&i.key!==l[u]?"":i.key;m[n]={...p,options:[..._?[]:p.options,...y.map((i,S)=>({label:i.label,value:j(i,S)})),...T?[{label:T,value:T}]:[]]}}),d.set(g,m),m}export{mo as CARD_ROW_FACTS,Z as IN_CARD_TEMPLATE,O as OUTSIDE_CARD_TEMPLATE,wo as cardRowField,Ro as cardRowFields,fo as cardRowItemField};
|
|
@@ -6,6 +6,7 @@ export declare function dividerPicture(style: DividerStyle): ReactNode;
|
|
|
6
6
|
export declare const TAB_SHAPE_PICTURES: Record<"tabs" | "largeTabs", ReactNode>;
|
|
7
7
|
export declare const POST_CARD_PICTURES: Record<"card" | "cover", ReactNode>;
|
|
8
8
|
export declare const CARD_STYLE_PICTURES: Record<"cards" | "label-only", ReactNode>;
|
|
9
|
+
export declare const CARD_LIST_STYLE_PICTURES: Record<"table" | "list", ReactNode>;
|
|
9
10
|
export declare const LOGO_LOOK_PICTURES: Record<"plain" | "cards", ReactNode>;
|
|
10
11
|
export declare const INTRO_BLEED_PICTURES: Record<"overlay" | "stacked", ReactNode>;
|
|
11
12
|
export declare const TIMELINE_PICTURES: Record<"split" | "spine" | "alternating" | "track", ReactNode>;
|
|
@@ -19,3 +20,4 @@ export declare const LONG_WORD_CELL: {
|
|
|
19
20
|
readonly width: "8.5rem";
|
|
20
21
|
readonly height: "3.75rem";
|
|
21
22
|
};
|
|
23
|
+
export declare const IMAGE_TEXT_ARRANGEMENT_PICTURES: Record<"columns" | "rows-left" | "rows-right", ReactNode>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,jsxs as
|
|
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,5 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import type { DropdownMenuEntry } from "efficient-shell/ui";
|
|
2
3
|
import { type SourceChoice } from "../../../format/lib/content/block-sources.js";
|
|
4
|
+
import { type CustomField } from "./controls.js";
|
|
3
5
|
export declare function liveNumberMenu(choices: readonly SourceChoice[], onLink: (key: string) => void): DropdownMenuEntry[];
|
|
4
6
|
export declare function LiveNumberBox({ id, text, countKey, choices, onText, onLink, }: {
|
|
5
7
|
id: string;
|
|
@@ -9,4 +11,7 @@ export declare function LiveNumberBox({ id, text, countKey, choices, onText, onL
|
|
|
9
11
|
onText: (next: string) => void;
|
|
10
12
|
onLink: (key: string) => void;
|
|
11
13
|
}): import("react").JSX.Element;
|
|
14
|
+
export declare const ROW_LIVE_NUMBER_FIELD: CustomField<string> & {
|
|
15
|
+
icon: ReactNode;
|
|
16
|
+
};
|
|
12
17
|
export declare function withLiveNumberRow<F extends Record<string, unknown>>(fields: F, props: Record<string, unknown> | undefined): F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{useId as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useId as f}from"react";import{useEasel as R,useSelectedHost as O}from"efficient-easel/easel";import{CloseIcon as g,LinkIcon as b,LockIcon as w}from"efficient-easel/icons";import{SettingsField as p}from"efficient-easel/panel";import{deviceField as E,deviceNote as I}from"efficient-easel/screen/lib/document/device-fields";import{Input as s}from"efficient-shell/ui";import{namedRowField as L}from"../../../format/lib/content/card-template.js";import{COUNT_KEY_PROP as a,COUNTS_SOURCE as y,sourceChoices as v}from"../../../format/lib/content/block-sources.js";import{consentWordsOf as _}from"../../../format/lib/content/consent-banner.js";import{countsReachText as S,countWords as h,linkedCount as k}from"../../../format/lib/content/count-numbers.js";import{readHidable as T,useSelectedSibling as F}from"./controls.js";import{partValueWithText as W}from"../../../render/lib/document/part-text.js";import{say as u}from"../../../format/lib/editor-words.js";const d=(e,n)=>n==="number"?`${h(e.value)} · ${u(e.label)}`:`${u(e.label)} · ${h(e.value)}`;function U(e,n){return[{type:"label",key:"heading",label:u("Live numbers")},...e.map(t=>({key:t.key,label:d(t,"name"),onSelect:()=>n(t.key)}))]}const x=(e,n)=>e.length?{label:u("Connect to a live number"),icon:o(b,{size:16}),menu:U(e,n)}:void 0,C=(e,n,t)=>o(s,{id:e,readOnly:!0,value:n,leftIcon:o(w,{size:16}),endAction:{label:u("Unlink"),icon:o(g,{size:16}),onClick:()=>t("")}});function $({id:e,text:n,countKey:t,choices:i,onText:r,onLink:c}){const l=t?i.find(m=>m.key===t):void 0;return o("div",{className:"sf-copybox",children:t?C(e,l?d(l,"number"):n,c):o(s,{id:e,value:n,onChange:m=>r(m.target.value),endAction:x(i,c)})})}function j({id:e,countKey:n,onLink:t}){const i=v(y),r=k({[a]:n}),c=r?i.find(l=>l.key===r):void 0;return o("div",{className:"sf-copybox",children:r?C(e,c?d(c,"number"):r,t):o(s,{id:e,readOnly:!0,value:u("Typed by hand"),endAction:x(i,t)})})}const re={type:"custom",icon:o(b,{}),render:({value:e,onChange:n})=>o(z,{value:e,onChange:n})};function z({value:e,onChange:n}){const t=f();return o(p,{label:u("Live number"),htmlFor:t,children:o(j,{id:t,countKey:typeof e=="string"?e:"",onLink:n})})}function A(){const e=O();try{return R(n=>S(n.appState.data.content,e?.id))}catch{return!0}}function B({value:e,onChange:n}){const t=f(),[i,r]=F(a),c=A();return o(p,{label:u("Body"),htmlFor:t,children:o($,{id:t,text:T(e).text,countKey:k({[a]:i}),choices:c?v(y):H,onText:l=>n(W("textarea",e,l)),onLink:r})})}const D=I(),H=[],N=new WeakMap;function K(e){let n=N.get(e);if(!n){const t={...e,render:({value:i,onChange:r})=>o(B,{value:i,onChange:r})};n=E("desktop",t),N.set(e,n)}return n}function ie(e,n){if(typeof n?.[a]!="string"||_(n)!==null||L(n))return e;const t=e.text;return!t||typeof t!="object"?e:{_dDevice:D,...e,text:K(t)}}export{$ as LiveNumberBox,re as ROW_LIVE_NUMBER_FIELD,U as liveNumberMenu,ie as withLiveNumberRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as s}from"react/jsx-runtime";import{SettingsDefaultReset as O,SettingsField as _}from"efficient-easel/panel";import{Segmented as h}from"efficient-shell/ui";import{SwapIcon as w}from"efficient-easel/icons";import{describedAs as A}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as I}from"efficient-easel/screen/lib/document/device-fields";import{MIRROR_CARDS_LABEL as p,MIRROR_CARDS_OFF as d,MIRROR_CARDS_OPTIONS as u,MIRROR_CARDS_TITLES as b,mirrorCardsActs as a,mirrorCardsOf as R,mirrorChildrenActs as D,mirrorCardsWrite as M,ownsCard as f}from"../../../format/lib/content/mirror-cards.js";import{editorEaselWords as v,say as i}from"../../../format/lib/editor-words.js";import{cardCopyPlace as c}from"../../../format/lib/content/card-template.js";import{sharedColumnsDrawn as l}from"../../../render/lib/content/box-shared-columns.js";import{withShowWhen as x}from"../../../format/lib/document/show-when-attach.js";import{handedRowOf as C,holdsABox as y}from"../../../format/lib/document/row-hand.js";const S="mirrorCardsIdle",F="mirrorCardsMirrors",J={[F]:(r,e)=>{const t=c(e.appState,r.props?.id),o=r.props??{};if(t===void 0)return;const n=C(e.appState,r.props?.id);if(n){const m=n.row?{...o,direction:"row",share:n.row.share}:o;return n.mirror!==null&&a(m,!0,l(m).desktop)}return a(o,f(t),l(o).desktop)&&R(o.mirrorCards)!==null},[S]:(r,e)=>{const t=c(e.appState,r.props?.id),o=r.props??{};if(t!==void 0)return C(e.appState,r.props?.id)?!0:a(o,f(t),l(o).desktop)?!1:!(D(o,t.inCopy)&&y(o))}};function g(r=!1){return u.map(e=>({value:e.value,label:i(e.label),title:e.value===d?void 0:i(b[e.value]),disabled:r}))}function k({value:r,onChange:e,readOnly:t}){const o=R(r)??d;return s(_,{label:i(p),icon:s(w,{}),action:s(O,{words:v()?.panel,label:i(p),changed:o!==d,detail:i("Off"),onReset:()=>e(void 0)}),children:s(h,{size:"sm",block:!0,label:i(p),value:o,onChange:n=>e(M(n)),options:g(t===!0)})})}function K(){return x(I("desktop",{type:"custom",...A({},{type:"radio",label:p,options:u.map(r=>({value:r.value,label:r.label}))}),render:({value:r,onChange:e,readOnly:t})=>s(k,{value:r,onChange:e,readOnly:t})}),{not:{context:S,is:!0}})}export{J as MIRROR_CARDS_FACTS,S as MIRROR_CARDS_IDLE,F as MIRROR_CARDS_MIRRORS,K as mirrorCardsField,g as mirrorCardsOptions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as n,createElement as o}from"react";import{deviceField as t}from"efficient-easel/screen/lib/document/device-fields";const e=()=>({type:"custom",render:()=>o(n)}),p=["fontSize","lineHeight","letterSpacing","paragraphSpacing","padding"],g={words:e(),sourceNote:e(),style:e(),font:e(),italic:e(),fontSize:t("each",e()),lineHeight:e(),letterSpacing:e(),paragraphSpacing:e(),padding:e(),align:t("each",e()),letterCase:e(),fixedSizeHint:t("each",e()),regionNote:e(),regionStyle:e()},r=["fontSize"];function l(i){return r.includes(i)}const s={showTicker:e(),items:e()};export{p as PART_CELL_KEYS,g as PART_PANEL_ROWS,s as TICKER_PANEL_ROWS,l as partRowHasTabletValue};
|
|
1
|
+
import{Fragment as n,createElement as o}from"react";import{deviceField as t}from"efficient-easel/screen/lib/document/device-fields";const e=()=>({type:"custom",render:()=>o(n)}),p=["fontSize","lineHeight","letterSpacing","paragraphSpacing","padding"],g={words:e(),sourceNote:e(),style:e(),font:e(),italic:e(),fontSize:t("each",e()),lineHeight:e(),letterSpacing:e(),paragraphSpacing:e(),padding:e(),align:t("each",e()),letterCase:e(),fixedSizeHint:t("each",e()),regionNote:e(),regionStyle:e()},r=["fontSize","align"];function l(i){return r.includes(i)}const s={showTicker:e(),items:e()};export{p as PART_CELL_KEYS,g as PART_PANEL_ROWS,s as TICKER_PANEL_ROWS,l as partRowHasTabletValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{convertSection as
|
|
1
|
+
import{convertSection as S,pressesAsBox as m,SECTION_TO_BOX_PRESS as E,sectionToBoxRow as l}from"../../../render/lib/sections/section-to-box.js";import{SECTION_PRESETS as y,presetFor as g}from"../../../format/lib/sections/section-presets.js";import{GENERAL_SECTION_TO_BOX as _}from"../../../render/lib/document/blocks/general/section-to-box-rows.js";import{statsBoxSeed as O,statsPressSeed as k,statsSeedRows as N}from"../../../render/lib/document/blocks/general/section-to-box-rows-stats.js";import{logosPressStarter as B}from"../../../render/lib/document/blocks/general/section-to-box-rows-logos.js";import{pageHeaderPressStarter as L}from"../../../render/lib/document/blocks/general/section-to-box-rows-pageheader.js";import{seedNodes as R}from"../../../format/lib/document/seed-parts.js";import{propsWithPartStyleValue as j}from"../../../render/lib/document/part-styles.js";import{isNodeList as a}from"efficient-easel/data";const w=Object.keys(_),P={Logos:B,DocMasthead:L};function u(t,r,o){const e={};for(const s of Object.keys(r(t.type)))e[s]=void 0;for(const[s,n]of Object.entries(t.props))e[s]=a(n)?n.map(p=>u(p,r,o)):n;return e.id=o(t.type),{type:t.type,props:e}}function v(t,r,o=0,e=()=>({})){return(s,n)=>{const{nodes:p}=S({type:t,props:{...s(t),...e(),id:n(t)}},r,{press:!0});return u(p[o],s,n)}}const A={Stats:C};function C(){const t=l("StatsParagraph");return t?(r,o)=>{const{nodes:e}=S({type:"StatsParagraph",props:{...r("StatsParagraph"),...k(),id:o("StatsParagraph")}},t),s=e[0],n=a(s.props.content)?s.props.content.filter(f=>f.props?.cardStyle===void 0):[],p=b(O(N(),"table")),c=n.map(T),i=u({...s,props:{...s.props,content:[...c,p]}},r,o);return{...i,props:{...i.props,name:"Stats section"}}}:null}function T(t){if(t.props?.name==="Words"){const r=a(t.props.content)?t.props.content.map(U):t.props.content;return{...t,props:{...t.props,widthFitPhone:"fill",content:r}}}return a(t.props?.content)?{...t,props:{...t.props,content:t.props.content.map(T)}}:t}function U(t){return t.type!=="Text"?t:{...t,props:j({...t.props,alignTablet:"left"},"text","alignTablet","left")}}const b=t=>R([t],(r,o)=>`${r}-seed-${o}`)[0];function W(t,r){if(!m(t,r))return null;const o=A[t];if(o)return o();const e=l(t);return e?v(t,e,0,P[t]):null}function X(t){return(r,o)=>{const e=s=>{if(s.type==="Stats"){const c=u(b(O([],"list")),r,o);return{...c,props:{...c.props,name:"Numbers"}}}let n=!1;const p={};for(const[c,i]of Object.entries(s.props))if(a(i)){const f=i.map(e);n||=f.some((x,h)=>x!==i[h]),p[c]=f}else p[c]=i;return n?{type:s.type,props:p}:s};return e(t(r,o))}}function z(t,r=E){const o=g(t);return o?X(o):W(t,r)}function I(){return[...Object.keys(y),...w.filter(t=>m(t)),...Object.keys(P).filter(t=>m(t))]}export{P as MERGE_LAYOUTS,w as TEXT_LAYOUTS,v as conversionPreset,z as layoutPresetFor,I as layoutTypes};
|