diff --git a/package.json b/package.json index 091fb1c051f6b..09d178341cf22 100644 --- a/package.json +++ b/package.json @@ -90,8 +90,8 @@ "@types/jest": "24.0.13", "@types/node": "14.14.31", "@types/node-fetch": "2.6.1", - "@types/react": "18.2.5", - "@types/react-dom": "18.2.3", + "@types/react": "18.2.7", + "@types/react-dom": "18.2.4", "@types/relay-runtime": "13.0.0", "@types/selenium-webdriver": "4.0.15", "@types/sharp": "0.29.3", @@ -200,14 +200,14 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-16d053d59-20230506", + "react-builtin": "npm:react@18.3.0-canary-1cea38448-20230530", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-16d053d59-20230506", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-16d053d59-20230506", - "react-experimental-builtin": "npm:react@0.0.0-experimental-16d053d59-20230506", - "react-server-dom-webpack": "18.3.0-canary-16d053d59-20230506", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-16d053d59-20230506", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-1cea38448-20230530", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-1cea38448-20230530", + "react-experimental-builtin": "npm:react@0.0.0-experimental-1cea38448-20230530", + "react-server-dom-webpack": "18.3.0-canary-1cea38448-20230530", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-1cea38448-20230530", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -217,8 +217,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.9.1", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-16d053d59-20230506", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-16d053d59-20230506", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-1cea38448-20230530", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-1cea38448-20230530", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", @@ -249,8 +249,8 @@ "@babel/parser": "7.18.0", "@babel/types": "7.18.0", "@babel/traverse": "7.18.0", - "@types/react": "18.2.5", - "@types/react-dom": "18.2.3" + "@types/react": "18.2.7", + "@types/react-dom": "18.2.4" }, "engines": { "node": ">=16.8.0" diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index 8165cd1070580..543bc0d8816cf 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") { var React = require("next/dist/compiled/react-experimental"); var ReactDOM = require('react-dom'); -var ReactVersion = '18.3.0-experimental-16d053d59-20230506'; +var ReactVersion = '18.3.0-experimental-1cea38448-20230530'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -6173,6 +6173,7 @@ function preloadAsStylePropsFromProps(href, props) { as: 'style', href: href, crossOrigin: props.crossOrigin, + fetchPriority: props.fetchPriority, integrity: props.integrity, media: props.media, hrefLang: props.hrefLang, @@ -6186,7 +6187,9 @@ function preloadAsScriptPropsFromProps(href, props) { as: 'script', href: href, crossOrigin: props.crossOrigin, + fetchPriority: props.fetchPriority, integrity: props.integrity, + nonce: props.nonce, referrerPolicy: props.referrerPolicy }; } diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js index d849cf2fb0465..f938bb93fc561 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.min.js @@ -45,12 +45,12 @@ a.push("/>");null!==dc&&dc.forEach(fb,a);return null;case "button":a.push(D("but a);y(a,ec,pa);if("string"===typeof pa){a.push(t(pa));var lc=null}else lc=pa;return lc;case "form":a.push(D("form"));var ra=null,mc=null,S=null,sa=null,ta=null,ua=null,va;for(va in c)if(r.call(c,va)){var T=c[va];if(null!=T)switch(va){case "children":ra=T;break;case "dangerouslySetInnerHTML":mc=T;break;case "action":S=T;break;case "encType":sa=T;break;case "method":ta=T;break;case "target":ua=T;break;default:x(a,va,T)}}var rb=null,sb=null;if("function"===typeof S)if("function"===typeof S.$$FORM_ACTION){var Ld= db(e),fa=S.$$FORM_ACTION(Ld);S=fa.action||"";sa=fa.encType;ta=fa.method;ua=fa.target;rb=fa.data;sb=fa.name}else a.push(" ","action",'="',eb,'"'),ua=ta=sa=S=null,hb(e);null!=S&&x(a,"action",S);null!=sa&&x(a,"encType",sa);null!=ta&&x(a,"method",ta);null!=ua&&x(a,"target",ua);a.push(">");null!==sb&&(a.push('"),null!==rb&&rb.forEach(fb,a));y(a,mc,ra);if("string"===typeof ra){a.push(t(ra));var nc=null}else nc=ra;return nc;case "menuitem":a.push(D("menuitem")); for(var Pa in c)if(r.call(c,Pa)){var oc=c[Pa];if(null!=oc)switch(Pa){case "children":case "dangerouslySetInnerHTML":throw Error(l(400));default:x(a,Pa,oc)}}a.push(">");return null;case "title":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var pc=mb(a,c);else mb(e.hoistableChunks,c),pc=null;return pc;case "link":return jb(a,c,e,d,g,f.insertionMode,f.noscriptTagInScope);case "script":a:if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp||"string"!==typeof c.src||!c.src)var tb= -wb(a,c);else{var wa="[script]"+c.src;if(!0!==c.async||c.onLoad||c.onError){if(!0!==c.noModule){var ha=d.preloadsMap.get(wa);ha||(ha={type:"preload",chunks:[],state:0,props:{rel:"preload",as:"script",href:c.src,crossOrigin:c.crossOrigin,integrity:c.integrity,referrerPolicy:c.referrerPolicy}},d.preloadsMap.set(wa,ha),d.usedScripts.add(ha),C(ha.chunks,ha.props))}if(!0!==c.async){wb(a,c);tb=null;break a}}else{var xa=d.scriptsMap.get(wa);if(!xa){xa={type:"script",chunks:[],state:0,props:null};d.scriptsMap.set(wa, -xa);d.scripts.add(xa);var qc=c,Qa=d.preloadsMap.get(wa);if(Qa){Qa.state|=4;var Ra=qc=n({},c),rc=Qa.props;null==Ra.crossOrigin&&(Ra.crossOrigin=rc.crossOrigin);null==Ra.integrity&&(Ra.integrity=rc.integrity)}wb(xa.chunks,qc)}}g&&a.push("\x3c!-- --\x3e");tb=null}return tb;case "style":var ya=c.precedence,za=c.href;if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp||"string"!==typeof ya||"string"!==typeof za||""===za){a.push(D("style"));var ia=null,sc=null,Aa;for(Aa in c)if(r.call(c,Aa)){var Sa= -c[Aa];if(null!=Sa)switch(Aa){case "children":ia=Sa;break;case "dangerouslySetInnerHTML":sc=Sa;break;default:x(a,Aa,Sa)}}a.push(">");var Ba=Array.isArray(ia)?2>ia.length?ia[0]:null:ia;"function"!==typeof Ba&&"symbol"!==typeof Ba&&null!==Ba&&void 0!==Ba&&a.push(t(""+Ba));y(a,sc,ia);a.push("");var tc=null}else{var uc="[style]"+za,P=d.stylesMap.get(uc);if(!P){if(P=d.stylePrecedences.get(ya))P.props.hrefs.push(za);else{P={type:"style",chunks:[],state:0,props:{precedence:ya,hrefs:[za]}};d.stylePrecedences.set(ya, -P);var vc=new Set;vc.add(P);d.precedences.set(ya,vc)}d.stylesMap.set(uc,P);d.boundaryResources&&d.boundaryResources.add(P);var wc=P.chunks,ja=null,xc=null,Ta;for(Ta in c)if(r.call(c,Ta)){var ub=c[Ta];if(null!=ub)switch(Ta){case "children":ja=ub;break;case "dangerouslySetInnerHTML":xc=ub}}var Ca=Array.isArray(ja)?2>ja.length?ja[0]:null:ja;"function"!==typeof Ca&&"symbol"!==typeof Ca&&null!==Ca&&void 0!==Ca&&wc.push(t(""+Ca));y(wc,xc,ja)}g&&a.push("\x3c!-- --\x3e");tc=void 0}return tc;case "meta":if(3=== -f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var yc=lb(a,c,"meta");else g&&a.push("\x3c!-- --\x3e"),yc="string"===typeof c.charSet?lb(e.charsetChunks,c,"meta"):lb(e.hoistableChunks,c,"meta");return yc;case "listing":case "pre":a.push(D(b));var Da=null,Ea=null,Fa;for(Fa in c)if(r.call(c,Fa)){var Ua=c[Fa];if(null!=Ua)switch(Fa){case "children":Da=Ua;break;case "dangerouslySetInnerHTML":Ea=Ua;break;default:x(a,Fa,Ua)}}a.push(">");if(null!=Ea){if(null!=Da)throw Error(l(60));if("object"!==typeof Ea|| -!("__html"in Ea))throw Error(l(61));var Y=Ea.__html;null!==Y&&void 0!==Y&&("string"===typeof Y&&0");var Ba=Array.isArray(ia)?2>ia.length?ia[0]:null:ia;"function"!==typeof Ba&&"symbol"!==typeof Ba&&null!==Ba&&void 0!==Ba&&a.push(t(""+Ba));y(a,sc,ia);a.push("");var tc=null}else{var uc="[style]"+za,P=d.stylesMap.get(uc);if(!P){if(P=d.stylePrecedences.get(ya))P.props.hrefs.push(za);else{P={type:"style",chunks:[], +state:0,props:{precedence:ya,hrefs:[za]}};d.stylePrecedences.set(ya,P);var vc=new Set;vc.add(P);d.precedences.set(ya,vc)}d.stylesMap.set(uc,P);d.boundaryResources&&d.boundaryResources.add(P);var wc=P.chunks,ja=null,xc=null,Ta;for(Ta in c)if(r.call(c,Ta)){var ub=c[Ta];if(null!=ub)switch(Ta){case "children":ja=ub;break;case "dangerouslySetInnerHTML":xc=ub}}var Ca=Array.isArray(ja)?2>ja.length?ja[0]:null:ja;"function"!==typeof Ca&&"symbol"!==typeof Ca&&null!==Ca&&void 0!==Ca&&wc.push(t(""+Ca));y(wc, +xc,ja)}g&&a.push("\x3c!-- --\x3e");tc=void 0}return tc;case "meta":if(3===f.insertionMode||f.noscriptTagInScope||null!=c.itemProp)var yc=lb(a,c,"meta");else g&&a.push("\x3c!-- --\x3e"),yc="string"===typeof c.charSet?lb(e.charsetChunks,c,"meta"):lb(e.hoistableChunks,c,"meta");return yc;case "listing":case "pre":a.push(D(b));var Da=null,Ea=null,Fa;for(Fa in c)if(r.call(c,Fa)){var Ua=c[Fa];if(null!=Ua)switch(Fa){case "children":Da=Ua;break;case "dangerouslySetInnerHTML":Ea=Ua;break;default:x(a,Fa,Ua)}}a.push(">"); +if(null!=Ea){if(null!=Da)throw Error(l(60));if("object"!==typeof Ea||!("__html"in Ea))throw Error(l(61));var Y=Ea.__html;null!==Y&&void 0!==Y&&("string"===typeof Y&&0f.insertionMode&&null===e.headChunks){e.headChunks=[];var zc=xb(e.headChunks,c,"head")}else zc=xb(a,c,"head");return zc;case "html":if(0===f.insertionMode&&null===e.htmlChunks){e.htmlChunks=[""];var Ac=xb(e.htmlChunks,c,"html")}else Ac=xb(a,c,"html");return Ac;default:if(-1!==b.indexOf("-")){a.push(D(b));var vb=null,Bc=null,U;for(U in c)if(r.call(c,U)){var E=c[U];if(null!=E&&"function"!==typeof E&&"object"!==typeof E&&!1!==E)switch(!0===E&&(E=""),"className"===U&&(U= "class"),U){case "children":vb=E;break;case "dangerouslySetInnerHTML":Bc=E;break;case "style":bb(a,E);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ma(U)&&"function"!==typeof E&&"symbol"!==typeof E&&a.push(" ",U,'="',t(E),'"')}}a.push(">");y(a,Bc,vb);return vb}}return xb(a,c,b)}function Bb(a,b){b=b.bootstrapChunks;for(var c=0;c')} @@ -79,7 +79,7 @@ function Xa(a,b){var c=I?I:null;if(c){var d=c.resources;if("string"===typeof a&& break;default:d.explicitOtherPreloads.add(g)}Cc(c)}}} function Ya(a,b){var c=I?I:null;if(c){var d=c.resources;if("string"===typeof a&&a&&"object"===typeof b&&null!==b){var e=b.as;switch(e){case "style":var f="["+e+"]"+a,g=d.stylesMap.get(f);e=b.precedence||"default";if(!g){g=0;var h=d.preloadsMap.get(f);h&&h.state&3&&(g=8);g={type:"stylesheet",chunks:[],state:g,props:{rel:"stylesheet",href:a,"data-precedence":e,crossOrigin:b.crossOrigin,integrity:b.integrity}};d.stylesMap.set(f,g);a=d.precedences.get(e);a||(a=new Set,d.precedences.set(e,a),b={type:"style", chunks:[],state:0,props:{precedence:e,hrefs:[]}},a.add(b),d.stylePrecedences.set(e,b));a.add(g);Cc(c)}break;case "script":f="["+e+"]"+a,e=d.scriptsMap.get(f),e||(e={type:"script",chunks:[],state:0,props:null},d.scriptsMap.set(f,e),a={src:a,async:!0,crossOrigin:b.crossOrigin,integrity:b.integrity,nonce:b.nonce},d.scripts.add(e),wb(e.chunks,a),Cc(c))}}}} -function Vb(a,b,c){b="[script]"+b;var d=a.scriptsMap.get(b);d||(d={type:"script",chunks:c,state:0,props:null},a.scriptsMap.set(b,d),a.scripts.add(d))}function kb(a,b){return{rel:"preload",as:"style",href:a,crossOrigin:b.crossOrigin,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy}}function Dc(a){this.add(a)} +function Vb(a,b,c){b="[script]"+b;var d=a.scriptsMap.get(b);d||(d={type:"script",chunks:c,state:0,props:null},a.scriptsMap.set(b,d),a.scripts.add(d))}function kb(a,b){return{rel:"preload",as:"style",href:a,crossOrigin:b.crossOrigin,fetchPriority:b.fetchPriority,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy}}function Dc(a){this.add(a)} function Ec(a,b,c){b=void 0===b?"":b;var d=null,e=0;void 0!==c&&(e=1,"string"===typeof c?(d={src:c,chunks:[]},wb(d.chunks,{src:c,async:!0,integrity:void 0,nonce:void 0})):(d={src:c.src,chunks:[]},wb(d.chunks,{src:c.src,async:!0,integrity:c.integrity,nonce:void 0})));return{bootstrapChunks:[],placeholderPrefix:b+"P:",segmentPrefix:b+"S:",boundaryPrefix:b+"B:",idPrefix:b,nextSuspenseID:0,streamingFormat:e,startInlineScript:"