@servlyadmin/runtime-core 0.1.39 → 0.1.41

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/dist/index.js CHANGED
@@ -10,12 +10,14 @@ import {
10
10
  markElementReady,
11
11
  preloadTailwind,
12
12
  preventFOUC,
13
+ refreshTailwind,
13
14
  removeCustomStyles,
14
15
  removeFOUCPrevention,
15
16
  removeTailwind,
17
+ scheduleRefresh,
16
18
  updateTailwindConfig,
17
19
  waitForTailwind
18
- } from "./chunk-O47EK24F.js";
20
+ } from "./chunk-E4BRYI54.js";
19
21
  import {
20
22
  buildRegistryFromBundle,
21
23
  collectAllDependencies,
@@ -2643,11 +2645,9 @@ var tailwindAutoInjected = false;
2643
2645
  function ensureTailwind() {
2644
2646
  if (tailwindAutoInjected || typeof document === "undefined") return;
2645
2647
  tailwindAutoInjected = true;
2646
- if (!isTailwindLoaded()) {
2647
- injectTailwind({ usePlayCdn: true }).catch((err) => {
2648
- console.warn("Failed to auto-inject Tailwind CSS:", err);
2649
- });
2650
- }
2648
+ injectTailwind({ usePlayCdn: true }).catch((err) => {
2649
+ console.warn("Failed to auto-inject Tailwind CSS:", err);
2650
+ });
2651
2651
  }
2652
2652
  var COMPONENT_TO_TAG = {
2653
2653
  container: "div",
@@ -3379,6 +3379,9 @@ function render(options) {
3379
3379
  }
3380
3380
  }
3381
3381
  }
3382
+ if (!options.disableTailwind) {
3383
+ scheduleRefresh();
3384
+ }
3382
3385
  const duration = performance.now() - startTime;
3383
3386
  const memoryAfter = memorySampler.sample();
3384
3387
  const longTasks = longTaskObserver.stop();
@@ -3610,7 +3613,7 @@ async function createServlyRenderer(options) {
3610
3613
  container = containerOption;
3611
3614
  }
3612
3615
  if (shouldInjectTailwind) {
3613
- const { initServlyTailwind: initServlyTailwind2 } = await import("./tailwind-ZBEKXMLR.js");
3616
+ const { initServlyTailwind: initServlyTailwind2 } = await import("./tailwind-XSRG6OMQ.js");
3614
3617
  await initServlyTailwind2(tailwindConfig);
3615
3618
  }
3616
3619
  const activeRenders = [];
@@ -4777,6 +4780,7 @@ export {
4777
4780
  preloadTailwind,
4778
4781
  preventFOUC,
4779
4782
  processStyles,
4783
+ refreshTailwind,
4780
4784
  registerIcon,
4781
4785
  registerIcons,
4782
4786
  removeClass,
@@ -4804,6 +4808,7 @@ export {
4804
4808
  runAllTests,
4805
4809
  runTestCase,
4806
4810
  satisfiesVersion,
4811
+ scheduleRefresh,
4807
4812
  setIconCdnEnabled,
4808
4813
  setInCache,
4809
4814
  setLocalStorage,
@@ -10,13 +10,15 @@ import {
10
10
  markElementReady,
11
11
  preloadTailwind,
12
12
  preventFOUC,
13
+ refreshTailwind,
13
14
  removeCustomStyles,
14
15
  removeFOUCPrevention,
15
16
  removeTailwind,
17
+ scheduleRefresh,
16
18
  tailwind_default,
17
19
  updateTailwindConfig,
18
20
  waitForTailwind
19
- } from "./chunk-O47EK24F.js";
21
+ } from "./chunk-E4BRYI54.js";
20
22
  export {
21
23
  DEFAULT_SERVLY_TAILWIND_CONFIG,
22
24
  addCustomStyles,
@@ -30,9 +32,11 @@ export {
30
32
  markElementReady,
31
33
  preloadTailwind,
32
34
  preventFOUC,
35
+ refreshTailwind,
33
36
  removeCustomStyles,
34
37
  removeFOUCPrevention,
35
38
  removeTailwind,
39
+ scheduleRefresh,
36
40
  updateTailwindConfig,
37
41
  waitForTailwind
38
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servlyadmin/runtime-core",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "description": "Framework-agnostic core renderer for Servly components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -40,4 +40,4 @@
40
40
  "vitest": "^1.0.0",
41
41
  "fast-check": "^3.15.0"
42
42
  }
43
- }
43
+ }