efficient-web-builder 55.1.0 → 55.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/editor/components/PartSettingsPanel.js +1 -1
  3. package/dist/editor/lib/document/block-source-fields.d.ts +1 -0
  4. package/dist/editor/lib/document/block-source-fields.js +1 -1
  5. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  6. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  14. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  15. package/dist/editor/lib/document/card-row-fields.js +1 -1
  16. package/dist/editor/lib/document/choice-pictures.d.ts +2 -0
  17. package/dist/editor/lib/document/choice-pictures.js +1 -1
  18. package/dist/editor/lib/document/field-groups.js +1 -1
  19. package/dist/editor/lib/document/live-number-field.d.ts +5 -0
  20. package/dist/editor/lib/document/live-number-field.js +1 -1
  21. package/dist/editor/lib/document/mirror-cards-field.js +1 -1
  22. package/dist/editor/lib/document/part-anchors.js +1 -1
  23. package/dist/editor/lib/document/part-panel-rows.js +1 -1
  24. package/dist/editor/lib/host-document-bridge.d.ts +4 -1
  25. package/dist/editor/lib/host-document-bridge.js +1 -1
  26. package/dist/editor/lib/sections/text-layouts.d.ts +2 -1
  27. package/dist/editor/lib/sections/text-layouts.js +1 -1
  28. package/dist/format/lib/content/block-sources.d.ts +18 -2
  29. package/dist/format/lib/content/block-sources.js +1 -1
  30. package/dist/format/lib/content/box-background.d.ts +3 -0
  31. package/dist/format/lib/content/box-background.js +1 -1
  32. package/dist/format/lib/content/box-shape.d.ts +1 -1
  33. package/dist/format/lib/content/card-state.d.ts +6 -0
  34. package/dist/format/lib/content/card-state.js +1 -1
  35. package/dist/format/lib/content/card-template.d.ts +14 -1
  36. package/dist/format/lib/content/card-template.js +1 -1
  37. package/dist/format/lib/content/count-numbers.d.ts +1 -1
  38. package/dist/format/lib/content/count-numbers.js +1 -1
  39. package/dist/format/lib/content/footer.js +1 -1
  40. package/dist/format/lib/content/footprint.d.ts +1 -0
  41. package/dist/format/lib/content/footprint.js +1 -1
  42. package/dist/format/lib/content/image-text-rows.d.ts +22 -0
  43. package/dist/format/lib/content/image-text-rows.js +1 -0
  44. package/dist/format/lib/content/mirror-cards.d.ts +17 -0
  45. package/dist/format/lib/content/mirror-cards.js +1 -1
  46. package/dist/format/lib/content/view-lines.d.ts +1 -1
  47. package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
  48. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  49. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -0
  50. package/dist/format/lib/document/blocks/general/Footprint/meta.d.ts +6 -0
  51. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  52. package/dist/format/lib/document/blocks/general/Logos/card-seed.d.ts +7 -0
  53. package/dist/format/lib/document/blocks/general/Logos/card-seed.js +1 -0
  54. package/dist/format/lib/document/blocks/general/Logos/meta.d.ts +11 -0
  55. package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
  56. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.d.ts +4 -0
  57. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  58. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.d.ts +11 -0
  59. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -0
  60. package/dist/format/lib/document/container-blocks.js +1 -1
  61. package/dist/format/lib/document/passes/document-position.d.ts +8 -0
  62. package/dist/format/lib/document/passes/document-position.js +1 -1
  63. package/dist/format/lib/document/row-hand.d.ts +5 -0
  64. package/dist/format/lib/document/row-hand.js +1 -0
  65. package/dist/format/lib/document/section-catalog.js +20 -2
  66. package/dist/format/lib/document/section-descriptions.js +1 -1
  67. package/dist/format/lib/document/seed-parts.d.ts +3 -0
  68. package/dist/format/lib/document/seed-parts.js +1 -1
  69. package/dist/format/lib/document/text-seeds.js +1 -1
  70. package/dist/format/lib/editor-words-catalogue.d.ts +38 -1
  71. package/dist/format/lib/editor-words-catalogue.js +6 -6
  72. package/dist/format/lib/editor-words-kept.d.ts +1 -0
  73. package/dist/format/lib/editor-words-kept.js +1 -0
  74. package/dist/format/lib/fonts.js +1 -1
  75. package/dist/format/lib/sections/strip-shape.js +1 -1
  76. package/dist/format/lib/sections/ticker-join.d.ts +1 -0
  77. package/dist/format/lib/sections/ticker-join.js +1 -1
  78. package/dist/format/lib/source-rules/editor-words.js +2 -2
  79. package/dist/format/lib/theme.d.ts +1 -0
  80. package/dist/format/lib/theme.js +3 -3
  81. package/dist/render/components/CardRowContext.d.ts +8 -2
  82. package/dist/render/components/CardRowContext.js +1 -1
  83. package/dist/render/components/ClientRows.d.ts +8 -0
  84. package/dist/render/components/ClientRows.js +1 -0
  85. package/dist/render/components/Flex.d.ts +3 -1
  86. package/dist/render/components/Flex.js +1 -1
  87. package/dist/render/components/Footprint.d.ts +4 -1
  88. package/dist/render/components/Footprint.js +1 -1
  89. package/dist/render/components/HeroPictures.d.ts +2 -2
  90. package/dist/render/components/JoinBox.d.ts +4 -0
  91. package/dist/render/components/JoinBox.js +1 -0
  92. package/dist/render/components/LogoBlock.js +1 -1
  93. package/dist/render/components/Logos.d.ts +4 -2
  94. package/dist/render/components/Logos.js +1 -1
  95. package/dist/render/components/MirrorContext.d.ts +12 -0
  96. package/dist/render/components/MirrorContext.js +1 -1
  97. package/dist/render/components/PartStyledKind.d.ts +2 -1
  98. package/dist/render/components/PartStyledKind.js +1 -1
  99. package/dist/render/components/PaymentBadges.js +1 -1
  100. package/dist/render/components/ProcessSteps.d.ts +5 -1
  101. package/dist/render/components/ProcessSteps.js +1 -1
  102. package/dist/render/components/Text.d.ts +3 -1
  103. package/dist/render/components/Text.js +1 -1
  104. package/dist/render/components/TickerSection.js +1 -1
  105. package/dist/render/lib/content/box-shared-columns.d.ts +6 -0
  106. package/dist/render/lib/content/box-shared-columns.js +1 -1
  107. package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
  108. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  109. package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
  110. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  111. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  112. package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
  113. package/dist/render/lib/document/blocks/general/Logos/render.js +1 -1
  114. package/dist/render/lib/document/blocks/general/ProcessSteps/render.d.ts +5 -0
  115. package/dist/render/lib/document/blocks/general/ProcessSteps/render.js +1 -1
  116. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  117. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  118. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  119. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  120. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
  121. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  122. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  123. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  124. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  125. package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.d.ts +2 -0
  126. package/dist/render/lib/document/blocks/general/section-to-box-rows-fitment.js +1 -0
  127. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.d.ts +2 -0
  128. package/dist/render/lib/document/blocks/general/section-to-box-rows-forms.js +1 -0
  129. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -0
  130. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  131. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  132. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  133. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  134. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +1 -0
  135. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.d.ts +5 -0
  137. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  138. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.d.ts +1 -1
  139. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  142. package/dist/render/lib/document/head-core-boxes.js +1 -1
  143. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  144. package/dist/render/lib/document/part-styles.d.ts +2 -0
  145. package/dist/render/lib/document/part-styles.js +2 -2
  146. package/dist/render/lib/document/passes/box-join.d.ts +2 -0
  147. package/dist/render/lib/document/passes/box-join.js +1 -0
  148. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  149. package/dist/render/lib/document/passes/index.js +1 -1
  150. package/dist/render/lib/document/passes/section-width.js +1 -1
  151. package/dist/render/lib/document/text-parts.d.ts +2 -1
  152. package/dist/render/lib/document/text-parts.js +1 -1
  153. package/dist/render/lib/sections/card-list-style.d.ts +18 -0
  154. package/dist/render/lib/sections/card-list-style.js +1 -0
  155. package/dist/render/lib/sections/payment-rows.d.ts +16 -0
  156. package/dist/render/lib/sections/payment-rows.js +1 -0
  157. package/dist/render/lib/sections/section-to-box.d.ts +3 -0
  158. package/dist/render/lib/sections/section-to-box.js +1 -1
  159. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ type Props = Record<string, unknown>;
2
+ export type CardStyle = "table" | "list";
3
+ export declare const CARD_STYLE_KEY = "cardStyle";
4
+ export interface CardStyleValues {
5
+ readonly items: Readonly<Props>;
6
+ readonly grid: Readonly<Props>;
7
+ readonly row: Readonly<Props>;
8
+ readonly card: Readonly<Props>;
9
+ readonly listCard: Readonly<Props>;
10
+ }
11
+ export declare const CARD_STYLES: Readonly<Record<CardStyle, CardStyleValues>>;
12
+ export declare const CARD_STYLE_POINTS: readonly {
13
+ label: string;
14
+ value: CardStyle;
15
+ }[];
16
+ export declare const isCardStyle: (v: unknown) => v is CardStyle;
17
+ export declare function applyCardStyle(props: Props, style: CardStyle, boxType: string, slot: string): Props;
18
+ export {};
@@ -0,0 +1 @@
1
+ import{phoneKey as S}from"efficient-easel/draw";import{isNode as d}from"efficient-easel/data";import{CARD_LIST_TYPE as m,CARD_TEMPLATE_SLOT as f}from"../../../format/lib/content/card-template.js";const u="cardStyle";function C(t){const{widthPhone:o,...r}=t;return t.widthFitPhone==="fixed"?{...r,widthFitPhone:"fill"}:{...t}}const h={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[S("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},P={table:{...h.table,listCard:C(h.table.card)},list:{...h.list,listCard:C(h.list.card)}},w=[{label:"Table",value:"table"},{label:"List",value:"list"}],b=t=>t==="table"||t==="list",y=t=>[...new Set([...Object.keys(P.table[t]),...Object.keys(P.list[t])])];function g(t,o,r){const e={...t};for(const a of y(o))delete e[a];return{...e,...structuredClone(P[r][o])}}function A(t,o,r){const e=t.props??{},a=Array.isArray(e[f])?e[f]:[],s=a.findIndex(p=>d(p)&&p.type===r);if(s<0)return t;const n=a[s],i=a.map((p,l)=>l===s?{...n,props:g(n.props??{},"listCard",o)}:p);return{...t,props:{...e,[f]:i}}}function R(t,o,r,e){const a=Array.isArray(t[e])?t[e]:[];if(a.some(n=>d(n)&&n.type===m)){const n=a.map(i=>d(i)&&i.type===m?A(i,o,r):i);return{...g(t,"items",o),[u]:o,[e]:n}}const s=a.map(n=>{if(!d(n)||n.type!==r)return n;const i=n.props??{},l=(Array.isArray(i[e])?i[e]:[]).map(c=>d(c)&&c.type===r?{...c,props:g(c.props??{},"card",o)}:c);return{...n,props:{...g(i,"row",o),[e]:l}}});return{...g(t,"grid",o),[u]:o,[e]:s}}export{P as CARD_STYLES,u as CARD_STYLE_KEY,w as CARD_STYLE_POINTS,R as applyCardStyle,b as isCardStyle};
@@ -0,0 +1,16 @@
1
+ import { type PaymentMarkItem } from "efficient-shell/icons/payment";
2
+ export declare const PAYMENT_METHOD_SOURCES: readonly string[];
3
+ export declare const isPaymentMethodSource: (key: string) => boolean;
4
+ export type PaymentMethodRow = {
5
+ label?: string;
6
+ kind?: string;
7
+ };
8
+ export type PaymentChipRow = {
9
+ label: string;
10
+ kind: string;
11
+ };
12
+ export declare function paymentMarkRows(methods: readonly PaymentMethodRow[]): PaymentChipRow[];
13
+ export declare function paymentRowMark(row: {
14
+ label?: string;
15
+ kind?: string;
16
+ }): PaymentMarkItem | null;
@@ -0,0 +1 @@
1
+ import{paymentMarkItems as o,paymentMarks as k}from"efficient-shell/icons/payment";import{LOCATION_PAYMENT_METHODS_SOURCE as l,SHOP_PAYMENT_METHODS_SOURCE as i}from"../../../format/lib/content/block-sources.js";const p=[l,i],O=n=>p.includes(n),a=n=>o({name:n.label,kind:n.kind}),s=(n,e)=>n.kind===e.kind&&n.label===e.label&&(n.kind==="brand"?n.mark===e.mark:n.glyph===e.glyph);function c(n){return k(n.map(t=>({name:t.label,kind:t.kind}))).map(t=>({label:t.label,kind:n.find(r=>a(r).some(m=>s(m,t)))?.kind??""}))}function E(n){return a(n)[0]??null}export{p as PAYMENT_METHOD_SOURCES,O as isPaymentMethodSource,c as paymentMarkRows,E as paymentRowMark};
@@ -40,6 +40,7 @@ export type SiteFacts = {
40
40
  export type ConvertContext = {
41
41
  site?: SiteFacts;
42
42
  theme?: ThemeValue;
43
+ press?: boolean;
43
44
  };
44
45
  export declare function convertTheme(ctx: ConvertContext): ThemeValue | undefined;
45
46
  export type Restyled = {
@@ -148,6 +149,7 @@ type PartRowKind = {
148
149
  kind: "core";
149
150
  keep: readonly string[] | "rest";
150
151
  as?: string;
152
+ headless?: true;
151
153
  rename?: Readonly<Record<string, string>>;
152
154
  props?: Props;
153
155
  slots?: Readonly<Record<string, readonly SlotFill[]>> | ((node: Props, ctx: ConvertContext) => Readonly<Record<string, readonly SlotFill[]>>);
@@ -162,6 +164,7 @@ export interface SectionToBoxRow {
162
164
  boxProps?: OwnProps;
163
165
  parts: readonly PartRow[];
164
166
  drop?: Readonly<Record<string, string>>;
167
+ pressKeepsEmpty?: readonly string[];
165
168
  site?: (node: SectionNode, ctx: ConvertContext) => readonly SiteWrite[];
166
169
  skip?: (props: Props) => string | undefined;
167
170
  also?: readonly SectionPiece[];
@@ -1 +1 @@
1
- import{readHidable as Z}from"efficient-easel/draw";import{BOX_TYPE as ee,CONTAINER_BLOCKS_SLOT as te}from"../../../format/lib/document/container-blocks.js";import{headingTextSeed as oe,labelTextSeed as ne}from"../../../format/lib/document/text-seeds.js";import{SPLITTABLE_SECTIONS as se}from"../../../format/lib/sections/section-head-placement.js";import{finiteNumber as R}from"../../../format/lib/finite-number.js";import{accentItalicRuns as ie}from"../../../format/lib/markup.js";import{seedNodes as re}from"../../../format/lib/document/seed-parts.js";import{bucketByGroup as ae}from"../../../format/lib/locations-grid.js";import{normalizeTheme as G}from"../../../format/lib/theme.js";const P=ee,v=te;function Se(t){if(t.theme)return G(t.theme);const o=t.site?.themePresets;return o?G({selected:t.site?.selectedPreset??0,themes:[...o]}):void 0}function ce(t,o){return o===0?`${t}~box`:`${t}~box-${o+1}`}const A={Flex:"the Box itself",Hero:"its slides hold Boxes of real blocks (Hero › Slide › Box), and its Scrolling Bar is a Box in its strip slot (Hero › Box)",Divider:"one block with no text, picture or button",CustomHTML:"the HTML box is the whole section; it has no parts"};function Te(t){for(const[o,i]of Object.entries(t)){if(o in A&&A[o]!==i)throw new Error(`lib/sections/section-to-box: "${o}" is already Box-native`);A[o]=i}}function _e(t){return A[t]}const V=new Set(["id"]),T={},H=[],fe=["Breadcrumb","DocBody"];function Ee(t){for(const[o,i]of Object.entries(t)){if(o in T&&T[o]!==i)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);T[o]=i}}function Pe(t){return T[t]}function ve(){return Object.keys(T)}function de(t){return t in T&&H.includes(t)}function je(t,o=fe){return t in T&&(o.includes(t)||de(t))}function Ne(t){const o=se[t];if(!o)throw new Error(`lib/sections/section-to-box: "${t}" has no head row in SPLITTABLE_SECTIONS`);const i=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&i.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&i.push({kind:"button",key:"linkText",href:"linkHref"}),i}const X=t=>Z(t),Ie=t=>X(t).text.trim()!=="";function le(t){if(t.includes("=="))return t;const o=t.indexOf("/"),i=o===-1?t:t.slice(0,o),r=i.trim();if(!r)return t;const m=i.indexOf(r);return`${i.slice(0,m)}==${r}==${i.slice(m+r.length)}${o===-1?"":t.slice(o)}`}const pe=t=>t==="heading"?oe():t==="eyebrow"?ne():{};function ue(t,o,i,r){const a={...t._partStyles?.text??{},...o??{},...i??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function he(t,o){if(t===void 0)return{};if(typeof t=="string")return{variant:t};const i=o[t.key];return{variant:typeof i=="string"&&Object.hasOwn(t.map,i)?t.map[i]:t.fallback}}function Y(t,o,i,r,m={}){const a={...o};for(const h of t){const[k,S,j]=typeof h=="string"?[h,h,void 0]:h;if(i[k]===void 0)continue;const _=j?j(i[k],i,m):i[k];_===void 0?delete a[S]:a[S]=_,r(k,S,_===void 0)}return a}function ye(t){const o=new Set([...V,"headPlacement","_partStyles",...Object.keys(t.drop??{}),...Object.keys(t.reads??{})]),i=m=>{for(const a of m??[])o.add(typeof a=="string"?a:a[0])},r=m=>{for(const a of m)switch(a.kind){case"text":case"image":o.add(a.key),a.kind==="image"&&a.alt&&o.add(a.alt);break;case"button":o.add(a.key),o.add(a.href),typeof a.variant=="object"&&o.add(a.variant.key);break;case"list":o.add(a.key);break;case"group":case"block":i(a.box),r(a.parts??[]);break;case"core":if(a.keep!=="rest"&&a.keep.forEach(h=>o.add(h)),Object.keys(a.rename??{}).forEach(h=>o.add(h)),a.derive?.reads.forEach(h=>o.add(h)),typeof a.slots!="function")for(const h of Object.values(a.slots??{}))for(const k of h)"kind"in k&&o.add(k.key);break}};for(const m of[t,...t.also??[]])i(m.box),r(m.parts);return o}function q(t,o,i={}){const r=t.props,m=o.skip?.(r);if(m!==void 0)return{node:t,nodes:[t],carried:[],dropped:[],siteWrites:[],restyled:[],skipped:m};const a=String(r.id??t.type),h=[],k=[],S=[],j=new Set,_=(n,s)=>{h.push({key:n,home:s}),j.add(n)},F=r._partStyles??{},L=ye(o);let K=0;const $=(n,s)=>({type:n,props:{...s,id:`${a}~${n}-${++K}`}}),M=(n,s,b,y,x,d,w)=>{if(x){for(const c of n??[]){const p=typeof c=="string"?c:c[0];b[p]!==void 0&&w(p,`nothing — the ${y} has no parts, so it is not drawn`)}return}const e=typeof s=="function"?s(r,i):s??{};return Y(n??[],e,b,(c,p,f)=>w(c,f?`nothing — the old value draws nothing (${y}: no ${p})`:`${d}${y}: ${p}`),i)},J=n=>re(n,s=>`${a}~${s}-${++K}`),W=(n,s,b)=>{const y=n.of?n.of(s):Array.isArray(s[n.key])?s[n.key]:[],x=typeof n.props=="function"?n.props(r,i):n.props??{},d=y.map((f,g)=>{const l=f??{},u=n.item?.(l,g,r)??{},O=N(u.reverse?[...n.parts].reverse():n.parts,l,!1,`item ${g+1}: `);return n.flat?u.props?O.map(E=>({...E,props:{...E.props,...u.props,id:E.props.id}})):O:[$(P,{name:`${n.name} ${g+1}`,...x,...u.props??{},[v]:O})]});if(n.groups){const f=n.groups;return b(n.key,y.length?`one Box per item (${y.length}), in a Box per group`:"nothing — the list is empty"),ae(y.map(g=>g??{}),f.of,f.of).map((g,l)=>{const u=g.items.map(B=>B.item),O=f.parts?N(f.parts,f.head?.(u,r)??{},!1,`group ${l+1}: `):[],E=g.items.map(B=>d[B.index]),z=f.perRow?.(u.length,r),I=Number.isInteger(z)&&z>=1?z:1,C=[];if(f.perRow&&I<E.length)for(let B=0;B*I<E.length;B++)C.push(E.slice(B*I,(B+1)*I).flat());return $(P,{name:`${f.name} ${l+1}`,...f.props??{},[v]:[...O,$(P,{name:`${f.itemsName} ${l+1}`,...f.itemsProps?.(u.length,r)??{},[v]:C.length?C.map((B,U)=>$(P,{name:`${f.rowName??`${f.itemsName} row`} ${U+1}`,...f.rowProps??{},[v]:B})):E.flat()})]})})}const w=n.perRow?.(r),e=n.perRow?Number.isInteger(w)&&w>=1?w:1:0;if(b(n.key,(y.length?n.flat?`each item's parts (${y.length} items), in order`:`one Box per item (${y.length}), its parts inside`:"nothing — the list is empty")+(e&&y.length?`, in rows of ${e}`:"")),!e)return d.flat();const c=typeof n.rowProps=="function"?n.rowProps(r,i):n.rowProps??{},p=[];for(let f=0;f*e<d.length;f++){const g=d.slice(f*e,(f+1)*e).flat(),l=n.rowFiller?e-d.slice(f*e,(f+1)*e).length:0;p.push($(P,{name:`${n.rowName??`${n.name} row`} ${f+1}`,...c,[v]:[...g,...Array.from({length:l},(u,O)=>$(P,{name:`Empty ${O+1}`,...n.rowFiller,[v]:[]}))]}))}return p},N=(n,s,b,y)=>{const x=[],d=(e,c)=>b?_(e,c):void 0,w=e=>b?F[e]:void 0;for(const e of n)if(!(e.when&&!e.when(r,b?void 0:s)))switch(e.kind){case"text":{const c=X(s[e.key]);if(!c.text.trim()){d(e.key,"nothing — empty words draw nothing, so no block");break}const p=pe(e.role??"body"),{_partStyles:f,...g}=p,l=ue(p,e.styleFrom?{...e.style,...e.styleFrom(r,i)}:e.style,w(e.key),e.props?.align);if(e.was&&b){const u=l._partStyles?.text??{};S.push({key:e.key,was:e.was,...typeof u.textStyle=="string"?{textStyle:u.textStyle}:{},...R(u.size)!==void 0?{size:R(u.size)}:{},...R(u.sizePhone)!==void 0?{sizePhone:R(u.sizePhone)}:{}})}x.push($("Text",{text:e.mark==="accentLead"?le(c.text):e.mark==="accentItalic"?ie(c.text):c.text,...g,...e.props??{},...l,...c.hidden?{_hidden:!0}:{}})),d(e.key,`${y}Text block: its words${c.hidden?", hidden":""}`);break}case"button":{const c=X(s[e.key]);if(!c.text.trim()){d(e.key,"nothing — no words, no button"),d(e.href,"nothing — no button to link"),typeof e.variant=="object"&&d(e.variant.key,"nothing — no button to style");break}const p=typeof s[e.href]=="string"&&s[e.href]?s[e.href]:"#",f={...e.style??{},...w(e.key)??{}};x.push($("ButtonBlock",{label:c.text,href:p,...typeof e.props=="function"?e.props(s,i):e.props??{},...he(e.variant,s),...Object.keys(f).length?{_partStyles:{label:f}}:{},...c.hidden?{_hidden:!0}:{}})),d(e.key,`${y}Button block: its words`),d(e.href,`${y}Button block: its link`),typeof e.variant=="object"&&d(e.variant.key,`${y}Button block: its Style`);break}case"image":{const c=s[e.key];if(typeof c!="string"||!c){d(e.key,"nothing — no picture, no block"),e.alt&&d(e.alt,"nothing — no picture to describe");break}const p=e.alt&&typeof s[e.alt]=="string"?s[e.alt]:"";x.push($("ImageBlock",{src:c,alt:p,...e.props??{}})),d(e.key,`${y}Image block: its picture`),e.alt&&d(e.alt,`${y}Image block: its alt text`);break}case"list":{x.push(...W(e,s,d));break}case"group":{const c=N(e.parts,s,b,y),p=M(e.box,e.props,s,`${e.name} Box`,!c.length&&!e.keepEmpty,y,d);p&&x.push($(P,{name:e.name,...p,[v]:c}));break}case"block":{const c=e.parts?N(e.parts,s,b,y):[],p=M(e.box,e.props,s,`${e.type} block`,!!e.parts&&!c.length&&!e.keepEmpty,y,d);p&&x.push($(e.type,{...p,...e.slot?{[e.slot]:c}:{}}));break}case"core":{const c=e.as??t.type,p={headPlacement:"own-box",...e.props??{}},f=e.keep==="rest"?Object.keys(s).filter(l=>!L.has(l)&&!(l in p)):e.keep;for(const l of f)s[l]!==void 0&&(p[l]=s[l],d(l,`the ${c} block inside the Box`));if(e.keep==="rest"){for(const u of Object.keys(e.props??{}))s[u]!==void 0&&!L.has(u)&&d(u,`nothing — the ${c} block inside the Box has the row's own value`);s.headPlacement!==void 0&&d("headPlacement",`the ${c} block inside the Box: own-box`);const l=Object.fromEntries(Object.entries(F).filter(([u])=>!L.has(u)));Object.keys(l).length&&(p._partStyles=l)}for(const[l,u]of Object.entries(e.rename??{}))s[l]!==void 0&&(p[u]=s[l],d(l,`the ${c} block inside the Box: ${u}`));if(e.derive){Object.assign(p,e.derive.props(s,i));for(const l of e.derive.reads)s[l]!==void 0&&d(l,`the ${c} block inside the Box`)}const g=typeof e.slots=="function"?e.slots(s,i):e.slots??{};for(const[l,u]of Object.entries(g))p[l]=u.flatMap(O=>"kind"in O?W(O,s,d):J([O]));x.push($(c,p));break}}return x},Q=(n,s)=>{const b=s===0?"Box":`${n.name} Box`,y=N(n.parts,r,!0,s===0?"":`${b}: `),x=typeof n.boxProps=="function"?n.boxProps(r,i):n.boxProps??{},d=Y(n.box??[],x,r,(w,e,c)=>_(w,c?`nothing — the old value draws nothing (${b}: no ${e})`:`${b}: ${e}`),i);return{type:P,props:{name:n.name,...d,[v]:y,id:ce(a,s)}}},D=[o,...o.also??[]].map(Q);r._partStyles!==void 0&&_("_partStyles","each old part's style moved to its new part");for(const[n,s]of Object.entries(o.reads??{}))r[n]!==void 0&&_(n,s);for(const[n,s]of Object.entries(o.drop??{}))n in r&&(k.push({key:n,why:s}),j.add(n));for(const n of Object.keys(r))V.has(n)||j.has(n)||k.push({key:n,why:"not in the row — not carried"});return{node:D[0],nodes:D,carried:h,dropped:k,siteWrites:[...o.site?.(t,i)??[]],restyled:S}}function Re(t,o=H,i={}){const r=t.content;if(!Array.isArray(r))return t;let m=!1;const a=r.flatMap(h=>{const k=h&&typeof h.type=="string"&&o.includes(h.type)?T[h.type]:void 0;if(!k)return[h];const S=q(h,k,i);return S.skipped!==void 0?[h]:(m=!0,S.nodes)});return m?{...t,content:a}:t}function Ae(t,o=H,i={}){if(!Array.isArray(t))return[];const r=[];return t.forEach((m,a)=>{const h=m&&typeof m.type=="string"&&o.includes(m.type)?T[m.type]:void 0;if(!h)return;const k=q(m,h,i);k.skipped===void 0&&r.push({index:a,node:k.node,nodes:k.nodes})}),r}export{v as SECTION_BOX_SLOT,P as SECTION_BOX_TYPE,H as SECTION_TO_BOX_ON,fe as SECTION_TO_BOX_PRESS,_e as boxNativeReason,q as convertSection,Re as convertSectionsInPage,Se as convertTheme,de as convertsToBox,Ie as hasWords,Ne as headParts,je as pressesAsBox,Te as registerBoxNativeSections,Ee as registerSectionToBox,ce as sectionBoxIdOf,Ae as sectionToBoxEdits,Pe as sectionToBoxRow,ve as sectionToBoxTypes};
1
+ import{readHidable as Z}from"efficient-easel/draw";import{BOX_TYPE as ee,CONTAINER_BLOCKS_SLOT as te}from"../../../format/lib/document/container-blocks.js";import{headingTextSeed as oe,labelTextSeed as ne}from"../../../format/lib/document/text-seeds.js";import{SPLITTABLE_SECTIONS as se}from"../../../format/lib/sections/section-head-placement.js";import{finiteNumber as R}from"../../../format/lib/finite-number.js";import{accentItalicRuns as ie}from"../../../format/lib/markup.js";import{seedNodes as re}from"../../../format/lib/document/seed-parts.js";import{bucketByGroup as ae}from"../../../format/lib/locations-grid.js";import{normalizeTheme as G}from"../../../format/lib/theme.js";const P=ee,v=te;function Be(t){if(t.theme)return G(t.theme);const o=t.site?.themePresets;return o?G({selected:t.site?.selectedPreset??0,themes:[...o]}):void 0}function ce(t,o){return o===0?`${t}~box`:`${t}~box-${o+1}`}const A={Flex:"the Box itself",Hero:"its slides hold Boxes of real blocks (Hero › Slide › Box), and its Scrolling Bar is a Box in its strip slot (Hero › Box)",Divider:"one block with no text, picture or button",CustomHTML:"the HTML box is the whole section; it has no parts"};function Te(t){for(const[o,i]of Object.entries(t)){if(o in A&&A[o]!==i)throw new Error(`lib/sections/section-to-box: "${o}" is already Box-native`);A[o]=i}}function _e(t){return A[t]}const V=new Set(["id"]),T={},F=[],fe=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","Stats","Logos","FitmentFinder","DocMasthead"];function Ee(t){for(const[o,i]of Object.entries(t)){if(o in T&&T[o]!==i)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);T[o]=i}}function Pe(t){return T[t]}function ve(){return Object.keys(T)}function de(t){return t in T&&F.includes(t)}function je(t,o=fe){return t in T&&(o.includes(t)||de(t))}function Ne(t){const o=se[t];if(!o)throw new Error(`lib/sections/section-to-box: "${t}" has no head row in SPLITTABLE_SECTIONS`);const i=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&i.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&i.push({kind:"button",key:"linkText",href:"linkHref"}),i}const H=t=>Z(t),Ie=t=>H(t).text.trim()!=="";function le(t){if(t.includes("=="))return t;const o=t.indexOf("/"),i=o===-1?t:t.slice(0,o),r=i.trim();if(!r)return t;const m=i.indexOf(r);return`${i.slice(0,m)}==${r}==${i.slice(m+r.length)}${o===-1?"":t.slice(o)}`}const pe=t=>t==="heading"?oe():t==="eyebrow"?ne():{};function ue(t,o,i,r){const a={...t._partStyles?.text??{},...o??{},...i??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function he(t,o){if(t===void 0)return{};if(typeof t=="string")return{variant:t};const i=o[t.key];return{variant:typeof i=="string"&&Object.hasOwn(t.map,i)?t.map[i]:t.fallback}}function Y(t,o,i,r,m={}){const a={...o};for(const h of t){const[k,B,j]=typeof h=="string"?[h,h,void 0]:h;if(i[k]===void 0)continue;const _=j?j(i[k],i,m):i[k];_===void 0?delete a[B]:a[B]=_,r(k,B,_===void 0)}return a}function ye(t){const o=new Set([...V,"headPlacement","_partStyles",...Object.keys(t.drop??{}),...Object.keys(t.reads??{})]),i=m=>{for(const a of m??[])o.add(typeof a=="string"?a:a[0])},r=m=>{for(const a of m)switch(a.kind){case"text":case"image":o.add(a.key),a.kind==="image"&&a.alt&&o.add(a.alt);break;case"button":o.add(a.key),o.add(a.href),typeof a.variant=="object"&&o.add(a.variant.key);break;case"list":o.add(a.key);break;case"group":case"block":i(a.box),r(a.parts??[]);break;case"core":if(a.keep!=="rest"&&a.keep.forEach(h=>o.add(h)),Object.keys(a.rename??{}).forEach(h=>o.add(h)),a.derive?.reads.forEach(h=>o.add(h)),typeof a.slots!="function")for(const h of Object.values(a.slots??{}))for(const k of h)"kind"in k&&o.add(k.key);break}};for(const m of[t,...t.also??[]])i(m.box),r(m.parts);return o}function q(t,o,i={}){const r=t.props,m=o.skip?.(r);if(m!==void 0)return{node:t,nodes:[t],carried:[],dropped:[],siteWrites:[],restyled:[],skipped:m};const a=String(r.id??t.type),h=[],k=[],B=[],j=new Set,_=(n,s)=>{h.push({key:n,home:s}),j.add(n)},X=r._partStyles??{},L=ye(o);let K=0;const $=(n,s)=>({type:n,props:{...s,id:`${a}~${n}-${++K}`}}),M=(n,s,b,y,g,d,w)=>{if(g){for(const c of n??[]){const p=typeof c=="string"?c:c[0];b[p]!==void 0&&w(p,`nothing — the ${y} has no parts, so it is not drawn`)}return}const e=typeof s=="function"?s(r,i):s??{};return Y(n??[],e,b,(c,p,f)=>w(c,f?`nothing — the old value draws nothing (${y}: no ${p})`:`${d}${y}: ${p}`),i)},J=n=>re(n,s=>`${a}~${s}-${++K}`),W=(n,s,b)=>{const y=n.of?n.of(s):Array.isArray(s[n.key])?s[n.key]:[],g=typeof n.props=="function"?n.props(r,i):n.props??{},d=y.map((f,x)=>{const l=f??{},u=n.item?.(l,x,r)??{},O=N(u.reverse?[...n.parts].reverse():n.parts,l,!1,`item ${x+1}: `);return n.flat?u.props?O.map(E=>({...E,props:{...E.props,...u.props,id:E.props.id}})):O:[$(P,{name:`${n.name} ${x+1}`,...g,...u.props??{},[v]:O})]});if(n.groups){const f=n.groups;return b(n.key,y.length?`one Box per item (${y.length}), in a Box per group`:"nothing — the list is empty"),ae(y.map(x=>x??{}),f.of,f.of).map((x,l)=>{const u=x.items.map(S=>S.item),O=f.parts?N(f.parts,f.head?.(u,r)??{},!1,`group ${l+1}: `):[],E=x.items.map(S=>d[S.index]),z=f.perRow?.(u.length,r),I=Number.isInteger(z)&&z>=1?z:1,C=[];if(f.perRow&&I<E.length)for(let S=0;S*I<E.length;S++)C.push(E.slice(S*I,(S+1)*I).flat());return $(P,{name:`${f.name} ${l+1}`,...f.props??{},[v]:[...O,$(P,{name:`${f.itemsName} ${l+1}`,...f.itemsProps?.(u.length,r)??{},[v]:C.length?C.map((S,U)=>$(P,{name:`${f.rowName??`${f.itemsName} row`} ${U+1}`,...f.rowProps??{},[v]:S})):E.flat()})]})})}const w=n.perRow?.(r),e=n.perRow?Number.isInteger(w)&&w>=1?w:1:0;if(b(n.key,(y.length?n.flat?`each item's parts (${y.length} items), in order`:`one Box per item (${y.length}), its parts inside`:"nothing — the list is empty")+(e&&y.length?`, in rows of ${e}`:"")),!e)return d.flat();const c=typeof n.rowProps=="function"?n.rowProps(r,i):n.rowProps??{},p=[];for(let f=0;f*e<d.length;f++){const x=d.slice(f*e,(f+1)*e).flat(),l=n.rowFiller?e-d.slice(f*e,(f+1)*e).length:0;p.push($(P,{name:`${n.rowName??`${n.name} row`} ${f+1}`,...c,[v]:[...x,...Array.from({length:l},(u,O)=>$(P,{name:`Empty ${O+1}`,...n.rowFiller,[v]:[]}))]}))}return p},N=(n,s,b,y)=>{const g=[],d=(e,c)=>b?_(e,c):void 0,w=e=>b?X[e]:void 0;for(const e of n)if(!(e.when&&!e.when(r,b?void 0:s)))switch(e.kind){case"text":{const c=H(s[e.key]);if(!c.text.trim()&&!(b&&i.press&&o.pressKeepsEmpty?.includes(e.key))){d(e.key,"nothing — empty words draw nothing, so no block");break}const p=pe(e.role??"body"),{_partStyles:f,...x}=p,l=ue(p,e.styleFrom?{...e.style,...e.styleFrom(r,i)}:e.style,w(e.key),e.props?.align);if(e.was&&b){const u=l._partStyles?.text??{};B.push({key:e.key,was:e.was,...typeof u.textStyle=="string"?{textStyle:u.textStyle}:{},...R(u.size)!==void 0?{size:R(u.size)}:{},...R(u.sizePhone)!==void 0?{sizePhone:R(u.sizePhone)}:{}})}g.push($("Text",{text:e.mark==="accentLead"?le(c.text):e.mark==="accentItalic"?ie(c.text):c.text,...x,...e.props??{},...l,...c.hidden?{_hidden:!0}:{}})),d(e.key,`${y}Text block: its words${c.hidden?", hidden":""}`);break}case"button":{const c=H(s[e.key]);if(!c.text.trim()){d(e.key,"nothing — no words, no button"),d(e.href,"nothing — no button to link"),typeof e.variant=="object"&&d(e.variant.key,"nothing — no button to style");break}const p=typeof s[e.href]=="string"&&s[e.href]?s[e.href]:"#",f={...e.style??{},...w(e.key)??{}};g.push($("ButtonBlock",{label:c.text,href:p,...typeof e.props=="function"?e.props(s,i):e.props??{},...he(e.variant,s),...Object.keys(f).length?{_partStyles:{label:f}}:{},...c.hidden?{_hidden:!0}:{}})),d(e.key,`${y}Button block: its words`),d(e.href,`${y}Button block: its link`),typeof e.variant=="object"&&d(e.variant.key,`${y}Button block: its Style`);break}case"image":{const c=s[e.key];if(typeof c!="string"||!c){d(e.key,"nothing — no picture, no block"),e.alt&&d(e.alt,"nothing — no picture to describe");break}const p=e.alt&&typeof s[e.alt]=="string"?s[e.alt]:"";g.push($("ImageBlock",{src:c,alt:p,...e.props??{}})),d(e.key,`${y}Image block: its picture`),e.alt&&d(e.alt,`${y}Image block: its alt text`);break}case"list":{g.push(...W(e,s,d));break}case"group":{const c=N(e.parts,s,b,y),p=M(e.box,e.props,s,`${e.name} Box`,!c.length&&!e.keepEmpty,y,d);p&&g.push($(P,{name:e.name,...p,[v]:c}));break}case"block":{const c=e.parts?N(e.parts,s,b,y):[],p=M(e.box,e.props,s,`${e.type} block`,!!e.parts&&!c.length&&!e.keepEmpty,y,d);p&&g.push($(e.type,{...p,...e.slot?{[e.slot]:c}:{}}));break}case"core":{const c=e.as??t.type,p={...e.headless?{}:{headPlacement:"own-box"},...e.props??{}},f=e.keep==="rest"?Object.keys(s).filter(l=>!L.has(l)&&!(l in p)):e.keep;for(const l of f)s[l]!==void 0&&(p[l]=s[l],d(l,`the ${c} block inside the Box`));if(e.keep==="rest"){for(const u of Object.keys(e.props??{}))s[u]!==void 0&&!L.has(u)&&d(u,`nothing — the ${c} block inside the Box has the row's own value`);s.headPlacement!==void 0&&d("headPlacement",`the ${c} block inside the Box: own-box`);const l=Object.fromEntries(Object.entries(X).filter(([u])=>!L.has(u)));Object.keys(l).length&&(p._partStyles=l)}for(const[l,u]of Object.entries(e.rename??{}))s[l]!==void 0&&(p[u]=s[l],d(l,`the ${c} block inside the Box: ${u}`));if(e.derive){Object.assign(p,e.derive.props(s,i));for(const l of e.derive.reads)s[l]!==void 0&&d(l,`the ${c} block inside the Box`)}const x=typeof e.slots=="function"?e.slots(s,i):e.slots??{};for(const[l,u]of Object.entries(x))p[l]=u.flatMap(O=>"kind"in O?W(O,s,d):J([O]));g.push($(c,p));break}}return g},Q=(n,s)=>{const b=s===0?"Box":`${n.name} Box`,y=N(n.parts,r,!0,s===0?"":`${b}: `),g=typeof n.boxProps=="function"?n.boxProps(r,i):n.boxProps??{},d=Y(n.box??[],g,r,(w,e,c)=>_(w,c?`nothing — the old value draws nothing (${b}: no ${e})`:`${b}: ${e}`),i);return{type:P,props:{name:n.name,...d,[v]:y,id:ce(a,s)}}},D=[o,...o.also??[]].map(Q);r._partStyles!==void 0&&_("_partStyles","each old part's style moved to its new part");for(const[n,s]of Object.entries(o.reads??{}))r[n]!==void 0&&_(n,s);for(const[n,s]of Object.entries(o.drop??{}))n in r&&(k.push({key:n,why:s}),j.add(n));for(const n of Object.keys(r))V.has(n)||j.has(n)||k.push({key:n,why:"not in the row — not carried"});return{node:D[0],nodes:D,carried:h,dropped:k,siteWrites:[...o.site?.(t,i)??[]],restyled:B}}function Re(t,o=F,i={}){const r=t.content;if(!Array.isArray(r))return t;let m=!1;const a=r.flatMap(h=>{const k=h&&typeof h.type=="string"&&o.includes(h.type)?T[h.type]:void 0;if(!k)return[h];const B=q(h,k,i);return B.skipped!==void 0?[h]:(m=!0,B.nodes)});return m?{...t,content:a}:t}function Ae(t,o=F,i={}){if(!Array.isArray(t))return[];const r=[];return t.forEach((m,a)=>{const h=m&&typeof m.type=="string"&&o.includes(m.type)?T[m.type]:void 0;if(!h)return;const k=q(m,h,i);k.skipped===void 0&&r.push({index:a,node:k.node,nodes:k.nodes})}),r}export{v as SECTION_BOX_SLOT,P as SECTION_BOX_TYPE,F as SECTION_TO_BOX_ON,fe as SECTION_TO_BOX_PRESS,_e as boxNativeReason,q as convertSection,Re as convertSectionsInPage,Be as convertTheme,de as convertsToBox,Ie as hasWords,Ne as headParts,je as pressesAsBox,Te as registerBoxNativeSections,Ee as registerSectionToBox,ce as sectionBoxIdOf,Ae as sectionToBoxEdits,Pe as sectionToBoxRow,ve as sectionToBoxTypes};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-web-builder",
3
- "version": "55.1.0",
3
+ "version": "55.3.0",
4
4
  "description": "The EFFICIENT website builder: the website editor, the general sections and the renderer that draws them, compiled. Hostable by any EFFICIENT product; nothing here imports a host.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",