@rulecms/widget-angular 0.8.1 → 0.9.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 +1 -1
- package/fesm2022/rulecms-widget-angular.mjs +207 -55
- package/fesm2022/rulecms-widget-angular.mjs.map +1 -1
- package/lib/helpers/constants.d.ts +5 -3
- package/lib/helpers/constants.d.ts.map +1 -1
- package/lib/helpers/prepare-style-element-css.d.ts +11 -0
- package/lib/helpers/prepare-style-element-css.d.ts.map +1 -0
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-fonts/project-css-fonts-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-position-try/project-css-position-try-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-properties/project-css-properties-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-themes/project-css-themes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-variables/project-css-variables-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts.map +1 -1
- package/lib/render/breakpoint-variant-render.component.d.ts +4 -0
- package/lib/render/breakpoint-variant-render.component.d.ts.map +1 -1
- package/lib/render/breakpoint-variant-styles.d.ts.map +1 -1
- package/lib/render/display-device-type.d.ts +2 -2
- package/lib/render/display-device-type.d.ts.map +1 -1
- package/lib/render/embed-in-vertical-container.component.d.ts +1 -1
- package/lib/render/embed-in-vertical-container.component.d.ts.map +1 -1
- package/lib/render/library-stylesheets.component.d.ts.map +1 -1
- package/lib/render/scope-id-from-content.d.ts +8 -0
- package/lib/render/scope-id-from-content.d.ts.map +1 -0
- package/lib/render/style-element.directive.d.ts +24 -0
- package/lib/render/style-element.directive.d.ts.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ const data = await fetchRuleCMSWidget({
|
|
|
65
65
|
/>
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
No token is needed on the client in `pre-fetched` mode — the widget does not refetch in the browser.
|
|
68
|
+
No token is needed on the client in `pre-fetched` mode — the widget does not refetch in the browser. When a widget's content differs by device, the server HTML carries its phone, tablet and desktop versions with a `<style>` of media queries that shows the one matching the viewport, so the first paint is right at every width. The widget's library, project and container CSS are `<style>` elements in the same HTML, and hydration keeps them. Before 0.8.2 none of these `<style>` elements were emitted, so all three versions showed.
|
|
69
69
|
|
|
70
70
|
## Host `componentProps`
|
|
71
71
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Input, Component, HostBinding, EventEmitter, ErrorHandler, Output, Optional, Inject } from '@angular/core';
|
|
2
|
+
import { Injectable, Input, Component, ViewEncapsulation, inject, ViewContainerRef, Renderer2, Directive, HostBinding, EventEmitter, ErrorHandler, Output, Optional, Inject } from '@angular/core';
|
|
3
3
|
import { NgComponentOutlet, NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -578,9 +578,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
578
578
|
|
|
579
579
|
// Device display width constants
|
|
580
580
|
const defaultPageWidth = "1200px";
|
|
581
|
-
|
|
582
|
-
const
|
|
583
|
-
const
|
|
581
|
+
// Where a published widget switches layout, as a viewport width in px.
|
|
582
|
+
const tabletMinWidth = 600;
|
|
583
|
+
const desktopMinWidth = 1024;
|
|
584
|
+
// The width the composer and previews draw each device at. Not breakpoints.
|
|
585
|
+
const phonePreviewWidth = "390px";
|
|
586
|
+
const tabletPreviewWidth = "820px";
|
|
587
|
+
const desktopPreviewWidth = defaultPageWidth;
|
|
584
588
|
|
|
585
589
|
// Builds Cloudinary delivery URLs for background images.
|
|
586
590
|
//
|
|
@@ -2305,23 +2309,41 @@ function hasDeviceDivergentValues(displayItemList, widgetCollections) {
|
|
|
2305
2309
|
return false;
|
|
2306
2310
|
}
|
|
2307
2311
|
|
|
2308
|
-
// Matches useDisplayDeviceType breakpoints: phone <= 500px, tablet <= 820px, desktop > 820px
|
|
2309
|
-
const phoneMax = parseInt(phoneModeWidth, 10);
|
|
2310
|
-
const tabletMax = parseInt(tabletModeWidth, 10);
|
|
2311
|
-
const tabletMin = phoneMax + 1;
|
|
2312
|
-
const desktopMin = tabletMax + 1;
|
|
2313
2312
|
function buildBreakpointVariantStyles(scopeId) {
|
|
2314
2313
|
const phone = `.${scopeId}-phone`;
|
|
2315
2314
|
const tablet = `.${scopeId}-tablet`;
|
|
2316
2315
|
const desktop = `.${scopeId}-desktop`;
|
|
2317
2316
|
return `
|
|
2318
|
-
${phone}
|
|
2319
|
-
|
|
2320
|
-
@media (min-width: ${
|
|
2321
|
-
@media (min-width: ${
|
|
2317
|
+
${phone} { display: block; }
|
|
2318
|
+
${tablet}, ${desktop} { display: none; }
|
|
2319
|
+
@media (min-width: ${tabletMinWidth}px) { ${phone} { display: none; } ${tablet} { display: block; } }
|
|
2320
|
+
@media (min-width: ${desktopMinWidth}px) { ${tablet} { display: none; } ${desktop} { display: block; } }
|
|
2322
2321
|
`.trim();
|
|
2323
2322
|
}
|
|
2324
2323
|
|
|
2324
|
+
/** cyrb53, a public-domain 53-bit string hash. */
|
|
2325
|
+
const cyrb53 = (value) => {
|
|
2326
|
+
let h1 = 0xdeadbeef;
|
|
2327
|
+
let h2 = 0x41c6ce57;
|
|
2328
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
2329
|
+
const code = value.charCodeAt(index);
|
|
2330
|
+
h1 = Math.imul(h1 ^ code, 2654435761);
|
|
2331
|
+
h2 = Math.imul(h2 ^ code, 1597334677);
|
|
2332
|
+
}
|
|
2333
|
+
h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507);
|
|
2334
|
+
h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
2335
|
+
h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507);
|
|
2336
|
+
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
2337
|
+
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
|
2338
|
+
};
|
|
2339
|
+
/**
|
|
2340
|
+
* Class-name-safe scope id computed from what the scope styles, so a server
|
|
2341
|
+
* render, every later render in that process, and the browser hydrating it
|
|
2342
|
+
* all agree without a framework id API. Equal content shares an id, which is
|
|
2343
|
+
* harmless because its scoped rules are equal too.
|
|
2344
|
+
*/
|
|
2345
|
+
const scopeIdFromContent = (prefix, content) => `${prefix}-${cyrb53(content).toString(36)}`;
|
|
2346
|
+
|
|
2325
2347
|
/**
|
|
2326
2348
|
* Extracts the (already composed) source components plugin from the plugins
|
|
2327
2349
|
* object the pipeline receives. Throws if it is missing or malformed.
|
|
@@ -2352,7 +2374,80 @@ function getComponentsPluginFromPlugins(plugins) {
|
|
|
2352
2374
|
return sourceComponentsPlugin;
|
|
2353
2375
|
}
|
|
2354
2376
|
|
|
2355
|
-
|
|
2377
|
+
const STYLE_TAG_PATTERN = /(<\/|<)(s)(tyle)/gi;
|
|
2378
|
+
/**
|
|
2379
|
+
* Prepares CSS for the text of a `<style>` element.
|
|
2380
|
+
*
|
|
2381
|
+
* Angular's server renderer writes `<style>` text raw, as browsers expect, so
|
|
2382
|
+
* this is the security boundary: the only way out of a `<style>` element is a
|
|
2383
|
+
* `</style` sequence, and its `s` becomes the CSS escape `\73 ` / `\53 `, as
|
|
2384
|
+
* React 19 and the other RuleCMS SDKs do. The CSS means the same; nothing else
|
|
2385
|
+
* is changed.
|
|
2386
|
+
*/
|
|
2387
|
+
function prepareStyleElementCss(css) {
|
|
2388
|
+
return css.replace(STYLE_TAG_PATTERN, (_match, prefix, s, suffix) => `${prefix}${s === 's' ? '\\73 ' : '\\53 '}${suffix}`);
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
/** Created dynamically, so its host element is a `<style>`; it renders nothing itself. */
|
|
2392
|
+
class StyleElementHostComponent {
|
|
2393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StyleElementHostComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: StyleElementHostComponent, isStandalone: true, selector: "style", ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2395
|
+
}
|
|
2396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StyleElementHostComponent, decorators: [{
|
|
2397
|
+
type: Component,
|
|
2398
|
+
args: [{
|
|
2399
|
+
selector: 'style',
|
|
2400
|
+
standalone: true,
|
|
2401
|
+
template: '',
|
|
2402
|
+
encapsulation: ViewEncapsulation.None,
|
|
2403
|
+
}]
|
|
2404
|
+
}] });
|
|
2405
|
+
/**
|
|
2406
|
+
* Puts a `<style>` holding `rulecmsStyleElement` where this `<ng-container>` is.
|
|
2407
|
+
*
|
|
2408
|
+
* Angular's template compiler removes every `<style>` element from a template,
|
|
2409
|
+
* and a bound one leaves nothing behind. A component created through
|
|
2410
|
+
* `ViewContainerRef` takes its host element from its selector instead, so this
|
|
2411
|
+
* `<style>` never reaches the template compiler, yet it is a node Angular owns:
|
|
2412
|
+
* the server render writes it, hydration adopts the server's element rather
|
|
2413
|
+
* than adding a second one, and destroying the surrounding view removes it.
|
|
2414
|
+
*/
|
|
2415
|
+
class StyleElementDirective {
|
|
2416
|
+
constructor() {
|
|
2417
|
+
this.viewContainer = inject(ViewContainerRef);
|
|
2418
|
+
this.renderer = inject(Renderer2);
|
|
2419
|
+
}
|
|
2420
|
+
ngOnChanges() {
|
|
2421
|
+
if (!this.styleRef) {
|
|
2422
|
+
this.styleRef = this.viewContainer.createComponent(StyleElementHostComponent);
|
|
2423
|
+
if (this.rulecmsStyleElementMarker) {
|
|
2424
|
+
this.renderer.setAttribute(this.styleRef.location.nativeElement, this.rulecmsStyleElementMarker, '');
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
const style = this.styleRef.location.nativeElement;
|
|
2428
|
+
const css = prepareStyleElementCss(this.rulecmsStyleElement);
|
|
2429
|
+
// Hydration adopts the server's element with its text; writing the same
|
|
2430
|
+
// text again would only make the browser parse the sheet a second time.
|
|
2431
|
+
if (style.textContent !== css) {
|
|
2432
|
+
this.renderer.setProperty(style, 'textContent', css);
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StyleElementDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2436
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.25", type: StyleElementDirective, isStandalone: true, selector: "ng-container[rulecmsStyleElement]", inputs: { rulecmsStyleElement: "rulecmsStyleElement", rulecmsStyleElementMarker: "rulecmsStyleElementMarker" }, usesOnChanges: true, ngImport: i0 }); }
|
|
2437
|
+
}
|
|
2438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StyleElementDirective, decorators: [{
|
|
2439
|
+
type: Directive,
|
|
2440
|
+
args: [{
|
|
2441
|
+
selector: 'ng-container[rulecmsStyleElement]',
|
|
2442
|
+
standalone: true,
|
|
2443
|
+
}]
|
|
2444
|
+
}], propDecorators: { rulecmsStyleElement: [{
|
|
2445
|
+
type: Input,
|
|
2446
|
+
args: [{ required: true }]
|
|
2447
|
+
}], rulecmsStyleElementMarker: [{
|
|
2448
|
+
type: Input
|
|
2449
|
+
}] } });
|
|
2450
|
+
|
|
2356
2451
|
class EmbedInVerticalContainerComponent {
|
|
2357
2452
|
constructor() {
|
|
2358
2453
|
this.isComposeMode = false;
|
|
@@ -2361,7 +2456,7 @@ class EmbedInVerticalContainerComponent {
|
|
|
2361
2456
|
this.deviceDisplayType = 'Desktop';
|
|
2362
2457
|
this.cssString = '';
|
|
2363
2458
|
this.scopedCss = '';
|
|
2364
|
-
this.scopeClass =
|
|
2459
|
+
this.scopeClass = '';
|
|
2365
2460
|
this.wrap = false;
|
|
2366
2461
|
this.hidden = false;
|
|
2367
2462
|
this.wrapperClass = '';
|
|
@@ -2385,6 +2480,7 @@ class EmbedInVerticalContainerComponent {
|
|
|
2385
2480
|
ngOnChanges() {
|
|
2386
2481
|
const containerCss = this.displayItemList.containerAttributes?.[cssAttrArrayKey] || [];
|
|
2387
2482
|
this.cssString = containerCss.join(';\n');
|
|
2483
|
+
this.scopeClass = scopeIdFromContent('rulecms-vc', this.cssString);
|
|
2388
2484
|
this.scopedCss = this.cssString
|
|
2389
2485
|
? `.${this.scopeClass} {\n${this.cssString}\n}`
|
|
2390
2486
|
: '';
|
|
@@ -2424,19 +2520,20 @@ class EmbedInVerticalContainerComponent {
|
|
|
2424
2520
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: EmbedInVerticalContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2425
2521
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: EmbedInVerticalContainerComponent, isStandalone: true, selector: "rulecms-embed-vertical", inputs: { displayItemList: "displayItemList", isComposeMode: "isComposeMode", showDropContainers: "showDropContainers", isWithinCollection: "isWithinCollection", deviceDisplayType: "deviceDisplayType" }, host: { properties: { "attr.hidden": "this.hiddenAttr", "class": "this.hostClass", "style": "this.hostStyle" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
2426
2522
|
@if (cssString) {
|
|
2427
|
-
<
|
|
2523
|
+
<ng-container [rulecmsStyleElement]="scopedCss" />
|
|
2428
2524
|
}
|
|
2429
2525
|
<ng-content />
|
|
2430
|
-
`, isInline: true }); }
|
|
2526
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
2431
2527
|
}
|
|
2432
2528
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: EmbedInVerticalContainerComponent, decorators: [{
|
|
2433
2529
|
type: Component,
|
|
2434
2530
|
args: [{
|
|
2435
2531
|
selector: 'rulecms-embed-vertical',
|
|
2436
2532
|
standalone: true,
|
|
2533
|
+
imports: [StyleElementDirective],
|
|
2437
2534
|
template: `
|
|
2438
2535
|
@if (cssString) {
|
|
2439
|
-
<
|
|
2536
|
+
<ng-container [rulecmsStyleElement]="scopedCss" />
|
|
2440
2537
|
}
|
|
2441
2538
|
<ng-content />
|
|
2442
2539
|
`,
|
|
@@ -3223,18 +3320,25 @@ class LibraryStylesheetsComponent {
|
|
|
3223
3320
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibraryStylesheetsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3224
3321
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: LibraryStylesheetsComponent, isStandalone: true, selector: "rulecms-library-stylesheets", inputs: { stylesheets: "stylesheets" }, host: { styleAttribute: "display: contents" }, ngImport: i0, template: `
|
|
3225
3322
|
@for (css of stylesheets ?? []; track $index) {
|
|
3226
|
-
<
|
|
3323
|
+
<ng-container
|
|
3324
|
+
[rulecmsStyleElement]="css"
|
|
3325
|
+
rulecmsStyleElementMarker="data-rulecms-library-stylesheet"
|
|
3326
|
+
/>
|
|
3227
3327
|
}
|
|
3228
|
-
`, isInline: true }); }
|
|
3328
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
3229
3329
|
}
|
|
3230
3330
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: LibraryStylesheetsComponent, decorators: [{
|
|
3231
3331
|
type: Component,
|
|
3232
3332
|
args: [{
|
|
3233
3333
|
selector: 'rulecms-library-stylesheets',
|
|
3234
3334
|
standalone: true,
|
|
3335
|
+
imports: [StyleElementDirective],
|
|
3235
3336
|
template: `
|
|
3236
3337
|
@for (css of stylesheets ?? []; track $index) {
|
|
3237
|
-
<
|
|
3338
|
+
<ng-container
|
|
3339
|
+
[rulecmsStyleElement]="css"
|
|
3340
|
+
rulecmsStyleElementMarker="data-rulecms-library-stylesheet"
|
|
3341
|
+
/>
|
|
3238
3342
|
}
|
|
3239
3343
|
`,
|
|
3240
3344
|
host: { style: 'display: contents' },
|
|
@@ -3244,19 +3348,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3244
3348
|
}] } });
|
|
3245
3349
|
|
|
3246
3350
|
const DEVICE_VARIANTS = ['Phone', 'Tablet', 'Desktop'];
|
|
3247
|
-
let breakpointSeq = 0;
|
|
3248
3351
|
class BreakpointVariantRenderComponent {
|
|
3249
3352
|
constructor() {
|
|
3250
3353
|
this.devices = DEVICE_VARIANTS;
|
|
3251
3354
|
this.divergent = false;
|
|
3252
3355
|
this.variantStyles = '';
|
|
3253
|
-
this.resolvedScopeId =
|
|
3356
|
+
this.resolvedScopeId = '';
|
|
3357
|
+
this.itemListScopeId = '';
|
|
3254
3358
|
}
|
|
3255
3359
|
ngOnChanges() {
|
|
3256
|
-
this.resolvedScopeId = this.scopeIdInput ?? this.
|
|
3360
|
+
this.resolvedScopeId = this.scopeIdInput ?? this.scopeIdForItemList();
|
|
3257
3361
|
this.divergent = hasDeviceDivergentValues(this.displayItemList, this.widgetCollections);
|
|
3258
3362
|
this.variantStyles = buildBreakpointVariantStyles(this.resolvedScopeId);
|
|
3259
3363
|
}
|
|
3364
|
+
/** Hashes once per item list: `rulecms-widget` passes a new `plugins` object on every check. */
|
|
3365
|
+
scopeIdForItemList() {
|
|
3366
|
+
if (this.hashedItemList !== this.displayItemList) {
|
|
3367
|
+
this.hashedItemList = this.displayItemList;
|
|
3368
|
+
this.itemListScopeId = scopeIdFromContent('rulecms-bp', JSON.stringify(this.displayItemList));
|
|
3369
|
+
}
|
|
3370
|
+
return this.itemListScopeId;
|
|
3371
|
+
}
|
|
3260
3372
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BreakpointVariantRenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3261
3373
|
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", placeholderValues: "placeholderValues", scopeIdInput: "scopeIdInput" }, host: { styleAttribute: "display: contents" }, usesOnChanges: true, ngImport: i0, template: `
|
|
3262
3374
|
<rulecms-library-stylesheets [stylesheets]="plugins.sourceComponents?.stylesheets" />
|
|
@@ -3275,7 +3387,7 @@ class BreakpointVariantRenderComponent {
|
|
|
3275
3387
|
[placeholderValues]="placeholderValues"
|
|
3276
3388
|
/>
|
|
3277
3389
|
} @else {
|
|
3278
|
-
<
|
|
3390
|
+
<ng-container [rulecmsStyleElement]="variantStyles" />
|
|
3279
3391
|
@for (device of devices; track device) {
|
|
3280
3392
|
<div [class]="resolvedScopeId + '-' + device.toLowerCase()">
|
|
3281
3393
|
<rulecms-render-for-device
|
|
@@ -3294,14 +3406,14 @@ class BreakpointVariantRenderComponent {
|
|
|
3294
3406
|
</div>
|
|
3295
3407
|
}
|
|
3296
3408
|
}
|
|
3297
|
-
`, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsForDeviceComponent, selector: "rulecms-render-for-device", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "deviceDisplayType", "plugins", "componentProps", "mounts", "placeholderValues", "ancestorColumnIds"] }, { kind: "component", type: LibraryStylesheetsComponent, selector: "rulecms-library-stylesheets", inputs: ["stylesheets"] }] }); }
|
|
3409
|
+
`, isInline: true, dependencies: [{ kind: "component", type: RenderComponentsForDeviceComponent, selector: "rulecms-render-for-device", inputs: ["displayItemList", "isComposeMode", "isWithinCollection", "widgetCollections", "showDropContainers", "reduxDeviceDisplayType", "deviceDisplayType", "plugins", "componentProps", "mounts", "placeholderValues", "ancestorColumnIds"] }, { kind: "component", type: LibraryStylesheetsComponent, selector: "rulecms-library-stylesheets", inputs: ["stylesheets"] }, { kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
3298
3410
|
}
|
|
3299
3411
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: BreakpointVariantRenderComponent, decorators: [{
|
|
3300
3412
|
type: Component,
|
|
3301
3413
|
args: [{
|
|
3302
3414
|
selector: 'rulecms-breakpoint-variants',
|
|
3303
3415
|
standalone: true,
|
|
3304
|
-
imports: [RenderComponentsForDeviceComponent, LibraryStylesheetsComponent],
|
|
3416
|
+
imports: [RenderComponentsForDeviceComponent, LibraryStylesheetsComponent, StyleElementDirective],
|
|
3305
3417
|
template: `
|
|
3306
3418
|
<rulecms-library-stylesheets [stylesheets]="plugins.sourceComponents?.stylesheets" />
|
|
3307
3419
|
@if (!divergent) {
|
|
@@ -3319,7 +3431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3319
3431
|
[placeholderValues]="placeholderValues"
|
|
3320
3432
|
/>
|
|
3321
3433
|
} @else {
|
|
3322
|
-
<
|
|
3434
|
+
<ng-container [rulecmsStyleElement]="variantStyles" />
|
|
3323
3435
|
@for (device of devices; track device) {
|
|
3324
3436
|
<div [class]="resolvedScopeId + '-' + device.toLowerCase()">
|
|
3325
3437
|
<rulecms-render-for-device
|
|
@@ -3376,8 +3488,10 @@ function resolveDisplayDeviceType(isPhone, isTablet, reduxDeviceDisplayType) {
|
|
|
3376
3488
|
}
|
|
3377
3489
|
return 'Desktop';
|
|
3378
3490
|
}
|
|
3379
|
-
|
|
3380
|
-
const
|
|
3491
|
+
// below 600
|
|
3492
|
+
const PHONE_MEDIA_QUERY = `not all and (min-width: ${tabletMinWidth}px)`;
|
|
3493
|
+
// below 1024; checked after the phone query
|
|
3494
|
+
const TABLET_MEDIA_QUERY = `not all and (min-width: ${desktopMinWidth}px)`;
|
|
3381
3495
|
|
|
3382
3496
|
class RenderComponentsComponent {
|
|
3383
3497
|
constructor() {
|
|
@@ -3623,18 +3737,25 @@ class ProjectCssClassesStylesheetComponent {
|
|
|
3623
3737
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssClassesStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3624
3738
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssClassesStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-classes-stylesheet", inputs: { publishedKey: "publishedKey", classes: "classes", classLayer: "classLayer" }, ngImport: i0, template: `
|
|
3625
3739
|
@if (css) {
|
|
3626
|
-
<
|
|
3740
|
+
<ng-container
|
|
3741
|
+
[rulecmsStyleElement]="css"
|
|
3742
|
+
rulecmsStyleElementMarker="data-rulecms-project-class-definitions"
|
|
3743
|
+
/>
|
|
3627
3744
|
}
|
|
3628
|
-
`, isInline: true }); }
|
|
3745
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
3629
3746
|
}
|
|
3630
3747
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssClassesStylesheetComponent, decorators: [{
|
|
3631
3748
|
type: Component,
|
|
3632
3749
|
args: [{
|
|
3633
3750
|
selector: 'rulecms-project-css-classes-stylesheet',
|
|
3634
3751
|
standalone: true,
|
|
3752
|
+
imports: [StyleElementDirective],
|
|
3635
3753
|
template: `
|
|
3636
3754
|
@if (css) {
|
|
3637
|
-
<
|
|
3755
|
+
<ng-container
|
|
3756
|
+
[rulecmsStyleElement]="css"
|
|
3757
|
+
rulecmsStyleElementMarker="data-rulecms-project-class-definitions"
|
|
3758
|
+
/>
|
|
3638
3759
|
}
|
|
3639
3760
|
`,
|
|
3640
3761
|
}]
|
|
@@ -3903,21 +4024,22 @@ class ProjectCssFontsStylesheetComponent {
|
|
|
3903
4024
|
<link rel="stylesheet" [attr.href]="href" data-rulecms-project-fonts="" />
|
|
3904
4025
|
}
|
|
3905
4026
|
@if (css) {
|
|
3906
|
-
<
|
|
4027
|
+
<ng-container [rulecmsStyleElement]="css" rulecmsStyleElementMarker="data-rulecms-project-fonts" />
|
|
3907
4028
|
}
|
|
3908
|
-
`, isInline: true }); }
|
|
4029
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
3909
4030
|
}
|
|
3910
4031
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssFontsStylesheetComponent, decorators: [{
|
|
3911
4032
|
type: Component,
|
|
3912
4033
|
args: [{
|
|
3913
4034
|
selector: 'rulecms-project-css-fonts-stylesheet',
|
|
3914
4035
|
standalone: true,
|
|
4036
|
+
imports: [StyleElementDirective],
|
|
3915
4037
|
template: `
|
|
3916
4038
|
@if (href) {
|
|
3917
4039
|
<link rel="stylesheet" [attr.href]="href" data-rulecms-project-fonts="" />
|
|
3918
4040
|
}
|
|
3919
4041
|
@if (css) {
|
|
3920
|
-
<
|
|
4042
|
+
<ng-container [rulecmsStyleElement]="css" rulecmsStyleElementMarker="data-rulecms-project-fonts" />
|
|
3921
4043
|
}
|
|
3922
4044
|
`,
|
|
3923
4045
|
}]
|
|
@@ -4106,18 +4228,19 @@ class ProjectCssKeyframesStylesheetComponent {
|
|
|
4106
4228
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssKeyframesStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4107
4229
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssKeyframesStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-keyframes-stylesheet", inputs: { publishedKey: "publishedKey", keyframes: "keyframes" }, ngImport: i0, template: `
|
|
4108
4230
|
@if (css) {
|
|
4109
|
-
<
|
|
4231
|
+
<ng-container [rulecmsStyleElement]="css" rulecmsStyleElementMarker="data-rulecms-project-keyframes" />
|
|
4110
4232
|
}
|
|
4111
|
-
`, isInline: true }); }
|
|
4233
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
4112
4234
|
}
|
|
4113
4235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssKeyframesStylesheetComponent, decorators: [{
|
|
4114
4236
|
type: Component,
|
|
4115
4237
|
args: [{
|
|
4116
4238
|
selector: 'rulecms-project-css-keyframes-stylesheet',
|
|
4117
4239
|
standalone: true,
|
|
4240
|
+
imports: [StyleElementDirective],
|
|
4118
4241
|
template: `
|
|
4119
4242
|
@if (css) {
|
|
4120
|
-
<
|
|
4243
|
+
<ng-container [rulecmsStyleElement]="css" rulecmsStyleElementMarker="data-rulecms-project-keyframes" />
|
|
4121
4244
|
}
|
|
4122
4245
|
`,
|
|
4123
4246
|
}]
|
|
@@ -4230,18 +4353,25 @@ class ProjectCssPositionTryStylesheetComponent {
|
|
|
4230
4353
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssPositionTryStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4231
4354
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssPositionTryStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-position-try-stylesheet", inputs: { publishedKey: "publishedKey", positionTry: "positionTry" }, ngImport: i0, template: `
|
|
4232
4355
|
@if (css) {
|
|
4233
|
-
<
|
|
4356
|
+
<ng-container
|
|
4357
|
+
[rulecmsStyleElement]="css"
|
|
4358
|
+
rulecmsStyleElementMarker="data-rulecms-project-position-try"
|
|
4359
|
+
/>
|
|
4234
4360
|
}
|
|
4235
|
-
`, isInline: true }); }
|
|
4361
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
4236
4362
|
}
|
|
4237
4363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssPositionTryStylesheetComponent, decorators: [{
|
|
4238
4364
|
type: Component,
|
|
4239
4365
|
args: [{
|
|
4240
4366
|
selector: 'rulecms-project-css-position-try-stylesheet',
|
|
4241
4367
|
standalone: true,
|
|
4368
|
+
imports: [StyleElementDirective],
|
|
4242
4369
|
template: `
|
|
4243
4370
|
@if (css) {
|
|
4244
|
-
<
|
|
4371
|
+
<ng-container
|
|
4372
|
+
[rulecmsStyleElement]="css"
|
|
4373
|
+
rulecmsStyleElementMarker="data-rulecms-project-position-try"
|
|
4374
|
+
/>
|
|
4245
4375
|
}
|
|
4246
4376
|
`,
|
|
4247
4377
|
}]
|
|
@@ -4368,18 +4498,25 @@ class ProjectCssPropertiesStylesheetComponent {
|
|
|
4368
4498
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssPropertiesStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4369
4499
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssPropertiesStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-properties-stylesheet", inputs: { publishedKey: "publishedKey", cssProperties: "cssProperties" }, ngImport: i0, template: `
|
|
4370
4500
|
@if (css) {
|
|
4371
|
-
<
|
|
4501
|
+
<ng-container
|
|
4502
|
+
[rulecmsStyleElement]="css"
|
|
4503
|
+
rulecmsStyleElementMarker="data-rulecms-project-css-properties"
|
|
4504
|
+
/>
|
|
4372
4505
|
}
|
|
4373
|
-
`, isInline: true }); }
|
|
4506
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
4374
4507
|
}
|
|
4375
4508
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssPropertiesStylesheetComponent, decorators: [{
|
|
4376
4509
|
type: Component,
|
|
4377
4510
|
args: [{
|
|
4378
4511
|
selector: 'rulecms-project-css-properties-stylesheet',
|
|
4379
4512
|
standalone: true,
|
|
4513
|
+
imports: [StyleElementDirective],
|
|
4380
4514
|
template: `
|
|
4381
4515
|
@if (css) {
|
|
4382
|
-
<
|
|
4516
|
+
<ng-container
|
|
4517
|
+
[rulecmsStyleElement]="css"
|
|
4518
|
+
rulecmsStyleElementMarker="data-rulecms-project-css-properties"
|
|
4519
|
+
/>
|
|
4383
4520
|
}
|
|
4384
4521
|
`,
|
|
4385
4522
|
}]
|
|
@@ -4562,18 +4699,19 @@ class ProjectCssThemesStylesheetComponent {
|
|
|
4562
4699
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssThemesStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4563
4700
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssThemesStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-themes-stylesheet", inputs: { publishedKey: "publishedKey", themes: "themes" }, ngImport: i0, template: `
|
|
4564
4701
|
@if (css) {
|
|
4565
|
-
<
|
|
4702
|
+
<ng-container [rulecmsStyleElement]="css" rulecmsStyleElementMarker="data-rulecms-project-themes" />
|
|
4566
4703
|
}
|
|
4567
|
-
`, isInline: true }); }
|
|
4704
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
4568
4705
|
}
|
|
4569
4706
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssThemesStylesheetComponent, decorators: [{
|
|
4570
4707
|
type: Component,
|
|
4571
4708
|
args: [{
|
|
4572
4709
|
selector: 'rulecms-project-css-themes-stylesheet',
|
|
4573
4710
|
standalone: true,
|
|
4711
|
+
imports: [StyleElementDirective],
|
|
4574
4712
|
template: `
|
|
4575
4713
|
@if (css) {
|
|
4576
|
-
<
|
|
4714
|
+
<ng-container [rulecmsStyleElement]="css" rulecmsStyleElementMarker="data-rulecms-project-themes" />
|
|
4577
4715
|
}
|
|
4578
4716
|
`,
|
|
4579
4717
|
}]
|
|
@@ -4595,18 +4733,25 @@ class ProjectCssVariablesStylesheetComponent {
|
|
|
4595
4733
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssVariablesStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4596
4734
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssVariablesStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-variables-stylesheet", inputs: { publishedKey: "publishedKey", variables: "variables" }, ngImport: i0, template: `
|
|
4597
4735
|
@if (css) {
|
|
4598
|
-
<
|
|
4736
|
+
<ng-container
|
|
4737
|
+
[rulecmsStyleElement]="css"
|
|
4738
|
+
rulecmsStyleElementMarker="data-rulecms-project-css-variables"
|
|
4739
|
+
/>
|
|
4599
4740
|
}
|
|
4600
|
-
`, isInline: true }); }
|
|
4741
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
4601
4742
|
}
|
|
4602
4743
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssVariablesStylesheetComponent, decorators: [{
|
|
4603
4744
|
type: Component,
|
|
4604
4745
|
args: [{
|
|
4605
4746
|
selector: 'rulecms-project-css-variables-stylesheet',
|
|
4606
4747
|
standalone: true,
|
|
4748
|
+
imports: [StyleElementDirective],
|
|
4607
4749
|
template: `
|
|
4608
4750
|
@if (css) {
|
|
4609
|
-
<
|
|
4751
|
+
<ng-container
|
|
4752
|
+
[rulecmsStyleElement]="css"
|
|
4753
|
+
rulecmsStyleElementMarker="data-rulecms-project-css-variables"
|
|
4754
|
+
/>
|
|
4610
4755
|
}
|
|
4611
4756
|
`,
|
|
4612
4757
|
}]
|
|
@@ -4717,18 +4862,25 @@ class ProjectCssWidgetChromeStylesheetComponent {
|
|
|
4717
4862
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssWidgetChromeStylesheetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4718
4863
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: ProjectCssWidgetChromeStylesheetComponent, isStandalone: true, selector: "rulecms-project-css-widget-chrome-stylesheet", inputs: { publishedKey: "publishedKey", widgetChrome: "widgetChrome" }, ngImport: i0, template: `
|
|
4719
4864
|
@if (css) {
|
|
4720
|
-
<
|
|
4865
|
+
<ng-container
|
|
4866
|
+
[rulecmsStyleElement]="css"
|
|
4867
|
+
rulecmsStyleElementMarker="data-rulecms-project-widget-chrome"
|
|
4868
|
+
/>
|
|
4721
4869
|
}
|
|
4722
|
-
`, isInline: true }); }
|
|
4870
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: StyleElementDirective, selector: "ng-container[rulecmsStyleElement]", inputs: ["rulecmsStyleElement", "rulecmsStyleElementMarker"] }] }); }
|
|
4723
4871
|
}
|
|
4724
4872
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: ProjectCssWidgetChromeStylesheetComponent, decorators: [{
|
|
4725
4873
|
type: Component,
|
|
4726
4874
|
args: [{
|
|
4727
4875
|
selector: 'rulecms-project-css-widget-chrome-stylesheet',
|
|
4728
4876
|
standalone: true,
|
|
4877
|
+
imports: [StyleElementDirective],
|
|
4729
4878
|
template: `
|
|
4730
4879
|
@if (css) {
|
|
4731
|
-
<
|
|
4880
|
+
<ng-container
|
|
4881
|
+
[rulecmsStyleElement]="css"
|
|
4882
|
+
rulecmsStyleElementMarker="data-rulecms-project-widget-chrome"
|
|
4883
|
+
/>
|
|
4732
4884
|
}
|
|
4733
4885
|
`,
|
|
4734
4886
|
}]
|
|
@@ -5687,5 +5839,5 @@ async function resolveWidgetLibraries(params) {
|
|
|
5687
5839
|
* Generated bundle index. Do not edit.
|
|
5688
5840
|
*/
|
|
5689
5841
|
|
|
5690
|
-
export { AlignContentTypes, BreakpointVariantRenderComponent, COLLECTION_TYPE_PREFIX, COMPONENT_PROPS_PATH_SEPARATOR, CSS_CLASSES_ATTRIBUTE_NAME, CSS_VARIABLE_NAME_MAX_LENGTH, CSS_VARIABLE_NAME_PATTERN, DEFAULT_BASE_Z_INDEX, DEFAULT_CLOUDINARY_CLOUD_NAME, DEFAULT_LIBRARY_ID, DEFAULT_PUBLISHED_WIDGET_CACHE_MS, DEFAULT_ROW_GAP, DEV_CLIENT_TOKEN_PREFIX, DEV_WIDGET_API_PATH, DEV_WIDGET_RESOLVE_API_PATH, DeviceDisplayTypes, DisplayComponentComponent, DisplayItemTypes, DragItemIdPrefixTypes, EMBEDDED_KEY_SEPARATOR, FLEX_LAYOUT_STYLE_KEYS_THAT_DERIVE_DISPLAY, FetchRuleCMSWidgetError, HIDE_WIDGET_ATTRIBUTE_NAME, JustifyContentTypes, POINTER_EVENTS_ATTRIBUTE_NAME, PUBLISHED_KEY_SEPARATOR, PUBLISHED_WIDGET_API_PATH, PUBLISHED_WIDGET_RESOLVE_API_PATH, PageViewTypes, RULECMS_ANONYMOUS_ID_STORAGE_KEY, RULECMS_API_ORIGIN, RULECMS_PUBLISHED_KEY_ATTRIBUTE, RenderComponentsComponent, RenderComponentsForDeviceComponent, RenderComponentsInnerComponent, RuleCMSWidgetComponent, RuleCMSWidgetContextService, RuleCMSWidgetProviderComponent, WIDGET_ATTRIBUTES_IGNORED_IN_COMPOSE_MODE, WIDGET_CACHE_API_ORIGIN, WIDGET_PLACEHOLDER_VALUES_KEY, Z_INDEX_WIDGET_ATTRIBUTE_NAME, alignContentAllowlist, alignItemsAllowlist, backgroundPositionAllowlist, backgroundRepeatAllowlist, backgroundSizeAllowlist, borderStyleKeywords, boxSpacingSideKeys, boxSpacingStyleAttributeEntries, buildCloudinaryBackgroundUrl, buildOverlayLayerBoxStyles, buildOverlayStackStyles, buildWidgetFetchUrl, buildWidgetResolveUrl, clearPublishedWidgetFetchCache, collectComponentInstancePaths, collectReferencedLibraryIds, composeSourceComponentsPlugin, createComponentLibraryRegistry, cssAttrArrayKey, defaultPageWidth, deriveDisplayFlexIfNeeded,
|
|
5842
|
+
export { AlignContentTypes, BreakpointVariantRenderComponent, COLLECTION_TYPE_PREFIX, COMPONENT_PROPS_PATH_SEPARATOR, CSS_CLASSES_ATTRIBUTE_NAME, CSS_VARIABLE_NAME_MAX_LENGTH, CSS_VARIABLE_NAME_PATTERN, DEFAULT_BASE_Z_INDEX, DEFAULT_CLOUDINARY_CLOUD_NAME, DEFAULT_LIBRARY_ID, DEFAULT_PUBLISHED_WIDGET_CACHE_MS, DEFAULT_ROW_GAP, DEV_CLIENT_TOKEN_PREFIX, DEV_WIDGET_API_PATH, DEV_WIDGET_RESOLVE_API_PATH, DeviceDisplayTypes, DisplayComponentComponent, DisplayItemTypes, DragItemIdPrefixTypes, EMBEDDED_KEY_SEPARATOR, FLEX_LAYOUT_STYLE_KEYS_THAT_DERIVE_DISPLAY, FetchRuleCMSWidgetError, HIDE_WIDGET_ATTRIBUTE_NAME, JustifyContentTypes, POINTER_EVENTS_ATTRIBUTE_NAME, PUBLISHED_KEY_SEPARATOR, PUBLISHED_WIDGET_API_PATH, PUBLISHED_WIDGET_RESOLVE_API_PATH, PageViewTypes, RULECMS_ANONYMOUS_ID_STORAGE_KEY, RULECMS_API_ORIGIN, RULECMS_PUBLISHED_KEY_ATTRIBUTE, RenderComponentsComponent, RenderComponentsForDeviceComponent, RenderComponentsInnerComponent, RuleCMSWidgetComponent, RuleCMSWidgetContextService, RuleCMSWidgetProviderComponent, WIDGET_ATTRIBUTES_IGNORED_IN_COMPOSE_MODE, WIDGET_CACHE_API_ORIGIN, WIDGET_PLACEHOLDER_VALUES_KEY, Z_INDEX_WIDGET_ATTRIBUTE_NAME, alignContentAllowlist, alignItemsAllowlist, backgroundPositionAllowlist, backgroundRepeatAllowlist, backgroundSizeAllowlist, borderStyleKeywords, boxSpacingSideKeys, boxSpacingStyleAttributeEntries, buildCloudinaryBackgroundUrl, buildOverlayLayerBoxStyles, buildOverlayStackStyles, buildWidgetFetchUrl, buildWidgetResolveUrl, clearPublishedWidgetFetchCache, collectComponentInstancePaths, collectReferencedLibraryIds, composeSourceComponentsPlugin, createComponentLibraryRegistry, cssAttrArrayKey, defaultPageWidth, deriveDisplayFlexIfNeeded, desktopMinWidth, desktopPreviewWidth, fetchRuleCMSWidget, findUnmatchedComponentPropsKeys, flexDirectionAllowlist, flexWrapAllowlist, fontFamilyAllowlist, fontStyleAllowlist, fontWeightAllowlist, formatBackgroundImageStyles, formatBorderStyles, formatBoxShadowStyles, formatBoxSpacingStyles, formatCssColorStyles, formatCssColorValue, formatCssEnumStyles, formatCssLengthStyles, formatCssVariable, formatCssVariableStyles, formatLineHeightStyles, formatObjectStyleAttribute, formatOpacityStyles, formatSpacingSideValue, generatePublishedKey, generatePublishedKeyForEmbedded, getCollectionIdForCollectionType, getColumnAttributes, getComponentAttributesAndStyles, getComponentsPluginFromPlugins, getCssVariableFromLeaf, getDefaultDimensionAttributes, getDeviceTypeBasedAttributes, getDragItemId, getDragItemPrefixAndId, getIdAndPrefix, getMergedAttributes, getNameAndInstanceIdFromWidgetKey, getNameFromWidgetKey, getOrCreateAnonymousId, getOverlayLayerZIndex, getWidgetKeyForCollection, getWidgetKeyForCollectionWithPrefix, getWidgetKeyForPublishedCollection, getWidgetKeyForPublishedCollectionWithPrefix, hasBoxShadowLeaf, hasDeviceDivergentValues, hasInvalidCssVariable, hasItems, hasOverlayLayers, incrementVersion, isBackgroundImageValue, isBorderStyleValue, isBorderValue, isBoxShadowValue, isBoxSpacingValue, isCloudinaryCloudName, isCloudinaryPublicId, isCloudinaryTransformationString, isCssColorValue, isCssEnumValue, isCssVariableName, isDevClientToken, isLineHeightValue, isOpacityValue, isOverlayLayerEmptyForDevice, isRowHiddenForDevice, isSafeImageUrl, isSpacingSideValue, isWidgetHiddenForDevice, justifyContentAllowlist, normalizeCssClasses, objectStyleAttributeRegistry, overflowAllowlist, phonePreviewWidth, pointerEventsAllowlist, prepareRuleCMSWidgetData, resolveBaseZIndex, resolveKey, resolveOverlayLayerPointerEvents, resolveRowStyles, resolveWidgetApiOrigin, resolveWidgetContainerStyles, resolveWidgetInstanceProps, resolveWidgetLibraries, rowBasedPropertiesAreAssigned, spacingKeywords, spacingLengthUnits, stableJsonStringify, tabletMinWidth, tabletPreviewWidth, textAlignAllowlist, textDecorationAllowlist, textTransformAllowlist, typeHasPrefix, warnUnmatchedComponentProps, widgetBasedPropertiesAreAssigned, widgetDeclaresOwnHeight, withWidgetPlaceholderValues };
|
|
5691
5843
|
//# sourceMappingURL=rulecms-widget-angular.mjs.map
|