Socket
Socket
Sign inDemoInstall

react-dom

Package Overview
Dependencies
4
Maintainers
5
Versions
1768
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.3.0-canary-09285d5a7-20230925 to 18.3.0-canary-09fbee89d-20231013

react-dom.shared-subset.js

116

cjs/react-dom-server-rendering-stub.development.js

@@ -19,12 +19,2 @@ /**

var ReactVersion = '18.3.0-canary-09285d5a7-20230925';
var Internals = {
usingClientEntryPoint: false,
Events: null,
Dispatcher: {
current: null
}
};
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

@@ -69,2 +59,31 @@

var ReactVersion = '18.3.0-canary-09fbee89d-20231013';
var Internals = {
usingClientEntryPoint: false,
Events: null,
Dispatcher: {
current: null
}
};
function getCrossOriginString(input) {
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
function getCrossOriginStringAs(as, input) {
if (as === 'font') {
return '';
}
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
var Dispatcher = Internals.Dispatcher;

@@ -109,3 +128,3 @@ function prefetchDNS(href) {

if (dispatcher && typeof href === 'string') {
var crossOrigin = options ? getCrossOrigin('preconnect', options.crossOrigin) : null;
var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
dispatcher.preconnect(href, crossOrigin);

@@ -141,3 +160,3 @@ } // We don't error because preconnect needs to be resilient to being called in a variety of scopes

var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
dispatcher.preload(href, as, {

@@ -181,3 +200,3 @@ crossOrigin: crossOrigin,

if (options) {
var crossOrigin = getCrossOrigin(options.as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preloadModule(href, {

@@ -211,3 +230,3 @@ as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,

var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;

@@ -274,8 +293,13 @@ var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;

if (dispatcher && typeof href === 'string') {
if (options == null || typeof options === 'object' && (options.as == null || options.as === 'script')) {
var crossOrigin = options ? getCrossOrigin(undefined, options.crossOrigin) : undefined;
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: options && typeof options.integrity === 'string' ? options.integrity : undefined
});
if (typeof options === 'object' && options !== null) {
if (options.as == null || options.as === 'script') {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} else if (options == null) {
dispatcher.preinitModuleScript(href);
}

@@ -288,6 +312,2 @@ } // We don't error because preinit needs to be resilient to being called in a variety of scopes

function getCrossOrigin(as, crossOrigin) {
return as === 'font' ? '' : typeof crossOrigin === 'string' ? crossOrigin === 'use-credentials' ? 'use-credentials' : '' : undefined;
}
function getValueDescriptorExpectingObjectForWarning(thing) {

@@ -301,5 +321,26 @@ return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";

var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; // Since the "not pending" value is always the same, we can reuse the
function resolveDispatcher() {
// Copied from react/src/ReactHooks.js. It's the same thing but in a
// different package.
var dispatcher = ReactCurrentDispatcher.current;
{
if (dispatcher === null) {
error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
}
} // Will result in a null access error if accessed outside render phase. We
// intentionally don't throw our own error because this is in a hot path.
// Also helps ensure this is inlined.
return dispatcher;
}
function useFormStatus() {
{
throw new Error('Not implemented.');
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] We know this exists because of the feature check above.
return dispatcher.useHostTransitionStatus();
}

@@ -309,3 +350,5 @@ }

{
throw new Error('Not implemented.');
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] This is unstable, thus optional
return dispatcher.useFormState(action, initialState, permalink);
}

@@ -328,6 +371,21 @@ }

function experimental_useFormStatus() {
{
error('useFormStatus is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormStatus();
}
function experimental_useFormState(action, initialState, permalink) {
{
error('useFormState is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormState(action, initialState, permalink);
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal;
exports.experimental_useFormState = useFormState;
exports.experimental_useFormStatus = useFormStatus;
exports.experimental_useFormState = experimental_useFormState;
exports.experimental_useFormStatus = experimental_useFormStatus;
exports.flushSync = flushSync;

@@ -341,4 +399,6 @@ exports.preconnect = preconnect;

exports.unstable_batchedUpdates = batchedUpdates;
exports.useFormState = useFormState;
exports.useFormStatus = useFormStatus;
exports.version = ReactVersion;
})();
}

@@ -10,8 +10,9 @@ /**

*/
'use strict';var e={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function f(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g=e.Dispatcher;
function k(b,a){return"font"===b?"":"string"===typeof a?"use-credentials"===a?"use-credentials":"":void 0}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e;exports.createPortal=function(){throw Error(f(448));};exports.experimental_useFormState=function(){throw Error(f(248));};exports.experimental_useFormStatus=function(){throw Error(f(248));};exports.flushSync=function(){throw Error(f(449));};
exports.preconnect=function(b,a){var c=g.current;c&&"string"===typeof b&&(a=a?k("preconnect",a.crossOrigin):null,c.preconnect(b,a))};exports.prefetchDNS=function(b){var a=g.current;a&&"string"===typeof b&&a.prefetchDNS(b)};
exports.preinit=function(b,a){var c=g.current;if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var d=a.as,h=k(d,a.crossOrigin),l="string"===typeof a.integrity?a.integrity:void 0,m="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===d?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:h,integrity:l,fetchPriority:m}):"script"===d&&c.preinitScript(b,{crossOrigin:h,integrity:l,fetchPriority:m,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};
exports.preinitModule=function(b,a){var c=g.current;if(c&&"string"===typeof b&&(null==a||"object"===typeof a&&(null==a.as||"script"===a.as))){var d=a?k(void 0,a.crossOrigin):void 0;c.preinitModuleScript(b,{crossOrigin:d,integrity:a&&"string"===typeof a.integrity?a.integrity:void 0})}};
exports.preload=function(b,a){var c=g.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var d=a.as,h=k(d,a.crossOrigin);c.preload(b,d,{crossOrigin:h,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===
typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};exports.preloadModule=function(b,a){var c=g.current;if(c&&"string"===typeof b)if(a){var d=k(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.version="18.3.0-canary-09285d5a7-20230925";
'use strict';var e=require("react"),f={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function h(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
function k(b,a){if("font"===b)return"";if("string"===typeof a)return"use-credentials"===a?a:""}var l=f.Dispatcher,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function n(){return m.current.useHostTransitionStatus()}function r(b,a,c){return m.current.useFormState(b,a,c)}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f;exports.createPortal=function(){throw Error(h(448));};exports.experimental_useFormState=function(b,a,c){return r(b,a,c)};
exports.experimental_useFormStatus=function(){return n()};exports.flushSync=function(){throw Error(h(449));};exports.preconnect=function(b,a){var c=l.current;c&&"string"===typeof b&&(a?(a=a.crossOrigin,a="string"===typeof a?"use-credentials"===a?a:"":void 0):a=null,c.preconnect(b,a))};exports.prefetchDNS=function(b){var a=l.current;a&&"string"===typeof b&&a.prefetchDNS(b)};
exports.preinit=function(b,a){var c=l.current;if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var d=a.as,g=k(d,a.crossOrigin),p="string"===typeof a.integrity?a.integrity:void 0,q="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===d?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:g,integrity:p,fetchPriority:q}):"script"===d&&c.preinitScript(b,{crossOrigin:g,integrity:p,fetchPriority:q,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};
exports.preinitModule=function(b,a){var c=l.current;if(c&&"string"===typeof b)if("object"===typeof a&&null!==a){if(null==a.as||"script"===a.as){var d=k(a.as,a.crossOrigin);c.preinitModuleScript(b,{crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0})}}else null==a&&c.preinitModuleScript(b)};
exports.preload=function(b,a){var c=l.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var d=a.as,g=k(d,a.crossOrigin);c.preload(b,d,{crossOrigin:g,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===
typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};exports.preloadModule=function(b,a){var c=l.current;if(c&&"string"===typeof b)if(a){var d=k(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};exports.unstable_batchedUpdates=function(b,a){return b(a)};exports.useFormState=r;exports.useFormStatus=n;
exports.version="18.3.0-canary-09fbee89d-20231013";

@@ -66,2 +66,21 @@ /**

function getCrossOriginString(input) {
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
function getCrossOriginStringAs(as, input) {
if (as === 'font') {
return '';
}
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
var Dispatcher = Internals.Dispatcher;

@@ -106,3 +125,3 @@ function prefetchDNS(href) {

if (dispatcher && typeof href === 'string') {
var crossOrigin = options ? getCrossOrigin('preconnect', options.crossOrigin) : null;
var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
dispatcher.preconnect(href, crossOrigin);

@@ -138,3 +157,3 @@ } // We don't error because preconnect needs to be resilient to being called in a variety of scopes

var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
dispatcher.preload(href, as, {

@@ -178,3 +197,3 @@ crossOrigin: crossOrigin,

if (options) {
var crossOrigin = getCrossOrigin(options.as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preloadModule(href, {

@@ -208,3 +227,3 @@ as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,

var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;

@@ -271,8 +290,13 @@ var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;

if (dispatcher && typeof href === 'string') {
if (options == null || typeof options === 'object' && (options.as == null || options.as === 'script')) {
var crossOrigin = options ? getCrossOrigin(undefined, options.crossOrigin) : undefined;
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: options && typeof options.integrity === 'string' ? options.integrity : undefined
});
if (typeof options === 'object' && options !== null) {
if (options.as == null || options.as === 'script') {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} else if (options == null) {
dispatcher.preinitModuleScript(href);
}

@@ -285,6 +309,2 @@ } // We don't error because preinit needs to be resilient to being called in a variety of scopes

function getCrossOrigin(as, crossOrigin) {
return as === 'font' ? '' : typeof crossOrigin === 'string' ? crossOrigin === 'use-credentials' ? 'use-credentials' : '' : undefined;
}
function getValueDescriptorExpectingObjectForWarning(thing) {

@@ -291,0 +311,0 @@ return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";

@@ -10,6 +10,7 @@ /**

*/
'use strict';var e={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}},f=e.Dispatcher;function h(b,a){return"font"===b?"":"string"===typeof a?"use-credentials"===a?"use-credentials":"":void 0}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e;exports.preconnect=function(b,a){var c=f.current;c&&"string"===typeof b&&(a=a?h("preconnect",a.crossOrigin):null,c.preconnect(b,a))};exports.prefetchDNS=function(b){var a=f.current;a&&"string"===typeof b&&a.prefetchDNS(b)};
exports.preinit=function(b,a){var c=f.current;if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var d=a.as,g=h(d,a.crossOrigin),k="string"===typeof a.integrity?a.integrity:void 0,l="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===d?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:g,integrity:k,fetchPriority:l}):"script"===d&&c.preinitScript(b,{crossOrigin:g,integrity:k,fetchPriority:l,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};
exports.preinitModule=function(b,a){var c=f.current;if(c&&"string"===typeof b&&(null==a||"object"===typeof a&&(null==a.as||"script"===a.as))){var d=a?h(void 0,a.crossOrigin):void 0;c.preinitModuleScript(b,{crossOrigin:d,integrity:a&&"string"===typeof a.integrity?a.integrity:void 0})}};
exports.preload=function(b,a){var c=f.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var d=a.as,g=h(d,a.crossOrigin);c.preload(b,d,{crossOrigin:g,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===
typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};exports.preloadModule=function(b,a){var c=f.current;if(c&&"string"===typeof b)if(a){var d=h(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};
'use strict';var e={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function f(b,a){if("font"===b)return"";if("string"===typeof a)return"use-credentials"===a?a:""}var h=e.Dispatcher;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e;exports.preconnect=function(b,a){var c=h.current;c&&"string"===typeof b&&(a?(a=a.crossOrigin,a="string"===typeof a?"use-credentials"===a?a:"":void 0):a=null,c.preconnect(b,a))};
exports.prefetchDNS=function(b){var a=h.current;a&&"string"===typeof b&&a.prefetchDNS(b)};
exports.preinit=function(b,a){var c=h.current;if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var d=a.as,g=f(d,a.crossOrigin),k="string"===typeof a.integrity?a.integrity:void 0,l="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===d?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:g,integrity:k,fetchPriority:l}):"script"===d&&c.preinitScript(b,{crossOrigin:g,integrity:k,fetchPriority:l,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};
exports.preinitModule=function(b,a){var c=h.current;if(c&&"string"===typeof b)if("object"===typeof a&&null!==a){if(null==a.as||"script"===a.as){var d=f(a.as,a.crossOrigin);c.preinitModuleScript(b,{crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0})}}else null==a&&c.preinitModuleScript(b)};
exports.preload=function(b,a){var c=h.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var d=a.as,g=f(d,a.crossOrigin);c.preload(b,d,{crossOrigin:g,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===
typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};exports.preloadModule=function(b,a){var c=h.current;if(c&&"string"===typeof b)if(a){var d=f(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:d,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};
{
"name": "react-dom",
"version": "18.3.0-canary-09285d5a7-20230925",
"version": "18.3.0-canary-09fbee89d-20231013",
"description": "React package for working with the DOM.",

@@ -21,6 +21,6 @@ "main": "index.js",

"loose-envify": "^1.1.0",
"scheduler": "0.24.0-canary-09285d5a7-20230925"
"scheduler": "0.24.0-canary-09fbee89d-20231013"
},
"peerDependencies": {
"react": "18.3.0-canary-09285d5a7-20230925"
"react": "18.3.0-canary-09fbee89d-20231013"
},

@@ -45,2 +45,3 @@ "files": [

"unstable_server-external-runtime.js",
"react-dom.shared-subset.js",
"cjs/",

@@ -47,0 +48,0 @@ "umd/"

@@ -16,12 +16,2 @@ /**

var ReactVersion = '18.3.0-canary-09285d5a7-20230925';
var Internals = {
usingClientEntryPoint: false,
Events: null,
Dispatcher: {
current: null
}
};
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

@@ -66,2 +56,31 @@

var ReactVersion = '18.3.0-canary-09fbee89d-20231013';
var Internals = {
usingClientEntryPoint: false,
Events: null,
Dispatcher: {
current: null
}
};
function getCrossOriginString(input) {
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
function getCrossOriginStringAs(as, input) {
if (as === 'font') {
return '';
}
if (typeof input === 'string') {
return input === 'use-credentials' ? input : '';
}
return undefined;
}
var Dispatcher = Internals.Dispatcher;

@@ -106,3 +125,3 @@ function prefetchDNS(href) {

if (dispatcher && typeof href === 'string') {
var crossOrigin = options ? getCrossOrigin('preconnect', options.crossOrigin) : null;
var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null;
dispatcher.preconnect(href, crossOrigin);

@@ -138,3 +157,3 @@ } // We don't error because preconnect needs to be resilient to being called in a variety of scopes

var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
dispatcher.preload(href, as, {

@@ -178,3 +197,3 @@ crossOrigin: crossOrigin,

if (options) {
var crossOrigin = getCrossOrigin(options.as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preloadModule(href, {

@@ -208,3 +227,3 @@ as: typeof options.as === 'string' && options.as !== 'script' ? options.as : undefined,

var as = options.as;
var crossOrigin = getCrossOrigin(as, options.crossOrigin);
var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
var integrity = typeof options.integrity === 'string' ? options.integrity : undefined;

@@ -271,8 +290,13 @@ var fetchPriority = typeof options.fetchPriority === 'string' ? options.fetchPriority : undefined;

if (dispatcher && typeof href === 'string') {
if (options == null || typeof options === 'object' && (options.as == null || options.as === 'script')) {
var crossOrigin = options ? getCrossOrigin(undefined, options.crossOrigin) : undefined;
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: options && typeof options.integrity === 'string' ? options.integrity : undefined
});
if (typeof options === 'object' && options !== null) {
if (options.as == null || options.as === 'script') {
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
dispatcher.preinitModuleScript(href, {
crossOrigin: crossOrigin,
integrity: typeof options.integrity === 'string' ? options.integrity : undefined,
nonce: typeof options.nonce === 'string' ? options.nonce : undefined
});
}
} else if (options == null) {
dispatcher.preinitModuleScript(href);
}

@@ -285,6 +309,2 @@ } // We don't error because preinit needs to be resilient to being called in a variety of scopes

function getCrossOrigin(as, crossOrigin) {
return as === 'font' ? '' : typeof crossOrigin === 'string' ? crossOrigin === 'use-credentials' ? 'use-credentials' : '' : undefined;
}
function getValueDescriptorExpectingObjectForWarning(thing) {

@@ -298,5 +318,26 @@ return thing === null ? '`null`' : thing === undefined ? '`undefined`' : thing === '' ? 'an empty string' : "something with type \"" + typeof thing + "\"";

var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; // Since the "not pending" value is always the same, we can reuse the
function resolveDispatcher() {
// Copied from react/src/ReactHooks.js. It's the same thing but in a
// different package.
var dispatcher = ReactCurrentDispatcher.current;
{
if (dispatcher === null) {
error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for' + ' one of the following reasons:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
}
} // Will result in a null access error if accessed outside render phase. We
// intentionally don't throw our own error because this is in a hot path.
// Also helps ensure this is inlined.
return dispatcher;
}
function useFormStatus() {
{
throw new Error('Not implemented.');
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] We know this exists because of the feature check above.
return dispatcher.useHostTransitionStatus();
}

@@ -306,3 +347,5 @@ }

{
throw new Error('Not implemented.');
var dispatcher = resolveDispatcher(); // $FlowFixMe[not-a-function] This is unstable, thus optional
return dispatcher.useFormState(action, initialState, permalink);
}

@@ -325,6 +368,21 @@ }

function experimental_useFormStatus() {
{
error('useFormStatus is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormStatus();
}
function experimental_useFormState(action, initialState, permalink) {
{
error('useFormState is now in canary. Remove the experimental_ prefix. ' + 'The prefixed alias will be removed in an upcoming release.');
}
return useFormState(action, initialState, permalink);
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = createPortal;
exports.experimental_useFormState = useFormState;
exports.experimental_useFormStatus = useFormStatus;
exports.experimental_useFormState = experimental_useFormState;
exports.experimental_useFormStatus = experimental_useFormStatus;
exports.flushSync = flushSync;

@@ -338,4 +396,6 @@ exports.preconnect = preconnect;

exports.unstable_batchedUpdates = batchedUpdates;
exports.useFormState = useFormState;
exports.useFormStatus = useFormStatus;
exports.version = ReactVersion;
}));

@@ -10,8 +10,9 @@ /**

*/
(function(){'use strict';(function(d,f){"object"===typeof exports&&"undefined"!==typeof module?f(exports):"function"===typeof define&&define.amd?define(["exports"],f):(d="undefined"!==typeof globalThis?globalThis:d||self,f(d.ReactDOMServerRenderingStub={}))})(this,function(d){function f(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
function h(b,a){return"font"===b?"":"string"===typeof a?"use-credentials"===a?"use-credentials":"":void 0}var l={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}},g=l.Dispatcher;d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l;d.createPortal=function(){throw Error(f(448));};d.experimental_useFormState=function(b,a,c){throw Error(f(248));};d.experimental_useFormStatus=function(){throw Error(f(248));};d.flushSync=function(){throw Error(f(449));};d.preconnect=function(b,a){var c=
g.current;c&&"string"===typeof b&&(a=a?h("preconnect",a.crossOrigin):null,c.preconnect(b,a))};d.prefetchDNS=function(b){var a=g.current;a&&"string"===typeof b&&a.prefetchDNS(b)};d.preinit=function(b,a){var c=g.current;if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var e=a.as,k=h(e,a.crossOrigin),m="string"===typeof a.integrity?a.integrity:void 0,n="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===e?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:k,
integrity:m,fetchPriority:n}):"script"===e&&c.preinitScript(b,{crossOrigin:k,integrity:m,fetchPriority:n,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};d.preinitModule=function(b,a){var c=g.current;if(c&&"string"===typeof b&&(null==a||"object"===typeof a&&(null==a.as||"script"===a.as))){var e=a?h(void 0,a.crossOrigin):void 0;c.preinitModuleScript(b,{crossOrigin:e,integrity:a&&"string"===typeof a.integrity?a.integrity:void 0})}};d.preload=function(b,a){var c=g.current;if(c&&"string"===typeof b&&
"object"===typeof a&&null!==a&&"string"===typeof a.as){var e=a.as,k=h(e,a.crossOrigin);c.preload(b,e,{crossOrigin:k,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?
a.imageSizes:void 0})}};d.preloadModule=function(b,a){var c=g.current;if(c&&"string"===typeof b)if(a){var e=h(a.as,a.crossOrigin);c.preloadModule(b,{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:e,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};d.unstable_batchedUpdates=function(b,a){return b(a)};d.version="18.3.0-canary-09285d5a7-20230925"});
(function(){'use strict';(function(d,g){"object"===typeof exports&&"undefined"!==typeof module?g(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],g):(d="undefined"!==typeof globalThis?globalThis:d||self,g(d.ReactDOMServerRenderingStub={},d.React))})(this,function(d,g){function l(b){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+b,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+b+"; visit "+
a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(b,a){if("font"===b)return"";if("string"===typeof a)return"use-credentials"===a?a:""}function m(){return n.current.useHostTransitionStatus()}function p(b,a,c){return n.current.useFormState(b,a,c)}var q={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}},f=q.Dispatcher,n=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=
q;d.createPortal=function(){throw Error(l(448));};d.experimental_useFormState=function(b,a,c){return p(b,a,c)};d.experimental_useFormStatus=function(){return m()};d.flushSync=function(){throw Error(l(449));};d.preconnect=function(b,a){var c=f.current;c&&"string"===typeof b&&(a?(a=a.crossOrigin,a="string"===typeof a?"use-credentials"===a?a:"":void 0):a=null,c.preconnect(b,a))};d.prefetchDNS=function(b){var a=f.current;a&&"string"===typeof b&&a.prefetchDNS(b)};d.preinit=function(b,a){var c=f.current;
if(c&&"string"===typeof b&&a&&"string"===typeof a.as){var e=a.as,k=h(e,a.crossOrigin),r="string"===typeof a.integrity?a.integrity:void 0,t="string"===typeof a.fetchPriority?a.fetchPriority:void 0;"style"===e?c.preinitStyle(b,"string"===typeof a.precedence?a.precedence:void 0,{crossOrigin:k,integrity:r,fetchPriority:t}):"script"===e&&c.preinitScript(b,{crossOrigin:k,integrity:r,fetchPriority:t,nonce:"string"===typeof a.nonce?a.nonce:void 0})}};d.preinitModule=function(b,a){var c=f.current;if(c&&"string"===
typeof b)if("object"===typeof a&&null!==a){if(null==a.as||"script"===a.as){var e=h(a.as,a.crossOrigin);c.preinitModuleScript(b,{crossOrigin:e,integrity:"string"===typeof a.integrity?a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0})}}else null==a&&c.preinitModuleScript(b)};d.preload=function(b,a){var c=f.current;if(c&&"string"===typeof b&&"object"===typeof a&&null!==a&&"string"===typeof a.as){var e=a.as,k=h(e,a.crossOrigin);c.preload(b,e,{crossOrigin:k,integrity:"string"===typeof a.integrity?
a.integrity:void 0,nonce:"string"===typeof a.nonce?a.nonce:void 0,type:"string"===typeof a.type?a.type:void 0,fetchPriority:"string"===typeof a.fetchPriority?a.fetchPriority:void 0,referrerPolicy:"string"===typeof a.referrerPolicy?a.referrerPolicy:void 0,imageSrcSet:"string"===typeof a.imageSrcSet?a.imageSrcSet:void 0,imageSizes:"string"===typeof a.imageSizes?a.imageSizes:void 0})}};d.preloadModule=function(b,a){var c=f.current;if(c&&"string"===typeof b)if(a){var e=h(a.as,a.crossOrigin);c.preloadModule(b,
{as:"string"===typeof a.as&&"script"!==a.as?a.as:void 0,crossOrigin:e,integrity:"string"===typeof a.integrity?a.integrity:void 0})}else c.preloadModule(b)};d.unstable_batchedUpdates=function(b,a){return b(a)};d.useFormState=p;d.useFormStatus=m;d.version="18.3.0-canary-09fbee89d-20231013"});
})();

@@ -1,6 +0,7 @@

(function(){function p(c,a,e){a=document.getElementById(a);a.parentNode.removeChild(a);var b=document.getElementById(c);if(b){c=b.previousSibling;if(e)c.data="$!",b.setAttribute("data-dgst",e);else{e=c.parentNode;b=c.nextSibling;var h=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$!"!==d||h++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;a.firstChild;)e.insertBefore(a.firstChild,b);c.data="$"}c._reactRetry&&c._reactRetry()}}function B(c,a,
e){for(var b=new Map,h=document,d,g,q=h.querySelectorAll("link[data-precedence],style[data-precedence]"),w=[],r=0;g=q[r++];)"not all"===g.getAttribute("media")?w.push(g):("LINK"===g.tagName&&v.set(g.getAttribute("href"),g),b.set(g.dataset.precedence,d=g));g=0;q=[];var t,f;for(r=!0;;){if(r){var n=e[g++];if(!n){r=!1;g=0;continue}var k=!1,u=0;var l=n[u++];if(f=v.get(l)){var m=f._p;k=!0}else{f=h.createElement("link");f.href=l;f.rel="stylesheet";for(f.dataset.precedence=t=n[u++];m=n[u++];)f.setAttribute(m,
n[u++]);m=f._p=new Promise(function(C,D){f.onload=C;f.onerror=D});v.set(l,f)}l=f.getAttribute("media");!m||"l"===m.s||l&&!window.matchMedia(l).matches||q.push(m);if(k)continue}else{f=w[g++];if(!f)break;t=f.getAttribute("data-precedence");f.removeAttribute("media")}k=b.get(t)||d;k===d&&(d=f);b.set(t,f);k?k.parentNode.insertBefore(f,k.nextSibling):(k=h.head,k.insertBefore(f,k.firstChild))}Promise.all(q).then(p.bind(null,c,a,""),p.bind(null,c,a,"Resource failed to load"))}function x(c){c=c.querySelectorAll("template");
for(var a=0;a<c.length;a++)y(c[a])}function z(c){function a(b){for(var h=0;h<b.length;h++)for(var d=b[h].addedNodes,g=0;g<d.length;g++)d[g].parentNode&&y(d[g])}var e=new MutationObserver(a);e.observe(c,{childList:!0});window.addEventListener("DOMContentLoaded",function(){a(e.takeRecords());e.disconnect()})}function y(c){if(1===c.nodeType&&c.dataset){var a=c.dataset;if(null!=a.rxi){var e=a.dgst,b=a.msg,h=a.stck,d=document.getElementById(a.bid);d&&(a=d.previousSibling,a.data="$!",d=d.dataset,e&&(d.dgst=
e),b&&(d.msg=b),h&&(d.stck=h),a._reactRetry&&a._reactRetry());c.remove()}else if(null!=a.rri)B(a.bid,a.sid,JSON.parse(a.sty)),c.remove();else if(null!=a.rci)p(a.bid,a.sid),c.remove();else if(null!=a.rsi){e=a.pid;b=document.getElementById(a.sid);e=document.getElementById(e);for(b.parentNode.removeChild(b);b.firstChild;)e.parentNode.insertBefore(b.firstChild,e);e.parentNode.removeChild(e);c.remove()}}}var v=new Map;window.$RC||(window.$RC=p,window.$RM=new Map);if(null!=document.body)"loading"===document.readyState&&
z(document.body),x(document.body);else{var A=new MutationObserver(function(){null!=document.body&&("loading"===document.readyState&&z(document.body),x(document.body),A.disconnect())});A.observe(document.documentElement,{childList:!0})}})();
(function(){function p(b,a,d){a=document.getElementById(a);a.parentNode.removeChild(a);var c=document.getElementById(b);if(c){b=c.previousSibling;if(d)b.data="$!",c.setAttribute("data-dgst",d);else{d=b.parentNode;c=b.nextSibling;var f=0;do{if(c&&8===c.nodeType){var e=c.data;if("/$"===e)if(0===f)break;else f--;else"$"!==e&&"$?"!==e&&"$!"!==e||f++}e=c.nextSibling;d.removeChild(c);c=e}while(c);for(;a.firstChild;)d.insertBefore(a.firstChild,c);b.data="$"}b._reactRetry&&b._reactRetry()}}function B(b,a,
d){for(var c=new Map,f=document,e,h,q=f.querySelectorAll("link[data-precedence],style[data-precedence]"),w=[],r=0;h=q[r++];)"not all"===h.getAttribute("media")?w.push(h):("LINK"===h.tagName&&v.set(h.getAttribute("href"),h),c.set(h.dataset.precedence,e=h));h=0;q=[];var t,g;for(r=!0;;){if(r){var n=d[h++];if(!n){r=!1;h=0;continue}var k=!1,u=0;var l=n[u++];if(g=v.get(l)){var m=g._p;k=!0}else{g=f.createElement("link");g.href=l;g.rel="stylesheet";for(g.dataset.precedence=t=n[u++];m=n[u++];)g.setAttribute(m,
n[u++]);m=g._p=new Promise(function(C,D){g.onload=C;g.onerror=D});v.set(l,g)}l=g.getAttribute("media");!m||"l"===m.s||l&&!window.matchMedia(l).matches||q.push(m);if(k)continue}else{g=w[h++];if(!g)break;t=g.getAttribute("data-precedence");g.removeAttribute("media")}k=c.get(t)||e;k===e&&(e=g);c.set(t,g);k?k.parentNode.insertBefore(g,k.nextSibling):(k=f.head,k.insertBefore(g,k.firstChild))}Promise.all(q).then(p.bind(null,b,a,""),p.bind(null,b,a,"Resource failed to load"))}function x(b){b=b.querySelectorAll("template");
for(var a=0;a<b.length;a++)y(b[a])}function z(b){function a(c){for(var f=0;f<c.length;f++)for(var e=c[f].addedNodes,h=0;h<e.length;h++)e[h].parentNode&&y(e[h])}var d=new MutationObserver(a);d.observe(b,{childList:!0});window.addEventListener("DOMContentLoaded",function(){a(d.takeRecords());d.disconnect()})}function y(b){if(1===b.nodeType&&b.dataset){var a=b.dataset;if(null!=a.rxi){var d=a.dgst,c=a.msg,f=a.stck,e=document.getElementById(a.bid);e&&(a=e.previousSibling,a.data="$!",e=e.dataset,d&&(e.dgst=
d),c&&(e.msg=c),f&&(e.stck=f),a._reactRetry&&a._reactRetry());b.remove()}else if(null!=a.rri)B(a.bid,a.sid,JSON.parse(a.sty)),b.remove();else if(null!=a.rci)p(a.bid,a.sid),b.remove();else if(null!=a.rsi){d=a.pid;c=document.getElementById(a.sid);d=document.getElementById(d);for(c.parentNode.removeChild(c);c.firstChild;)d.parentNode.insertBefore(c.firstChild,d);d.parentNode.removeChild(d);b.remove()}}}var v=new Map;(function(){addEventListener("submit",function(b){if(!b.defaultPrevented){var a=b.target,
d=b.submitter,c=a.action,f=d;if(d){var e=d.getAttribute("formAction");null!=e&&(c=e,f=null)}"javascript:throw new Error('A React form was unexpectedly submitted.')"===c&&(b.preventDefault(),f?(b=document.createElement("input"),b.name=f.name,b.value=f.value,f.parentNode.insertBefore(b,f),f=new FormData(a),b.parentNode.removeChild(b)):f=new FormData(a),b=a.getRootNode(),(b.$$reactFormReplay=b.$$reactFormReplay||[]).push(a,d,f))}})})();window.$RC||(window.$RC=p,window.$RM=new Map);if(null!=document.body)"loading"===
document.readyState&&z(document.body),x(document.body);else{var A=new MutationObserver(function(){null!=document.body&&("loading"===document.readyState&&z(document.body),x(document.body),A.disconnect())});A.observe(document.documentElement,{childList:!0})}})();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc