@alchemy.run/sigil 0.0.0-alpha.8 → 0.1.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.
Files changed (40) hide show
  1. package/README.md +176 -0
  2. package/THIRD_PARTY_NOTICES.md +28 -0
  3. package/dist/ansi.d.ts +53 -53
  4. package/dist/capabilities.js +1 -1
  5. package/dist/{color-policy-DlrZXC0f.js → color-policy-BAC9-TZX.js} +15 -1
  6. package/dist/color.d.ts +8 -8
  7. package/dist/{devtools-DbthxoD1.js → devtools-B_2SDRaO.js} +3 -0
  8. package/dist/index.d.ts +209 -42
  9. package/dist/index.js +354 -171
  10. package/dist/jsx-dev-runtime.d.ts +3 -0
  11. package/dist/jsx-dev-runtime.js +7 -0
  12. package/dist/jsx-runtime-BS_OosoY.js +42 -0
  13. package/dist/jsx-runtime.d.ts +2 -0
  14. package/dist/jsx-runtime.js +8 -0
  15. package/dist/react-CeO3oT_g.js +394 -0
  16. package/dist/react.d.ts +2 -0
  17. package/dist/react.js +50 -0
  18. package/dist/rolldown-runtime-BPOCksWG.js +24 -0
  19. package/dist/router.d.ts +26 -26
  20. package/dist/router.js +45 -42
  21. package/dist/{session-Cg6STjFV.js → session-DDQ5V300.js} +34 -11
  22. package/dist/terminal.d.ts +9 -10
  23. package/dist/terminal.js +1 -1
  24. package/dist/use-focus-B1WVNBQm.js +8383 -0
  25. package/package.json +27 -15
  26. package/src/ansi/strip.ts +2 -2
  27. package/src/capabilities/query.ts +22 -0
  28. package/src/components/VirtualList.tsx +128 -0
  29. package/src/devtools.ts +5 -0
  30. package/src/hooks/use-virtual-scroll.ts +84 -0
  31. package/src/hooks/use-window-size.ts +10 -3
  32. package/src/index.ts +8 -0
  33. package/src/input-parser.ts +31 -11
  34. package/src/jsx-dev-runtime.ts +3 -0
  35. package/src/jsx-runtime.ts +6 -0
  36. package/src/react.ts +53 -0
  37. package/src/reconciler.ts +51 -0
  38. package/src/terminal/input.ts +11 -5
  39. package/src/virtual-scroll.ts +133 -0
  40. package/dist/use-focus-BNG0xsb7.js +0 -1337
@@ -0,0 +1,3 @@
1
+ import { Fragment, jsx as jsxDEV } from "react/jsx-runtime";
2
+ import { JSX } from "react/jsx-dev-runtime";
3
+ export { Fragment, type JSX, jsxDEV };
@@ -0,0 +1,7 @@
1
+ import { t as require_jsx_runtime } from "./jsx-runtime-BS_OosoY.js";
2
+ //#region src/jsx-dev-runtime.ts
3
+ var import_jsx_runtime = require_jsx_runtime();
4
+ //#endregion
5
+ var Fragment = import_jsx_runtime.Fragment;
6
+ var jsxDEV = import_jsx_runtime.jsx;
7
+ export { Fragment, jsxDEV };
@@ -0,0 +1,42 @@
1
+ import { t as __commonJSMin } from "./rolldown-runtime-BPOCksWG.js";
2
+ //#region node_modules/.pnpm/react@19.3.0/node_modules/react/cjs/react-jsx-runtime.production.js
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
13
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
14
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
15
+ function jsxProd(type, config, maybeKey) {
16
+ var key = null;
17
+ void 0 !== maybeKey && (key = "" + maybeKey);
18
+ void 0 !== config.key && (key = "" + config.key);
19
+ if ("key" in config) {
20
+ maybeKey = {};
21
+ for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
22
+ } else maybeKey = config;
23
+ config = maybeKey.ref;
24
+ return {
25
+ $$typeof: REACT_ELEMENT_TYPE,
26
+ type,
27
+ key,
28
+ ref: void 0 !== config ? config : null,
29
+ props: maybeKey
30
+ };
31
+ }
32
+ exports.Fragment = REACT_FRAGMENT_TYPE;
33
+ exports.jsx = jsxProd;
34
+ exports.jsxs = jsxProd;
35
+ }));
36
+ //#endregion
37
+ //#region node_modules/.pnpm/react@19.3.0/node_modules/react/jsx-runtime.js
38
+ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39
+ module.exports = require_react_jsx_runtime_production();
40
+ }));
41
+ //#endregion
42
+ export { require_jsx_runtime as t };
@@ -0,0 +1,2 @@
1
+ import { Fragment, JSX, jsx, jsxs } from "react/jsx-runtime";
2
+ export { Fragment, type JSX, jsx, jsxs };
@@ -0,0 +1,8 @@
1
+ import { t as require_jsx_runtime } from "./jsx-runtime-BS_OosoY.js";
2
+ //#region src/jsx-runtime.ts
3
+ var import_jsx_runtime = require_jsx_runtime();
4
+ //#endregion
5
+ var Fragment = import_jsx_runtime.Fragment;
6
+ var jsx = import_jsx_runtime.jsx;
7
+ var jsxs = import_jsx_runtime.jsxs;
8
+ export { Fragment, jsx, jsxs };
@@ -0,0 +1,394 @@
1
+ import { t as __commonJSMin } from "./rolldown-runtime-BPOCksWG.js";
2
+ //#region node_modules/.pnpm/react@19.3.0/node_modules/react/cjs/react.production.js
3
+ /**
4
+ * @license React
5
+ * react.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
13
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
14
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
15
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
16
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
17
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
18
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
19
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
20
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
21
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
22
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
23
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
24
+ var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
25
+ var REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition");
26
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
27
+ function getIteratorFn(maybeIterable) {
28
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
29
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
30
+ return "function" === typeof maybeIterable ? maybeIterable : null;
31
+ }
32
+ var ReactNoopUpdateQueue = {
33
+ isMounted: function() {
34
+ return !1;
35
+ },
36
+ enqueueForceUpdate: function() {},
37
+ enqueueReplaceState: function() {},
38
+ enqueueSetState: function() {}
39
+ };
40
+ var assign = Object.assign;
41
+ var emptyObject = {};
42
+ function Component(props, context, updater) {
43
+ this.props = props;
44
+ this.context = context;
45
+ this.refs = emptyObject;
46
+ this.updater = updater || ReactNoopUpdateQueue;
47
+ }
48
+ Component.prototype.isReactComponent = {};
49
+ Component.prototype.setState = function(partialState, callback) {
50
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
51
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
52
+ };
53
+ Component.prototype.forceUpdate = function(callback) {
54
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
55
+ };
56
+ function ComponentDummy() {}
57
+ ComponentDummy.prototype = Component.prototype;
58
+ function PureComponent(props, context, updater) {
59
+ this.props = props;
60
+ this.context = context;
61
+ this.refs = emptyObject;
62
+ this.updater = updater || ReactNoopUpdateQueue;
63
+ }
64
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
65
+ pureComponentPrototype.constructor = PureComponent;
66
+ assign(pureComponentPrototype, Component.prototype);
67
+ pureComponentPrototype.isPureReactComponent = !0;
68
+ var isArrayImpl = Array.isArray;
69
+ function noop() {}
70
+ var ReactSharedInternals = {
71
+ H: null,
72
+ A: null,
73
+ T: null,
74
+ S: null
75
+ };
76
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
77
+ function ReactElement(type, key, props) {
78
+ var refProp = props.ref;
79
+ return {
80
+ $$typeof: REACT_ELEMENT_TYPE,
81
+ type,
82
+ key,
83
+ ref: void 0 !== refProp ? refProp : null,
84
+ props
85
+ };
86
+ }
87
+ function cloneAndReplaceKey(oldElement, newKey) {
88
+ return ReactElement(oldElement.type, newKey, oldElement.props);
89
+ }
90
+ function isValidElement(object) {
91
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
92
+ }
93
+ function escape(key) {
94
+ var escaperLookup = {
95
+ "=": "=0",
96
+ ":": "=2"
97
+ };
98
+ return "$" + key.replace(/[=:]/g, function(match) {
99
+ return escaperLookup[match];
100
+ });
101
+ }
102
+ var userProvidedKeyEscapeRegex = /\/+/g;
103
+ function getElementKey(element, index) {
104
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
105
+ }
106
+ function resolveThenable(thenable) {
107
+ switch (thenable.status) {
108
+ case "fulfilled": return thenable.value;
109
+ case "rejected": throw thenable.reason;
110
+ default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
111
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
112
+ }, function(error) {
113
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
114
+ })), thenable.status) {
115
+ case "fulfilled": return thenable.value;
116
+ case "rejected": throw thenable.reason;
117
+ }
118
+ }
119
+ throw thenable;
120
+ }
121
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
122
+ var type = typeof children;
123
+ if ("undefined" === type || "boolean" === type) children = null;
124
+ var invokeCallback = !1;
125
+ if (null === children) invokeCallback = !0;
126
+ else switch (type) {
127
+ case "bigint":
128
+ case "string":
129
+ case "number":
130
+ invokeCallback = !0;
131
+ break;
132
+ case "object": switch (children.$$typeof) {
133
+ case REACT_ELEMENT_TYPE:
134
+ case REACT_PORTAL_TYPE:
135
+ invokeCallback = !0;
136
+ break;
137
+ case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
138
+ }
139
+ }
140
+ if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
141
+ return c;
142
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
143
+ invokeCallback = 0;
144
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
145
+ if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
146
+ else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
147
+ else if ("object" === type) {
148
+ if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
149
+ array = String(children);
150
+ throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
151
+ }
152
+ return invokeCallback;
153
+ }
154
+ function mapChildren(children, func, context) {
155
+ if (null == children) return children;
156
+ var result = [], count = 0;
157
+ mapIntoArray(children, result, "", "", function(child) {
158
+ return func.call(context, child, count++);
159
+ });
160
+ return result;
161
+ }
162
+ function lazyInitializer(payload) {
163
+ if (-1 === payload._status) {
164
+ var ctor = payload._result, thenable = ctor();
165
+ thenable.then(function(moduleObject) {
166
+ if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
167
+ }, function(error) {
168
+ if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
169
+ });
170
+ -1 === payload._status && (payload._status = 0, payload._result = thenable);
171
+ }
172
+ if (1 === payload._status) return payload._result.default;
173
+ throw payload._result;
174
+ }
175
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
176
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
177
+ var event = new window.ErrorEvent("error", {
178
+ bubbles: !0,
179
+ cancelable: !0,
180
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
181
+ error
182
+ });
183
+ if (!window.dispatchEvent(event)) return;
184
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
185
+ process.emit("uncaughtException", error);
186
+ return;
187
+ }
188
+ console.error(error);
189
+ };
190
+ function startTransition(scope) {
191
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
192
+ currentTransition.types = null !== prevTransition ? prevTransition.types : null;
193
+ ReactSharedInternals.T = currentTransition;
194
+ try {
195
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
196
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
197
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
198
+ } catch (error) {
199
+ reportGlobalError(error);
200
+ } finally {
201
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
202
+ }
203
+ }
204
+ function addTransitionType(type) {
205
+ var transition = ReactSharedInternals.T;
206
+ if (null !== transition) {
207
+ var transitionTypes = transition.types;
208
+ null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
209
+ } else startTransition(addTransitionType.bind(null, type));
210
+ }
211
+ var Children = {
212
+ map: mapChildren,
213
+ forEach: function(children, forEachFunc, forEachContext) {
214
+ mapChildren(children, function() {
215
+ forEachFunc.apply(this, arguments);
216
+ }, forEachContext);
217
+ },
218
+ count: function(children) {
219
+ var n = 0;
220
+ mapChildren(children, function() {
221
+ n++;
222
+ });
223
+ return n;
224
+ },
225
+ toArray: function(children) {
226
+ return mapChildren(children, function(child) {
227
+ return child;
228
+ }) || [];
229
+ },
230
+ only: function(children) {
231
+ if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
232
+ return children;
233
+ }
234
+ };
235
+ exports.Activity = REACT_ACTIVITY_TYPE;
236
+ exports.Children = Children;
237
+ exports.Component = Component;
238
+ exports.Fragment = REACT_FRAGMENT_TYPE;
239
+ exports.Profiler = REACT_PROFILER_TYPE;
240
+ exports.PureComponent = PureComponent;
241
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
242
+ exports.Suspense = REACT_SUSPENSE_TYPE;
243
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
244
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
245
+ exports.__COMPILER_RUNTIME = {
246
+ __proto__: null,
247
+ c: function(size) {
248
+ return ReactSharedInternals.H.useMemoCache(size);
249
+ }
250
+ };
251
+ exports.addTransitionType = addTransitionType;
252
+ exports.cache = function(fn) {
253
+ return function() {
254
+ return fn.apply(null, arguments);
255
+ };
256
+ };
257
+ exports.cacheSignal = function() {
258
+ return null;
259
+ };
260
+ exports.cloneElement = function(element, config, children) {
261
+ if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
262
+ var props = assign({}, element.props), key = element.key;
263
+ if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
264
+ var propName = arguments.length - 2;
265
+ if (1 === propName) props.children = children;
266
+ else if (1 < propName) {
267
+ for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
268
+ props.children = childArray;
269
+ }
270
+ return ReactElement(element.type, key, props);
271
+ };
272
+ exports.createContext = function(defaultValue) {
273
+ defaultValue = {
274
+ $$typeof: REACT_CONTEXT_TYPE,
275
+ _currentValue: defaultValue,
276
+ _currentValue2: defaultValue,
277
+ _threadCount: 0,
278
+ Provider: null,
279
+ Consumer: null
280
+ };
281
+ defaultValue.Provider = defaultValue;
282
+ defaultValue.Consumer = {
283
+ $$typeof: REACT_CONSUMER_TYPE,
284
+ _context: defaultValue
285
+ };
286
+ return defaultValue;
287
+ };
288
+ exports.createElement = function(type, config, children) {
289
+ var propName, props = {}, key = null;
290
+ if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
291
+ var childrenLength = arguments.length - 2;
292
+ if (1 === childrenLength) props.children = children;
293
+ else if (1 < childrenLength) {
294
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
295
+ props.children = childArray;
296
+ }
297
+ if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
298
+ return ReactElement(type, key, props);
299
+ };
300
+ exports.createRef = function() {
301
+ return { current: null };
302
+ };
303
+ exports.forwardRef = function(render) {
304
+ return {
305
+ $$typeof: REACT_FORWARD_REF_TYPE,
306
+ render
307
+ };
308
+ };
309
+ exports.isValidElement = isValidElement;
310
+ exports.lazy = function(ctor) {
311
+ return {
312
+ $$typeof: REACT_LAZY_TYPE,
313
+ _payload: {
314
+ _status: -1,
315
+ _result: ctor
316
+ },
317
+ _init: lazyInitializer
318
+ };
319
+ };
320
+ exports.memo = function(type, compare) {
321
+ return {
322
+ $$typeof: REACT_MEMO_TYPE,
323
+ type,
324
+ compare: void 0 === compare ? null : compare
325
+ };
326
+ };
327
+ exports.startTransition = startTransition;
328
+ exports.unstable_useCacheRefresh = function() {
329
+ return ReactSharedInternals.H.useCacheRefresh();
330
+ };
331
+ exports.use = function(usable) {
332
+ return ReactSharedInternals.H.use(usable);
333
+ };
334
+ exports.useActionState = function(action, initialState, permalink) {
335
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
336
+ };
337
+ exports.useCallback = function(callback, deps) {
338
+ return ReactSharedInternals.H.useCallback(callback, deps);
339
+ };
340
+ exports.useContext = function(Context) {
341
+ return ReactSharedInternals.H.useContext(Context);
342
+ };
343
+ exports.useDebugValue = function() {};
344
+ exports.useDeferredValue = function(value, initialValue) {
345
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
346
+ };
347
+ exports.useEffect = function(create, deps) {
348
+ return ReactSharedInternals.H.useEffect(create, deps);
349
+ };
350
+ exports.useEffectEvent = function(callback) {
351
+ return ReactSharedInternals.H.useEffectEvent(callback);
352
+ };
353
+ exports.useId = function() {
354
+ return ReactSharedInternals.H.useId();
355
+ };
356
+ exports.useImperativeHandle = function(ref, create, deps) {
357
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
358
+ };
359
+ exports.useInsertionEffect = function(create, deps) {
360
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
361
+ };
362
+ exports.useLayoutEffect = function(create, deps) {
363
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
364
+ };
365
+ exports.useMemo = function(create, deps) {
366
+ return ReactSharedInternals.H.useMemo(create, deps);
367
+ };
368
+ exports.useOptimistic = function(passthrough, reducer) {
369
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
370
+ };
371
+ exports.useReducer = function(reducer, initialArg, init) {
372
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
373
+ };
374
+ exports.useRef = function(initialValue) {
375
+ return ReactSharedInternals.H.useRef(initialValue);
376
+ };
377
+ exports.useState = function(initialState) {
378
+ return ReactSharedInternals.H.useState(initialState);
379
+ };
380
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
381
+ return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
382
+ };
383
+ exports.useTransition = function() {
384
+ return ReactSharedInternals.H.useTransition();
385
+ };
386
+ exports.version = "19.3.0";
387
+ }));
388
+ //#endregion
389
+ //#region node_modules/.pnpm/react@19.3.0/node_modules/react/index.js
390
+ var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
391
+ module.exports = require_react_production();
392
+ }));
393
+ //#endregion
394
+ export { require_react as t };
@@ -0,0 +1,2 @@
1
+ import react_default, { Activity, Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, ViewTransition, act, addTransitionType, cache, cacheSignal, captureOwnerStack, cloneElement, createContext, createElement, createRef, forwardRef, isValidElement, lazy, memo, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useEffectEvent, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version } from "react";
2
+ export { Activity, Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, ViewTransition, act, addTransitionType, cache, cacheSignal, captureOwnerStack, cloneElement, createContext, createElement, createRef, react_default as default, forwardRef, isValidElement, lazy, memo, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useEffectEvent, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
package/dist/react.js ADDED
@@ -0,0 +1,50 @@
1
+ import { n as __toESM } from "./rolldown-runtime-BPOCksWG.js";
2
+ import { t as require_react } from "./react-CeO3oT_g.js";
3
+ //#region src/react.ts
4
+ var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
5
+ //#endregion
6
+ var Activity = import_react.Activity;
7
+ var Children = import_react.Children;
8
+ var Component = import_react.Component;
9
+ var Fragment = import_react.Fragment;
10
+ var Profiler = import_react.Profiler;
11
+ var PureComponent = import_react.PureComponent;
12
+ var StrictMode = import_react.StrictMode;
13
+ var Suspense = import_react.Suspense;
14
+ var ViewTransition = import_react.ViewTransition;
15
+ var act = import_react.act;
16
+ var addTransitionType = import_react.addTransitionType;
17
+ var cache = import_react.cache;
18
+ var cacheSignal = import_react.cacheSignal;
19
+ var captureOwnerStack = import_react.captureOwnerStack;
20
+ var cloneElement = import_react.cloneElement;
21
+ var createContext = import_react.createContext;
22
+ var createElement = import_react.createElement;
23
+ var createRef = import_react.createRef;
24
+ var react_default = import_react.default;
25
+ var forwardRef = import_react.forwardRef;
26
+ var isValidElement = import_react.isValidElement;
27
+ var lazy = import_react.lazy;
28
+ var memo = import_react.memo;
29
+ var startTransition = import_react.startTransition;
30
+ var use = import_react.use;
31
+ var useActionState = import_react.useActionState;
32
+ var useCallback = import_react.useCallback;
33
+ var useContext = import_react.useContext;
34
+ var useDebugValue = import_react.useDebugValue;
35
+ var useDeferredValue = import_react.useDeferredValue;
36
+ var useEffect = import_react.useEffect;
37
+ var useEffectEvent = import_react.useEffectEvent;
38
+ var useId = import_react.useId;
39
+ var useImperativeHandle = import_react.useImperativeHandle;
40
+ var useInsertionEffect = import_react.useInsertionEffect;
41
+ var useLayoutEffect = import_react.useLayoutEffect;
42
+ var useMemo = import_react.useMemo;
43
+ var useOptimistic = import_react.useOptimistic;
44
+ var useReducer = import_react.useReducer;
45
+ var useRef = import_react.useRef;
46
+ var useState = import_react.useState;
47
+ var useSyncExternalStore = import_react.useSyncExternalStore;
48
+ var useTransition = import_react.useTransition;
49
+ var version = import_react.version;
50
+ export { Activity, Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, ViewTransition, act, addTransitionType, cache, cacheSignal, captureOwnerStack, cloneElement, createContext, createElement, createRef, react_default as default, forwardRef, isValidElement, lazy, memo, startTransition, use, useActionState, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useEffectEvent, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useOptimistic, useReducer, useRef, useState, useSyncExternalStore, useTransition, version };
@@ -0,0 +1,24 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
20
+ value: mod,
21
+ enumerable: true
22
+ }) : target, mod));
23
+ //#endregion
24
+ export { __toESM as n, __commonJSMin as t };