@seamly/web-ui 22.3.0-beta.2 → 22.3.0-beta.3
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/build/dist/lib/components.js +162 -161
- package/build/dist/lib/components.js.map +1 -1
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/components.min.js.map +1 -1
- package/build/dist/lib/hooks.js +162 -161
- package/build/dist/lib/hooks.js.map +1 -1
- package/build/dist/lib/hooks.min.js +1 -1
- package/build/dist/lib/hooks.min.js.map +1 -1
- package/build/dist/lib/index.debug.js +158 -86
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +348 -190
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/standalone.js +764 -201
- package/build/dist/lib/standalone.js.map +1 -1
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.map +1 -1
- package/build/dist/lib/storage.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +202 -188
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/styles-default-implementation.css +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/build/dist/lib/utils.js +202 -188
- package/build/dist/lib/utils.js.map +1 -1
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.map +1 -1
- package/package.json +1 -1
- package/src/javascripts/api/conversation-connector.ts +6 -9
- package/src/javascripts/ui/components/core/seamly-event-subscriber.ts +20 -15
|
@@ -8271,32 +8271,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8271
8271
|
/* harmony export */ Component: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),
|
|
8272
8272
|
/* harmony export */ Fragment: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
|
|
8273
8273
|
/* harmony export */ PureComponent: () => (/* binding */ w),
|
|
8274
|
-
/* harmony export */ StrictMode: () => (/* binding */
|
|
8275
|
-
/* harmony export */ Suspense: () => (/* binding */
|
|
8274
|
+
/* harmony export */ StrictMode: () => (/* binding */ yn),
|
|
8275
|
+
/* harmony export */ Suspense: () => (/* binding */ U),
|
|
8276
8276
|
/* harmony export */ SuspenseList: () => (/* binding */ V),
|
|
8277
8277
|
/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ ln),
|
|
8278
|
-
/* harmony export */ cloneElement: () => (/* binding */
|
|
8278
|
+
/* harmony export */ cloneElement: () => (/* binding */ hn),
|
|
8279
8279
|
/* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
|
|
8280
8280
|
/* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
|
|
8281
8281
|
/* harmony export */ createFactory: () => (/* binding */ fn),
|
|
8282
8282
|
/* harmony export */ createPortal: () => (/* binding */ z),
|
|
8283
8283
|
/* harmony export */ createRef: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createRef),
|
|
8284
|
-
/* harmony export */ "default": () => (/* binding */
|
|
8285
|
-
/* harmony export */ findDOMNode: () => (/* binding */
|
|
8286
|
-
/* harmony export */ flushSync: () => (/* binding */
|
|
8284
|
+
/* harmony export */ "default": () => (/* binding */ wn),
|
|
8285
|
+
/* harmony export */ findDOMNode: () => (/* binding */ dn),
|
|
8286
|
+
/* harmony export */ flushSync: () => (/* binding */ mn),
|
|
8287
8287
|
/* harmony export */ forwardRef: () => (/* binding */ k),
|
|
8288
8288
|
/* harmony export */ hydrate: () => (/* binding */ J),
|
|
8289
|
+
/* harmony export */ isElement: () => (/* binding */ Cn),
|
|
8290
|
+
/* harmony export */ isFragment: () => (/* binding */ sn),
|
|
8289
8291
|
/* harmony export */ isValidElement: () => (/* binding */ an),
|
|
8290
8292
|
/* harmony export */ lazy: () => (/* binding */ M),
|
|
8291
8293
|
/* harmony export */ memo: () => (/* binding */ x),
|
|
8292
8294
|
/* harmony export */ render: () => (/* binding */ G),
|
|
8293
|
-
/* harmony export */ startTransition: () => (/* binding */
|
|
8294
|
-
/* harmony export */ unmountComponentAtNode: () => (/* binding */
|
|
8295
|
-
/* harmony export */ unstable_batchedUpdates: () => (/* binding */
|
|
8296
|
-
/* harmony export */ useDeferredValue: () => (/* binding */
|
|
8297
|
-
/* harmony export */ useInsertionEffect: () => (/* binding */
|
|
8298
|
-
/* harmony export */ useSyncExternalStore: () => (/* binding */
|
|
8299
|
-
/* harmony export */ useTransition: () => (/* binding */
|
|
8295
|
+
/* harmony export */ startTransition: () => (/* binding */ _n),
|
|
8296
|
+
/* harmony export */ unmountComponentAtNode: () => (/* binding */ vn),
|
|
8297
|
+
/* harmony export */ unstable_batchedUpdates: () => (/* binding */ pn),
|
|
8298
|
+
/* harmony export */ useDeferredValue: () => (/* binding */ bn),
|
|
8299
|
+
/* harmony export */ useInsertionEffect: () => (/* binding */ gn),
|
|
8300
|
+
/* harmony export */ useSyncExternalStore: () => (/* binding */ En),
|
|
8301
|
+
/* harmony export */ useTransition: () => (/* binding */ Sn),
|
|
8300
8302
|
/* harmony export */ version: () => (/* binding */ cn)
|
|
8301
8303
|
/* harmony export */ });
|
|
8302
8304
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7210);
|
|
@@ -8304,9 +8306,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8304
8306
|
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9207);
|
|
8305
8307
|
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(preact_hooks__WEBPACK_IMPORTED_MODULE_1__);
|
|
8306
8308
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
8307
|
-
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","createContext","createElement","createRef","Children","PureComponent","StrictMode","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
|
|
8309
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in preact_hooks__WEBPACK_IMPORTED_MODULE_1__) if(["default","Component","Fragment","createContext","createElement","createRef","Children","PureComponent","StrictMode","Suspense","SuspenseList","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createFactory","createPortal","findDOMNode","flushSync","forwardRef","hydrate","isElement","isFragment","isValidElement","lazy","memo","render","startTransition","unmountComponentAtNode","unstable_batchedUpdates","useDeferredValue","useInsertionEffect","useSyncExternalStore","useTransition","version"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => preact_hooks__WEBPACK_IMPORTED_MODULE_1__[__WEBPACK_IMPORT_KEY__]
|
|
8308
8310
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
8309
|
-
function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function x(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var R=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:A,forEach:A,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r)};var I=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function L(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)})),n}function U(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function D(){this.__u=0,this.t=null,this.__b=null}function F(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),I&&I(n)},(D.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=F(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=U(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},D.prototype.componentWillUnmount=function(){this.t=[]},D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=L(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),n.__v?(e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function z(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(j,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=F(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var B="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Z=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Y=/[A-Z0-9]/g,$="undefined"!=typeof document,q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function G(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function J(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var K=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function Q(){}function X(){return this.cancelBubble}function nn(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return K&&(n=K(n)),n.persist=Q,n.isPropagationStopped=X,n.isDefaultPrevented=nn,n.nativeEvent=n};var tn,en={enumerable:!1,configurable:!0,get:function(){return this.class}},rn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||$&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||q(t.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":Z.test(o)?o=l:-1===e.indexOf("-")&&H.test(o)?o=o.replace(Y,"-$&").toLowerCase():null===i&&(i=void 0):l=o="oninput","oninput"===l&&u[o=l]&&(o="oninputCapture"),u[o]=i}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",en)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=B,rn&&rn(n)};var un=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){un&&un(n),tn=n.__c};var on=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){on&&on(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),tn=null};var ln={ReactCurrentDispatcher:{current:{readContext:function(n){return tn.__n[n.__c].props.value}}}},cn="17.0.2";function fn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function an(n){return!!n&&n.$$typeof===B}function sn(n){return an(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function hn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function yn(n){n()}function _n(n){return n}function bn(){return[!1,yn]}var Sn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect;function gn(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var Cn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:gn,startTransition:yn,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"17.0.2",Children:O,render:G,hydrate:J,unmountComponentAtNode:hn,createPortal:z,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:fn,cloneElement:sn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:an,findDOMNode:vn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:w,memo:x,forwardRef:k,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:D,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln};
|
|
8311
|
+
function g(n,t){for(var e in t)n[e]=t[e];return n}function C(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function E(n,t){return n===t&&(0!==n||1/n==1/t)||n!=n&&t!=t}function w(n){this.props=n}function x(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:C(this.props,n)}function u(e){return this.shouldComponentUpdate=r,(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(w.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(n,t){return C(this.props,n)||C(this.state,t)};var R=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b;preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n)};var N="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function k(n){function t(t){var e=g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var A=function(n,t){return null==n?null:(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)((0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).map(t))},O={map:A,forEach:A,count:function(n){return n?(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n).length:0},only:function(n){var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray},T=preact__WEBPACK_IMPORTED_MODULE_0__.options.__e;preact__WEBPACK_IMPORTED_MODULE_0__.options.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);T(n,t,e,r)};var F=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function I(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return I(n,t,e)})),n}function L(n,t,e){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return L(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=e)),n}function U(){this.__u=0,this.t=null,this.__b=null}function D(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function M(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return (0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(r,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&!0===n.__h&&(n.type=null),F&&F(n)},(U.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=D(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(l):l())};e.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=L(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},U.prototype.componentWillUnmount=function(){this.t=[]},U.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=I(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,n.fallback);return i&&(i.__h=null),[(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.__a?null:n.children),i]};var W=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function P(n){return this.getChildContext=function(){return n.context},n.children}function j(n){var e=this,r=n.i;e.componentWillUnmount=function(){(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)((0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(P,{context:e.context},n.__v),e.l)}function z(n,e){var r=(0,preact__WEBPACK_IMPORTED_MODULE_0__.createElement)(j,{__v:n,i:e});return r.containerInfo=e,r}(V.prototype=new preact__WEBPACK_IMPORTED_MODULE_0__.Component).__a=function(n){var t=this,e=D(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),W(t,n,r)):u()};e?e(o):o()}},V.prototype.render=function(n){this.u=null,this.o=new Map;var t=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){W(n,e,t)})};var B="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,H=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Z=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Y=/[A-Z0-9]/g,$="undefined"!=typeof document,q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function G(n,t,e){return null==t.__k&&(t.textContent=""),(0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(n,t),"function"==typeof e&&e(),n?n.__c:null}function J(n,t,e){return (0,preact__WEBPACK_IMPORTED_MODULE_0__.hydrate)(n,t),"function"==typeof e&&e(),n?n.__c:null}preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(preact__WEBPACK_IMPORTED_MODULE_0__.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var K=preact__WEBPACK_IMPORTED_MODULE_0__.options.event;function Q(){}function X(){return this.cancelBubble}function nn(){return this.defaultPrevented}preact__WEBPACK_IMPORTED_MODULE_0__.options.event=function(n){return K&&(n=K(n)),n.persist=Q,n.isPropagationStopped=X,n.isDefaultPrevented=nn,n.nativeEvent=n};var tn,en={enumerable:!1,configurable:!0,get:function(){return this.class}},rn=preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode;preact__WEBPACK_IMPORTED_MODULE_0__.options.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||$&&"children"===o&&"noscript"===e||"class"===o||"className"===o)){var l=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===l?o="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||q(t.type)?"onfocus"===l?o="onfocusin":"onblur"===l?o="onfocusout":Z.test(o)?o=l:-1===e.indexOf("-")&&H.test(o)?o=o.replace(Y,"-$&").toLowerCase():null===i&&(i=void 0):l=o="oninput","oninput"===l&&u[o=l]&&(o="oninputCapture"),u[o]=i}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=(0,preact__WEBPACK_IMPORTED_MODULE_0__.toChildArray)(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",en)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=B,rn&&rn(n)};var un=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r;preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){un&&un(n),tn=n.__c};var on=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed;preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(n){on&&on(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),tn=null};var ln={ReactCurrentDispatcher:{current:{readContext:function(n){return tn.__n[n.__c].props.value}}}},cn="17.0.2";function fn(n){return preact__WEBPACK_IMPORTED_MODULE_0__.createElement.bind(null,n)}function an(n){return!!n&&n.$$typeof===B}function sn(n){return an(n)&&n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment}function hn(n){return an(n)?preact__WEBPACK_IMPORTED_MODULE_0__.cloneElement.apply(null,arguments):n}function vn(n){return!!n.__k&&((0,preact__WEBPACK_IMPORTED_MODULE_0__.render)(null,n),!0)}function dn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)},mn=function(n,t){return n(t)},yn=preact__WEBPACK_IMPORTED_MODULE_0__.Fragment;function _n(n){n()}function bn(n){return n}function Sn(){return[!1,_n]}var gn=preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,Cn=an;function En(n,t){var e=t(),r=(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState)({h:{__:e,v:t}}),u=r[0].h,o=r[1];return (0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(function(){u.__=e,u.v=t,E(u.__,t())||o({h:u})},[n,e,t]),(0,preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function(){return E(u.__,u.v())||o({h:u}),n(function(){E(u.__,u.v())||o({h:u})})},[n]),e}var wn={useState:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useState,useId:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useId,useReducer:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useReducer,useEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useEffect,useLayoutEffect:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect,useInsertionEffect:gn,useTransition:Sn,useDeferredValue:bn,useSyncExternalStore:En,startTransition:_n,useRef:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useRef,useImperativeHandle:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle,useMemo:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useMemo,useCallback:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useCallback,useContext:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useContext,useDebugValue:preact_hooks__WEBPACK_IMPORTED_MODULE_1__.useDebugValue,version:"17.0.2",Children:O,render:G,hydrate:J,unmountComponentAtNode:vn,createPortal:z,createElement:preact__WEBPACK_IMPORTED_MODULE_0__.createElement,createContext:preact__WEBPACK_IMPORTED_MODULE_0__.createContext,createFactory:fn,cloneElement:hn,createRef:preact__WEBPACK_IMPORTED_MODULE_0__.createRef,Fragment:preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,isValidElement:an,isElement:Cn,isFragment:sn,findDOMNode:dn,Component:preact__WEBPACK_IMPORTED_MODULE_0__.Component,PureComponent:w,memo:x,forwardRef:k,flushSync:mn,unstable_batchedUpdates:pn,StrictMode:yn,Suspense:U,SuspenseList:V,lazy:M,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln};
|
|
8310
8312
|
//# sourceMappingURL=compat.module.js.map
|
|
8311
8313
|
|
|
8312
8314
|
|
|
@@ -8370,42 +8372,41 @@ var compat_module = __webpack_require__(8661);
|
|
|
8370
8372
|
var batch = __webpack_require__(9256);
|
|
8371
8373
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
|
|
8372
8374
|
|
|
8373
|
-
const ContextKey = Symbol.for(`react-redux-context
|
|
8374
|
-
const gT = globalThis
|
|
8375
|
+
const ContextKey = Symbol.for(`react-redux-context`);
|
|
8376
|
+
const gT = typeof globalThis !== "undefined" ? globalThis :
|
|
8377
|
+
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
8378
|
+
{};
|
|
8375
8379
|
|
|
8376
8380
|
function getContext() {
|
|
8377
|
-
|
|
8381
|
+
var _gT$ContextKey;
|
|
8382
|
+
|
|
8383
|
+
if (!compat_module.createContext) return {};
|
|
8384
|
+
const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
|
|
8385
|
+
let realContext = contextMap.get(compat_module.createContext);
|
|
8378
8386
|
|
|
8379
8387
|
if (!realContext) {
|
|
8380
|
-
realContext =
|
|
8388
|
+
realContext = compat_module.createContext(null);
|
|
8381
8389
|
|
|
8382
8390
|
if (false) {}
|
|
8383
8391
|
|
|
8384
|
-
|
|
8392
|
+
contextMap.set(compat_module.createContext, realContext);
|
|
8385
8393
|
}
|
|
8386
8394
|
|
|
8387
8395
|
return realContext;
|
|
8388
8396
|
}
|
|
8389
8397
|
|
|
8390
|
-
const Context_ReactReduxContext = /*#__PURE__*/
|
|
8391
|
-
get(_, handler) {
|
|
8392
|
-
const target = getContext(); // @ts-ignore
|
|
8393
|
-
|
|
8394
|
-
return (_target, ...args) => Reflect[handler](target, ...args);
|
|
8395
|
-
}
|
|
8396
|
-
|
|
8397
|
-
}));
|
|
8398
|
+
const Context_ReactReduxContext = /*#__PURE__*/getContext();
|
|
8398
8399
|
/* harmony default export */ const Context = ((/* unused pure expression or super */ null && (Context_ReactReduxContext)));
|
|
8399
8400
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
|
|
8400
8401
|
|
|
8401
8402
|
|
|
8402
8403
|
|
|
8403
|
-
/**
|
|
8404
|
-
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
8405
|
-
* hook that you should usually not need to call directly.
|
|
8406
|
-
*
|
|
8407
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8408
|
-
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
8404
|
+
/**
|
|
8405
|
+
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
8406
|
+
* hook that you should usually not need to call directly.
|
|
8407
|
+
*
|
|
8408
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8409
|
+
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
8409
8410
|
*/
|
|
8410
8411
|
function createReduxContextHook(context = Context_ReactReduxContext) {
|
|
8411
8412
|
return function useReduxContext() {
|
|
@@ -8416,21 +8417,21 @@ function createReduxContextHook(context = Context_ReactReduxContext) {
|
|
|
8416
8417
|
return contextValue;
|
|
8417
8418
|
};
|
|
8418
8419
|
}
|
|
8419
|
-
/**
|
|
8420
|
-
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
8421
|
-
* hook that you should usually not need to call directly.
|
|
8422
|
-
*
|
|
8423
|
-
* @returns {any} the value of the `ReactReduxContext`
|
|
8424
|
-
*
|
|
8425
|
-
* @example
|
|
8426
|
-
*
|
|
8427
|
-
* import React from 'react'
|
|
8428
|
-
* import { useReduxContext } from 'react-redux'
|
|
8429
|
-
*
|
|
8430
|
-
* export const CounterComponent = () => {
|
|
8431
|
-
* const { store } = useReduxContext()
|
|
8432
|
-
* return <div>{store.getState()}</div>
|
|
8433
|
-
* }
|
|
8420
|
+
/**
|
|
8421
|
+
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
8422
|
+
* hook that you should usually not need to call directly.
|
|
8423
|
+
*
|
|
8424
|
+
* @returns {any} the value of the `ReactReduxContext`
|
|
8425
|
+
*
|
|
8426
|
+
* @example
|
|
8427
|
+
*
|
|
8428
|
+
* import React from 'react'
|
|
8429
|
+
* import { useReduxContext } from 'react-redux'
|
|
8430
|
+
*
|
|
8431
|
+
* export const CounterComponent = () => {
|
|
8432
|
+
* const { store } = useReduxContext()
|
|
8433
|
+
* return <div>{store.getState()}</div>
|
|
8434
|
+
* }
|
|
8434
8435
|
*/
|
|
8435
8436
|
|
|
8436
8437
|
const useReduxContext_useReduxContext = /*#__PURE__*/createReduxContextHook();
|
|
@@ -8449,11 +8450,11 @@ const initializeUseSelector = fn => {
|
|
|
8449
8450
|
};
|
|
8450
8451
|
|
|
8451
8452
|
const refEquality = (a, b) => a === b;
|
|
8452
|
-
/**
|
|
8453
|
-
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
8454
|
-
*
|
|
8455
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8456
|
-
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
8453
|
+
/**
|
|
8454
|
+
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
8455
|
+
*
|
|
8456
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8457
|
+
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
8457
8458
|
*/
|
|
8458
8459
|
|
|
8459
8460
|
|
|
@@ -8493,28 +8494,28 @@ function createSelectorHook(context = Context_ReactReduxContext) {
|
|
|
8493
8494
|
return selectedState;
|
|
8494
8495
|
};
|
|
8495
8496
|
}
|
|
8496
|
-
/**
|
|
8497
|
-
* A hook to access the redux store's state. This hook takes a selector function
|
|
8498
|
-
* as an argument. The selector is called with the store state.
|
|
8499
|
-
*
|
|
8500
|
-
* This hook takes an optional equality comparison function as the second parameter
|
|
8501
|
-
* that allows you to customize the way the selected state is compared to determine
|
|
8502
|
-
* whether the component needs to be re-rendered.
|
|
8503
|
-
*
|
|
8504
|
-
* @param {Function} selector the selector function
|
|
8505
|
-
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
8506
|
-
*
|
|
8507
|
-
* @returns {any} the selected state
|
|
8508
|
-
*
|
|
8509
|
-
* @example
|
|
8510
|
-
*
|
|
8511
|
-
* import React from 'react'
|
|
8512
|
-
* import { useSelector } from 'react-redux'
|
|
8513
|
-
*
|
|
8514
|
-
* export const CounterComponent = () => {
|
|
8515
|
-
* const counter = useSelector(state => state.counter)
|
|
8516
|
-
* return <div>{counter}</div>
|
|
8517
|
-
* }
|
|
8497
|
+
/**
|
|
8498
|
+
* A hook to access the redux store's state. This hook takes a selector function
|
|
8499
|
+
* as an argument. The selector is called with the store state.
|
|
8500
|
+
*
|
|
8501
|
+
* This hook takes an optional equality comparison function as the second parameter
|
|
8502
|
+
* that allows you to customize the way the selected state is compared to determine
|
|
8503
|
+
* whether the component needs to be re-rendered.
|
|
8504
|
+
*
|
|
8505
|
+
* @param {Function} selector the selector function
|
|
8506
|
+
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
8507
|
+
*
|
|
8508
|
+
* @returns {any} the selected state
|
|
8509
|
+
*
|
|
8510
|
+
* @example
|
|
8511
|
+
*
|
|
8512
|
+
* import React from 'react'
|
|
8513
|
+
* import { useSelector } from 'react-redux'
|
|
8514
|
+
*
|
|
8515
|
+
* export const CounterComponent = () => {
|
|
8516
|
+
* const counter = useSelector(state => state.counter)
|
|
8517
|
+
* return <div>{counter}</div>
|
|
8518
|
+
* }
|
|
8518
8519
|
*/
|
|
8519
8520
|
|
|
8520
8521
|
const useSelector = /*#__PURE__*/createSelectorHook();
|
|
@@ -8662,7 +8663,7 @@ function Subscription_createSubscription(store, parentSub) {
|
|
|
8662
8663
|
// Matches logic in React's `shared/ExecutionEnvironment` file
|
|
8663
8664
|
|
|
8664
8665
|
const canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
|
|
8665
|
-
const useIsomorphicLayoutEffect_useIsomorphicLayoutEffect =
|
|
8666
|
+
const useIsomorphicLayoutEffect_useIsomorphicLayoutEffect = canUseDOM ? compat_module.useLayoutEffect : compat_module.useEffect;
|
|
8666
8667
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/connect.js
|
|
8667
8668
|
|
|
8668
8669
|
|
|
@@ -8804,31 +8805,31 @@ const initStateUpdates = () => EMPTY_ARRAY;
|
|
|
8804
8805
|
function strictEqual(a, b) {
|
|
8805
8806
|
return a === b;
|
|
8806
8807
|
}
|
|
8807
|
-
/**
|
|
8808
|
-
* Infers the type of props that a connector will inject into a component.
|
|
8808
|
+
/**
|
|
8809
|
+
* Infers the type of props that a connector will inject into a component.
|
|
8809
8810
|
*/
|
|
8810
8811
|
|
|
8811
8812
|
|
|
8812
8813
|
let hasWarnedAboutDeprecatedPureOption = false;
|
|
8813
|
-
/**
|
|
8814
|
-
* Connects a React component to a Redux store.
|
|
8815
|
-
*
|
|
8816
|
-
* - Without arguments, just wraps the component, without changing the behavior / props
|
|
8817
|
-
*
|
|
8818
|
-
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
|
|
8819
|
-
* is to override ownProps (as stated in the docs), so what remains is everything that's
|
|
8820
|
-
* not a state or dispatch prop
|
|
8821
|
-
*
|
|
8822
|
-
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
|
|
8823
|
-
* should be valid component props, because it depends on mergeProps implementation.
|
|
8824
|
-
* As such, it is the user's responsibility to extend ownProps interface from state or
|
|
8825
|
-
* dispatch props or both when applicable
|
|
8826
|
-
*
|
|
8827
|
-
* @param mapStateToProps A function that extracts values from state
|
|
8828
|
-
* @param mapDispatchToProps Setup for dispatching actions
|
|
8829
|
-
* @param mergeProps Optional callback to merge state and dispatch props together
|
|
8830
|
-
* @param options Options for configuring the connection
|
|
8831
|
-
*
|
|
8814
|
+
/**
|
|
8815
|
+
* Connects a React component to a Redux store.
|
|
8816
|
+
*
|
|
8817
|
+
* - Without arguments, just wraps the component, without changing the behavior / props
|
|
8818
|
+
*
|
|
8819
|
+
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
|
|
8820
|
+
* is to override ownProps (as stated in the docs), so what remains is everything that's
|
|
8821
|
+
* not a state or dispatch prop
|
|
8822
|
+
*
|
|
8823
|
+
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
|
|
8824
|
+
* should be valid component props, because it depends on mergeProps implementation.
|
|
8825
|
+
* As such, it is the user's responsibility to extend ownProps interface from state or
|
|
8826
|
+
* dispatch props or both when applicable
|
|
8827
|
+
*
|
|
8828
|
+
* @param mapStateToProps A function that extracts values from state
|
|
8829
|
+
* @param mapDispatchToProps Setup for dispatching actions
|
|
8830
|
+
* @param mergeProps Optional callback to merge state and dispatch props together
|
|
8831
|
+
* @param options Options for configuring the connection
|
|
8832
|
+
*
|
|
8832
8833
|
*/
|
|
8833
8834
|
|
|
8834
8835
|
function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
@@ -8874,7 +8875,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
8874
8875
|
};
|
|
8875
8876
|
|
|
8876
8877
|
function ConnectFunction(props) {
|
|
8877
|
-
const [propsContext, reactReduxForwardedRef, wrapperProps] = useMemo(() => {
|
|
8878
|
+
const [propsContext, reactReduxForwardedRef, wrapperProps] = React.useMemo(() => {
|
|
8878
8879
|
// Distinguish between actual "data" props that were passed to the wrapper component,
|
|
8879
8880
|
// and values needed to control behavior (forwarded refs, alternate context instances).
|
|
8880
8881
|
// To maintain the wrapperProps object reference, memoize this destructuring.
|
|
@@ -8885,14 +8886,14 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
8885
8886
|
|
|
8886
8887
|
return [props.context, reactReduxForwardedRef, wrapperProps];
|
|
8887
8888
|
}, [props]);
|
|
8888
|
-
const ContextToUse = useMemo(() => {
|
|
8889
|
+
const ContextToUse = React.useMemo(() => {
|
|
8889
8890
|
// Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
|
|
8890
8891
|
// Memoize the check that determines which context instance we should use.
|
|
8891
8892
|
return propsContext && propsContext.Consumer && // @ts-ignore
|
|
8892
8893
|
isContextConsumer( /*#__PURE__*/React.createElement(propsContext.Consumer, null)) ? propsContext : Context;
|
|
8893
8894
|
}, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
|
|
8894
8895
|
|
|
8895
|
-
const contextValue = useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
|
|
8896
|
+
const contextValue = React.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
|
|
8896
8897
|
// We'll check to see if it _looks_ like a Redux store first.
|
|
8897
8898
|
// This allows us to pass through a `store` prop that is just a plain value.
|
|
8898
8899
|
|
|
@@ -8904,12 +8905,12 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
8904
8905
|
|
|
8905
8906
|
const store = didStoreComeFromProps ? props.store : contextValue.store;
|
|
8906
8907
|
const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
|
|
8907
|
-
const childPropsSelector = useMemo(() => {
|
|
8908
|
+
const childPropsSelector = React.useMemo(() => {
|
|
8908
8909
|
// The child props selector needs the store reference as an input.
|
|
8909
8910
|
// Re-create this selector whenever the store changes.
|
|
8910
8911
|
return defaultSelectorFactory(store.dispatch, selectorFactoryOptions);
|
|
8911
8912
|
}, [store]);
|
|
8912
|
-
const [subscription, notifyNestedSubs] = useMemo(() => {
|
|
8913
|
+
const [subscription, notifyNestedSubs] = React.useMemo(() => {
|
|
8913
8914
|
if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
|
|
8914
8915
|
// connected to the store via props shouldn't use subscription from context, or vice versa.
|
|
8915
8916
|
|
|
@@ -8923,7 +8924,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
8923
8924
|
}, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
|
|
8924
8925
|
// and memoize that value to avoid unnecessary context updates.
|
|
8925
8926
|
|
|
8926
|
-
const overriddenContextValue = useMemo(() => {
|
|
8927
|
+
const overriddenContextValue = React.useMemo(() => {
|
|
8927
8928
|
if (didStoreComeFromProps) {
|
|
8928
8929
|
// This component is directly subscribed to a store from props.
|
|
8929
8930
|
// We don't want descendants reading from this store - pass down whatever
|
|
@@ -8938,20 +8939,20 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
8938
8939
|
});
|
|
8939
8940
|
}, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
|
|
8940
8941
|
|
|
8941
|
-
const lastChildProps = useRef();
|
|
8942
|
-
const lastWrapperProps = useRef(wrapperProps);
|
|
8943
|
-
const childPropsFromStoreUpdate = useRef();
|
|
8944
|
-
const renderIsScheduled = useRef(false);
|
|
8945
|
-
const isProcessingDispatch = useRef(false);
|
|
8946
|
-
const isMounted = useRef(false);
|
|
8947
|
-
const latestSubscriptionCallbackError = useRef();
|
|
8942
|
+
const lastChildProps = React.useRef();
|
|
8943
|
+
const lastWrapperProps = React.useRef(wrapperProps);
|
|
8944
|
+
const childPropsFromStoreUpdate = React.useRef();
|
|
8945
|
+
const renderIsScheduled = React.useRef(false);
|
|
8946
|
+
const isProcessingDispatch = React.useRef(false);
|
|
8947
|
+
const isMounted = React.useRef(false);
|
|
8948
|
+
const latestSubscriptionCallbackError = React.useRef();
|
|
8948
8949
|
useIsomorphicLayoutEffect(() => {
|
|
8949
8950
|
isMounted.current = true;
|
|
8950
8951
|
return () => {
|
|
8951
8952
|
isMounted.current = false;
|
|
8952
8953
|
};
|
|
8953
8954
|
}, []);
|
|
8954
|
-
const actualChildPropsSelector = useMemo(() => {
|
|
8955
|
+
const actualChildPropsSelector = React.useMemo(() => {
|
|
8955
8956
|
const selector = () => {
|
|
8956
8957
|
// Tricky logic here:
|
|
8957
8958
|
// - This render may have been triggered by a Redux store update that produced new child props
|
|
@@ -8975,7 +8976,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
8975
8976
|
// about useLayoutEffect in SSR, so we try to detect environment and fall back to
|
|
8976
8977
|
// just useEffect instead to avoid the warning, since neither will run anyway.
|
|
8977
8978
|
|
|
8978
|
-
const subscribeForReact = useMemo(() => {
|
|
8979
|
+
const subscribeForReact = React.useMemo(() => {
|
|
8979
8980
|
const subscribe = reactListener => {
|
|
8980
8981
|
if (!subscription) {
|
|
8981
8982
|
return () => {};
|
|
@@ -9011,7 +9012,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9011
9012
|
}); // Now that all that's done, we can finally try to actually render the child component.
|
|
9012
9013
|
// We memoize the elements for the rendered child component as an optimization.
|
|
9013
9014
|
|
|
9014
|
-
const renderedWrappedComponent = useMemo(() => {
|
|
9015
|
+
const renderedWrappedComponent = React.useMemo(() => {
|
|
9015
9016
|
return (
|
|
9016
9017
|
/*#__PURE__*/
|
|
9017
9018
|
// @ts-ignore
|
|
@@ -9022,7 +9023,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9022
9023
|
}, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
|
|
9023
9024
|
// that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
|
|
9024
9025
|
|
|
9025
|
-
const renderedChild = useMemo(() => {
|
|
9026
|
+
const renderedChild = React.useMemo(() => {
|
|
9026
9027
|
if (shouldHandleStateChanges) {
|
|
9027
9028
|
// If this component is subscribed to store updates, we need to pass its own
|
|
9028
9029
|
// subscription instance down to our descendants. That means rendering the same
|
|
@@ -9079,7 +9080,7 @@ function Provider({
|
|
|
9079
9080
|
stabilityCheck = 'once',
|
|
9080
9081
|
noopCheck = 'once'
|
|
9081
9082
|
}) {
|
|
9082
|
-
const contextValue = useMemo(() => {
|
|
9083
|
+
const contextValue = React.useMemo(() => {
|
|
9083
9084
|
const subscription = createSubscription(store);
|
|
9084
9085
|
return {
|
|
9085
9086
|
store,
|
|
@@ -9089,7 +9090,7 @@ function Provider({
|
|
|
9089
9090
|
noopCheck
|
|
9090
9091
|
};
|
|
9091
9092
|
}, [store, serverState, stabilityCheck, noopCheck]);
|
|
9092
|
-
const previousState = useMemo(() => store.getState(), [store]);
|
|
9093
|
+
const previousState = React.useMemo(() => store.getState(), [store]);
|
|
9093
9094
|
useIsomorphicLayoutEffect(() => {
|
|
9094
9095
|
const {
|
|
9095
9096
|
subscription
|
|
@@ -9117,11 +9118,11 @@ function Provider({
|
|
|
9117
9118
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
|
|
9118
9119
|
|
|
9119
9120
|
|
|
9120
|
-
/**
|
|
9121
|
-
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
9122
|
-
*
|
|
9123
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9124
|
-
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
9121
|
+
/**
|
|
9122
|
+
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
9123
|
+
*
|
|
9124
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9125
|
+
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
9125
9126
|
*/
|
|
9126
9127
|
|
|
9127
9128
|
function createStoreHook(context = Context_ReactReduxContext) {
|
|
@@ -9136,31 +9137,31 @@ function createStoreHook(context = Context_ReactReduxContext) {
|
|
|
9136
9137
|
return store;
|
|
9137
9138
|
};
|
|
9138
9139
|
}
|
|
9139
|
-
/**
|
|
9140
|
-
* A hook to access the redux store.
|
|
9141
|
-
*
|
|
9142
|
-
* @returns {any} the redux store
|
|
9143
|
-
*
|
|
9144
|
-
* @example
|
|
9145
|
-
*
|
|
9146
|
-
* import React from 'react'
|
|
9147
|
-
* import { useStore } from 'react-redux'
|
|
9148
|
-
*
|
|
9149
|
-
* export const ExampleComponent = () => {
|
|
9150
|
-
* const store = useStore()
|
|
9151
|
-
* return <div>{store.getState()}</div>
|
|
9152
|
-
* }
|
|
9140
|
+
/**
|
|
9141
|
+
* A hook to access the redux store.
|
|
9142
|
+
*
|
|
9143
|
+
* @returns {any} the redux store
|
|
9144
|
+
*
|
|
9145
|
+
* @example
|
|
9146
|
+
*
|
|
9147
|
+
* import React from 'react'
|
|
9148
|
+
* import { useStore } from 'react-redux'
|
|
9149
|
+
*
|
|
9150
|
+
* export const ExampleComponent = () => {
|
|
9151
|
+
* const store = useStore()
|
|
9152
|
+
* return <div>{store.getState()}</div>
|
|
9153
|
+
* }
|
|
9153
9154
|
*/
|
|
9154
9155
|
|
|
9155
9156
|
const useStore_useStore = /*#__PURE__*/createStoreHook();
|
|
9156
9157
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
|
|
9157
9158
|
|
|
9158
9159
|
|
|
9159
|
-
/**
|
|
9160
|
-
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
9161
|
-
*
|
|
9162
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9163
|
-
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
9160
|
+
/**
|
|
9161
|
+
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
9162
|
+
*
|
|
9163
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9164
|
+
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
9164
9165
|
*/
|
|
9165
9166
|
|
|
9166
9167
|
function createDispatchHook(context = Context_ReactReduxContext) {
|
|
@@ -9172,26 +9173,26 @@ function createDispatchHook(context = Context_ReactReduxContext) {
|
|
|
9172
9173
|
return store.dispatch;
|
|
9173
9174
|
};
|
|
9174
9175
|
}
|
|
9175
|
-
/**
|
|
9176
|
-
* A hook to access the redux `dispatch` function.
|
|
9177
|
-
*
|
|
9178
|
-
* @returns {any|function} redux store's `dispatch` function
|
|
9179
|
-
*
|
|
9180
|
-
* @example
|
|
9181
|
-
*
|
|
9182
|
-
* import React, { useCallback } from 'react'
|
|
9183
|
-
* import { useDispatch } from 'react-redux'
|
|
9184
|
-
*
|
|
9185
|
-
* export const CounterComponent = ({ value }) => {
|
|
9186
|
-
* const dispatch = useDispatch()
|
|
9187
|
-
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
9188
|
-
* return (
|
|
9189
|
-
* <div>
|
|
9190
|
-
* <span>{value}</span>
|
|
9191
|
-
* <button onClick={increaseCounter}>Increase counter</button>
|
|
9192
|
-
* </div>
|
|
9193
|
-
* )
|
|
9194
|
-
* }
|
|
9176
|
+
/**
|
|
9177
|
+
* A hook to access the redux `dispatch` function.
|
|
9178
|
+
*
|
|
9179
|
+
* @returns {any|function} redux store's `dispatch` function
|
|
9180
|
+
*
|
|
9181
|
+
* @example
|
|
9182
|
+
*
|
|
9183
|
+
* import React, { useCallback } from 'react'
|
|
9184
|
+
* import { useDispatch } from 'react-redux'
|
|
9185
|
+
*
|
|
9186
|
+
* export const CounterComponent = ({ value }) => {
|
|
9187
|
+
* const dispatch = useDispatch()
|
|
9188
|
+
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
9189
|
+
* return (
|
|
9190
|
+
* <div>
|
|
9191
|
+
* <span>{value}</span>
|
|
9192
|
+
* <button onClick={increaseCounter}>Increase counter</button>
|
|
9193
|
+
* </div>
|
|
9194
|
+
* )
|
|
9195
|
+
* }
|
|
9195
9196
|
*/
|
|
9196
9197
|
|
|
9197
9198
|
const useDispatch = /*#__PURE__*/createDispatchHook();
|