@foblex/m-render 2.8.4 → 2.8.6

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.
@@ -1519,11 +1519,11 @@ class ParseShowcase {
1519
1519
  class Mediatr {
1520
1520
  _injector = inject(Injector);
1521
1521
  static _executions = new Map();
1522
- static register(type, handler, index = '123') {
1523
- if (!type) {
1524
- throw new Error('Type must have a fToken static property: ' + index);
1522
+ static register(type, handler) {
1523
+ if (!type || !type.requestToken) {
1524
+ throw new Error('Type must have a requestToken static property');
1525
1525
  }
1526
- Mediatr._executions.set(type, handler);
1526
+ Mediatr._executions.set(type.requestToken, handler);
1527
1527
  }
1528
1528
  execute(request) {
1529
1529
  const token = request.constructor.requestToken;
@@ -1541,9 +1541,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
1541
1541
  type: Injectable
1542
1542
  }] });
1543
1543
 
1544
- function MExecution(requestType, index) {
1544
+ function MExecution(requestType) {
1545
1545
  return function (constructor) {
1546
- Mediatr.register(requestType, constructor, index);
1546
+ Mediatr.register(requestType, constructor);
1547
1547
  };
1548
1548
  }
1549
1549
 
@@ -1613,7 +1613,7 @@ let RenderDynamicComponent = class RenderDynamicComponent {
1613
1613
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: RenderDynamicComponent });
1614
1614
  };
1615
1615
  RenderDynamicComponent = __decorate([
1616
- MExecution(RenderDynamicComponentRequest.requestToken, '6')
1616
+ MExecution(RenderDynamicComponentRequest)
1617
1617
  ], RenderDynamicComponent);
1618
1618
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: RenderDynamicComponent, decorators: [{
1619
1619
  type: Injectable
@@ -1647,7 +1647,7 @@ let RenderExternalComponent = class RenderExternalComponent {
1647
1647
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: RenderExternalComponent });
1648
1648
  };
1649
1649
  RenderExternalComponent = __decorate([
1650
- MExecution(RenderExternalComponentRequest.requestToken, '7')
1650
+ MExecution(RenderExternalComponentRequest)
1651
1651
  ], RenderExternalComponent);
1652
1652
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: RenderExternalComponent, decorators: [{
1653
1653
  type: Injectable
@@ -1699,7 +1699,7 @@ let RenderInternalComponents = class RenderInternalComponents {
1699
1699
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: RenderInternalComponents });
1700
1700
  };
1701
1701
  RenderInternalComponents = __decorate([
1702
- MExecution(RenderInternalComponentsRequest.requestToken, '8')
1702
+ MExecution(RenderInternalComponentsRequest)
1703
1703
  ], RenderInternalComponents);
1704
1704
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: RenderInternalComponents, decorators: [{
1705
1705
  type: Injectable
@@ -2567,7 +2567,7 @@ let ActivateTocByHash = class ActivateTocByHash {
2567
2567
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: ActivateTocByHash });
2568
2568
  };
2569
2569
  ActivateTocByHash = __decorate([
2570
- MExecution(ActivateTocByHashRequest.requestToken, '1')
2570
+ MExecution(ActivateTocByHashRequest)
2571
2571
  ], ActivateTocByHash);
2572
2572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: ActivateTocByHash, decorators: [{
2573
2573
  type: Injectable
@@ -2615,7 +2615,7 @@ let CalculateAbsoluteTopToContainer = class CalculateAbsoluteTopToContainer {
2615
2615
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: CalculateAbsoluteTopToContainer });
2616
2616
  };
2617
2617
  CalculateAbsoluteTopToContainer = __decorate([
2618
- MExecution(CalculateAbsoluteTopToContainerRequest.requestToken, '2')
2618
+ MExecution(CalculateAbsoluteTopToContainerRequest)
2619
2619
  ], CalculateAbsoluteTopToContainer);
2620
2620
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: CalculateAbsoluteTopToContainer, decorators: [{
2621
2621
  type: Injectable
@@ -2627,7 +2627,7 @@ let CalculateHashFromScrollPositionAndActivateToc = class CalculateHashFromScrol
2627
2627
  _provider = inject(DocumentationStore);
2628
2628
  _scrollableContainer = inject(SCROLLABLE_CONTAINER);
2629
2629
  _mediatr = inject(Mediatr);
2630
- handle() {
2630
+ handle(payload) {
2631
2631
  let result;
2632
2632
  const containerScrollTop = this._getContainerScrollTop();
2633
2633
  const elementsWithTopPosition = this._calculateElementsTopPositions();
@@ -2676,7 +2676,7 @@ let CalculateHashFromScrollPositionAndActivateToc = class CalculateHashFromScrol
2676
2676
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: CalculateHashFromScrollPositionAndActivateToc });
2677
2677
  };
2678
2678
  CalculateHashFromScrollPositionAndActivateToc = __decorate([
2679
- MExecution(CalculateHashFromScrollPositionAndActivateTocRequest.requestToken, '3')
2679
+ MExecution(CalculateHashFromScrollPositionAndActivateTocRequest)
2680
2680
  ], CalculateHashFromScrollPositionAndActivateToc);
2681
2681
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: CalculateHashFromScrollPositionAndActivateToc, decorators: [{
2682
2682
  type: Injectable
@@ -2684,6 +2684,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
2684
2684
 
2685
2685
  class CalculateHashFromScrollPositionAndActivateTocRequest {
2686
2686
  static requestToken = Symbol('CalculateHashFromScrollPositionAndActivateTocRequest');
2687
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2688
+ constructor() { }
2687
2689
  }
2688
2690
 
2689
2691
  let CalculateTableOfContent = class CalculateTableOfContent {
@@ -2742,7 +2744,7 @@ let CalculateTableOfContent = class CalculateTableOfContent {
2742
2744
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: CalculateTableOfContent });
2743
2745
  };
2744
2746
  CalculateTableOfContent = __decorate([
2745
- MExecution(CalculateTableOfContentRequest.requestToken, '4')
2747
+ MExecution(CalculateTableOfContentRequest)
2746
2748
  ], CalculateTableOfContent);
2747
2749
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: CalculateTableOfContent, decorators: [{
2748
2750
  type: Injectable
@@ -2799,7 +2801,7 @@ let ScrollToElementInContainer = class ScrollToElementInContainer {
2799
2801
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: ScrollToElementInContainer });
2800
2802
  };
2801
2803
  ScrollToElementInContainer = __decorate([
2802
- MExecution(ScrollToElementInContainerRequest.requestToken, '5')
2804
+ MExecution(ScrollToElementInContainerRequest)
2803
2805
  ], ScrollToElementInContainer);
2804
2806
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: ScrollToElementInContainer, decorators: [{
2805
2807
  type: Injectable