@qwik.dev/react 2.0.0-rc.3 → 2.0.0-rc.5

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.
@@ -1,4 +1,4 @@
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";
1
+ import { RenderOnce, SkipRender, Slot, _capturesObj, _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";
@@ -176,8 +176,7 @@ async function renderFromServer(Host, reactCmp$, scopeId, props, ref, slotRef, h
176
176
  const segments = splitHtmlAtMarkers(html);
177
177
  return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [/*#__PURE__*/ _jsxSplit(Host, {
178
178
  ref,
179
- ..._getVarProps(getHostProps(props)),
180
- ..._getConstProps(getHostProps(props))
179
+ ...getHostProps(props)
181
180
  }, null, /*#__PURE__*/ _jsxSorted(SSRStream, null, null, async function* () {
182
181
  yield /*#__PURE__*/ _jsxSorted(SSRComment, null, { data: "q:ignore" }, null, 3, "30_0");
183
182
  for (const segment of segments) if (segment.type === "html") yield /*#__PURE__*/ _jsxSorted(SSRRaw, null, { data: _wrapProp(segment, "content") }, null, 3, "30_1");
@@ -268,16 +267,13 @@ function qwikifyQrl(reactCmp$, opts) {
268
267
  const jsx = renderFromServer(TagName, reactCmp$, scopeId, props, hostRef, slotRef, hydrationKeys);
269
268
  return /*#__PURE__*/ _jsxSorted(RenderOnce, null, null, jsx, 1, 2);
270
269
  }
271
- return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [/*#__PURE__*/ _jsxSplit(TagName, { ..._getVarProps(getHostProps(props)) }, {
272
- ..._getConstProps(getHostProps(props)),
273
- ref: (el) => {
274
- if (isBrowser) queueMicrotask(() => {
275
- const internalData = internalState.value;
276
- if (internalData && !internalData.root) (internalData.root = createRoot(el)).render(main(slotRef.value, scopeId, internalData.cmp, props, internalData.projectionState));
277
- });
278
- else hostRef.value = el;
279
- }
280
- }, SkipRender, 0, "Wy_0"), /*#__PURE__*/ _jsxSorted("q-slot", null, { ref: slotRef }, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "Wy_1"), 1, null)], 1, "Wy_2");
270
+ return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [/*#__PURE__*/ _jsxSplit(TagName, { ...getHostProps(props) }, { ref: (el) => {
271
+ if (isBrowser) queueMicrotask(() => {
272
+ const internalData = internalState.value;
273
+ if (internalData && !internalData.root) (internalData.root = createRoot(el)).render(main(slotRef.value, scopeId, internalData.cmp, props, internalData.projectionState));
274
+ });
275
+ else hostRef.value = el;
276
+ } }, SkipRender, 0, "Wy_0"), /*#__PURE__*/ _jsxSorted("q-slot", null, { ref: slotRef }, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "Wy_1"), 1, null)], 1, "Wy_2");
281
277
  }, "qwikifyQrl_component_5bB3apdeFTY", [opts, reactCmp$]));
282
278
  }
283
279
  var qwikify$ = /*#__PURE__*/ implicit$FirstArg(qwikifyQrl);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1",
3
- "manifestHash": "l4b9vw",
3
+ "manifestHash": "epuazm",
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": 16591,
17
- "total": 16591,
16
+ "size": 16435,
17
+ "total": 16435,
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-rc.3",
4
+ "version": "2.0.0-rc.5",
5
5
  "bugs": "https://github.com/QwikDev/qwik/issues",
6
6
  "devDependencies": {
7
7
  "@types/react": "19.2.14",
@@ -9,8 +9,8 @@
9
9
  "react": "19.2.4",
10
10
  "react-dom": "19.2.4",
11
11
  "typescript": "5.9.3",
12
- "vite": "8.2.1",
13
- "@qwik.dev/core": "2.0.0-rc.3"
12
+ "vite": "8.2.4",
13
+ "@qwik.dev/core": "2.0.0-rc.5"
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-rc.3"
41
+ "@qwik.dev/core": "2.0.0-rc.5"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"