efficient-web-builder 32.2.0 → 34.0.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 (56) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/editor/components/SectionIcon.js +1 -1
  3. package/dist/editor/components/SiteRestoreNotice.d.ts +1 -0
  4. package/dist/editor/components/SiteRestoreNotice.js +1 -0
  5. package/dist/editor/components/StorefrontEditor.js +1 -1
  6. package/dist/editor/components/VersionHistoryDrawer.d.ts +21 -0
  7. package/dist/editor/components/VersionHistoryDrawer.js +1 -0
  8. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  9. package/dist/editor/components/storefront-editor.css +17 -1
  10. package/dist/editor/components/useWebsiteMainAction.js +1 -1
  11. package/dist/editor/lib/editor-document-adapter.d.ts +2 -0
  12. package/dist/editor/lib/editor-document-adapter.js +1 -1
  13. package/dist/editor/lib/puck/blocks/general/Text/fields.js +1 -1
  14. package/dist/editor/lib/puck/heading-outline.js +1 -1
  15. package/dist/editor/lib/puck/overrides.js +1 -1
  16. package/dist/editor/lib/site-versions.d.ts +43 -0
  17. package/dist/editor/lib/site-versions.js +1 -0
  18. package/dist/format/lib/content/contact.d.ts +0 -2
  19. package/dist/format/lib/content/contact.js +2 -2
  20. package/dist/format/lib/content/footprint.d.ts +3 -3
  21. package/dist/format/lib/content/footprint.js +1 -1
  22. package/dist/format/lib/content/text-tag.d.ts +4 -0
  23. package/dist/format/lib/content/text-tag.js +1 -0
  24. package/dist/format/lib/editor-words-catalogue.d.ts +59 -0
  25. package/dist/format/lib/editor-words-catalogue.js +5 -5
  26. package/dist/format/lib/map-styles.d.ts +1 -27
  27. package/dist/format/lib/map-styles.js +1 -1
  28. package/dist/format/lib/puck/container-blocks.js +1 -1
  29. package/dist/format/lib/puck/passes/settings-groups.js +1 -1
  30. package/dist/format/lib/sections/section-head-style.d.ts +1 -0
  31. package/dist/format/lib/source-rules/flat-theme-palette.d.ts +1 -0
  32. package/dist/format/lib/source-rules/flat-theme-palette.js +5 -5
  33. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.d.ts +1 -0
  34. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.js +18 -18
  35. package/dist/format/lib/web-backend.d.ts +29 -0
  36. package/dist/render/components/ContactLocations.d.ts +1 -3
  37. package/dist/render/components/ContactLocations.js +6 -26
  38. package/dist/render/components/DealerFinder.d.ts +1 -1
  39. package/dist/render/components/DealerFinder.js +1 -1
  40. package/dist/render/components/Footprint.d.ts +2 -4
  41. package/dist/render/components/Footprint.js +1 -27
  42. package/dist/render/components/SectionHeader.d.ts +30 -3
  43. package/dist/render/components/SectionHeader.js +1 -1
  44. package/dist/render/components/SiteMap.d.ts +19 -0
  45. package/dist/render/components/SiteMap.js +1 -0
  46. package/dist/render/components/Text.d.ts +2 -1
  47. package/dist/render/components/Text.js +1 -1
  48. package/dist/render/components/useCountUp.js +1 -1
  49. package/dist/render/lib/puck/blocks/general/ContactLocations/render.js +1 -1
  50. package/dist/render/lib/puck/blocks/general/Footprint/render.js +2 -2
  51. package/dist/render/lib/puck/blocks/general/Text/render.js +1 -1
  52. package/package.json +5 -6
  53. package/dist/format/lib/maps-loader.d.ts +0 -8
  54. package/dist/format/lib/maps-loader.js +0 -1
  55. package/dist/render/lib/maps-config.d.ts +0 -16
  56. package/dist/render/lib/maps-config.js +0 -1
@@ -0,0 +1 @@
1
+ const n=["p","h1","h2","h3","h4","h5","h6"];function r(t){return n.includes(t)?t:"p"}function h(t){const e=r(t);return e==="p"?null:Number(e.slice(1))}export{n as TEXT_TAGS,h as headingLevelOfTag,r as textTagOf};
@@ -80,6 +80,7 @@ export declare const WEB_BUILDER_WORDS: {
80
80
  readonly Accent: "Accent";
81
81
  readonly "Accent button": "Accent button";
82
82
  readonly "Accent footnote": "Accent footnote";
83
+ readonly Account: "Account";
83
84
  readonly "Active tab": "Active tab";
84
85
  readonly "Add a *headline* for this post.": "Add a *headline* for this post.";
85
86
  readonly "Add a *headline* for this story.": "Add a *headline* for this story.";
@@ -93,6 +94,7 @@ export declare const WEB_BUILDER_WORDS: {
93
94
  readonly "Add city": "Add city";
94
95
  readonly "Add group": "Add group";
95
96
  readonly "Add new theme": "Add new theme";
97
+ readonly "Add office coordinates to plot the map": "Add office coordinates to plot the map";
96
98
  readonly "Add page": "Add page";
97
99
  readonly "Add slide": "Add slide";
98
100
  readonly "Add this section's copy here.": "Add this section's copy here.";
@@ -250,6 +252,7 @@ export declare const WEB_BUILDER_WORDS: {
250
252
  readonly Chart: "Chart";
251
253
  readonly "Chart style": "Chart style";
252
254
  readonly "Chat with us": "Chat with us";
255
+ readonly "Check it with Preview. Press Publish to put it live.": "Check it with Preview. Press Publish to put it live.";
253
256
  readonly "Checkout & ordering": "Checkout & ordering";
254
257
  readonly "Chip label": "Chip label";
255
258
  readonly "Choose a page": "Choose a page";
@@ -377,6 +380,7 @@ export declare const WEB_BUILDER_WORDS: {
377
380
  readonly Dots: "Dots";
378
381
  readonly Dotted: "Dotted";
379
382
  readonly Down: "Down";
383
+ readonly "Draft before restore": "Draft before restore";
380
384
  readonly "Drop in your own sanitized HTML.": "Drop in your own sanitized HTML.";
381
385
  readonly "Duplicate page": "Duplicate page";
382
386
  readonly "Duplicate section": "Duplicate section";
@@ -415,12 +419,14 @@ export declare const WEB_BUILDER_WORDS: {
415
419
  readonly Equal: "Equal";
416
420
  readonly Essay: "Essay";
417
421
  readonly Even: "Even";
422
+ readonly "Every Publish keeps a copy of the whole website: pages, menus and site styles.": "Every Publish keeps a copy of the whole website: pages, menus and site styles.";
418
423
  readonly "Every page": "Every page";
419
424
  readonly "Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.": "Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.";
420
425
  readonly "Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.": "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.";
421
426
  readonly "Everything else on this block comes from the linked post. Unlink it to edit by hand.": "Everything else on this block comes from the linked post. Unlink it to edit by hand.";
422
427
  readonly "Everything is live": "Everything is live";
423
428
  readonly Excerpt: "Excerpt";
429
+ readonly "Extra large \u2014 64px": "Extra large — 64px";
424
430
  readonly Eyebrow: "Eyebrow";
425
431
  readonly "Eyebrow style": "Eyebrow style";
426
432
  readonly Facebook: "Facebook";
@@ -507,6 +513,7 @@ export declare const WEB_BUILDER_WORDS: {
507
513
  readonly H6: "H6";
508
514
  readonly HQ: "HQ";
509
515
  readonly HTML: "HTML";
516
+ readonly "HTML tag": "HTML tag";
510
517
  readonly Hairline: "Hairline";
511
518
  readonly "Hairline borders": "Hairline borders";
512
519
  readonly "Hand-picked products in a tidy grid.": "Hand-picked products in a tidy grid.";
@@ -606,6 +613,7 @@ export declare const WEB_BUILDER_WORDS: {
606
613
  readonly Ladder: "Ladder";
607
614
  readonly Large: "Large";
608
615
  readonly "Large text only": "Large text only";
616
+ readonly "Large \u2014 56px": "Large — 56px";
609
617
  readonly "Latest Posts": "Latest Posts";
610
618
  readonly "Latest journal posts in a three-card row.": "Latest journal posts in a three-card row.";
611
619
  readonly Latitude: "Latitude";
@@ -638,8 +646,10 @@ export declare const WEB_BUILDER_WORDS: {
638
646
  readonly Links: "Links";
639
647
  readonly "Links to": "Links to";
640
648
  readonly List: "List";
649
+ readonly Live: "Live";
641
650
  readonly "Live chat": "Live chat";
642
651
  readonly "Live chat settings belong to a website.": "Live chat settings belong to a website.";
652
+ readonly "Loading versions": "Loading versions";
643
653
  readonly "Loading\u2026": "Loading…";
644
654
  readonly "Location name": "Location name";
645
655
  readonly Locations: "Locations";
@@ -671,6 +681,7 @@ export declare const WEB_BUILDER_WORDS: {
671
681
  readonly "Match / done (green)": "Match / done (green)";
672
682
  readonly Media: "Media";
673
683
  readonly Medium: "Medium";
684
+ readonly "Medium \u2014 48px": "Medium — 48px";
674
685
  readonly Menu: "Menu";
675
686
  readonly Message: "Message";
676
687
  readonly "Meta line": "Meta line";
@@ -688,11 +699,14 @@ export declare const WEB_BUILDER_WORDS: {
688
699
  readonly "Mockup position": "Mockup position";
689
700
  readonly Mono: "Mono";
690
701
  readonly "Month DD, YYYY": "Month DD, YYYY";
702
+ readonly More: "More";
691
703
  readonly Motion: "Motion";
692
704
  readonly "Multi-column container for blocks.": "Multi-column container for blocks.";
693
705
  readonly Muted: "Muted";
694
706
  readonly Name: "Name";
695
707
  readonly "Name / alt": "Name / alt";
708
+ readonly "Name this version": "Name this version";
709
+ readonly "Named versions are always kept. Leave it empty to take the name away.": "Named versions are always kept. Leave it empty to take the name away.";
696
710
  readonly Natural: "Natural";
697
711
  readonly "Navigation & wayfinding": "Navigation & wayfinding";
698
712
  readonly "Never published": "Never published";
@@ -708,6 +722,7 @@ export declare const WEB_BUILDER_WORDS: {
708
722
  readonly "No place found. Try another postcode.": "No place found. Try another postcode.";
709
723
  readonly "No section anchors yet": "No section anchors yet";
710
724
  readonly "No style": "No style";
725
+ readonly "No versions yet. Every Publish from now on keeps one.": "No versions yet. Every Publish from now on keeps one.";
711
726
  readonly "No wrap": "No wrap";
712
727
  readonly "No. 1": "No. 1";
713
728
  readonly None: "None";
@@ -715,6 +730,7 @@ export declare const WEB_BUILDER_WORDS: {
715
730
  readonly Normal: "Normal";
716
731
  readonly "Not changed": "Not changed";
717
732
  readonly "Not chosen": "Not chosen";
733
+ readonly "Not published": "Not published";
718
734
  readonly "Not saved. Reload the page.": "Not saved. Reload the page.";
719
735
  readonly "Not saved. Try again.": "Not saved. Try again.";
720
736
  readonly "Not set": "Not set";
@@ -771,6 +787,8 @@ export declare const WEB_BUILDER_WORDS: {
771
787
  readonly "Panel heading": "Panel heading";
772
788
  readonly "Panels & cards": "Panels & cards";
773
789
  readonly "Panels and cards": "Panels and cards";
790
+ readonly Paragraph: "Paragraph";
791
+ readonly "Paragraph size \u2014 13px": "Paragraph size — 13px";
774
792
  readonly "Part of {name}": "Part of {name}";
775
793
  readonly "Paste a link to each profile. A platform left empty shows nothing on the site.": "Paste a link to each profile. A platform left empty shows nothing on the site.";
776
794
  readonly "Payment Methods": "Payment Methods";
@@ -813,12 +831,15 @@ export declare const WEB_BUILDER_WORDS: {
813
831
  readonly "Product record": "Product record";
814
832
  readonly "Product record (spec tiles)": "Product record (spec tiles)";
815
833
  readonly "Product tiles": "Product tiles";
834
+ readonly "Products, prices and forms always show as they are now.": "Products, prices and forms always show as they are now.";
816
835
  readonly "Promotions & sign-ups": "Promotions & sign-ups";
817
836
  readonly Publish: "Publish";
818
837
  readonly Published: "Published";
819
838
  readonly "Pull quote": "Pull quote";
839
+ readonly "Put these drafts back": "Put these drafts back";
820
840
  readonly "Put this page on your site": "Put this page on your site";
821
841
  readonly "Put your changes on your site": "Put your changes on your site";
842
+ readonly "Put your drafts back?": "Put your drafts back?";
822
843
  readonly "Q&A": "Q&A";
823
844
  readonly Question: "Question";
824
845
  readonly Questions: "Questions";
@@ -843,6 +864,12 @@ export declare const WEB_BUILDER_WORDS: {
843
864
  readonly "Reset color": "Reset color";
844
865
  readonly "Reset {name} to the preset": "Reset {name} to the preset";
845
866
  readonly Rest: "Rest";
867
+ readonly Restore: "Restore";
868
+ readonly "Restore as draft": "Restore as draft";
869
+ readonly "Restore one page only": "Restore one page only";
870
+ readonly "Restore version {n}?": "Restore version {n}?";
871
+ readonly "Restore whole website": "Restore whole website";
872
+ readonly "Restore {page} from version {n}?": "Restore {page} from version {n}?";
846
873
  readonly "Result / order rows": "Result / order rows";
847
874
  readonly "Review Form": "Review Form";
848
875
  readonly Reviews: "Reviews";
@@ -860,6 +887,7 @@ export declare const WEB_BUILDER_WORDS: {
860
887
  readonly "Rounds the picture. Left alone it stays square.": "Rounds the picture. Left alone it stays square.";
861
888
  readonly "Rounds the picture. The card's own corner is in Site styles.": "Rounds the picture. The card's own corner is in Site styles.";
862
889
  readonly Sans: "Sans";
890
+ readonly Save: "Save";
863
891
  readonly "Save as Template": "Save as Template";
864
892
  readonly "Save this website as a platform template": "Save this website as a platform template";
865
893
  readonly "Save your page changes first": "Save your page changes first";
@@ -942,6 +970,7 @@ export declare const WEB_BUILDER_WORDS: {
942
970
  readonly "Slide picker placement": "Slide picker placement";
943
971
  readonly "Slide picker shape": "Slide picker shape";
944
972
  readonly Small: "Small";
973
+ readonly "Small \u2014 40px": "Small — 40px";
945
974
  readonly "Social Logos": "Social Logos";
946
975
  readonly "Social link settings belong to a website.": "Social link settings belong to a website.";
947
976
  readonly "Social links": "Social links";
@@ -1053,17 +1082,25 @@ export declare const WEB_BUILDER_WORDS: {
1053
1082
  readonly "The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.": "The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.";
1054
1083
  readonly "The header cannot take another one of these": "The header cannot take another one of these";
1055
1084
  readonly "The header holds at most 3 sections": "The header holds at most 3 sections";
1085
+ readonly "The name was not saved. Try again.": "The name was not saved. Try again.";
1086
+ readonly "The newest 30 are kept. Named versions are always kept.": "The newest 30 are kept. Named versions are always kept.";
1087
+ readonly "The preview did not open. Try again.": "The preview did not open. Try again.";
1056
1088
  readonly "The room left at the left and right edge of every page.": "The room left at the left and right edge of every page.";
1057
1089
  readonly "The section is full width, so this card follows Site styles \u25B8 Basics \u25B8 Corners.": "The section is full width, so this card follows Site styles ▸ Basics ▸ Corners.";
1058
1090
  readonly "The section it belonged to has been changed or removed.": "The section it belonged to has been changed or removed.";
1091
+ readonly "The version was not restored. Nothing changed. Try again.": "The version was not restored. Nothing changed. Try again.";
1092
+ readonly "The whole website goes back to version {n} as a draft.": "The whole website goes back to version {n} as a draft.";
1093
+ readonly "The whole website goes back to version {n} as a draft: {what}.": "The whole website goes back to version {n} as a draft: {what}.";
1059
1094
  readonly "The width of every section's background, until the section sets its own.": "The width of every section's background, until the section sets its own.";
1060
1095
  readonly "The width of every section's content, until the section sets its own.": "The width of every section's content, until the section sets its own.";
1061
1096
  readonly "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.": "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.";
1062
1097
  readonly Theme: "Theme";
1098
+ readonly "Theme Switch": "Theme Switch";
1063
1099
  readonly "Theme {n}": "Theme {n}";
1064
1100
  readonly "Theme {n} background": "Theme {n} background";
1065
1101
  readonly "Theme {n} main color": "Theme {n} main color";
1066
1102
  readonly "Theme {n} text color": "Theme {n} text color";
1103
+ readonly "They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.": "They are saved in Version history as “Draft before restore”, so you can get them back.";
1067
1104
  readonly Thickness: "Thickness";
1068
1105
  readonly "Third item": "Third item";
1069
1106
  readonly "This cannot be undone.": "This cannot be undone.";
@@ -1090,6 +1127,7 @@ export declare const WEB_BUILDER_WORDS: {
1090
1127
  readonly "Tint color": "Tint color";
1091
1128
  readonly "Tint opacity": "Tint opacity";
1092
1129
  readonly Title: "Title";
1130
+ readonly "Today, {time}": "Today, {time}";
1093
1131
  readonly Tone: "Tone";
1094
1132
  readonly Top: "Top";
1095
1133
  readonly "Top and bottom": "Top and bottom";
@@ -1106,6 +1144,7 @@ export declare const WEB_BUILDER_WORDS: {
1106
1144
  readonly "Trailing note": "Trailing note";
1107
1145
  readonly "Triangle \u25BC": "Triangle ▼";
1108
1146
  readonly "Trusted by *teams worldwide*": "Trusted by *teams worldwide*";
1147
+ readonly "Try again": "Try again";
1109
1148
  readonly "Two across": "Two across";
1110
1149
  readonly "Two image galleries with tabs and filters.": "Two image galleries with tabs and filters.";
1111
1150
  readonly "Two tall": "Two tall";
@@ -1119,6 +1158,7 @@ export declare const WEB_BUILDER_WORDS: {
1119
1158
  readonly "URL pill": "URL pill";
1120
1159
  readonly "URL: /{slug}": "URL: /{slug}";
1121
1160
  readonly Undo: "Undo";
1161
+ readonly "Undo did not work. Nothing changed. Try again.": "Undo did not work. Nothing changed. Try again.";
1122
1162
  readonly Ungrouped: "Ungrouped";
1123
1163
  readonly Unit: "Unit";
1124
1164
  readonly "Unit labels": "Unit labels";
@@ -1134,6 +1174,11 @@ export declare const WEB_BUILDER_WORDS: {
1134
1174
  readonly "Use {colour}": "Use {colour}";
1135
1175
  readonly Value: "Value";
1136
1176
  readonly "Value suffix": "Value suffix";
1177
+ readonly "Version history": "Version history";
1178
+ readonly "Version history did not load.": "Version history did not load.";
1179
+ readonly "Version {n}": "Version {n}";
1180
+ readonly "Version {n} is now your draft": "Version {n} is now your draft";
1181
+ readonly Versions: "Versions";
1137
1182
  readonly "Vertical breathing room between sections.": "Vertical breathing room between sections.";
1138
1183
  readonly Video: "Video";
1139
1184
  readonly "Video file": "Video file";
@@ -1165,13 +1210,18 @@ export declare const WEB_BUILDER_WORDS: {
1165
1210
  readonly "YouTube link": "YouTube link";
1166
1211
  readonly "Your *first* section.": "Your *first* section.";
1167
1212
  readonly "Your *second* section.": "Your *second* section.";
1213
+ readonly "Your drafts from before the restore are back": "Your drafts from before the restore are back";
1214
+ readonly "Your drafts go back to how they were before the restore.": "Your drafts go back to how they were before the restore.";
1168
1215
  readonly "Your fifth question goes here?": "Your fifth question goes here?";
1169
1216
  readonly "Your first question goes here?": "Your first question goes here?";
1170
1217
  readonly "Your fourth question goes here?": "Your fourth question goes here?";
1218
+ readonly "Your last changes did not save, so nothing was restored. Try again.": "Your last changes did not save, so nothing was restored. Try again.";
1219
+ readonly "Your live website does not change until you press Publish.": "Your live website does not change until you press Publish.";
1171
1220
  readonly "Your locations as a city gallery plus address and map cards.": "Your locations as a city gallery plus address and map cards.";
1172
1221
  readonly "Your review": "Your review";
1173
1222
  readonly "Your second question goes here?": "Your second question goes here?";
1174
1223
  readonly "Your third question goes here?": "Your third question goes here?";
1224
+ readonly "Your unpublished changes are kept": "Your unpublished changes are kept";
1175
1225
  readonly Zigzag: "Zigzag";
1176
1226
  readonly accent: "accent";
1177
1227
  readonly "all theme colors": "all theme colors";
@@ -1205,6 +1255,7 @@ export declare const WEB_BUILDER_WORDS: {
1205
1255
  readonly "the theme's image stage": "the theme's image stage";
1206
1256
  readonly "the theme's section background": "the theme's section background";
1207
1257
  readonly "this container's own spacing": "this container's own spacing";
1258
+ readonly "{day}, {time}": "{day}, {time}";
1208
1259
  readonly "{grade} on the button": "{grade} on the button";
1209
1260
  readonly "{label} hex code": "{label} hex code";
1210
1261
  readonly "{label} {n}": "{label} {n}";
@@ -1215,9 +1266,17 @@ export declare const WEB_BUILDER_WORDS: {
1215
1266
  readonly "{name} is editing the header and footer. Nothing you change in them here is saved.": "{name} is editing the header and footer. Nothing you change in them here is saved.";
1216
1267
  readonly "{name} is on this section": "{name} is on this section";
1217
1268
  readonly "{name} \u2014 renamed in the Console: {place}.": "{name} — renamed in the Console: {place}.";
1269
+ readonly "{n} change": "{n} change";
1270
+ readonly "{n} changes": "{n} changes";
1218
1271
  readonly "{n} cities": "{n} cities";
1219
1272
  readonly "{n} city": "{n} city";
1220
1273
  readonly "{n} of {total} layouts": "{n} of {total} layouts";
1274
+ readonly "{n} page": "{n} page";
1275
+ readonly "{n} pages": "{n} pages";
1276
+ readonly "{n} picture in this version was deleted from the media library. It stays empty.": "{n} picture in this version was deleted from the media library. It stays empty.";
1277
+ readonly "{n} pictures in this version were deleted from the media library. They stay empty.": "{n} pictures in this version were deleted from the media library. They stay empty.";
1278
+ readonly "{page} from version {n} is now your draft": "{page} from version {n} is now your draft";
1279
+ readonly "{page} goes back to version {n} as a draft. Nothing else on your website changes.": "{page} goes back to version {n} as a draft. Nothing else on your website changes.";
1221
1280
  readonly "{value} from {from}": "{value} from {from}";
1222
1281
  readonly "{value} on desktop": "{value} on desktop";
1223
1282
  readonly "{what} settings belong to a website.": "{what} settings belong to a website.";