@pobuca/email-builder 1.4.1 → 1.5.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.
@@ -774,6 +774,11 @@
774
774
  return Structure;
775
775
  }());
776
776
 
777
+ var nextBlockId = 0;
778
+ function createBlockId() {
779
+ nextBlockId += 1;
780
+ return "pb-block-" + Date.now().toString(36) + "-" + nextBlockId.toString(36);
781
+ }
777
782
  var AIPBlock = /** @class */ (function () {
778
783
  function AIPBlock() {
779
784
  }
@@ -787,6 +792,7 @@
787
792
  }; }
788
793
  this.innerText = innerText;
789
794
  this.state = state;
795
+ this.id = createBlockId();
790
796
  this.type = 'text';
791
797
  this.icon = 'text_format';
792
798
  this.options = {
@@ -823,6 +829,7 @@
823
829
  }; }
824
830
  this.src = src;
825
831
  this.state = state;
832
+ this.id = createBlockId();
826
833
  this.type = 'image';
827
834
  this.icon = 'image';
828
835
  this.options = {
@@ -881,6 +888,7 @@
881
888
  this.src = src;
882
889
  this.posterSrc = posterSrc;
883
890
  this.state = state;
891
+ this.id = createBlockId();
884
892
  this.type = 'video';
885
893
  this.icon = 'videocam';
886
894
  this.options = {
@@ -925,6 +933,7 @@
925
933
  }; }
926
934
  this.innerText = innerText;
927
935
  this.state = state;
936
+ this.id = createBlockId();
928
937
  this.type = 'button';
929
938
  this.icon = 'radio_button_checked';
930
939
  this.options = {
@@ -979,6 +988,7 @@
979
988
  message: ''
980
989
  }; }
981
990
  this.state = state;
991
+ this.id = createBlockId();
982
992
  this.type = 'divider';
983
993
  this.icon = 'remove';
984
994
  this.options = {
@@ -1006,6 +1016,7 @@
1006
1016
  message: ''
1007
1017
  }; }
1008
1018
  this.state = state;
1019
+ this.id = createBlockId();
1009
1020
  this.type = 'spacer';
1010
1021
  this.icon = 'vertical_align_center';
1011
1022
  this.title = $localize(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject([":@@spacer_block:Spacer"], [":@@spacer_block:Spacer"])));
@@ -1030,6 +1041,7 @@
1030
1041
  }; }
1031
1042
  this.networks = networks;
1032
1043
  this.state = state;
1044
+ this.id = createBlockId();
1033
1045
  this.type = 'social';
1034
1046
  this.icon = 'share';
1035
1047
  this.title = $localize(templateObject_7 || (templateObject_7 = __makeTemplateObject([":@@share_block:Social"], [":@@share_block:Social"])));
@@ -1069,6 +1081,18 @@
1069
1081
  }
1070
1082
  return SocialBlock;
1071
1083
  }());
1084
+ function assignBlockId(block, replace) {
1085
+ if (replace === void 0) { replace = false; }
1086
+ if (!block.id || replace) {
1087
+ Object.defineProperty(block, 'id', {
1088
+ configurable: true,
1089
+ enumerable: true,
1090
+ value: createBlockId(),
1091
+ writable: true
1092
+ });
1093
+ }
1094
+ return block.id;
1095
+ }
1072
1096
  var templateObject_1$8, templateObject_2$8, templateObject_3$7, templateObject_4$6, templateObject_5$3, templateObject_6$2, templateObject_7;
1073
1097
 
1074
1098
  /*
@@ -1861,6 +1885,9 @@
1861
1885
  "TextBlock": {
1862
1886
  "type": "object",
1863
1887
  "properties": {
1888
+ "id": {
1889
+ "type": "string"
1890
+ },
1864
1891
  "type": {
1865
1892
  "type": "string",
1866
1893
  "enum": [
@@ -1888,6 +1915,7 @@
1888
1915
  },
1889
1916
  "additionalProperties": false,
1890
1917
  "required": [
1918
+ "id",
1891
1919
  "type",
1892
1920
  "icon",
1893
1921
  "options",
@@ -2022,6 +2050,9 @@
2022
2050
  "ImageBlock": {
2023
2051
  "type": "object",
2024
2052
  "properties": {
2053
+ "id": {
2054
+ "type": "string"
2055
+ },
2025
2056
  "type": {
2026
2057
  "type": "string",
2027
2058
  "enum": [
@@ -2049,6 +2080,7 @@
2049
2080
  },
2050
2081
  "additionalProperties": false,
2051
2082
  "required": [
2083
+ "id",
2052
2084
  "type",
2053
2085
  "icon",
2054
2086
  "options",
@@ -2133,6 +2165,9 @@
2133
2165
  "VideoBlock": {
2134
2166
  "type": "object",
2135
2167
  "properties": {
2168
+ "id": {
2169
+ "type": "string"
2170
+ },
2136
2171
  "type": {
2137
2172
  "type": "string",
2138
2173
  "enum": [
@@ -2163,6 +2198,7 @@
2163
2198
  },
2164
2199
  "additionalProperties": false,
2165
2200
  "required": [
2201
+ "id",
2166
2202
  "type",
2167
2203
  "icon",
2168
2204
  "options",
@@ -2212,6 +2248,9 @@
2212
2248
  "ButtonBlock": {
2213
2249
  "type": "object",
2214
2250
  "properties": {
2251
+ "id": {
2252
+ "type": "string"
2253
+ },
2215
2254
  "type": {
2216
2255
  "type": "string",
2217
2256
  "enum": [
@@ -2239,6 +2278,7 @@
2239
2278
  },
2240
2279
  "additionalProperties": false,
2241
2280
  "required": [
2281
+ "id",
2242
2282
  "type",
2243
2283
  "icon",
2244
2284
  "options",
@@ -2299,6 +2339,9 @@
2299
2339
  "DividerBlock": {
2300
2340
  "type": "object",
2301
2341
  "properties": {
2342
+ "id": {
2343
+ "type": "string"
2344
+ },
2302
2345
  "type": {
2303
2346
  "type": "string",
2304
2347
  "enum": [
@@ -2323,6 +2366,7 @@
2323
2366
  },
2324
2367
  "additionalProperties": false,
2325
2368
  "required": [
2369
+ "id",
2326
2370
  "type",
2327
2371
  "icon",
2328
2372
  "options",
@@ -2350,6 +2394,9 @@
2350
2394
  "SpacerBlock": {
2351
2395
  "type": "object",
2352
2396
  "properties": {
2397
+ "id": {
2398
+ "type": "string"
2399
+ },
2353
2400
  "type": {
2354
2401
  "type": "string",
2355
2402
  "enum": [
@@ -2374,6 +2421,7 @@
2374
2421
  },
2375
2422
  "additionalProperties": false,
2376
2423
  "required": [
2424
+ "id",
2377
2425
  "type",
2378
2426
  "icon",
2379
2427
  "title",
@@ -2401,6 +2449,9 @@
2401
2449
  "SocialBlock": {
2402
2450
  "type": "object",
2403
2451
  "properties": {
2452
+ "id": {
2453
+ "type": "string"
2454
+ },
2404
2455
  "type": {
2405
2456
  "type": "string",
2406
2457
  "enum": [
@@ -2431,6 +2482,7 @@
2431
2482
  },
2432
2483
  "additionalProperties": false,
2433
2484
  "required": [
2485
+ "id",
2434
2486
  "type",
2435
2487
  "icon",
2436
2488
  "title",
@@ -3131,6 +3183,10 @@
3131
3183
  enumerable: false,
3132
3184
  configurable: true
3133
3185
  });
3186
+ PbEmailObjectStoreService.prototype.assignBlockIds = function (structures, replace) {
3187
+ if (replace === void 0) { replace = false; }
3188
+ structures.forEach(function (structure) { return structure.elements.forEach(function (column) { return column.forEach(function (block) { return assignBlockId(block, replace); }); }); });
3189
+ };
3134
3190
  PbEmailObjectStoreService.prototype.createHTMLTemplate$ = function () {
3135
3191
  var _this = this;
3136
3192
  return this.emailAsObservable$.pipe(operators.switchMap(function (email) {
@@ -3189,6 +3245,7 @@
3189
3245
  if (!newEmail.structures || !newEmail.general) {
3190
3246
  throw new Error('Injected object is not a valid PBEmail');
3191
3247
  }
3248
+ this.assignBlockIds(newEmail.structures);
3192
3249
  this.Email = newEmail;
3193
3250
  this.reset();
3194
3251
  };
@@ -3201,6 +3258,7 @@
3201
3258
  item.data.elements = Array.from({ length: item.data.columns }, function () { return []; });
3202
3259
  }
3203
3260
  var newStructure = Object.assign(Object.assign({ id: Date.now() }, cloneDeep(item.data)), { isModule: isModule });
3261
+ this.assignBlockIds([newStructure], true);
3204
3262
  structures.splice(currentIndex, 0, newStructure);
3205
3263
  this.markForCheck();
3206
3264
  return newStructure;
@@ -3213,6 +3271,7 @@
3213
3271
  PbEmailObjectStoreService.prototype.duplicateStructure = function (index) {
3214
3272
  var _c = this.Email.structures, structures = _c === void 0 ? [] : _c;
3215
3273
  var newStructure = cloneDeep(Object.assign(Object.assign({}, structures[index]), { id: Date.now() }));
3274
+ this.assignBlockIds([newStructure], true);
3216
3275
  structures.splice(index, 0, newStructure);
3217
3276
  this.markForCheck();
3218
3277
  return newStructure;
@@ -3227,7 +3286,9 @@
3227
3286
  // console.log(id);
3228
3287
  // console.log(item);
3229
3288
  if (id === 'block-elements') {
3230
- column.splice(currentIndex, 0, cloneDeep(item.data));
3289
+ var newBlock = cloneDeep(item.data);
3290
+ assignBlockId(newBlock, true);
3291
+ column.splice(currentIndex, 0, newBlock);
3231
3292
  }
3232
3293
  else {
3233
3294
  dragDrop.transferArrayItem(data, column, previousIndex, currentIndex);
@@ -3241,6 +3302,7 @@
3241
3302
  };
3242
3303
  PbEmailObjectStoreService.prototype.duplicateBlock = function (key, column, block) {
3243
3304
  var newBlock = cloneDeep(block);
3305
+ assignBlockId(newBlock, true);
3244
3306
  column.splice(key, 0, newBlock);
3245
3307
  this.markForCheck();
3246
3308
  return newBlock;
@@ -3460,6 +3522,8 @@
3460
3522
  operators.shareReplay());
3461
3523
  this._currentEditingBlock$ = new rxjs.BehaviorSubject(null);
3462
3524
  this.currentEditingBlock$ = this._currentEditingBlock$.pipe(operators.subscribeOn(rxjs.animationFrameScheduler), operators.distinctUntilChanged(), operators.catchError(function () { return rxjs.of(null); }), operators.shareReplay());
3525
+ this._blockHighlight$ = new rxjs.BehaviorSubject(null);
3526
+ this.blockHighlight$ = this._blockHighlight$.asObservable();
3463
3527
  this._editGeneralSettings$ = new rxjs.Subject();
3464
3528
  this.editGeneralSettings$ = this._editGeneralSettings$.pipe(operators.subscribeOn(rxjs.animationFrameScheduler), operators.tap(function () { return _this.changeTabIndex(2); }), operators.distinctUntilChanged(), operators.shareReplay());
3465
3529
  this._currentTabIndex$ = new rxjs.BehaviorSubject(0);
@@ -3482,6 +3546,13 @@
3482
3546
  PbUserInterfaceService.prototype.changeTabIndex = function (index) {
3483
3547
  this._currentTabIndex$.next(index);
3484
3548
  };
3549
+ PbUserInterfaceService.prototype.highlightBlock = function (blockId, options) {
3550
+ if (options === void 0) { options = {}; }
3551
+ this._blockHighlight$.next({ blockId: blockId, options: options });
3552
+ };
3553
+ PbUserInterfaceService.prototype.clearBlockHighlight = function () {
3554
+ this._blockHighlight$.next(null);
3555
+ };
3485
3556
  PbUserInterfaceService.prototype.confirmDialog$ = function () {
3486
3557
  return this.matDialog
3487
3558
  .open(ConfirmDialogComponent)
@@ -3534,6 +3605,7 @@
3534
3605
  };
3535
3606
  PbUserInterfaceService.prototype.reset = function () {
3536
3607
  this.resetElements();
3608
+ this.clearBlockHighlight();
3537
3609
  this.changeTabIndex(0);
3538
3610
  };
3539
3611
  return PbUserInterfaceService;
@@ -3596,6 +3668,23 @@
3596
3668
  PbEmailBuilderService.prototype.openCustomSidebarTab = function () {
3597
3669
  this.pbUserInterface.changeTabIndex(CUSTOM_SIDEBAR_TAB_INDEX);
3598
3670
  };
3671
+ /**
3672
+ * Highlights a canvas block by its persistent design JSON identifier.
3673
+ * Returns false when the identifier is not present in the current email.
3674
+ */
3675
+ PbEmailBuilderService.prototype.highlightBlock = function (blockId, options) {
3676
+ if (options === void 0) { options = {}; }
3677
+ var blockExists = this.Email.structures.some(function (structure) { return structure.elements.some(function (column) { return column.some(function (block) { return block.id === blockId; }); }); });
3678
+ if (!blockExists) {
3679
+ return false;
3680
+ }
3681
+ this.pbUserInterface.highlightBlock(blockId, options);
3682
+ return true;
3683
+ };
3684
+ /** Clears the current canvas block highlight. */
3685
+ PbEmailBuilderService.prototype.clearBlockHighlight = function () {
3686
+ this.pbUserInterface.clearBlockHighlight();
3687
+ };
3599
3688
  /**
3600
3689
  * Save current Email Template
3601
3690
  */
@@ -4231,6 +4320,7 @@
4231
4320
  }
4232
4321
  PbEmailBuilderComponent.prototype.writeValue = function (email) {
4233
4322
  try {
4323
+ this.userInterfaceService.clearBlockHighlight();
4234
4324
  this.emailObjectStore.setEmail(email);
4235
4325
  this.previewTemplate = false;
4236
4326
  this.changeDetectorRef.markForCheck();
@@ -5870,12 +5960,15 @@
5870
5960
  * All rights reserved.
5871
5961
  */
5872
5962
  var BlockComponent = /** @class */ (function () {
5873
- function BlockComponent(pbMiddlewaresService, userInterfaceService, emailObjectStore, chRef) {
5963
+ function BlockComponent(pbMiddlewaresService, userInterfaceService, emailObjectStore, chRef, elementRef) {
5874
5964
  this.pbMiddlewaresService = pbMiddlewaresService;
5875
5965
  this.userInterfaceService = userInterfaceService;
5876
5966
  this.emailObjectStore = emailObjectStore;
5877
5967
  this.chRef = chRef;
5968
+ this.elementRef = elementRef;
5878
5969
  this.isActive = false;
5970
+ this.isHighlighted = false;
5971
+ this.isDimmed = false;
5879
5972
  this.componentIsDestroyed$ = new rxjs.Subject();
5880
5973
  }
5881
5974
  BlockComponent.prototype.onHostClick = function (event) {
@@ -5889,6 +5982,28 @@
5889
5982
  enumerable: false,
5890
5983
  configurable: true
5891
5984
  });
5985
+ Object.defineProperty(BlockComponent.prototype, "isBlockHighlighted", {
5986
+ get: function () {
5987
+ return this.isHighlighted;
5988
+ },
5989
+ enumerable: false,
5990
+ configurable: true
5991
+ });
5992
+ Object.defineProperty(BlockComponent.prototype, "isBlockDimmed", {
5993
+ get: function () {
5994
+ return this.isDimmed;
5995
+ },
5996
+ enumerable: false,
5997
+ configurable: true
5998
+ });
5999
+ Object.defineProperty(BlockComponent.prototype, "blockId", {
6000
+ get: function () {
6001
+ var _a;
6002
+ return (_a = this.block) === null || _a === void 0 ? void 0 : _a.id;
6003
+ },
6004
+ enumerable: false,
6005
+ configurable: true
6006
+ });
5892
6007
  BlockComponent.prototype.removeBlock = function () {
5893
6008
  var _this = this;
5894
6009
  this.pbMiddlewaresService
@@ -5907,6 +6022,10 @@
5907
6022
  // this.chRef.markForCheck();
5908
6023
  });
5909
6024
  };
6025
+ BlockComponent.prototype.clearHighlight = function (event) {
6026
+ event.stopPropagation();
6027
+ this.userInterfaceService.clearBlockHighlight();
6028
+ };
5910
6029
  BlockComponent.prototype.editBlock = function () {
5911
6030
  var _this = this;
5912
6031
  this.pbMiddlewaresService
@@ -5923,6 +6042,23 @@
5923
6042
  .subscribe(function (isActive) {
5924
6043
  _this.isActive = isActive;
5925
6044
  });
6045
+ this.userInterfaceService.blockHighlight$
6046
+ .pipe(operators.takeUntil(this.componentIsDestroyed$))
6047
+ .subscribe(function (request) {
6048
+ _this.isHighlighted = (request === null || request === void 0 ? void 0 : request.blockId) === _this.block.id;
6049
+ _this.isDimmed = Boolean(request) && !_this.isHighlighted;
6050
+ if (request && _this.isHighlighted && request.options.scrollIntoView !== false) {
6051
+ var scrollIntoView = _this.elementRef.nativeElement.scrollIntoView;
6052
+ if (typeof scrollIntoView === 'function') {
6053
+ scrollIntoView.call(_this.elementRef.nativeElement, {
6054
+ behavior: request.options.behavior || 'smooth',
6055
+ block: request.options.block || 'center',
6056
+ inline: 'nearest'
6057
+ });
6058
+ }
6059
+ }
6060
+ _this.chRef.markForCheck();
6061
+ });
5926
6062
  };
5927
6063
  BlockComponent.prototype.ngDoCheck = function () {
5928
6064
  if (this.isActive) {
@@ -5938,23 +6074,27 @@
5938
6074
  BlockComponent.decorators = [
5939
6075
  { type: i0.Component, args: [{
5940
6076
  selector: 'pb-block',
5941
- template: "<!--\n ~ Copyright (c) 2024 Pobuca.\n ~ All rights reserved.\n -->\n\n<ng-content select=\".move\"></ng-content>\n<div class=\"tools\" fxLayout fxLayoutGap=\"0.25rem\">\n <button mat-icon-button (click)=\"duplicateBlock()\" i18n-matTooltip=\"block|Duplicate Block\"\n matTooltip=\"Duplicate Block\">\n <mat-icon i18n-aria-label=\"block|Duplicate Block\" aria-label=\"Duplicate block\" inline>file_copy</mat-icon>\n </button>\n <button mat-icon-button (click)=\"removeBlock()\" i18n-matTooltip=\"block|Remove Block\" class=\"delete\"\n matTooltip=\"Remove Block\">\n <mat-icon i18n-aria-label=\"block|Remove Block\" aria-label=\"Delete block\" inline>delete_forever</mat-icon>\n </button>\n</div>\n<ng-content *pbDynamicComponent=\"block\"></ng-content>\n",
6077
+ template: "<!--\n ~ Copyright (c) 2024 Pobuca.\n ~ All rights reserved.\n -->\n\n<ng-content select=\".move\"></ng-content>\n<button\n *ngIf=\"isHighlighted\"\n type=\"button\"\n mat-icon-button\n class=\"highlight-clear\"\n (click)=\"clearHighlight($event)\"\n i18n-aria-label=\"block|Clear highlighted block\"\n aria-label=\"Clear block highlight\"\n i18n-matTooltip=\"block|Clear highlighted block\"\n matTooltip=\"Clear highlight\">\n <mat-icon aria-hidden=\"true\" inline>close</mat-icon>\n</button>\n<div class=\"tools\" fxLayout fxLayoutGap=\"0.25rem\">\n <button mat-icon-button (click)=\"duplicateBlock()\" i18n-matTooltip=\"block|Duplicate Block\"\n matTooltip=\"Duplicate Block\">\n <mat-icon i18n-aria-label=\"block|Duplicate Block\" aria-label=\"Duplicate block\" inline>file_copy</mat-icon>\n </button>\n <button mat-icon-button (click)=\"removeBlock()\" i18n-matTooltip=\"block|Remove Block\" class=\"delete\"\n matTooltip=\"Remove Block\">\n <mat-icon i18n-aria-label=\"block|Remove Block\" aria-label=\"Delete block\" inline>delete_forever</mat-icon>\n </button>\n</div>\n<ng-content *pbDynamicComponent=\"block\"></ng-content>\n",
5942
6078
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5943
- styles: ["/*!\n * Copyright (c) 2024 Pobuca.\n * All rights reserved.\n */:host{display:block;position:relative}:host.active:not(.cdk-drag-preview)>.tools{opacity:1;display:flex!important}:host.active,:host.cdk-drag-placeholder,:host.cdk-drag-preview{z-index:3;box-shadow:0 0 0 2px #3f51b5}:host:hover:not(.active){box-shadow:0 0 0 2px rgba(63,81,181,.5)}:host>.tools{direction:ltr;opacity:0;z-index:4;position:absolute;max-width:100%;bottom:-25px;right:0;display:none!important;transition:all .5s ease-in-out}:host>.tools>button{background:#3f51b5;border-radius:3px;color:#fff;line-height:0;width:25px;height:25px}:host>.tools>button mat-icon{font-size:14px;margin-top:-3px}:host>.tools ::ng-deep+*>*{transition:all .5s cubic-bezier(.445,.05,.55,.95)}"]
6079
+ styles: ["/*!\n * Copyright (c) 2024 Pobuca.\n * All rights reserved.\n */:host{display:block;position:relative;transition:box-shadow .2s ease-in-out,opacity .2s ease-in-out}:host.active:not(.cdk-drag-preview)>.tools{opacity:1;display:flex!important}:host.active,:host.cdk-drag-placeholder,:host.cdk-drag-preview{z-index:3;box-shadow:0 0 0 2px #3f51b5}:host:hover:not(.active){box-shadow:0 0 0 2px rgba(63,81,181,.5)}:host.pb-block-dimmed:not(.cdk-drag-preview){opacity:.3}:host.pb-block-highlighted:not(.cdk-drag-preview){opacity:1;z-index:4;box-shadow:0 0 0 3px #ff9800}:host>.highlight-clear{position:absolute;z-index:5;top:4px;right:4px;width:30px;height:30px;line-height:30px;color:#8a4f00;background:#fff;border:2px solid #ff9800;box-shadow:0 1px 4px rgba(0,0,0,.3)}:host>.highlight-clear mat-icon{font-size:18px;line-height:18px}:host>.tools{direction:ltr;opacity:0;z-index:4;position:absolute;max-width:100%;bottom:-25px;right:0;display:none!important;transition:all .5s ease-in-out}:host>.tools>button{background:#3f51b5;border-radius:3px;color:#fff;line-height:0;width:25px;height:25px}:host>.tools>button mat-icon{font-size:14px;margin-top:-3px}:host>.tools ::ng-deep+*>*{transition:all .5s cubic-bezier(.445,.05,.55,.95)}"]
5944
6080
  },] }
5945
6081
  ];
5946
6082
  BlockComponent.ctorParameters = function () { return [
5947
6083
  { type: PbUserMiddlewaresService },
5948
6084
  { type: PbUserInterfaceService },
5949
6085
  { type: PbEmailObjectStoreService },
5950
- { type: i0.ChangeDetectorRef }
6086
+ { type: i0.ChangeDetectorRef },
6087
+ { type: i0.ElementRef }
5951
6088
  ]; };
5952
6089
  BlockComponent.propDecorators = {
5953
6090
  block: [{ type: i0.Input }],
5954
6091
  column: [{ type: i0.Input }],
5955
6092
  index: [{ type: i0.Input }],
5956
6093
  onHostClick: [{ type: i0.HostListener, args: ['click', ['$event'],] }],
5957
- isBlockActive: [{ type: i0.HostBinding, args: ['class.active',] }]
6094
+ isBlockActive: [{ type: i0.HostBinding, args: ['class.active',] }],
6095
+ isBlockHighlighted: [{ type: i0.HostBinding, args: ['class.pb-block-highlighted',] }],
6096
+ isBlockDimmed: [{ type: i0.HostBinding, args: ['class.pb-block-dimmed',] }],
6097
+ blockId: [{ type: i0.HostBinding, args: ['attr.data-pb-block-id',] }]
5958
6098
  };
5959
6099
 
5960
6100
  var ImageUploadComponent = /** @class */ (function () {
@@ -6584,9 +6724,11 @@
6584
6724
  exports.Structure = Structure;
6585
6725
  exports.TextBlock = TextBlock;
6586
6726
  exports.VideoBlock = VideoBlock;
6727
+ exports.assignBlockId = assignBlockId;
6587
6728
  exports.bytesToSize = bytesToSize;
6588
6729
  exports.cloneDeep = cloneDeep;
6589
6730
  exports.createBackground = createBackground;
6731
+ exports.createBlockId = createBlockId;
6590
6732
  exports.createBorder = createBorder;
6591
6733
  exports.createCustomRestApiService = createCustomRestApiService;
6592
6734
  exports.createFont = createFont;