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