@qwik.dev/core 2.0.0-alpha.7 → 2.0.0-alpha.9
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/bindings/qwik.darwin-arm64.node +0 -0
- package/bindings/qwik.darwin-x64.node +0 -0
- package/bindings/qwik.linux-x64-gnu.node +0 -0
- package/bindings/qwik.win32-x64-msvc.node +0 -0
- package/bindings/qwik_wasm_bg.wasm +0 -0
- package/dist/build/package.json +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/core-internal.d.ts +245 -20
- package/dist/core.cjs +7280 -7339
- package/dist/core.cjs.map +1 -1
- package/dist/core.min.mjs +1 -1
- package/dist/core.mjs +7273 -7339
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.cjs +1646 -1735
- package/dist/core.prod.mjs +2737 -2849
- package/dist/insights/index.qwik.cjs +1854 -1958
- package/dist/insights/index.qwik.mjs +1854 -1958
- package/dist/insights/insights.d.ts +1 -1
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.cjs +65 -18
- package/dist/optimizer.d.ts +1 -1
- package/dist/optimizer.mjs +62 -18
- package/dist/prefetch/package.json +1 -1
- package/dist/server.cjs +42 -41
- package/dist/server.mjs +42 -41
- package/dist/starters/features/auth/package.json +1 -1
- package/dist/starters/features/tailwind/package.json +2 -2
- package/dist/starters/features/tailwind-v3/.vscode/settings.json +3 -0
- package/dist/starters/features/tailwind-v3/package.json +21 -0
- package/dist/starters/features/tailwind-v3/postcss.config.cjs +6 -0
- package/dist/starters/features/tailwind-v3/src/global.css +7 -0
- package/dist/starters/features/tailwind-v3/tailwind.config.js +8 -0
- package/dist/testing/index.cjs +3723 -3615
- package/dist/testing/index.d.ts +2 -1
- package/dist/testing/index.mjs +3995 -3888
- package/dist/testing/package.json +1 -1
- package/package.json +3 -3
- package/public.d.ts +6 -0
package/dist/server.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/server 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core/server 2.0.0-alpha.9-dev+56ed5bd
|
|
4
4
|
* Copyright QwikDev. All Rights Reserved.
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
|
|
@@ -53,7 +53,7 @@ __export(server_exports, {
|
|
|
53
53
|
renderToString: () => renderToString,
|
|
54
54
|
resolveManifest: () => resolveManifest,
|
|
55
55
|
setServerPlatform: () => setServerPlatform2,
|
|
56
|
-
versions: () =>
|
|
56
|
+
versions: () => versions
|
|
57
57
|
});
|
|
58
58
|
module.exports = __toCommonJS(server_exports);
|
|
59
59
|
var import_core5 = require("@qwik.dev/core");
|
|
@@ -102,13 +102,13 @@ function assertTrue(value1, text, ...parts) {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
// packages/qwik/src/core/client/util-mapArray.ts
|
|
105
|
-
var mapApp_findIndx = (
|
|
105
|
+
var mapApp_findIndx = (array, key, start) => {
|
|
106
106
|
assertTrue(start % 2 === 0, "Expecting even number.");
|
|
107
107
|
let bottom = start >> 1;
|
|
108
|
-
let top =
|
|
108
|
+
let top = array.length - 2 >> 1;
|
|
109
109
|
while (bottom <= top) {
|
|
110
110
|
const mid = bottom + (top - bottom >> 1);
|
|
111
|
-
const midKey =
|
|
111
|
+
const midKey = array[mid << 1];
|
|
112
112
|
if (midKey === key) {
|
|
113
113
|
return mid << 1;
|
|
114
114
|
}
|
|
@@ -120,36 +120,39 @@ var mapApp_findIndx = (elementVNode, key, start) => {
|
|
|
120
120
|
}
|
|
121
121
|
return bottom << 1 ^ -1;
|
|
122
122
|
};
|
|
123
|
-
var mapArray_set = (
|
|
124
|
-
const indx = mapApp_findIndx(
|
|
123
|
+
var mapArray_set = (array, key, value, start) => {
|
|
124
|
+
const indx = mapApp_findIndx(array, key, start);
|
|
125
125
|
if (indx >= 0) {
|
|
126
126
|
if (value == null) {
|
|
127
|
-
|
|
127
|
+
array.splice(indx, 2);
|
|
128
128
|
} else {
|
|
129
|
-
|
|
129
|
+
array[indx + 1] = value;
|
|
130
130
|
}
|
|
131
131
|
} else if (value != null) {
|
|
132
|
-
|
|
132
|
+
array.splice(indx ^ -1, 0, key, value);
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
var mapApp_remove = (
|
|
136
|
-
const indx = mapApp_findIndx(
|
|
135
|
+
var mapApp_remove = (array, key, start) => {
|
|
136
|
+
const indx = mapApp_findIndx(array, key, start);
|
|
137
137
|
let value = null;
|
|
138
138
|
if (indx >= 0) {
|
|
139
|
-
value =
|
|
140
|
-
|
|
139
|
+
value = array[indx + 1];
|
|
140
|
+
array.splice(indx, 2);
|
|
141
141
|
return value;
|
|
142
142
|
}
|
|
143
143
|
return value;
|
|
144
144
|
};
|
|
145
|
-
var mapArray_get = (
|
|
146
|
-
const indx = mapApp_findIndx(
|
|
145
|
+
var mapArray_get = (array, key, start) => {
|
|
146
|
+
const indx = mapApp_findIndx(array, key, start);
|
|
147
147
|
if (indx >= 0) {
|
|
148
|
-
return
|
|
148
|
+
return array[indx + 1];
|
|
149
149
|
} else {
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
|
+
var mapArray_has = (array, key, start) => {
|
|
154
|
+
return mapApp_findIndx(array, key, start) >= 0;
|
|
155
|
+
};
|
|
153
156
|
|
|
154
157
|
// packages/qwik/src/core/shared/error/error.ts
|
|
155
158
|
var codeToText = (code, ...parts) => {
|
|
@@ -254,8 +257,10 @@ See https://qwik.dev/docs/components/tasks/#use-method-rules`,
|
|
|
254
257
|
// 47
|
|
255
258
|
"WrappedSignal is read-only",
|
|
256
259
|
// 48
|
|
257
|
-
"Attribute value is unsafe for SSR"
|
|
260
|
+
"Attribute value is unsafe for SSR",
|
|
258
261
|
// 49
|
|
262
|
+
"SerializerSymbol function returned rejected promise"
|
|
263
|
+
// 50
|
|
259
264
|
];
|
|
260
265
|
let text = MAP[code] ?? "";
|
|
261
266
|
if (parts.length) {
|
|
@@ -356,8 +361,7 @@ function escapeHTML(html) {
|
|
|
356
361
|
// packages/qwik/src/core/shared/utils/markers.ts
|
|
357
362
|
var OnRenderProp = "q:renderFn";
|
|
358
363
|
var QSlot = "q:slot";
|
|
359
|
-
var QSlotParent = ":";
|
|
360
|
-
var QSlotRef = "q:sref";
|
|
364
|
+
var QSlotParent = "q:sparent";
|
|
361
365
|
var QStyle = "q:style";
|
|
362
366
|
var QStyleSelector = "style[q\\:style]";
|
|
363
367
|
var QStyleSSelector = "style[q\\:sstyle]";
|
|
@@ -774,13 +778,13 @@ var VNodeDataChar = {
|
|
|
774
778
|
/* ****** */
|
|
775
779
|
">"
|
|
776
780
|
),
|
|
777
|
-
|
|
778
|
-
/*
|
|
781
|
+
SLOT_PARENT: (
|
|
782
|
+
/* ******** */
|
|
779
783
|
63
|
|
780
784
|
),
|
|
781
|
-
// `?` - `q:
|
|
782
|
-
|
|
783
|
-
/*
|
|
785
|
+
// `?` - `q:sparent` - Slot parent.
|
|
786
|
+
SLOT_PARENT_CHAR: (
|
|
787
|
+
/* */
|
|
784
788
|
"?"
|
|
785
789
|
),
|
|
786
790
|
KEY: (
|
|
@@ -960,8 +964,8 @@ function getBuildBase(opts) {
|
|
|
960
964
|
}
|
|
961
965
|
return `${import_meta.env.BASE_URL}build/`;
|
|
962
966
|
}
|
|
963
|
-
var
|
|
964
|
-
qwik: "2.0.0-alpha.
|
|
967
|
+
var versions = {
|
|
968
|
+
qwik: "2.0.0-alpha.9-dev+56ed5bd",
|
|
965
969
|
qwikDom: "2.1.19"
|
|
966
970
|
};
|
|
967
971
|
|
|
@@ -971,8 +975,8 @@ var import_build4 = require("@qwik.dev/core/build");
|
|
|
971
975
|
|
|
972
976
|
// packages/qwik/src/server/prefetch-utils.ts
|
|
973
977
|
function workerFetchScript() {
|
|
974
|
-
const
|
|
975
|
-
const workerBody = `onmessage=(e)=>{${
|
|
978
|
+
const fetch = `Promise.all(e.data.map(u=>fetch(u))).finally(()=>{setTimeout(postMessage({}),9999)})`;
|
|
979
|
+
const workerBody = `onmessage=(e)=>{${fetch}}`;
|
|
976
980
|
const blob = `new Blob(['${workerBody}'],{type:"text/javascript"})`;
|
|
977
981
|
const url = `URL.createObjectURL(${blob})`;
|
|
978
982
|
let s = `const w=new Worker(${url});`;
|
|
@@ -1060,7 +1064,7 @@ function prefetchUrlsEvent2(container, prefetchResources, nonce) {
|
|
|
1060
1064
|
scriptAttrs.push("nonce", nonce);
|
|
1061
1065
|
}
|
|
1062
1066
|
container.openElement("script", null, scriptAttrs);
|
|
1063
|
-
container.writer.write(prefetchUrlsEventScript(container
|
|
1067
|
+
container.writer.write(prefetchUrlsEventScript(container.$buildBase$ || "", prefetchResources));
|
|
1064
1068
|
container.writer.write(
|
|
1065
1069
|
`;document.dispatchEvent(new CustomEvent('qprefetch', {detail:{links: [location.pathname]}}))`
|
|
1066
1070
|
);
|
|
@@ -1346,14 +1350,12 @@ var SsrComponentFrame = class {
|
|
|
1346
1350
|
return QDefaultSlot;
|
|
1347
1351
|
}
|
|
1348
1352
|
hasSlot(slotName) {
|
|
1349
|
-
return
|
|
1353
|
+
return mapArray_has(this.slots, slotName, 0);
|
|
1350
1354
|
}
|
|
1351
1355
|
consumeChildrenForSlot(projectionNode, slotName) {
|
|
1352
1356
|
const children = mapApp_remove(this.slots, slotName, 0);
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
projectionNode.setProp(QSlotParent, this.componentNode.id);
|
|
1356
|
-
}
|
|
1357
|
+
this.componentNode.setProp(slotName, projectionNode.id);
|
|
1358
|
+
projectionNode.setProp(QSlotParent, this.componentNode.id);
|
|
1357
1359
|
return children;
|
|
1358
1360
|
}
|
|
1359
1361
|
releaseUnclaimedProjections(unclaimedProjections) {
|
|
@@ -1779,7 +1781,6 @@ var SSRContainer = class extends import_core4._SharedContainer {
|
|
|
1779
1781
|
tag;
|
|
1780
1782
|
writer;
|
|
1781
1783
|
timing;
|
|
1782
|
-
buildBase;
|
|
1783
1784
|
resolvedManifest;
|
|
1784
1785
|
symbolToChunkResolver;
|
|
1785
1786
|
renderOptions;
|
|
@@ -1847,7 +1848,7 @@ var SSRContainer = class extends import_core4._SharedContainer {
|
|
|
1847
1848
|
this.tag = opts.tagName;
|
|
1848
1849
|
this.writer = opts.writer;
|
|
1849
1850
|
this.timing = opts.timing;
|
|
1850
|
-
this
|
|
1851
|
+
this.$buildBase$ = opts.buildBase;
|
|
1851
1852
|
this.resolvedManifest = opts.resolvedManifest;
|
|
1852
1853
|
this.renderOptions = opts.renderOptions;
|
|
1853
1854
|
this.$processInjectionsFromManifest$();
|
|
@@ -1914,7 +1915,7 @@ var SSRContainer = class extends import_core4._SharedContainer {
|
|
|
1914
1915
|
containerAttributes[QRuntimeAttr] = "2";
|
|
1915
1916
|
containerAttributes[QVersionAttr] = this.$version$ ?? "dev";
|
|
1916
1917
|
containerAttributes[QRenderAttr] = (qRender ? qRender + "-" : "") + (import_build4.isDev ? "ssr-dev" : "ssr");
|
|
1917
|
-
containerAttributes[QBaseAttr] = this
|
|
1918
|
+
containerAttributes[QBaseAttr] = this.$buildBase$ || "";
|
|
1918
1919
|
containerAttributes[QLocaleAttr] = this.$locale$;
|
|
1919
1920
|
containerAttributes[QManifestHashAttr] = this.resolvedManifest.manifest.manifestHash;
|
|
1920
1921
|
containerAttributes[QInstanceAttr] = this.$instanceHash$;
|
|
@@ -2261,9 +2262,6 @@ var SSRContainer = class extends import_core4._SharedContainer {
|
|
|
2261
2262
|
case ELEMENT_PROPS:
|
|
2262
2263
|
write(VNodeDataChar.PROPS_CHAR);
|
|
2263
2264
|
break;
|
|
2264
|
-
case QSlotRef:
|
|
2265
|
-
write(VNodeDataChar.SLOT_REF_CHAR);
|
|
2266
|
-
break;
|
|
2267
2265
|
case ELEMENT_KEY:
|
|
2268
2266
|
write(VNodeDataChar.KEY_CHAR);
|
|
2269
2267
|
break;
|
|
@@ -2276,6 +2274,9 @@ var SSRContainer = class extends import_core4._SharedContainer {
|
|
|
2276
2274
|
case QBackRefs:
|
|
2277
2275
|
write(VNodeDataChar.BACK_REFS_CHAR);
|
|
2278
2276
|
break;
|
|
2277
|
+
case QSlotParent:
|
|
2278
|
+
write(VNodeDataChar.SLOT_PARENT_CHAR);
|
|
2279
|
+
break;
|
|
2279
2280
|
// Skipping `\` character for now because it is used for escaping.
|
|
2280
2281
|
case QCtxAttr:
|
|
2281
2282
|
write(VNodeDataChar.CONTEXT_CHAR);
|
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/server 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core/server 2.0.0-alpha.9-dev+56ed5bd
|
|
4
4
|
* Copyright QwikDev. All Rights Reserved.
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
|
|
@@ -62,13 +62,13 @@ function assertTrue(value1, text, ...parts) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// packages/qwik/src/core/client/util-mapArray.ts
|
|
65
|
-
var mapApp_findIndx = (
|
|
65
|
+
var mapApp_findIndx = (array, key, start) => {
|
|
66
66
|
assertTrue(start % 2 === 0, "Expecting even number.");
|
|
67
67
|
let bottom = start >> 1;
|
|
68
|
-
let top =
|
|
68
|
+
let top = array.length - 2 >> 1;
|
|
69
69
|
while (bottom <= top) {
|
|
70
70
|
const mid = bottom + (top - bottom >> 1);
|
|
71
|
-
const midKey =
|
|
71
|
+
const midKey = array[mid << 1];
|
|
72
72
|
if (midKey === key) {
|
|
73
73
|
return mid << 1;
|
|
74
74
|
}
|
|
@@ -80,36 +80,39 @@ var mapApp_findIndx = (elementVNode, key, start) => {
|
|
|
80
80
|
}
|
|
81
81
|
return bottom << 1 ^ -1;
|
|
82
82
|
};
|
|
83
|
-
var mapArray_set = (
|
|
84
|
-
const indx = mapApp_findIndx(
|
|
83
|
+
var mapArray_set = (array, key, value, start) => {
|
|
84
|
+
const indx = mapApp_findIndx(array, key, start);
|
|
85
85
|
if (indx >= 0) {
|
|
86
86
|
if (value == null) {
|
|
87
|
-
|
|
87
|
+
array.splice(indx, 2);
|
|
88
88
|
} else {
|
|
89
|
-
|
|
89
|
+
array[indx + 1] = value;
|
|
90
90
|
}
|
|
91
91
|
} else if (value != null) {
|
|
92
|
-
|
|
92
|
+
array.splice(indx ^ -1, 0, key, value);
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
var mapApp_remove = (
|
|
96
|
-
const indx = mapApp_findIndx(
|
|
95
|
+
var mapApp_remove = (array, key, start) => {
|
|
96
|
+
const indx = mapApp_findIndx(array, key, start);
|
|
97
97
|
let value = null;
|
|
98
98
|
if (indx >= 0) {
|
|
99
|
-
value =
|
|
100
|
-
|
|
99
|
+
value = array[indx + 1];
|
|
100
|
+
array.splice(indx, 2);
|
|
101
101
|
return value;
|
|
102
102
|
}
|
|
103
103
|
return value;
|
|
104
104
|
};
|
|
105
|
-
var mapArray_get = (
|
|
106
|
-
const indx = mapApp_findIndx(
|
|
105
|
+
var mapArray_get = (array, key, start) => {
|
|
106
|
+
const indx = mapApp_findIndx(array, key, start);
|
|
107
107
|
if (indx >= 0) {
|
|
108
|
-
return
|
|
108
|
+
return array[indx + 1];
|
|
109
109
|
} else {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
+
var mapArray_has = (array, key, start) => {
|
|
114
|
+
return mapApp_findIndx(array, key, start) >= 0;
|
|
115
|
+
};
|
|
113
116
|
|
|
114
117
|
// packages/qwik/src/core/shared/error/error.ts
|
|
115
118
|
var codeToText = (code, ...parts) => {
|
|
@@ -214,8 +217,10 @@ See https://qwik.dev/docs/components/tasks/#use-method-rules`,
|
|
|
214
217
|
// 47
|
|
215
218
|
"WrappedSignal is read-only",
|
|
216
219
|
// 48
|
|
217
|
-
"Attribute value is unsafe for SSR"
|
|
220
|
+
"Attribute value is unsafe for SSR",
|
|
218
221
|
// 49
|
|
222
|
+
"SerializerSymbol function returned rejected promise"
|
|
223
|
+
// 50
|
|
219
224
|
];
|
|
220
225
|
let text = MAP[code] ?? "";
|
|
221
226
|
if (parts.length) {
|
|
@@ -316,8 +321,7 @@ function escapeHTML(html) {
|
|
|
316
321
|
// packages/qwik/src/core/shared/utils/markers.ts
|
|
317
322
|
var OnRenderProp = "q:renderFn";
|
|
318
323
|
var QSlot = "q:slot";
|
|
319
|
-
var QSlotParent = ":";
|
|
320
|
-
var QSlotRef = "q:sref";
|
|
324
|
+
var QSlotParent = "q:sparent";
|
|
321
325
|
var QStyle = "q:style";
|
|
322
326
|
var QStyleSelector = "style[q\\:style]";
|
|
323
327
|
var QStyleSSelector = "style[q\\:sstyle]";
|
|
@@ -734,13 +738,13 @@ var VNodeDataChar = {
|
|
|
734
738
|
/* ****** */
|
|
735
739
|
">"
|
|
736
740
|
),
|
|
737
|
-
|
|
738
|
-
/*
|
|
741
|
+
SLOT_PARENT: (
|
|
742
|
+
/* ******** */
|
|
739
743
|
63
|
|
740
744
|
),
|
|
741
|
-
// `?` - `q:
|
|
742
|
-
|
|
743
|
-
/*
|
|
745
|
+
// `?` - `q:sparent` - Slot parent.
|
|
746
|
+
SLOT_PARENT_CHAR: (
|
|
747
|
+
/* */
|
|
744
748
|
"?"
|
|
745
749
|
),
|
|
746
750
|
KEY: (
|
|
@@ -917,8 +921,8 @@ function getBuildBase(opts) {
|
|
|
917
921
|
}
|
|
918
922
|
return `${import.meta.env.BASE_URL}build/`;
|
|
919
923
|
}
|
|
920
|
-
var
|
|
921
|
-
qwik: "2.0.0-alpha.
|
|
924
|
+
var versions = {
|
|
925
|
+
qwik: "2.0.0-alpha.9-dev+56ed5bd",
|
|
922
926
|
qwikDom: "2.1.19"
|
|
923
927
|
};
|
|
924
928
|
|
|
@@ -935,8 +939,8 @@ import { isDev as isDev4 } from "@qwik.dev/core/build";
|
|
|
935
939
|
|
|
936
940
|
// packages/qwik/src/server/prefetch-utils.ts
|
|
937
941
|
function workerFetchScript() {
|
|
938
|
-
const
|
|
939
|
-
const workerBody = `onmessage=(e)=>{${
|
|
942
|
+
const fetch = `Promise.all(e.data.map(u=>fetch(u))).finally(()=>{setTimeout(postMessage({}),9999)})`;
|
|
943
|
+
const workerBody = `onmessage=(e)=>{${fetch}}`;
|
|
940
944
|
const blob = `new Blob(['${workerBody}'],{type:"text/javascript"})`;
|
|
941
945
|
const url = `URL.createObjectURL(${blob})`;
|
|
942
946
|
let s = `const w=new Worker(${url});`;
|
|
@@ -1024,7 +1028,7 @@ function prefetchUrlsEvent2(container, prefetchResources, nonce) {
|
|
|
1024
1028
|
scriptAttrs.push("nonce", nonce);
|
|
1025
1029
|
}
|
|
1026
1030
|
container.openElement("script", null, scriptAttrs);
|
|
1027
|
-
container.writer.write(prefetchUrlsEventScript(container
|
|
1031
|
+
container.writer.write(prefetchUrlsEventScript(container.$buildBase$ || "", prefetchResources));
|
|
1028
1032
|
container.writer.write(
|
|
1029
1033
|
`;document.dispatchEvent(new CustomEvent('qprefetch', {detail:{links: [location.pathname]}}))`
|
|
1030
1034
|
);
|
|
@@ -1313,14 +1317,12 @@ var SsrComponentFrame = class {
|
|
|
1313
1317
|
return QDefaultSlot;
|
|
1314
1318
|
}
|
|
1315
1319
|
hasSlot(slotName) {
|
|
1316
|
-
return
|
|
1320
|
+
return mapArray_has(this.slots, slotName, 0);
|
|
1317
1321
|
}
|
|
1318
1322
|
consumeChildrenForSlot(projectionNode, slotName) {
|
|
1319
1323
|
const children = mapApp_remove(this.slots, slotName, 0);
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
projectionNode.setProp(QSlotParent, this.componentNode.id);
|
|
1323
|
-
}
|
|
1324
|
+
this.componentNode.setProp(slotName, projectionNode.id);
|
|
1325
|
+
projectionNode.setProp(QSlotParent, this.componentNode.id);
|
|
1324
1326
|
return children;
|
|
1325
1327
|
}
|
|
1326
1328
|
releaseUnclaimedProjections(unclaimedProjections) {
|
|
@@ -1761,7 +1763,6 @@ var SSRContainer = class extends _SharedContainer {
|
|
|
1761
1763
|
__publicField(this, "tag");
|
|
1762
1764
|
__publicField(this, "writer");
|
|
1763
1765
|
__publicField(this, "timing");
|
|
1764
|
-
__publicField(this, "buildBase");
|
|
1765
1766
|
__publicField(this, "resolvedManifest");
|
|
1766
1767
|
__publicField(this, "symbolToChunkResolver");
|
|
1767
1768
|
__publicField(this, "renderOptions");
|
|
@@ -1816,7 +1817,7 @@ var SSRContainer = class extends _SharedContainer {
|
|
|
1816
1817
|
this.tag = opts.tagName;
|
|
1817
1818
|
this.writer = opts.writer;
|
|
1818
1819
|
this.timing = opts.timing;
|
|
1819
|
-
this
|
|
1820
|
+
this.$buildBase$ = opts.buildBase;
|
|
1820
1821
|
this.resolvedManifest = opts.resolvedManifest;
|
|
1821
1822
|
this.renderOptions = opts.renderOptions;
|
|
1822
1823
|
this.$processInjectionsFromManifest$();
|
|
@@ -1883,7 +1884,7 @@ var SSRContainer = class extends _SharedContainer {
|
|
|
1883
1884
|
containerAttributes[QRuntimeAttr] = "2";
|
|
1884
1885
|
containerAttributes[QVersionAttr] = this.$version$ ?? "dev";
|
|
1885
1886
|
containerAttributes[QRenderAttr] = (qRender ? qRender + "-" : "") + (isDev4 ? "ssr-dev" : "ssr");
|
|
1886
|
-
containerAttributes[QBaseAttr] = this
|
|
1887
|
+
containerAttributes[QBaseAttr] = this.$buildBase$ || "";
|
|
1887
1888
|
containerAttributes[QLocaleAttr] = this.$locale$;
|
|
1888
1889
|
containerAttributes[QManifestHashAttr] = this.resolvedManifest.manifest.manifestHash;
|
|
1889
1890
|
containerAttributes[QInstanceAttr] = this.$instanceHash$;
|
|
@@ -2226,9 +2227,6 @@ var SSRContainer = class extends _SharedContainer {
|
|
|
2226
2227
|
case ELEMENT_PROPS:
|
|
2227
2228
|
write(VNodeDataChar.PROPS_CHAR);
|
|
2228
2229
|
break;
|
|
2229
|
-
case QSlotRef:
|
|
2230
|
-
write(VNodeDataChar.SLOT_REF_CHAR);
|
|
2231
|
-
break;
|
|
2232
2230
|
case ELEMENT_KEY:
|
|
2233
2231
|
write(VNodeDataChar.KEY_CHAR);
|
|
2234
2232
|
break;
|
|
@@ -2241,6 +2239,9 @@ var SSRContainer = class extends _SharedContainer {
|
|
|
2241
2239
|
case QBackRefs:
|
|
2242
2240
|
write(VNodeDataChar.BACK_REFS_CHAR);
|
|
2243
2241
|
break;
|
|
2242
|
+
case QSlotParent:
|
|
2243
|
+
write(VNodeDataChar.SLOT_PARENT_CHAR);
|
|
2244
|
+
break;
|
|
2244
2245
|
// Skipping `\` character for now because it is used for escaping.
|
|
2245
2246
|
case QCtxAttr:
|
|
2246
2247
|
write(VNodeDataChar.CONTEXT_CHAR);
|
|
@@ -2866,5 +2867,5 @@ export {
|
|
|
2866
2867
|
renderToString,
|
|
2867
2868
|
resolveManifest,
|
|
2868
2869
|
setServerPlatform2 as setServerPlatform,
|
|
2869
|
-
|
|
2870
|
+
versions
|
|
2870
2871
|
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"nextSteps": {
|
|
11
11
|
"lines": [
|
|
12
|
-
" Please add `optimizeDeps: { include: ['@auth/
|
|
12
|
+
" Please add `optimizeDeps: { include: ['@auth/qwik'] }`",
|
|
13
13
|
" to your vite.config.ts file.",
|
|
14
14
|
" Have a look at the docs for more info: ",
|
|
15
15
|
" https://qwik.dev/docs/integrations/authjs/"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "Use Tailwind in your Qwik app",
|
|
2
|
+
"description": "Use Tailwind v4 in your Qwik app",
|
|
3
3
|
"__qwik__": {
|
|
4
|
-
"displayName": "Integration: Tailwind (styling)",
|
|
4
|
+
"displayName": "Integration: Tailwind v4 (styling)",
|
|
5
5
|
"priority": -10,
|
|
6
6
|
"viteConfig": {
|
|
7
7
|
"imports": [
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Use Tailwind v3 in your Qwik app",
|
|
3
|
+
"__qwik__": {
|
|
4
|
+
"displayName": "Integration: Tailwind v3 (styling)",
|
|
5
|
+
"priority": -10,
|
|
6
|
+
"viteConfig": {},
|
|
7
|
+
"docs": [
|
|
8
|
+
"https://qwik.dev/integrations/integration/tailwind/",
|
|
9
|
+
"https://tailwindcss.com/docs/utility-first"
|
|
10
|
+
],
|
|
11
|
+
"alwaysInRoot": [
|
|
12
|
+
".vscode"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"autoprefixer": "^10.4.19",
|
|
17
|
+
"postcss": "^8.4.39",
|
|
18
|
+
"prettier-plugin-tailwindcss": "^0.5.4",
|
|
19
|
+
"tailwindcss": "^3.4.17"
|
|
20
|
+
}
|
|
21
|
+
}
|