@rulecms/widget-angular 0.2.1 → 0.3.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.
package/README.md CHANGED
@@ -80,6 +80,23 @@ Pass extra props — a click handler, a callback — to one component instance b
80
80
 
81
81
  `r-button` reads `onClick` from the bag. The renderer never inspects the contents. In development, a key that addresses no column in the widget is printed once so typos are visible while building.
82
82
 
83
+ ## Host `mounts`
84
+
85
+ Register an Angular component from your app so a Custom (`r-mount`) slot in the composer can render it by name. The name is a map key, not a string that becomes code. A miss is a placeholder.
86
+
87
+ ```html
88
+ <rulecms-widget
89
+ [publishedKey]="publishedKey"
90
+ [mounts]="mounts"
91
+ />
92
+ ```
93
+
94
+ ```ts
95
+ mounts = { 'booking-form': BookingFormComponent };
96
+ ```
97
+
98
+ Tell the marketer the exact name and the props the component reads. Event handlers still go through `componentProps` at that column's id — authored prop rows cannot become `onClick`. See `__docs__/CONTRACT_mounts.md` and [Mount Your Own Components](https://rulecms.com/docs/widget-mounts).
99
+
83
100
  ## Develop locally
84
101
 
85
102
  ```bash
@@ -2505,10 +2505,11 @@ class DisplayComponentComponent {
2505
2505
  styleProps: componentStyleProps,
2506
2506
  className: cardClassName,
2507
2507
  widgetInstanceProps: this.widgetInstanceProps,
2508
+ mounts: this.mounts,
2508
2509
  };
2509
2510
  }
2510
2511
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DisplayComponentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2511
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DisplayComponentComponent, isStandalone: true, selector: "rulecms-display-component", inputs: { componentType: "componentType", libraryId: "libraryId", componentAttributes: "componentAttributes", components: "components", styleProps: "styleProps", widgetInstanceProps: "widgetInstanceProps" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
2512
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DisplayComponentComponent, isStandalone: true, selector: "rulecms-display-component", inputs: { componentType: "componentType", libraryId: "libraryId", componentAttributes: "componentAttributes", components: "components", styleProps: "styleProps", widgetInstanceProps: "widgetInstanceProps", mounts: "mounts" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
2512
2513
  @if (card) {
2513
2514
  @if (needsWrapper) {
2514
2515
  <div [class]="wrapperClass || undefined" [ngStyle]="wrapperStyle">
@@ -2561,6 +2562,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2561
2562
  type: Input
2562
2563
  }], widgetInstanceProps: [{
2563
2564
  type: Input
2565
+ }], mounts: [{
2566
+ type: Input
2564
2567
  }] } });
2565
2568
 
2566
2569
  class RenderComponentsInnerComponent {
@@ -2628,7 +2631,7 @@ class RenderComponentsInnerComponent {
2628
2631
  });
2629
2632
  }
2630
2633
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RenderComponentsInnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2631
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RenderComponentsInnerComponent, isStandalone: true, selector: "rulecms-render-inner", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", isWithinCollection: "isWithinCollection", widgetCollections: "widgetCollections", showDropContainers: "showDropContainers", reduxDeviceDisplayType: "reduxDeviceDisplayType", plugins: "plugins", deviceDisplayType: "deviceDisplayType", componentProps: "componentProps", ancestorColumnIds: "ancestorColumnIds" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
2634
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RenderComponentsInnerComponent, isStandalone: true, selector: "rulecms-render-inner", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", isWithinCollection: "isWithinCollection", widgetCollections: "widgetCollections", showDropContainers: "showDropContainers", reduxDeviceDisplayType: "reduxDeviceDisplayType", plugins: "plugins", deviceDisplayType: "deviceDisplayType", componentProps: "componentProps", mounts: "mounts", ancestorColumnIds: "ancestorColumnIds" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
2632
2635
  <rulecms-embed-vertical
2633
2636
  [displayItemList]="displayItemList"
2634
2637
  [isComposeMode]="isComposeMode"
@@ -2657,6 +2660,7 @@ class RenderComponentsInnerComponent {
2657
2660
  [plugins]="plugins"
2658
2661
  [deviceDisplayType]="deviceDisplayType"
2659
2662
  [componentProps]="componentProps"
2663
+ [mounts]="mounts"
2660
2664
  [ancestorColumnIds]="childAncestorIds(col.id)"
2661
2665
  />
2662
2666
  } @else {
@@ -2667,6 +2671,7 @@ class RenderComponentsInnerComponent {
2667
2671
  [components]="components"
2668
2672
  [styleProps]="columnView(col).styleProps"
2669
2673
  [widgetInstanceProps]="instanceProps(col.id)"
2674
+ [mounts]="mounts"
2670
2675
  />
2671
2676
  }
2672
2677
  }
@@ -2674,7 +2679,7 @@ class RenderComponentsInnerComponent {
2674
2679
  </rulecms-embed-row>
2675
2680
  }
2676
2681
  </rulecms-embed-vertical>
2677
- `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsInnerComponent, selector: "rulecms-render-inner", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "plugins", "deviceDisplayType", "componentProps", "ancestorColumnIds"] }, { kind: "component", type: EmbedInVerticalContainerComponent, selector: "rulecms-embed-vertical", inputs: ["displayItemList", "isComposeMode", "showDropContainers", "isWithinCollection", "deviceDisplayType"] }, { kind: "component", type: EmbedInRowComponent, selector: "rulecms-embed-row", inputs: ["row", "isComposeMode", "showDropContainers", "isWithinCollection", "deviceDisplayType"] }, { kind: "component", type: DisplayComponentComponent, selector: "rulecms-display-component", inputs: ["componentType", "libraryId", "componentAttributes", "components", "styleProps", "widgetInstanceProps"] }] }); }
2682
+ `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsInnerComponent, selector: "rulecms-render-inner", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "plugins", "deviceDisplayType", "componentProps", "mounts", "ancestorColumnIds"] }, { kind: "component", type: EmbedInVerticalContainerComponent, selector: "rulecms-embed-vertical", inputs: ["displayItemList", "isComposeMode", "showDropContainers", "isWithinCollection", "deviceDisplayType"] }, { kind: "component", type: EmbedInRowComponent, selector: "rulecms-embed-row", inputs: ["row", "isComposeMode", "showDropContainers", "isWithinCollection", "deviceDisplayType"] }, { kind: "component", type: DisplayComponentComponent, selector: "rulecms-display-component", inputs: ["componentType", "libraryId", "componentAttributes", "components", "styleProps", "widgetInstanceProps", "mounts"] }] }); }
2678
2683
  }
2679
2684
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RenderComponentsInnerComponent, decorators: [{
2680
2685
  type: Component,
@@ -2711,6 +2716,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2711
2716
  [plugins]="plugins"
2712
2717
  [deviceDisplayType]="deviceDisplayType"
2713
2718
  [componentProps]="componentProps"
2719
+ [mounts]="mounts"
2714
2720
  [ancestorColumnIds]="childAncestorIds(col.id)"
2715
2721
  />
2716
2722
  } @else {
@@ -2721,6 +2727,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2721
2727
  [components]="components"
2722
2728
  [styleProps]="columnView(col).styleProps"
2723
2729
  [widgetInstanceProps]="instanceProps(col.id)"
2730
+ [mounts]="mounts"
2724
2731
  />
2725
2732
  }
2726
2733
  }
@@ -2753,6 +2760,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2753
2760
  args: [{ required: true }]
2754
2761
  }], componentProps: [{
2755
2762
  type: Input
2763
+ }], mounts: [{
2764
+ type: Input
2756
2765
  }], ancestorColumnIds: [{
2757
2766
  type: Input
2758
2767
  }] } });
@@ -2764,7 +2773,7 @@ class RenderComponentsForDeviceComponent {
2764
2773
  this.showDropContainers = false;
2765
2774
  }
2766
2775
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RenderComponentsForDeviceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2767
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RenderComponentsForDeviceComponent, isStandalone: true, selector: "rulecms-render-for-device", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", isWithinCollection: "isWithinCollection", widgetCollections: "widgetCollections", showDropContainers: "showDropContainers", reduxDeviceDisplayType: "reduxDeviceDisplayType", deviceDisplayType: "deviceDisplayType", plugins: "plugins", componentProps: "componentProps", ancestorColumnIds: "ancestorColumnIds" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
2776
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RenderComponentsForDeviceComponent, isStandalone: true, selector: "rulecms-render-for-device", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", isWithinCollection: "isWithinCollection", widgetCollections: "widgetCollections", showDropContainers: "showDropContainers", reduxDeviceDisplayType: "reduxDeviceDisplayType", deviceDisplayType: "deviceDisplayType", plugins: "plugins", componentProps: "componentProps", mounts: "mounts", ancestorColumnIds: "ancestorColumnIds" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
2768
2777
  @if (displayItemList?.rows?.length) {
2769
2778
  <rulecms-render-inner
2770
2779
  [displayItemList]="displayItemList"
@@ -2776,10 +2785,11 @@ class RenderComponentsForDeviceComponent {
2776
2785
  [plugins]="plugins"
2777
2786
  [deviceDisplayType]="deviceDisplayType"
2778
2787
  [componentProps]="componentProps"
2788
+ [mounts]="mounts"
2779
2789
  [ancestorColumnIds]="ancestorColumnIds"
2780
2790
  />
2781
2791
  }
2782
- `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsInnerComponent, selector: "rulecms-render-inner", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "plugins", "deviceDisplayType", "componentProps", "ancestorColumnIds"] }] }); }
2792
+ `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsInnerComponent, selector: "rulecms-render-inner", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "plugins", "deviceDisplayType", "componentProps", "mounts", "ancestorColumnIds"] }] }); }
2783
2793
  }
2784
2794
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RenderComponentsForDeviceComponent, decorators: [{
2785
2795
  type: Component,
@@ -2799,6 +2809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2799
2809
  [plugins]="plugins"
2800
2810
  [deviceDisplayType]="deviceDisplayType"
2801
2811
  [componentProps]="componentProps"
2812
+ [mounts]="mounts"
2802
2813
  [ancestorColumnIds]="ancestorColumnIds"
2803
2814
  />
2804
2815
  }
@@ -2827,6 +2838,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2827
2838
  args: [{ required: true }]
2828
2839
  }], componentProps: [{
2829
2840
  type: Input
2841
+ }], mounts: [{
2842
+ type: Input
2830
2843
  }], ancestorColumnIds: [{
2831
2844
  type: Input
2832
2845
  }] } });
@@ -2877,7 +2890,7 @@ class BreakpointVariantRenderComponent {
2877
2890
  this.variantStyles = buildBreakpointVariantStyles(this.resolvedScopeId);
2878
2891
  }
2879
2892
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BreakpointVariantRenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2880
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: BreakpointVariantRenderComponent, isStandalone: true, selector: "rulecms-breakpoint-variants", inputs: { displayItemList: "displayItemList", widgetCollections: "widgetCollections", plugins: "plugins", componentProps: "componentProps", scopeIdInput: "scopeIdInput" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
2893
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: BreakpointVariantRenderComponent, isStandalone: true, selector: "rulecms-breakpoint-variants", inputs: { displayItemList: "displayItemList", widgetCollections: "widgetCollections", plugins: "plugins", componentProps: "componentProps", mounts: "mounts", scopeIdInput: "scopeIdInput" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
2881
2894
  <rulecms-library-stylesheets [stylesheets]="plugins.sourceComponents?.stylesheets" />
2882
2895
  @if (!divergent) {
2883
2896
  <rulecms-render-for-device
@@ -2890,6 +2903,7 @@ class BreakpointVariantRenderComponent {
2890
2903
  deviceDisplayType="Desktop"
2891
2904
  [plugins]="plugins"
2892
2905
  [componentProps]="componentProps"
2906
+ [mounts]="mounts"
2893
2907
  />
2894
2908
  } @else {
2895
2909
  <style [innerText]="variantStyles"></style>
@@ -2905,11 +2919,12 @@ class BreakpointVariantRenderComponent {
2905
2919
  [deviceDisplayType]="device"
2906
2920
  [plugins]="plugins"
2907
2921
  [componentProps]="componentProps"
2922
+ [mounts]="mounts"
2908
2923
  />
2909
2924
  </div>
2910
2925
  }
2911
2926
  }
2912
- `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsForDeviceComponent, selector: "rulecms-render-for-device", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "deviceDisplayType", "plugins", "componentProps", "ancestorColumnIds"] }, { kind: "component", type: LibraryStylesheetsComponent, selector: "rulecms-library-stylesheets", inputs: ["stylesheets"] }] }); }
2927
+ `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsForDeviceComponent, selector: "rulecms-render-for-device", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "deviceDisplayType", "plugins", "componentProps", "mounts", "ancestorColumnIds"] }, { kind: "component", type: LibraryStylesheetsComponent, selector: "rulecms-library-stylesheets", inputs: ["stylesheets"] }] }); }
2913
2928
  }
2914
2929
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BreakpointVariantRenderComponent, decorators: [{
2915
2930
  type: Component,
@@ -2930,6 +2945,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2930
2945
  deviceDisplayType="Desktop"
2931
2946
  [plugins]="plugins"
2932
2947
  [componentProps]="componentProps"
2948
+ [mounts]="mounts"
2933
2949
  />
2934
2950
  } @else {
2935
2951
  <style [innerText]="variantStyles"></style>
@@ -2945,6 +2961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2945
2961
  [deviceDisplayType]="device"
2946
2962
  [plugins]="plugins"
2947
2963
  [componentProps]="componentProps"
2964
+ [mounts]="mounts"
2948
2965
  />
2949
2966
  </div>
2950
2967
  }
@@ -2963,6 +2980,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2963
2980
  args: [{ required: true }]
2964
2981
  }], componentProps: [{
2965
2982
  type: Input
2983
+ }], mounts: [{
2984
+ type: Input
2966
2985
  }], scopeIdInput: [{
2967
2986
  type: Input
2968
2987
  }] } });
@@ -3011,7 +3030,7 @@ class RenderComponentsComponent {
3011
3030
  this.deviceDisplayType = resolveDisplayDeviceType(this.phoneQuery?.matches ?? false, this.tabletQuery?.matches ?? false, this.reduxDeviceDisplayType);
3012
3031
  }
3013
3032
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RenderComponentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3014
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RenderComponentsComponent, isStandalone: true, selector: "rulecms-render-components", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", isWithinCollection: "isWithinCollection", widgetCollections: "widgetCollections", showDropContainers: "showDropContainers", reduxDeviceDisplayType: "reduxDeviceDisplayType", plugins: "plugins", componentProps: "componentProps" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
3033
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RenderComponentsComponent, isStandalone: true, selector: "rulecms-render-components", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", isWithinCollection: "isWithinCollection", widgetCollections: "widgetCollections", showDropContainers: "showDropContainers", reduxDeviceDisplayType: "reduxDeviceDisplayType", plugins: "plugins", componentProps: "componentProps", mounts: "mounts" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
3015
3034
  @if (!isWithinCollection) {
3016
3035
  <rulecms-library-stylesheets [stylesheets]="plugins.sourceComponents?.stylesheets" />
3017
3036
  }
@@ -3025,8 +3044,9 @@ class RenderComponentsComponent {
3025
3044
  [deviceDisplayType]="deviceDisplayType"
3026
3045
  [plugins]="plugins"
3027
3046
  [componentProps]="componentProps"
3047
+ [mounts]="mounts"
3028
3048
  />
3029
- `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsForDeviceComponent, selector: "rulecms-render-for-device", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "deviceDisplayType", "plugins", "componentProps", "ancestorColumnIds"] }, { kind: "component", type: LibraryStylesheetsComponent, selector: "rulecms-library-stylesheets", inputs: ["stylesheets"] }] }); }
3049
+ `, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsForDeviceComponent, selector: "rulecms-render-for-device", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "deviceDisplayType", "plugins", "componentProps", "mounts", "ancestorColumnIds"] }, { kind: "component", type: LibraryStylesheetsComponent, selector: "rulecms-library-stylesheets", inputs: ["stylesheets"] }] }); }
3030
3050
  }
3031
3051
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RenderComponentsComponent, decorators: [{
3032
3052
  type: Component,
@@ -3048,6 +3068,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
3048
3068
  [deviceDisplayType]="deviceDisplayType"
3049
3069
  [plugins]="plugins"
3050
3070
  [componentProps]="componentProps"
3071
+ [mounts]="mounts"
3051
3072
  />
3052
3073
  `,
3053
3074
  host: { style: 'display: contents' },
@@ -3071,6 +3092,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
3071
3092
  args: [{ required: true }]
3072
3093
  }], componentProps: [{
3073
3094
  type: Input
3095
+ }], mounts: [{
3096
+ type: Input
3074
3097
  }] } });
3075
3098
 
3076
3099
  function transformChildCollections(childCollections) {
@@ -3346,7 +3369,7 @@ class RuleCMSWidgetComponent {
3346
3369
  this.stylesInjected = true;
3347
3370
  }
3348
3371
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RuleCMSWidgetComponent, deps: [{ token: RuleCMSWidgetContextService, optional: true }, { token: ErrorHandler, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
3349
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RuleCMSWidgetComponent, isStandalone: true, selector: "rulecms-widget", inputs: { publishedKey: "publishedKey", token: "token", endpoint: "endpoint", mode: "mode", initialData: "initialData", libraries: "libraries", componentProps: "componentProps" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
3372
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: RuleCMSWidgetComponent, isStandalone: true, selector: "rulecms-widget", inputs: { publishedKey: "publishedKey", token: "token", endpoint: "endpoint", mode: "mode", initialData: "initialData", libraries: "libraries", componentProps: "componentProps", mounts: "mounts" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
3350
3373
  <span [attr.data-rulecms-published-key]="publishedKey" style="display: contents">
3351
3374
  @if (mode !== 'pre-fetched' && loading) {
3352
3375
  <div [ngStyle]="loadingContainerStyle">
@@ -3371,6 +3394,7 @@ class RuleCMSWidgetComponent {
3371
3394
  [widgetCollections]="preparedData.widgetCollections"
3372
3395
  [plugins]="plugins"
3373
3396
  [componentProps]="componentProps"
3397
+ [mounts]="mounts"
3374
3398
  />
3375
3399
  } @else {
3376
3400
  <rulecms-render-components
@@ -3382,11 +3406,12 @@ class RuleCMSWidgetComponent {
3382
3406
  reduxDeviceDisplayType="desktop"
3383
3407
  [plugins]="plugins"
3384
3408
  [componentProps]="componentProps"
3409
+ [mounts]="mounts"
3385
3410
  />
3386
3411
  }
3387
3412
  }
3388
3413
  </span>
3389
- `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: BreakpointVariantRenderComponent, selector: "rulecms-breakpoint-variants", inputs: ["displayItemList", "widgetCollections", "plugins", "componentProps", "scopeIdInput"] }, { kind: "component", type: RenderComponentsComponent, selector: "rulecms-render-components", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "plugins", "componentProps"] }] }); }
3414
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: BreakpointVariantRenderComponent, selector: "rulecms-breakpoint-variants", inputs: ["displayItemList", "widgetCollections", "plugins", "componentProps", "mounts", "scopeIdInput"] }, { kind: "component", type: RenderComponentsComponent, selector: "rulecms-render-components", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "plugins", "componentProps", "mounts"] }] }); }
3390
3415
  }
3391
3416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: RuleCMSWidgetComponent, decorators: [{
3392
3417
  type: Component,
@@ -3419,6 +3444,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
3419
3444
  [widgetCollections]="preparedData.widgetCollections"
3420
3445
  [plugins]="plugins"
3421
3446
  [componentProps]="componentProps"
3447
+ [mounts]="mounts"
3422
3448
  />
3423
3449
  } @else {
3424
3450
  <rulecms-render-components
@@ -3430,6 +3456,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
3430
3456
  reduxDeviceDisplayType="desktop"
3431
3457
  [plugins]="plugins"
3432
3458
  [componentProps]="componentProps"
3459
+ [mounts]="mounts"
3433
3460
  />
3434
3461
  }
3435
3462
  }
@@ -3459,6 +3486,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
3459
3486
  type: Input
3460
3487
  }], componentProps: [{
3461
3488
  type: Input
3489
+ }], mounts: [{
3490
+ type: Input
3462
3491
  }] } });
3463
3492
 
3464
3493
  class FetchRuleCMSWidgetError extends Error {