@blokkli/editor 1.0.4 → 1.1.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 (77) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +334 -9
  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 +138 -28
  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/CommandPalette/Palette/index.vue +3 -4
  21. package/dist/runtime/components/Edit/Features/Debug/Rects/index.vue +27 -0
  22. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +24 -3
  23. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +56 -24
  24. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +184 -29
  25. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/vertex.glsl +36 -16
  26. package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +4 -0
  27. package/dist/runtime/components/Edit/Features/Duplicate/index.vue +1 -13
  28. package/dist/runtime/components/Edit/Features/EditableMask/index.vue +2 -2
  29. package/dist/runtime/components/Edit/Features/History/index.vue +1 -1
  30. package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +2 -2
  31. package/dist/runtime/components/Edit/Features/Options/Form/Checkboxes/index.vue +28 -25
  32. package/dist/runtime/components/Edit/Features/Options/Form/Color/index.vue +1 -1
  33. package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +67 -39
  34. package/dist/runtime/components/Edit/Features/Options/Form/Number/index.vue +6 -2
  35. package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +1 -1
  36. package/dist/runtime/components/Edit/Features/Options/Form/Range/index.vue +2 -2
  37. package/dist/runtime/components/Edit/Features/Options/Form/Text/index.vue +2 -1
  38. package/dist/runtime/components/Edit/Features/Options/Form/index.vue +83 -33
  39. package/dist/runtime/components/Edit/Features/ProxyView/index.vue +38 -0
  40. package/dist/runtime/components/Edit/Features/Publish/index.vue +53 -6
  41. package/dist/runtime/components/Edit/Features/Search/Overlay/index.vue +3 -13
  42. package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +1 -1
  43. package/dist/runtime/components/Edit/Features/Settings/Dialog/index.vue +2 -0
  44. package/dist/runtime/components/Edit/Features/Structure/List/Field/index.vue +3 -3
  45. package/dist/runtime/components/Edit/Features/Structure/index.vue +3 -3
  46. package/dist/runtime/components/Edit/ScrollBoundary/index.vue +24 -0
  47. package/dist/runtime/components/Edit/index.d.ts +2 -1
  48. package/dist/runtime/components/Edit/index.js +3 -1
  49. package/dist/runtime/composables/defineBlokkli.js +10 -5
  50. package/dist/runtime/constants/index.d.ts +1 -1
  51. package/dist/runtime/constants/index.js +6 -1
  52. package/dist/runtime/css/output.css +1 -1
  53. package/dist/runtime/helpers/animationProvider.js +10 -4
  54. package/dist/runtime/helpers/domProvider.d.ts +4 -2
  55. package/dist/runtime/helpers/domProvider.js +42 -19
  56. package/dist/runtime/helpers/featuresProvider.d.ts +1 -1
  57. package/dist/runtime/helpers/runtimeHelpers/index.d.ts +6 -0
  58. package/dist/runtime/helpers/runtimeHelpers/index.js +25 -0
  59. package/dist/runtime/helpers/selectionProvider.d.ts +2 -1
  60. package/dist/runtime/helpers/selectionProvider.js +7 -8
  61. package/dist/runtime/helpers/symbols.d.ts +7 -0
  62. package/dist/runtime/helpers/symbols.js +7 -0
  63. package/dist/runtime/helpers/typesProvider.d.ts +1 -1
  64. package/dist/runtime/helpers/uiProvider.d.ts +1 -0
  65. package/dist/runtime/helpers/uiProvider.js +16 -3
  66. package/dist/runtime/helpers/webgl/index.d.ts +6 -1
  67. package/dist/runtime/helpers/webgl/index.js +38 -5
  68. package/dist/runtime/icons/eye.svg +1 -0
  69. package/dist/runtime/types/generatedModuleTypes.d.ts +12 -4
  70. package/dist/runtime/types/index.d.ts +30 -1
  71. package/package.json +7 -5
  72. package/dist/runtime/components/Edit/Features/Artboard/Manager/Artboard.d.ts +0 -204
  73. package/dist/runtime/components/Edit/Features/Artboard/Manager/Artboard.js +0 -748
  74. package/dist/runtime/components/Edit/Features/Artboard/Manager/Scrollbar/index.vue +0 -176
  75. package/dist/runtime/components/Edit/Features/Artboard/Manager/index.vue +0 -317
  76. package/dist/runtime/helpers/Artboard/index.d.ts +0 -16
  77. package/dist/runtime/helpers/Artboard/index.js +0 -20
package/dist/module.mjs CHANGED
@@ -5,8 +5,9 @@ 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.0";
10
11
 
11
12
  function sortObjectKeys(obj) {
12
13
  const sortedKeys = Object.keys(obj).sort();
@@ -141,6 +142,15 @@ class BlockExtractor {
141
142
  } catch {
142
143
  }
143
144
  }
145
+ async getProxyComponent(componentPath) {
146
+ const folder = path.dirname(componentPath);
147
+ const proxyComponentPath = path.join(folder, "/proxy.vue");
148
+ try {
149
+ await fs.promises.access(proxyComponentPath, fs.constants.F_OK);
150
+ return proxyComponentPath;
151
+ } catch {
152
+ }
153
+ }
144
154
  /**
145
155
  * Read the file and extract the blokkli component definitions.
146
156
  *
@@ -163,6 +173,7 @@ class BlockExtractor {
163
173
  }
164
174
  if ("bundle" in extracted.definition) {
165
175
  const icon = await this.getIcon(filePath2);
176
+ const proxyComponentPath = await this.getProxyComponent(filePath2);
166
177
  if (this.definitions[filePath2] && this.definitions[filePath2]?.source === extracted.source) {
167
178
  return false;
168
179
  }
@@ -172,6 +183,7 @@ class BlockExtractor {
172
183
  filePath: filePath2,
173
184
  definition: extracted.definition,
174
185
  icon,
186
+ proxyComponentPath,
175
187
  chunkName: extracted.definition.chunkName || "global",
176
188
  componentName: "BlokkliComponent_" + extracted.definition.bundle + "_" + componentFileName,
177
189
  source: extracted.source,
@@ -261,15 +273,32 @@ class BlockExtractor {
261
273
  }
262
274
  return acc;
263
275
  }, {});
276
+ const proxyComponents = Object.values(this.definitions).reduce((acc, v) => {
277
+ if (v?.proxyComponentPath) {
278
+ acc[v.definition.bundle] = v.proxyComponentPath;
279
+ }
280
+ return acc;
281
+ }, {});
282
+ const proxyImports = Object.entries(proxyComponents).map(([bundle, proxyComponentPath]) => {
283
+ return `import proxyComponent_${bundle} from '${proxyComponentPath}'`;
284
+ }).join("\n");
285
+ const proxyMaps = Object.keys(proxyComponents).map((bundle) => {
286
+ return `'${bundle}': proxyComponent_${bundle}`;
287
+ }).join(", \n");
264
288
  const allFragmentNames = Object.values(this.fragmentDefinitions).filter(falsy).map((v) => `'${v.definition.name}'`).join(" | ");
265
289
  return `import type { GlobalOptionsKey, ValidFieldListTypes, BlockBundleWithNested } from './generated-types'
266
290
  import type { BlockDefinitionInput, BlockDefinitionOptionsInput, FragmentDefinitionInput } from '#blokkli/types'
267
291
  export const globalOptions = ${JSON.stringify(globalOptions, null, 2)} as const
292
+ ${proxyImports}
268
293
 
269
294
  type DefinitionItem = BlockDefinitionInput<BlockDefinitionOptionsInput, GlobalOptionsKey[]>
270
295
 
271
296
  ${definitionDeclarations.join("\n")}
272
297
 
298
+ const PROXY_COMPONENTS: Record<string, any> = {
299
+ ${proxyMaps}
300
+ }
301
+
273
302
  export const icons: Record<string, string> = ${JSON.stringify(icons)}
274
303
 
275
304
  export const definitionsMap: Record<string, DefinitionItem> = {
@@ -303,6 +332,10 @@ export function getDefinition(bundle: string, fieldListType: ValidFieldListTypes
303
332
  return definitionsMap[bundle]
304
333
  }
305
334
 
335
+ export function getBlokkliItemProxyComponent(bundle: string): any {
336
+ return PROXY_COMPONENTS[bundle]
337
+ }
338
+
306
339
  /**
307
340
  * Get the definition of the default block component.
308
341
  */
@@ -330,6 +363,13 @@ export const getFragmentDefinition = (name: string): FragmentDefinitionInput<Rec
330
363
  const sorted = sortObjectKeys(schema);
331
364
  return JSON.stringify(sorted, null, 2);
332
365
  }
366
+ getBundlesWithGlobalOptions(key) {
367
+ return Object.values(this.definitions).map((definition2) => {
368
+ if (definition2?.definition.globalOptions?.includes(key)) {
369
+ return definition2.definition.bundle;
370
+ }
371
+ }).filter(falsy);
372
+ }
333
373
  /**
334
374
  * Generate the default global options values template.
335
375
  */
@@ -353,6 +393,9 @@ type GlobalOptionsDefaults = {
353
393
  default: any
354
394
  }
355
395
 
396
+ export const bundlesWithVisibleLanguage: string[] = ${JSON.stringify(this.getBundlesWithGlobalOptions(BK_VISIBLE_LANGUAGES))}
397
+ export const bundlesWithHiddenGlobally: string[] = ${JSON.stringify(this.getBundlesWithGlobalOptions(BK_HIDDEN_GLOBALLY))}
398
+
356
399
  export const globalOptionsDefaults: Record<string, GlobalOptionsDefaults> = ${JSON.stringify(
357
400
  defaults,
358
401
  null,
@@ -697,7 +740,23 @@ const all$2 = {
697
740
  };
698
741
  const artboard$2 = {
699
742
  source: "Artboard",
700
- translation: "Zeichenfläche"
743
+ translation: "Vorschau"
744
+ };
745
+ const artboardOverviewHide$2 = {
746
+ source: "Hide overview",
747
+ translation: "Übersicht verstecken"
748
+ };
749
+ const artboardOverviewShow$2 = {
750
+ source: "Show overview",
751
+ translation: "Übersicht anzeigen"
752
+ };
753
+ const artboardOverviewToggle$2 = {
754
+ source: "Toggle overview",
755
+ translation: "Übersicht umschalten"
756
+ };
757
+ const artboardOverviewTourText$2 = {
758
+ source: "Displays a top level overview of your content.",
759
+ translation: "Zeigt eine schematische Übersicht aller Inhalte an."
701
760
  };
702
761
  const artboardResetZoom$2 = {
703
762
  source: "Reset zoom",
@@ -775,6 +834,14 @@ const blockAddListTourTitle$2 = {
775
834
  source: "Favorite blocks",
776
835
  translation: "Favoriten-Blöcke"
777
836
  };
837
+ const blockOption_bkHiddenGlobally_label$2 = {
838
+ source: "Hide globally",
839
+ translation: "Global verstecken"
840
+ };
841
+ const blockOption_bkVisibleLanguages_label$2 = {
842
+ source: "Visible languages",
843
+ translation: "Sichtbare Sprachen"
844
+ };
778
845
  const cancel$2 = {
779
846
  source: "Cancel",
780
847
  translation: "Abbrechen"
@@ -947,13 +1014,17 @@ const featureHelpTitle$2 = {
947
1014
  source: "Help",
948
1015
  translation: "Hilfe"
949
1016
  };
1017
+ const feature_artboard_setting_momentum_label$2 = {
1018
+ source: "Use smooth scrolling",
1019
+ translation: "Sanftes Scrollen verwenden"
1020
+ };
950
1021
  const feature_artboard_setting_persist_label$2 = {
951
1022
  source: "Persist position and zoom",
952
1023
  translation: "Position und Zoom speichern"
953
1024
  };
954
1025
  const feature_artboard_setting_scrollSpeed_label$2 = {
955
1026
  source: "Artboard scroll speed",
956
- translation: "Scrollgeschwindigkeit der Zeichenfläche"
1027
+ translation: "Scrollgeschwindigkeit der Vorschau"
957
1028
  };
958
1029
  const feature_clipboard_setting_openSidebarOnPaste_label$2 = {
959
1030
  source: "Open sidebar when pasting from clipboard",
@@ -963,6 +1034,10 @@ const feature_history_setting_useMouseButtons_label$2 = {
963
1034
  source: "Use mouse buttons for undo/redo",
964
1035
  translation: "Maustasten für Rückgängig/Wiederherstellen verwenden"
965
1036
  };
1037
+ const feature_publish_setting_closeAfterPublish_label$2 = {
1038
+ source: "Close editor after publishing",
1039
+ translation: "Nach «Veröffentlichen» den Editor schliessen"
1040
+ };
966
1041
  const feature_settings_setting_lowPerformanceMode_label$2 = {
967
1042
  source: "Enable low performance mode",
968
1043
  translation: "Modus für niedrige Leistung aktivieren"
@@ -1235,6 +1310,10 @@ const multipleItemsLabel$2 = {
1235
1310
  source: "Items",
1236
1311
  translation: "Elemente"
1237
1312
  };
1313
+ const optionBkVisibleLanguagesAll$2 = {
1314
+ source: "All languages",
1315
+ translation: "Alle Sprachen"
1316
+ };
1238
1317
  const ownershipError$2 = {
1239
1318
  source: "Error in assigning",
1240
1319
  translation: "Fehler beim Zuweisen"
@@ -1291,9 +1370,37 @@ const previewWithSmartphoneTourText$2 = {
1291
1370
  source: "Shows a QR code to quickly open a preview of the changes with your smartphone.",
1292
1371
  translation: "Zeigt einen QR-Code an, um eine Vorschau der Änderungen mit Ihrem Smartphone zu öffnen."
1293
1372
  };
1373
+ const proxyViewHide$2 = {
1374
+ source: "Show content preview",
1375
+ translation: "Inhaltsvorschau anzeigen"
1376
+ };
1377
+ const proxyViewShow$2 = {
1378
+ source: "Show structure view",
1379
+ translation: "Strukturierte Vorschau anzeigen"
1380
+ };
1381
+ const proxyViewToggle$2 = {
1382
+ source: "Toggle structure view",
1383
+ translation: "Vorschau wechseln"
1384
+ };
1385
+ const proxyViewTourText$2 = {
1386
+ source: "Displays the content blocks as a structured view.",
1387
+ translation: "Stellt die Inhaltsblöcke in strukturierter Form dar."
1388
+ };
1389
+ const publishAndCloseLabel$2 = {
1390
+ source: "Publish & Close",
1391
+ translation: "Veröffentlichen & Schliessen"
1392
+ };
1393
+ const publishAndCloseLabelUnpublished$2 = {
1394
+ source: "Save & Close",
1395
+ translation: "Speichern & Schliessen"
1396
+ };
1294
1397
  const publishDescription$2 = {
1295
- source: "Make all changes public",
1296
- translation: "Alle Änderungen öffentlich machen"
1398
+ source: "Publish all changes.",
1399
+ translation: "Alle Änderungen veröffentlichen"
1400
+ };
1401
+ const publishDescriptionUnpublished$2 = {
1402
+ source: "Save all changes while keeping page unpublished",
1403
+ translation: "Alle Änderungen speichern ohne die Seite zu publizieren"
1297
1404
  };
1298
1405
  const publishError$2 = {
1299
1406
  source: "Changes could not be published.",
@@ -1303,6 +1410,10 @@ const publishLabel$2 = {
1303
1410
  source: "Publish",
1304
1411
  translation: "Veröffentlichen"
1305
1412
  };
1413
+ const publishLabelUnpublished$2 = {
1414
+ source: "Save",
1415
+ translation: "Speichern"
1416
+ };
1306
1417
  const publishSuccess$2 = {
1307
1418
  source: "Changes published successfully.",
1308
1419
  translation: "Änderungen erfolgreich publiziert."
@@ -1337,7 +1448,7 @@ const revertError$2 = {
1337
1448
  };
1338
1449
  const revertMenuDescription$2 = {
1339
1450
  source: "Restore currently published state",
1340
- translation: "Aktuell veröffentlichter Zustand Wiederherstellen"
1451
+ translation: "Aktuell veröffentlichten Zustand wiederherstellen"
1341
1452
  };
1342
1453
  const revertMenuTitle$2 = {
1343
1454
  source: "Discard...",
@@ -1379,6 +1490,10 @@ const settingsAppearance$2 = {
1379
1490
  source: "Appearance",
1380
1491
  translation: "Darstellung"
1381
1492
  };
1493
+ const settingsArtboard$2 = {
1494
+ source: "Artboard",
1495
+ translation: "Vorschau"
1496
+ };
1382
1497
  const settingsBehaviour$2 = {
1383
1498
  source: "Behaviour",
1384
1499
  translation: "Verhalten"
@@ -1544,6 +1659,10 @@ const de = {
1544
1659
  addListTourText: addListTourText$2,
1545
1660
  all: all$2,
1546
1661
  artboard: artboard$2,
1662
+ artboardOverviewHide: artboardOverviewHide$2,
1663
+ artboardOverviewShow: artboardOverviewShow$2,
1664
+ artboardOverviewToggle: artboardOverviewToggle$2,
1665
+ artboardOverviewTourText: artboardOverviewTourText$2,
1547
1666
  artboardResetZoom: artboardResetZoom$2,
1548
1667
  artboardScaleToFit: artboardScaleToFit$2,
1549
1668
  artboardScrollDown: artboardScrollDown$2,
@@ -1563,6 +1682,8 @@ const de = {
1563
1682
  assistantPromptPlaceholder: assistantPromptPlaceholder$2,
1564
1683
  blockAddListTourText: blockAddListTourText$2,
1565
1684
  blockAddListTourTitle: blockAddListTourTitle$2,
1685
+ blockOption_bkHiddenGlobally_label: blockOption_bkHiddenGlobally_label$2,
1686
+ blockOption_bkVisibleLanguages_label: blockOption_bkVisibleLanguages_label$2,
1566
1687
  cancel: cancel$2,
1567
1688
  clipboard: clipboard$2,
1568
1689
  clipboardCopyShortcutHelp: clipboardCopyShortcutHelp$2,
@@ -1646,6 +1767,7 @@ const de = {
1646
1767
  source: "Vertical",
1647
1768
  translation: "Vertikal"
1648
1769
  },
1770
+ feature_artboard_setting_momentum_label: feature_artboard_setting_momentum_label$2,
1649
1771
  feature_artboard_setting_persist_label: feature_artboard_setting_persist_label$2,
1650
1772
  feature_artboard_setting_scrollSpeed_label: feature_artboard_setting_scrollSpeed_label$2,
1651
1773
  "feature_block-add-list_setting_hideDisabledBlocks_label": {
@@ -1658,6 +1780,7 @@ const de = {
1658
1780
  source: "Show import dialog at start when page is empty",
1659
1781
  translation: "Importdialog beim Start anzeigen, wenn die Seite leer ist"
1660
1782
  },
1783
+ feature_publish_setting_closeAfterPublish_label: feature_publish_setting_closeAfterPublish_label$2,
1661
1784
  feature_settings_setting_lowPerformanceMode_label: feature_settings_setting_lowPerformanceMode_label$2,
1662
1785
  feature_settings_setting_resetAllSettings_label: feature_settings_setting_resetAllSettings_label$2,
1663
1786
  feature_settings_setting_useAnimations_label: feature_settings_setting_useAnimations_label$2,
@@ -1726,6 +1849,7 @@ const de = {
1726
1849
  mediaLibraryReplaceMedia: mediaLibraryReplaceMedia$2,
1727
1850
  mediaLibraryTourText: mediaLibraryTourText$2,
1728
1851
  multipleItemsLabel: multipleItemsLabel$2,
1852
+ optionBkVisibleLanguagesAll: optionBkVisibleLanguagesAll$2,
1729
1853
  "optionsCommand.selectCheckboxValue": {
1730
1854
  source: "Select \"@value\" in \"@option\"",
1731
1855
  translation: "«@value» in «@option» auswählen"
@@ -1752,9 +1876,17 @@ const de = {
1752
1876
  previewQrCodeText: previewQrCodeText$2,
1753
1877
  previewWithSmartphone: previewWithSmartphone$2,
1754
1878
  previewWithSmartphoneTourText: previewWithSmartphoneTourText$2,
1879
+ proxyViewHide: proxyViewHide$2,
1880
+ proxyViewShow: proxyViewShow$2,
1881
+ proxyViewToggle: proxyViewToggle$2,
1882
+ proxyViewTourText: proxyViewTourText$2,
1883
+ publishAndCloseLabel: publishAndCloseLabel$2,
1884
+ publishAndCloseLabelUnpublished: publishAndCloseLabelUnpublished$2,
1755
1885
  publishDescription: publishDescription$2,
1886
+ publishDescriptionUnpublished: publishDescriptionUnpublished$2,
1756
1887
  publishError: publishError$2,
1757
1888
  publishLabel: publishLabel$2,
1889
+ publishLabelUnpublished: publishLabelUnpublished$2,
1758
1890
  publishSuccess: publishSuccess$2,
1759
1891
  responsivePreviewCustomViewport: responsivePreviewCustomViewport$2,
1760
1892
  responsivePreviewTitle: responsivePreviewTitle$2,
@@ -1774,6 +1906,7 @@ const de = {
1774
1906
  searchTourText: searchTourText$2,
1775
1907
  settingsAdvanced: settingsAdvanced$2,
1776
1908
  settingsAppearance: settingsAppearance$2,
1909
+ settingsArtboard: settingsArtboard$2,
1777
1910
  settingsBehaviour: settingsBehaviour$2,
1778
1911
  settingsDialogTitle: settingsDialogTitle$2,
1779
1912
  settingsMenuDescription: settingsMenuDescription$2,
@@ -1852,6 +1985,22 @@ const artboard$1 = {
1852
1985
  source: "Artboard",
1853
1986
  translation: ""
1854
1987
  };
1988
+ const artboardOverviewHide$1 = {
1989
+ source: "Hide overview",
1990
+ translation: ""
1991
+ };
1992
+ const artboardOverviewShow$1 = {
1993
+ source: "Show overview",
1994
+ translation: ""
1995
+ };
1996
+ const artboardOverviewToggle$1 = {
1997
+ source: "Toggle overview",
1998
+ translation: ""
1999
+ };
2000
+ const artboardOverviewTourText$1 = {
2001
+ source: "Displays a top level overview of your content.",
2002
+ translation: ""
2003
+ };
1855
2004
  const artboardResetZoom$1 = {
1856
2005
  source: "Reset zoom",
1857
2006
  translation: ""
@@ -1928,6 +2077,14 @@ const blockAddListTourTitle$1 = {
1928
2077
  source: "Favorite blocks",
1929
2078
  translation: ""
1930
2079
  };
2080
+ const blockOption_bkHiddenGlobally_label$1 = {
2081
+ source: "Hide globally",
2082
+ translation: ""
2083
+ };
2084
+ const blockOption_bkVisibleLanguages_label$1 = {
2085
+ source: "Visible languages",
2086
+ translation: ""
2087
+ };
1931
2088
  const cancel$1 = {
1932
2089
  source: "Cancel",
1933
2090
  translation: "Annuler"
@@ -2100,6 +2257,10 @@ const featureHelpTitle$1 = {
2100
2257
  source: "Help",
2101
2258
  translation: ""
2102
2259
  };
2260
+ const feature_artboard_setting_momentum_label$1 = {
2261
+ source: "Use smooth scrolling",
2262
+ translation: ""
2263
+ };
2103
2264
  const feature_artboard_setting_persist_label$1 = {
2104
2265
  source: "Persist position and zoom",
2105
2266
  translation: ""
@@ -2116,6 +2277,10 @@ const feature_history_setting_useMouseButtons_label$1 = {
2116
2277
  source: "Use mouse buttons for undo/redo",
2117
2278
  translation: ""
2118
2279
  };
2280
+ const feature_publish_setting_closeAfterPublish_label$1 = {
2281
+ source: "Close editor after publishing",
2282
+ translation: ""
2283
+ };
2119
2284
  const feature_settings_setting_lowPerformanceMode_label$1 = {
2120
2285
  source: "Enable low performance mode",
2121
2286
  translation: ""
@@ -2388,6 +2553,10 @@ const multipleItemsLabel$1 = {
2388
2553
  source: "Items",
2389
2554
  translation: "Éléments"
2390
2555
  };
2556
+ const optionBkVisibleLanguagesAll$1 = {
2557
+ source: "All languages",
2558
+ translation: ""
2559
+ };
2391
2560
  const ownershipError$1 = {
2392
2561
  source: "Error in assigning",
2393
2562
  translation: "Erreur lors de l’attribution"
@@ -2444,10 +2613,38 @@ const previewWithSmartphoneTourText$1 = {
2444
2613
  source: "Shows a QR code to quickly open a preview of the changes with your smartphone.",
2445
2614
  translation: ""
2446
2615
  };
2616
+ const proxyViewHide$1 = {
2617
+ source: "Show content preview",
2618
+ translation: ""
2619
+ };
2620
+ const proxyViewShow$1 = {
2621
+ source: "Show structure view",
2622
+ translation: ""
2623
+ };
2624
+ const proxyViewToggle$1 = {
2625
+ source: "Toggle structure view",
2626
+ translation: ""
2627
+ };
2628
+ const proxyViewTourText$1 = {
2629
+ source: "Displays the content blocks as a structured view.",
2630
+ translation: ""
2631
+ };
2632
+ const publishAndCloseLabel$1 = {
2633
+ source: "Publish & Close",
2634
+ translation: ""
2635
+ };
2636
+ const publishAndCloseLabelUnpublished$1 = {
2637
+ source: "Save & Close",
2638
+ translation: ""
2639
+ };
2447
2640
  const publishDescription$1 = {
2448
- source: "Make all changes public",
2641
+ source: "Publish all changes.",
2449
2642
  translation: "Rendre toutes les modifications publiques"
2450
2643
  };
2644
+ const publishDescriptionUnpublished$1 = {
2645
+ source: "Save all changes while keeping page unpublished",
2646
+ translation: ""
2647
+ };
2451
2648
  const publishError$1 = {
2452
2649
  source: "Changes could not be published.",
2453
2650
  translation: "Les modifications n’ont pas pu être publiées."
@@ -2456,6 +2653,10 @@ const publishLabel$1 = {
2456
2653
  source: "Publish",
2457
2654
  translation: "Publier"
2458
2655
  };
2656
+ const publishLabelUnpublished$1 = {
2657
+ source: "Save",
2658
+ translation: ""
2659
+ };
2459
2660
  const publishSuccess$1 = {
2460
2661
  source: "Changes published successfully.",
2461
2662
  translation: "Modifications publiées avec succès."
@@ -2532,6 +2733,10 @@ const settingsAppearance$1 = {
2532
2733
  source: "Appearance",
2533
2734
  translation: ""
2534
2735
  };
2736
+ const settingsArtboard$1 = {
2737
+ source: "Artboard",
2738
+ translation: ""
2739
+ };
2535
2740
  const settingsBehaviour$1 = {
2536
2741
  source: "Behaviour",
2537
2742
  translation: "Comportement"
@@ -2697,6 +2902,10 @@ const fr = {
2697
2902
  addListTourText: addListTourText$1,
2698
2903
  all: all$1,
2699
2904
  artboard: artboard$1,
2905
+ artboardOverviewHide: artboardOverviewHide$1,
2906
+ artboardOverviewShow: artboardOverviewShow$1,
2907
+ artboardOverviewToggle: artboardOverviewToggle$1,
2908
+ artboardOverviewTourText: artboardOverviewTourText$1,
2700
2909
  artboardResetZoom: artboardResetZoom$1,
2701
2910
  artboardScaleToFit: artboardScaleToFit$1,
2702
2911
  artboardScrollDown: artboardScrollDown$1,
@@ -2716,6 +2925,8 @@ const fr = {
2716
2925
  assistantPromptPlaceholder: assistantPromptPlaceholder$1,
2717
2926
  blockAddListTourText: blockAddListTourText$1,
2718
2927
  blockAddListTourTitle: blockAddListTourTitle$1,
2928
+ blockOption_bkHiddenGlobally_label: blockOption_bkHiddenGlobally_label$1,
2929
+ blockOption_bkVisibleLanguages_label: blockOption_bkVisibleLanguages_label$1,
2719
2930
  cancel: cancel$1,
2720
2931
  clipboard: clipboard$1,
2721
2932
  clipboardCopyShortcutHelp: clipboardCopyShortcutHelp$1,
@@ -2799,6 +3010,7 @@ const fr = {
2799
3010
  source: "Vertical",
2800
3011
  translation: ""
2801
3012
  },
3013
+ feature_artboard_setting_momentum_label: feature_artboard_setting_momentum_label$1,
2802
3014
  feature_artboard_setting_persist_label: feature_artboard_setting_persist_label$1,
2803
3015
  feature_artboard_setting_scrollSpeed_label: feature_artboard_setting_scrollSpeed_label$1,
2804
3016
  "feature_block-add-list_setting_hideDisabledBlocks_label": {
@@ -2811,6 +3023,7 @@ const fr = {
2811
3023
  source: "Show import dialog at start when page is empty",
2812
3024
  translation: ""
2813
3025
  },
3026
+ feature_publish_setting_closeAfterPublish_label: feature_publish_setting_closeAfterPublish_label$1,
2814
3027
  feature_settings_setting_lowPerformanceMode_label: feature_settings_setting_lowPerformanceMode_label$1,
2815
3028
  feature_settings_setting_resetAllSettings_label: feature_settings_setting_resetAllSettings_label$1,
2816
3029
  feature_settings_setting_useAnimations_label: feature_settings_setting_useAnimations_label$1,
@@ -2879,6 +3092,7 @@ const fr = {
2879
3092
  mediaLibraryReplaceMedia: mediaLibraryReplaceMedia$1,
2880
3093
  mediaLibraryTourText: mediaLibraryTourText$1,
2881
3094
  multipleItemsLabel: multipleItemsLabel$1,
3095
+ optionBkVisibleLanguagesAll: optionBkVisibleLanguagesAll$1,
2882
3096
  "optionsCommand.selectCheckboxValue": {
2883
3097
  source: "Select \"@value\" in \"@option\"",
2884
3098
  translation: ""
@@ -2905,9 +3119,17 @@ const fr = {
2905
3119
  previewQrCodeText: previewQrCodeText$1,
2906
3120
  previewWithSmartphone: previewWithSmartphone$1,
2907
3121
  previewWithSmartphoneTourText: previewWithSmartphoneTourText$1,
3122
+ proxyViewHide: proxyViewHide$1,
3123
+ proxyViewShow: proxyViewShow$1,
3124
+ proxyViewToggle: proxyViewToggle$1,
3125
+ proxyViewTourText: proxyViewTourText$1,
3126
+ publishAndCloseLabel: publishAndCloseLabel$1,
3127
+ publishAndCloseLabelUnpublished: publishAndCloseLabelUnpublished$1,
2908
3128
  publishDescription: publishDescription$1,
3129
+ publishDescriptionUnpublished: publishDescriptionUnpublished$1,
2909
3130
  publishError: publishError$1,
2910
3131
  publishLabel: publishLabel$1,
3132
+ publishLabelUnpublished: publishLabelUnpublished$1,
2911
3133
  publishSuccess: publishSuccess$1,
2912
3134
  responsivePreviewCustomViewport: responsivePreviewCustomViewport$1,
2913
3135
  responsivePreviewTitle: responsivePreviewTitle$1,
@@ -2927,6 +3149,7 @@ const fr = {
2927
3149
  searchTourText: searchTourText$1,
2928
3150
  settingsAdvanced: settingsAdvanced$1,
2929
3151
  settingsAppearance: settingsAppearance$1,
3152
+ settingsArtboard: settingsArtboard$1,
2930
3153
  settingsBehaviour: settingsBehaviour$1,
2931
3154
  settingsDialogTitle: settingsDialogTitle$1,
2932
3155
  settingsMenuDescription: settingsMenuDescription$1,
@@ -3005,6 +3228,22 @@ const artboard = {
3005
3228
  source: "Artboard",
3006
3229
  translation: ""
3007
3230
  };
3231
+ const artboardOverviewHide = {
3232
+ source: "Hide overview",
3233
+ translation: ""
3234
+ };
3235
+ const artboardOverviewShow = {
3236
+ source: "Show overview",
3237
+ translation: ""
3238
+ };
3239
+ const artboardOverviewToggle = {
3240
+ source: "Toggle overview",
3241
+ translation: ""
3242
+ };
3243
+ const artboardOverviewTourText = {
3244
+ source: "Displays a top level overview of your content.",
3245
+ translation: ""
3246
+ };
3008
3247
  const artboardResetZoom = {
3009
3248
  source: "Reset zoom",
3010
3249
  translation: ""
@@ -3081,6 +3320,14 @@ const blockAddListTourTitle = {
3081
3320
  source: "Favorite blocks",
3082
3321
  translation: ""
3083
3322
  };
3323
+ const blockOption_bkHiddenGlobally_label = {
3324
+ source: "Hide globally",
3325
+ translation: ""
3326
+ };
3327
+ const blockOption_bkVisibleLanguages_label = {
3328
+ source: "Visible languages",
3329
+ translation: ""
3330
+ };
3084
3331
  const cancel = {
3085
3332
  source: "Cancel",
3086
3333
  translation: "Annulla"
@@ -3253,6 +3500,10 @@ const featureHelpTitle = {
3253
3500
  source: "Help",
3254
3501
  translation: ""
3255
3502
  };
3503
+ const feature_artboard_setting_momentum_label = {
3504
+ source: "Use smooth scrolling",
3505
+ translation: ""
3506
+ };
3256
3507
  const feature_artboard_setting_persist_label = {
3257
3508
  source: "Persist position and zoom",
3258
3509
  translation: ""
@@ -3269,6 +3520,10 @@ const feature_history_setting_useMouseButtons_label = {
3269
3520
  source: "Use mouse buttons for undo/redo",
3270
3521
  translation: ""
3271
3522
  };
3523
+ const feature_publish_setting_closeAfterPublish_label = {
3524
+ source: "Close editor after publishing",
3525
+ translation: ""
3526
+ };
3272
3527
  const feature_settings_setting_lowPerformanceMode_label = {
3273
3528
  source: "Enable low performance mode",
3274
3529
  translation: ""
@@ -3541,6 +3796,10 @@ const multipleItemsLabel = {
3541
3796
  source: "Items",
3542
3797
  translation: "Elementi"
3543
3798
  };
3799
+ const optionBkVisibleLanguagesAll = {
3800
+ source: "All languages",
3801
+ translation: ""
3802
+ };
3544
3803
  const ownershipError = {
3545
3804
  source: "Error in assigning",
3546
3805
  translation: "Errore nell'assegnazione"
@@ -3597,10 +3856,38 @@ const previewWithSmartphoneTourText = {
3597
3856
  source: "Shows a QR code to quickly open a preview of the changes with your smartphone.",
3598
3857
  translation: ""
3599
3858
  };
3859
+ const proxyViewHide = {
3860
+ source: "Show content preview",
3861
+ translation: ""
3862
+ };
3863
+ const proxyViewShow = {
3864
+ source: "Show structure view",
3865
+ translation: ""
3866
+ };
3867
+ const proxyViewToggle = {
3868
+ source: "Toggle structure view",
3869
+ translation: ""
3870
+ };
3871
+ const proxyViewTourText = {
3872
+ source: "Displays the content blocks as a structured view.",
3873
+ translation: ""
3874
+ };
3875
+ const publishAndCloseLabel = {
3876
+ source: "Publish & Close",
3877
+ translation: ""
3878
+ };
3879
+ const publishAndCloseLabelUnpublished = {
3880
+ source: "Save & Close",
3881
+ translation: ""
3882
+ };
3600
3883
  const publishDescription = {
3601
- source: "Make all changes public",
3884
+ source: "Publish all changes.",
3602
3885
  translation: "Rendi pubbliche tutte le modifiche"
3603
3886
  };
3887
+ const publishDescriptionUnpublished = {
3888
+ source: "Save all changes while keeping page unpublished",
3889
+ translation: ""
3890
+ };
3604
3891
  const publishError = {
3605
3892
  source: "Changes could not be published.",
3606
3893
  translation: "Le modifiche non possono essere pubblicate."
@@ -3609,6 +3896,10 @@ const publishLabel = {
3609
3896
  source: "Publish",
3610
3897
  translation: "Pubblica"
3611
3898
  };
3899
+ const publishLabelUnpublished = {
3900
+ source: "Save",
3901
+ translation: ""
3902
+ };
3612
3903
  const publishSuccess = {
3613
3904
  source: "Changes published successfully.",
3614
3905
  translation: "Modifiche pubblicate con successo."
@@ -3685,6 +3976,10 @@ const settingsAppearance = {
3685
3976
  source: "Appearance",
3686
3977
  translation: ""
3687
3978
  };
3979
+ const settingsArtboard = {
3980
+ source: "Artboard",
3981
+ translation: ""
3982
+ };
3688
3983
  const settingsBehaviour = {
3689
3984
  source: "Behaviour",
3690
3985
  translation: "Comportamento"
@@ -3850,6 +4145,10 @@ const it = {
3850
4145
  addListTourText: addListTourText,
3851
4146
  all: all,
3852
4147
  artboard: artboard,
4148
+ artboardOverviewHide: artboardOverviewHide,
4149
+ artboardOverviewShow: artboardOverviewShow,
4150
+ artboardOverviewToggle: artboardOverviewToggle,
4151
+ artboardOverviewTourText: artboardOverviewTourText,
3853
4152
  artboardResetZoom: artboardResetZoom,
3854
4153
  artboardScaleToFit: artboardScaleToFit,
3855
4154
  artboardScrollDown: artboardScrollDown,
@@ -3869,6 +4168,8 @@ const it = {
3869
4168
  assistantPromptPlaceholder: assistantPromptPlaceholder,
3870
4169
  blockAddListTourText: blockAddListTourText,
3871
4170
  blockAddListTourTitle: blockAddListTourTitle,
4171
+ blockOption_bkHiddenGlobally_label: blockOption_bkHiddenGlobally_label,
4172
+ blockOption_bkVisibleLanguages_label: blockOption_bkVisibleLanguages_label,
3872
4173
  cancel: cancel,
3873
4174
  clipboard: clipboard,
3874
4175
  clipboardCopyShortcutHelp: clipboardCopyShortcutHelp,
@@ -3952,6 +4253,7 @@ const it = {
3952
4253
  source: "Vertical",
3953
4254
  translation: ""
3954
4255
  },
4256
+ feature_artboard_setting_momentum_label: feature_artboard_setting_momentum_label,
3955
4257
  feature_artboard_setting_persist_label: feature_artboard_setting_persist_label,
3956
4258
  feature_artboard_setting_scrollSpeed_label: feature_artboard_setting_scrollSpeed_label,
3957
4259
  "feature_block-add-list_setting_hideDisabledBlocks_label": {
@@ -3964,6 +4266,7 @@ const it = {
3964
4266
  source: "Show import dialog at start when page is empty",
3965
4267
  translation: ""
3966
4268
  },
4269
+ feature_publish_setting_closeAfterPublish_label: feature_publish_setting_closeAfterPublish_label,
3967
4270
  feature_settings_setting_lowPerformanceMode_label: feature_settings_setting_lowPerformanceMode_label,
3968
4271
  feature_settings_setting_resetAllSettings_label: feature_settings_setting_resetAllSettings_label,
3969
4272
  feature_settings_setting_useAnimations_label: feature_settings_setting_useAnimations_label,
@@ -4032,6 +4335,7 @@ const it = {
4032
4335
  mediaLibraryReplaceMedia: mediaLibraryReplaceMedia,
4033
4336
  mediaLibraryTourText: mediaLibraryTourText,
4034
4337
  multipleItemsLabel: multipleItemsLabel,
4338
+ optionBkVisibleLanguagesAll: optionBkVisibleLanguagesAll,
4035
4339
  "optionsCommand.selectCheckboxValue": {
4036
4340
  source: "Select \"@value\" in \"@option\"",
4037
4341
  translation: ""
@@ -4058,9 +4362,17 @@ const it = {
4058
4362
  previewQrCodeText: previewQrCodeText,
4059
4363
  previewWithSmartphone: previewWithSmartphone,
4060
4364
  previewWithSmartphoneTourText: previewWithSmartphoneTourText,
4365
+ proxyViewHide: proxyViewHide,
4366
+ proxyViewShow: proxyViewShow,
4367
+ proxyViewToggle: proxyViewToggle,
4368
+ proxyViewTourText: proxyViewTourText,
4369
+ publishAndCloseLabel: publishAndCloseLabel,
4370
+ publishAndCloseLabelUnpublished: publishAndCloseLabelUnpublished,
4061
4371
  publishDescription: publishDescription,
4372
+ publishDescriptionUnpublished: publishDescriptionUnpublished,
4062
4373
  publishError: publishError,
4063
4374
  publishLabel: publishLabel,
4375
+ publishLabelUnpublished: publishLabelUnpublished,
4064
4376
  publishSuccess: publishSuccess,
4065
4377
  responsivePreviewCustomViewport: responsivePreviewCustomViewport,
4066
4378
  responsivePreviewTitle: responsivePreviewTitle,
@@ -4080,6 +4392,7 @@ const it = {
4080
4392
  searchTourText: searchTourText,
4081
4393
  settingsAdvanced: settingsAdvanced,
4082
4394
  settingsAppearance: settingsAppearance,
4395
+ settingsArtboard: settingsArtboard,
4083
4396
  settingsBehaviour: settingsBehaviour,
4084
4397
  settingsDialogTitle: settingsDialogTitle,
4085
4398
  settingsMenuDescription: settingsMenuDescription,
@@ -4992,7 +5305,19 @@ const module = defineNuxtModule({
4992
5305
  },
4993
5306
  defaults: {
4994
5307
  pattern: ["components/Blokkli/**/*.{js,ts,vue}"],
4995
- globalOptions: {},
5308
+ globalOptions: {
5309
+ [BK_VISIBLE_LANGUAGES]: {
5310
+ type: "checkboxes",
5311
+ label: "Visible languages",
5312
+ options: {},
5313
+ default: []
5314
+ },
5315
+ [BK_HIDDEN_GLOBALLY]: {
5316
+ type: "checkbox",
5317
+ label: "Hide globally",
5318
+ default: false
5319
+ }
5320
+ },
4996
5321
  chunkNames: ["global"],
4997
5322
  itemEntityType: "block"
4998
5323
  },