@blokkli/editor 1.0.4 → 1.1.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.
Files changed (78) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +345 -16
  3. package/dist/runtime/adapter/drupal/graphql/base.graphql +2 -1
  4. package/dist/runtime/adapter/drupal/graphqlMiddleware.js +4 -1
  5. package/dist/runtime/adapter/index.d.ts +12 -1
  6. package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +41 -39
  7. package/dist/runtime/blokkliPlugins/Sidebar/index.vue +10 -16
  8. package/dist/runtime/blokkliPlugins/ViewOption/index.vue +2 -0
  9. package/dist/runtime/components/BlokkliField.vue +75 -17
  10. package/dist/runtime/components/BlokkliItem.vue +34 -6
  11. package/dist/runtime/components/BlokkliProvider.vue +18 -1
  12. package/dist/runtime/components/Edit/BlockProxy/index.vue +102 -0
  13. package/dist/runtime/components/Edit/DragInteractions/index.vue +49 -25
  14. package/dist/runtime/components/Edit/DraggableList.vue +140 -30
  15. package/dist/runtime/components/Edit/EditProvider.vue +4 -0
  16. package/dist/runtime/components/Edit/Features/AddList/index.vue +3 -0
  17. package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue +111 -0
  18. package/dist/runtime/components/Edit/Features/Artboard/Scrollbar/index.vue +47 -0
  19. package/dist/runtime/components/Edit/Features/Artboard/index.vue +301 -9
  20. package/dist/runtime/components/Edit/Features/BlockAddList/index.vue +29 -4
  21. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +3 -4
  22. package/dist/runtime/components/Edit/Features/Debug/Rects/index.vue +27 -0
  23. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +24 -3
  24. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +56 -24
  25. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +184 -29
  26. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/vertex.glsl +36 -16
  27. package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +4 -0
  28. package/dist/runtime/components/Edit/Features/Duplicate/index.vue +1 -13
  29. package/dist/runtime/components/Edit/Features/EditableMask/index.vue +2 -2
  30. package/dist/runtime/components/Edit/Features/History/index.vue +1 -1
  31. package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +2 -2
  32. package/dist/runtime/components/Edit/Features/Options/Form/Checkboxes/index.vue +28 -25
  33. package/dist/runtime/components/Edit/Features/Options/Form/Color/index.vue +1 -1
  34. package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +67 -39
  35. package/dist/runtime/components/Edit/Features/Options/Form/Number/index.vue +6 -2
  36. package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +1 -1
  37. package/dist/runtime/components/Edit/Features/Options/Form/Range/index.vue +2 -2
  38. package/dist/runtime/components/Edit/Features/Options/Form/Text/index.vue +2 -1
  39. package/dist/runtime/components/Edit/Features/Options/Form/index.vue +83 -33
  40. package/dist/runtime/components/Edit/Features/ProxyView/index.vue +38 -0
  41. package/dist/runtime/components/Edit/Features/Publish/index.vue +53 -6
  42. package/dist/runtime/components/Edit/Features/Search/Overlay/index.vue +3 -13
  43. package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +1 -1
  44. package/dist/runtime/components/Edit/Features/Settings/Dialog/index.vue +2 -0
  45. package/dist/runtime/components/Edit/Features/Structure/List/Field/index.vue +3 -3
  46. package/dist/runtime/components/Edit/Features/Structure/index.vue +3 -3
  47. package/dist/runtime/components/Edit/ScrollBoundary/index.vue +24 -0
  48. package/dist/runtime/components/Edit/index.d.ts +2 -1
  49. package/dist/runtime/components/Edit/index.js +3 -1
  50. package/dist/runtime/composables/defineBlokkli.js +10 -5
  51. package/dist/runtime/constants/index.d.ts +1 -1
  52. package/dist/runtime/constants/index.js +6 -1
  53. package/dist/runtime/css/output.css +1 -1
  54. package/dist/runtime/helpers/animationProvider.js +10 -4
  55. package/dist/runtime/helpers/domProvider.d.ts +12 -4
  56. package/dist/runtime/helpers/domProvider.js +70 -26
  57. package/dist/runtime/helpers/featuresProvider.d.ts +1 -1
  58. package/dist/runtime/helpers/runtimeHelpers/index.d.ts +6 -0
  59. package/dist/runtime/helpers/runtimeHelpers/index.js +25 -0
  60. package/dist/runtime/helpers/selectionProvider.d.ts +2 -1
  61. package/dist/runtime/helpers/selectionProvider.js +7 -8
  62. package/dist/runtime/helpers/symbols.d.ts +7 -0
  63. package/dist/runtime/helpers/symbols.js +7 -0
  64. package/dist/runtime/helpers/typesProvider.d.ts +1 -1
  65. package/dist/runtime/helpers/uiProvider.d.ts +1 -0
  66. package/dist/runtime/helpers/uiProvider.js +16 -3
  67. package/dist/runtime/helpers/webgl/index.d.ts +6 -1
  68. package/dist/runtime/helpers/webgl/index.js +38 -5
  69. package/dist/runtime/icons/eye.svg +1 -0
  70. package/dist/runtime/types/generatedModuleTypes.d.ts +12 -4
  71. package/dist/runtime/types/index.d.ts +30 -1
  72. package/package.json +7 -5
  73. package/dist/runtime/components/Edit/Features/Artboard/Manager/Artboard.d.ts +0 -204
  74. package/dist/runtime/components/Edit/Features/Artboard/Manager/Artboard.js +0 -748
  75. package/dist/runtime/components/Edit/Features/Artboard/Manager/Scrollbar/index.vue +0 -176
  76. package/dist/runtime/components/Edit/Features/Artboard/Manager/index.vue +0 -317
  77. package/dist/runtime/helpers/Artboard/index.d.ts +0 -16
  78. package/dist/runtime/helpers/Artboard/index.js +0 -20
package/dist/module.mjs CHANGED
@@ -5,17 +5,22 @@ import { defu, createDefu } from 'defu';
5
5
  import { createUnplugin } from 'unplugin';
6
6
  import MagicString from 'magic-string';
7
7
  import { walk } from 'estree-walker-ts';
8
+ import { BK_VISIBLE_LANGUAGES, BK_HIDDEN_GLOBALLY } from '../dist/runtime/helpers/symbols.js';
8
9
 
9
- const version = "1.0.4";
10
+ const version = "1.1.1";
10
11
 
11
12
  function sortObjectKeys(obj) {
12
- const sortedKeys = Object.keys(obj).sort();
13
- const sortedObj = {};
14
- sortedKeys.forEach((key) => {
15
- const value = obj[key];
16
- sortedObj[key] = typeof value === "object" && value !== null ? sortObjectKeys(value) : value;
17
- });
18
- return sortedObj;
13
+ if (Array.isArray(obj)) {
14
+ return obj.map(sortObjectKeys);
15
+ } else if (obj && typeof obj === "object") {
16
+ const sortedObj = {};
17
+ const keys = Object.keys(obj).sort();
18
+ for (const key of keys) {
19
+ sortedObj[key] = sortObjectKeys(obj[key]);
20
+ }
21
+ return sortedObj;
22
+ }
23
+ return obj;
19
24
  }
20
25
 
21
26
  function falsy(value) {
@@ -141,6 +146,15 @@ class BlockExtractor {
141
146
  } catch {
142
147
  }
143
148
  }
149
+ async getProxyComponent(componentPath) {
150
+ const folder = path.dirname(componentPath);
151
+ const proxyComponentPath = path.join(folder, "/proxy.vue");
152
+ try {
153
+ await fs.promises.access(proxyComponentPath, fs.constants.F_OK);
154
+ return proxyComponentPath;
155
+ } catch {
156
+ }
157
+ }
144
158
  /**
145
159
  * Read the file and extract the blokkli component definitions.
146
160
  *
@@ -163,6 +177,7 @@ class BlockExtractor {
163
177
  }
164
178
  if ("bundle" in extracted.definition) {
165
179
  const icon = await this.getIcon(filePath2);
180
+ const proxyComponentPath = await this.getProxyComponent(filePath2);
166
181
  if (this.definitions[filePath2] && this.definitions[filePath2]?.source === extracted.source) {
167
182
  return false;
168
183
  }
@@ -172,6 +187,7 @@ class BlockExtractor {
172
187
  filePath: filePath2,
173
188
  definition: extracted.definition,
174
189
  icon,
190
+ proxyComponentPath,
175
191
  chunkName: extracted.definition.chunkName || "global",
176
192
  componentName: "BlokkliComponent_" + extracted.definition.bundle + "_" + componentFileName,
177
193
  source: extracted.source,
@@ -261,15 +277,32 @@ class BlockExtractor {
261
277
  }
262
278
  return acc;
263
279
  }, {});
280
+ const proxyComponents = Object.values(this.definitions).reduce((acc, v) => {
281
+ if (v?.proxyComponentPath) {
282
+ acc[v.definition.bundle] = v.proxyComponentPath;
283
+ }
284
+ return acc;
285
+ }, {});
286
+ const proxyImports = Object.entries(proxyComponents).map(([bundle, proxyComponentPath]) => {
287
+ return `import proxyComponent_${bundle} from '${proxyComponentPath}'`;
288
+ }).join("\n");
289
+ const proxyMaps = Object.keys(proxyComponents).map((bundle) => {
290
+ return `'${bundle}': proxyComponent_${bundle}`;
291
+ }).join(", \n");
264
292
  const allFragmentNames = Object.values(this.fragmentDefinitions).filter(falsy).map((v) => `'${v.definition.name}'`).join(" | ");
265
293
  return `import type { GlobalOptionsKey, ValidFieldListTypes, BlockBundleWithNested } from './generated-types'
266
294
  import type { BlockDefinitionInput, BlockDefinitionOptionsInput, FragmentDefinitionInput } from '#blokkli/types'
267
295
  export const globalOptions = ${JSON.stringify(globalOptions, null, 2)} as const
296
+ ${proxyImports}
268
297
 
269
298
  type DefinitionItem = BlockDefinitionInput<BlockDefinitionOptionsInput, GlobalOptionsKey[]>
270
299
 
271
300
  ${definitionDeclarations.join("\n")}
272
301
 
302
+ const PROXY_COMPONENTS: Record<string, any> = {
303
+ ${proxyMaps}
304
+ }
305
+
273
306
  export const icons: Record<string, string> = ${JSON.stringify(icons)}
274
307
 
275
308
  export const definitionsMap: Record<string, DefinitionItem> = {
@@ -303,6 +336,10 @@ export function getDefinition(bundle: string, fieldListType: ValidFieldListTypes
303
336
  return definitionsMap[bundle]
304
337
  }
305
338
 
339
+ export function getBlokkliItemProxyComponent(bundle: string): any {
340
+ return PROXY_COMPONENTS[bundle]
341
+ }
342
+
306
343
  /**
307
344
  * Get the definition of the default block component.
308
345
  */
@@ -330,6 +367,13 @@ export const getFragmentDefinition = (name: string): FragmentDefinitionInput<Rec
330
367
  const sorted = sortObjectKeys(schema);
331
368
  return JSON.stringify(sorted, null, 2);
332
369
  }
370
+ getBundlesWithGlobalOptions(key) {
371
+ return Object.values(this.definitions).map((definition2) => {
372
+ if (definition2?.definition.globalOptions?.includes(key)) {
373
+ return definition2.definition.bundle;
374
+ }
375
+ }).filter(falsy);
376
+ }
333
377
  /**
334
378
  * Generate the default global options values template.
335
379
  */
@@ -353,6 +397,9 @@ type GlobalOptionsDefaults = {
353
397
  default: any
354
398
  }
355
399
 
400
+ export const bundlesWithVisibleLanguage: string[] = ${JSON.stringify(this.getBundlesWithGlobalOptions(BK_VISIBLE_LANGUAGES))}
401
+ export const bundlesWithHiddenGlobally: string[] = ${JSON.stringify(this.getBundlesWithGlobalOptions(BK_HIDDEN_GLOBALLY))}
402
+
356
403
  export const globalOptionsDefaults: Record<string, GlobalOptionsDefaults> = ${JSON.stringify(
357
404
  defaults,
358
405
  null,
@@ -697,7 +744,23 @@ const all$2 = {
697
744
  };
698
745
  const artboard$2 = {
699
746
  source: "Artboard",
700
- translation: "Zeichenfläche"
747
+ translation: "Vorschau"
748
+ };
749
+ const artboardOverviewHide$2 = {
750
+ source: "Hide overview",
751
+ translation: "Übersicht verstecken"
752
+ };
753
+ const artboardOverviewShow$2 = {
754
+ source: "Show overview",
755
+ translation: "Übersicht anzeigen"
756
+ };
757
+ const artboardOverviewToggle$2 = {
758
+ source: "Toggle overview",
759
+ translation: "Übersicht umschalten"
760
+ };
761
+ const artboardOverviewTourText$2 = {
762
+ source: "Displays a top level overview of your content.",
763
+ translation: "Zeigt eine schematische Übersicht aller Inhalte an."
701
764
  };
702
765
  const artboardResetZoom$2 = {
703
766
  source: "Reset zoom",
@@ -775,6 +838,14 @@ const blockAddListTourTitle$2 = {
775
838
  source: "Favorite blocks",
776
839
  translation: "Favoriten-Blöcke"
777
840
  };
841
+ const blockOption_bkHiddenGlobally_label$2 = {
842
+ source: "Hide globally",
843
+ translation: "Global verstecken"
844
+ };
845
+ const blockOption_bkVisibleLanguages_label$2 = {
846
+ source: "Visible languages",
847
+ translation: "Sichtbare Sprachen"
848
+ };
778
849
  const cancel$2 = {
779
850
  source: "Cancel",
780
851
  translation: "Abbrechen"
@@ -947,13 +1018,17 @@ const featureHelpTitle$2 = {
947
1018
  source: "Help",
948
1019
  translation: "Hilfe"
949
1020
  };
1021
+ const feature_artboard_setting_momentum_label$2 = {
1022
+ source: "Use smooth scrolling",
1023
+ translation: "Sanftes Scrollen verwenden"
1024
+ };
950
1025
  const feature_artboard_setting_persist_label$2 = {
951
1026
  source: "Persist position and zoom",
952
1027
  translation: "Position und Zoom speichern"
953
1028
  };
954
1029
  const feature_artboard_setting_scrollSpeed_label$2 = {
955
1030
  source: "Artboard scroll speed",
956
- translation: "Scrollgeschwindigkeit der Zeichenfläche"
1031
+ translation: "Scrollgeschwindigkeit der Vorschau"
957
1032
  };
958
1033
  const feature_clipboard_setting_openSidebarOnPaste_label$2 = {
959
1034
  source: "Open sidebar when pasting from clipboard",
@@ -963,6 +1038,10 @@ const feature_history_setting_useMouseButtons_label$2 = {
963
1038
  source: "Use mouse buttons for undo/redo",
964
1039
  translation: "Maustasten für Rückgängig/Wiederherstellen verwenden"
965
1040
  };
1041
+ const feature_publish_setting_closeAfterPublish_label$2 = {
1042
+ source: "Close editor after publishing",
1043
+ translation: "Nach «Veröffentlichen» den Editor schliessen"
1044
+ };
966
1045
  const feature_settings_setting_lowPerformanceMode_label$2 = {
967
1046
  source: "Enable low performance mode",
968
1047
  translation: "Modus für niedrige Leistung aktivieren"
@@ -1235,6 +1314,10 @@ const multipleItemsLabel$2 = {
1235
1314
  source: "Items",
1236
1315
  translation: "Elemente"
1237
1316
  };
1317
+ const optionBkVisibleLanguagesAll$2 = {
1318
+ source: "All languages",
1319
+ translation: "Alle Sprachen"
1320
+ };
1238
1321
  const ownershipError$2 = {
1239
1322
  source: "Error in assigning",
1240
1323
  translation: "Fehler beim Zuweisen"
@@ -1291,9 +1374,37 @@ const previewWithSmartphoneTourText$2 = {
1291
1374
  source: "Shows a QR code to quickly open a preview of the changes with your smartphone.",
1292
1375
  translation: "Zeigt einen QR-Code an, um eine Vorschau der Änderungen mit Ihrem Smartphone zu öffnen."
1293
1376
  };
1377
+ const proxyViewHide$2 = {
1378
+ source: "Show content preview",
1379
+ translation: "Inhaltsvorschau anzeigen"
1380
+ };
1381
+ const proxyViewShow$2 = {
1382
+ source: "Show structure view",
1383
+ translation: "Strukturierte Vorschau anzeigen"
1384
+ };
1385
+ const proxyViewToggle$2 = {
1386
+ source: "Toggle structure view",
1387
+ translation: "Vorschau wechseln"
1388
+ };
1389
+ const proxyViewTourText$2 = {
1390
+ source: "Displays the content blocks as a structured view.",
1391
+ translation: "Stellt die Inhaltsblöcke in strukturierter Form dar."
1392
+ };
1393
+ const publishAndCloseLabel$2 = {
1394
+ source: "Publish & Close",
1395
+ translation: "Veröffentlichen & Schliessen"
1396
+ };
1397
+ const publishAndCloseLabelUnpublished$2 = {
1398
+ source: "Save & Close",
1399
+ translation: "Speichern & Schliessen"
1400
+ };
1294
1401
  const publishDescription$2 = {
1295
- source: "Make all changes public",
1296
- translation: "Alle Änderungen öffentlich machen"
1402
+ source: "Publish all changes.",
1403
+ translation: "Alle Änderungen veröffentlichen"
1404
+ };
1405
+ const publishDescriptionUnpublished$2 = {
1406
+ source: "Save all changes while keeping page unpublished",
1407
+ translation: "Alle Änderungen speichern ohne die Seite zu publizieren"
1297
1408
  };
1298
1409
  const publishError$2 = {
1299
1410
  source: "Changes could not be published.",
@@ -1303,6 +1414,10 @@ const publishLabel$2 = {
1303
1414
  source: "Publish",
1304
1415
  translation: "Veröffentlichen"
1305
1416
  };
1417
+ const publishLabelUnpublished$2 = {
1418
+ source: "Save",
1419
+ translation: "Speichern"
1420
+ };
1306
1421
  const publishSuccess$2 = {
1307
1422
  source: "Changes published successfully.",
1308
1423
  translation: "Änderungen erfolgreich publiziert."
@@ -1337,7 +1452,7 @@ const revertError$2 = {
1337
1452
  };
1338
1453
  const revertMenuDescription$2 = {
1339
1454
  source: "Restore currently published state",
1340
- translation: "Aktuell veröffentlichter Zustand Wiederherstellen"
1455
+ translation: "Aktuell veröffentlichten Zustand wiederherstellen"
1341
1456
  };
1342
1457
  const revertMenuTitle$2 = {
1343
1458
  source: "Discard...",
@@ -1379,6 +1494,10 @@ const settingsAppearance$2 = {
1379
1494
  source: "Appearance",
1380
1495
  translation: "Darstellung"
1381
1496
  };
1497
+ const settingsArtboard$2 = {
1498
+ source: "Artboard",
1499
+ translation: "Vorschau"
1500
+ };
1382
1501
  const settingsBehaviour$2 = {
1383
1502
  source: "Behaviour",
1384
1503
  translation: "Verhalten"
@@ -1544,6 +1663,10 @@ const de = {
1544
1663
  addListTourText: addListTourText$2,
1545
1664
  all: all$2,
1546
1665
  artboard: artboard$2,
1666
+ artboardOverviewHide: artboardOverviewHide$2,
1667
+ artboardOverviewShow: artboardOverviewShow$2,
1668
+ artboardOverviewToggle: artboardOverviewToggle$2,
1669
+ artboardOverviewTourText: artboardOverviewTourText$2,
1547
1670
  artboardResetZoom: artboardResetZoom$2,
1548
1671
  artboardScaleToFit: artboardScaleToFit$2,
1549
1672
  artboardScrollDown: artboardScrollDown$2,
@@ -1563,6 +1686,8 @@ const de = {
1563
1686
  assistantPromptPlaceholder: assistantPromptPlaceholder$2,
1564
1687
  blockAddListTourText: blockAddListTourText$2,
1565
1688
  blockAddListTourTitle: blockAddListTourTitle$2,
1689
+ blockOption_bkHiddenGlobally_label: blockOption_bkHiddenGlobally_label$2,
1690
+ blockOption_bkVisibleLanguages_label: blockOption_bkVisibleLanguages_label$2,
1566
1691
  cancel: cancel$2,
1567
1692
  clipboard: clipboard$2,
1568
1693
  clipboardCopyShortcutHelp: clipboardCopyShortcutHelp$2,
@@ -1646,6 +1771,7 @@ const de = {
1646
1771
  source: "Vertical",
1647
1772
  translation: "Vertikal"
1648
1773
  },
1774
+ feature_artboard_setting_momentum_label: feature_artboard_setting_momentum_label$2,
1649
1775
  feature_artboard_setting_persist_label: feature_artboard_setting_persist_label$2,
1650
1776
  feature_artboard_setting_scrollSpeed_label: feature_artboard_setting_scrollSpeed_label$2,
1651
1777
  "feature_block-add-list_setting_hideDisabledBlocks_label": {
@@ -1658,6 +1784,7 @@ const de = {
1658
1784
  source: "Show import dialog at start when page is empty",
1659
1785
  translation: "Importdialog beim Start anzeigen, wenn die Seite leer ist"
1660
1786
  },
1787
+ feature_publish_setting_closeAfterPublish_label: feature_publish_setting_closeAfterPublish_label$2,
1661
1788
  feature_settings_setting_lowPerformanceMode_label: feature_settings_setting_lowPerformanceMode_label$2,
1662
1789
  feature_settings_setting_resetAllSettings_label: feature_settings_setting_resetAllSettings_label$2,
1663
1790
  feature_settings_setting_useAnimations_label: feature_settings_setting_useAnimations_label$2,
@@ -1726,6 +1853,7 @@ const de = {
1726
1853
  mediaLibraryReplaceMedia: mediaLibraryReplaceMedia$2,
1727
1854
  mediaLibraryTourText: mediaLibraryTourText$2,
1728
1855
  multipleItemsLabel: multipleItemsLabel$2,
1856
+ optionBkVisibleLanguagesAll: optionBkVisibleLanguagesAll$2,
1729
1857
  "optionsCommand.selectCheckboxValue": {
1730
1858
  source: "Select \"@value\" in \"@option\"",
1731
1859
  translation: "«@value» in «@option» auswählen"
@@ -1752,9 +1880,17 @@ const de = {
1752
1880
  previewQrCodeText: previewQrCodeText$2,
1753
1881
  previewWithSmartphone: previewWithSmartphone$2,
1754
1882
  previewWithSmartphoneTourText: previewWithSmartphoneTourText$2,
1883
+ proxyViewHide: proxyViewHide$2,
1884
+ proxyViewShow: proxyViewShow$2,
1885
+ proxyViewToggle: proxyViewToggle$2,
1886
+ proxyViewTourText: proxyViewTourText$2,
1887
+ publishAndCloseLabel: publishAndCloseLabel$2,
1888
+ publishAndCloseLabelUnpublished: publishAndCloseLabelUnpublished$2,
1755
1889
  publishDescription: publishDescription$2,
1890
+ publishDescriptionUnpublished: publishDescriptionUnpublished$2,
1756
1891
  publishError: publishError$2,
1757
1892
  publishLabel: publishLabel$2,
1893
+ publishLabelUnpublished: publishLabelUnpublished$2,
1758
1894
  publishSuccess: publishSuccess$2,
1759
1895
  responsivePreviewCustomViewport: responsivePreviewCustomViewport$2,
1760
1896
  responsivePreviewTitle: responsivePreviewTitle$2,
@@ -1774,6 +1910,7 @@ const de = {
1774
1910
  searchTourText: searchTourText$2,
1775
1911
  settingsAdvanced: settingsAdvanced$2,
1776
1912
  settingsAppearance: settingsAppearance$2,
1913
+ settingsArtboard: settingsArtboard$2,
1777
1914
  settingsBehaviour: settingsBehaviour$2,
1778
1915
  settingsDialogTitle: settingsDialogTitle$2,
1779
1916
  settingsMenuDescription: settingsMenuDescription$2,
@@ -1852,6 +1989,22 @@ const artboard$1 = {
1852
1989
  source: "Artboard",
1853
1990
  translation: ""
1854
1991
  };
1992
+ const artboardOverviewHide$1 = {
1993
+ source: "Hide overview",
1994
+ translation: ""
1995
+ };
1996
+ const artboardOverviewShow$1 = {
1997
+ source: "Show overview",
1998
+ translation: ""
1999
+ };
2000
+ const artboardOverviewToggle$1 = {
2001
+ source: "Toggle overview",
2002
+ translation: ""
2003
+ };
2004
+ const artboardOverviewTourText$1 = {
2005
+ source: "Displays a top level overview of your content.",
2006
+ translation: ""
2007
+ };
1855
2008
  const artboardResetZoom$1 = {
1856
2009
  source: "Reset zoom",
1857
2010
  translation: ""
@@ -1928,6 +2081,14 @@ const blockAddListTourTitle$1 = {
1928
2081
  source: "Favorite blocks",
1929
2082
  translation: ""
1930
2083
  };
2084
+ const blockOption_bkHiddenGlobally_label$1 = {
2085
+ source: "Hide globally",
2086
+ translation: ""
2087
+ };
2088
+ const blockOption_bkVisibleLanguages_label$1 = {
2089
+ source: "Visible languages",
2090
+ translation: ""
2091
+ };
1931
2092
  const cancel$1 = {
1932
2093
  source: "Cancel",
1933
2094
  translation: "Annuler"
@@ -2100,6 +2261,10 @@ const featureHelpTitle$1 = {
2100
2261
  source: "Help",
2101
2262
  translation: ""
2102
2263
  };
2264
+ const feature_artboard_setting_momentum_label$1 = {
2265
+ source: "Use smooth scrolling",
2266
+ translation: ""
2267
+ };
2103
2268
  const feature_artboard_setting_persist_label$1 = {
2104
2269
  source: "Persist position and zoom",
2105
2270
  translation: ""
@@ -2116,6 +2281,10 @@ const feature_history_setting_useMouseButtons_label$1 = {
2116
2281
  source: "Use mouse buttons for undo/redo",
2117
2282
  translation: ""
2118
2283
  };
2284
+ const feature_publish_setting_closeAfterPublish_label$1 = {
2285
+ source: "Close editor after publishing",
2286
+ translation: ""
2287
+ };
2119
2288
  const feature_settings_setting_lowPerformanceMode_label$1 = {
2120
2289
  source: "Enable low performance mode",
2121
2290
  translation: ""
@@ -2388,6 +2557,10 @@ const multipleItemsLabel$1 = {
2388
2557
  source: "Items",
2389
2558
  translation: "Éléments"
2390
2559
  };
2560
+ const optionBkVisibleLanguagesAll$1 = {
2561
+ source: "All languages",
2562
+ translation: ""
2563
+ };
2391
2564
  const ownershipError$1 = {
2392
2565
  source: "Error in assigning",
2393
2566
  translation: "Erreur lors de l’attribution"
@@ -2444,10 +2617,38 @@ const previewWithSmartphoneTourText$1 = {
2444
2617
  source: "Shows a QR code to quickly open a preview of the changes with your smartphone.",
2445
2618
  translation: ""
2446
2619
  };
2620
+ const proxyViewHide$1 = {
2621
+ source: "Show content preview",
2622
+ translation: ""
2623
+ };
2624
+ const proxyViewShow$1 = {
2625
+ source: "Show structure view",
2626
+ translation: ""
2627
+ };
2628
+ const proxyViewToggle$1 = {
2629
+ source: "Toggle structure view",
2630
+ translation: ""
2631
+ };
2632
+ const proxyViewTourText$1 = {
2633
+ source: "Displays the content blocks as a structured view.",
2634
+ translation: ""
2635
+ };
2636
+ const publishAndCloseLabel$1 = {
2637
+ source: "Publish & Close",
2638
+ translation: ""
2639
+ };
2640
+ const publishAndCloseLabelUnpublished$1 = {
2641
+ source: "Save & Close",
2642
+ translation: ""
2643
+ };
2447
2644
  const publishDescription$1 = {
2448
- source: "Make all changes public",
2645
+ source: "Publish all changes.",
2449
2646
  translation: "Rendre toutes les modifications publiques"
2450
2647
  };
2648
+ const publishDescriptionUnpublished$1 = {
2649
+ source: "Save all changes while keeping page unpublished",
2650
+ translation: ""
2651
+ };
2451
2652
  const publishError$1 = {
2452
2653
  source: "Changes could not be published.",
2453
2654
  translation: "Les modifications n’ont pas pu être publiées."
@@ -2456,6 +2657,10 @@ const publishLabel$1 = {
2456
2657
  source: "Publish",
2457
2658
  translation: "Publier"
2458
2659
  };
2660
+ const publishLabelUnpublished$1 = {
2661
+ source: "Save",
2662
+ translation: ""
2663
+ };
2459
2664
  const publishSuccess$1 = {
2460
2665
  source: "Changes published successfully.",
2461
2666
  translation: "Modifications publiées avec succès."
@@ -2532,6 +2737,10 @@ const settingsAppearance$1 = {
2532
2737
  source: "Appearance",
2533
2738
  translation: ""
2534
2739
  };
2740
+ const settingsArtboard$1 = {
2741
+ source: "Artboard",
2742
+ translation: ""
2743
+ };
2535
2744
  const settingsBehaviour$1 = {
2536
2745
  source: "Behaviour",
2537
2746
  translation: "Comportement"
@@ -2697,6 +2906,10 @@ const fr = {
2697
2906
  addListTourText: addListTourText$1,
2698
2907
  all: all$1,
2699
2908
  artboard: artboard$1,
2909
+ artboardOverviewHide: artboardOverviewHide$1,
2910
+ artboardOverviewShow: artboardOverviewShow$1,
2911
+ artboardOverviewToggle: artboardOverviewToggle$1,
2912
+ artboardOverviewTourText: artboardOverviewTourText$1,
2700
2913
  artboardResetZoom: artboardResetZoom$1,
2701
2914
  artboardScaleToFit: artboardScaleToFit$1,
2702
2915
  artboardScrollDown: artboardScrollDown$1,
@@ -2716,6 +2929,8 @@ const fr = {
2716
2929
  assistantPromptPlaceholder: assistantPromptPlaceholder$1,
2717
2930
  blockAddListTourText: blockAddListTourText$1,
2718
2931
  blockAddListTourTitle: blockAddListTourTitle$1,
2932
+ blockOption_bkHiddenGlobally_label: blockOption_bkHiddenGlobally_label$1,
2933
+ blockOption_bkVisibleLanguages_label: blockOption_bkVisibleLanguages_label$1,
2719
2934
  cancel: cancel$1,
2720
2935
  clipboard: clipboard$1,
2721
2936
  clipboardCopyShortcutHelp: clipboardCopyShortcutHelp$1,
@@ -2799,6 +3014,7 @@ const fr = {
2799
3014
  source: "Vertical",
2800
3015
  translation: ""
2801
3016
  },
3017
+ feature_artboard_setting_momentum_label: feature_artboard_setting_momentum_label$1,
2802
3018
  feature_artboard_setting_persist_label: feature_artboard_setting_persist_label$1,
2803
3019
  feature_artboard_setting_scrollSpeed_label: feature_artboard_setting_scrollSpeed_label$1,
2804
3020
  "feature_block-add-list_setting_hideDisabledBlocks_label": {
@@ -2811,6 +3027,7 @@ const fr = {
2811
3027
  source: "Show import dialog at start when page is empty",
2812
3028
  translation: ""
2813
3029
  },
3030
+ feature_publish_setting_closeAfterPublish_label: feature_publish_setting_closeAfterPublish_label$1,
2814
3031
  feature_settings_setting_lowPerformanceMode_label: feature_settings_setting_lowPerformanceMode_label$1,
2815
3032
  feature_settings_setting_resetAllSettings_label: feature_settings_setting_resetAllSettings_label$1,
2816
3033
  feature_settings_setting_useAnimations_label: feature_settings_setting_useAnimations_label$1,
@@ -2879,6 +3096,7 @@ const fr = {
2879
3096
  mediaLibraryReplaceMedia: mediaLibraryReplaceMedia$1,
2880
3097
  mediaLibraryTourText: mediaLibraryTourText$1,
2881
3098
  multipleItemsLabel: multipleItemsLabel$1,
3099
+ optionBkVisibleLanguagesAll: optionBkVisibleLanguagesAll$1,
2882
3100
  "optionsCommand.selectCheckboxValue": {
2883
3101
  source: "Select \"@value\" in \"@option\"",
2884
3102
  translation: ""
@@ -2905,9 +3123,17 @@ const fr = {
2905
3123
  previewQrCodeText: previewQrCodeText$1,
2906
3124
  previewWithSmartphone: previewWithSmartphone$1,
2907
3125
  previewWithSmartphoneTourText: previewWithSmartphoneTourText$1,
3126
+ proxyViewHide: proxyViewHide$1,
3127
+ proxyViewShow: proxyViewShow$1,
3128
+ proxyViewToggle: proxyViewToggle$1,
3129
+ proxyViewTourText: proxyViewTourText$1,
3130
+ publishAndCloseLabel: publishAndCloseLabel$1,
3131
+ publishAndCloseLabelUnpublished: publishAndCloseLabelUnpublished$1,
2908
3132
  publishDescription: publishDescription$1,
3133
+ publishDescriptionUnpublished: publishDescriptionUnpublished$1,
2909
3134
  publishError: publishError$1,
2910
3135
  publishLabel: publishLabel$1,
3136
+ publishLabelUnpublished: publishLabelUnpublished$1,
2911
3137
  publishSuccess: publishSuccess$1,
2912
3138
  responsivePreviewCustomViewport: responsivePreviewCustomViewport$1,
2913
3139
  responsivePreviewTitle: responsivePreviewTitle$1,
@@ -2927,6 +3153,7 @@ const fr = {
2927
3153
  searchTourText: searchTourText$1,
2928
3154
  settingsAdvanced: settingsAdvanced$1,
2929
3155
  settingsAppearance: settingsAppearance$1,
3156
+ settingsArtboard: settingsArtboard$1,
2930
3157
  settingsBehaviour: settingsBehaviour$1,
2931
3158
  settingsDialogTitle: settingsDialogTitle$1,
2932
3159
  settingsMenuDescription: settingsMenuDescription$1,
@@ -3005,6 +3232,22 @@ const artboard = {
3005
3232
  source: "Artboard",
3006
3233
  translation: ""
3007
3234
  };
3235
+ const artboardOverviewHide = {
3236
+ source: "Hide overview",
3237
+ translation: ""
3238
+ };
3239
+ const artboardOverviewShow = {
3240
+ source: "Show overview",
3241
+ translation: ""
3242
+ };
3243
+ const artboardOverviewToggle = {
3244
+ source: "Toggle overview",
3245
+ translation: ""
3246
+ };
3247
+ const artboardOverviewTourText = {
3248
+ source: "Displays a top level overview of your content.",
3249
+ translation: ""
3250
+ };
3008
3251
  const artboardResetZoom = {
3009
3252
  source: "Reset zoom",
3010
3253
  translation: ""
@@ -3081,6 +3324,14 @@ const blockAddListTourTitle = {
3081
3324
  source: "Favorite blocks",
3082
3325
  translation: ""
3083
3326
  };
3327
+ const blockOption_bkHiddenGlobally_label = {
3328
+ source: "Hide globally",
3329
+ translation: ""
3330
+ };
3331
+ const blockOption_bkVisibleLanguages_label = {
3332
+ source: "Visible languages",
3333
+ translation: ""
3334
+ };
3084
3335
  const cancel = {
3085
3336
  source: "Cancel",
3086
3337
  translation: "Annulla"
@@ -3253,6 +3504,10 @@ const featureHelpTitle = {
3253
3504
  source: "Help",
3254
3505
  translation: ""
3255
3506
  };
3507
+ const feature_artboard_setting_momentum_label = {
3508
+ source: "Use smooth scrolling",
3509
+ translation: ""
3510
+ };
3256
3511
  const feature_artboard_setting_persist_label = {
3257
3512
  source: "Persist position and zoom",
3258
3513
  translation: ""
@@ -3269,6 +3524,10 @@ const feature_history_setting_useMouseButtons_label = {
3269
3524
  source: "Use mouse buttons for undo/redo",
3270
3525
  translation: ""
3271
3526
  };
3527
+ const feature_publish_setting_closeAfterPublish_label = {
3528
+ source: "Close editor after publishing",
3529
+ translation: ""
3530
+ };
3272
3531
  const feature_settings_setting_lowPerformanceMode_label = {
3273
3532
  source: "Enable low performance mode",
3274
3533
  translation: ""
@@ -3541,6 +3800,10 @@ const multipleItemsLabel = {
3541
3800
  source: "Items",
3542
3801
  translation: "Elementi"
3543
3802
  };
3803
+ const optionBkVisibleLanguagesAll = {
3804
+ source: "All languages",
3805
+ translation: ""
3806
+ };
3544
3807
  const ownershipError = {
3545
3808
  source: "Error in assigning",
3546
3809
  translation: "Errore nell'assegnazione"
@@ -3597,10 +3860,38 @@ const previewWithSmartphoneTourText = {
3597
3860
  source: "Shows a QR code to quickly open a preview of the changes with your smartphone.",
3598
3861
  translation: ""
3599
3862
  };
3863
+ const proxyViewHide = {
3864
+ source: "Show content preview",
3865
+ translation: ""
3866
+ };
3867
+ const proxyViewShow = {
3868
+ source: "Show structure view",
3869
+ translation: ""
3870
+ };
3871
+ const proxyViewToggle = {
3872
+ source: "Toggle structure view",
3873
+ translation: ""
3874
+ };
3875
+ const proxyViewTourText = {
3876
+ source: "Displays the content blocks as a structured view.",
3877
+ translation: ""
3878
+ };
3879
+ const publishAndCloseLabel = {
3880
+ source: "Publish & Close",
3881
+ translation: ""
3882
+ };
3883
+ const publishAndCloseLabelUnpublished = {
3884
+ source: "Save & Close",
3885
+ translation: ""
3886
+ };
3600
3887
  const publishDescription = {
3601
- source: "Make all changes public",
3888
+ source: "Publish all changes.",
3602
3889
  translation: "Rendi pubbliche tutte le modifiche"
3603
3890
  };
3891
+ const publishDescriptionUnpublished = {
3892
+ source: "Save all changes while keeping page unpublished",
3893
+ translation: ""
3894
+ };
3604
3895
  const publishError = {
3605
3896
  source: "Changes could not be published.",
3606
3897
  translation: "Le modifiche non possono essere pubblicate."
@@ -3609,6 +3900,10 @@ const publishLabel = {
3609
3900
  source: "Publish",
3610
3901
  translation: "Pubblica"
3611
3902
  };
3903
+ const publishLabelUnpublished = {
3904
+ source: "Save",
3905
+ translation: ""
3906
+ };
3612
3907
  const publishSuccess = {
3613
3908
  source: "Changes published successfully.",
3614
3909
  translation: "Modifiche pubblicate con successo."
@@ -3685,6 +3980,10 @@ const settingsAppearance = {
3685
3980
  source: "Appearance",
3686
3981
  translation: ""
3687
3982
  };
3983
+ const settingsArtboard = {
3984
+ source: "Artboard",
3985
+ translation: ""
3986
+ };
3688
3987
  const settingsBehaviour = {
3689
3988
  source: "Behaviour",
3690
3989
  translation: "Comportamento"
@@ -3850,6 +4149,10 @@ const it = {
3850
4149
  addListTourText: addListTourText,
3851
4150
  all: all,
3852
4151
  artboard: artboard,
4152
+ artboardOverviewHide: artboardOverviewHide,
4153
+ artboardOverviewShow: artboardOverviewShow,
4154
+ artboardOverviewToggle: artboardOverviewToggle,
4155
+ artboardOverviewTourText: artboardOverviewTourText,
3853
4156
  artboardResetZoom: artboardResetZoom,
3854
4157
  artboardScaleToFit: artboardScaleToFit,
3855
4158
  artboardScrollDown: artboardScrollDown,
@@ -3869,6 +4172,8 @@ const it = {
3869
4172
  assistantPromptPlaceholder: assistantPromptPlaceholder,
3870
4173
  blockAddListTourText: blockAddListTourText,
3871
4174
  blockAddListTourTitle: blockAddListTourTitle,
4175
+ blockOption_bkHiddenGlobally_label: blockOption_bkHiddenGlobally_label,
4176
+ blockOption_bkVisibleLanguages_label: blockOption_bkVisibleLanguages_label,
3872
4177
  cancel: cancel,
3873
4178
  clipboard: clipboard,
3874
4179
  clipboardCopyShortcutHelp: clipboardCopyShortcutHelp,
@@ -3952,6 +4257,7 @@ const it = {
3952
4257
  source: "Vertical",
3953
4258
  translation: ""
3954
4259
  },
4260
+ feature_artboard_setting_momentum_label: feature_artboard_setting_momentum_label,
3955
4261
  feature_artboard_setting_persist_label: feature_artboard_setting_persist_label,
3956
4262
  feature_artboard_setting_scrollSpeed_label: feature_artboard_setting_scrollSpeed_label,
3957
4263
  "feature_block-add-list_setting_hideDisabledBlocks_label": {
@@ -3964,6 +4270,7 @@ const it = {
3964
4270
  source: "Show import dialog at start when page is empty",
3965
4271
  translation: ""
3966
4272
  },
4273
+ feature_publish_setting_closeAfterPublish_label: feature_publish_setting_closeAfterPublish_label,
3967
4274
  feature_settings_setting_lowPerformanceMode_label: feature_settings_setting_lowPerformanceMode_label,
3968
4275
  feature_settings_setting_resetAllSettings_label: feature_settings_setting_resetAllSettings_label,
3969
4276
  feature_settings_setting_useAnimations_label: feature_settings_setting_useAnimations_label,
@@ -4032,6 +4339,7 @@ const it = {
4032
4339
  mediaLibraryReplaceMedia: mediaLibraryReplaceMedia,
4033
4340
  mediaLibraryTourText: mediaLibraryTourText,
4034
4341
  multipleItemsLabel: multipleItemsLabel,
4342
+ optionBkVisibleLanguagesAll: optionBkVisibleLanguagesAll,
4035
4343
  "optionsCommand.selectCheckboxValue": {
4036
4344
  source: "Select \"@value\" in \"@option\"",
4037
4345
  translation: ""
@@ -4058,9 +4366,17 @@ const it = {
4058
4366
  previewQrCodeText: previewQrCodeText,
4059
4367
  previewWithSmartphone: previewWithSmartphone,
4060
4368
  previewWithSmartphoneTourText: previewWithSmartphoneTourText,
4369
+ proxyViewHide: proxyViewHide,
4370
+ proxyViewShow: proxyViewShow,
4371
+ proxyViewToggle: proxyViewToggle,
4372
+ proxyViewTourText: proxyViewTourText,
4373
+ publishAndCloseLabel: publishAndCloseLabel,
4374
+ publishAndCloseLabelUnpublished: publishAndCloseLabelUnpublished,
4061
4375
  publishDescription: publishDescription,
4376
+ publishDescriptionUnpublished: publishDescriptionUnpublished,
4062
4377
  publishError: publishError,
4063
4378
  publishLabel: publishLabel,
4379
+ publishLabelUnpublished: publishLabelUnpublished,
4064
4380
  publishSuccess: publishSuccess,
4065
4381
  responsivePreviewCustomViewport: responsivePreviewCustomViewport,
4066
4382
  responsivePreviewTitle: responsivePreviewTitle,
@@ -4080,6 +4396,7 @@ const it = {
4080
4396
  searchTourText: searchTourText,
4081
4397
  settingsAdvanced: settingsAdvanced,
4082
4398
  settingsAppearance: settingsAppearance,
4399
+ settingsArtboard: settingsArtboard,
4083
4400
  settingsBehaviour: settingsBehaviour,
4084
4401
  settingsDialogTitle: settingsDialogTitle,
4085
4402
  settingsMenuDescription: settingsMenuDescription,
@@ -4992,7 +5309,19 @@ const module = defineNuxtModule({
4992
5309
  },
4993
5310
  defaults: {
4994
5311
  pattern: ["components/Blokkli/**/*.{js,ts,vue}"],
4995
- globalOptions: {},
5312
+ globalOptions: {
5313
+ [BK_VISIBLE_LANGUAGES]: {
5314
+ type: "checkboxes",
5315
+ label: "Visible languages",
5316
+ options: {},
5317
+ default: []
5318
+ },
5319
+ [BK_HIDDEN_GLOBALLY]: {
5320
+ type: "checkbox",
5321
+ label: "Hide globally",
5322
+ default: false
5323
+ }
5324
+ },
4996
5325
  chunkNames: ["global"],
4997
5326
  itemEntityType: "block"
4998
5327
  },