@dodopayments/nextjs 0.2.2 → 0.3.0
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.cjs +213 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +213 -174
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2324,6 +2324,7 @@ function requireReact_production () {
|
|
|
2324
2324
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
2325
2325
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
2326
2326
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
2327
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
2327
2328
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2328
2329
|
function getIteratorFn(maybeIterable) {
|
|
2329
2330
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -2375,28 +2376,22 @@ function requireReact_production () {
|
|
|
2375
2376
|
pureComponentPrototype.constructor = PureComponent;
|
|
2376
2377
|
assign(pureComponentPrototype, Component.prototype);
|
|
2377
2378
|
pureComponentPrototype.isPureReactComponent = true;
|
|
2378
|
-
var isArrayImpl = Array.isArray
|
|
2379
|
-
|
|
2379
|
+
var isArrayImpl = Array.isArray;
|
|
2380
|
+
function noop() {}
|
|
2381
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
2380
2382
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2381
|
-
function ReactElement(type, key,
|
|
2382
|
-
|
|
2383
|
+
function ReactElement(type, key, props) {
|
|
2384
|
+
var refProp = props.ref;
|
|
2383
2385
|
return {
|
|
2384
2386
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
2385
2387
|
type: type,
|
|
2386
2388
|
key: key,
|
|
2387
|
-
ref: void 0 !==
|
|
2389
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
2388
2390
|
props: props
|
|
2389
2391
|
};
|
|
2390
2392
|
}
|
|
2391
2393
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
2392
|
-
return ReactElement(
|
|
2393
|
-
oldElement.type,
|
|
2394
|
-
newKey,
|
|
2395
|
-
void 0,
|
|
2396
|
-
void 0,
|
|
2397
|
-
void 0,
|
|
2398
|
-
oldElement.props
|
|
2399
|
-
);
|
|
2394
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
2400
2395
|
}
|
|
2401
2396
|
function isValidElement(object) {
|
|
2402
2397
|
return (
|
|
@@ -2420,7 +2415,6 @@ function requireReact_production () {
|
|
|
2420
2415
|
? escape("" + element.key)
|
|
2421
2416
|
: index.toString(36);
|
|
2422
2417
|
}
|
|
2423
|
-
function noop$1() {}
|
|
2424
2418
|
function resolveThenable(thenable) {
|
|
2425
2419
|
switch (thenable.status) {
|
|
2426
2420
|
case "fulfilled":
|
|
@@ -2430,7 +2424,7 @@ function requireReact_production () {
|
|
|
2430
2424
|
default:
|
|
2431
2425
|
switch (
|
|
2432
2426
|
("string" === typeof thenable.status
|
|
2433
|
-
? thenable.then(noop
|
|
2427
|
+
? thenable.then(noop, noop)
|
|
2434
2428
|
: ((thenable.status = "pending"),
|
|
2435
2429
|
thenable.then(
|
|
2436
2430
|
function (fulfilledValue) {
|
|
@@ -2591,68 +2585,69 @@ function requireReact_production () {
|
|
|
2591
2585
|
throw payload._result;
|
|
2592
2586
|
}
|
|
2593
2587
|
var reportGlobalError =
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
forEachContext
|
|
2632
|
-
);
|
|
2633
|
-
},
|
|
2634
|
-
count: function (children) {
|
|
2635
|
-
var n = 0;
|
|
2636
|
-
mapChildren(children, function () {
|
|
2637
|
-
n++;
|
|
2638
|
-
});
|
|
2639
|
-
return n;
|
|
2640
|
-
},
|
|
2641
|
-
toArray: function (children) {
|
|
2642
|
-
return (
|
|
2643
|
-
mapChildren(children, function (child) {
|
|
2644
|
-
return child;
|
|
2645
|
-
}) || []
|
|
2646
|
-
);
|
|
2647
|
-
},
|
|
2648
|
-
only: function (children) {
|
|
2649
|
-
if (!isValidElement(children))
|
|
2650
|
-
throw Error(
|
|
2651
|
-
"React.Children.only expected to receive a single React element child."
|
|
2588
|
+
"function" === typeof reportError
|
|
2589
|
+
? reportError
|
|
2590
|
+
: function (error) {
|
|
2591
|
+
if (
|
|
2592
|
+
"object" === typeof window &&
|
|
2593
|
+
"function" === typeof window.ErrorEvent
|
|
2594
|
+
) {
|
|
2595
|
+
var event = new window.ErrorEvent("error", {
|
|
2596
|
+
bubbles: true,
|
|
2597
|
+
cancelable: true,
|
|
2598
|
+
message:
|
|
2599
|
+
"object" === typeof error &&
|
|
2600
|
+
null !== error &&
|
|
2601
|
+
"string" === typeof error.message
|
|
2602
|
+
? String(error.message)
|
|
2603
|
+
: String(error),
|
|
2604
|
+
error: error
|
|
2605
|
+
});
|
|
2606
|
+
if (!window.dispatchEvent(event)) return;
|
|
2607
|
+
} else if (
|
|
2608
|
+
"object" === typeof process &&
|
|
2609
|
+
"function" === typeof process.emit
|
|
2610
|
+
) {
|
|
2611
|
+
process.emit("uncaughtException", error);
|
|
2612
|
+
return;
|
|
2613
|
+
}
|
|
2614
|
+
console.error(error);
|
|
2615
|
+
},
|
|
2616
|
+
Children = {
|
|
2617
|
+
map: mapChildren,
|
|
2618
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
2619
|
+
mapChildren(
|
|
2620
|
+
children,
|
|
2621
|
+
function () {
|
|
2622
|
+
forEachFunc.apply(this, arguments);
|
|
2623
|
+
},
|
|
2624
|
+
forEachContext
|
|
2652
2625
|
);
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2626
|
+
},
|
|
2627
|
+
count: function (children) {
|
|
2628
|
+
var n = 0;
|
|
2629
|
+
mapChildren(children, function () {
|
|
2630
|
+
n++;
|
|
2631
|
+
});
|
|
2632
|
+
return n;
|
|
2633
|
+
},
|
|
2634
|
+
toArray: function (children) {
|
|
2635
|
+
return (
|
|
2636
|
+
mapChildren(children, function (child) {
|
|
2637
|
+
return child;
|
|
2638
|
+
}) || []
|
|
2639
|
+
);
|
|
2640
|
+
},
|
|
2641
|
+
only: function (children) {
|
|
2642
|
+
if (!isValidElement(children))
|
|
2643
|
+
throw Error(
|
|
2644
|
+
"React.Children.only expected to receive a single React element child."
|
|
2645
|
+
);
|
|
2646
|
+
return children;
|
|
2647
|
+
}
|
|
2648
|
+
};
|
|
2649
|
+
react_production.Activity = REACT_ACTIVITY_TYPE;
|
|
2650
|
+
react_production.Children = Children;
|
|
2656
2651
|
react_production.Component = Component;
|
|
2657
2652
|
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
2658
2653
|
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
@@ -2672,18 +2667,18 @@ function requireReact_production () {
|
|
|
2672
2667
|
return fn.apply(null, arguments);
|
|
2673
2668
|
};
|
|
2674
2669
|
};
|
|
2670
|
+
react_production.cacheSignal = function () {
|
|
2671
|
+
return null;
|
|
2672
|
+
};
|
|
2675
2673
|
react_production.cloneElement = function (element, config, children) {
|
|
2676
2674
|
if (null === element || void 0 === element)
|
|
2677
2675
|
throw Error(
|
|
2678
2676
|
"The argument must be a React element, but you passed " + element + "."
|
|
2679
2677
|
);
|
|
2680
2678
|
var props = assign({}, element.props),
|
|
2681
|
-
key = element.key
|
|
2682
|
-
owner = void 0;
|
|
2679
|
+
key = element.key;
|
|
2683
2680
|
if (null != config)
|
|
2684
|
-
for (propName in (void 0 !== config.
|
|
2685
|
-
void 0 !== config.key && (key = "" + config.key),
|
|
2686
|
-
config))
|
|
2681
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
2687
2682
|
!hasOwnProperty.call(config, propName) ||
|
|
2688
2683
|
"key" === propName ||
|
|
2689
2684
|
"__self" === propName ||
|
|
@@ -2697,7 +2692,7 @@ function requireReact_production () {
|
|
|
2697
2692
|
childArray[i] = arguments[i + 2];
|
|
2698
2693
|
props.children = childArray;
|
|
2699
2694
|
}
|
|
2700
|
-
return ReactElement(element.type, key,
|
|
2695
|
+
return ReactElement(element.type, key, props);
|
|
2701
2696
|
};
|
|
2702
2697
|
react_production.createContext = function (defaultValue) {
|
|
2703
2698
|
defaultValue = {
|
|
@@ -2737,7 +2732,7 @@ function requireReact_production () {
|
|
|
2737
2732
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
2738
2733
|
void 0 === props[propName] &&
|
|
2739
2734
|
(props[propName] = childrenLength[propName]);
|
|
2740
|
-
return ReactElement(type, key,
|
|
2735
|
+
return ReactElement(type, key, props);
|
|
2741
2736
|
};
|
|
2742
2737
|
react_production.createRef = function () {
|
|
2743
2738
|
return { current: null };
|
|
@@ -2776,7 +2771,10 @@ function requireReact_production () {
|
|
|
2776
2771
|
} catch (error) {
|
|
2777
2772
|
reportGlobalError(error);
|
|
2778
2773
|
} finally {
|
|
2779
|
-
|
|
2774
|
+
null !== prevTransition &&
|
|
2775
|
+
null !== currentTransition.types &&
|
|
2776
|
+
(prevTransition.types = currentTransition.types),
|
|
2777
|
+
(ReactSharedInternals.T = prevTransition);
|
|
2780
2778
|
}
|
|
2781
2779
|
};
|
|
2782
2780
|
react_production.unstable_useCacheRefresh = function () {
|
|
@@ -2798,13 +2796,11 @@ function requireReact_production () {
|
|
|
2798
2796
|
react_production.useDeferredValue = function (value, initialValue) {
|
|
2799
2797
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
2800
2798
|
};
|
|
2801
|
-
react_production.useEffect = function (create,
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
);
|
|
2807
|
-
return dispatcher.useEffect(create, createDeps);
|
|
2799
|
+
react_production.useEffect = function (create, deps) {
|
|
2800
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
2801
|
+
};
|
|
2802
|
+
react_production.useEffectEvent = function (callback) {
|
|
2803
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
2808
2804
|
};
|
|
2809
2805
|
react_production.useId = function () {
|
|
2810
2806
|
return ReactSharedInternals.H.useId();
|
|
@@ -2847,7 +2843,7 @@ function requireReact_production () {
|
|
|
2847
2843
|
react_production.useTransition = function () {
|
|
2848
2844
|
return ReactSharedInternals.H.useTransition();
|
|
2849
2845
|
};
|
|
2850
|
-
react_production.version = "19.
|
|
2846
|
+
react_production.version = "19.2.0";
|
|
2851
2847
|
return react_production;
|
|
2852
2848
|
}
|
|
2853
2849
|
|
|
@@ -2918,6 +2914,7 @@ function requireReact_development () {
|
|
|
2918
2914
|
this.refs = emptyObject;
|
|
2919
2915
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
2920
2916
|
}
|
|
2917
|
+
function noop() {}
|
|
2921
2918
|
function testStringCoercion(value) {
|
|
2922
2919
|
return "" + value;
|
|
2923
2920
|
}
|
|
@@ -2977,7 +2974,7 @@ function requireReact_development () {
|
|
|
2977
2974
|
case REACT_PORTAL_TYPE:
|
|
2978
2975
|
return "Portal";
|
|
2979
2976
|
case REACT_CONTEXT_TYPE:
|
|
2980
|
-
return
|
|
2977
|
+
return type.displayName || "Context";
|
|
2981
2978
|
case REACT_CONSUMER_TYPE:
|
|
2982
2979
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
2983
2980
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -3057,17 +3054,8 @@ function requireReact_development () {
|
|
|
3057
3054
|
componentName = this.props.ref;
|
|
3058
3055
|
return void 0 !== componentName ? componentName : null;
|
|
3059
3056
|
}
|
|
3060
|
-
function ReactElement(
|
|
3061
|
-
|
|
3062
|
-
key,
|
|
3063
|
-
self,
|
|
3064
|
-
source,
|
|
3065
|
-
owner,
|
|
3066
|
-
props,
|
|
3067
|
-
debugStack,
|
|
3068
|
-
debugTask
|
|
3069
|
-
) {
|
|
3070
|
-
self = props.ref;
|
|
3057
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
3058
|
+
var refProp = props.ref;
|
|
3071
3059
|
type = {
|
|
3072
3060
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
3073
3061
|
type: type,
|
|
@@ -3075,7 +3063,7 @@ function requireReact_development () {
|
|
|
3075
3063
|
props: props,
|
|
3076
3064
|
_owner: owner
|
|
3077
3065
|
};
|
|
3078
|
-
null !== (void 0 !==
|
|
3066
|
+
null !== (void 0 !== refProp ? refProp : null)
|
|
3079
3067
|
? Object.defineProperty(type, "ref", {
|
|
3080
3068
|
enumerable: false,
|
|
3081
3069
|
get: elementRefGetterWithDeprecationWarning
|
|
@@ -3113,10 +3101,8 @@ function requireReact_development () {
|
|
|
3113
3101
|
newKey = ReactElement(
|
|
3114
3102
|
oldElement.type,
|
|
3115
3103
|
newKey,
|
|
3116
|
-
void 0,
|
|
3117
|
-
void 0,
|
|
3118
|
-
oldElement._owner,
|
|
3119
3104
|
oldElement.props,
|
|
3105
|
+
oldElement._owner,
|
|
3120
3106
|
oldElement._debugStack,
|
|
3121
3107
|
oldElement._debugTask
|
|
3122
3108
|
);
|
|
@@ -3124,6 +3110,18 @@ function requireReact_development () {
|
|
|
3124
3110
|
(newKey._store.validated = oldElement._store.validated);
|
|
3125
3111
|
return newKey;
|
|
3126
3112
|
}
|
|
3113
|
+
function validateChildKeys(node) {
|
|
3114
|
+
isValidElement(node)
|
|
3115
|
+
? node._store && (node._store.validated = 1)
|
|
3116
|
+
: "object" === typeof node &&
|
|
3117
|
+
null !== node &&
|
|
3118
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
|
3119
|
+
("fulfilled" === node._payload.status
|
|
3120
|
+
? isValidElement(node._payload.value) &&
|
|
3121
|
+
node._payload.value._store &&
|
|
3122
|
+
(node._payload.value._store.validated = 1)
|
|
3123
|
+
: node._store && (node._store.validated = 1));
|
|
3124
|
+
}
|
|
3127
3125
|
function isValidElement(object) {
|
|
3128
3126
|
return (
|
|
3129
3127
|
"object" === typeof object &&
|
|
@@ -3147,7 +3145,6 @@ function requireReact_development () {
|
|
|
3147
3145
|
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
3148
3146
|
: index.toString(36);
|
|
3149
3147
|
}
|
|
3150
|
-
function noop$1() {}
|
|
3151
3148
|
function resolveThenable(thenable) {
|
|
3152
3149
|
switch (thenable.status) {
|
|
3153
3150
|
case "fulfilled":
|
|
@@ -3157,7 +3154,7 @@ function requireReact_development () {
|
|
|
3157
3154
|
default:
|
|
3158
3155
|
switch (
|
|
3159
3156
|
("string" === typeof thenable.status
|
|
3160
|
-
? thenable.then(noop
|
|
3157
|
+
? thenable.then(noop, noop)
|
|
3161
3158
|
: ((thenable.status = "pending"),
|
|
3162
3159
|
thenable.then(
|
|
3163
3160
|
function (fulfilledValue) {
|
|
@@ -3319,35 +3316,56 @@ function requireReact_development () {
|
|
|
3319
3316
|
}
|
|
3320
3317
|
function lazyInitializer(payload) {
|
|
3321
3318
|
if (-1 === payload._status) {
|
|
3322
|
-
var
|
|
3323
|
-
|
|
3324
|
-
|
|
3319
|
+
var ioInfo = payload._ioInfo;
|
|
3320
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
3321
|
+
ioInfo = payload._result;
|
|
3322
|
+
var thenable = ioInfo();
|
|
3323
|
+
thenable.then(
|
|
3325
3324
|
function (moduleObject) {
|
|
3326
|
-
if (0 === payload._status || -1 === payload._status)
|
|
3327
|
-
|
|
3325
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
3326
|
+
payload._status = 1;
|
|
3327
|
+
payload._result = moduleObject;
|
|
3328
|
+
var _ioInfo = payload._ioInfo;
|
|
3329
|
+
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
3330
|
+
void 0 === thenable.status &&
|
|
3331
|
+
((thenable.status = "fulfilled"),
|
|
3332
|
+
(thenable.value = moduleObject));
|
|
3333
|
+
}
|
|
3328
3334
|
},
|
|
3329
3335
|
function (error) {
|
|
3330
|
-
if (0 === payload._status || -1 === payload._status)
|
|
3331
|
-
|
|
3336
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
3337
|
+
payload._status = 2;
|
|
3338
|
+
payload._result = error;
|
|
3339
|
+
var _ioInfo2 = payload._ioInfo;
|
|
3340
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
3341
|
+
void 0 === thenable.status &&
|
|
3342
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
3343
|
+
}
|
|
3332
3344
|
}
|
|
3333
3345
|
);
|
|
3346
|
+
ioInfo = payload._ioInfo;
|
|
3347
|
+
if (null != ioInfo) {
|
|
3348
|
+
ioInfo.value = thenable;
|
|
3349
|
+
var displayName = thenable.displayName;
|
|
3350
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
3351
|
+
}
|
|
3334
3352
|
-1 === payload._status &&
|
|
3335
|
-
((payload._status = 0), (payload._result =
|
|
3353
|
+
((payload._status = 0), (payload._result = thenable));
|
|
3336
3354
|
}
|
|
3337
3355
|
if (1 === payload._status)
|
|
3338
3356
|
return (
|
|
3339
|
-
(
|
|
3340
|
-
void 0 ===
|
|
3357
|
+
(ioInfo = payload._result),
|
|
3358
|
+
void 0 === ioInfo &&
|
|
3341
3359
|
console.error(
|
|
3342
3360
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
3343
|
-
|
|
3361
|
+
ioInfo
|
|
3344
3362
|
),
|
|
3345
|
-
"default" in
|
|
3363
|
+
"default" in ioInfo ||
|
|
3346
3364
|
console.error(
|
|
3347
3365
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
3348
|
-
|
|
3366
|
+
ioInfo
|
|
3349
3367
|
),
|
|
3350
|
-
|
|
3368
|
+
ioInfo.default
|
|
3351
3369
|
);
|
|
3352
3370
|
throw payload._result;
|
|
3353
3371
|
}
|
|
@@ -3359,7 +3377,9 @@ function requireReact_development () {
|
|
|
3359
3377
|
);
|
|
3360
3378
|
return dispatcher;
|
|
3361
3379
|
}
|
|
3362
|
-
function
|
|
3380
|
+
function releaseAsyncTransition() {
|
|
3381
|
+
ReactSharedInternals.asyncTransitions--;
|
|
3382
|
+
}
|
|
3363
3383
|
function enqueueTask(task) {
|
|
3364
3384
|
if (null === enqueueTaskImpl)
|
|
3365
3385
|
try {
|
|
@@ -3451,8 +3471,8 @@ function requireReact_development () {
|
|
|
3451
3471
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
3452
3472
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
3453
3473
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
3454
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
3455
|
-
|
|
3474
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
3475
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
3456
3476
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
3457
3477
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
3458
3478
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -3495,16 +3515,15 @@ function requireReact_development () {
|
|
|
3495
3515
|
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
3496
3516
|
};
|
|
3497
3517
|
var deprecatedAPIs = {
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
fnName;
|
|
3518
|
+
isMounted: [
|
|
3519
|
+
"isMounted",
|
|
3520
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
3521
|
+
],
|
|
3522
|
+
replaceState: [
|
|
3523
|
+
"replaceState",
|
|
3524
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
3525
|
+
]
|
|
3526
|
+
};
|
|
3508
3527
|
for (fnName in deprecatedAPIs)
|
|
3509
3528
|
deprecatedAPIs.hasOwnProperty(fnName) &&
|
|
3510
3529
|
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
@@ -3520,8 +3539,8 @@ function requireReact_development () {
|
|
|
3520
3539
|
A: null,
|
|
3521
3540
|
T: null,
|
|
3522
3541
|
S: null,
|
|
3523
|
-
V: null,
|
|
3524
3542
|
actQueue: null,
|
|
3543
|
+
asyncTransitions: 0,
|
|
3525
3544
|
isBatchingLegacy: false,
|
|
3526
3545
|
didScheduleLegacyUpdate: false,
|
|
3527
3546
|
didUsePromise: false,
|
|
@@ -3536,15 +3555,16 @@ function requireReact_development () {
|
|
|
3536
3555
|
return null;
|
|
3537
3556
|
};
|
|
3538
3557
|
deprecatedAPIs = {
|
|
3539
|
-
|
|
3558
|
+
react_stack_bottom_frame: function (callStackForError) {
|
|
3540
3559
|
return callStackForError();
|
|
3541
3560
|
}
|
|
3542
3561
|
};
|
|
3543
3562
|
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
3544
3563
|
var didWarnAboutElementRef = {};
|
|
3545
|
-
var unknownOwnerDebugStack = deprecatedAPIs
|
|
3546
|
-
|
|
3547
|
-
|
|
3564
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
3565
|
+
deprecatedAPIs,
|
|
3566
|
+
UnknownOwner
|
|
3567
|
+
)();
|
|
3548
3568
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
3549
3569
|
var didWarnAboutMaps = false,
|
|
3550
3570
|
userProvidedKeyEscapeRegex = /\/+/g,
|
|
@@ -3596,7 +3616,7 @@ function requireReact_development () {
|
|
|
3596
3616
|
return resolveDispatcher().useMemoCache(size);
|
|
3597
3617
|
}
|
|
3598
3618
|
});
|
|
3599
|
-
|
|
3619
|
+
var fnName = {
|
|
3600
3620
|
map: mapChildren,
|
|
3601
3621
|
forEach: function (children, forEachFunc, forEachContext) {
|
|
3602
3622
|
mapChildren(
|
|
@@ -3629,6 +3649,8 @@ function requireReact_development () {
|
|
|
3629
3649
|
return children;
|
|
3630
3650
|
}
|
|
3631
3651
|
};
|
|
3652
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
3653
|
+
exports.Children = fnName;
|
|
3632
3654
|
exports.Component = Component;
|
|
3633
3655
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
3634
3656
|
exports.Profiler = REACT_PROFILER_TYPE;
|
|
@@ -3754,6 +3776,9 @@ function requireReact_development () {
|
|
|
3754
3776
|
return fn.apply(null, arguments);
|
|
3755
3777
|
};
|
|
3756
3778
|
};
|
|
3779
|
+
exports.cacheSignal = function () {
|
|
3780
|
+
return null;
|
|
3781
|
+
};
|
|
3757
3782
|
exports.captureOwnerStack = function () {
|
|
3758
3783
|
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
3759
3784
|
return null === getCurrentStack ? null : getCurrentStack();
|
|
@@ -3806,16 +3831,13 @@ function requireReact_development () {
|
|
|
3806
3831
|
props = ReactElement(
|
|
3807
3832
|
element.type,
|
|
3808
3833
|
key,
|
|
3809
|
-
void 0,
|
|
3810
|
-
void 0,
|
|
3811
|
-
owner,
|
|
3812
3834
|
props,
|
|
3835
|
+
owner,
|
|
3813
3836
|
element._debugStack,
|
|
3814
3837
|
element._debugTask
|
|
3815
3838
|
);
|
|
3816
3839
|
for (key = 2; key < arguments.length; key++)
|
|
3817
|
-
(
|
|
3818
|
-
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
3840
|
+
validateChildKeys(arguments[key]);
|
|
3819
3841
|
return props;
|
|
3820
3842
|
};
|
|
3821
3843
|
exports.createContext = function (defaultValue) {
|
|
@@ -3837,12 +3859,10 @@ function requireReact_development () {
|
|
|
3837
3859
|
return defaultValue;
|
|
3838
3860
|
};
|
|
3839
3861
|
exports.createElement = function (type, config, children) {
|
|
3840
|
-
for (var i = 2; i < arguments.length; i++)
|
|
3841
|
-
|
|
3842
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
3843
|
-
}
|
|
3862
|
+
for (var i = 2; i < arguments.length; i++)
|
|
3863
|
+
validateChildKeys(arguments[i]);
|
|
3844
3864
|
i = {};
|
|
3845
|
-
|
|
3865
|
+
var key = null;
|
|
3846
3866
|
if (null != config)
|
|
3847
3867
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
3848
3868
|
!("__self" in config) ||
|
|
@@ -3852,7 +3872,7 @@ function requireReact_development () {
|
|
|
3852
3872
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
3853
3873
|
)),
|
|
3854
3874
|
hasValidKey(config) &&
|
|
3855
|
-
(checkKeyStringCoercion(config.key), (
|
|
3875
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
|
3856
3876
|
config))
|
|
3857
3877
|
hasOwnProperty.call(config, propName) &&
|
|
3858
3878
|
"key" !== propName &&
|
|
@@ -3874,7 +3894,7 @@ function requireReact_development () {
|
|
|
3874
3894
|
if (type && type.defaultProps)
|
|
3875
3895
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
3876
3896
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
3877
|
-
|
|
3897
|
+
key &&
|
|
3878
3898
|
defineKeyPropWarningGetter(
|
|
3879
3899
|
i,
|
|
3880
3900
|
"function" === typeof type
|
|
@@ -3884,11 +3904,9 @@ function requireReact_development () {
|
|
|
3884
3904
|
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
3885
3905
|
return ReactElement(
|
|
3886
3906
|
type,
|
|
3887
|
-
|
|
3888
|
-
void 0,
|
|
3889
|
-
void 0,
|
|
3890
|
-
getOwner(),
|
|
3907
|
+
key,
|
|
3891
3908
|
i,
|
|
3909
|
+
getOwner(),
|
|
3892
3910
|
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
3893
3911
|
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
3894
3912
|
);
|
|
@@ -3941,11 +3959,24 @@ function requireReact_development () {
|
|
|
3941
3959
|
};
|
|
3942
3960
|
exports.isValidElement = isValidElement;
|
|
3943
3961
|
exports.lazy = function (ctor) {
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3962
|
+
ctor = { _status: -1, _result: ctor };
|
|
3963
|
+
var lazyType = {
|
|
3964
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
3965
|
+
_payload: ctor,
|
|
3966
|
+
_init: lazyInitializer
|
|
3967
|
+
},
|
|
3968
|
+
ioInfo = {
|
|
3969
|
+
name: "lazy",
|
|
3970
|
+
start: -1,
|
|
3971
|
+
end: -1,
|
|
3972
|
+
value: null,
|
|
3973
|
+
owner: null,
|
|
3974
|
+
debugStack: Error("react-stack-top-frame"),
|
|
3975
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
3976
|
+
};
|
|
3977
|
+
ctor._ioInfo = ioInfo;
|
|
3978
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
3979
|
+
return lazyType;
|
|
3949
3980
|
};
|
|
3950
3981
|
exports.memo = function (type, compare) {
|
|
3951
3982
|
null == type &&
|
|
@@ -3978,8 +4009,8 @@ function requireReact_development () {
|
|
|
3978
4009
|
exports.startTransition = function (scope) {
|
|
3979
4010
|
var prevTransition = ReactSharedInternals.T,
|
|
3980
4011
|
currentTransition = {};
|
|
3981
|
-
ReactSharedInternals.T = currentTransition;
|
|
3982
4012
|
currentTransition._updatedFibers = new Set();
|
|
4013
|
+
ReactSharedInternals.T = currentTransition;
|
|
3983
4014
|
try {
|
|
3984
4015
|
var returnValue = scope(),
|
|
3985
4016
|
onStartTransitionFinish = ReactSharedInternals.S;
|
|
@@ -3988,7 +4019,9 @@ function requireReact_development () {
|
|
|
3988
4019
|
"object" === typeof returnValue &&
|
|
3989
4020
|
null !== returnValue &&
|
|
3990
4021
|
"function" === typeof returnValue.then &&
|
|
3991
|
-
|
|
4022
|
+
(ReactSharedInternals.asyncTransitions++,
|
|
4023
|
+
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
|
4024
|
+
returnValue.then(noop, reportGlobalError));
|
|
3992
4025
|
} catch (error) {
|
|
3993
4026
|
reportGlobalError(error);
|
|
3994
4027
|
} finally {
|
|
@@ -4000,6 +4033,14 @@ function requireReact_development () {
|
|
|
4000
4033
|
console.warn(
|
|
4001
4034
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
4002
4035
|
)),
|
|
4036
|
+
null !== prevTransition &&
|
|
4037
|
+
null !== currentTransition.types &&
|
|
4038
|
+
(null !== prevTransition.types &&
|
|
4039
|
+
prevTransition.types !== currentTransition.types &&
|
|
4040
|
+
console.error(
|
|
4041
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
4042
|
+
),
|
|
4043
|
+
(prevTransition.types = currentTransition.types)),
|
|
4003
4044
|
(ReactSharedInternals.T = prevTransition);
|
|
4004
4045
|
}
|
|
4005
4046
|
};
|
|
@@ -4033,17 +4074,15 @@ function requireReact_development () {
|
|
|
4033
4074
|
exports.useDeferredValue = function (value, initialValue) {
|
|
4034
4075
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
4035
4076
|
};
|
|
4036
|
-
exports.useEffect = function (create,
|
|
4077
|
+
exports.useEffect = function (create, deps) {
|
|
4037
4078
|
null == create &&
|
|
4038
4079
|
console.warn(
|
|
4039
4080
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
4040
4081
|
);
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
);
|
|
4046
|
-
return dispatcher.useEffect(create, createDeps);
|
|
4082
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
4083
|
+
};
|
|
4084
|
+
exports.useEffectEvent = function (callback) {
|
|
4085
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
4047
4086
|
};
|
|
4048
4087
|
exports.useId = function () {
|
|
4049
4088
|
return resolveDispatcher().useId();
|
|
@@ -4094,7 +4133,7 @@ function requireReact_development () {
|
|
|
4094
4133
|
exports.useTransition = function () {
|
|
4095
4134
|
return resolveDispatcher().useTransition();
|
|
4096
4135
|
};
|
|
4097
|
-
exports.version = "19.
|
|
4136
|
+
exports.version = "19.2.0";
|
|
4098
4137
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
4099
4138
|
"function" ===
|
|
4100
4139
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|