@servlyadmin/runtime-core 0.1.39 → 0.1.40
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/{chunk-O47EK24F.js → chunk-YYJF3UI2.js} +19 -0
- package/dist/index.cjs +26 -0
- package/dist/index.d.cts +2021 -0
- package/dist/index.d.ts +2021 -0
- package/dist/index.js +9 -2
- package/dist/{tailwind-ZBEKXMLR.js → tailwind-XB76THS4.js} +5 -1
- package/package.json +2 -2
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-
|
|
20
|
+
} from "./chunk-YYJF3UI2.js";
|
|
19
21
|
import {
|
|
20
22
|
buildRegistryFromBundle,
|
|
21
23
|
collectAllDependencies,
|
|
@@ -3379,6 +3381,9 @@ function render(options) {
|
|
|
3379
3381
|
}
|
|
3380
3382
|
}
|
|
3381
3383
|
}
|
|
3384
|
+
if (!options.disableTailwind) {
|
|
3385
|
+
scheduleRefresh();
|
|
3386
|
+
}
|
|
3382
3387
|
const duration = performance.now() - startTime;
|
|
3383
3388
|
const memoryAfter = memorySampler.sample();
|
|
3384
3389
|
const longTasks = longTaskObserver.stop();
|
|
@@ -3610,7 +3615,7 @@ async function createServlyRenderer(options) {
|
|
|
3610
3615
|
container = containerOption;
|
|
3611
3616
|
}
|
|
3612
3617
|
if (shouldInjectTailwind) {
|
|
3613
|
-
const { initServlyTailwind: initServlyTailwind2 } = await import("./tailwind-
|
|
3618
|
+
const { initServlyTailwind: initServlyTailwind2 } = await import("./tailwind-XB76THS4.js");
|
|
3614
3619
|
await initServlyTailwind2(tailwindConfig);
|
|
3615
3620
|
}
|
|
3616
3621
|
const activeRenders = [];
|
|
@@ -4777,6 +4782,7 @@ export {
|
|
|
4777
4782
|
preloadTailwind,
|
|
4778
4783
|
preventFOUC,
|
|
4779
4784
|
processStyles,
|
|
4785
|
+
refreshTailwind,
|
|
4780
4786
|
registerIcon,
|
|
4781
4787
|
registerIcons,
|
|
4782
4788
|
removeClass,
|
|
@@ -4804,6 +4810,7 @@ export {
|
|
|
4804
4810
|
runAllTests,
|
|
4805
4811
|
runTestCase,
|
|
4806
4812
|
satisfiesVersion,
|
|
4813
|
+
scheduleRefresh,
|
|
4807
4814
|
setIconCdnEnabled,
|
|
4808
4815
|
setInCache,
|
|
4809
4816
|
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-
|
|
21
|
+
} from "./chunk-YYJF3UI2.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.
|
|
3
|
+
"version": "0.1.40",
|
|
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
|
+
}
|