@udixio/theme 2.1.0 → 2.1.1

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,13 @@
1
+ ## 2.1.1 (2025-10-17)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **theme, plugins-tailwind:** enhance instance management and fix subThemes processing ([0a1b42e](https://github.com/Udixio/UI/commit/0a1b42e))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Joël VIGREUX
10
+
1
11
  ## 2.1.0 (2025-10-17)
2
12
 
3
13
  ### 🚀 Features
package/dist/bin.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const commander = require("commander");
3
3
  const chokidar = require("chokidar");
4
4
  const chalk = require("chalk");
5
- const loadFromPath = require("./load-from-path-kuofMGN3.cjs");
5
+ const loadFromPath = require("./load-from-path-Bvj18-eg.cjs");
6
6
  const program = new commander.Command();
7
7
  async function runOnce(configPath) {
8
8
  try {
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Command } from "commander";
2
2
  import chokidar from "chokidar";
3
3
  import chalk from "chalk";
4
- import { l as loadFromPath } from "./load-from-path-CBnO8ESw.js";
4
+ import { l as loadFromPath } from "./load-from-path-CjLV8qqN.js";
5
5
  const program = new Command();
6
6
  async function runOnce(configPath) {
7
7
  try {
package/dist/browser.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const loader = require("./loader-BzsrGBu-.cjs");
4
- const font_plugin = require("./font.plugin-FPU_gL1Y.cjs");
3
+ const loader = require("./loader-DuLiOKuW.cjs");
4
+ const font_plugin = require("./font.plugin-Czq_-M7T.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
- import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-CoayTlSl.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-5Xpo-ntw.js";
1
+ import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-Dy9GSe3X.js";
2
+ import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-B2IbI3Qs.js";
3
3
  export {
4
4
  A as API,
5
5
  a as AppContainer,
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import "./loader-CoayTlSl.js";
4
+ import "./loader-Dy9GSe3X.js";
5
5
  class PluginAbstract {
6
6
  constructor(options) {
7
7
  __publicField(this, "options");
@@ -2,7 +2,7 @@
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- require("./loader-BzsrGBu-.cjs");
5
+ require("./loader-DuLiOKuW.cjs");
6
6
  class PluginAbstract {
7
7
  constructor(options) {
8
8
  __publicField(this, "options");
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
22
  mod
23
23
  ));
24
- const loader = require("./loader-BzsrGBu-.cjs");
24
+ const loader = require("./loader-DuLiOKuW.cjs");
25
25
  const fs = require("node:fs");
26
26
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
27
27
  function _interopNamespaceDefault(e) {
@@ -44,7 +44,7 @@ const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
44
44
  async function resolveConfig(configPath = "./theme.config") {
45
45
  const { createJiti } = await import("jiti");
46
46
  const { resolve } = await import("pathe");
47
- const jiti = createJiti(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("load-from-path-kuofMGN3.cjs", document.baseURI).href, {
47
+ const jiti = createJiti(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("load-from-path-Bvj18-eg.cjs", document.baseURI).href, {
48
48
  debug: process.env.NODE_ENV === "development",
49
49
  fsCache: true,
50
50
  interopDefault: true
@@ -1,4 +1,4 @@
1
- import { p as loader } from "./loader-CoayTlSl.js";
1
+ import { p as loader } from "./loader-Dy9GSe3X.js";
2
2
  import * as fs from "node:fs";
3
3
  async function resolveConfig(configPath = "./theme.config") {
4
4
  const { createJiti } = await import("jiti");
@@ -2437,11 +2437,11 @@ class ColorManager {
2437
2437
  }
2438
2438
  }
2439
2439
  const ColorModule = {
2440
- colorManager: awilix.asClass(ColorManager).singleton(),
2441
- colorApi: awilix.asClass(ColorApi).singleton()
2440
+ colorManager: awilix.asClass(ColorManager).scoped(),
2441
+ colorApi: awilix.asClass(ColorApi).scoped()
2442
2442
  };
2443
2443
  const AppModule = {
2444
- api: awilix.asClass(API).singleton()
2444
+ api: awilix.asClass(API).scoped()
2445
2445
  };
2446
2446
  class PluginApi {
2447
2447
  constructor() {
@@ -2484,7 +2484,7 @@ class PluginApi {
2484
2484
  }
2485
2485
  }
2486
2486
  const PluginModule = {
2487
- pluginApi: awilix.asClass(PluginApi).singleton()
2487
+ pluginApi: awilix.asClass(PluginApi).scoped()
2488
2488
  };
2489
2489
  class Context {
2490
2490
  constructor() {
@@ -2618,7 +2618,7 @@ class Context {
2618
2618
  }
2619
2619
  }
2620
2620
  const ContextModule = {
2621
- context: awilix.asClass(Context).singleton()
2621
+ context: awilix.asClass(Context).scoped()
2622
2622
  };
2623
2623
  class Palette {
2624
2624
  constructor(name, callback, context) {
@@ -2794,8 +2794,8 @@ class PaletteManager {
2794
2794
  }
2795
2795
  }
2796
2796
  const PaletteModule = {
2797
- paletteApi: awilix.asClass(PaletteApi).singleton(),
2798
- paletteManager: awilix.asClass(PaletteManager).singleton()
2797
+ paletteApi: awilix.asClass(PaletteApi).scoped(),
2798
+ paletteManager: awilix.asClass(PaletteManager).scoped()
2799
2799
  };
2800
2800
  const AppContainer = () => {
2801
2801
  function registerModule(...modules) {
@@ -2436,11 +2436,11 @@ class ColorManager {
2436
2436
  }
2437
2437
  }
2438
2438
  const ColorModule = {
2439
- colorManager: asClass(ColorManager).singleton(),
2440
- colorApi: asClass(ColorApi).singleton()
2439
+ colorManager: asClass(ColorManager).scoped(),
2440
+ colorApi: asClass(ColorApi).scoped()
2441
2441
  };
2442
2442
  const AppModule = {
2443
- api: asClass(API).singleton()
2443
+ api: asClass(API).scoped()
2444
2444
  };
2445
2445
  class PluginApi {
2446
2446
  constructor() {
@@ -2483,7 +2483,7 @@ class PluginApi {
2483
2483
  }
2484
2484
  }
2485
2485
  const PluginModule = {
2486
- pluginApi: asClass(PluginApi).singleton()
2486
+ pluginApi: asClass(PluginApi).scoped()
2487
2487
  };
2488
2488
  class Context {
2489
2489
  constructor() {
@@ -2617,7 +2617,7 @@ class Context {
2617
2617
  }
2618
2618
  }
2619
2619
  const ContextModule = {
2620
- context: asClass(Context).singleton()
2620
+ context: asClass(Context).scoped()
2621
2621
  };
2622
2622
  class Palette {
2623
2623
  constructor(name, callback, context) {
@@ -2793,8 +2793,8 @@ class PaletteManager {
2793
2793
  }
2794
2794
  }
2795
2795
  const PaletteModule = {
2796
- paletteApi: asClass(PaletteApi).singleton(),
2797
- paletteManager: asClass(PaletteManager).singleton()
2796
+ paletteApi: asClass(PaletteApi).scoped(),
2797
+ paletteManager: asClass(PaletteManager).scoped()
2798
2798
  };
2799
2799
  const AppContainer = () => {
2800
2800
  function registerModule(...modules) {
package/dist/node.cjs CHANGED
@@ -22,9 +22,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
25
- const loader = require("./loader-BzsrGBu-.cjs");
26
- const font_plugin = require("./font.plugin-FPU_gL1Y.cjs");
27
- const loadFromPath = require("./load-from-path-kuofMGN3.cjs");
25
+ const loader = require("./loader-DuLiOKuW.cjs");
26
+ const font_plugin = require("./font.plugin-Czq_-M7T.cjs");
27
+ const loadFromPath = require("./load-from-path-Bvj18-eg.cjs");
28
28
  let unpluginInstance = null;
29
29
  const createUnpluginTheme = async () => {
30
30
  if (unpluginInstance) {
package/dist/node.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-CoayTlSl.js";
2
- import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-5Xpo-ntw.js";
3
- import { l as loadFromPath } from "./load-from-path-CBnO8ESw.js";
4
- import { r as r2 } from "./load-from-path-CBnO8ESw.js";
1
+ import { A, a, b, h, i, C, j, k, e, f, o, n, q, D, P, r, s, v, u, V, z, c, d, m, F, g, w, x, l, p, G, B, t, y, E } from "./loader-Dy9GSe3X.js";
2
+ import { F as F2, b as b2, P as P2, a as a2, d as d2 } from "./font.plugin-B2IbI3Qs.js";
3
+ import { l as loadFromPath } from "./load-from-path-CjLV8qqN.js";
4
+ import { r as r2 } from "./load-from-path-CjLV8qqN.js";
5
5
  let unpluginInstance = null;
6
6
  const createUnpluginTheme = async () => {
7
7
  if (unpluginInstance) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udixio/theme",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/node.js",
package/src/app.module.ts CHANGED
@@ -3,5 +3,5 @@ import { API } from './API';
3
3
  import { Module } from './app.container';
4
4
 
5
5
  export const AppModule: Module = {
6
- api: asClass(API).singleton(),
6
+ api: asClass(API).scoped(),
7
7
  };
@@ -4,6 +4,6 @@ import { asClass } from 'awilix';
4
4
  import { Module } from '../app.container';
5
5
 
6
6
  export const ColorModule: Module = {
7
- colorManager: asClass(ColorManager).singleton(),
8
- colorApi: asClass(ColorApi).singleton(),
7
+ colorManager: asClass(ColorManager).scoped(),
8
+ colorApi: asClass(ColorApi).scoped(),
9
9
  };
@@ -3,5 +3,5 @@ import { Module } from '../app.container';
3
3
  import { Context } from './context';
4
4
 
5
5
  export const ContextModule: Module = {
6
- context: asClass(Context).singleton(),
6
+ context: asClass(Context).scoped(),
7
7
  };
@@ -4,6 +4,6 @@ import { PaletteManager } from './palette.manager';
4
4
  import { PaletteApi } from './palette.api';
5
5
 
6
6
  export const PaletteModule: Module = {
7
- paletteApi: asClass(PaletteApi).singleton(),
8
- paletteManager: asClass(PaletteManager).singleton(),
7
+ paletteApi: asClass(PaletteApi).scoped(),
8
+ paletteManager: asClass(PaletteManager).scoped(),
9
9
  };
@@ -3,5 +3,5 @@ import { Module } from '../app.container';
3
3
  import { PluginApi } from './plugin.api';
4
4
 
5
5
  export const PluginModule: Module = {
6
- pluginApi: asClass(PluginApi).singleton(),
6
+ pluginApi: asClass(PluginApi).scoped(),
7
7
  };