@blokkli/editor 2.0.0-alpha.15 → 2.0.0-alpha.16

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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
3
  "configKey": "blokkli",
4
- "version": "2.0.0-alpha.15",
4
+ "version": "2.0.0-alpha.16",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.15.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -15,7 +15,7 @@ import fs from 'node:fs';
15
15
  import { defu, createDefu } from 'defu';
16
16
 
17
17
  const name = "@blokkli/editor";
18
- const version = "2.0.0-alpha.15";
18
+ const version = "2.0.0-alpha.16";
19
19
 
20
20
  function sortObjectKeys(obj) {
21
21
  if (Array.isArray(obj)) {
@@ -2301,7 +2301,7 @@ const publishRemoveSchedule$3 = {
2301
2301
  };
2302
2302
  const publishResultPublishChangesNowPublished$3 = {
2303
2303
  source: "Changes are published, page is now published",
2304
- translation: "Änderungen sind publiziert, Seite ist jetzt publiziert"
2304
+ translation: "Änderungen und Seite sind publiziert"
2305
2305
  };
2306
2306
  const publishResultPublishChangesRemainPublished$3 = {
2307
2307
  source: "Changes are published, page remains published",
@@ -2315,9 +2315,13 @@ const publishResultScheduledChanges$3 = {
2315
2315
  source: "Changes will be published on @date",
2316
2316
  translation: "Änderungen werden am @date publiziert"
2317
2317
  };
2318
+ const publishResultScheduledPage$3 = {
2319
+ source: "Page will be published on @date",
2320
+ translation: "Seite wird am @date publiziert"
2321
+ };
2318
2322
  const publishRevisionLogMessage$3 = {
2319
- source: "Revision log message",
2320
- translation: "Protokollnachricht der Revision"
2323
+ source: "Change description",
2324
+ translation: "Beschreibung der Änderungen"
2321
2325
  };
2322
2326
  const publishRevisionLogMessageDescription$3 = {
2323
2327
  source: "Briefly describe the changes made",
@@ -2335,7 +2339,7 @@ const publishScheduleDate$3 = {
2335
2339
  source: "Publication date",
2336
2340
  translation: "Veröffentlichungsdatum"
2337
2341
  };
2338
- const publishScheduleDateTooSoon = {
2342
+ const publishScheduleDateTooSoon$3 = {
2339
2343
  source: "The scheduled date must be at least 2 minutes in the future",
2340
2344
  translation: "Das geplante Datum muss mindestens 2 Minuten in der Zukunft liegen"
2341
2345
  };
@@ -2463,6 +2467,10 @@ const searchTourText$3 = {
2463
2467
  source: "Quickly find blocks on the current page or existing content to drag and drop as blocks into the page.",
2464
2468
  translation: "Finden Sie Blöcke auf der aktuellen Seite oder andere bestehende Inhalte wie Bilder oder Dokumente, um sie als Blöcke auf der Seite hinzuzufügen."
2465
2469
  };
2470
+ const selectAllBlocks$3 = {
2471
+ source: "Select all blocks",
2472
+ translation: "Alle Blöcke auswählen"
2473
+ };
2466
2474
  const selectAllOfBundle$3 = {
2467
2475
  source: "Select all \"@bundle\" blocks",
2468
2476
  translation: "Alle «@bundle» Blöcke auswählen"
@@ -3168,12 +3176,13 @@ const de = {
3168
3176
  publishResultPublishChangesRemainPublished: publishResultPublishChangesRemainPublished$3,
3169
3177
  publishResultSaveChanges: publishResultSaveChanges$3,
3170
3178
  publishResultScheduledChanges: publishResultScheduledChanges$3,
3179
+ publishResultScheduledPage: publishResultScheduledPage$3,
3171
3180
  publishRevisionLogMessage: publishRevisionLogMessage$3,
3172
3181
  publishRevisionLogMessageDescription: publishRevisionLogMessageDescription$3,
3173
3182
  publishSaveContent: publishSaveContent$3,
3174
3183
  publishSaveContents: publishSaveContents$3,
3175
3184
  publishScheduleDate: publishScheduleDate$3,
3176
- publishScheduleDateTooSoon: publishScheduleDateTooSoon,
3185
+ publishScheduleDateTooSoon: publishScheduleDateTooSoon$3,
3177
3186
  publishScheduleInSevenDays: publishScheduleInSevenDays$3,
3178
3187
  publishScheduleNextMonday: publishScheduleNextMonday$3,
3179
3188
  publishSchedulePublication: publishSchedulePublication$3,
@@ -3205,6 +3214,7 @@ const de = {
3205
3214
  searchBoxPlaceholder: searchBoxPlaceholder$3,
3206
3215
  searchToolbarLabel: searchToolbarLabel$3,
3207
3216
  searchTourText: searchTourText$3,
3217
+ selectAllBlocks: selectAllBlocks$3,
3208
3218
  selectAllOfBundle: selectAllOfBundle$3,
3209
3219
  selectionActionGroupTitle: selectionActionGroupTitle$3,
3210
3220
  settingsAdvanced: settingsAdvanced$3,
@@ -4558,10 +4568,14 @@ const publishResultScheduledChanges$2 = {
4558
4568
  source: "Changes will be published on @date",
4559
4569
  translation: ""
4560
4570
  };
4561
- const publishRevisionLogMessage$2 = {
4562
- source: "Revision log message",
4571
+ const publishResultScheduledPage$2 = {
4572
+ source: "Page will be published on @date",
4563
4573
  translation: ""
4564
4574
  };
4575
+ const publishRevisionLogMessage$2 = {
4576
+ source: "Change description",
4577
+ translation: "Description des modifications"
4578
+ };
4565
4579
  const publishRevisionLogMessageDescription$2 = {
4566
4580
  source: "Briefly describe the changes made",
4567
4581
  translation: ""
@@ -4578,6 +4592,10 @@ const publishScheduleDate$2 = {
4578
4592
  source: "Publication date",
4579
4593
  translation: ""
4580
4594
  };
4595
+ const publishScheduleDateTooSoon$2 = {
4596
+ source: "The scheduled date must be at least 2 minutes in the future",
4597
+ translation: ""
4598
+ };
4581
4599
  const publishScheduleInSevenDays$2 = {
4582
4600
  source: "In 7 days",
4583
4601
  translation: ""
@@ -4702,6 +4720,10 @@ const searchTourText$2 = {
4702
4720
  source: "Quickly find blocks on the current page or existing content to drag and drop as blocks into the page.",
4703
4721
  translation: ""
4704
4722
  };
4723
+ const selectAllBlocks$2 = {
4724
+ source: "Select all blocks",
4725
+ translation: ""
4726
+ };
4705
4727
  const selectAllOfBundle$2 = {
4706
4728
  source: "Select all \"@bundle\" blocks",
4707
4729
  translation: ""
@@ -5407,11 +5429,13 @@ const fr = {
5407
5429
  publishResultPublishChangesRemainPublished: publishResultPublishChangesRemainPublished$2,
5408
5430
  publishResultSaveChanges: publishResultSaveChanges$2,
5409
5431
  publishResultScheduledChanges: publishResultScheduledChanges$2,
5432
+ publishResultScheduledPage: publishResultScheduledPage$2,
5410
5433
  publishRevisionLogMessage: publishRevisionLogMessage$2,
5411
5434
  publishRevisionLogMessageDescription: publishRevisionLogMessageDescription$2,
5412
5435
  publishSaveContent: publishSaveContent$2,
5413
5436
  publishSaveContents: publishSaveContents$2,
5414
5437
  publishScheduleDate: publishScheduleDate$2,
5438
+ publishScheduleDateTooSoon: publishScheduleDateTooSoon$2,
5415
5439
  publishScheduleInSevenDays: publishScheduleInSevenDays$2,
5416
5440
  publishScheduleNextMonday: publishScheduleNextMonday$2,
5417
5441
  publishSchedulePublication: publishSchedulePublication$2,
@@ -5443,6 +5467,7 @@ const fr = {
5443
5467
  searchBoxPlaceholder: searchBoxPlaceholder$2,
5444
5468
  searchToolbarLabel: searchToolbarLabel$2,
5445
5469
  searchTourText: searchTourText$2,
5470
+ selectAllBlocks: selectAllBlocks$2,
5446
5471
  selectAllOfBundle: selectAllOfBundle$2,
5447
5472
  selectionActionGroupTitle: selectionActionGroupTitle$2,
5448
5473
  settingsAdvanced: settingsAdvanced$2,
@@ -6796,10 +6821,14 @@ const publishResultScheduledChanges$1 = {
6796
6821
  source: "Changes will be published on @date",
6797
6822
  translation: ""
6798
6823
  };
6799
- const publishRevisionLogMessage$1 = {
6800
- source: "Revision log message",
6824
+ const publishResultScheduledPage$1 = {
6825
+ source: "Page will be published on @date",
6801
6826
  translation: ""
6802
6827
  };
6828
+ const publishRevisionLogMessage$1 = {
6829
+ source: "Change description",
6830
+ translation: "Descrizione delle modifiche"
6831
+ };
6803
6832
  const publishRevisionLogMessageDescription$1 = {
6804
6833
  source: "Briefly describe the changes made",
6805
6834
  translation: ""
@@ -6816,6 +6845,10 @@ const publishScheduleDate$1 = {
6816
6845
  source: "Publication date",
6817
6846
  translation: ""
6818
6847
  };
6848
+ const publishScheduleDateTooSoon$1 = {
6849
+ source: "The scheduled date must be at least 2 minutes in the future",
6850
+ translation: ""
6851
+ };
6819
6852
  const publishScheduleInSevenDays$1 = {
6820
6853
  source: "In 7 days",
6821
6854
  translation: ""
@@ -6940,6 +6973,10 @@ const searchTourText$1 = {
6940
6973
  source: "Quickly find blocks on the current page or existing content to drag and drop as blocks into the page.",
6941
6974
  translation: ""
6942
6975
  };
6976
+ const selectAllBlocks$1 = {
6977
+ source: "Select all blocks",
6978
+ translation: ""
6979
+ };
6943
6980
  const selectAllOfBundle$1 = {
6944
6981
  source: "Select all \"@bundle\" blocks",
6945
6982
  translation: ""
@@ -7645,11 +7682,13 @@ const it = {
7645
7682
  publishResultPublishChangesRemainPublished: publishResultPublishChangesRemainPublished$1,
7646
7683
  publishResultSaveChanges: publishResultSaveChanges$1,
7647
7684
  publishResultScheduledChanges: publishResultScheduledChanges$1,
7685
+ publishResultScheduledPage: publishResultScheduledPage$1,
7648
7686
  publishRevisionLogMessage: publishRevisionLogMessage$1,
7649
7687
  publishRevisionLogMessageDescription: publishRevisionLogMessageDescription$1,
7650
7688
  publishSaveContent: publishSaveContent$1,
7651
7689
  publishSaveContents: publishSaveContents$1,
7652
7690
  publishScheduleDate: publishScheduleDate$1,
7691
+ publishScheduleDateTooSoon: publishScheduleDateTooSoon$1,
7653
7692
  publishScheduleInSevenDays: publishScheduleInSevenDays$1,
7654
7693
  publishScheduleNextMonday: publishScheduleNextMonday$1,
7655
7694
  publishSchedulePublication: publishSchedulePublication$1,
@@ -7681,6 +7720,7 @@ const it = {
7681
7720
  searchBoxPlaceholder: searchBoxPlaceholder$1,
7682
7721
  searchToolbarLabel: searchToolbarLabel$1,
7683
7722
  searchTourText: searchTourText$1,
7723
+ selectAllBlocks: selectAllBlocks$1,
7684
7724
  selectAllOfBundle: selectAllOfBundle$1,
7685
7725
  selectionActionGroupTitle: selectionActionGroupTitle$1,
7686
7726
  settingsAdvanced: settingsAdvanced$1,
@@ -9034,8 +9074,12 @@ const publishResultScheduledChanges = {
9034
9074
  source: "Changes will be published on @date",
9035
9075
  translation: ""
9036
9076
  };
9077
+ const publishResultScheduledPage = {
9078
+ source: "Page will be published on @date",
9079
+ translation: ""
9080
+ };
9037
9081
  const publishRevisionLogMessage = {
9038
- source: "Revision log message",
9082
+ source: "Change description",
9039
9083
  translation: ""
9040
9084
  };
9041
9085
  const publishRevisionLogMessageDescription = {
@@ -9054,6 +9098,10 @@ const publishScheduleDate = {
9054
9098
  source: "Publication date",
9055
9099
  translation: ""
9056
9100
  };
9101
+ const publishScheduleDateTooSoon = {
9102
+ source: "The scheduled date must be at least 2 minutes in the future",
9103
+ translation: ""
9104
+ };
9057
9105
  const publishScheduleInSevenDays = {
9058
9106
  source: "In 7 days",
9059
9107
  translation: ""
@@ -9178,6 +9226,10 @@ const searchTourText = {
9178
9226
  source: "Quickly find blocks on the current page or existing content to drag and drop as blocks into the page.",
9179
9227
  translation: "Find schnäll Blöck uf dr aktuälle Sitte oder bestehendi Inhält zum si als Blöck in d'Sitte z'zieh."
9180
9228
  };
9229
+ const selectAllBlocks = {
9230
+ source: "Select all blocks",
9231
+ translation: ""
9232
+ };
9181
9233
  const selectAllOfBundle = {
9182
9234
  source: "Select all \"@bundle\" blocks",
9183
9235
  translation: "Alli «@bundle»-Blöck uswähle"
@@ -9883,11 +9935,13 @@ const gsw_CH = {
9883
9935
  publishResultPublishChangesRemainPublished: publishResultPublishChangesRemainPublished,
9884
9936
  publishResultSaveChanges: publishResultSaveChanges,
9885
9937
  publishResultScheduledChanges: publishResultScheduledChanges,
9938
+ publishResultScheduledPage: publishResultScheduledPage,
9886
9939
  publishRevisionLogMessage: publishRevisionLogMessage,
9887
9940
  publishRevisionLogMessageDescription: publishRevisionLogMessageDescription,
9888
9941
  publishSaveContent: publishSaveContent,
9889
9942
  publishSaveContents: publishSaveContents,
9890
9943
  publishScheduleDate: publishScheduleDate,
9944
+ publishScheduleDateTooSoon: publishScheduleDateTooSoon,
9891
9945
  publishScheduleInSevenDays: publishScheduleInSevenDays,
9892
9946
  publishScheduleNextMonday: publishScheduleNextMonday,
9893
9947
  publishSchedulePublication: publishSchedulePublication,
@@ -9919,6 +9973,7 @@ const gsw_CH = {
9919
9973
  searchBoxPlaceholder: searchBoxPlaceholder,
9920
9974
  searchToolbarLabel: searchToolbarLabel,
9921
9975
  searchTourText: searchTourText,
9976
+ selectAllBlocks: selectAllBlocks,
9922
9977
  selectAllOfBundle: selectAllOfBundle,
9923
9978
  selectionActionGroupTitle: selectionActionGroupTitle,
9924
9979
  settingsAdvanced: settingsAdvanced,
@@ -32,6 +32,9 @@
32
32
  <slot />
33
33
  </div>
34
34
  </div>
35
+ <div v-if="$slots['pre-footer']" class="bk-dialog-pre-footer">
36
+ <slot name="pre-footer" />
37
+ </div>
35
38
  <div v-if="!hideButtons" class="bk bk-dialog-footer">
36
39
  <button
37
40
  class="bk-button"
@@ -35,6 +35,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
35
35
  canSubmit: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
37
37
  default?: (props: {}) => any;
38
+ } & {
39
+ 'pre-footer'?: (props: {}) => any;
38
40
  }>;
39
41
  export default _default;
40
42
  type __VLS_WithSlots<T, S> = T & {
@@ -8,6 +8,7 @@ varying vec3 v_color;
8
8
  uniform float u_scale;
9
9
  uniform float u_dpi;
10
10
  uniform vec2 u_resolution;
11
+ uniform float u_active_hover_nesting_level;
11
12
 
12
13
  float roundedBoxSDF(vec2 CenterPosition, vec2 Size, float Radius) {
13
14
  return length(max(abs(CenterPosition) - Size + Radius, 0.0)) - Radius;
@@ -74,7 +75,12 @@ void main() {
74
75
  : alphaInner * 0.2;
75
76
 
76
77
  if (v_is_hover_area >= 1.0) {
77
- adjustedAlphaFill *= 0.5;
78
+ // If nesting level is 0, don't render the fill (border only)
79
+ if (u_active_hover_nesting_level < 0.5) {
80
+ adjustedAlphaFill = 0.0;
81
+ } else {
82
+ adjustedAlphaFill *= 0.5;
83
+ }
78
84
  }
79
85
 
80
86
  if (alphaBorder > 0.0) {
@@ -444,6 +444,7 @@ class DropTargetRectangleBufferCollector extends RectangleBufferCollector {
444
444
  false
445
445
  );
446
446
  }
447
+ this.processPendingRects();
447
448
  const hasChanged = lengthBefore !== this.positions.length;
448
449
  if (hasChanged) {
449
450
  this.bufferInfo = this.createBufferInfo();
@@ -483,7 +484,9 @@ class DropTargetRectangleBufferCollector extends RectangleBufferCollector {
483
484
  return null;
484
485
  }
485
486
  }
486
- const collector = new DropTargetRectangleBufferCollector(gl);
487
+ const collector = new DropTargetRectangleBufferCollector(gl, {
488
+ deferredMode: true
489
+ });
487
490
  if (gl) {
488
491
  collector.addRectangle(
489
492
  {
@@ -541,6 +544,18 @@ const activeHoverRect = computed(() => {
541
544
  return [0, 0, 0, 0];
542
545
  }
543
546
  const outset = activeHoverField.value.field.nestingLevel === 0 ? 0 : 20;
547
+ if (activeHoverField.value.emptyChild) {
548
+ const emptyChildId = activeHoverField.value.emptyChild.id;
549
+ const adjustedRect = collector.rects[emptyChildId];
550
+ if (adjustedRect) {
551
+ return [
552
+ adjustedRect.x - outset,
553
+ adjustedRect.y - outset,
554
+ adjustedRect.width + 2 * outset,
555
+ adjustedRect.height + 2 * outset
556
+ ];
557
+ }
558
+ }
544
559
  return [
545
560
  activeHoverField.value.x - outset,
546
561
  activeHoverField.value.y - outset,
@@ -551,6 +566,9 @@ const activeHoverRect = computed(() => {
551
566
  const activeHoverColor = computed(() => {
552
567
  return getColorForField(activeHoverField.value);
553
568
  });
569
+ const activeHoverFieldNestingLevel = computed(() => {
570
+ return activeHoverField.value?.field.nestingLevel ?? 0;
571
+ });
554
572
  const uniforms = computed(() => {
555
573
  const index = active.value?.index;
556
574
  return {
@@ -561,7 +579,8 @@ const uniforms = computed(() => {
561
579
  u_color_hover_area: toShaderColor(activeHoverColor.value),
562
580
  u_color_area: toShaderColor(theme.teal.value.normal),
563
581
  u_active_rect_id: index === void 0 ? -1 : index,
564
- u_active_hover_rect: activeHoverRect.value
582
+ u_active_hover_rect: activeHoverRect.value,
583
+ u_active_hover_nesting_level: activeHoverFieldNestingLevel.value
565
584
  };
566
585
  });
567
586
  const dragBox = ref({
@@ -621,6 +640,7 @@ onBlokkliEvent("canvas:draw", () => {
621
640
  gl.useProgram(programInfo.program);
622
641
  animation.setSharedUniforms(gl, programInfo);
623
642
  }
643
+ const { info, hasChanged } = collector.getBufferInfo();
624
644
  if (!props.isTouch) {
625
645
  if (cursorIsInsideClipped()) {
626
646
  const closest = collector.getClosestIntersectingRect(
@@ -632,7 +652,6 @@ onBlokkliEvent("canvas:draw", () => {
632
652
  active.value = null;
633
653
  }
634
654
  }
635
- const { info, hasChanged } = collector.getBufferInfo();
636
655
  if (programInfo && gl) {
637
656
  setHoveredFieldArea(dragBox.value, mouseAbsolute);
638
657
  setUniforms(programInfo, uniforms.value);
@@ -17,6 +17,7 @@ uniform vec3 u_color_field_3;
17
17
  uniform vec3 u_color_area;
18
18
  uniform vec3 u_color_hover_area;
19
19
  uniform vec4 u_active_hover_rect;
20
+ uniform float u_active_hover_nesting_level;
20
21
  uniform float u_dpi;
21
22
 
22
23
  varying vec4 v_quad;
@@ -31,8 +31,8 @@
31
31
  </div>
32
32
 
33
33
  <!-- Result State -->
34
- <div class="bk-publish-summary-state">
35
- <div class="bk-publish-summary-state-icon" :class="resultStateClass">
34
+ <div class="bk-publish-summary-state" :class="resultStateClass">
35
+ <div>
36
36
  <Icon :name="resultStateIcon" />
37
37
  </div>
38
38
  <div class="bk-publish-summary-state-label">
@@ -78,7 +78,7 @@
78
78
  <FormTextarea
79
79
  id="revision-message"
80
80
  v-model="revisionMessage"
81
- :label="$t('publishRevisionLogMessage', 'Revision log message')"
81
+ :label="$t('publishRevisionLogMessage', 'Change description')"
82
82
  :description="
83
83
  $t(
84
84
  'publishRevisionLogMessageDescription',
@@ -143,7 +143,9 @@
143
143
  </tbody>
144
144
  </table>
145
145
  </FormItem>
146
- <FormItem class="bk-is-summary">
146
+ </div>
147
+ <template #pre-footer>
148
+ <div>
147
149
  <h3 class="bk-form-label">
148
150
  {{ $t("publishSummary", "Summary") }}
149
151
  </h3>
@@ -154,8 +156,8 @@
154
156
  :action-label="actionLabel"
155
157
  :result-state-label="resultStateLabel"
156
158
  />
157
- </FormItem>
158
- </div>
159
+ </div>
160
+ </template>
159
161
  </DialogModal>
160
162
  </template>
161
163
 
@@ -250,10 +252,12 @@ const publishModeOptions = computed(() => {
250
252
  return options;
251
253
  });
252
254
  const scheduleDate = ref(publishOn.value || "");
253
- console.log("SET REIVISON LOG MESSAGE");
254
255
  if (publishOptions.value?.revisionLogMessage) {
255
256
  revisionMessage.value = publishOptions.value.revisionLogMessage;
256
257
  }
258
+ if (!isCurrentlyPublished.value) {
259
+ publishMode.value = "save";
260
+ }
257
261
  if (publishOn.value) {
258
262
  publishMode.value = "scheduled";
259
263
  }
@@ -400,9 +404,15 @@ const resultStateLabel = computed(() => {
400
404
  }
401
405
  if (publishMode.value === "scheduled" && scheduleDate.value) {
402
406
  const formattedDate = ui.formatDate(scheduleDate.value);
407
+ if (isCurrentlyPublished.value) {
408
+ return $t(
409
+ "publishResultScheduledChanges",
410
+ "Changes will be published on @date"
411
+ ).replace("@date", formattedDate);
412
+ }
403
413
  return $t(
404
- "publishResultScheduledChanges",
405
- "Changes will be published on @date"
414
+ "publishResultScheduledPage",
415
+ "Page will be published on @date"
406
416
  ).replace("@date", formattedDate);
407
417
  }
408
418
  if (isCurrentlyPublished.value) {
@@ -85,13 +85,24 @@ const itemDropdownItems = computed(() => {
85
85
  )
86
86
  }
87
87
  ];
88
+ } else if (selection.hasHostSelected.value) {
89
+ return [
90
+ {
91
+ id: "select-all-blocks",
92
+ label: $t("selectAllBlocks", "Select all blocks")
93
+ }
94
+ ];
88
95
  }
89
96
  return [];
90
97
  });
91
98
  function onSelectDropdownItem(item) {
92
- if (item.id === "select-all-of-bundle" && selectedBundle.value) {
93
- const uuids = state.getAllUuids(selectedBundle.value);
94
- eventBus.emit("select", uuids);
99
+ if (item.id === "select-all-of-bundle") {
100
+ if (selectedBundle.value) {
101
+ const uuids = state.getAllUuids(selectedBundle.value);
102
+ eventBus.emit("select", uuids);
103
+ }
104
+ } else if (item.id === "select-all-blocks") {
105
+ selectAllBlocks();
95
106
  }
96
107
  }
97
108
  const artboardElement = ui.artboardElement();
@@ -226,6 +237,12 @@ const visuallySelectBlocks = (toggleUuid) => {
226
237
  }
227
238
  return filter(encompassingRect);
228
239
  };
240
+ function selectAllBlocks() {
241
+ eventBus.emit(
242
+ "select:end",
243
+ getSelectAllUuids(dom.getAllBlocks(), selection.blocks.value)
244
+ );
245
+ }
229
246
  onBlokkliEvent("select:shiftToggle", (uuid) => {
230
247
  const uuids = visuallySelectBlocks(uuid);
231
248
  if (uuids) {
@@ -263,10 +280,7 @@ onBlokkliEvent("keyPressed", (e) => {
263
280
  return;
264
281
  }
265
282
  e.originalEvent.preventDefault();
266
- eventBus.emit(
267
- "select:end",
268
- getSelectAllUuids(dom.getAllBlocks(), selection.blocks.value)
269
- );
283
+ selectAllBlocks();
270
284
  }
271
285
  });
272
286
  </script>
@@ -59,7 +59,7 @@ export function defineBlokkli(arg) {
59
59
  ...editContext?.mutatedOptions[uuid] || {}
60
60
  };
61
61
  }
62
- const optionKey = bundle === BUNDLE_BLOKKLI_FRAGMENT ? "fragment:" + item?.value.fragmentName + "__default" : identifier;
62
+ const optionKey = bundle === BUNDLE_BLOKKLI_FRAGMENT ? "fragment:" + item?.value.fragmentName : identifier;
63
63
  const runtimeOptionDefinitions = (editContext?.definitions.runtimeOptions.value || OPTIONS)[optionKey] || {};
64
64
  const result = Object.entries(runtimeOptionDefinitions).reduce((acc, [key, v]) => {
65
65
  const definition = v;