@vectoriox/iox-builder 4.22.0 → 4.23.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/index.d.ts
CHANGED
|
@@ -205,8 +205,13 @@ declare const ACTION_TYPE_OPTIONS: {
|
|
|
205
205
|
declare const EASING_OPTIONS: string[];
|
|
206
206
|
/**
|
|
207
207
|
* A named, reusable collection of CSS style properties stored at the org level.
|
|
208
|
-
* Elements reference a preset by `stylePresetId
|
|
209
|
-
*
|
|
208
|
+
* Elements reference a preset by `stylePresetId` — but a preset is an AUTHORING
|
|
209
|
+
* convenience only: on save the builder flattens `{...preset.styleProps,
|
|
210
|
+
* ...node.styleOverrides}` into `node.styleProps`, and the SSR engine never
|
|
211
|
+
* resolves a preset (it has no `stylePresetId` reader at all). An earlier
|
|
212
|
+
* version of this comment claimed the engine merges presets at render time —
|
|
213
|
+
* it does not, which is exactly why a re-theme must travel through design
|
|
214
|
+
* TOKENS, never through presets. See style-presets.md and the flavors plan §2b.
|
|
210
215
|
*/
|
|
211
216
|
interface StylePreset {
|
|
212
217
|
id: string;
|
|
@@ -1151,7 +1156,7 @@ declare class StyleRegistryService {
|
|
|
1151
1156
|
* (e.g., `{ 'iox-primary-color': '#cb9090' }`).
|
|
1152
1157
|
* Pass an empty object to clear all tokens.
|
|
1153
1158
|
*/
|
|
1154
|
-
upsertTokens(tokens: Record<string, string>): void;
|
|
1159
|
+
upsertTokens(tokens: Record<string, string>, darkTokens?: Record<string, string>): void;
|
|
1155
1160
|
remove(nodeId: string): void;
|
|
1156
1161
|
destroy(): void;
|
|
1157
1162
|
private compile;
|