@vectoriox/iox-builder 4.22.0 → 4.24.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`. At render time the engine
209
- * merges `preset.styleProps → element.styleOverrides` so local overrides win.
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "4.22.0",
3
+ "version": "4.24.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",