@spscommerce/ds-react 8.8.3 → 8.8.5
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/lib/index.cjs.js +2 -2
- package/lib/index.es.js +6 -6
- package/package.json +14 -14
package/lib/index.cjs.js
CHANGED
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
</>
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
-
`}}}};function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r
|
|
326
|
+
`}}}};function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ka(e,t)}function Np(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ka(e,t)}function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge.apply(null,arguments)}function zr(e){"@babel/helpers - typeof";return zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zr(e)}function Uv(e,t){if(zr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jv(e){var t=Uv(e,"string");return zr(t)=="symbol"?t:t+""}function zv(e,t,n){return(t=jv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cc(Object(n),!0).forEach(function(r){zv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Nc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zo=function(){return Math.random().toString(36).substring(7).split("").join(".")},xc={INIT:"@@redux/INIT"+zo(),REPLACE:"@@redux/REPLACE"+zo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+zo()}};function qv(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Jv(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Qv(e))return"date";if(Xv(e))return"error";var n=Zv(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Zv(e){return typeof e.constructor=="function"?e.constructor.name:null}function Xv(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Qv(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Fn(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Jv(e)),t}function xp(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?bt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?bt(1):"Expected the enhancer to be a function. Instead, received: '"+Fn(n)+"'");return n(xp)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?bt(2):"Expected the root reducer to be a function. Instead, received: '"+Fn(e)+"'");var o=e,a=t,l=[],c=l,p=!1;function f(){c===l&&(c=l.slice())}function m(){if(p)throw new Error(process.env.NODE_ENV==="production"?bt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function u(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?bt(4):"Expected the listener to be a function. Instead, received: '"+Fn(w)+"'");if(p)throw new Error(process.env.NODE_ENV==="production"?bt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var T=!0;return f(),c.push(w),function(){if(T){if(p)throw new Error(process.env.NODE_ENV==="production"?bt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");T=!1,f();var N=c.indexOf(w);c.splice(N,1),l=null}}}function h(w){if(!qv(w))throw new Error(process.env.NODE_ENV==="production"?bt(7):"Actions must be plain objects. Instead, the actual type was: '"+Fn(w)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof w.type>"u")throw new Error(process.env.NODE_ENV==="production"?bt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(p)throw new Error(process.env.NODE_ENV==="production"?bt(9):"Reducers may not dispatch actions.");try{p=!0,a=o(a,w)}finally{p=!1}for(var T=l=c,E=0;E<T.length;E++){var N=T[E];N()}return w}function g(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?bt(10):"Expected the nextReducer to be a function. Instead, received: '"+Fn(w));o=w,h({type:xc.REPLACE})}function v(){var w,T=u;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(process.env.NODE_ENV==="production"?bt(11):"Expected the observer to be an object. Instead, received: '"+Fn(N)+"'");function I(){N.next&&N.next(m())}I();var k=T(I);return{unsubscribe:k}}},w[Nc]=function(){return this},w}return h({type:xc.INIT}),r={dispatch:h,subscribe:u,getState:m,replaceReducer:g},r[Nc]=v,r}function kc(e,t){return function(){return t(e.apply(this,arguments))}}function Ic(e,t){if(typeof e=="function")return kc(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?bt(16):"bindActionCreators expected an object or a function, but instead received: '"+Fn(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var n={};for(var r in e){var o=e[r];typeof o=="function"&&(n[r]=kc(o,t))}return n}function kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function ey(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?bt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},l={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(p){return p(l)});return a=kp.apply(void 0,c)(o.dispatch),Dc(Dc({},o),{},{dispatch:a})}}}var Ia={exports:{}},Ma={exports:{}},Oe={};/** @license React v16.13.1
|
|
327
327
|
* react-is.production.min.js
|
|
328
328
|
*
|
|
329
329
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -342,7 +342,7 @@ object-assign
|
|
|
342
342
|
(c) Sindre Sorhus
|
|
343
343
|
@license MIT
|
|
344
344
|
*/var qo,Rc;function ry(){if(Rc)return qo;Rc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var p=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(p.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qo=o()?Object.assign:function(a,l){for(var c,p=r(a),f,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var u in c)t.call(c,u)&&(p[u]=c[u]);if(e){f=e(c);for(var h=0;h<f.length;h++)n.call(c,f[h])&&(p[f[h]]=c[f[h]])}}return p},qo}var Jo,Oc;function Qa(){if(Oc)return Jo;Oc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jo=e,Jo}var Zo,Lc;function Ip(){return Lc||(Lc=1,Zo=Function.call.bind(Object.prototype.hasOwnProperty)),Zo}var Xo,Pc;function sy(){if(Pc)return Xo;Pc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qa(),n={},r=Ip();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,p,f){if(process.env.NODE_ENV!=="production"){for(var m in a)if(r(a,m)){var u;try{if(typeof a[m]!="function"){var h=Error((p||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}u=a[m](l,m,p,c,null,t)}catch(v){u=v}if(u&&!(u instanceof Error)&&e((p||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var g=f?f():"";e("Failed "+c+" type: "+u.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Xo=o,Xo}var Qo,Bc;function oy(){if(Bc)return Qo;Bc=1;var e=Xa,t=ry(),n=Qa(),r=Ip(),o=sy(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var p="Warning: "+c;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function l(){return null}return Qo=function(c,p){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function u(L){var j=L&&(f&&L[f]||L[m]);if(typeof j=="function")return j}var h="<<anonymous>>",g={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:N(),arrayOf:I,element:k(),elementType:x(),instanceOf:F,node:O(),objectOf:C,oneOf:A,oneOfType:R,shape:U,exact:_};function v(L,j){return L===j?L!==0||1/L===1/j:L!==L&&j!==j}function w(L,j){this.message=L,this.data=j&&typeof j=="object"?j:{},this.stack=""}w.prototype=Error.prototype;function T(L){if(process.env.NODE_ENV!=="production")var j={},ie=0;function Q(V,X,J,re,te,me,oe){if(re=re||h,me=me||J,oe!==n){if(p){var se=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ne=re+":"+J;!j[Ne]&&ie<3&&(a("You are manually calling a React.PropTypes validation function for the `"+me+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[Ne]=!0,ie++)}}return X[J]==null?V?X[J]===null?new w("The "+te+" `"+me+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new w("The "+te+" `"+me+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:L(X,J,re,te,me)}var ee=Q.bind(null,!1);return ee.isRequired=Q.bind(null,!0),ee}function E(L){function j(ie,Q,ee,V,X,J){var re=ie[Q],te=z(re);if(te!==L){var me=P(re);return new w("Invalid "+V+" `"+X+"` of type "+("`"+me+"` supplied to `"+ee+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return T(j)}function N(){return T(l)}function I(L){function j(ie,Q,ee,V,X){if(typeof L!="function")return new w("Property `"+X+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var J=ie[Q];if(!Array.isArray(J)){var re=z(J);return new w("Invalid "+V+" `"+X+"` of type "+("`"+re+"` supplied to `"+ee+"`, expected an array."))}for(var te=0;te<J.length;te++){var me=L(J,te,ee,V,X+"["+te+"]",n);if(me instanceof Error)return me}return null}return T(j)}function k(){function L(j,ie,Q,ee,V){var X=j[ie];if(!c(X)){var J=z(X);return new w("Invalid "+ee+" `"+V+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return T(L)}function x(){function L(j,ie,Q,ee,V){var X=j[ie];if(!e.isValidElementType(X)){var J=z(X);return new w("Invalid "+ee+" `"+V+"` of type "+("`"+J+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return T(L)}function F(L){function j(ie,Q,ee,V,X){if(!(ie[Q]instanceof L)){var J=L.name||h,re=le(ie[Q]);return new w("Invalid "+V+" `"+X+"` of type "+("`"+re+"` supplied to `"+ee+"`, expected ")+("instance of `"+J+"`."))}return null}return T(j)}function A(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function j(ie,Q,ee,V,X){for(var J=ie[Q],re=0;re<L.length;re++)if(v(J,L[re]))return null;var te=JSON.stringify(L,function(oe,se){var Ne=P(se);return Ne==="symbol"?String(se):se});return new w("Invalid "+V+" `"+X+"` of value `"+String(J)+"` "+("supplied to `"+ee+"`, expected one of "+te+"."))}return T(j)}function C(L){function j(ie,Q,ee,V,X){if(typeof L!="function")return new w("Property `"+X+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var J=ie[Q],re=z(J);if(re!=="object")return new w("Invalid "+V+" `"+X+"` of type "+("`"+re+"` supplied to `"+ee+"`, expected an object."));for(var te in J)if(r(J,te)){var me=L(J,te,ee,V,X+"."+te,n);if(me instanceof Error)return me}return null}return T(j)}function R(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var j=0;j<L.length;j++){var ie=L[j];if(typeof ie!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(ie)+" at index "+j+"."),l}function Q(ee,V,X,J,re){for(var te=[],me=0;me<L.length;me++){var oe=L[me],se=oe(ee,V,X,J,re,n);if(se==null)return null;se.data&&r(se.data,"expectedType")&&te.push(se.data.expectedType)}var Ne=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new w("Invalid "+J+" `"+re+"` supplied to "+("`"+X+"`"+Ne+"."))}return T(Q)}function O(){function L(j,ie,Q,ee,V){return Y(j[ie])?null:new w("Invalid "+ee+" `"+V+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return T(L)}function K(L,j,ie,Q,ee){return new w((L||"React class")+": "+j+" type `"+ie+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function U(L){function j(ie,Q,ee,V,X){var J=ie[Q],re=z(J);if(re!=="object")return new w("Invalid "+V+" `"+X+"` of type `"+re+"` "+("supplied to `"+ee+"`, expected `object`."));for(var te in L){var me=L[te];if(typeof me!="function")return K(ee,V,X,te,P(me));var oe=me(J,te,ee,V,X+"."+te,n);if(oe)return oe}return null}return T(j)}function _(L){function j(ie,Q,ee,V,X){var J=ie[Q],re=z(J);if(re!=="object")return new w("Invalid "+V+" `"+X+"` of type `"+re+"` "+("supplied to `"+ee+"`, expected `object`."));var te=t({},ie[Q],L);for(var me in te){var oe=L[me];if(r(L,me)&&typeof oe!="function")return K(ee,V,X,me,P(oe));if(!oe)return new w("Invalid "+V+" `"+X+"` key `"+me+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(ie[Q],null," ")+`
|
|
345
|
-
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var se=oe(J,me,ee,V,X+"."+me,n);if(se)return se}return null}return T(j)}function Y(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(Y);if(L===null||c(L))return!0;var j=u(L);if(j){var ie=j.call(L),Q;if(j!==L.entries){for(;!(Q=ie.next()).done;)if(!Y(Q.value))return!1}else for(;!(Q=ie.next()).done;){var ee=Q.value;if(ee&&!Y(ee[1]))return!1}}else return!1;return!0;default:return!1}}function G(L,j){return L==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function z(L){var j=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":G(j,L)?"symbol":j}function P(L){if(typeof L>"u"||L===null)return""+L;var j=z(L);if(j==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return j}function ne(L){var j=P(L);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function le(L){return!L.constructor||!L.constructor.name?h:L.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Qo}var ea,Ac;function ay(){if(Ac)return ea;Ac=1;var e=Qa();function t(){}function n(){}return n.resetWarningCache=t,ea=function(){function r(l,c,p,f,m,u){if(u!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},ea}if(process.env.NODE_ENV!=="production"){var iy=Xa,ly=!0;Ia.exports=oy()(iy.isElement,ly)}else Ia.exports=ay()();var cy=Ia.exports;const lr=za(cy);var ei=M.createContext(null);process.env.NODE_ENV!=="production"&&(ei.displayName="ReactRedux");function dy(e){e()}var Mp=dy,py=function(t){return Mp=t},uy=function(){return Mp};function my(){var e=uy(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var o=t;o;)o.callback(),o=o.next})},get:function(){for(var o=[],a=t;a;)o.push(a),a=a.next;return o},subscribe:function(o){var a=!0,l=n={callback:o,next:null,prev:n};return l.prev?l.prev.next=l:t=l,function(){!a||t===null||(a=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:t=l.next)}}}}var Fc={notify:function(){},get:function(){return[]}};function _p(e,t){var n,r=Fc;function o(u){return p(),r.subscribe(u)}function a(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return!!n}function p(){n||(n=t?t.addNestedSub(l):e.subscribe(l),r=my())}function f(){n&&(n(),n=void 0,r.clear(),r=Fc)}var m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:f,getListeners:function(){return r}};return m}var Rp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect;function Op(e){var t=e.store,n=e.context,r=e.children,o=M.useMemo(function(){var c=_p(t);return{store:t,subscription:c}},[t]),a=M.useMemo(function(){return t.getState()},[t]);Rp(function(){var c=o.subscription;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==t.getState()&&c.notifyNestedSubs(),function(){c.tryUnsubscribe(),c.onStateChange=null}},[o,a]);var l=n||ei;return M.createElement(l.Provider,{value:o},r)}process.env.NODE_ENV!=="production"&&(Op.propTypes={store:lr.shape({subscribe:lr.func.isRequired,dispatch:lr.func.isRequired,getState:lr.func.isRequired}),context:lr.object,children:lr.any});function Ws(e,t){if(e==null)return{};var n={};for(var r in e)if(
|
|
345
|
+
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var se=oe(J,me,ee,V,X+"."+me,n);if(se)return se}return null}return T(j)}function Y(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(Y);if(L===null||c(L))return!0;var j=u(L);if(j){var ie=j.call(L),Q;if(j!==L.entries){for(;!(Q=ie.next()).done;)if(!Y(Q.value))return!1}else for(;!(Q=ie.next()).done;){var ee=Q.value;if(ee&&!Y(ee[1]))return!1}}else return!1;return!0;default:return!1}}function G(L,j){return L==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function z(L){var j=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":G(j,L)?"symbol":j}function P(L){if(typeof L>"u"||L===null)return""+L;var j=z(L);if(j==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return j}function ne(L){var j=P(L);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function le(L){return!L.constructor||!L.constructor.name?h:L.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Qo}var ea,Ac;function ay(){if(Ac)return ea;Ac=1;var e=Qa();function t(){}function n(){}return n.resetWarningCache=t,ea=function(){function r(l,c,p,f,m,u){if(u!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},ea}if(process.env.NODE_ENV!=="production"){var iy=Xa,ly=!0;Ia.exports=oy()(iy.isElement,ly)}else Ia.exports=ay()();var cy=Ia.exports;const lr=za(cy);var ei=M.createContext(null);process.env.NODE_ENV!=="production"&&(ei.displayName="ReactRedux");function dy(e){e()}var Mp=dy,py=function(t){return Mp=t},uy=function(){return Mp};function my(){var e=uy(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e(function(){for(var o=t;o;)o.callback(),o=o.next})},get:function(){for(var o=[],a=t;a;)o.push(a),a=a.next;return o},subscribe:function(o){var a=!0,l=n={callback:o,next:null,prev:n};return l.prev?l.prev.next=l:t=l,function(){!a||t===null||(a=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:t=l.next)}}}}var Fc={notify:function(){},get:function(){return[]}};function _p(e,t){var n,r=Fc;function o(u){return p(),r.subscribe(u)}function a(){r.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return!!n}function p(){n||(n=t?t.addNestedSub(l):e.subscribe(l),r=my())}function f(){n&&(n(),n=void 0,r.clear(),r=Fc)}var m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:f,getListeners:function(){return r}};return m}var Rp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect;function Op(e){var t=e.store,n=e.context,r=e.children,o=M.useMemo(function(){var c=_p(t);return{store:t,subscription:c}},[t]),a=M.useMemo(function(){return t.getState()},[t]);Rp(function(){var c=o.subscription;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==t.getState()&&c.notifyNestedSubs(),function(){c.tryUnsubscribe(),c.onStateChange=null}},[o,a]);var l=n||ei;return M.createElement(l.Provider,{value:o},r)}process.env.NODE_ENV!=="production"&&(Op.propTypes={store:lr.shape({subscribe:lr.func.isRequired,dispatch:lr.func.isRequired,getState:lr.func.isRequired}),context:lr.object,children:lr.any});function Ws(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ti=Xa,fy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},hy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Sy={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ni={};ni[ti.ForwardRef]=Sy;ni[ti.Memo]=Lp;function Vc(e){return ti.isMemo(e)?Lp:ni[e.$$typeof]||fy}var gy=Object.defineProperty,by=Object.getOwnPropertyNames,$c=Object.getOwnPropertySymbols,vy=Object.getOwnPropertyDescriptor,yy=Object.getPrototypeOf,Kc=Object.prototype;function Pp(e,t,n){if(typeof t!="string"){if(Kc){var r=yy(t);r&&r!==Kc&&Pp(e,r,n)}var o=by(t);$c&&(o=o.concat($c(t)));for(var a=Vc(e),l=Vc(t),c=0;c<o.length;++c){var p=o[c];if(!hy[p]&&!(n&&n[p])&&!(l&&l[p])&&!(a&&a[p])){var f=vy(t,p);try{gy(e,p,f)}catch{}}}}return e}var Ty=Pp;const Hc=za(Ty);var _a={exports:{}},Be={};/** @license React v17.0.2
|
|
346
346
|
* react-is.production.min.js
|
|
347
347
|
*
|
|
348
348
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
package/lib/index.es.js
CHANGED
|
@@ -2516,8 +2516,8 @@ const hv = {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
};
|
|
2518
2518
|
function _o(e, t) {
|
|
2519
|
-
return _o = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
2520
|
-
return
|
|
2519
|
+
return _o = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
|
|
2520
|
+
return n.__proto__ = r, n;
|
|
2521
2521
|
}, _o(e, t);
|
|
2522
2522
|
}
|
|
2523
2523
|
function jd(e, t) {
|
|
@@ -2528,10 +2528,10 @@ function ge() {
|
|
|
2528
2528
|
for (var t = 1; t < arguments.length; t++) {
|
|
2529
2529
|
var n = arguments[t];
|
|
2530
2530
|
for (var r in n)
|
|
2531
|
-
|
|
2531
|
+
({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2532
2532
|
}
|
|
2533
2533
|
return e;
|
|
2534
|
-
}, ge.apply(
|
|
2534
|
+
}, ge.apply(null, arguments);
|
|
2535
2535
|
}
|
|
2536
2536
|
function es(e) {
|
|
2537
2537
|
"@babel/helpers - typeof";
|
|
@@ -2558,7 +2558,7 @@ function gv(e) {
|
|
|
2558
2558
|
return es(t) == "symbol" ? t : t + "";
|
|
2559
2559
|
}
|
|
2560
2560
|
function bv(e, t, n) {
|
|
2561
|
-
return t = gv(t)
|
|
2561
|
+
return (t = gv(t)) in e ? Object.defineProperty(e, t, {
|
|
2562
2562
|
value: n,
|
|
2563
2563
|
enumerable: !0,
|
|
2564
2564
|
configurable: !0,
|
|
@@ -3575,7 +3575,7 @@ function Qs(e, t) {
|
|
|
3575
3575
|
return {};
|
|
3576
3576
|
var n = {};
|
|
3577
3577
|
for (var r in e)
|
|
3578
|
-
if (
|
|
3578
|
+
if ({}.hasOwnProperty.call(e, r)) {
|
|
3579
3579
|
if (t.indexOf(r) >= 0)
|
|
3580
3580
|
continue;
|
|
3581
3581
|
n[r] = e[r];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-react",
|
|
3
3
|
"description": "SPS Design System React components",
|
|
4
|
-
"version": "8.8.
|
|
4
|
+
"version": "8.8.5",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-react",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@react-stately/collections": "^3.6.0",
|
|
44
|
-
"@spscommerce/utils": "^
|
|
44
|
+
"@spscommerce/utils": "^7.0.0",
|
|
45
45
|
"moment": "^2.25.3",
|
|
46
46
|
"moment-timezone": "^0.5.28",
|
|
47
47
|
"react": "^16.9.0",
|
|
48
48
|
"react-dom": "^16.9.0",
|
|
49
|
-
"@sps-woodland/illustrations": "8.8.
|
|
50
|
-
"@sps-woodland/tabs": "8.8.
|
|
51
|
-
"@spscommerce/ds-colors": "8.8.
|
|
52
|
-
"@spscommerce/
|
|
53
|
-
"@spscommerce/
|
|
49
|
+
"@sps-woodland/illustrations": "8.8.5",
|
|
50
|
+
"@sps-woodland/tabs": "8.8.5",
|
|
51
|
+
"@spscommerce/ds-colors": "8.8.5",
|
|
52
|
+
"@spscommerce/ds-shared": "8.8.5",
|
|
53
|
+
"@spscommerce/positioning": "8.8.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@react-spectrum/provider": "^3.4.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@react-types/select": "^3.6.1",
|
|
60
60
|
"@react-types/shared": "^3.8.0",
|
|
61
61
|
"@react-types/tabs": "^3.0.1",
|
|
62
|
-
"@spscommerce/utils": "^
|
|
62
|
+
"@spscommerce/utils": "^7.0.0",
|
|
63
63
|
"@testing-library/dom": "^8.17.1",
|
|
64
64
|
"@testing-library/react": "^10.0.0",
|
|
65
65
|
"@testing-library/react-hooks": "^8.0.1",
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"raf-stub": "^2.0.2",
|
|
73
73
|
"react": "^16.9.0",
|
|
74
74
|
"react-dom": "^16.9.0",
|
|
75
|
-
"@sps-woodland/illustrations": "8.8.
|
|
76
|
-
"@sps-woodland/tabs": "8.8.
|
|
77
|
-
"@spscommerce/ds-colors": "8.8.
|
|
78
|
-
"@spscommerce/ds-shared": "8.8.
|
|
79
|
-
"@spscommerce/positioning": "8.8.
|
|
80
|
-
"test": "8.8.
|
|
75
|
+
"@sps-woodland/illustrations": "8.8.5",
|
|
76
|
+
"@sps-woodland/tabs": "8.8.5",
|
|
77
|
+
"@spscommerce/ds-colors": "8.8.5",
|
|
78
|
+
"@spscommerce/ds-shared": "8.8.5",
|
|
79
|
+
"@spscommerce/positioning": "8.8.5",
|
|
80
|
+
"test": "8.8.5"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "pnpm run build:js && pnpm run build:types",
|