@rulecms/widget-angular 0.6.0 → 0.8.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/fesm2022/rulecms-widget-angular.mjs +1741 -148
- package/fesm2022/rulecms-widget-angular.mjs.map +1 -1
- package/lib/fetch/fetch-rule-cms-widget.d.ts +42 -7
- package/lib/fetch/fetch-rule-cms-widget.d.ts.map +1 -1
- package/lib/helpers/get-component-attributes-and-styles.d.ts.map +1 -1
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/index.d.ts.map +1 -1
- package/lib/helpers/with-widget-placeholder-values.d.ts +25 -0
- package/lib/helpers/with-widget-placeholder-values.d.ts.map +1 -0
- package/lib/id-utils/dev-client-token.d.ts +15 -0
- package/lib/id-utils/dev-client-token.d.ts.map +1 -1
- package/lib/library-registry/types.d.ts +7 -0
- package/lib/library-registry/types.d.ts.map +1 -1
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts +10 -1
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts.map +1 -1
- package/lib/project-css-classes/include-project-css-layers-on-published-widget.d.ts +6 -0
- package/lib/project-css-classes/include-project-css-layers-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts +3 -2
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts.map +1 -1
- package/lib/project-css-fonts/format-project-css-fonts-stylesheet.d.ts +34 -0
- package/lib/project-css-fonts/format-project-css-fonts-stylesheet.d.ts.map +1 -0
- package/lib/project-css-fonts/include-project-css-fonts-on-published-widget.d.ts +6 -0
- package/lib/project-css-fonts/include-project-css-fonts-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-fonts/project-css-fonts-stylesheet.component.d.ts +16 -0
- package/lib/project-css-fonts/project-css-fonts-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-keyframes/format-project-css-keyframes-stylesheet.d.ts +11 -0
- package/lib/project-css-keyframes/format-project-css-keyframes-stylesheet.d.ts.map +1 -0
- package/lib/project-css-keyframes/include-project-css-keyframes-on-published-widget.d.ts +6 -0
- package/lib/project-css-keyframes/include-project-css-keyframes-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.d.ts +14 -0
- package/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-position-try/format-project-css-position-try-stylesheet.d.ts +11 -0
- package/lib/project-css-position-try/format-project-css-position-try-stylesheet.d.ts.map +1 -0
- package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts +6 -0
- package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-position-try/project-css-position-try-stylesheet.component.d.ts +14 -0
- package/lib/project-css-position-try/project-css-position-try-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-properties/format-project-css-properties-stylesheet.d.ts +15 -0
- package/lib/project-css-properties/format-project-css-properties-stylesheet.d.ts.map +1 -0
- package/lib/project-css-properties/include-project-css-properties-on-published-widget.d.ts +6 -0
- package/lib/project-css-properties/include-project-css-properties-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-properties/project-css-properties-stylesheet.component.d.ts +14 -0
- package/lib/project-css-properties/project-css-properties-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-themes/format-project-css-themes-stylesheet.d.ts +24 -0
- package/lib/project-css-themes/format-project-css-themes-stylesheet.d.ts.map +1 -0
- package/lib/project-css-themes/include-project-css-themes-on-published-widget.d.ts +6 -0
- package/lib/project-css-themes/include-project-css-themes-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-themes/project-css-themes-stylesheet.component.d.ts +14 -0
- package/lib/project-css-themes/project-css-themes-stylesheet.component.d.ts.map +1 -0
- package/lib/project-css-variables/format-project-css-variables-stylesheet.d.ts +1 -1
- package/lib/project-css-variables/format-project-css-variables-stylesheet.d.ts.map +1 -1
- package/lib/project-css-variables/include-project-css-variables-on-published-widget.d.ts +4 -9
- package/lib/project-css-variables/include-project-css-variables-on-published-widget.d.ts.map +1 -1
- package/lib/project-css-widget-chrome/format-project-css-widget-chrome-stylesheet.d.ts +19 -0
- package/lib/project-css-widget-chrome/format-project-css-widget-chrome-stylesheet.d.ts.map +1 -0
- package/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.d.ts +6 -0
- package/lib/project-css-widget-chrome/include-project-css-widget-chrome-on-published-widget.d.ts.map +1 -0
- package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts +14 -0
- package/lib/project-css-widget-chrome/project-css-widget-chrome-stylesheet.component.d.ts.map +1 -0
- package/lib/render/breakpoint-variant-render.component.d.ts +2 -1
- package/lib/render/breakpoint-variant-render.component.d.ts.map +1 -1
- package/lib/render/display-component.component.d.ts +4 -1
- package/lib/render/display-component.component.d.ts.map +1 -1
- package/lib/render/render-components-for-device.component.d.ts +2 -1
- package/lib/render/render-components-for-device.component.d.ts.map +1 -1
- package/lib/render/render-components-inner.component.d.ts +4 -1
- package/lib/render/render-components-inner.component.d.ts.map +1 -1
- package/lib/render/render-components.component.d.ts +2 -1
- package/lib/render/render-components.component.d.ts.map +1 -1
- package/lib/widget/prepare-rule-cms-widget-data.d.ts.map +1 -1
- package/lib/widget/rule-cms-widget.component.d.ts +33 -2
- package/lib/widget/rule-cms-widget.component.d.ts.map +1 -1
- package/lib/widget/widget-data.types.d.ts +104 -16
- package/lib/widget/widget-data.types.d.ts.map +1 -1
- package/lib/widget/widget-selection/build-widget-resolve-request.d.ts +23 -0
- package/lib/widget/widget-selection/build-widget-resolve-request.d.ts.map +1 -0
- package/lib/widget/widget-selection/get-or-create-anonymous-id.d.ts +11 -0
- package/lib/widget/widget-selection/get-or-create-anonymous-id.d.ts.map +1 -0
- package/lib/widget/widget-selection/is-widget-resolve-fallback-status.d.ts +8 -0
- package/lib/widget/widget-selection/is-widget-resolve-fallback-status.d.ts.map +1 -0
- package/lib/widget/widget-selection/normalize-widget-resolve-response.d.ts +16 -0
- package/lib/widget/widget-selection/normalize-widget-resolve-response.d.ts.map +1 -0
- package/lib/widget/widget-selection/stable-json-stringify.d.ts +8 -0
- package/lib/widget/widget-selection/stable-json-stringify.d.ts.map +1 -0
- package/lib/widget/widget-selection/to-ruleset-key.d.ts +7 -0
- package/lib/widget/widget-selection/to-ruleset-key.d.ts.map +1 -0
- package/lib/widget/widget-selection/types.d.ts +78 -0
- package/lib/widget/widget-selection/types.d.ts.map +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -1
- package/public-api.d.ts.map +1 -1
|
@@ -1,23 +1,58 @@
|
|
|
1
1
|
import { RuleCMSWidgetData } from '../widget/widget-data.types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import type { WidgetResolveRequestOptions } from '../widget/widget-selection/types';
|
|
3
|
+
/**
|
|
4
|
+
* How long a published-token GET stays in the in-process cache when the caller
|
|
5
|
+
* sets no cache policy. Angular has no Next.js `next.revalidate`; this is the
|
|
6
|
+
* same 60-second default `@rulecms/widget-react` applies on the server.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_PUBLISHED_WIDGET_CACHE_MS = 60000;
|
|
9
|
+
interface FetchRuleCMSWidgetBaseParams {
|
|
8
10
|
token: string;
|
|
9
11
|
/**
|
|
10
12
|
* Optional API origin override. Omit in apps — defaults to rulecms.com for
|
|
11
13
|
* `dev.` tokens and widget-cache for published tokens.
|
|
12
14
|
*/
|
|
13
15
|
endpoint?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Pass-through to `fetch`. Published-token GETs are cached in-process for
|
|
18
|
+
* 60 seconds unless `cache` is `no-store`, `reload`, or `no-cache`. `dev.`
|
|
19
|
+
* tokens always use `cache: 'no-store'` and are never cached here. A
|
|
20
|
+
* `rulesetPublishedKey` resolve is a POST and is never cached.
|
|
21
|
+
*/
|
|
14
22
|
fetchOptions?: RequestInit;
|
|
15
23
|
}
|
|
24
|
+
/** Fetch one widget by key through the plain GET path. */
|
|
25
|
+
export interface FetchRuleCMSWidgetPublishedKeyParams extends FetchRuleCMSWidgetBaseParams {
|
|
26
|
+
/**
|
|
27
|
+
* Published key for staging/production tokens, or the live widget key when
|
|
28
|
+
* using a `dev.`-prefixed Development token.
|
|
29
|
+
*/
|
|
30
|
+
publishedKey: string;
|
|
31
|
+
rulesetPublishedKey?: never;
|
|
32
|
+
params?: never;
|
|
33
|
+
fallbackPublishedKey?: never;
|
|
34
|
+
contentType?: never;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Let a published ruleset pick the widget from `params` (POST resolve). The
|
|
38
|
+
* server never invents an anonymous id — pass `params.anonId` yourself when
|
|
39
|
+
* experiments should bucket a known visitor.
|
|
40
|
+
*/
|
|
41
|
+
export interface FetchRuleCMSWidgetRulesetParams extends FetchRuleCMSWidgetBaseParams, WidgetResolveRequestOptions {
|
|
42
|
+
publishedKey?: never;
|
|
43
|
+
}
|
|
44
|
+
export type FetchRuleCMSWidgetParams = FetchRuleCMSWidgetPublishedKeyParams | FetchRuleCMSWidgetRulesetParams;
|
|
16
45
|
export declare class FetchRuleCMSWidgetError extends Error {
|
|
17
46
|
readonly status?: number;
|
|
18
47
|
constructor(message: string, status?: number);
|
|
19
48
|
}
|
|
20
|
-
/**
|
|
49
|
+
/** Drops the in-process published-widget cache. Tests call this between cases. */
|
|
50
|
+
export declare function clearPublishedWidgetFetchCache(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Fetch widget JSON on the server (or at build time) and return render-ready
|
|
53
|
+
* data. Pass `publishedKey` for one widget, or `rulesetPublishedKey` + `params`
|
|
54
|
+
* to let a ruleset choose (the result then carries `selection`).
|
|
55
|
+
*/
|
|
21
56
|
export declare function fetchRuleCMSWidget(params: FetchRuleCMSWidgetParams): Promise<RuleCMSWidgetData>;
|
|
22
57
|
export type { RuleCMSWidgetData };
|
|
23
58
|
//# sourceMappingURL=fetch-rule-cms-widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-rule-cms-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/fetch/fetch-rule-cms-widget.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetch-rule-cms-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/fetch/fetch-rule-cms-widget.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAKpF;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,QAAS,CAAC;AAExD,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED,0DAA0D;AAC1D,MAAM,WAAW,oCAAqC,SAAQ,4BAA4B;IACxF;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,+BACf,SAAQ,4BAA4B,EAClC,2BAA2B;IAC7B,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,MAAM,MAAM,wBAAwB,GAChC,oCAAoC,GACpC,+BAA+B,CAAC;AAEpC,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAK7C;AAMD,kFAAkF;AAClF,wBAAgB,8BAA8B,IAAI,IAAI,CAErD;AAoHD;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,iBAAiB,CAAC,CAsB5B;AAED,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-component-attributes-and-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/get-component-attributes-and-styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,UAAU,qCAAqC;IAC7C,GAAG,EAAE;QAEH,mBAAmB,CAAC,EAAE,GAAG,CAAC;QAC1B,2FAA2F;QAC3F,gBAAgB,CAAC,EAAE,GAAG,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE,MAAM,OAAO,kBAAkB,CAAC;IACnD,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD;AAED,UAAU,qCAAqC;IAC7C,gCAAgC,EAAE,GAAG,CAAC;IACtC,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACzC;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,GAAG,EACH,iBAAiB,EACjB,aAAa,EACb,sBAAsB,GACvB,EAAE,qCAAqC,GAAG,qCAAqC,
|
|
1
|
+
{"version":3,"file":"get-component-attributes-and-styles.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/get-component-attributes-and-styles.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,UAAU,qCAAqC;IAC7C,GAAG,EAAE;QAEH,mBAAmB,CAAC,EAAE,GAAG,CAAC;QAC1B,2FAA2F;QAC3F,gBAAgB,CAAC,EAAE,GAAG,CAAC;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,iBAAiB,EAAE,MAAM,OAAO,kBAAkB,CAAC;IACnD,aAAa,EAAE,OAAO,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD;AAED,UAAU,qCAAqC;IAC7C,gCAAgC,EAAE,GAAG,CAAC;IACtC,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACzC;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,GAAG,EACH,iBAAiB,EACjB,aAAa,EACb,sBAAsB,GACvB,EAAE,qCAAqC,GAAG,qCAAqC,CA2E/E"}
|
package/lib/helpers/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export type { WidgetContainerStyles } from './resolve-widget-container-styles';
|
|
|
36
36
|
export { DEFAULT_BASE_Z_INDEX, Z_INDEX_WIDGET_ATTRIBUTE_NAME, buildOverlayLayerBoxStyles, buildOverlayStackStyles, getOverlayLayerZIndex, hasOverlayLayers, isOverlayLayerEmptyForDevice, resolveBaseZIndex, resolveOverlayLayerPointerEvents, } from './resolve-overlay-layers';
|
|
37
37
|
export { CSS_CLASSES_ATTRIBUTE_NAME, normalizeCssClasses } from './css-classes';
|
|
38
38
|
export { COMPONENT_PROPS_PATH_SEPARATOR, resolveWidgetInstanceProps, } from './resolve-widget-instance-props';
|
|
39
|
+
export { WIDGET_PLACEHOLDER_VALUES_KEY, withWidgetPlaceholderValues, } from './with-widget-placeholder-values';
|
|
39
40
|
export { collectComponentInstancePaths } from './collect-component-instance-paths';
|
|
40
41
|
export { findUnmatchedComponentPropsKeys, warnUnmatchedComponentProps, } from './warn-unmatched-component-props';
|
|
41
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts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EAChB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,yCAAyC,EACzC,uBAAuB,EACvB,4BAA4B,EAC5B,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { WidgetInstanceProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The one key copied from `rulecms-widget`'s `placeholderValues` onto a card.
|
|
4
|
+
* Must stay the key `r-text` reads (`PLACEHOLDER_VALUES_PROP` in
|
|
5
|
+
* `@rulecms/source-components-angular`). The renderer copies the value and does
|
|
6
|
+
* not look inside it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const WIDGET_PLACEHOLDER_VALUES_KEY = "placeholderValues";
|
|
9
|
+
/**
|
|
10
|
+
* Widget-wide placeholder values for one component instance.
|
|
11
|
+
*
|
|
12
|
+
* When the host passed `placeholderValues` on `rulecms-widget`, every instance
|
|
13
|
+
* receives that object unless its own `componentProps` entry already has the
|
|
14
|
+
* key. An entry that sets the key wins even when the value is `null` or
|
|
15
|
+
* otherwise unusable: that is how one Text opts out. Other keys on the entry,
|
|
16
|
+
* such as `onClick`, stay. The host's entry is not mutated.
|
|
17
|
+
*
|
|
18
|
+
* `undefined` means the widget input was omitted, which is the common case and
|
|
19
|
+
* must not invent a bag.
|
|
20
|
+
*/
|
|
21
|
+
export declare function withWidgetPlaceholderValues({ widgetInstanceProps, placeholderValues, }: {
|
|
22
|
+
widgetInstanceProps?: WidgetInstanceProps;
|
|
23
|
+
placeholderValues?: unknown;
|
|
24
|
+
}): WidgetInstanceProps | undefined;
|
|
25
|
+
//# sourceMappingURL=with-widget-placeholder-values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-widget-placeholder-values.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/with-widget-placeholder-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,sBAAsB,CAAC;AAEjE;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,EAC1C,mBAAmB,EACnB,iBAAiB,GAClB,EAAE;IACD,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,GAAG,mBAAmB,GAAG,SAAS,CAgBlC"}
|
|
@@ -8,6 +8,10 @@ export declare const WIDGET_CACHE_API_ORIGIN = "https://widget-cache.rulecms.com
|
|
|
8
8
|
export declare const PUBLISHED_WIDGET_API_PATH = "/api/v1/c/widget/get";
|
|
9
9
|
/** Live draft client API path — no cache; reads the widget table directly. */
|
|
10
10
|
export declare const DEV_WIDGET_API_PATH = "/api/v1/c/dev/widget/get";
|
|
11
|
+
/** Published ruleset resolve path (POST) — picks a widget by params, returns its payload. */
|
|
12
|
+
export declare const PUBLISHED_WIDGET_RESOLVE_API_PATH = "/api/v1/c/widget/resolve";
|
|
13
|
+
/** Live draft ruleset resolve path (POST) — compiles the draft ruleset in-process. */
|
|
14
|
+
export declare const DEV_WIDGET_RESOLVE_API_PATH = "/api/v1/c/dev/widget/resolve";
|
|
11
15
|
export declare function isDevClientToken(token: string | null | undefined): boolean;
|
|
12
16
|
/**
|
|
13
17
|
* Resolves the API origin. Consumers should not need to set `endpoint` —
|
|
@@ -30,4 +34,15 @@ export interface BuildWidgetFetchUrlParams {
|
|
|
30
34
|
* draft endpoint with `widgetKey`; everything else uses the published API.
|
|
31
35
|
*/
|
|
32
36
|
export declare function buildWidgetFetchUrl({ publishedKey, token, endpoint, }: BuildWidgetFetchUrlParams): string;
|
|
37
|
+
export interface BuildWidgetResolveUrlParams {
|
|
38
|
+
token: string;
|
|
39
|
+
/** Optional override. Defaults by token: rulecms.com (dev) or widget-cache (published). */
|
|
40
|
+
endpoint?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Builds the ruleset resolve URL. The token, ruleset key and params travel in
|
|
44
|
+
* the POST body, so the URL carries no query string. Development tokens
|
|
45
|
+
* (`dev.…`) hit the draft resolve route; everything else uses the published one.
|
|
46
|
+
*/
|
|
47
|
+
export declare function buildWidgetResolveUrl({ token, endpoint, }: BuildWidgetResolveUrlParams): string;
|
|
33
48
|
//# sourceMappingURL=dev-client-token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-client-token.d.ts","sourceRoot":"","sources":["../../../src/lib/id-utils/dev-client-token.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,SAAS,CAAC;AAE9C,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AAExD,mCAAmC;AACnC,eAAO,MAAM,uBAAuB,qCAAqC,CAAC;AAE1E,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,yBAAyB,CAAC;AAEhE,8EAA8E;AAC9E,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9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rB,KAAK,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,YAAY,EACZ,KAAK,EACL,QAAQ,GACT,EAAE,yBAAyB,GAAG,MAAM,CAQpC;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,QAAQ,GACT,EAAE,2BAA2B,GAAG,MAAM,CAKtC"}
|
|
@@ -35,6 +35,13 @@ export interface LibraryCardInputs {
|
|
|
35
35
|
};
|
|
36
36
|
className?: string;
|
|
37
37
|
widgetInstanceProps?: WidgetInstanceProps;
|
|
38
|
+
/**
|
|
39
|
+
* This instance's column path — enclosing collection columns first, its own
|
|
40
|
+
* column id last, joined with `/`. `r-button` emits it as
|
|
41
|
+
* `data-rulecms-column-path`. Absent in the composer and from releases that
|
|
42
|
+
* predate it.
|
|
43
|
+
*/
|
|
44
|
+
columnPath?: string;
|
|
38
45
|
/**
|
|
39
46
|
* Host-supplied map of mount name → Angular component. Only `r-mount`
|
|
40
47
|
* reads this. Absent in the composer, and absent whenever the host
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/library-registry/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,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,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,gCAAgC,GACxC,sBAAsB,GACtB;IAAE,OAAO,EAAE,sBAAsB,CAAA;CAAE,CAAC;AAExC,MAAM,MAAM,mBAAmB,GAC3B,sBAAsB,GACtB,CAAC,MAAM,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC;AAEtD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAEzE,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAClD,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,MAAM,EAAE,sBAAsB,GAAG,sBAAsB,GAAG,IAAI,CAAC;IAC3E,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC1E"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export type ProjectCssClassDefinitions = Record<string, string>;
|
|
2
|
+
export declare const PROJECT_CSS_CLASS_LAYERS: readonly ["utilities", "components"];
|
|
3
|
+
export type ProjectCssClassLayer = (typeof PROJECT_CSS_CLASS_LAYERS)[number];
|
|
4
|
+
export declare const isProjectCssClassLayer: (value: unknown) => value is ProjectCssClassLayer;
|
|
5
|
+
/**
|
|
6
|
+
* Wrap an already-formatted class stylesheet. Null in stays null. Unknown or
|
|
7
|
+
* omitted layer names leave the stylesheet unlayered.
|
|
8
|
+
*/
|
|
9
|
+
export declare const wrapProjectCssClassesStylesheetInLayer: (css: string | null, classLayer?: ProjectCssClassLayer | null) => string | null;
|
|
2
10
|
/**
|
|
3
11
|
* Attribute-selector escape so a published key cannot break out of
|
|
4
12
|
* `[data-rulecms-published-key="…"]`. `CSS.escape` is not assumed (SSR / Node).
|
|
@@ -10,5 +18,6 @@ export declare const escapeCssClassName: (name: string) => string;
|
|
|
10
18
|
* Descendant class rules under this widget’s published-key span.
|
|
11
19
|
* Empty / flag-off / unsanitary catalogs return null so the caller omits `<style>`.
|
|
12
20
|
*/
|
|
13
|
-
export declare const formatProjectCssClassesStylesheet: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, includeClassDefinitions?: boolean | null) => string | null;
|
|
21
|
+
export declare const formatProjectCssClassesStylesheet: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, includeClassDefinitions?: boolean | null, classLayer?: ProjectCssClassLayer | null) => string | null;
|
|
22
|
+
export declare const formatProjectCssClassesStylesheetInLayer: (publishedKey: string, classes: ProjectCssClassDefinitions | null | undefined, classLayer: ProjectCssClassLayer | null | undefined, includeClassDefinitions?: boolean | null) => string | null;
|
|
14
23
|
//# sourceMappingURL=format-project-css-classes-stylesheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-project-css-classes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/format-project-css-classes-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAEpD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"format-project-css-classes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/format-project-css-classes-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,wBAAwB,sCAAuC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI7E,eAAO,MAAM,sBAAsB,UAAW,OAAO,KAAG,KAAK,IAAI,oBACR,CAAC;AAQ1D;;;GAGG;AACH,eAAO,MAAM,sCAAsC,QAC5C,MAAM,GAAG,IAAI,eACL,oBAAoB,GAAG,IAAI,KACvC,MAAM,GAAG,IAQX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAEpD,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,SAAU,MAAM,KAAG,MACI,CAAC;AAuEvD;;;GAGG;AACH,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,WACX,0BAA0B,GAAG,IAAI,GAAG,SAAS,4BAC5B,OAAO,GAAG,IAAI,eAC3B,oBAAoB,GAAG,IAAI,KACvC,MAAM,GAAG,IAqBX,CAAC;AAEF,eAAO,MAAM,wCAAwC,iBACrC,MAAM,WACX,0BAA0B,GAAG,IAAI,GAAG,SAAS,cAC1C,oBAAoB,GAAG,IAAI,GAAG,SAAS,4BACzB,OAAO,GAAG,IAAI,KACvC,MAAM,GAAG,IACmF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means wrap when `classLayer` is
|
|
3
|
+
* set. Only an explicit `false` keeps class emit unlayered.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeClassLayerOnPublishedWidget(includeClassLayer?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-layers-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-layers-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/include-project-css-layers-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,wCAAwC,CACtD,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,GACjC,OAAO,CAET"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectCssClassDefinitions } from './format-project-css-classes-stylesheet';
|
|
1
|
+
import type { ProjectCssClassDefinitions, ProjectCssClassLayer } from './format-project-css-classes-stylesheet';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Emits one scoped `<style data-rulecms-project-class-definitions>` from the
|
|
@@ -7,8 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class ProjectCssClassesStylesheetComponent {
|
|
8
8
|
publishedKey: string;
|
|
9
9
|
classes?: ProjectCssClassDefinitions | null;
|
|
10
|
+
classLayer?: ProjectCssClassLayer | null;
|
|
10
11
|
get css(): string | null;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssClassesStylesheetComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssClassesStylesheetComponent, "rulecms-project-css-classes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "classes": { "alias": "classes"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssClassesStylesheetComponent, "rulecms-project-css-classes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "classes": { "alias": "classes"; "required": false; }; "classLayer": { "alias": "classLayer"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=project-css-classes-stylesheet.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-css-classes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/project-css-classes-stylesheet.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"project-css-classes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-classes/project-css-classes-stylesheet.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,yCAAyC,CAAC;;AAEjD;;;GAGG;AACH,qBASa,oCAAoC;IACpB,YAAY,EAAG,MAAM,CAAC;IACxC,OAAO,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAElD,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAOvB;yCAZU,oCAAoC;2CAApC,oCAAoC;CAahD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type ProjectFontSource = {
|
|
2
|
+
kind: 'stack-only';
|
|
3
|
+
} | {
|
|
4
|
+
kind: 'google';
|
|
5
|
+
weights: number[];
|
|
6
|
+
subsets?: string[];
|
|
7
|
+
};
|
|
8
|
+
export type ProjectFontPalette = {
|
|
9
|
+
name: string;
|
|
10
|
+
overrideColors?: Array<{
|
|
11
|
+
index: number;
|
|
12
|
+
color: string;
|
|
13
|
+
}>;
|
|
14
|
+
applyToWidget?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type ProjectFontFace = {
|
|
17
|
+
family: string;
|
|
18
|
+
cssVariable?: string;
|
|
19
|
+
fallbacks?: string[];
|
|
20
|
+
applyToWidget?: boolean;
|
|
21
|
+
source: ProjectFontSource;
|
|
22
|
+
palettes?: ProjectFontPalette[];
|
|
23
|
+
};
|
|
24
|
+
export declare const escapeCssAttributeValue: (value: string) => string;
|
|
25
|
+
export declare const sanitizeProjectFontFaces: (fonts: readonly ProjectFontFace[] | null | undefined) => ProjectFontFace[];
|
|
26
|
+
export declare const buildGoogleFontsCssHref: (fonts: readonly ProjectFontFace[]) => string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Palette at-rules plus the token / optional `font-family` / optional
|
|
29
|
+
* `font-palette` on the widget’s first boxed children. Google faces are a
|
|
30
|
+
* separate `<link>`. Returns null when there is nothing to declare or
|
|
31
|
+
* inclusion is off — palettes ride with `includeFontFaces`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const formatProjectCssFontsStylesheet: (publishedKey: string, fonts: readonly ProjectFontFace[] | null | undefined, includeFontFaces?: boolean | null) => string | null;
|
|
34
|
+
//# sourceMappingURL=format-project-css-fonts-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-fonts-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/format-project-css-fonts-stylesheet.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GACtB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAgHpD,eAAO,MAAM,wBAAwB,UAC5B,SAAS,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS,KACnD,eAAe,EA8DjB,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAC3B,SAAS,eAAe,EAAE,KAChC,MAAM,GAAG,IAaX,CAAC;AAiCF;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,iBAC5B,MAAM,SACb,SAAS,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS,qBACjC,OAAO,GAAG,IAAI,KAChC,MAAM,GAAG,IAsCX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `fontFaces` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeFontFacesOnPublishedWidget(includeFontFaces?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-fonts-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-fonts-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/include-project-css-fonts-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,uCAAuC,CACrD,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,GAChC,OAAO,CAET"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ProjectFontFace } from './format-project-css-fonts-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits a Google Fonts `<link>` and/or one `<style data-rulecms-project-fonts>`
|
|
5
|
+
* from the project catalog, or nothing when inclusion is off / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssFontsStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
fonts?: readonly ProjectFontFace[] | null;
|
|
10
|
+
includeFontFaces?: boolean | null;
|
|
11
|
+
get href(): string | null;
|
|
12
|
+
get css(): string | null;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssFontsStylesheetComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssFontsStylesheetComponent, "rulecms-project-css-fonts-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "fonts": { "alias": "fonts"; "required": false; }; "includeFontFaces": { "alias": "includeFontFaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=project-css-fonts-stylesheet.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-css-fonts-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-fonts/project-css-fonts-stylesheet.component.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;;AAG7E;;;GAGG;AACH,qBAYa,kCAAkC;IAClB,YAAY,EAAG,MAAM,CAAC;IACxC,KAAK,CAAC,EAAE,SAAS,eAAe,EAAE,GAAG,IAAI,CAAC;IAC1C,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3C,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAKxB;IAED,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAMvB;yCAlBU,kCAAkC;2CAAlC,kCAAkC;CAmB9C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ProjectCssKeyframeDefinitions = Record<string, string>;
|
|
2
|
+
export declare const KEYFRAME_NAME_MAX_LENGTH = 80;
|
|
3
|
+
export declare const KEYFRAME_BODY_MAX_LENGTH = 4000;
|
|
4
|
+
export declare const MAX_PROJECT_KEYFRAMES = 32;
|
|
5
|
+
export declare const sanitizeProjectCssKeyframes: (keyframes: ProjectCssKeyframeDefinitions | null | undefined) => ProjectCssKeyframeDefinitions;
|
|
6
|
+
/**
|
|
7
|
+
* Unscoped `@keyframes` blocks. `publishedKey` is unused (document-global
|
|
8
|
+
* at-rule) and kept so the signature matches fonts/classes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const formatProjectCssKeyframesStylesheet: (publishedKey: string, keyframes: ProjectCssKeyframeDefinitions | null | undefined, includeKeyframes?: boolean | null) => string | null;
|
|
11
|
+
//# sourceMappingURL=format-project-css-keyframes-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-keyframes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/format-project-css-keyframes-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAC7C,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAyHxC,eAAO,MAAM,2BAA2B,cAC3B,6BAA6B,GAAG,IAAI,GAAG,SAAS,KAC1D,6BAuBF,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,mCAAmC,iBAChC,MAAM,aACT,6BAA6B,GAAG,IAAI,GAAG,SAAS,qBACxC,OAAO,GAAG,IAAI,KAChC,MAAM,GAAG,IAgBX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `keyframes` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeKeyframesOnPublishedWidget(includeKeyframes?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-keyframes-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-keyframes-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/include-project-css-keyframes-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,uCAAuC,CACrD,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,GAChC,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectCssKeyframeDefinitions } from './format-project-css-keyframes-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one unscoped `<style data-rulecms-project-keyframes>` from the
|
|
5
|
+
* project catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssKeyframesStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
keyframes?: ProjectCssKeyframeDefinitions | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssKeyframesStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssKeyframesStylesheetComponent, "rulecms-project-css-keyframes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "keyframes": { "alias": "keyframes"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-keyframes-stylesheet.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-css-keyframes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-keyframes/project-css-keyframes-stylesheet.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;;AAE/F;;;GAGG;AACH,qBASa,sCAAsC;IACtB,YAAY,EAAG,MAAM,CAAC;IACxC,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAE1D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,sCAAsC;2CAAtC,sCAAsC;CAOlD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ProjectCssPositionTryDefinitions = Record<string, string>;
|
|
2
|
+
export declare const POSITION_TRY_NAME_MAX_LENGTH = 80;
|
|
3
|
+
export declare const POSITION_TRY_BODY_MAX_LENGTH = 2000;
|
|
4
|
+
export declare const MAX_PROJECT_POSITION_TRY = 16;
|
|
5
|
+
export declare const sanitizeProjectCssPositionTry: (positionTry: ProjectCssPositionTryDefinitions | null | undefined) => ProjectCssPositionTryDefinitions;
|
|
6
|
+
/**
|
|
7
|
+
* Unscoped `@position-try` blocks. `publishedKey` is unused (document-global
|
|
8
|
+
* at-rule) and kept so the signature matches fonts/keyframes.
|
|
9
|
+
*/
|
|
10
|
+
export declare const formatProjectCssPositionTryStylesheet: (publishedKey: string, positionTry: ProjectCssPositionTryDefinitions | null | undefined, includePositionTry?: boolean | null) => string | null;
|
|
11
|
+
//# sourceMappingURL=format-project-css-position-try-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-position-try-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/format-project-css-position-try-stylesheet.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AACjD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AA2C3C,eAAO,MAAM,6BAA6B,gBAC3B,gCAAgC,GAAG,IAAI,GAAG,SAAS,KAC/D,gCAuBF,CAAC;AAQF;;;GAGG;AACH,eAAO,MAAM,qCAAqC,iBAClC,MAAM,eACP,gCAAgC,GAAG,IAAI,GAAG,SAAS,uBAC3C,OAAO,GAAG,IAAI,KAClC,MAAM,GAAG,IAgBX,CAAC"}
|
package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing / undefined means include (legacy payloads).
|
|
3
|
+
* `false` turns emission off, even if `positionTry` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare const shouldIncludePositionTryOnPublishedWidget: (includePositionTry?: boolean | null) => boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-position-try-on-published-widget.d.ts.map
|
package/lib/project-css-position-try/include-project-css-position-try-on-published-widget.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-position-try-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/include-project-css-position-try-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yCAAyC,wBAC/B,OAAO,GAAG,IAAI,KAClC,OAEF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectCssPositionTryDefinitions } from './format-project-css-position-try-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one unscoped `<style data-rulecms-project-position-try>` from the
|
|
5
|
+
* project catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssPositionTryStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
positionTry?: ProjectCssPositionTryDefinitions | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssPositionTryStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssPositionTryStylesheetComponent, "rulecms-project-css-position-try-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "positionTry": { "alias": "positionTry"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-position-try-stylesheet.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-css-position-try-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-position-try/project-css-position-try-stylesheet.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;;AAErG;;;GAGG;AACH,qBASa,wCAAwC;IACxB,YAAY,EAAG,MAAM,CAAC;IACxC,WAAW,CAAC,EAAE,gCAAgC,GAAG,IAAI,CAAC;IAE/D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,wCAAwC;2CAAxC,wCAAwC;CAOpD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const PROJECT_CSS_PROPERTY_SYNTAX_VALUES: readonly ["*", "<number>", "<integer>", "<length>", "<percentage>", "<length-percentage>", "<color>", "<angle>", "<time>", "<transform-function>", "<transform-list>"];
|
|
2
|
+
export type ProjectCssPropertySyntax = (typeof PROJECT_CSS_PROPERTY_SYNTAX_VALUES)[number];
|
|
3
|
+
export type ProjectCssPropertyDefinition = {
|
|
4
|
+
name: string;
|
|
5
|
+
syntax: ProjectCssPropertySyntax;
|
|
6
|
+
inherits: boolean;
|
|
7
|
+
initialValue: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const sanitizeProjectCssProperties: (cssProperties: readonly ProjectCssPropertyDefinition[] | null | undefined) => ProjectCssPropertyDefinition[];
|
|
10
|
+
/**
|
|
11
|
+
* Unscoped `@property` blocks. `publishedKey` is unused (document-global
|
|
12
|
+
* at-rule) and kept so the signature matches fonts/keyframes.
|
|
13
|
+
*/
|
|
14
|
+
export declare const formatProjectCssPropertiesStylesheet: (publishedKey: string, cssProperties: readonly ProjectCssPropertyDefinition[] | null | undefined, includeCssProperties?: boolean | null) => string | null;
|
|
15
|
+
//# sourceMappingURL=format-project-css-properties-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-properties-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/format-project-css-properties-stylesheet.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kCAAkC,wKAYrC,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,kCAAkC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3F,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,wBAAwB,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AA0BF,eAAO,MAAM,4BAA4B,kBACxB,SAAS,4BAA4B,EAAE,GAAG,IAAI,GAAG,SAAS,KACxE,4BAA4B,EAoC9B,CAAC;AAeF;;;GAGG;AACH,eAAO,MAAM,oCAAoC,iBACjC,MAAM,iBACL,SAAS,4BAA4B,EAAE,GAAG,IAAI,GAAG,SAAS,yBAClD,OAAO,GAAG,IAAI,KACpC,MAAM,GAAG,IAaX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `cssProperties` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeCssPropertiesOnPublishedWidget(includeCssProperties?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-properties-on-published-widget.d.ts.map
|
package/lib/project-css-properties/include-project-css-properties-on-published-widget.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-properties-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/include-project-css-properties-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,2CAA2C,CACzD,oBAAoB,CAAC,EAAE,OAAO,GAAG,IAAI,GACpC,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectCssPropertyDefinition } from './format-project-css-properties-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one unscoped `<style data-rulecms-project-css-properties>` from the
|
|
5
|
+
* project catalog, or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssPropertiesStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
cssProperties?: readonly ProjectCssPropertyDefinition[] | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssPropertiesStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssPropertiesStylesheetComponent, "rulecms-project-css-properties-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "cssProperties": { "alias": "cssProperties"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-properties-stylesheet.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-css-properties-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-properties/project-css-properties-stylesheet.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;;AAE/F;;;GAGG;AACH,qBASa,uCAAuC;IACvB,YAAY,EAAG,MAAM,CAAC;IACxC,aAAa,CAAC,EAAE,SAAS,4BAA4B,EAAE,GAAG,IAAI,CAAC;IAExE,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,uCAAuC;2CAAvC,uCAAuC;CAOnD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const MAX_PROJECT_THEMES = 5;
|
|
2
|
+
export declare const MAX_THEME_VARIABLES = 200;
|
|
3
|
+
export type ProjectThemeHostCondition = {
|
|
4
|
+
kind: 'prefers-color-scheme';
|
|
5
|
+
value: 'dark' | 'light';
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'html-class';
|
|
8
|
+
value: 'dark';
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'data-theme';
|
|
11
|
+
value: 'dark' | 'light';
|
|
12
|
+
};
|
|
13
|
+
export type ProjectThemeDefinition = {
|
|
14
|
+
condition: ProjectThemeHostCondition;
|
|
15
|
+
variables: Record<string, string>;
|
|
16
|
+
};
|
|
17
|
+
export declare const sanitizeProjectCssThemes: (themes: readonly ProjectThemeDefinition[] | null | undefined) => ProjectThemeDefinition[];
|
|
18
|
+
/**
|
|
19
|
+
* Host-condition token overrides on boxed children of this widget’s published-key
|
|
20
|
+
* span. Never styles `html` / `:root` / `body`. Empty / flag-off / unsanitary
|
|
21
|
+
* catalogs return null so the caller omits the `<style>` tag.
|
|
22
|
+
*/
|
|
23
|
+
export declare const formatProjectCssThemesStylesheet: (publishedKey: string, themes: readonly ProjectThemeDefinition[] | null | undefined, includeThemes?: boolean | null) => string | null;
|
|
24
|
+
//# sourceMappingURL=format-project-css-themes-stylesheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-project-css-themes-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/format-project-css-themes-stylesheet.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GACjC;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEpD,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,yBAAyB,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AA0CF,eAAO,MAAM,wBAAwB,WAC3B,SAAS,sBAAsB,EAAE,GAAG,IAAI,GAAG,SAAS,KAC3D,sBAAsB,EA+BxB,CAAC;AA4BF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,UACZ,SAAS,sBAAsB,EAAE,GAAG,IAAI,GAAG,SAAS,kBAC5C,OAAO,GAAG,IAAI,KAC7B,MAAM,GAAG,IAYX,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Missing/undefined on a widget GET payload means include. Only an explicit
|
|
3
|
+
* `false` turns emission off, even if `themes` is still present.
|
|
4
|
+
*/
|
|
5
|
+
export declare function shouldIncludeThemesOnPublishedWidget(includeThemes?: boolean | null): boolean;
|
|
6
|
+
//# sourceMappingURL=include-project-css-themes-on-published-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-project-css-themes-on-published-widget.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/include-project-css-themes-on-published-widget.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,GAC7B,OAAO,CAET"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ProjectThemeDefinition } from './format-project-css-themes-stylesheet';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Emits one `<style data-rulecms-project-themes>` from the project catalog,
|
|
5
|
+
* or nothing when the catalog is empty / unsanitary.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProjectCssThemesStylesheetComponent {
|
|
8
|
+
publishedKey: string;
|
|
9
|
+
themes?: readonly ProjectThemeDefinition[] | null;
|
|
10
|
+
get css(): string | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectCssThemesStylesheetComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProjectCssThemesStylesheetComponent, "rulecms-project-css-themes-stylesheet", never, { "publishedKey": { "alias": "publishedKey"; "required": true; }; "themes": { "alias": "themes"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=project-css-themes-stylesheet.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-css-themes-stylesheet.component.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-themes/project-css-themes-stylesheet.component.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;;AAErF;;;GAGG;AACH,qBASa,mCAAmC;IACnB,YAAY,EAAG,MAAM,CAAC;IACxC,MAAM,CAAC,EAAE,SAAS,sBAAsB,EAAE,GAAG,IAAI,CAAC;IAE3D,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAEvB;yCANU,mCAAmC;2CAAnC,mCAAmC;CAO/C"}
|
|
@@ -9,5 +9,5 @@ export declare const escapeCssAttributeValue: (value: string) => string;
|
|
|
9
9
|
* published-key span. Empty / flag-off / unsanitary catalogs return null so
|
|
10
10
|
* the caller omits the `<style>` tag.
|
|
11
11
|
*/
|
|
12
|
-
export declare const formatProjectCssVariablesStylesheet: (publishedKey: string, variables: ProjectCssVariableDefinitions | null | undefined) => string | null;
|
|
12
|
+
export declare const formatProjectCssVariablesStylesheet: (publishedKey: string, variables: ProjectCssVariableDefinitions | null | undefined, includeCssVariables?: boolean | null) => string | null;
|
|
13
13
|
//# sourceMappingURL=format-project-css-variables-stylesheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-project-css-variables-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/format-project-css-variables-stylesheet.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAyBpD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,iBAChC,MAAM,aACT,6BAA6B,GAAG,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"format-project-css-variables-stylesheet.d.ts","sourceRoot":"","sources":["../../../src/lib/project-css-variables/format-project-css-variables-stylesheet.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,KAAG,MACL,CAAC;AAyBpD;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,iBAChC,MAAM,aACT,6BAA6B,GAAG,IAAI,GAAG,SAAS,wBACrC,OAAO,GAAG,IAAI,KACnC,MAAM,GAAG,IAkBX,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* TODO: project setting — the customer turns this off if the host stylesheet
|
|
6
|
-
* already defines these tokens. Hardcoded on for this iteration.
|
|
7
|
-
*
|
|
8
|
-
* Class definitions (`classDefinitions` / `includeClassDefinitions` on the
|
|
9
|
-
* same GET) are a separate catalog; see `project-css-classes/`.
|
|
2
|
+
* Missing/undefined on a widget GET payload means include — the default, and
|
|
3
|
+
* the shape older clients already understand. Only an explicit `false` turns
|
|
4
|
+
* emission off, even if `cssVariables` is still present on the payload.
|
|
10
5
|
*/
|
|
11
|
-
export declare
|
|
6
|
+
export declare function shouldIncludeCssVariablesOnPublishedWidget(includeCssVariables?: boolean | null): boolean;
|
|
12
7
|
//# sourceMappingURL=include-project-css-variables-on-published-widget.d.ts.map
|