@vertz/ui-server 0.2.44 → 0.2.45
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/bun-dev-server.js +4 -1
- package/dist/index.js +3 -3
- package/dist/node-handler.js +2 -2
- package/dist/shared/{chunk-05hadnnd.js → chunk-ck3n699k.js} +1 -1
- package/dist/shared/{chunk-hd03dkxf.js → chunk-kzycr5v0.js} +1 -1
- package/dist/shared/{chunk-1v0wakka.js → chunk-tm5aeq94.js} +6 -2
- package/dist/ssr/index.js +2 -2
- package/package.json +1 -1
package/dist/bun-dev-server.js
CHANGED
|
@@ -1546,6 +1546,9 @@ function escapeAttr2(s) {
|
|
|
1546
1546
|
return s.replace(/[&"'<>]/g, (c) => `&#${c.charCodeAt(0)};`);
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
|
+
// src/ssr-single-pass.ts
|
|
1550
|
+
import { getInjectedCSS } from "@vertz/ui";
|
|
1551
|
+
|
|
1549
1552
|
// src/css-filter.ts
|
|
1550
1553
|
function extractClassNamesFromHTML(html) {
|
|
1551
1554
|
const classes = new Set;
|
|
@@ -3089,7 +3092,7 @@ function collectCSS(themeCss, module, renderedHtml) {
|
|
|
3089
3092
|
const ssrCtx = ssrStorage.getStore();
|
|
3090
3093
|
const tracker = ssrCtx?.cssTracker;
|
|
3091
3094
|
const useTracker = tracker && tracker.size > 0;
|
|
3092
|
-
const rawComponentCss = useTracker ? Array.from(tracker) : module.getInjectedCSS?.() ??
|
|
3095
|
+
const rawComponentCss = useTracker ? Array.from(tracker) : module.getInjectedCSS?.() ?? getInjectedCSS();
|
|
3093
3096
|
let componentCss = rawComponentCss.filter((s) => !alreadyIncluded.has(s));
|
|
3094
3097
|
if (!useTracker && componentCss.length > 0 && renderedHtml) {
|
|
3095
3098
|
componentCss = filterCSSByHTML(renderedHtml, componentCss);
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSSRHandler,
|
|
3
3
|
loadAotManifest
|
|
4
|
-
} from "./shared/chunk-
|
|
4
|
+
} from "./shared/chunk-ck3n699k.js";
|
|
5
5
|
import {
|
|
6
6
|
createNodeHandler
|
|
7
|
-
} from "./shared/chunk-
|
|
7
|
+
} from "./shared/chunk-kzycr5v0.js";
|
|
8
8
|
import {
|
|
9
9
|
clearRouteCssCache,
|
|
10
10
|
collectStreamChunks,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
ssrStreamNavQueries,
|
|
35
35
|
streamToString,
|
|
36
36
|
toPrefetchSession
|
|
37
|
-
} from "./shared/chunk-
|
|
37
|
+
} from "./shared/chunk-tm5aeq94.js";
|
|
38
38
|
import {
|
|
39
39
|
clearGlobalSSRTimeout,
|
|
40
40
|
createSSRAdapter,
|
package/dist/node-handler.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createNodeHandler
|
|
3
|
-
} from "./shared/chunk-
|
|
4
|
-
import"./shared/chunk-
|
|
3
|
+
} from "./shared/chunk-kzycr5v0.js";
|
|
4
|
+
import"./shared/chunk-tm5aeq94.js";
|
|
5
5
|
import"./shared/chunk-szvdd1qq.js";
|
|
6
6
|
import"./shared/chunk-bt1px3c4.js";
|
|
7
7
|
export {
|
|
@@ -373,6 +373,9 @@ function createSSRDataChunk(key, data, nonce) {
|
|
|
373
373
|
return `<script${nonceAttr}>window.__VERTZ_SSR_PUSH__(${safeSerialize(key)},${serialized})</script>`;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
+
// src/ssr-single-pass.ts
|
|
377
|
+
import { getInjectedCSS } from "@vertz/ui";
|
|
378
|
+
|
|
376
379
|
// src/css-filter.ts
|
|
377
380
|
function extractClassNamesFromHTML(html) {
|
|
378
381
|
const classes = new Set;
|
|
@@ -939,7 +942,7 @@ function collectCSS(themeCss, module, renderedHtml) {
|
|
|
939
942
|
const ssrCtx = ssrStorage.getStore();
|
|
940
943
|
const tracker = ssrCtx?.cssTracker;
|
|
941
944
|
const useTracker = tracker && tracker.size > 0;
|
|
942
|
-
const rawComponentCss = useTracker ? Array.from(tracker) : module.getInjectedCSS?.() ??
|
|
945
|
+
const rawComponentCss = useTracker ? Array.from(tracker) : module.getInjectedCSS?.() ?? getInjectedCSS();
|
|
943
946
|
let componentCss = rawComponentCss.filter((s) => !alreadyIncluded.has(s));
|
|
944
947
|
if (!useTracker && componentCss.length > 0 && renderedHtml) {
|
|
945
948
|
componentCss = filterCSSByHTML(renderedHtml, componentCss);
|
|
@@ -954,6 +957,7 @@ function collectCSS(themeCss, module, renderedHtml) {
|
|
|
954
957
|
}
|
|
955
958
|
|
|
956
959
|
// src/ssr-aot-pipeline.ts
|
|
960
|
+
import { getInjectedCSS as getInjectedCSS2 } from "@vertz/ui";
|
|
957
961
|
function createHoles(holeNames, module, url, queryCache, ssrAuth) {
|
|
958
962
|
if (holeNames.length === 0)
|
|
959
963
|
return {};
|
|
@@ -1226,7 +1230,7 @@ function collectCSSFromModule(module, renderedHtml, fallbackMetrics, routeCss, r
|
|
|
1226
1230
|
const ssrCtx = ssrStorage.getStore();
|
|
1227
1231
|
const tracker = ssrCtx?.cssTracker;
|
|
1228
1232
|
const useTracker = tracker && tracker.size > 0;
|
|
1229
|
-
const rawComponentCss = useTracker ? Array.from(tracker) : module.getInjectedCSS?.() ??
|
|
1233
|
+
const rawComponentCss = useTracker ? Array.from(tracker) : module.getInjectedCSS?.() ?? getInjectedCSS2();
|
|
1230
1234
|
componentCss = rawComponentCss.filter((s) => !alreadyIncluded.has(s));
|
|
1231
1235
|
if (!useTracker && componentCss.length > 0 && renderedHtml) {
|
|
1232
1236
|
componentCss = filterCSSByHTML(renderedHtml, componentCss);
|
package/dist/ssr/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSSRHandler,
|
|
3
3
|
loadAotManifest
|
|
4
|
-
} from "../shared/chunk-
|
|
4
|
+
} from "../shared/chunk-ck3n699k.js";
|
|
5
5
|
import {
|
|
6
6
|
injectIntoTemplate,
|
|
7
7
|
ssrRenderSinglePass,
|
|
8
8
|
ssrStreamNavQueries
|
|
9
|
-
} from "../shared/chunk-
|
|
9
|
+
} from "../shared/chunk-tm5aeq94.js";
|
|
10
10
|
import"../shared/chunk-szvdd1qq.js";
|
|
11
11
|
import"../shared/chunk-bt1px3c4.js";
|
|
12
12
|
// src/prerender.ts
|