xmlui 0.11.11 → 0.11.13

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.
@@ -1251,6 +1251,7 @@ declare interface ThemeDefinition extends ThemeDefinitionDetails {
1251
1251
  name?: string;
1252
1252
  extends?: string | Array<string>;
1253
1253
  tones?: Record<string | ThemeTone, ThemeDefinitionDetails>;
1254
+ color?: string;
1254
1255
  }
1255
1256
 
1256
1257
  declare interface ThemeDefinitionDetails {
@@ -254,11 +254,12 @@ declare interface Behavior {
254
254
  /**
255
255
  * A function that determines if the behavior should be applied based on the
256
256
  * component's context and props.
257
+ * @param context The renderer context of the component.
257
258
  * @param node The component definition.
258
259
  * @param metadata The metadata of the component.
259
260
  * @returns True if the behavior can be attached, otherwise false.
260
261
  */
261
- canAttach: (node: ComponentDef, metadata: ComponentMetadata) => boolean;
262
+ canAttach: (context: RendererContext<any>, node: ComponentDef, metadata: ComponentMetadata) => boolean;
262
263
  /**
263
264
  * A function that attaches the behavior to the component's React node.
264
265
  * @param context The renderer context of the component.
@@ -1800,6 +1801,7 @@ export declare interface ThemeDefinition extends ThemeDefinitionDetails {
1800
1801
  name?: string;
1801
1802
  extends?: string | Array<string>;
1802
1803
  tones?: Record<string | ThemeTone, ThemeDefinitionDetails>;
1804
+ color?: string;
1803
1805
  }
1804
1806
 
1805
1807
  declare interface ThemeDefinitionDetails {
package/dist/lib/xmlui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aa, Z, al, a1, ax, av, _, $, ai, ak, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-BNm0RhXG.js";
1
+ import { aa, Z, al, a1, ax, av, _, $, ai, ak, aw, ag, ab, a2, a0, S, ar, b, ao, ap, a4, a5, ae, af, as, aj, at, au, ah, ad, c, f, e, h, j, k, l, i, n, p, q, s, u, v, x, w, t, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, P, N, O, Q, R, U, V, a3, W, X, a7, an, a6, a8, aq, a9, am, Y, ac } from "./index-BGwgKjPl.js";
2
2
  import { e as e2, x as x2 } from "./xmlui-parser-CW8YmGjO.js";
3
3
  import { X as X2 } from "./xmlui-serializer-CeCcgdVR.js";
4
4
  export {