@qwik.dev/core 2.0.0-alpha.0 → 2.0.0-alpha.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/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 +2 -2
- package/dist/core.cjs +11 -5
- package/dist/core.cjs.map +1 -1
- package/dist/core.min.mjs +1 -1
- package/dist/core.mjs +11 -5
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.cjs +9 -6
- package/dist/core.prod.mjs +9 -6
- package/dist/insights/index.qwik.cjs +1 -1
- package/dist/insights/index.qwik.mjs +1 -1
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.cjs +11 -16
- package/dist/optimizer.mjs +12 -17
- package/dist/prefetch/package.json +1 -1
- package/dist/server.cjs +12 -6
- package/dist/server.mjs +12 -6
- package/dist/testing/index.cjs +10 -4
- package/dist/testing/index.mjs +10 -4
- package/dist/testing/package.json +1 -1
- package/package.json +11 -11
- package/public.d.ts +2 -0
package/dist/core.prod.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core 2.0.0-alpha.1-dev+10f5414
|
|
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
|
|
@@ -1076,8 +1076,10 @@
|
|
|
1076
1076
|
const executeComponent = (container, renderHost, subscriptionHost, componentQRL, props) => {
|
|
1077
1077
|
const iCtx = newInvokeContext(container.$locale$, subscriptionHost, void 0, "qRender");
|
|
1078
1078
|
let componentFn;
|
|
1079
|
-
|
|
1080
|
-
container.ensureProjectionResolved(renderHost)
|
|
1079
|
+
iCtx.$effectSubscriber$ = [ subscriptionHost, EffectProperty.COMPONENT ], iCtx.$container$ = container,
|
|
1080
|
+
container.ensureProjectionResolved(renderHost);
|
|
1081
|
+
let isInlineComponent = !1;
|
|
1082
|
+
if (null === componentQRL && (componentQRL = componentQRL || container.getHostProp(renderHost, "q:renderFn"),
|
|
1081
1083
|
assertDefined()), isQrl(componentQRL)) {
|
|
1082
1084
|
(props = props || container.getHostProp(renderHost, "q:props") || EMPTY_OBJ) && props.children && delete props.children,
|
|
1083
1085
|
componentFn = componentQRL.getFn(iCtx);
|
|
@@ -1085,11 +1087,12 @@
|
|
|
1085
1087
|
const qComponentFn = componentQRL;
|
|
1086
1088
|
componentFn = () => invokeApply(iCtx, qComponentFn, [ props || EMPTY_OBJ, null, 0 ]);
|
|
1087
1089
|
} else {
|
|
1090
|
+
isInlineComponent = !0;
|
|
1088
1091
|
const inlineComponent = componentQRL;
|
|
1089
1092
|
componentFn = () => invokeApply(iCtx, inlineComponent, [ props || EMPTY_OBJ ]);
|
|
1090
1093
|
}
|
|
1091
|
-
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall((() => (container.setHostProp(renderHost, "q:seqIdx", null),
|
|
1092
|
-
container.setHostProp(renderHost, ":onIdx", null), container.setHostProp(renderHost, "q:props", props),
|
|
1094
|
+
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall((() => (isInlineComponent || (container.setHostProp(renderHost, "q:seqIdx", null),
|
|
1095
|
+
container.setHostProp(renderHost, ":onIdx", null), container.getHostProp(renderHost, "q:props") !== props && container.setHostProp(renderHost, "q:props", props)),
|
|
1093
1096
|
vnode_isVNode(renderHost) && clearVNodeEffectDependencies(renderHost), componentFn(props))), (jsx => {
|
|
1094
1097
|
const useOnEvents = container.getHostProp(renderHost, ":on");
|
|
1095
1098
|
return useOnEvents ? maybeThen(function(jsx, useOnEvents) {
|
|
@@ -1901,7 +1904,7 @@
|
|
|
1901
1904
|
}
|
|
1902
1905
|
return 0;
|
|
1903
1906
|
}
|
|
1904
|
-
const version = "2.0.0-alpha.
|
|
1907
|
+
const version = "2.0.0-alpha.1-dev+10f5414";
|
|
1905
1908
|
class _SharedContainer {
|
|
1906
1909
|
$version$;
|
|
1907
1910
|
$scheduler$;
|
package/dist/core.prod.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core 2.0.0-alpha.1-dev+10f5414
|
|
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
|
|
@@ -1552,8 +1552,10 @@ function getNewElementNamespaceData(domParentVNode, tagOrVNode) {
|
|
|
1552
1552
|
const executeComponent = (container, renderHost, subscriptionHost, componentQRL, props) => {
|
|
1553
1553
|
const iCtx = newInvokeContext(container.$locale$, subscriptionHost, void 0, "qRender");
|
|
1554
1554
|
let componentFn;
|
|
1555
|
-
|
|
1556
|
-
container.ensureProjectionResolved(renderHost)
|
|
1555
|
+
iCtx.$effectSubscriber$ = [ subscriptionHost, EffectProperty.COMPONENT ], iCtx.$container$ = container,
|
|
1556
|
+
container.ensureProjectionResolved(renderHost);
|
|
1557
|
+
let isInlineComponent = !1;
|
|
1558
|
+
if (null === componentQRL && assertDefined(componentQRL = componentQRL || container.getHostProp(renderHost, "q:renderFn"), "No Component found at this location"),
|
|
1557
1559
|
isQrl(componentQRL)) {
|
|
1558
1560
|
(props = props || container.getHostProp(renderHost, "q:props") || EMPTY_OBJ) && props.children && delete props.children,
|
|
1559
1561
|
componentFn = componentQRL.getFn(iCtx);
|
|
@@ -1561,11 +1563,12 @@ const executeComponent = (container, renderHost, subscriptionHost, componentQRL,
|
|
|
1561
1563
|
const qComponentFn = componentQRL;
|
|
1562
1564
|
componentFn = () => invokeApply(iCtx, qComponentFn, [ props || EMPTY_OBJ, null, 0 ]);
|
|
1563
1565
|
} else {
|
|
1566
|
+
isInlineComponent = !0;
|
|
1564
1567
|
const inlineComponent = componentQRL;
|
|
1565
1568
|
componentFn = () => invokeApply(iCtx, inlineComponent, [ props || EMPTY_OBJ ]);
|
|
1566
1569
|
}
|
|
1567
|
-
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall((() => (container.setHostProp(renderHost, "q:seqIdx", null),
|
|
1568
|
-
container.setHostProp(renderHost, ":onIdx", null), container.setHostProp(renderHost, "q:props", props),
|
|
1570
|
+
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall((() => (isInlineComponent || (container.setHostProp(renderHost, "q:seqIdx", null),
|
|
1571
|
+
container.setHostProp(renderHost, ":onIdx", null), container.getHostProp(renderHost, "q:props") !== props && container.setHostProp(renderHost, "q:props", props)),
|
|
1569
1572
|
vnode_isVNode(renderHost) && clearVNodeEffectDependencies(renderHost), componentFn(props))), (jsx => {
|
|
1570
1573
|
const useOnEvents = container.getHostProp(renderHost, ":on");
|
|
1571
1574
|
return useOnEvents ? maybeThen(addUseOnEvents(jsx, useOnEvents), (() => jsx)) : jsx;
|
|
@@ -2410,7 +2413,7 @@ function sortedInsert(sortedArray, value) {
|
|
|
2410
2413
|
return choreUpdate(existing, value), existing;
|
|
2411
2414
|
}
|
|
2412
2415
|
|
|
2413
|
-
const version = "2.0.0-alpha.
|
|
2416
|
+
const version = "2.0.0-alpha.1-dev+10f5414";
|
|
2414
2417
|
|
|
2415
2418
|
class _SharedContainer {
|
|
2416
2419
|
$version$;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
6
6
|
const core = require("@qwik.dev/core");
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
|
-
* @qwik.dev/core 2.0.0-alpha.
|
|
9
|
+
* @qwik.dev/core 2.0.0-alpha.1-dev+10f5414
|
|
10
10
|
* Copyright QwikDev. All Rights Reserved.
|
|
11
11
|
* Use of this source code is governed by an MIT-style license that can be
|
|
12
12
|
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
|
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { sync$, component$ } from "@qwik.dev/core";
|
|
5
5
|
/**
|
|
6
6
|
* @license
|
|
7
|
-
* @qwik.dev/core 2.0.0-alpha.
|
|
7
|
+
* @qwik.dev/core 2.0.0-alpha.1-dev+10f5414
|
|
8
8
|
* Copyright QwikDev. All Rights Reserved.
|
|
9
9
|
* Use of this source code is governed by an MIT-style license that can be
|
|
10
10
|
* found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
|
package/dist/loader/package.json
CHANGED
package/dist/optimizer.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/optimizer 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core/optimizer 2.0.0-alpha.1-dev+10f5414
|
|
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
|
|
@@ -1224,18 +1224,9 @@ globalThis.qwikOptimizer = function(module) {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
|
-
var QWIK_BINDING_MAP = {
|
|
1228
|
-
linux: {
|
|
1229
|
-
x64: [ {
|
|
1230
|
-
platform: "linux",
|
|
1231
|
-
arch: "x64",
|
|
1232
|
-
abi: "gnu",
|
|
1233
|
-
platformArchABI: "qwik.linux-x64-gnu.node"
|
|
1234
|
-
} ]
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1227
|
+
var QWIK_BINDING_MAP = {};
|
|
1237
1228
|
var versions = {
|
|
1238
|
-
qwik: "2.0.0-alpha.
|
|
1229
|
+
qwik: "2.0.0-alpha.1-dev+10f5414"
|
|
1239
1230
|
};
|
|
1240
1231
|
async function getSystem() {
|
|
1241
1232
|
const sysEnv = getEnv();
|
|
@@ -3971,6 +3962,7 @@ globalThis.qwikOptimizer = function(module) {
|
|
|
3971
3962
|
iCtx.$container$ = container;
|
|
3972
3963
|
let componentFn;
|
|
3973
3964
|
container.ensureProjectionResolved(renderHost);
|
|
3965
|
+
let isInlineComponent = false;
|
|
3974
3966
|
if (null === componentQRL) {
|
|
3975
3967
|
componentQRL = componentQRL || container.getHostProp(renderHost, OnRenderProp);
|
|
3976
3968
|
assertDefined(componentQRL, "No Component found at this location");
|
|
@@ -3983,13 +3975,16 @@ globalThis.qwikOptimizer = function(module) {
|
|
|
3983
3975
|
const qComponentFn = componentQRL;
|
|
3984
3976
|
componentFn = () => invokeApply(iCtx, qComponentFn, [ props || EMPTY_OBJ, null, 0 ]);
|
|
3985
3977
|
} else {
|
|
3978
|
+
isInlineComponent = true;
|
|
3986
3979
|
const inlineComponent = componentQRL;
|
|
3987
3980
|
componentFn = () => invokeApply(iCtx, inlineComponent, [ props || EMPTY_OBJ ]);
|
|
3988
3981
|
}
|
|
3989
3982
|
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall((() => {
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3983
|
+
if (!isInlineComponent) {
|
|
3984
|
+
container.setHostProp(renderHost, ELEMENT_SEQ_IDX, null);
|
|
3985
|
+
container.setHostProp(renderHost, USE_ON_LOCAL_SEQ_IDX, null);
|
|
3986
|
+
container.getHostProp(renderHost, ELEMENT_PROPS) !== props && container.setHostProp(renderHost, ELEMENT_PROPS, props);
|
|
3987
|
+
}
|
|
3993
3988
|
vnode_isVNode(renderHost) && clearVNodeEffectDependencies(renderHost);
|
|
3994
3989
|
return componentFn(props);
|
|
3995
3990
|
}), (jsx2 => {
|
|
@@ -5084,7 +5079,7 @@ globalThis.qwikOptimizer = function(module) {
|
|
|
5084
5079
|
}));
|
|
5085
5080
|
console.log(lines.join("\n ") + "\n");
|
|
5086
5081
|
}
|
|
5087
|
-
var version = "2.0.0-alpha.
|
|
5082
|
+
var version = "2.0.0-alpha.1-dev+10f5414";
|
|
5088
5083
|
var _SharedContainer = class {
|
|
5089
5084
|
$version$;
|
|
5090
5085
|
$scheduler$;
|
package/dist/optimizer.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/optimizer 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core/optimizer 2.0.0-alpha.1-dev+10f5414
|
|
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
|
|
@@ -1257,19 +1257,10 @@ function createPath(opts = {}) {
|
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
-
var QWIK_BINDING_MAP = {
|
|
1261
|
-
linux: {
|
|
1262
|
-
x64: [ {
|
|
1263
|
-
platform: "linux",
|
|
1264
|
-
arch: "x64",
|
|
1265
|
-
abi: "gnu",
|
|
1266
|
-
platformArchABI: "qwik.linux-x64-gnu.node"
|
|
1267
|
-
} ]
|
|
1268
|
-
}
|
|
1269
|
-
};
|
|
1260
|
+
var QWIK_BINDING_MAP = {};
|
|
1270
1261
|
|
|
1271
1262
|
var versions = {
|
|
1272
|
-
qwik: "2.0.0-alpha.
|
|
1263
|
+
qwik: "2.0.0-alpha.1-dev+10f5414"
|
|
1273
1264
|
};
|
|
1274
1265
|
|
|
1275
1266
|
async function getSystem() {
|
|
@@ -3288,7 +3279,7 @@ function setLocale(locale) {
|
|
|
3288
3279
|
}
|
|
3289
3280
|
|
|
3290
3281
|
var versions3 = {
|
|
3291
|
-
qwik: "2.0.0-alpha.
|
|
3282
|
+
qwik: "2.0.0-alpha.1-dev+10f5414",
|
|
3292
3283
|
qwikDom: globalThis.QWIK_DOM_VERSION
|
|
3293
3284
|
};
|
|
3294
3285
|
|
|
@@ -4281,6 +4272,7 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
4281
4272
|
iCtx.$container$ = container;
|
|
4282
4273
|
let componentFn;
|
|
4283
4274
|
container.ensureProjectionResolved(renderHost);
|
|
4275
|
+
let isInlineComponent = false;
|
|
4284
4276
|
if (null === componentQRL) {
|
|
4285
4277
|
componentQRL = componentQRL || container.getHostProp(renderHost, OnRenderProp);
|
|
4286
4278
|
assertDefined(componentQRL, "No Component found at this location");
|
|
@@ -4293,13 +4285,16 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
4293
4285
|
const qComponentFn = componentQRL;
|
|
4294
4286
|
componentFn = () => invokeApply(iCtx, qComponentFn, [ props || EMPTY_OBJ, null, 0 ]);
|
|
4295
4287
|
} else {
|
|
4288
|
+
isInlineComponent = true;
|
|
4296
4289
|
const inlineComponent = componentQRL;
|
|
4297
4290
|
componentFn = () => invokeApply(iCtx, inlineComponent, [ props || EMPTY_OBJ ]);
|
|
4298
4291
|
}
|
|
4299
4292
|
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall((() => {
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4293
|
+
if (!isInlineComponent) {
|
|
4294
|
+
container.setHostProp(renderHost, ELEMENT_SEQ_IDX, null);
|
|
4295
|
+
container.setHostProp(renderHost, USE_ON_LOCAL_SEQ_IDX, null);
|
|
4296
|
+
container.getHostProp(renderHost, ELEMENT_PROPS) !== props && container.setHostProp(renderHost, ELEMENT_PROPS, props);
|
|
4297
|
+
}
|
|
4303
4298
|
vnode_isVNode(renderHost) && clearVNodeEffectDependencies(renderHost);
|
|
4304
4299
|
return componentFn(props);
|
|
4305
4300
|
}), (jsx2 => {
|
|
@@ -5420,7 +5415,7 @@ function debugTrace(action, arg, currentChore, queue) {
|
|
|
5420
5415
|
console.log(lines.join("\n ") + "\n");
|
|
5421
5416
|
}
|
|
5422
5417
|
|
|
5423
|
-
var version = "2.0.0-alpha.
|
|
5418
|
+
var version = "2.0.0-alpha.1-dev+10f5414";
|
|
5424
5419
|
|
|
5425
5420
|
var _SharedContainer = class {
|
|
5426
5421
|
constructor(scheduleDrain, journalFlush, serverData, locale) {
|
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.1-dev+10f5414
|
|
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
|
|
@@ -990,7 +990,7 @@ function getBuildBase(opts) {
|
|
|
990
990
|
return `${import_meta.env.BASE_URL}build/`;
|
|
991
991
|
}
|
|
992
992
|
var versions = {
|
|
993
|
-
qwik: "2.0.0-alpha.
|
|
993
|
+
qwik: "2.0.0-alpha.1-dev+10f5414",
|
|
994
994
|
qwikDom: "2.1.19"
|
|
995
995
|
};
|
|
996
996
|
|
|
@@ -1607,6 +1607,7 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
1607
1607
|
iCtx.$container$ = container;
|
|
1608
1608
|
let componentFn;
|
|
1609
1609
|
container.ensureProjectionResolved(renderHost);
|
|
1610
|
+
let isInlineComponent = false;
|
|
1610
1611
|
if (componentQRL === null) {
|
|
1611
1612
|
componentQRL = componentQRL || container.getHostProp(renderHost, OnRenderProp);
|
|
1612
1613
|
assertDefined(componentQRL, "No Component found at this location");
|
|
@@ -1621,14 +1622,19 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
1621
1622
|
const qComponentFn = componentQRL;
|
|
1622
1623
|
componentFn = () => invokeApply(iCtx, qComponentFn, [props || EMPTY_OBJ, null, 0]);
|
|
1623
1624
|
} else {
|
|
1625
|
+
isInlineComponent = true;
|
|
1624
1626
|
const inlineComponent = componentQRL;
|
|
1625
1627
|
componentFn = () => invokeApply(iCtx, inlineComponent, [props || EMPTY_OBJ]);
|
|
1626
1628
|
}
|
|
1627
1629
|
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall(
|
|
1628
1630
|
() => {
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1631
|
+
if (!isInlineComponent) {
|
|
1632
|
+
container.setHostProp(renderHost, ELEMENT_SEQ_IDX, null);
|
|
1633
|
+
container.setHostProp(renderHost, USE_ON_LOCAL_SEQ_IDX, null);
|
|
1634
|
+
if (container.getHostProp(renderHost, ELEMENT_PROPS) !== props) {
|
|
1635
|
+
container.setHostProp(renderHost, ELEMENT_PROPS, props);
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1632
1638
|
if (vnode_isVNode(renderHost)) {
|
|
1633
1639
|
clearVNodeEffectDependencies(renderHost);
|
|
1634
1640
|
}
|
|
@@ -3376,7 +3382,7 @@ var WrappedSignal = class extends Signal {
|
|
|
3376
3382
|
};
|
|
3377
3383
|
|
|
3378
3384
|
// packages/qwik/src/core/version.ts
|
|
3379
|
-
var version = "2.0.0-alpha.
|
|
3385
|
+
var version = "2.0.0-alpha.1-dev+10f5414";
|
|
3380
3386
|
|
|
3381
3387
|
// packages/qwik/src/core/shared/shared-container.ts
|
|
3382
3388
|
var _SharedContainer = class {
|
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.1-dev+10f5414
|
|
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
|
|
@@ -945,7 +945,7 @@ function getBuildBase(opts) {
|
|
|
945
945
|
return `${import.meta.env.BASE_URL}build/`;
|
|
946
946
|
}
|
|
947
947
|
var versions = {
|
|
948
|
-
qwik: "2.0.0-alpha.
|
|
948
|
+
qwik: "2.0.0-alpha.1-dev+10f5414",
|
|
949
949
|
qwikDom: "2.1.19"
|
|
950
950
|
};
|
|
951
951
|
|
|
@@ -1564,6 +1564,7 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
1564
1564
|
iCtx.$container$ = container;
|
|
1565
1565
|
let componentFn;
|
|
1566
1566
|
container.ensureProjectionResolved(renderHost);
|
|
1567
|
+
let isInlineComponent = false;
|
|
1567
1568
|
if (componentQRL === null) {
|
|
1568
1569
|
componentQRL = componentQRL || container.getHostProp(renderHost, OnRenderProp);
|
|
1569
1570
|
assertDefined(componentQRL, "No Component found at this location");
|
|
@@ -1578,14 +1579,19 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
1578
1579
|
const qComponentFn = componentQRL;
|
|
1579
1580
|
componentFn = () => invokeApply(iCtx, qComponentFn, [props || EMPTY_OBJ, null, 0]);
|
|
1580
1581
|
} else {
|
|
1582
|
+
isInlineComponent = true;
|
|
1581
1583
|
const inlineComponent = componentQRL;
|
|
1582
1584
|
componentFn = () => invokeApply(iCtx, inlineComponent, [props || EMPTY_OBJ]);
|
|
1583
1585
|
}
|
|
1584
1586
|
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall(
|
|
1585
1587
|
() => {
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1588
|
+
if (!isInlineComponent) {
|
|
1589
|
+
container.setHostProp(renderHost, ELEMENT_SEQ_IDX, null);
|
|
1590
|
+
container.setHostProp(renderHost, USE_ON_LOCAL_SEQ_IDX, null);
|
|
1591
|
+
if (container.getHostProp(renderHost, ELEMENT_PROPS) !== props) {
|
|
1592
|
+
container.setHostProp(renderHost, ELEMENT_PROPS, props);
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1589
1595
|
if (vnode_isVNode(renderHost)) {
|
|
1590
1596
|
clearVNodeEffectDependencies(renderHost);
|
|
1591
1597
|
}
|
|
@@ -3328,7 +3334,7 @@ var WrappedSignal = class extends Signal {
|
|
|
3328
3334
|
};
|
|
3329
3335
|
|
|
3330
3336
|
// packages/qwik/src/core/version.ts
|
|
3331
|
-
var version = "2.0.0-alpha.
|
|
3337
|
+
var version = "2.0.0-alpha.1-dev+10f5414";
|
|
3332
3338
|
|
|
3333
3339
|
// packages/qwik/src/core/shared/shared-container.ts
|
|
3334
3340
|
var _SharedContainer = class {
|
package/dist/testing/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/testing 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core/testing 2.0.0-alpha.1-dev+10f5414
|
|
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
|
|
@@ -23987,6 +23987,7 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
23987
23987
|
iCtx.$container$ = container;
|
|
23988
23988
|
let componentFn;
|
|
23989
23989
|
container.ensureProjectionResolved(renderHost);
|
|
23990
|
+
let isInlineComponent = false;
|
|
23990
23991
|
if (componentQRL === null) {
|
|
23991
23992
|
componentQRL = componentQRL || container.getHostProp(renderHost, OnRenderProp);
|
|
23992
23993
|
assertDefined(componentQRL, "No Component found at this location");
|
|
@@ -24001,14 +24002,19 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
24001
24002
|
const qComponentFn = componentQRL;
|
|
24002
24003
|
componentFn = () => invokeApply(iCtx, qComponentFn, [props || EMPTY_OBJ, null, 0]);
|
|
24003
24004
|
} else {
|
|
24005
|
+
isInlineComponent = true;
|
|
24004
24006
|
const inlineComponent = componentQRL;
|
|
24005
24007
|
componentFn = () => invokeApply(iCtx, inlineComponent, [props || EMPTY_OBJ]);
|
|
24006
24008
|
}
|
|
24007
24009
|
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall(
|
|
24008
24010
|
() => {
|
|
24009
|
-
|
|
24010
|
-
|
|
24011
|
-
|
|
24011
|
+
if (!isInlineComponent) {
|
|
24012
|
+
container.setHostProp(renderHost, ELEMENT_SEQ_IDX, null);
|
|
24013
|
+
container.setHostProp(renderHost, USE_ON_LOCAL_SEQ_IDX, null);
|
|
24014
|
+
if (container.getHostProp(renderHost, ELEMENT_PROPS) !== props) {
|
|
24015
|
+
container.setHostProp(renderHost, ELEMENT_PROPS, props);
|
|
24016
|
+
}
|
|
24017
|
+
}
|
|
24012
24018
|
if (vnode_isVNode(renderHost)) {
|
|
24013
24019
|
clearVNodeEffectDependencies(renderHost);
|
|
24014
24020
|
}
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* @qwik.dev/core/testing 2.0.0-alpha.
|
|
3
|
+
* @qwik.dev/core/testing 2.0.0-alpha.1-dev+10f5414
|
|
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
|
|
@@ -23969,6 +23969,7 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
23969
23969
|
iCtx.$container$ = container;
|
|
23970
23970
|
let componentFn;
|
|
23971
23971
|
container.ensureProjectionResolved(renderHost);
|
|
23972
|
+
let isInlineComponent = false;
|
|
23972
23973
|
if (componentQRL === null) {
|
|
23973
23974
|
componentQRL = componentQRL || container.getHostProp(renderHost, OnRenderProp);
|
|
23974
23975
|
assertDefined(componentQRL, "No Component found at this location");
|
|
@@ -23983,14 +23984,19 @@ var executeComponent = (container, renderHost, subscriptionHost, componentQRL, p
|
|
|
23983
23984
|
const qComponentFn = componentQRL;
|
|
23984
23985
|
componentFn = () => invokeApply(iCtx, qComponentFn, [props || EMPTY_OBJ, null, 0]);
|
|
23985
23986
|
} else {
|
|
23987
|
+
isInlineComponent = true;
|
|
23986
23988
|
const inlineComponent = componentQRL;
|
|
23987
23989
|
componentFn = () => invokeApply(iCtx, inlineComponent, [props || EMPTY_OBJ]);
|
|
23988
23990
|
}
|
|
23989
23991
|
const executeComponentWithPromiseExceptionRetry = (retryCount = 0) => safeCall(
|
|
23990
23992
|
() => {
|
|
23991
|
-
|
|
23992
|
-
|
|
23993
|
-
|
|
23993
|
+
if (!isInlineComponent) {
|
|
23994
|
+
container.setHostProp(renderHost, ELEMENT_SEQ_IDX, null);
|
|
23995
|
+
container.setHostProp(renderHost, USE_ON_LOCAL_SEQ_IDX, null);
|
|
23996
|
+
if (container.getHostProp(renderHost, ELEMENT_PROPS) !== props) {
|
|
23997
|
+
container.setHostProp(renderHost, ELEMENT_PROPS, props);
|
|
23998
|
+
}
|
|
23999
|
+
}
|
|
23994
24000
|
if (vnode_isVNode(renderHost)) {
|
|
23995
24001
|
clearVNodeEffectDependencies(renderHost);
|
|
23996
24002
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwik.dev/core",
|
|
3
3
|
"description": "An open source framework for building instant loading web apps at any scale, without the extra effort.",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.1",
|
|
5
5
|
"author": "Qwik Team",
|
|
6
6
|
"bin": {
|
|
7
7
|
"qwik": "./qwik-cli.cjs"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"kleur": "4.1.5",
|
|
16
16
|
"prettier": "3.3.3",
|
|
17
17
|
"vitest": "2.1.4",
|
|
18
|
-
"@qwik.dev/core": "2.0.0-alpha.
|
|
18
|
+
"@qwik.dev/core": "2.0.0-alpha.1",
|
|
19
19
|
"@qwik.dev/dom": "2.1.19"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"import": {
|
|
28
28
|
"development": "./dist/core.mjs",
|
|
29
29
|
"production": "./dist/core.prod.mjs",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"min": "./dist/core.min.mjs",
|
|
31
|
+
"default": "./dist/core.prod.mjs"
|
|
32
32
|
},
|
|
33
33
|
"require": {
|
|
34
34
|
"development": "./dist/core.cjs",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"require": "./dist/cli.cjs"
|
|
41
41
|
},
|
|
42
42
|
"./internal": {
|
|
43
|
-
"types": "./
|
|
43
|
+
"types": "./core-internal.d.ts",
|
|
44
44
|
"import": {
|
|
45
45
|
"development": "./dist/core.mjs",
|
|
46
46
|
"production": "./dist/core.prod.mjs",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"min": "./dist/core.min.mjs",
|
|
48
|
+
"default": "./dist/core.prod.mjs"
|
|
49
49
|
},
|
|
50
50
|
"require": {
|
|
51
51
|
"development": "./dist/core.cjs",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"import": {
|
|
59
59
|
"development": "./dist/core.mjs",
|
|
60
60
|
"production": "./dist/core.prod.mjs",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
61
|
+
"min": "./dist/core.min.mjs",
|
|
62
|
+
"default": "./dist/core.prod.mjs"
|
|
63
63
|
},
|
|
64
64
|
"require": {
|
|
65
65
|
"development": "./dist/core.cjs",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"import": {
|
|
73
73
|
"development": "./dist/core.mjs",
|
|
74
74
|
"production": "./dist/core.prod.mjs",
|
|
75
|
-
"
|
|
76
|
-
"
|
|
75
|
+
"min": "./dist/core.min.mjs",
|
|
76
|
+
"default": "./dist/core.mjs"
|
|
77
77
|
},
|
|
78
78
|
"require": {
|
|
79
79
|
"development": "./dist/core.cjs",
|
package/public.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export {
|
|
|
8
8
|
createComputed$,
|
|
9
9
|
createContextId,
|
|
10
10
|
createSignal,
|
|
11
|
+
CSSProperties,
|
|
11
12
|
// TODO remove this
|
|
12
13
|
event$,
|
|
13
14
|
EventHandler,
|
|
@@ -43,6 +44,7 @@ export {
|
|
|
43
44
|
SkipRender,
|
|
44
45
|
Slot,
|
|
45
46
|
sync$,
|
|
47
|
+
TaskCtx,
|
|
46
48
|
// TODO do we really want to export this?
|
|
47
49
|
untrack,
|
|
48
50
|
useComputed$,
|