@udixio/theme 2.1.19 → 2.1.21

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 2.1.21 (2026-04-11)
2
+
3
+ This was a version bump only for @udixio/theme to align it with other projects, there were no code changes.
4
+
5
+ ## 2.1.20 (2026-04-10)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **theme:** enhance theme configuration and improve plugin serialization ([789ad63](https://github.com/Udixio/UI/commit/789ad63))
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - Joël VIGREUX
14
+
1
15
  ## 2.1.19 (2026-04-09)
2
16
 
3
17
  ### 🚀 Features
package/dist/browser.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const loader = require("./loader-BN_VoxCd.cjs");
4
- const serialize = require("./serialize-NWi8E_Ms.cjs");
4
+ const serialize = require("./serialize-DBJHQrbL.cjs");
5
5
  exports.API = loader.API;
6
6
  exports.AppContainer = loader.AppContainer;
7
7
  exports.AppModule = loader.AppModule;
package/dist/browser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, H, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G, I } from "./loader-J0nrh600.js";
2
- import { F as F2, a as a2, P as P2, b as b2, d as d2, s as s2 } from "./serialize-BlsUXsgT.js";
2
+ import { F as F2, a as a2, P as P2, b as b2, d as d2, s as s2 } from "./serialize-FzII8uv3.js";
3
3
  export {
4
4
  A as API,
5
5
  a as AppContainer,
package/dist/node.cjs CHANGED
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  ));
24
24
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
25
  const loader = require("./loader-BN_VoxCd.cjs");
26
- const serialize = require("./serialize-NWi8E_Ms.cjs");
26
+ const serialize = require("./serialize-DBJHQrbL.cjs");
27
27
  const loadFromPath = require("./load-from-path-CuBpH2Cs.cjs");
28
28
  let unpluginInstance = null;
29
29
  const createUnpluginTheme = async () => {
package/dist/node.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { A, a, b, C, c, d, e, f, g, h, i, j, k, D, H, P, l, m, n, o, V, p, q, r, s, t, u, v, w, x, y, z, B, E, F, G, I } from "./loader-J0nrh600.js";
2
- import { F as F2, a as a2, P as P2, b as b2, d as d2, s as s2 } from "./serialize-BlsUXsgT.js";
2
+ import { F as F2, a as a2, P as P2, b as b2, d as d2, s as s2 } from "./serialize-FzII8uv3.js";
3
3
  import { l as loadFromPath } from "./load-from-path-CvD4a_os.js";
4
4
  import { r as r2 } from "./load-from-path-CvD4a_os.js";
5
5
  let unpluginInstance = null;
@@ -7,6 +7,7 @@ export declare abstract class PluginAbstract<Plugin extends PluginImplAbstract<O
7
7
  abstract readonly pluginClass: PluginConstructor<Plugin>;
8
8
  protected pluginInstance: Plugin | undefined;
9
9
  constructor(options: Options);
10
+ toSerializable(): Options;
10
11
  init(api: API): this;
11
12
  getInstance(): Plugin;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.abstract.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,kBAAkB,CAAC,GAAG,CAAC,IAAI,KACtE,GAAG,IAAI,EAAE,GAAG,KACT,MAAM,CAAC;AAEZ,8BAAsB,cAAc,CAClC,MAAM,SAAS,kBAAkB,CAAC,OAAO,CAAC,EAC1C,OAAO,SAAS,MAAM;IAEtB,kBAAyB,YAAY,EAAE,CAAC,KACtC,GAAG,IAAI,EAAE,GAAG,KACT,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,E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AO;IAIrB,cAAc,IAAI,OAAO;IAQzB,IAAI,CAAC,GAAG,EAAE,GAAG;IAMb,WAAW,IAAI,MAAM;CAM7B;AAED,8BAAsB,kBAAkB,CAAC,OAAO,SAAS,MAAM;IAE3D,SAAS,CAAC,GAAG,EAAE,GAAG;IAClB,SAAS,CAAC,OAAO,EAAE,OAAO;gBADhB,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO;IAK5B,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI;IAExB,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI;CACzB"}
@@ -9,6 +9,14 @@ class PluginAbstract {
9
9
  __publicField(this, "pluginInstance");
10
10
  this.options = options;
11
11
  }
12
+ toSerializable() {
13
+ return JSON.parse(
14
+ JSON.stringify(
15
+ this.options,
16
+ (_key, value) => typeof value === "function" ? void 0 : value
17
+ )
18
+ );
19
+ }
12
20
  init(api) {
13
21
  var _a, _b;
14
22
  this.pluginInstance = new this.pluginClass(api, this.options);
@@ -8,6 +8,14 @@ class PluginAbstract {
8
8
  __publicField(this, "pluginInstance");
9
9
  this.options = options;
10
10
  }
11
+ toSerializable() {
12
+ return JSON.parse(
13
+ JSON.stringify(
14
+ this.options,
15
+ (_key, value) => typeof value === "function" ? void 0 : value
16
+ )
17
+ );
18
+ }
11
19
  init(api) {
12
20
  var _a, _b;
13
21
  this.pluginInstance = new this.pluginClass(api, this.options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "2.1.19",
3
+ "version": "2.1.21",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
@@ -20,6 +20,14 @@ export abstract class PluginAbstract<
20
20
  this.options = options;
21
21
  }
22
22
 
23
+ public toSerializable(): Options {
24
+ return JSON.parse(
25
+ JSON.stringify(this.options, (_key, value) =>
26
+ typeof value === 'function' ? undefined : value,
27
+ ),
28
+ ) as Options;
29
+ }
30
+
23
31
  public init(api: API) {
24
32
  this.pluginInstance = new this.pluginClass(api, this.options);
25
33
  this.pluginInstance.onInit?.();