react-server-dom-webpack 18.3.0-next-3554c8852-20230320 → 18.3.0-next-8e17bfd14-20230322

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.
@@ -266,9 +266,6 @@ function getIteratorFn(maybeIterable) {
266
266
  return null;
267
267
  }
268
268
 
269
- // It is handled by React separately and shouldn't be written to the DOM.
270
-
271
- var RESERVED = 0; // A simple string attribute.
272
269
  // Attributes that aren't in the filter are presumed to have this type.
273
270
 
274
271
  var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
@@ -303,20 +300,6 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
303
300
  this.sanitizeURL = sanitizeURL;
304
301
  this.removeEmptyString = removeEmptyString;
305
302
  } // When adding attributes to this list, be sure to also add them to
306
-
307
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
308
- // elements (not just inputs). Now that ReactDOMInput assigns to the
309
- // defaultValue property -- do we need this?
310
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
311
-
312
- reservedProps.forEach(function (name) {
313
- // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
314
- new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
315
- name, // attributeName
316
- null, // attributeNamespace
317
- false, // sanitizeURL
318
- false);
319
- }); // A few React string attributes have a different name.
320
303
  // This is a mapping from React prop names to the attribute names.
321
304
 
322
305
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
@@ -10,10 +10,9 @@
10
10
  'use strict';var aa=require("react"),f=null,m=0;function n(a,b){if(0!==b.length)if(512<b.length)0<m&&(a.enqueue(new Uint8Array(f.buffer,0,m)),f=new Uint8Array(512),m=0),a.enqueue(b);else{var d=f.length-m;d<b.length&&(0===d?a.enqueue(f):(f.set(b.subarray(0,d),m),a.enqueue(f),b=b.subarray(d)),f=new Uint8Array(512),m=0);f.set(b,m);m+=b.length}return!0}var p=new TextEncoder;function q(a){return p.encode(a)}function ba(a,b){"function"===typeof a.error?a.error(b):a.close()}var r=JSON.stringify;
11
11
  function ca(a,b,d){a=r(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return p.encode(b)}function t(a,b,d){a=r(d);b=b.toString(16)+":"+a+"\n";return p.encode(b)}
12
12
  var u=Symbol.for("react.client.reference"),da=Symbol.for("react.server.reference"),v=Symbol.for("react.element"),ea=Symbol.for("react.fragment"),fa=Symbol.for("react.provider"),ha=Symbol.for("react.server_context"),ia=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),ka=Symbol.for("react.suspense_list"),la=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),oa=Symbol.for("react.default_value"),pa=Symbol.for("react.memo_cache_sentinel"),qa=Symbol.iterator;
13
- function y(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new y(a,0,!1,a,null,!1,!1)});
14
- [["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new y(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new y(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new y(a,2,!1,a,null,!1,!1)});
15
- "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new y(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new y(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new y(a,4,!1,a,null,!1,!1)});
16
- ["cols","rows","size","span"].forEach(function(a){new y(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
13
+ function y(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new y(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new y(a,2,!1,a.toLowerCase(),null,!1,!1)});
14
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new y(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new y(a,3,!1,a.toLowerCase(),null,!1,!1)});
15
+ ["checked","multiple","muted","selected"].forEach(function(a){new y(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new y(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new y(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new y(a,5,!1,a.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function B(a){return a[1].toUpperCase()}
17
16
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(z,
18
17
  B);new y(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(z,B);new y(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(z,B);new y(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new y(a,1,!1,a.toLowerCase(),null,!1,!1)});
19
18
  new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);new y("formAction",1,!1,"formaction",null,!0,!1);["src","href","action"].forEach(function(a){new y(a,1,!1,a.toLowerCase(),null,!0,!0)});
@@ -269,9 +269,6 @@ function getIteratorFn(maybeIterable) {
269
269
  return null;
270
270
  }
271
271
 
272
- // It is handled by React separately and shouldn't be written to the DOM.
273
-
274
- var RESERVED = 0; // A simple string attribute.
275
272
  // Attributes that aren't in the filter are presumed to have this type.
276
273
 
277
274
  var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
@@ -306,20 +303,6 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
306
303
  this.sanitizeURL = sanitizeURL;
307
304
  this.removeEmptyString = removeEmptyString;
308
305
  } // When adding attributes to this list, be sure to also add them to
309
-
310
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
311
- // elements (not just inputs). Now that ReactDOMInput assigns to the
312
- // defaultValue property -- do we need this?
313
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
314
-
315
- reservedProps.forEach(function (name) {
316
- // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
317
- new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
318
- name, // attributeName
319
- null, // attributeNamespace
320
- false, // sanitizeURL
321
- false);
322
- }); // A few React string attributes have a different name.
323
306
  // This is a mapping from React prop names to the attribute names.
324
307
 
325
308
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
@@ -10,10 +10,9 @@
10
10
  'use strict';var aa=require("react"),f="function"===typeof AsyncLocalStorage,ba=f?new AsyncLocalStorage:null,m=null,n=0;function p(a,b){if(0!==b.length)if(512<b.length)0<n&&(a.enqueue(new Uint8Array(m.buffer,0,n)),m=new Uint8Array(512),n=0),a.enqueue(b);else{var d=m.length-n;d<b.length&&(0===d?a.enqueue(m):(m.set(b.subarray(0,d),n),a.enqueue(m),b=b.subarray(d)),m=new Uint8Array(512),n=0);m.set(b,n);n+=b.length}return!0}var q=new TextEncoder;function r(a){return q.encode(a)}
11
11
  function ca(a,b){"function"===typeof a.error?a.error(b):a.close()}var t=JSON.stringify;function da(a,b,d){a=t(d,a.toJSON);b=b.toString(16)+":"+a+"\n";return q.encode(b)}function u(a,b,d){a=t(d);b=b.toString(16)+":"+a+"\n";return q.encode(b)}
12
12
  var v=Symbol.for("react.client.reference"),ea=Symbol.for("react.server.reference"),x=Symbol.for("react.element"),fa=Symbol.for("react.fragment"),ha=Symbol.for("react.provider"),ia=Symbol.for("react.server_context"),ja=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),la=Symbol.for("react.suspense_list"),ma=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),na=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
13
- function A(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new A(a,0,!1,a,null,!1,!1)});
14
- [["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new A(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new A(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new A(a,2,!1,a,null,!1,!1)});
15
- "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new A(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new A(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new A(a,4,!1,a,null,!1,!1)});
16
- ["cols","rows","size","span"].forEach(function(a){new A(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new A(a,5,!1,a.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function C(a){return a[1].toUpperCase()}
13
+ function A(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new A(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new A(a,2,!1,a.toLowerCase(),null,!1,!1)});
14
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new A(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new A(a,3,!1,a.toLowerCase(),null,!1,!1)});
15
+ ["checked","multiple","muted","selected"].forEach(function(a){new A(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new A(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new A(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new A(a,5,!1,a.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function C(a){return a[1].toUpperCase()}
17
16
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(B,
18
17
  C);new A(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(B,C);new A(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(B,C);new A(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new A(a,1,!1,a.toLowerCase(),null,!1,!1)});
19
18
  new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);new A("formAction",1,!1,"formaction",null,!0,!1);["src","href","action"].forEach(function(a){new A(a,1,!1,a.toLowerCase(),null,!0,!0)});
@@ -335,9 +335,6 @@ function getIteratorFn(maybeIterable) {
335
335
  return null;
336
336
  }
337
337
 
338
- // It is handled by React separately and shouldn't be written to the DOM.
339
-
340
- var RESERVED = 0; // A simple string attribute.
341
338
  // Attributes that aren't in the filter are presumed to have this type.
342
339
 
343
340
  var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
@@ -372,20 +369,6 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
372
369
  this.sanitizeURL = sanitizeURL;
373
370
  this.removeEmptyString = removeEmptyString;
374
371
  } // When adding attributes to this list, be sure to also add them to
375
-
376
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
377
- // elements (not just inputs). Now that ReactDOMInput assigns to the
378
- // defaultValue property -- do we need this?
379
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
380
-
381
- reservedProps.forEach(function (name) {
382
- // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
383
- new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
384
- name, // attributeName
385
- null, // attributeNamespace
386
- false, // sanitizeURL
387
- false);
388
- }); // A few React string attributes have a different name.
389
372
  // This is a mapping from React prop names to the attribute names.
390
373
 
391
374
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
@@ -11,10 +11,9 @@
11
11
  function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var d=f;0<m&&(d=f.subarray(m));d=r.encodeInto(b,d);var c=d.read;m+=d.written;c<b.length&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=r.encodeInto(b.slice(c),f).written);2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,b)):(d=f.length-m,d<b.byteLength&&
12
12
  (0===d?p(a,f):(f.set(b.subarray(0,d),m),m+=d,p(a,f),b=b.subarray(d)),f=new Uint8Array(2048),m=0),f.set(b,m),m+=b.byteLength,2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)));return n}var r=new aa.TextEncoder;function t(a){return r.encode(a)}var u=JSON.stringify;function ea(a,b,d){a=u(d,a.toJSON);return b.toString(16)+":"+a+"\n"}function v(a,b,d){a=u(d);return b.toString(16)+":"+a+"\n"}
13
13
  var w=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),y=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),na=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
14
- function B(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new B(a,0,!1,a,null,!1,!1)});
15
- [["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new B(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new B(a,2,!1,a,null,!1,!1)});
16
- "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new B(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new B(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new B(a,4,!1,a,null,!1,!1)});
17
- ["cols","rows","size","span"].forEach(function(a){new B(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}
14
+ function B(a,b,d,c,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=e;this.mustUseProperty=d;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new B(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),null,!1,!1)});
15
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new B(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new B(a,3,!1,a.toLowerCase(),null,!1,!1)});
16
+ ["checked","multiple","muted","selected"].forEach(function(a){new B(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new B(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new B(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}
18
17
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(C,
19
18
  sa);new B(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(C,sa);new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(C,sa);new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new B(a,1,!1,a.toLowerCase(),null,!1,!1)});
20
19
  new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);new B("formAction",1,!1,"formaction",null,!0,!1);["src","href","action"].forEach(function(a){new B(a,1,!1,a.toLowerCase(),null,!0,!0)});
@@ -335,9 +335,6 @@ function getIteratorFn(maybeIterable) {
335
335
  return null;
336
336
  }
337
337
 
338
- // It is handled by React separately and shouldn't be written to the DOM.
339
-
340
- var RESERVED = 0; // A simple string attribute.
341
338
  // Attributes that aren't in the filter are presumed to have this type.
342
339
 
343
340
  var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
@@ -372,20 +369,6 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut
372
369
  this.sanitizeURL = sanitizeURL;
373
370
  this.removeEmptyString = removeEmptyString;
374
371
  } // When adding attributes to this list, be sure to also add them to
375
-
376
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
377
- // elements (not just inputs). Now that ReactDOMInput assigns to the
378
- // defaultValue property -- do we need this?
379
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
380
-
381
- reservedProps.forEach(function (name) {
382
- // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
383
- new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
384
- name, // attributeName
385
- null, // attributeNamespace
386
- false, // sanitizeURL
387
- false);
388
- }); // A few React string attributes have a different name.
389
372
  // This is a mapping from React prop names to the attribute names.
390
373
 
391
374
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
@@ -11,10 +11,9 @@
11
11
  function q(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,r.encode(b));else{var c=f;0<m&&(c=f.subarray(m));c=r.encodeInto(b,c);var d=c.read;m+=c.written;d<b.length&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=r.encodeInto(b.slice(d),f).written);2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<m&&(p(a,f.subarray(0,m)),f=new Uint8Array(2048),m=0),p(a,b)):(c=f.length-m,c<b.byteLength&&
12
12
  (0===c?p(a,f):(f.set(b.subarray(0,c),m),m+=c,p(a,f),b=b.subarray(c)),f=new Uint8Array(2048),m=0),f.set(b,m),m+=b.byteLength,2048===m&&(p(a,f),f=new Uint8Array(2048),m=0)));return n}var r=new aa.TextEncoder;function t(a){return r.encode(a)}var u=JSON.stringify;function ea(a,b,c){a=u(c,a.toJSON);return b.toString(16)+":"+a+"\n"}function v(a,b,c){a=u(c);return b.toString(16)+":"+a+"\n"}
13
13
  var w=Symbol.for("react.client.reference"),fa=Symbol.for("react.server.reference"),y=Symbol.for("react.element"),ha=Symbol.for("react.fragment"),ia=Symbol.for("react.provider"),ja=Symbol.for("react.server_context"),ka=Symbol.for("react.forward_ref"),la=Symbol.for("react.suspense"),ma=Symbol.for("react.suspense_list"),oa=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),pa=Symbol.for("react.default_value"),qa=Symbol.for("react.memo_cache_sentinel"),ra=Symbol.iterator;
14
- function B(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new B(a,0,!1,a,null,!1,!1)});
15
- [["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new B(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new B(a,2,!1,a,null,!1,!1)});
16
- "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new B(a,3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new B(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new B(a,4,!1,a,null,!1,!1)});
17
- ["cols","rows","size","span"].forEach(function(a){new B(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(a){return a[1].toUpperCase()}
14
+ function B(a,b,c,d,e,g,h){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=g;this.removeEmptyString=h}[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new B(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new B(a,2,!1,a.toLowerCase(),null,!1,!1)});
15
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new B(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new B(a,3,!1,a.toLowerCase(),null,!1,!1)});
16
+ ["checked","multiple","muted","selected"].forEach(function(a){new B(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new B(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new B(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new B(a,5,!1,a.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function D(a){return a[1].toUpperCase()}
18
17
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(C,
19
18
  D);new B(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(C,D);new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(C,D);new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new B(a,1,!1,a.toLowerCase(),null,!1,!1)});
20
19
  new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);new B("formAction",1,!1,"formaction",null,!0,!1);["src","href","action"].forEach(function(a){new B(a,1,!1,a.toLowerCase(),null,!0,!0)});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-server-dom-webpack",
3
3
  "description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
4
- "version": "18.3.0-next-3554c8852-20230320",
4
+ "version": "18.3.0-next-8e17bfd14-20230322",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -78,8 +78,8 @@
78
78
  "node": ">=0.10.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "react": "18.3.0-next-3554c8852-20230320",
82
- "react-dom": "18.3.0-next-3554c8852-20230320",
81
+ "react": "18.3.0-next-8e17bfd14-20230322",
82
+ "react-dom": "18.3.0-next-8e17bfd14-20230322",
83
83
  "webpack": "^5.59.0"
84
84
  },
85
85
  "dependencies": {
@@ -263,9 +263,6 @@
263
263
  return null;
264
264
  }
265
265
 
266
- // It is handled by React separately and shouldn't be written to the DOM.
267
-
268
- var RESERVED = 0; // A simple string attribute.
269
266
  // Attributes that aren't in the filter are presumed to have this type.
270
267
 
271
268
  var STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called
@@ -300,20 +297,6 @@
300
297
  this.sanitizeURL = sanitizeURL;
301
298
  this.removeEmptyString = removeEmptyString;
302
299
  } // When adding attributes to this list, be sure to also add them to
303
-
304
- var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular
305
- // elements (not just inputs). Now that ReactDOMInput assigns to the
306
- // defaultValue property -- do we need this?
307
- 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];
308
-
309
- reservedProps.forEach(function (name) {
310
- // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
311
- new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
312
- name, // attributeName
313
- null, // attributeNamespace
314
- false, // sanitizeURL
315
- false);
316
- }); // A few React string attributes have a different name.
317
300
  // This is a mapping from React prop names to the attribute names.
318
301
 
319
302
  [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
@@ -38,8 +38,8 @@ Promise.resolve(a).then(function(){return oa(h)});else return oa(h);d.then(Qa(c,
38
38
  null,null,a),d.set(b,c));return c}function Qa(a,b,d){if(v){var c=v;c.deps++}else c=v={deps:1,value:null};return function(e){b[d]=e;c.deps--;0===c.deps&&"blocked"===a.status&&(e=a.value,a.status="fulfilled",a.value=c.value,null!==e&&U(e,c.value))}}function Ra(a){return function(b){return Pa(a,b)}}function kb(a,b,d,c){if("$"===c[0])switch(c[1]){case "$":return c.substring(1);case "@":return b=parseInt(c.substring(2),16),W(a,b);case "S":return Symbol.for(c.substring(2));case "F":c=parseInt(c.substring(2),
39
39
  16);c=W(a,c);"resolved_model"===c.status&&V(c);if("fulfilled"!==c.status)throw c.reason;c=c.value;return ib(a,c.id,c.bound,J,b,d);case "u":return;default:c=parseInt(c.substring(1),16);a=W(a,c);switch(a.status){case "resolved_model":V(a)}switch(a.status){case "fulfilled":return a.value;case "pending":case "blocked":return c=J,a.then(Qa(c,b,d),Ra(c)),null;default:throw a.reason;}}return c}function lb(a){var b=new Map,d={_bundlerConfig:a,_chunks:b,_fromJSON:function(c,e){return"string"===typeof e?kb(d,
40
40
  this,c,e):e}};return d}function Sa(a,b,d){var c=a._chunks,e=c.get(b);if(e){if("pending"===e.status&&(a=e.value,b=e.reason,e.status="resolved_model",e.value=d,null!==a))switch(V(e),e.status){case "fulfilled":U(a,e.value);break;case "pending":case "blocked":e.value=a;e.reason=b;break;case "rejected":b&&U(b,e.reason)}}else c.set(b,new T("resolved_model",d,null,a))}var q=null,p=0,E=new TextEncoder,K=JSON.stringify,P=Symbol.for("react.client.reference"),eb=Symbol.for("react.server.reference"),n=Symbol.for("react.element"),
41
- db=Symbol.for("react.fragment"),Ia=Symbol.for("react.provider"),mb=Symbol.for("react.server_context"),Fa=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Wa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Ma=Symbol.for("react.default_value"),nb=Symbol.for("react.memo_cache_sentinel"),Na=Symbol.iterator;"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){new m(a,
42
- 0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new m(a[0],1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new m(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new m(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new m(a,
41
+ db=Symbol.for("react.fragment"),Ia=Symbol.for("react.provider"),mb=Symbol.for("react.server_context"),Fa=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Wa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Ma=Symbol.for("react.default_value"),nb=Symbol.for("react.memo_cache_sentinel"),Na=Symbol.iterator;[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){new m(a[0],1,!1,a[1],
42
+ null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){new m(a,2,!1,a.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){new m(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){new m(a,
43
43
  3,!1,a.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(a){new m(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){new m(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){new m(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){new m(a,5,!1,a.toLowerCase(),null,!1,!1)});var pa=/[\-:]([a-z])/g,qa=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform-origin underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=
44
44
  a.replace(pa,qa);new m(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(pa,qa);new m(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(pa,qa);new m(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!1,!1)});new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",
45
45
  !0,!1);new m("formAction",1,!1,"formaction",null,!0,!1);["src","href","action"].forEach(function(a){new m(a,1,!1,a.toLowerCase(),null,!0,!0)});var ra={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,