2727}
2828 "use strict" ;
2929
30- var ReactVersion = "18.3.0-www-classic-01108d4a " ;
30+ var ReactVersion = "18.3.0-www-classic-d874e0af " ;
3131
3232// ATTENTION
3333// When adding new symbols to this file,
@@ -40,7 +40,6 @@ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
4040var REACT_PROFILER_TYPE = Symbol . for ( "react.profiler" ) ;
4141var REACT_PROVIDER_TYPE = Symbol . for ( "react.provider" ) ;
4242var REACT_CONTEXT_TYPE = Symbol . for ( "react.context" ) ;
43- var REACT_SERVER_CONTEXT_TYPE = Symbol . for ( "react.server_context" ) ;
4443var REACT_FORWARD_REF_TYPE = Symbol . for ( "react.forward_ref" ) ;
4544var REACT_SUSPENSE_TYPE = Symbol . for ( "react.suspense" ) ;
4645var REACT_SUSPENSE_LIST_TYPE = Symbol . for ( "react.suspense_list" ) ;
@@ -52,9 +51,6 @@ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
5251var REACT_LEGACY_HIDDEN_TYPE = Symbol . for ( "react.legacy_hidden" ) ;
5352var REACT_CACHE_TYPE = Symbol . for ( "react.cache" ) ;
5453var REACT_TRACING_MARKER_TYPE = Symbol . for ( "react.tracing_marker" ) ;
55- var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol . for (
56- "react.default_value"
57- ) ;
5854var MAYBE_ITERATOR_SYMBOL = Symbol . iterator ;
5955var FAUX_ITERATOR_SYMBOL = "@@iterator" ;
6056function getIteratorFn ( maybeIterable ) {
@@ -584,11 +580,6 @@ function getComponentNameFromType(type) {
584580 return null ;
585581 }
586582 }
587-
588- case REACT_SERVER_CONTEXT_TYPE : {
589- var context2 = type ;
590- return ( context2 . displayName || context2 . _globalName ) + ".Provider" ;
591- }
592583 }
593584 }
594585
@@ -2177,8 +2168,6 @@ function setExtraStackFrame(stack) {
21772168 } ;
21782169}
21792170
2180- var ContextRegistry = { } ;
2181-
21822171var ReactSharedInternals = {
21832172 ReactCurrentDispatcher : ReactCurrentDispatcher$1 ,
21842173 ReactCurrentCache : ReactCurrentCache ,
@@ -2191,10 +2180,6 @@ var ReactSharedInternals = {
21912180 ReactSharedInternals . ReactCurrentActQueue = ReactCurrentActQueue ;
21922181}
21932182
2194- {
2195- ReactSharedInternals . ContextRegistry = ContextRegistry ;
2196- }
2197-
21982183var ReactCurrentDispatcher = ReactSharedInternals . ReactCurrentDispatcher ;
21992184var prefix ;
22002185function describeBuiltInComponentFrame ( name , source , ownerFn ) {
@@ -2947,87 +2932,6 @@ function cloneElementWithValidation(element, props, children) {
29472932 return newElement ;
29482933}
29492934
2950- function createServerContext ( globalName , defaultValue ) {
2951- {
2952- error (
2953- "Server Context is deprecated and will soon be removed. " +
2954- "It was never documented and we have found it not to be useful " +
2955- "enough to warrant the downside it imposes on all apps."
2956- ) ;
2957- }
2958-
2959- var wasDefined = true ;
2960-
2961- if ( ! ContextRegistry [ globalName ] ) {
2962- wasDefined = false ;
2963- var _context = {
2964- $$typeof : REACT_SERVER_CONTEXT_TYPE ,
2965- // As a workaround to support multiple concurrent renderers, we categorize
2966- // some renderers as primary and others as secondary. We only expect
2967- // there to be two concurrent renderers at most: React Native (primary) and
2968- // Fabric (secondary); React DOM (primary) and React ART (secondary).
2969- // Secondary renderers store their context values on separate fields.
2970- _currentValue : defaultValue ,
2971- _currentValue2 : defaultValue ,
2972- _defaultValue : defaultValue ,
2973- // Used to track how many concurrent renderers this context currently
2974- // supports within in a single renderer. Such as parallel server rendering.
2975- _threadCount : 0 ,
2976- // These are circular
2977- Provider : null ,
2978- Consumer : null ,
2979- _globalName : globalName
2980- } ;
2981- _context . Provider = {
2982- $$typeof : REACT_PROVIDER_TYPE ,
2983- _context : _context
2984- } ;
2985-
2986- {
2987- var hasWarnedAboutUsingConsumer ;
2988- _context . _currentRenderer = null ;
2989- _context . _currentRenderer2 = null ;
2990- Object . defineProperties ( _context , {
2991- Consumer : {
2992- get : function ( ) {
2993- if ( ! hasWarnedAboutUsingConsumer ) {
2994- error ( "Consumer pattern is not supported by ReactServerContext" ) ;
2995-
2996- hasWarnedAboutUsingConsumer = true ;
2997- }
2998-
2999- return null ;
3000- }
3001- }
3002- } ) ;
3003- }
3004-
3005- ContextRegistry [ globalName ] = _context ;
3006- }
3007-
3008- var context = ContextRegistry [ globalName ] ;
3009-
3010- if ( context . _defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ) {
3011- context . _defaultValue = defaultValue ;
3012-
3013- if (
3014- context . _currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
3015- ) {
3016- context . _currentValue = defaultValue ;
3017- }
3018-
3019- if (
3020- context . _currentValue2 === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
3021- ) {
3022- context . _currentValue2 = defaultValue ;
3023- }
3024- } else if ( wasDefined ) {
3025- throw new Error ( "ServerContext: " + globalName + " already defined" ) ;
3026- }
3027-
3028- return context ;
3029- }
3030-
30312935function startTransition ( scope , options ) {
30322936 var prevTransition = ReactCurrentBatchConfig . transition ;
30332937 ReactCurrentBatchConfig . transition = { } ;
@@ -4165,7 +4069,6 @@ exports.createContext = createContext;
41654069exports . createElement = createElement ;
41664070exports . createFactory = createFactory ;
41674071exports . createRef = createRef ;
4168- exports . createServerContext = createServerContext ;
41694072exports . experimental_useEffectEvent = useEffectEvent ;
41704073exports . forwardRef = forwardRef ;
41714074exports . isValidElement = isValidElement$1 ;
0 commit comments