@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
package/build/dist/lib/utils.js
CHANGED
|
@@ -8400,32 +8400,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8400
8400
|
/* harmony export */ Component: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Component),
|
|
8401
8401
|
/* harmony export */ Fragment: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.Fragment),
|
|
8402
8402
|
/* harmony export */ PureComponent: () => (/* binding */ w),
|
|
8403
|
-
/* harmony export */ StrictMode: () => (/* binding */
|
|
8404
|
-
/* harmony export */ Suspense: () => (/* binding */
|
|
8403
|
+
/* harmony export */ StrictMode: () => (/* binding */ yn),
|
|
8404
|
+
/* harmony export */ Suspense: () => (/* binding */ U),
|
|
8405
8405
|
/* harmony export */ SuspenseList: () => (/* binding */ V),
|
|
8406
8406
|
/* harmony export */ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: () => (/* binding */ ln),
|
|
8407
|
-
/* harmony export */ cloneElement: () => (/* binding */
|
|
8407
|
+
/* harmony export */ cloneElement: () => (/* binding */ hn),
|
|
8408
8408
|
/* harmony export */ createContext: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createContext),
|
|
8409
8409
|
/* harmony export */ createElement: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createElement),
|
|
8410
8410
|
/* harmony export */ createFactory: () => (/* binding */ fn),
|
|
8411
8411
|
/* harmony export */ createPortal: () => (/* binding */ z),
|
|
8412
8412
|
/* harmony export */ createRef: () => (/* reexport safe */ preact__WEBPACK_IMPORTED_MODULE_0__.createRef),
|
|
8413
|
-
/* harmony export */ "default": () => (/* binding */
|
|
8414
|
-
/* harmony export */ findDOMNode: () => (/* binding */
|
|
8415
|
-
/* harmony export */ flushSync: () => (/* binding */
|
|
8413
|
+
/* harmony export */ "default": () => (/* binding */ wn),
|
|
8414
|
+
/* harmony export */ findDOMNode: () => (/* binding */ dn),
|
|
8415
|
+
/* harmony export */ flushSync: () => (/* binding */ mn),
|
|
8416
8416
|
/* harmony export */ forwardRef: () => (/* binding */ k),
|
|
8417
8417
|
/* harmony export */ hydrate: () => (/* binding */ J),
|
|
8418
|
+
/* harmony export */ isElement: () => (/* binding */ Cn),
|
|
8419
|
+
/* harmony export */ isFragment: () => (/* binding */ sn),
|
|
8418
8420
|
/* harmony export */ isValidElement: () => (/* binding */ an),
|
|
8419
8421
|
/* harmony export */ lazy: () => (/* binding */ M),
|
|
8420
8422
|
/* harmony export */ memo: () => (/* binding */ x),
|
|
8421
8423
|
/* harmony export */ render: () => (/* binding */ G),
|
|
8422
|
-
/* harmony export */ startTransition: () => (/* binding */
|
|
8423
|
-
/* harmony export */ unmountComponentAtNode: () => (/* binding */
|
|
8424
|
-
/* harmony export */ unstable_batchedUpdates: () => (/* binding */
|
|
8425
|
-
/* harmony export */ useDeferredValue: () => (/* binding */
|
|
8426
|
-
/* harmony export */ useInsertionEffect: () => (/* binding */
|
|
8427
|
-
/* harmony export */ useSyncExternalStore: () => (/* binding */
|
|
8428
|
-
/* harmony export */ useTransition: () => (/* binding */
|
|
8424
|
+
/* harmony export */ startTransition: () => (/* binding */ _n),
|
|
8425
|
+
/* harmony export */ unmountComponentAtNode: () => (/* binding */ vn),
|
|
8426
|
+
/* harmony export */ unstable_batchedUpdates: () => (/* binding */ pn),
|
|
8427
|
+
/* harmony export */ useDeferredValue: () => (/* binding */ bn),
|
|
8428
|
+
/* harmony export */ useInsertionEffect: () => (/* binding */ gn),
|
|
8429
|
+
/* harmony export */ useSyncExternalStore: () => (/* binding */ En),
|
|
8430
|
+
/* harmony export */ useTransition: () => (/* binding */ Sn),
|
|
8429
8431
|
/* harmony export */ version: () => (/* binding */ cn)
|
|
8430
8432
|
/* harmony export */ });
|
|
8431
8433
|
/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7210);
|
|
@@ -8433,9 +8435,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8433
8435
|
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9207);
|
|
8434
8436
|
/* harmony import */ var preact_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(preact_hooks__WEBPACK_IMPORTED_MODULE_1__);
|
|
8435
8437
|
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
8436
|
-
/* 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__]
|
|
8438
|
+
/* 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__]
|
|
8437
8439
|
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
8438
|
-
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};
|
|
8440
|
+
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};
|
|
8439
8441
|
//# sourceMappingURL=compat.module.js.map
|
|
8440
8442
|
|
|
8441
8443
|
|
|
@@ -8503,42 +8505,41 @@ var compat_module = __webpack_require__(8661);
|
|
|
8503
8505
|
var utils_batch = __webpack_require__(9256);
|
|
8504
8506
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
|
|
8505
8507
|
|
|
8506
|
-
const ContextKey = Symbol.for(`react-redux-context
|
|
8507
|
-
const gT = globalThis
|
|
8508
|
+
const ContextKey = Symbol.for(`react-redux-context`);
|
|
8509
|
+
const gT = typeof globalThis !== "undefined" ? globalThis :
|
|
8510
|
+
/* fall back to a per-module scope (pre-8.1 behaviour) if `globalThis` is not available */
|
|
8511
|
+
{};
|
|
8508
8512
|
|
|
8509
8513
|
function getContext() {
|
|
8510
|
-
|
|
8514
|
+
var _gT$ContextKey;
|
|
8515
|
+
|
|
8516
|
+
if (!compat_module.createContext) return {};
|
|
8517
|
+
const contextMap = (_gT$ContextKey = gT[ContextKey]) != null ? _gT$ContextKey : gT[ContextKey] = new Map();
|
|
8518
|
+
let realContext = contextMap.get(compat_module.createContext);
|
|
8511
8519
|
|
|
8512
8520
|
if (!realContext) {
|
|
8513
|
-
realContext =
|
|
8521
|
+
realContext = compat_module.createContext(null);
|
|
8514
8522
|
|
|
8515
8523
|
if (false) {}
|
|
8516
8524
|
|
|
8517
|
-
|
|
8525
|
+
contextMap.set(compat_module.createContext, realContext);
|
|
8518
8526
|
}
|
|
8519
8527
|
|
|
8520
8528
|
return realContext;
|
|
8521
8529
|
}
|
|
8522
8530
|
|
|
8523
|
-
const Context_ReactReduxContext = /*#__PURE__*/
|
|
8524
|
-
get(_, handler) {
|
|
8525
|
-
const target = getContext(); // @ts-ignore
|
|
8526
|
-
|
|
8527
|
-
return (_target, ...args) => Reflect[handler](target, ...args);
|
|
8528
|
-
}
|
|
8529
|
-
|
|
8530
|
-
}));
|
|
8531
|
+
const Context_ReactReduxContext = /*#__PURE__*/getContext();
|
|
8531
8532
|
/* harmony default export */ const Context = ((/* unused pure expression or super */ null && (Context_ReactReduxContext)));
|
|
8532
8533
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
|
|
8533
8534
|
|
|
8534
8535
|
|
|
8535
8536
|
|
|
8536
|
-
/**
|
|
8537
|
-
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
8538
|
-
* hook that you should usually not need to call directly.
|
|
8539
|
-
*
|
|
8540
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8541
|
-
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
8537
|
+
/**
|
|
8538
|
+
* Hook factory, which creates a `useReduxContext` hook bound to a given context. This is a low-level
|
|
8539
|
+
* hook that you should usually not need to call directly.
|
|
8540
|
+
*
|
|
8541
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8542
|
+
* @returns {Function} A `useReduxContext` hook bound to the specified context.
|
|
8542
8543
|
*/
|
|
8543
8544
|
function createReduxContextHook(context = Context_ReactReduxContext) {
|
|
8544
8545
|
return function useReduxContext() {
|
|
@@ -8549,21 +8550,21 @@ function createReduxContextHook(context = Context_ReactReduxContext) {
|
|
|
8549
8550
|
return contextValue;
|
|
8550
8551
|
};
|
|
8551
8552
|
}
|
|
8552
|
-
/**
|
|
8553
|
-
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
8554
|
-
* hook that you should usually not need to call directly.
|
|
8555
|
-
*
|
|
8556
|
-
* @returns {any} the value of the `ReactReduxContext`
|
|
8557
|
-
*
|
|
8558
|
-
* @example
|
|
8559
|
-
*
|
|
8560
|
-
* import React from 'react'
|
|
8561
|
-
* import { useReduxContext } from 'react-redux'
|
|
8562
|
-
*
|
|
8563
|
-
* export const CounterComponent = () => {
|
|
8564
|
-
* const { store } = useReduxContext()
|
|
8565
|
-
* return <div>{store.getState()}</div>
|
|
8566
|
-
* }
|
|
8553
|
+
/**
|
|
8554
|
+
* A hook to access the value of the `ReactReduxContext`. This is a low-level
|
|
8555
|
+
* hook that you should usually not need to call directly.
|
|
8556
|
+
*
|
|
8557
|
+
* @returns {any} the value of the `ReactReduxContext`
|
|
8558
|
+
*
|
|
8559
|
+
* @example
|
|
8560
|
+
*
|
|
8561
|
+
* import React from 'react'
|
|
8562
|
+
* import { useReduxContext } from 'react-redux'
|
|
8563
|
+
*
|
|
8564
|
+
* export const CounterComponent = () => {
|
|
8565
|
+
* const { store } = useReduxContext()
|
|
8566
|
+
* return <div>{store.getState()}</div>
|
|
8567
|
+
* }
|
|
8567
8568
|
*/
|
|
8568
8569
|
|
|
8569
8570
|
const useReduxContext_useReduxContext = /*#__PURE__*/createReduxContextHook();
|
|
@@ -8582,11 +8583,11 @@ const initializeUseSelector = fn => {
|
|
|
8582
8583
|
};
|
|
8583
8584
|
|
|
8584
8585
|
const refEquality = (a, b) => a === b;
|
|
8585
|
-
/**
|
|
8586
|
-
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
8587
|
-
*
|
|
8588
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8589
|
-
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
8586
|
+
/**
|
|
8587
|
+
* Hook factory, which creates a `useSelector` hook bound to a given context.
|
|
8588
|
+
*
|
|
8589
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
8590
|
+
* @returns {Function} A `useSelector` hook bound to the specified context.
|
|
8590
8591
|
*/
|
|
8591
8592
|
|
|
8592
8593
|
|
|
@@ -8626,28 +8627,28 @@ function createSelectorHook(context = Context_ReactReduxContext) {
|
|
|
8626
8627
|
return selectedState;
|
|
8627
8628
|
};
|
|
8628
8629
|
}
|
|
8629
|
-
/**
|
|
8630
|
-
* A hook to access the redux store's state. This hook takes a selector function
|
|
8631
|
-
* as an argument. The selector is called with the store state.
|
|
8632
|
-
*
|
|
8633
|
-
* This hook takes an optional equality comparison function as the second parameter
|
|
8634
|
-
* that allows you to customize the way the selected state is compared to determine
|
|
8635
|
-
* whether the component needs to be re-rendered.
|
|
8636
|
-
*
|
|
8637
|
-
* @param {Function} selector the selector function
|
|
8638
|
-
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
8639
|
-
*
|
|
8640
|
-
* @returns {any} the selected state
|
|
8641
|
-
*
|
|
8642
|
-
* @example
|
|
8643
|
-
*
|
|
8644
|
-
* import React from 'react'
|
|
8645
|
-
* import { useSelector } from 'react-redux'
|
|
8646
|
-
*
|
|
8647
|
-
* export const CounterComponent = () => {
|
|
8648
|
-
* const counter = useSelector(state => state.counter)
|
|
8649
|
-
* return <div>{counter}</div>
|
|
8650
|
-
* }
|
|
8630
|
+
/**
|
|
8631
|
+
* A hook to access the redux store's state. This hook takes a selector function
|
|
8632
|
+
* as an argument. The selector is called with the store state.
|
|
8633
|
+
*
|
|
8634
|
+
* This hook takes an optional equality comparison function as the second parameter
|
|
8635
|
+
* that allows you to customize the way the selected state is compared to determine
|
|
8636
|
+
* whether the component needs to be re-rendered.
|
|
8637
|
+
*
|
|
8638
|
+
* @param {Function} selector the selector function
|
|
8639
|
+
* @param {Function=} equalityFn the function that will be used to determine equality
|
|
8640
|
+
*
|
|
8641
|
+
* @returns {any} the selected state
|
|
8642
|
+
*
|
|
8643
|
+
* @example
|
|
8644
|
+
*
|
|
8645
|
+
* import React from 'react'
|
|
8646
|
+
* import { useSelector } from 'react-redux'
|
|
8647
|
+
*
|
|
8648
|
+
* export const CounterComponent = () => {
|
|
8649
|
+
* const counter = useSelector(state => state.counter)
|
|
8650
|
+
* return <div>{counter}</div>
|
|
8651
|
+
* }
|
|
8651
8652
|
*/
|
|
8652
8653
|
|
|
8653
8654
|
const useSelector = /*#__PURE__*/createSelectorHook();
|
|
@@ -8937,31 +8938,31 @@ const initStateUpdates = () => EMPTY_ARRAY;
|
|
|
8937
8938
|
function strictEqual(a, b) {
|
|
8938
8939
|
return a === b;
|
|
8939
8940
|
}
|
|
8940
|
-
/**
|
|
8941
|
-
* Infers the type of props that a connector will inject into a component.
|
|
8941
|
+
/**
|
|
8942
|
+
* Infers the type of props that a connector will inject into a component.
|
|
8942
8943
|
*/
|
|
8943
8944
|
|
|
8944
8945
|
|
|
8945
8946
|
let hasWarnedAboutDeprecatedPureOption = false;
|
|
8946
|
-
/**
|
|
8947
|
-
* Connects a React component to a Redux store.
|
|
8948
|
-
*
|
|
8949
|
-
* - Without arguments, just wraps the component, without changing the behavior / props
|
|
8950
|
-
*
|
|
8951
|
-
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
|
|
8952
|
-
* is to override ownProps (as stated in the docs), so what remains is everything that's
|
|
8953
|
-
* not a state or dispatch prop
|
|
8954
|
-
*
|
|
8955
|
-
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
|
|
8956
|
-
* should be valid component props, because it depends on mergeProps implementation.
|
|
8957
|
-
* As such, it is the user's responsibility to extend ownProps interface from state or
|
|
8958
|
-
* dispatch props or both when applicable
|
|
8959
|
-
*
|
|
8960
|
-
* @param mapStateToProps A function that extracts values from state
|
|
8961
|
-
* @param mapDispatchToProps Setup for dispatching actions
|
|
8962
|
-
* @param mergeProps Optional callback to merge state and dispatch props together
|
|
8963
|
-
* @param options Options for configuring the connection
|
|
8964
|
-
*
|
|
8947
|
+
/**
|
|
8948
|
+
* Connects a React component to a Redux store.
|
|
8949
|
+
*
|
|
8950
|
+
* - Without arguments, just wraps the component, without changing the behavior / props
|
|
8951
|
+
*
|
|
8952
|
+
* - If 2 params are passed (3rd param, mergeProps, is skipped), default behavior
|
|
8953
|
+
* is to override ownProps (as stated in the docs), so what remains is everything that's
|
|
8954
|
+
* not a state or dispatch prop
|
|
8955
|
+
*
|
|
8956
|
+
* - When 3rd param is passed, we don't know if ownProps propagate and whether they
|
|
8957
|
+
* should be valid component props, because it depends on mergeProps implementation.
|
|
8958
|
+
* As such, it is the user's responsibility to extend ownProps interface from state or
|
|
8959
|
+
* dispatch props or both when applicable
|
|
8960
|
+
*
|
|
8961
|
+
* @param mapStateToProps A function that extracts values from state
|
|
8962
|
+
* @param mapDispatchToProps Setup for dispatching actions
|
|
8963
|
+
* @param mergeProps Optional callback to merge state and dispatch props together
|
|
8964
|
+
* @param options Options for configuring the connection
|
|
8965
|
+
*
|
|
8965
8966
|
*/
|
|
8966
8967
|
|
|
8967
8968
|
function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
@@ -9007,7 +9008,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9007
9008
|
};
|
|
9008
9009
|
|
|
9009
9010
|
function ConnectFunction(props) {
|
|
9010
|
-
const [propsContext, reactReduxForwardedRef, wrapperProps] = useMemo(() => {
|
|
9011
|
+
const [propsContext, reactReduxForwardedRef, wrapperProps] = React.useMemo(() => {
|
|
9011
9012
|
// Distinguish between actual "data" props that were passed to the wrapper component,
|
|
9012
9013
|
// and values needed to control behavior (forwarded refs, alternate context instances).
|
|
9013
9014
|
// To maintain the wrapperProps object reference, memoize this destructuring.
|
|
@@ -9018,14 +9019,14 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9018
9019
|
|
|
9019
9020
|
return [props.context, reactReduxForwardedRef, wrapperProps];
|
|
9020
9021
|
}, [props]);
|
|
9021
|
-
const ContextToUse = useMemo(() => {
|
|
9022
|
+
const ContextToUse = React.useMemo(() => {
|
|
9022
9023
|
// Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
|
|
9023
9024
|
// Memoize the check that determines which context instance we should use.
|
|
9024
9025
|
return propsContext && propsContext.Consumer && // @ts-ignore
|
|
9025
9026
|
isContextConsumer( /*#__PURE__*/React.createElement(propsContext.Consumer, null)) ? propsContext : Context;
|
|
9026
9027
|
}, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
|
|
9027
9028
|
|
|
9028
|
-
const contextValue = useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
|
|
9029
|
+
const contextValue = React.useContext(ContextToUse); // The store _must_ exist as either a prop or in context.
|
|
9029
9030
|
// We'll check to see if it _looks_ like a Redux store first.
|
|
9030
9031
|
// This allows us to pass through a `store` prop that is just a plain value.
|
|
9031
9032
|
|
|
@@ -9037,12 +9038,12 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9037
9038
|
|
|
9038
9039
|
const store = didStoreComeFromProps ? props.store : contextValue.store;
|
|
9039
9040
|
const getServerState = didStoreComeFromContext ? contextValue.getServerState : store.getState;
|
|
9040
|
-
const childPropsSelector = useMemo(() => {
|
|
9041
|
+
const childPropsSelector = React.useMemo(() => {
|
|
9041
9042
|
// The child props selector needs the store reference as an input.
|
|
9042
9043
|
// Re-create this selector whenever the store changes.
|
|
9043
9044
|
return defaultSelectorFactory(store.dispatch, selectorFactoryOptions);
|
|
9044
9045
|
}, [store]);
|
|
9045
|
-
const [subscription, notifyNestedSubs] = useMemo(() => {
|
|
9046
|
+
const [subscription, notifyNestedSubs] = React.useMemo(() => {
|
|
9046
9047
|
if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
|
|
9047
9048
|
// connected to the store via props shouldn't use subscription from context, or vice versa.
|
|
9048
9049
|
|
|
@@ -9056,7 +9057,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9056
9057
|
}, [store, didStoreComeFromProps, contextValue]); // Determine what {store, subscription} value should be put into nested context, if necessary,
|
|
9057
9058
|
// and memoize that value to avoid unnecessary context updates.
|
|
9058
9059
|
|
|
9059
|
-
const overriddenContextValue = useMemo(() => {
|
|
9060
|
+
const overriddenContextValue = React.useMemo(() => {
|
|
9060
9061
|
if (didStoreComeFromProps) {
|
|
9061
9062
|
// This component is directly subscribed to a store from props.
|
|
9062
9063
|
// We don't want descendants reading from this store - pass down whatever
|
|
@@ -9071,20 +9072,20 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9071
9072
|
});
|
|
9072
9073
|
}, [didStoreComeFromProps, contextValue, subscription]); // Set up refs to coordinate values between the subscription effect and the render logic
|
|
9073
9074
|
|
|
9074
|
-
const lastChildProps = useRef();
|
|
9075
|
-
const lastWrapperProps = useRef(wrapperProps);
|
|
9076
|
-
const childPropsFromStoreUpdate = useRef();
|
|
9077
|
-
const renderIsScheduled = useRef(false);
|
|
9078
|
-
const isProcessingDispatch = useRef(false);
|
|
9079
|
-
const isMounted = useRef(false);
|
|
9080
|
-
const latestSubscriptionCallbackError = useRef();
|
|
9075
|
+
const lastChildProps = React.useRef();
|
|
9076
|
+
const lastWrapperProps = React.useRef(wrapperProps);
|
|
9077
|
+
const childPropsFromStoreUpdate = React.useRef();
|
|
9078
|
+
const renderIsScheduled = React.useRef(false);
|
|
9079
|
+
const isProcessingDispatch = React.useRef(false);
|
|
9080
|
+
const isMounted = React.useRef(false);
|
|
9081
|
+
const latestSubscriptionCallbackError = React.useRef();
|
|
9081
9082
|
useIsomorphicLayoutEffect(() => {
|
|
9082
9083
|
isMounted.current = true;
|
|
9083
9084
|
return () => {
|
|
9084
9085
|
isMounted.current = false;
|
|
9085
9086
|
};
|
|
9086
9087
|
}, []);
|
|
9087
|
-
const actualChildPropsSelector = useMemo(() => {
|
|
9088
|
+
const actualChildPropsSelector = React.useMemo(() => {
|
|
9088
9089
|
const selector = () => {
|
|
9089
9090
|
// Tricky logic here:
|
|
9090
9091
|
// - This render may have been triggered by a Redux store update that produced new child props
|
|
@@ -9108,7 +9109,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9108
9109
|
// about useLayoutEffect in SSR, so we try to detect environment and fall back to
|
|
9109
9110
|
// just useEffect instead to avoid the warning, since neither will run anyway.
|
|
9110
9111
|
|
|
9111
|
-
const subscribeForReact = useMemo(() => {
|
|
9112
|
+
const subscribeForReact = React.useMemo(() => {
|
|
9112
9113
|
const subscribe = reactListener => {
|
|
9113
9114
|
if (!subscription) {
|
|
9114
9115
|
return () => {};
|
|
@@ -9144,7 +9145,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9144
9145
|
}); // Now that all that's done, we can finally try to actually render the child component.
|
|
9145
9146
|
// We memoize the elements for the rendered child component as an optimization.
|
|
9146
9147
|
|
|
9147
|
-
const renderedWrappedComponent = useMemo(() => {
|
|
9148
|
+
const renderedWrappedComponent = React.useMemo(() => {
|
|
9148
9149
|
return (
|
|
9149
9150
|
/*#__PURE__*/
|
|
9150
9151
|
// @ts-ignore
|
|
@@ -9155,7 +9156,7 @@ function connect(mapStateToProps, mapDispatchToProps, mergeProps, {
|
|
|
9155
9156
|
}, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
|
|
9156
9157
|
// that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
|
|
9157
9158
|
|
|
9158
|
-
const renderedChild = useMemo(() => {
|
|
9159
|
+
const renderedChild = React.useMemo(() => {
|
|
9159
9160
|
if (shouldHandleStateChanges) {
|
|
9160
9161
|
// If this component is subscribed to store updates, we need to pass its own
|
|
9161
9162
|
// subscription instance down to our descendants. That means rendering the same
|
|
@@ -9212,7 +9213,7 @@ function Provider({
|
|
|
9212
9213
|
stabilityCheck = 'once',
|
|
9213
9214
|
noopCheck = 'once'
|
|
9214
9215
|
}) {
|
|
9215
|
-
const contextValue =
|
|
9216
|
+
const contextValue = compat_module.useMemo(() => {
|
|
9216
9217
|
const subscription = Subscription_createSubscription(store);
|
|
9217
9218
|
return {
|
|
9218
9219
|
store,
|
|
@@ -9222,7 +9223,7 @@ function Provider({
|
|
|
9222
9223
|
noopCheck
|
|
9223
9224
|
};
|
|
9224
9225
|
}, [store, serverState, stabilityCheck, noopCheck]);
|
|
9225
|
-
const previousState =
|
|
9226
|
+
const previousState = compat_module.useMemo(() => store.getState(), [store]);
|
|
9226
9227
|
useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(() => {
|
|
9227
9228
|
const {
|
|
9228
9229
|
subscription
|
|
@@ -9241,7 +9242,7 @@ function Provider({
|
|
|
9241
9242
|
}, [contextValue, previousState]);
|
|
9242
9243
|
const Context = context || Context_ReactReduxContext; // @ts-ignore 'AnyAction' is assignable to the constraint of type 'A', but 'A' could be instantiated with a different subtype
|
|
9243
9244
|
|
|
9244
|
-
return /*#__PURE__*/compat_module
|
|
9245
|
+
return /*#__PURE__*/compat_module.createElement(Context.Provider, {
|
|
9245
9246
|
value: contextValue
|
|
9246
9247
|
}, children);
|
|
9247
9248
|
}
|
|
@@ -9250,11 +9251,11 @@ function Provider({
|
|
|
9250
9251
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
|
|
9251
9252
|
|
|
9252
9253
|
|
|
9253
|
-
/**
|
|
9254
|
-
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
9255
|
-
*
|
|
9256
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9257
|
-
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
9254
|
+
/**
|
|
9255
|
+
* Hook factory, which creates a `useStore` hook bound to a given context.
|
|
9256
|
+
*
|
|
9257
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9258
|
+
* @returns {Function} A `useStore` hook bound to the specified context.
|
|
9258
9259
|
*/
|
|
9259
9260
|
|
|
9260
9261
|
function createStoreHook(context = Context_ReactReduxContext) {
|
|
@@ -9269,31 +9270,31 @@ function createStoreHook(context = Context_ReactReduxContext) {
|
|
|
9269
9270
|
return store;
|
|
9270
9271
|
};
|
|
9271
9272
|
}
|
|
9272
|
-
/**
|
|
9273
|
-
* A hook to access the redux store.
|
|
9274
|
-
*
|
|
9275
|
-
* @returns {any} the redux store
|
|
9276
|
-
*
|
|
9277
|
-
* @example
|
|
9278
|
-
*
|
|
9279
|
-
* import React from 'react'
|
|
9280
|
-
* import { useStore } from 'react-redux'
|
|
9281
|
-
*
|
|
9282
|
-
* export const ExampleComponent = () => {
|
|
9283
|
-
* const store = useStore()
|
|
9284
|
-
* return <div>{store.getState()}</div>
|
|
9285
|
-
* }
|
|
9273
|
+
/**
|
|
9274
|
+
* A hook to access the redux store.
|
|
9275
|
+
*
|
|
9276
|
+
* @returns {any} the redux store
|
|
9277
|
+
*
|
|
9278
|
+
* @example
|
|
9279
|
+
*
|
|
9280
|
+
* import React from 'react'
|
|
9281
|
+
* import { useStore } from 'react-redux'
|
|
9282
|
+
*
|
|
9283
|
+
* export const ExampleComponent = () => {
|
|
9284
|
+
* const store = useStore()
|
|
9285
|
+
* return <div>{store.getState()}</div>
|
|
9286
|
+
* }
|
|
9286
9287
|
*/
|
|
9287
9288
|
|
|
9288
9289
|
const useStore_useStore = /*#__PURE__*/createStoreHook();
|
|
9289
9290
|
;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
|
|
9290
9291
|
|
|
9291
9292
|
|
|
9292
|
-
/**
|
|
9293
|
-
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
9294
|
-
*
|
|
9295
|
-
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9296
|
-
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
9293
|
+
/**
|
|
9294
|
+
* Hook factory, which creates a `useDispatch` hook bound to a given context.
|
|
9295
|
+
*
|
|
9296
|
+
* @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
|
|
9297
|
+
* @returns {Function} A `useDispatch` hook bound to the specified context.
|
|
9297
9298
|
*/
|
|
9298
9299
|
|
|
9299
9300
|
function createDispatchHook(context = Context_ReactReduxContext) {
|
|
@@ -9305,26 +9306,26 @@ function createDispatchHook(context = Context_ReactReduxContext) {
|
|
|
9305
9306
|
return store.dispatch;
|
|
9306
9307
|
};
|
|
9307
9308
|
}
|
|
9308
|
-
/**
|
|
9309
|
-
* A hook to access the redux `dispatch` function.
|
|
9310
|
-
*
|
|
9311
|
-
* @returns {any|function} redux store's `dispatch` function
|
|
9312
|
-
*
|
|
9313
|
-
* @example
|
|
9314
|
-
*
|
|
9315
|
-
* import React, { useCallback } from 'react'
|
|
9316
|
-
* import { useDispatch } from 'react-redux'
|
|
9317
|
-
*
|
|
9318
|
-
* export const CounterComponent = ({ value }) => {
|
|
9319
|
-
* const dispatch = useDispatch()
|
|
9320
|
-
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
9321
|
-
* return (
|
|
9322
|
-
* <div>
|
|
9323
|
-
* <span>{value}</span>
|
|
9324
|
-
* <button onClick={increaseCounter}>Increase counter</button>
|
|
9325
|
-
* </div>
|
|
9326
|
-
* )
|
|
9327
|
-
* }
|
|
9309
|
+
/**
|
|
9310
|
+
* A hook to access the redux `dispatch` function.
|
|
9311
|
+
*
|
|
9312
|
+
* @returns {any|function} redux store's `dispatch` function
|
|
9313
|
+
*
|
|
9314
|
+
* @example
|
|
9315
|
+
*
|
|
9316
|
+
* import React, { useCallback } from 'react'
|
|
9317
|
+
* import { useDispatch } from 'react-redux'
|
|
9318
|
+
*
|
|
9319
|
+
* export const CounterComponent = ({ value }) => {
|
|
9320
|
+
* const dispatch = useDispatch()
|
|
9321
|
+
* const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
|
|
9322
|
+
* return (
|
|
9323
|
+
* <div>
|
|
9324
|
+
* <span>{value}</span>
|
|
9325
|
+
* <button onClick={increaseCounter}>Increase counter</button>
|
|
9326
|
+
* </div>
|
|
9327
|
+
* )
|
|
9328
|
+
* }
|
|
9328
9329
|
*/
|
|
9329
9330
|
|
|
9330
9331
|
const useDispatch = /*#__PURE__*/createDispatchHook();
|
|
@@ -10716,6 +10717,15 @@ var Ajax = class {
|
|
|
10716
10717
|
};
|
|
10717
10718
|
|
|
10718
10719
|
// js/phoenix/longpoll.js
|
|
10720
|
+
var arrayBufferToBase64 = (buffer) => {
|
|
10721
|
+
let binary = "";
|
|
10722
|
+
let bytes = new Uint8Array(buffer);
|
|
10723
|
+
let len = bytes.byteLength;
|
|
10724
|
+
for (let i = 0; i < len; i++) {
|
|
10725
|
+
binary += String.fromCharCode(bytes[i]);
|
|
10726
|
+
}
|
|
10727
|
+
return btoa(binary);
|
|
10728
|
+
};
|
|
10719
10729
|
var LongPoll = class {
|
|
10720
10730
|
constructor(endPoint) {
|
|
10721
10731
|
this.endPoint = null;
|
|
@@ -10793,6 +10803,9 @@ var LongPoll = class {
|
|
|
10793
10803
|
});
|
|
10794
10804
|
}
|
|
10795
10805
|
send(body) {
|
|
10806
|
+
if (typeof body !== "string") {
|
|
10807
|
+
body = arrayBufferToBase64(body);
|
|
10808
|
+
}
|
|
10796
10809
|
if (this.currentBatch) {
|
|
10797
10810
|
this.currentBatch.push(body);
|
|
10798
10811
|
} else if (this.awaitingBatchAck) {
|
|
@@ -11531,12 +11544,14 @@ class ConversationConnector {
|
|
|
11531
11544
|
url: splittedUrl,
|
|
11532
11545
|
params
|
|
11533
11546
|
} = split_url_params(this.url);
|
|
11534
|
-
this.socket
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11547
|
+
if (!this.socket) {
|
|
11548
|
+
this.socket = new Socket(splittedUrl, {
|
|
11549
|
+
params: Object.assign(Object.assign({}, params), {
|
|
11550
|
+
v: javascripts_config/* apiVersion */.tW
|
|
11551
|
+
})
|
|
11552
|
+
});
|
|
11553
|
+
this.socket.connect();
|
|
11554
|
+
}
|
|
11540
11555
|
this.channel = this.socket.channel(this.channelTopic, {
|
|
11541
11556
|
authorization: `Bearer ${this.accessToken}`,
|
|
11542
11557
|
channelName: this.channelName
|
|
@@ -11601,8 +11616,6 @@ class ConversationConnector {
|
|
|
11601
11616
|
ready: false,
|
|
11602
11617
|
currentState: 'join_channel_erred'
|
|
11603
11618
|
});
|
|
11604
|
-
// @ts-ignore
|
|
11605
|
-
this.channel.socket.disconnect();
|
|
11606
11619
|
}).receive('timeout', () => {
|
|
11607
11620
|
log('[CHANEL][JOIN] Networking issue. Still waiting...');
|
|
11608
11621
|
});
|
|
@@ -11610,10 +11623,7 @@ class ConversationConnector {
|
|
|
11610
11623
|
disconnect() {
|
|
11611
11624
|
var _a;
|
|
11612
11625
|
(_a = this.channel) === null || _a === void 0 ? void 0 : _a.leave().receive('ok', () => {
|
|
11613
|
-
var _a, _b;
|
|
11614
11626
|
log('[CHANNEL][LEAVE] OK');
|
|
11615
|
-
(_a = this.socket) === null || _a === void 0 ? void 0 : _a.remove(this.channel);
|
|
11616
|
-
(_b = this.socket) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
11617
11627
|
__classPrivateFieldSet(this, _ConversationConnector_connectionListeners, [], "f");
|
|
11618
11628
|
});
|
|
11619
11629
|
}
|
|
@@ -12155,7 +12165,7 @@ _API_ready = new WeakMap(), _API_externalId = new WeakMap(), _API_conversationAu
|
|
|
12155
12165
|
return {
|
|
12156
12166
|
clientName: "@seamly/web-ui",
|
|
12157
12167
|
clientVariant: api_classPrivateFieldGet(this, _API_layoutMode, "f"),
|
|
12158
|
-
clientVersion: "22.3.0-beta.
|
|
12168
|
+
clientVersion: "22.3.0-beta.3",
|
|
12159
12169
|
currentUrl: window.location.toString(),
|
|
12160
12170
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
12161
12171
|
timezone: getTimeZone(),
|
|
@@ -15267,21 +15277,25 @@ const SeamlyEventSubscriber = () => {
|
|
|
15267
15277
|
}
|
|
15268
15278
|
}, [api, api.connectionInfo, api.conversation.socket, dispatch]);
|
|
15269
15279
|
(0,hooks_.useEffect)(() => {
|
|
15270
|
-
api.conversation.
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15280
|
+
if (api.connectionInfo && api.conversation.socket) {
|
|
15281
|
+
api.conversation.onConnection(({
|
|
15282
|
+
currentState
|
|
15283
|
+
}) => {
|
|
15284
|
+
if (currentState === 'join_channel_erred') {
|
|
15285
|
+
const seamlyGeneralError = new seamly_general_error/* default */.Z();
|
|
15286
|
+
dispatch((0,interrupt_slice/* setInterrupt */.uc)({
|
|
15287
|
+
name: seamlyGeneralError.name,
|
|
15288
|
+
message: seamlyGeneralError.message,
|
|
15289
|
+
langKey: seamlyGeneralError.langKey,
|
|
15290
|
+
originalEvent: seamlyGeneralError.originalEvent,
|
|
15291
|
+
originalError: seamlyGeneralError.originalError,
|
|
15292
|
+
action: seamlyGeneralError.action
|
|
15293
|
+
}));
|
|
15294
|
+
return true;
|
|
15295
|
+
}
|
|
15296
|
+
return false;
|
|
15297
|
+
});
|
|
15298
|
+
}
|
|
15285
15299
|
}, [api, api.connectionInfo, api.conversation.channel, dispatch]);
|
|
15286
15300
|
(0,hooks_.useEffect)(() => {
|
|
15287
15301
|
if (api.connectionInfo) {
|