@rulecms/widget-angular 0.5.0 → 0.7.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 +1465 -186
- package/fesm2022/rulecms-widget-angular.mjs.map +1 -1
- package/lib/helpers/get-component-attributes-and-styles.d.ts.map +1 -1
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts +23 -0
- package/lib/project-css-classes/format-project-css-classes-stylesheet.d.ts.map +1 -0
- package/lib/project-css-classes/include-project-css-classes-on-published-widget.d.ts +7 -0
- package/lib/project-css-classes/include-project-css-classes-on-published-widget.d.ts.map +1 -0
- 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 +15 -0
- package/lib/project-css-classes/project-css-classes-stylesheet.component.d.ts.map +1 -0
- 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 -6
- 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/widget/prepare-rule-cms-widget-data.d.ts.map +1 -1
- package/lib/widget/rule-cms-widget.component.d.ts.map +1 -1
- package/lib/widget/widget-data.types.d.ts +110 -13
- package/lib/widget/widget-data.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { Items, WidgetCollection } from '../helpers/types';
|
|
2
2
|
import { ConfigLibrariesMap } from '../library-registry/types';
|
|
3
|
+
import type { ProjectCssClassDefinitions, ProjectCssClassLayer } from '../project-css-classes/format-project-css-classes-stylesheet';
|
|
3
4
|
import type { ProjectCssVariableDefinitions } from '../project-css-variables/format-project-css-variables-stylesheet';
|
|
5
|
+
import type { ProjectFontFace } from '../project-css-fonts/format-project-css-fonts-stylesheet';
|
|
6
|
+
import type { ProjectCssKeyframeDefinitions } from '../project-css-keyframes/format-project-css-keyframes-stylesheet';
|
|
7
|
+
import type { ProjectThemeDefinition } from '../project-css-themes/format-project-css-themes-stylesheet';
|
|
8
|
+
import type { ProjectCssPropertyDefinition } from '../project-css-properties/format-project-css-properties-stylesheet';
|
|
9
|
+
import type { ProjectWidgetChrome } from '../project-css-widget-chrome/format-project-css-widget-chrome-stylesheet';
|
|
10
|
+
import type { ProjectCssPositionTryDefinitions } from '../project-css-position-try/format-project-css-position-try-stylesheet';
|
|
4
11
|
export interface WidgetData {
|
|
5
12
|
publishedKey: string;
|
|
6
13
|
name: string;
|
|
@@ -23,37 +30,127 @@ export interface ChildCollection {
|
|
|
23
30
|
}
|
|
24
31
|
export interface GetRuleCMSWidgetResponse {
|
|
25
32
|
success: boolean;
|
|
26
|
-
data:
|
|
27
|
-
widget: WidgetData;
|
|
28
|
-
childCollections: {
|
|
29
|
-
[key: string]: ChildCollection;
|
|
30
|
-
};
|
|
31
|
-
libraries?: ConfigLibrariesMap;
|
|
32
|
-
/**
|
|
33
|
-
* Project CSS variable catalog joined at GET time. Omitted when empty or
|
|
34
|
-
* when emission is off.
|
|
35
|
-
*/
|
|
36
|
-
cssVariables?: ProjectCssVariableDefinitions;
|
|
37
|
-
};
|
|
33
|
+
data: RuleCMSWidgetRawData;
|
|
38
34
|
}
|
|
35
|
+
/** Render-ready widget payload after parsing API / fetch response. */
|
|
39
36
|
export interface RuleCMSWidgetData {
|
|
40
37
|
displayItemList: Items;
|
|
41
38
|
widgetCollections: {
|
|
42
39
|
[key: string]: WidgetCollection;
|
|
43
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Platform-served library descriptors (optional; absent for configs that
|
|
43
|
+
* only use the default library, and until the platform serves them).
|
|
44
|
+
*/
|
|
44
45
|
libraries?: ConfigLibrariesMap;
|
|
45
46
|
/**
|
|
46
47
|
* Project CSS variable catalog joined onto the widget GET. Optional; omit
|
|
47
|
-
* or `{}` when the project has none. Not stored on itemList.
|
|
48
|
+
* or `{}` when the project has none. Not stored on itemList. Dropped when
|
|
49
|
+
* `includeCssVariables` on the raw GET is `false`.
|
|
48
50
|
*/
|
|
49
51
|
cssVariables?: ProjectCssVariableDefinitions;
|
|
52
|
+
/**
|
|
53
|
+
* Project class-definition catalog joined onto the widget GET. Optional;
|
|
54
|
+
* omit or `{}` when the project has none. Not stored on itemList. Dropped
|
|
55
|
+
* when `includeClassDefinitions` on the raw GET is `false`.
|
|
56
|
+
*/
|
|
57
|
+
classDefinitions?: ProjectCssClassDefinitions;
|
|
58
|
+
/**
|
|
59
|
+
* Cascade layer to wrap class definitions. Dropped when
|
|
60
|
+
* `includeClassLayer` on the raw GET is `false`.
|
|
61
|
+
*/
|
|
62
|
+
classLayer?: ProjectCssClassLayer;
|
|
63
|
+
/**
|
|
64
|
+
* Project font-face catalog joined onto the widget GET. Dropped when
|
|
65
|
+
* `includeFontFaces` on the raw GET is `false`.
|
|
66
|
+
*/
|
|
67
|
+
fontFaces?: ProjectFontFace[];
|
|
68
|
+
/**
|
|
69
|
+
* Project keyframes catalog joined onto the widget GET. Dropped when
|
|
70
|
+
* `includeKeyframes` on the raw GET is `false`.
|
|
71
|
+
*/
|
|
72
|
+
keyframes?: ProjectCssKeyframeDefinitions;
|
|
73
|
+
/**
|
|
74
|
+
* Project theme-override catalog joined onto the widget GET. Dropped when
|
|
75
|
+
* `includeThemes` on the raw GET is `false`.
|
|
76
|
+
*/
|
|
77
|
+
themes?: ProjectThemeDefinition[];
|
|
78
|
+
/**
|
|
79
|
+
* Project typed `@property` catalog joined onto the widget GET. Dropped when
|
|
80
|
+
* `includeCssProperties` on the raw GET is `false`.
|
|
81
|
+
*/
|
|
82
|
+
cssProperties?: ProjectCssPropertyDefinition[];
|
|
83
|
+
/**
|
|
84
|
+
* Project widget-root chrome joined onto the widget GET. Dropped when
|
|
85
|
+
* `includeWidgetChrome` on the raw GET is `false`.
|
|
86
|
+
*/
|
|
87
|
+
widgetChrome?: ProjectWidgetChrome;
|
|
88
|
+
/**
|
|
89
|
+
* Project position-try catalog joined onto the widget GET. Dropped when
|
|
90
|
+
* `includePositionTry` on the raw GET is `false`.
|
|
91
|
+
*/
|
|
92
|
+
positionTry?: ProjectCssPositionTryDefinitions;
|
|
50
93
|
}
|
|
51
94
|
export interface RuleCMSWidgetRawData {
|
|
52
95
|
widget: WidgetData;
|
|
53
96
|
childCollections: {
|
|
54
97
|
[key: string]: ChildCollection;
|
|
55
98
|
};
|
|
99
|
+
/** Optional platform-served library descriptors (see RuleCMSWidgetData). */
|
|
56
100
|
libraries?: ConfigLibrariesMap;
|
|
57
101
|
cssVariables?: ProjectCssVariableDefinitions;
|
|
102
|
+
/**
|
|
103
|
+
* When `false`, do not emit the catalog even if `cssVariables` is present.
|
|
104
|
+
* Missing means include (legacy payloads).
|
|
105
|
+
*/
|
|
106
|
+
includeCssVariables?: boolean;
|
|
107
|
+
classDefinitions?: ProjectCssClassDefinitions;
|
|
108
|
+
/**
|
|
109
|
+
* When `false`, do not emit class definitions even if `classDefinitions` is
|
|
110
|
+
* present. Missing means include (legacy payloads).
|
|
111
|
+
*/
|
|
112
|
+
includeClassDefinitions?: boolean;
|
|
113
|
+
classLayer?: ProjectCssClassLayer;
|
|
114
|
+
/**
|
|
115
|
+
* When `false`, emit class definitions unlayered even if `classLayer` is
|
|
116
|
+
* present. Missing means wrap when `classLayer` is set.
|
|
117
|
+
*/
|
|
118
|
+
includeClassLayer?: boolean;
|
|
119
|
+
fontFaces?: ProjectFontFace[];
|
|
120
|
+
/**
|
|
121
|
+
* When `false`, do not emit fonts even if `fontFaces` is present.
|
|
122
|
+
* Missing means include (legacy payloads).
|
|
123
|
+
*/
|
|
124
|
+
includeFontFaces?: boolean;
|
|
125
|
+
keyframes?: ProjectCssKeyframeDefinitions;
|
|
126
|
+
/**
|
|
127
|
+
* When `false`, do not emit keyframes even if `keyframes` is present.
|
|
128
|
+
* Missing means include (legacy payloads).
|
|
129
|
+
*/
|
|
130
|
+
includeKeyframes?: boolean;
|
|
131
|
+
themes?: ProjectThemeDefinition[];
|
|
132
|
+
/**
|
|
133
|
+
* When `false`, do not emit theme overrides even if `themes` is present.
|
|
134
|
+
* Missing means include (legacy payloads).
|
|
135
|
+
*/
|
|
136
|
+
includeThemes?: boolean;
|
|
137
|
+
cssProperties?: ProjectCssPropertyDefinition[];
|
|
138
|
+
/**
|
|
139
|
+
* When `false`, do not emit typed CSS properties even if `cssProperties` is
|
|
140
|
+
* present. Missing means include (legacy payloads).
|
|
141
|
+
*/
|
|
142
|
+
includeCssProperties?: boolean;
|
|
143
|
+
widgetChrome?: ProjectWidgetChrome;
|
|
144
|
+
/**
|
|
145
|
+
* When `false`, do not emit widget chrome even if `widgetChrome` is present.
|
|
146
|
+
* Missing means include (legacy payloads).
|
|
147
|
+
*/
|
|
148
|
+
includeWidgetChrome?: boolean;
|
|
149
|
+
positionTry?: ProjectCssPositionTryDefinitions;
|
|
150
|
+
/**
|
|
151
|
+
* When `false`, do not emit position-try fallbacks even if `positionTry` is
|
|
152
|
+
* present. Missing means include (legacy payloads).
|
|
153
|
+
*/
|
|
154
|
+
includePositionTry?: boolean;
|
|
58
155
|
}
|
|
59
156
|
//# sourceMappingURL=widget-data.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-data.types.d.ts","sourceRoot":"","sources":["../../../src/lib/widget/widget-data.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;
|
|
1
|
+
{"version":3,"file":"widget-data.types.d.ts","sourceRoot":"","sources":["../../../src/lib/widget/widget-data.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EACV,0BAA0B,EAC1B,oBAAoB,EACrB,MAAM,8DAA8D,CAAC;AACtE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AACtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAChG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AACtH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACzG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oEAAoE,CAAC;AACvH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0EAA0E,CAAC;AACpH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,wEAAwE,CAAC;AAE/H,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,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