mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add referrerPolicy option to ReactDOM.preload() (#27096)
DiffTrain build for [9377e10105](https://github.com/facebook/react/commit/9377e10105b41976c77c7f664f2363cb8c41ac8a)
This commit is contained in:
@@ -1 +1 @@
|
||||
0a360642dcc08cab469da0a0e4f1050e56b0ef7e
|
||||
9377e10105b41976c77c7f664f2363cb8c41ac8a
|
||||
|
||||
@@ -27,7 +27,7 @@ if (
|
||||
}
|
||||
"use strict";
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-4c77dfb7";
|
||||
var ReactVersion = "18.3.0-www-modern-72e01e9a";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
|
||||
return self;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-8b06a228";
|
||||
var ReactVersion = "18.3.0-www-modern-943f2df7";
|
||||
|
||||
var LegacyRoot = 0;
|
||||
var ConcurrentRoot = 1;
|
||||
|
||||
@@ -9773,7 +9773,7 @@ var slice = Array.prototype.slice,
|
||||
return null;
|
||||
},
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-3093a806",
|
||||
version: "18.3.0-www-modern-968fdb5d",
|
||||
rendererPackageName: "react-art"
|
||||
};
|
||||
var internals$jscomp$inline_1286 = {
|
||||
@@ -9804,7 +9804,7 @@ var internals$jscomp$inline_1286 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-3093a806"
|
||||
reconcilerVersion: "18.3.0-www-modern-968fdb5d"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1287 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
|
||||
@@ -33959,7 +33959,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-0088504d";
|
||||
var ReactVersion = "18.3.0-www-classic-f72bc956";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -43613,7 +43613,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -33804,7 +33804,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-8b06a228";
|
||||
var ReactVersion = "18.3.0-www-modern-943f2df7";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -44123,7 +44123,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -15245,7 +15245,8 @@ function preload$1(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}),
|
||||
preloadPropsMap.set(imageSrcSet, href),
|
||||
null !== ownerDocument.querySelector(preloadSelector) ||
|
||||
@@ -16587,7 +16588,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1803 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-70e759d7",
|
||||
version: "18.3.0-www-classic-916922f2",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2162 = {
|
||||
@@ -16617,7 +16618,7 @@ var internals$jscomp$inline_2162 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-70e759d7"
|
||||
reconcilerVersion: "18.3.0-www-classic-916922f2"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2163 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16845,4 +16846,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
|
||||
);
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-www-classic-70e759d7";
|
||||
exports.version = "18.3.0-www-classic-916922f2";
|
||||
|
||||
@@ -15476,7 +15476,8 @@ function preload$1(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}),
|
||||
preloadPropsMap.set(imageSrcSet, href),
|
||||
null !== ownerDocument.querySelector(preloadSelector) ||
|
||||
@@ -16117,7 +16118,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1762 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-3093a806",
|
||||
version: "18.3.0-www-modern-968fdb5d",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2126 = {
|
||||
@@ -16148,7 +16149,7 @@ var internals$jscomp$inline_2126 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-3093a806"
|
||||
reconcilerVersion: "18.3.0-www-modern-968fdb5d"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2127 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16304,4 +16305,4 @@ exports.unstable_createEventHandle = function (type, options) {
|
||||
return eventHandle;
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-www-modern-3093a806";
|
||||
exports.version = "18.3.0-www-modern-968fdb5d";
|
||||
|
||||
@@ -16019,7 +16019,8 @@ function preload$1(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}),
|
||||
preloadPropsMap.set(imageSrcSet, href),
|
||||
null !== ownerDocument.querySelector(preloadSelector) ||
|
||||
@@ -17361,7 +17362,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1888 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-6909cf24",
|
||||
version: "18.3.0-www-classic-ebef7616",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -17405,7 +17406,7 @@ var devToolsConfig$jscomp$inline_1888 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-6909cf24"
|
||||
reconcilerVersion: "18.3.0-www-classic-ebef7616"
|
||||
});
|
||||
assign(Internals, {
|
||||
ReactBrowserEventEmitter: {
|
||||
@@ -17620,7 +17621,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
|
||||
);
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-www-classic-6909cf24";
|
||||
exports.version = "18.3.0-www-classic-ebef7616";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -16244,7 +16244,8 @@ function preload$1(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}),
|
||||
preloadPropsMap.set(imageSrcSet, href),
|
||||
null !== ownerDocument.querySelector(preloadSelector) ||
|
||||
@@ -16885,7 +16886,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1847 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-f864898a",
|
||||
version: "18.3.0-www-modern-d2fbfe61",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -16930,7 +16931,7 @@ var devToolsConfig$jscomp$inline_1847 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-f864898a"
|
||||
reconcilerVersion: "18.3.0-www-modern-d2fbfe61"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
|
||||
exports.createPortal = function (children, container) {
|
||||
@@ -17073,7 +17074,7 @@ exports.unstable_createEventHandle = function (type, options) {
|
||||
return eventHandle;
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-www-modern-f864898a";
|
||||
exports.version = "18.3.0-www-modern-d2fbfe61";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -19,7 +19,7 @@ if (__DEV__) {
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-59ab606e";
|
||||
var ReactVersion = "18.3.0-www-classic-ee8ed08d";
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
@@ -7564,7 +7564,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ if (__DEV__) {
|
||||
var React = require("react");
|
||||
var ReactDOM = require("react-dom");
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-dbe91128";
|
||||
var ReactVersion = "18.3.0-www-modern-4ffe83e1";
|
||||
|
||||
// This refers to a WWW module.
|
||||
var warningWWW = require("warning");
|
||||
@@ -7564,7 +7564,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1869,7 +1869,8 @@ function preload(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}
|
||||
}),
|
||||
resources.preloadsMap.set(key, imageSizes),
|
||||
@@ -4011,4 +4012,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-c58293ed";
|
||||
exports.version = "18.3.0-www-classic-4b8ece22";
|
||||
|
||||
@@ -1868,7 +1868,8 @@ function preload(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}
|
||||
}),
|
||||
resources.preloadsMap.set(key, imageSizes),
|
||||
@@ -3909,4 +3910,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-c35c81e5";
|
||||
exports.version = "18.3.0-www-modern-d39c47bb";
|
||||
|
||||
@@ -7571,7 +7571,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1918,7 +1918,8 @@ function preload(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}
|
||||
}),
|
||||
resources.preloadsMap.set(key, imageSizes),
|
||||
|
||||
@@ -34576,7 +34576,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-b2b9e4a6";
|
||||
var ReactVersion = "18.3.0-www-classic-a531a795";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -44362,7 +44362,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -34421,7 +34421,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-20a09ab9";
|
||||
var ReactVersion = "18.3.0-www-modern-65b5d253";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -44872,7 +44872,8 @@ function preloadPropsFromPreloadOptions(href, as, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -15574,7 +15574,8 @@ function preload$1(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}),
|
||||
preloadPropsMap.set(imageSrcSet, href),
|
||||
null !== ownerDocument.querySelector(preloadSelector) ||
|
||||
@@ -16916,7 +16917,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1832 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-050fa36f",
|
||||
version: "18.3.0-www-classic-e6783962",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2196 = {
|
||||
@@ -16946,7 +16947,7 @@ var internals$jscomp$inline_2196 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-050fa36f"
|
||||
reconcilerVersion: "18.3.0-www-classic-e6783962"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2197 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17325,4 +17326,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
|
||||
);
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-www-classic-050fa36f";
|
||||
exports.version = "18.3.0-www-classic-e6783962";
|
||||
|
||||
@@ -15860,7 +15860,8 @@ function preload$1(href, options) {
|
||||
nonce: options.nonce,
|
||||
fetchPriority: options.fetchPriority,
|
||||
imageSrcSet: options.imageSrcSet,
|
||||
imageSizes: options.imageSizes
|
||||
imageSizes: options.imageSizes,
|
||||
referrerPolicy: options.referrerPolicy
|
||||
}),
|
||||
preloadPropsMap.set(imageSrcSet, href),
|
||||
null !== ownerDocument.querySelector(preloadSelector) ||
|
||||
@@ -16501,7 +16502,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1791 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-4c77dfb7",
|
||||
version: "18.3.0-www-modern-72e01e9a",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2160 = {
|
||||
@@ -16532,7 +16533,7 @@ var internals$jscomp$inline_2160 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-4c77dfb7"
|
||||
reconcilerVersion: "18.3.0-www-modern-72e01e9a"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16839,4 +16840,4 @@ exports.unstable_createEventHandle = function (type, options) {
|
||||
return eventHandle;
|
||||
};
|
||||
exports.unstable_runWithPriority = runWithPriority;
|
||||
exports.version = "18.3.0-www-modern-4c77dfb7";
|
||||
exports.version = "18.3.0-www-modern-72e01e9a";
|
||||
|
||||
@@ -24344,7 +24344,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-b2b9e4a6";
|
||||
var ReactVersion = "18.3.0-www-classic-a531a795";
|
||||
|
||||
// Might add PROFILE later.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user