@qwik.dev/react 2.0.0-beta.45 → 2.0.0-beta.47
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/lib/index.qwik.mjs +5 -5
- package/lib/q-manifest.json +3 -3
- package/package.json +3 -3
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RenderOnce, SkipRender, Slot,
|
|
1
|
+
import { RenderOnce, SkipRender, Slot, _capturesObj, _getConstProps, _getVarProps, _jsxSorted, _jsxSplit, _wrapProp, componentQrl, implicit$FirstArg, inlinedQrl, isBrowser, isServer, jsx, noSerialize, useOn, useOnDocument, useSignal, useStore, useStylesScopedQrl, useTaskQrl } from "@qwik.dev/core";
|
|
2
2
|
import { Fragment } from "@qwik.dev/core/jsx-runtime";
|
|
3
3
|
import { SSRComment, SSRRaw, SSRStream, _addProjection, _getContextContainer, _getContextHostElement, _removeProjection, _setProjectionTarget, _updateProjectionProps } from "@qwik.dev/core/internal";
|
|
4
4
|
import { createRoot, hydrateRoot } from "react-dom/client";
|
|
@@ -106,7 +106,7 @@ var getHostProps = (props) => {
|
|
|
106
106
|
var useWakeupSignal = (props, opts = {}) => {
|
|
107
107
|
const signal = useSignal(false);
|
|
108
108
|
const activate = /*#__PURE__*/ inlinedQrl(() => {
|
|
109
|
-
|
|
109
|
+
let signal = _capturesObj._[0];
|
|
110
110
|
return signal.value = true;
|
|
111
111
|
}, "useWakeupSignal_activate_bbwdFkXhIMU", [signal]);
|
|
112
112
|
const clientOnly = !!(props["client:only"] || props["qwik:only"] || opts?.clientOnly);
|
|
@@ -206,7 +206,7 @@ async function renderFromServer(Host, reactCmp$, scopeId, props, ref, slotRef, h
|
|
|
206
206
|
}
|
|
207
207
|
function qwikifyQrl(reactCmp$, opts) {
|
|
208
208
|
return /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props) => {
|
|
209
|
-
|
|
209
|
+
let opts = _capturesObj._[0], reactCmp$ = _capturesObj._[1];
|
|
210
210
|
const { scopeId } = useStylesScopedQrl(/*#__PURE__*/ inlinedQrl(`q-slot{display:none} q-slotc,q-slotc>q-slot{display:contents}`, "qwikifyQrl_component_useStylesScoped_ppvg9vpFqsY"));
|
|
211
211
|
const hostRef = useSignal();
|
|
212
212
|
const slotRef = useSignal();
|
|
@@ -215,7 +215,7 @@ function qwikifyQrl(reactCmp$, opts) {
|
|
|
215
215
|
const hydrationKeys = useStore({});
|
|
216
216
|
const TagName = opts?.tagName ?? "qwik-react";
|
|
217
217
|
useTaskQrl(/*#__PURE__*/ inlinedQrl(async ({ track }) => {
|
|
218
|
-
|
|
218
|
+
let hostRef = _capturesObj._[0], hydrationKeys = _capturesObj._[1], internalState = _capturesObj._[2], isClientOnly = _capturesObj._[3], props = _capturesObj._[4], reactCmp$ = _capturesObj._[5], scopeId = _capturesObj._[6], signal = _capturesObj._[7], slotRef = _capturesObj._[8];
|
|
219
219
|
const trackedProps = track(() => ({ ...props }));
|
|
220
220
|
track(signal);
|
|
221
221
|
if (!isBrowser) return;
|
|
@@ -257,7 +257,7 @@ function qwikifyQrl(reactCmp$, opts) {
|
|
|
257
257
|
slotRef
|
|
258
258
|
]));
|
|
259
259
|
useTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
|
|
260
|
-
|
|
260
|
+
let internalState = _capturesObj._[0], signal = _capturesObj._[1];
|
|
261
261
|
track(signal);
|
|
262
262
|
if (isBrowser) cleanup(() => {
|
|
263
263
|
const root = internalState.value?.root;
|
package/lib/q-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1",
|
|
3
|
-
"manifestHash": "
|
|
3
|
+
"manifestHash": "l4b9vw",
|
|
4
4
|
"options": {
|
|
5
5
|
"target": "lib",
|
|
6
6
|
"buildMode": "development",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"mapping": {},
|
|
14
14
|
"bundles": {
|
|
15
15
|
"../index.qwik.mjs": {
|
|
16
|
-
"size":
|
|
17
|
-
"total":
|
|
16
|
+
"size": 16591,
|
|
17
|
+
"total": 16591,
|
|
18
18
|
"origins": [
|
|
19
19
|
"src/index.qwik.ts",
|
|
20
20
|
"src/react/client.tsx",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwik.dev/react",
|
|
3
3
|
"description": "Qwik React allows adding React components into existing Qwik application",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.47",
|
|
5
5
|
"bugs": "https://github.com/QwikDev/qwik/issues",
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@types/react": "19.2.14",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"react-dom": "19.2.4",
|
|
11
11
|
"typescript": "5.9.3",
|
|
12
12
|
"vite": "8.2.1",
|
|
13
|
-
"@qwik.dev/core": "2.0.0-beta.
|
|
13
|
+
"@qwik.dev/core": "2.0.0-beta.47"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react": "^18",
|
|
39
39
|
"react-dom": "^18",
|
|
40
40
|
"vite": ">=8 <9",
|
|
41
|
-
"@qwik.dev/core": "2.0.0-beta.
|
|
41
|
+
"@qwik.dev/core": "2.0.0-beta.47"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|