hadars 0.4.2 → 1.0.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/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import "./chunk-3RG5ZIWI.js";
2
+
1
3
  // src/utils/Head.tsx
2
4
  import React from "react";
3
5
  function deriveKey(tag, props) {
package/dist/lambda.cjs CHANGED
@@ -197,25 +197,8 @@ var REACT19_ELEMENT = /* @__PURE__ */ Symbol.for("react.transitional.element");
197
197
  var FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
198
198
  var SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
199
199
 
200
- // src/slim-react/jsx.ts
201
- function createElement(type, props, ...children) {
202
- const normalizedProps = { ...props || {} };
203
- if (children.length === 1) {
204
- normalizedProps.children = children[0];
205
- } else if (children.length > 1) {
206
- normalizedProps.children = children;
207
- }
208
- const key = normalizedProps.key ?? null;
209
- delete normalizedProps.key;
210
- return {
211
- $$typeof: SLIM_ELEMENT,
212
- type,
213
- props: normalizedProps,
214
- key
215
- };
216
- }
217
-
218
200
  // src/slim-react/renderContext.ts
201
+ var import_node_module = require("module");
219
202
  var MAP_KEY = "__slimReactContextMap";
220
203
  var _g = globalThis;
221
204
  if (!("__slimReactContextMap" in _g)) _g[MAP_KEY] = null;
@@ -237,8 +220,7 @@ function restoreUnsuspend(u) {
237
220
  function getContextValue(context) {
238
221
  const map = _g[MAP_KEY];
239
222
  if (map && map.has(context)) return map.get(context);
240
- const c = context;
241
- return "_defaultValue" in c ? c._defaultValue : c._currentValue;
223
+ return context._currentValue;
242
224
  }
243
225
  function pushContextValue(context, value) {
244
226
  let map = _g[MAP_KEY];
@@ -246,8 +228,7 @@ function pushContextValue(context, value) {
246
228
  map = /* @__PURE__ */ new Map();
247
229
  _g[MAP_KEY] = map;
248
230
  }
249
- const c = context;
250
- const prev = map.has(context) ? map.get(context) : "_defaultValue" in c ? c._defaultValue : c._currentValue;
231
+ const prev = map.has(context) ? map.get(context) : context._currentValue;
251
232
  map.set(context, value);
252
233
  return prev;
253
234
  }
@@ -352,13 +333,58 @@ function getTreeId() {
352
333
  const stripped = (id & ~(1 << 31 - Math.clz32(id))).toString(32);
353
334
  return stripped + overflow;
354
335
  }
336
+ var _detectReact = () => {
337
+ if (typeof __HADARS_REACT_MAJOR__ !== "undefined") {
338
+ const major = parseInt(String(__HADARS_REACT_MAJOR__), 10);
339
+ return {
340
+ major,
341
+ // Exact patch version is unknown from the define alone; use a
342
+ // representative fallback. Most libraries only check the major.
343
+ version: major < 19 ? "18.3.1" : "19.1.1"
344
+ };
345
+ }
346
+ const parse = (ver) => ({ major: parseInt(ver.split(".")[0], 10), version: ver });
347
+ try {
348
+ return parse(require("react").version);
349
+ } catch {
350
+ }
351
+ try {
352
+ const req = (0, import_node_module.createRequire)(process.cwd() + "/__hadars__.js");
353
+ return parse(req("react").version);
354
+ } catch {
355
+ }
356
+ return { major: 19, version: "19.1.1" };
357
+ };
358
+ var _react = _detectReact();
359
+ var REACT_MAJOR = _react.major;
360
+ var REACT_VERSION = _react.version;
355
361
  function makeId() {
356
362
  const st = s();
357
363
  const treeId = getTreeId();
358
364
  const n = st.localIdCounter++;
359
- let id = "_R_" + st.idPrefix + treeId;
360
- if (n > 0) id += "H" + n.toString(32);
361
- return id + "_";
365
+ const suffix = n > 0 ? "H" + n.toString(32) : "";
366
+ if (REACT_MAJOR < 19) {
367
+ return ":" + st.idPrefix + "R" + treeId + suffix + ":";
368
+ }
369
+ return "_R_" + st.idPrefix + treeId + suffix + "_";
370
+ }
371
+
372
+ // src/slim-react/jsx.ts
373
+ function createElement(type, props, ...children) {
374
+ const normalizedProps = { ...props || {} };
375
+ if (children.length === 1) {
376
+ normalizedProps.children = children[0];
377
+ } else if (children.length > 1) {
378
+ normalizedProps.children = children;
379
+ }
380
+ const key = normalizedProps.key ?? null;
381
+ delete normalizedProps.key;
382
+ return {
383
+ $$typeof: SLIM_ELEMENT,
384
+ type,
385
+ props: normalizedProps,
386
+ key
387
+ };
362
388
  }
363
389
 
364
390
  // src/slim-react/hooks.ts
@@ -419,8 +445,9 @@ function use(usable) {
419
445
 
420
446
  // src/slim-react/dispatcher.ts
421
447
  var ReactNS = __toESM(require("react"), 1);
422
- var _reactInternalsKey = "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE";
423
- var _internals = ReactNS[_reactInternalsKey];
448
+ var _r19 = ReactNS["__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE"];
449
+ var _r18Raw = !_r19 ? ReactNS["__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"] : void 0;
450
+ var _r18 = _r18Raw?.ReactCurrentDispatcher ? _r18Raw : void 0;
424
451
  var slimDispatcher = {
425
452
  useId: makeId,
426
453
  readContext: (ctx) => getContextValue(ctx),
@@ -448,13 +475,21 @@ var slimDispatcher = {
448
475
  useHostTransitionStatus: () => false
449
476
  };
450
477
  function installDispatcher() {
451
- if (!_internals) return null;
452
- const prev = _internals.H;
453
- _internals.H = slimDispatcher;
454
- return prev;
478
+ if (_r19) {
479
+ const prev = _r19.H;
480
+ _r19.H = slimDispatcher;
481
+ return prev;
482
+ }
483
+ if (_r18) {
484
+ const prev = _r18.ReactCurrentDispatcher.current;
485
+ _r18.ReactCurrentDispatcher.current = slimDispatcher;
486
+ return prev;
487
+ }
488
+ return null;
455
489
  }
456
490
  function restoreDispatcher(prev) {
457
- if (_internals) _internals.H = prev;
491
+ if (_r19) _r19.H = prev;
492
+ else if (_r18) _r18.ReactCurrentDispatcher.current = prev;
458
493
  }
459
494
 
460
495
  // src/slim-react/render.ts
@@ -711,7 +746,7 @@ function writeAttributes(writer, props, isSvg, skip) {
711
746
  if (isSvg && key in SVG_ATTR_MAP) {
712
747
  attrName = SVG_ATTR_MAP[key];
713
748
  } else {
714
- attrName = key === "className" ? "class" : key === "htmlFor" ? "for" : key === "tabIndex" ? "tabindex" : key === "defaultValue" ? "value" : key === "defaultChecked" ? "checked" : key;
749
+ attrName = key === "className" ? "class" : key === "htmlFor" ? "for" : key === "tabIndex" ? "tabindex" : key === "defaultValue" ? "value" : key === "defaultChecked" ? "checked" : key === "contentEditable" && REACT_MAJOR < 19 ? "contenteditable" : key;
715
750
  }
716
751
  if (value === false || value == null) {
717
752
  if (value === false && (attrName.charCodeAt(0) === 97 && attrName.startsWith("aria-") || attrName.charCodeAt(0) === 100 && attrName.startsWith("data-"))) {
@@ -920,7 +955,8 @@ function renderComponent(type, props, writer, isSvg, _suspenseRetries = 0) {
920
955
  const LazyComp = resolved?.default ?? resolved;
921
956
  return renderComponent(LazyComp, props, writer, isSvg);
922
957
  }
923
- if (typeOf === REACT_CONSUMER) {
958
+ const isConsumer = typeOf === REACT_CONSUMER || typeOf === REACT_CONTEXT && "_context" in type && !("value" in props);
959
+ if (isConsumer) {
924
960
  const ctx2 = type._context;
925
961
  const value = ctx2 ? getContextValue(ctx2) : void 0;
926
962
  const result2 = typeof props.children === "function" ? props.children(value) : null;
package/dist/lambda.js CHANGED
@@ -6,9 +6,10 @@ import {
6
6
  getReactResponse,
7
7
  makePrecontentHtmlGetter,
8
8
  parseRequest
9
- } from "./chunk-NYLXE7T7.js";
10
- import "./chunk-2TMQUXFL.js";
9
+ } from "./chunk-U2JQR4HV.js";
10
+ import "./chunk-HIKMDNRB.js";
11
11
  import "./chunk-OZUZS2PD.js";
12
+ import "./chunk-3RG5ZIWI.js";
12
13
 
13
14
  // src/lambda.ts
14
15
  import "react";
@@ -38,6 +38,7 @@ __export(slim_react_exports, {
38
38
  SLIM_ELEMENT: () => SLIM_ELEMENT,
39
39
  SUSPENSE_TYPE: () => SUSPENSE_TYPE,
40
40
  Suspense: () => Suspense,
41
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED2,
41
42
  cloneElement: () => cloneElement,
42
43
  createContext: () => createContext,
43
44
  createElement: () => createElement,
@@ -83,34 +84,8 @@ var REACT19_ELEMENT = /* @__PURE__ */ Symbol.for("react.transitional.element");
83
84
  var FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
84
85
  var SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
85
86
 
86
- // src/slim-react/jsx.ts
87
- var Fragment = FRAGMENT_TYPE;
88
- function jsx(type, props, key) {
89
- return {
90
- $$typeof: SLIM_ELEMENT,
91
- type,
92
- props: props || {},
93
- key: key ?? (props?.key ?? null)
94
- };
95
- }
96
- function createElement(type, props, ...children) {
97
- const normalizedProps = { ...props || {} };
98
- if (children.length === 1) {
99
- normalizedProps.children = children[0];
100
- } else if (children.length > 1) {
101
- normalizedProps.children = children;
102
- }
103
- const key = normalizedProps.key ?? null;
104
- delete normalizedProps.key;
105
- return {
106
- $$typeof: SLIM_ELEMENT,
107
- type,
108
- props: normalizedProps,
109
- key
110
- };
111
- }
112
-
113
87
  // src/slim-react/renderContext.ts
88
+ var import_node_module = require("module");
114
89
  var MAP_KEY = "__slimReactContextMap";
115
90
  var _g = globalThis;
116
91
  if (!("__slimReactContextMap" in _g)) _g[MAP_KEY] = null;
@@ -132,8 +107,7 @@ function restoreUnsuspend(u) {
132
107
  function getContextValue(context) {
133
108
  const map = _g[MAP_KEY];
134
109
  if (map && map.has(context)) return map.get(context);
135
- const c = context;
136
- return "_defaultValue" in c ? c._defaultValue : c._currentValue;
110
+ return context._currentValue;
137
111
  }
138
112
  function pushContextValue(context, value) {
139
113
  let map = _g[MAP_KEY];
@@ -141,8 +115,7 @@ function pushContextValue(context, value) {
141
115
  map = /* @__PURE__ */ new Map();
142
116
  _g[MAP_KEY] = map;
143
117
  }
144
- const c = context;
145
- const prev = map.has(context) ? map.get(context) : "_defaultValue" in c ? c._defaultValue : c._currentValue;
118
+ const prev = map.has(context) ? map.get(context) : context._currentValue;
146
119
  map.set(context, value);
147
120
  return prev;
148
121
  }
@@ -247,13 +220,67 @@ function getTreeId() {
247
220
  const stripped = (id & ~(1 << 31 - Math.clz32(id))).toString(32);
248
221
  return stripped + overflow;
249
222
  }
223
+ var _detectReact = () => {
224
+ if (typeof __HADARS_REACT_MAJOR__ !== "undefined") {
225
+ const major = parseInt(String(__HADARS_REACT_MAJOR__), 10);
226
+ return {
227
+ major,
228
+ // Exact patch version is unknown from the define alone; use a
229
+ // representative fallback. Most libraries only check the major.
230
+ version: major < 19 ? "18.3.1" : "19.1.1"
231
+ };
232
+ }
233
+ const parse = (ver) => ({ major: parseInt(ver.split(".")[0], 10), version: ver });
234
+ try {
235
+ return parse(require("react").version);
236
+ } catch {
237
+ }
238
+ try {
239
+ const req = (0, import_node_module.createRequire)(process.cwd() + "/__hadars__.js");
240
+ return parse(req("react").version);
241
+ } catch {
242
+ }
243
+ return { major: 19, version: "19.1.1" };
244
+ };
245
+ var _react = _detectReact();
246
+ var REACT_MAJOR = _react.major;
247
+ var REACT_VERSION = _react.version;
250
248
  function makeId() {
251
249
  const st = s();
252
250
  const treeId = getTreeId();
253
251
  const n = st.localIdCounter++;
254
- let id = "_R_" + st.idPrefix + treeId;
255
- if (n > 0) id += "H" + n.toString(32);
256
- return id + "_";
252
+ const suffix = n > 0 ? "H" + n.toString(32) : "";
253
+ if (REACT_MAJOR < 19) {
254
+ return ":" + st.idPrefix + "R" + treeId + suffix + ":";
255
+ }
256
+ return "_R_" + st.idPrefix + treeId + suffix + "_";
257
+ }
258
+
259
+ // src/slim-react/jsx.ts
260
+ var Fragment = FRAGMENT_TYPE;
261
+ function jsx(type, props, key) {
262
+ return {
263
+ $$typeof: SLIM_ELEMENT,
264
+ type,
265
+ props: props || {},
266
+ key: key ?? (props?.key ?? null)
267
+ };
268
+ }
269
+ function createElement(type, props, ...children) {
270
+ const normalizedProps = { ...props || {} };
271
+ if (children.length === 1) {
272
+ normalizedProps.children = children[0];
273
+ } else if (children.length > 1) {
274
+ normalizedProps.children = children;
275
+ }
276
+ const key = normalizedProps.key ?? null;
277
+ delete normalizedProps.key;
278
+ return {
279
+ $$typeof: SLIM_ELEMENT,
280
+ type,
281
+ props: normalizedProps,
282
+ key
283
+ };
257
284
  }
258
285
 
259
286
  // src/slim-react/hooks.ts
@@ -346,8 +373,9 @@ function createContext(defaultValue) {
346
373
 
347
374
  // src/slim-react/dispatcher.ts
348
375
  var ReactNS = __toESM(require("react"), 1);
349
- var _reactInternalsKey = "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE";
350
- var _internals = ReactNS[_reactInternalsKey];
376
+ var _r19 = ReactNS["__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE"];
377
+ var _r18Raw = !_r19 ? ReactNS["__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"] : void 0;
378
+ var _r18 = _r18Raw?.ReactCurrentDispatcher ? _r18Raw : void 0;
351
379
  var slimDispatcher = {
352
380
  useId: makeId,
353
381
  readContext: (ctx) => getContextValue(ctx),
@@ -375,13 +403,21 @@ var slimDispatcher = {
375
403
  useHostTransitionStatus: () => false
376
404
  };
377
405
  function installDispatcher() {
378
- if (!_internals) return null;
379
- const prev = _internals.H;
380
- _internals.H = slimDispatcher;
381
- return prev;
406
+ if (_r19) {
407
+ const prev = _r19.H;
408
+ _r19.H = slimDispatcher;
409
+ return prev;
410
+ }
411
+ if (_r18) {
412
+ const prev = _r18.ReactCurrentDispatcher.current;
413
+ _r18.ReactCurrentDispatcher.current = slimDispatcher;
414
+ return prev;
415
+ }
416
+ return null;
382
417
  }
383
418
  function restoreDispatcher(prev) {
384
- if (_internals) _internals.H = prev;
419
+ if (_r19) _r19.H = prev;
420
+ else if (_r18) _r18.ReactCurrentDispatcher.current = prev;
385
421
  }
386
422
 
387
423
  // src/slim-react/render.ts
@@ -638,7 +674,7 @@ function writeAttributes(writer, props, isSvg, skip) {
638
674
  if (isSvg && key in SVG_ATTR_MAP) {
639
675
  attrName = SVG_ATTR_MAP[key];
640
676
  } else {
641
- attrName = key === "className" ? "class" : key === "htmlFor" ? "for" : key === "tabIndex" ? "tabindex" : key === "defaultValue" ? "value" : key === "defaultChecked" ? "checked" : key;
677
+ attrName = key === "className" ? "class" : key === "htmlFor" ? "for" : key === "tabIndex" ? "tabindex" : key === "defaultValue" ? "value" : key === "defaultChecked" ? "checked" : key === "contentEditable" && REACT_MAJOR < 19 ? "contenteditable" : key;
642
678
  }
643
679
  if (value === false || value == null) {
644
680
  if (value === false && (attrName.charCodeAt(0) === 97 && attrName.startsWith("aria-") || attrName.charCodeAt(0) === 100 && attrName.startsWith("data-"))) {
@@ -847,7 +883,8 @@ function renderComponent(type, props, writer, isSvg, _suspenseRetries = 0) {
847
883
  const LazyComp = resolved?.default ?? resolved;
848
884
  return renderComponent(LazyComp, props, writer, isSvg);
849
885
  }
850
- if (typeOf === REACT_CONSUMER) {
886
+ const isConsumer = typeOf === REACT_CONSUMER || typeOf === REACT_CONTEXT && "_context" in type && !("value" in props);
887
+ if (isConsumer) {
851
888
  const ctx2 = type._context;
852
889
  const value = ctx2 ? getContextValue(ctx2) : void 0;
853
890
  const result2 = typeof props.children === "function" ? props.children(value) : null;
@@ -1233,7 +1270,12 @@ var Component = class {
1233
1270
  };
1234
1271
  var PureComponent = class extends Component {
1235
1272
  };
1236
- var version = "19.1.1";
1273
+ var version = REACT_VERSION;
1274
+ var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED2 = {
1275
+ ReactCurrentDispatcher: { current: null },
1276
+ ReactCurrentBatchConfig: { transition: null },
1277
+ ReactCurrentOwner: { current: null }
1278
+ };
1237
1279
  var React = {
1238
1280
  // Hooks
1239
1281
  useState,
@@ -1277,7 +1319,9 @@ var React = {
1277
1319
  renderToReadableStream: renderToStream,
1278
1320
  renderPreflight,
1279
1321
  // Version
1280
- version
1322
+ version,
1323
+ // React 18 internals
1324
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED2
1281
1325
  };
1282
1326
  var slim_react_default = React;
1283
1327
  // Annotate the CommonJS export names for ESM import in node:
@@ -1290,6 +1334,7 @@ var slim_react_default = React;
1290
1334
  SLIM_ELEMENT,
1291
1335
  SUSPENSE_TYPE,
1292
1336
  Suspense,
1337
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
1293
1338
  cloneElement,
1294
1339
  createContext,
1295
1340
  createElement,
@@ -156,7 +156,18 @@ declare class Component<P = {}, S = {}> {
156
156
  }
157
157
  declare class PureComponent<P = {}, S = {}> extends Component<P, S> {
158
158
  }
159
- declare const version = "19.1.1";
159
+ declare const version: string;
160
+ declare const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
161
+ ReactCurrentDispatcher: {
162
+ current: unknown;
163
+ };
164
+ ReactCurrentBatchConfig: {
165
+ transition: unknown;
166
+ };
167
+ ReactCurrentOwner: {
168
+ current: unknown;
169
+ };
170
+ };
160
171
  declare const React: {
161
172
  useState: typeof useState;
162
173
  useReducer: typeof useReducer;
@@ -201,6 +212,17 @@ declare const React: {
201
212
  renderToReadableStream: typeof renderToStream;
202
213
  renderPreflight: typeof renderPreflight;
203
214
  version: string;
215
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
216
+ ReactCurrentDispatcher: {
217
+ current: unknown;
218
+ };
219
+ ReactCurrentBatchConfig: {
220
+ transition: unknown;
221
+ };
222
+ ReactCurrentOwner: {
223
+ current: unknown;
224
+ };
225
+ };
204
226
  };
205
227
 
206
- export { Children, Component, type Context, PureComponent, type RenderOptions, SlimElement, SlimNode, Suspense, cloneElement, createContext, createElement, React as default, forwardRef, isValidElement, lazy, memo, renderPreflight, renderToStream as renderToReadableStream, renderToStream, renderToString, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
228
+ export { Children, Component, type Context, PureComponent, type RenderOptions, SlimElement, SlimNode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, React as default, forwardRef, isValidElement, lazy, memo, renderPreflight, renderToStream as renderToReadableStream, renderToStream, renderToString, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
@@ -156,7 +156,18 @@ declare class Component<P = {}, S = {}> {
156
156
  }
157
157
  declare class PureComponent<P = {}, S = {}> extends Component<P, S> {
158
158
  }
159
- declare const version = "19.1.1";
159
+ declare const version: string;
160
+ declare const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
161
+ ReactCurrentDispatcher: {
162
+ current: unknown;
163
+ };
164
+ ReactCurrentBatchConfig: {
165
+ transition: unknown;
166
+ };
167
+ ReactCurrentOwner: {
168
+ current: unknown;
169
+ };
170
+ };
160
171
  declare const React: {
161
172
  useState: typeof useState;
162
173
  useReducer: typeof useReducer;
@@ -201,6 +212,17 @@ declare const React: {
201
212
  renderToReadableStream: typeof renderToStream;
202
213
  renderPreflight: typeof renderPreflight;
203
214
  version: string;
215
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
216
+ ReactCurrentDispatcher: {
217
+ current: unknown;
218
+ };
219
+ ReactCurrentBatchConfig: {
220
+ transition: unknown;
221
+ };
222
+ ReactCurrentOwner: {
223
+ current: unknown;
224
+ };
225
+ };
204
226
  };
205
227
 
206
- export { Children, Component, type Context, PureComponent, type RenderOptions, SlimElement, SlimNode, Suspense, cloneElement, createContext, createElement, React as default, forwardRef, isValidElement, lazy, memo, renderPreflight, renderToStream as renderToReadableStream, renderToStream, renderToString, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
228
+ export { Children, Component, type Context, PureComponent, type RenderOptions, SlimElement, SlimNode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, React as default, forwardRef, isValidElement, lazy, memo, renderPreflight, renderToStream as renderToReadableStream, renderToStream, renderToString, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useFormStatus, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
@@ -3,6 +3,7 @@ import {
3
3
  Component,
4
4
  PureComponent,
5
5
  Suspense,
6
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
6
7
  cloneElement,
7
8
  createContext,
8
9
  forwardRef,
@@ -34,7 +35,7 @@ import {
34
35
  useSyncExternalStore,
35
36
  useTransition,
36
37
  version
37
- } from "../chunk-2TMQUXFL.js";
38
+ } from "../chunk-HIKMDNRB.js";
38
39
  import {
39
40
  FRAGMENT_TYPE,
40
41
  Fragment,
@@ -43,6 +44,7 @@ import {
43
44
  createElement,
44
45
  jsx
45
46
  } from "../chunk-OZUZS2PD.js";
47
+ import "../chunk-3RG5ZIWI.js";
46
48
  export {
47
49
  Children,
48
50
  Component,
@@ -52,6 +54,7 @@ export {
52
54
  SLIM_ELEMENT,
53
55
  SUSPENSE_TYPE,
54
56
  Suspense,
57
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
55
58
  cloneElement,
56
59
  createContext,
57
60
  createElement,
@@ -2,6 +2,7 @@ import {
2
2
  Fragment,
3
3
  jsx
4
4
  } from "../chunk-OZUZS2PD.js";
5
+ import "../chunk-3RG5ZIWI.js";
5
6
  export {
6
7
  Fragment,
7
8
  jsx,