react-server-dom-webpack 18.3.0-next-a8875eab7-20230310 → 18.3.0-next-56a3c18e5-20230314
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/cjs/react-server-dom-webpack-client.browser.development.js +582 -1
- package/cjs/react-server-dom-webpack-client.browser.production.min.js +22 -19
- package/cjs/react-server-dom-webpack-client.edge.development.js +4 -1
- package/cjs/react-server-dom-webpack-client.edge.production.min.js +16 -16
- package/cjs/react-server-dom-webpack-client.node.development.js +4 -1
- package/cjs/react-server-dom-webpack-client.node.production.min.js +18 -18
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3 -0
- package/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +15 -15
- package/cjs/react-server-dom-webpack-server.browser.development.js +1146 -617
- package/cjs/react-server-dom-webpack-server.browser.production.min.js +57 -46
- package/cjs/react-server-dom-webpack-server.edge.development.js +1146 -617
- package/cjs/react-server-dom-webpack-server.edge.production.min.js +55 -44
- package/cjs/react-server-dom-webpack-server.node.development.js +1181 -613
- package/cjs/react-server-dom-webpack-server.node.production.min.js +58 -46
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +1145 -617
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.min.js +52 -41
- package/package.json +3 -3
- package/umd/react-server-dom-webpack-client.browser.development.js +582 -1
- package/umd/react-server-dom-webpack-client.browser.production.min.js +17 -14
- package/umd/react-server-dom-webpack-server.browser.development.js +1146 -617
- package/umd/react-server-dom-webpack-server.browser.production.min.js +44 -37
@@ -7,18 +7,21 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
(function(){'use strict';(function(
|
11
|
-
|
12
|
-
break;case "resolved_module":
|
13
|
-
b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(
|
14
|
-
}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(
|
15
|
-
"fulfilled",a.value=d.value,null!==e&&
|
16
|
-
_payload:a,_init:
|
17
|
-
case "pending":case "blocked":return d=
|
18
|
-
|
19
|
-
b.stack="Error: "+b.message;b.digest=c;c=a._chunks;var e=c.get(d);e?
|
20
|
-
c,b)
|
21
|
-
function
|
22
|
-
(
|
23
|
-
|
10
|
+
(function(){'use strict';(function(l,q){"object"===typeof exports&&"undefined"!==typeof module?q(exports,require("react")):"function"===typeof define&&define.amd?define(["exports","react"],q):(l="undefined"!==typeof globalThis?globalThis:l||self,q(l.ReactServerDOMClient={},l.React))})(this,function(l,q){function N(a,b){return a?(a=a[b.id][b.name],b.async?{id:a.id,chunks:a.chunks,name:a.name,async:!0}:a):b}function O(){}function P(a){for(var b=a.chunks,c=[],d=0;d<b.length;d++){var e=b[d],g=v.get(e);if(void 0===
|
11
|
+
g){g=__webpack_chunk_load__(e);c.push(g);var h=v.set.bind(v,e,null);g.then(h,O);v.set(e,g)}else null!==g&&c.push(g)}if(a.async){if(b=B.get(a.id))return"fulfilled"===b.status?null:b;var k=Promise.all(c).then(function(){return __webpack_require__(a.id)});k.then(function(f){k.status="fulfilled";k.value=f},function(f){k.status="rejected";k.reason=f});B.set(a.id,k);return k}return 0<c.length?Promise.all(c):null}function Q(a){if(null===a||"object"!==typeof a)return null;a=F&&a[F]||a["@@iterator"];return"function"===
|
12
|
+
typeof a?a:null}function n(a,b,c,d){this.status=a;this.value=b;this.reason=c;this._response=d}function R(a){switch(a.status){case "resolved_model":t(a);break;case "resolved_module":w(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":throw a;default:throw a.reason;}}function x(a,b){for(var c=0;c<a.length;c++)(0,a[c])(b)}function G(a,b,c){switch(a.status){case "fulfilled":x(b,a.value);break;case "pending":case "blocked":a.value=b;a.reason=c;break;case "rejected":c&&x(c,
|
13
|
+
a.reason)}}function y(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.reason;a.status="rejected";a.reason=b;null!==c&&x(c,b)}}function H(a,b){if("pending"===a.status||"blocked"===a.status){var c=a.value,d=a.reason;a.status="resolved_module";a.value=b;null!==c&&(w(a),G(a,c,d))}}function t(a){var b=z,c=m;z=a;m=null;try{var d=JSON.parse(a.value,a._response._fromJSON);null!==m&&0<m.deps?(m.value=d,a.status="blocked",a.value=null,a.reason=null):(a.status="fulfilled",a.value=d)}catch(e){a.status=
|
14
|
+
"rejected",a.reason=e}finally{z=b,m=c}}function w(a){try{var b=a.value;if(b.async){var c=B.get(b.id);if("fulfilled"===c.status)var d=c.value;else throw c.reason;}else d=__webpack_require__(b.id);var e="*"===b.name?d:""===b.name?d.__esModule?d.default:d:d[b.name];a.status="fulfilled";a.value=e}catch(g){a.status="rejected",a.reason=g}}function A(a,b){a._chunks.forEach(function(c){"pending"===c.status&&y(c,b)})}function p(a,b){var c=a._chunks,d=c.get(b);d||(d=new n("pending",null,null,a),c.set(b,d));
|
15
|
+
return d}function S(a,b,c){if(m){var d=m;d.deps++}else d=m={deps:1,value:null};return function(e){b[c]=e;d.deps--;0===d.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=d.value,null!==e&&x(e,d.value))}}function T(a){return function(b){return y(a,b)}}function U(a,b){var c=a._callServer;a=function(){var d=Array.prototype.slice.call(arguments),e=b.bound;return e?"fulfilled"===e.status?c(b.id,e.value.concat(d)):Promise.resolve(e).then(function(g){return c(b.id,g.concat(d))}):c(b.id,
|
16
|
+
d)};I.set(a,b);return a}function V(a,b,c,d){if("$"===d[0]){if("$"===d)return C;switch(d[1]){case "$":return d.substring(1);case "L":return b=parseInt(d.substring(2),16),a=p(a,b),{$$typeof:W,_payload:a,_init:R};case "@":return b=parseInt(d.substring(2),16),p(a,b);case "S":return Symbol.for(d.substring(2));case "P":return a=d.substring(2),D[a]||(D[a]=q.createServerContext(a,X)),D[a].Provider;case "F":b=parseInt(d.substring(2),16);b=p(a,b);switch(b.status){case "resolved_model":t(b)}switch(b.status){case "fulfilled":return U(a,
|
17
|
+
b.value);default:throw b.reason;}case "u":return;default:d=parseInt(d.substring(1),16);a=p(a,d);switch(a.status){case "resolved_model":t(a);break;case "resolved_module":w(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return d=z,a.then(S(d,b,c),T(d)),null;default:throw a.reason;}}}return d}function Y(){throw Error('Trying to call a function from "use server" but the callServer option was not implemented in your router runtime.');}function Z(a,b,c){var d=a._chunks,
|
18
|
+
e=d.get(b);c=JSON.parse(c,a._fromJSON);var g=N(a._bundlerConfig,c);if(c=P(g)){if(e){var h=e;h.status="blocked"}else h=new n("blocked",null,null,a),d.set(b,h);c.then(function(){return H(h,g)},function(k){return y(h,k)})}else e?H(e,g):d.set(b,new n("resolved_module",g,null,a))}function J(a){A(a,Error("Connection closed."))}function K(a,b){if(""!==b){var c=b.indexOf(":",0),d=parseInt(b.substring(0,c),16);switch(b[c+1]){case "I":Z(a,d,b.substring(c+2));break;case "E":c=JSON.parse(b.substring(c+2)).digest;
|
19
|
+
b=Error("An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.");b.stack="Error: "+b.message;b.digest=c;c=a._chunks;var e=c.get(d);e?y(e,b):c.set(d,new n("rejected",null,b,a));break;default:b=b.substring(c+1),e=a._chunks,(c=e.get(d))?"pending"===c.status&&(a=c.value,d=c.reason,c.status="resolved_model",
|
20
|
+
c.value=b,null!==a&&(t(c),G(c,a,d))):e.set(d,new n("resolved_model",b,null,a))}}}function aa(a){return function(b,c){return"string"===typeof c?V(a,this,b,c):"object"===typeof c&&null!==c?(b=c[0]===C?{$$typeof:C,type:c[1],key:c[2],ref:null,props:c[3],_owner:null}:c,b):c}}function ba(a,b,c){function d(k,f){if(null===f)return null;if("object"===typeof f){if("function"===typeof f.then){null===h&&(h=new FormData);g++;var r=e++;f.then(function(u){u=JSON.stringify(u,d);var L=h;L.append(""+r,u);g--;0===g&&
|
21
|
+
b(L)},function(u){c(u)});return"$@"+r.toString(16)}return!ca(f)&&Q(f)?Array.from(f):f}if("string"===typeof f)return f="$"===f[0]?"$"+f:f,f;if("boolean"===typeof f||"number"===typeof f)return f;if("undefined"===typeof f)return"$undefined";if("function"===typeof f){f=I.get(f);if(void 0!==f)return f=JSON.stringify(f,d),null===h&&(h=new FormData),k=e++,h.set(""+k,f),"$F"+k.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.");
|
22
|
+
}if("symbol"===typeof f){k=f.description;if(Symbol.for(k)!==f)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+(f.description+") cannot be found among global symbols."));return"$S"+k}if("bigint"===typeof f)throw Error("BigInt ("+f+") is not yet supported as an argument to a Server Function.");throw Error("Type "+typeof f+" is not supported as an argument to a Server Function.");}var e=1,g=0,h=null;a=JSON.stringify(a,d);null===
|
23
|
+
h?b(a):(h.set("0",a),0===g&&b(h))}function E(a){a=a&&a.callServer?a.callServer:void 0;var b=new TextDecoder,c=new Map;a={_bundlerConfig:null,_callServer:void 0!==a?a:Y,_chunks:c,_partialRow:"",_stringDecoder:b};a._fromJSON=aa(a);return a}function M(a,b){function c(g){var h=g.value;if(g.done)J(a);else{g=h;h=a._stringDecoder;for(var k=g.indexOf(10);-1<k;){var f=a._partialRow;var r=g.subarray(0,k);r=h.decode(r);K(a,f+r);a._partialRow="";g=g.subarray(k+1);k=g.indexOf(10)}a._partialRow+=h.decode(g,da);
|
24
|
+
return e.read().then(c).catch(d)}}function d(g){A(a,g)}var e=b.getReader();e.read().then(c).catch(d)}var da={stream:!0},v=new Map,B=new Map,I=new WeakMap,C=Symbol.for("react.element"),W=Symbol.for("react.lazy"),X=Symbol.for("react.default_value"),F=Symbol.iterator,D=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;n.prototype=Object.create(Promise.prototype);n.prototype.then=function(a,b){switch(this.status){case "resolved_model":t(this);break;case "resolved_module":w(this)}switch(this.status){case "fulfilled":a(this.value);
|
25
|
+
break;case "pending":case "blocked":a&&(null===this.value&&(this.value=[]),this.value.push(a));b&&(null===this.reason&&(this.reason=[]),this.reason.push(b));break;default:b(this.reason)}};var z=null,m=null,ca=Array.isArray;l.createFromFetch=function(a,b){var c=E(b);a.then(function(d){M(c,d.body)},function(d){A(c,d)});return p(c,0)};l.createFromReadableStream=function(a,b){b=E(b);M(b,a);return p(b,0)};l.createFromXHR=function(a,b){function c(h){h=a.responseText;for(var k=g,f=h.indexOf("\n",k);-1<f;)k=
|
26
|
+
e._partialRow+h.substring(k,f),K(e,k),e._partialRow="",k=f+1,f=h.indexOf("\n",k);e._partialRow+=h.substring(k);g=h.length}function d(h){A(e,new TypeError("Network error"))}var e=E(b),g=0;a.addEventListener("progress",c);a.addEventListener("load",function(h){c();J(e)});a.addEventListener("error",d);a.addEventListener("abort",d);a.addEventListener("timeout",d);return p(e,0)};l.encodeReply=function(a){return new Promise(function(b,c){ba(a,b,c)})}});
|
24
27
|
})();
|