@variousjs/various 5.1.0 → 5.1.2

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/dist/index.dev.js CHANGED
@@ -1,4 +1,4 @@
1
- define(["react","react-dom/client"], function(__WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom_client__) { return /******/ (function() { // webpackBootstrap
1
+ define(["react"], function(__WEBPACK_EXTERNAL_MODULE_react__) { return /******/ (function() { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
4
  /***/ "./node_modules/@babel/runtime/helpers/esm/extends.js":
@@ -50,7 +50,6 @@ __webpack_require__.r(__webpack_exports__);
50
50
  /* harmony export */ DEPENDENCIES_KEY: function() { return /* binding */ DEPENDENCIES_KEY; },
51
51
  /* harmony export */ MESSAGE_KEY: function() { return /* binding */ MESSAGE_KEY; },
52
52
  /* harmony export */ MOUNTED_COMPONENTS_KEY: function() { return /* binding */ MOUNTED_COMPONENTS_KEY; },
53
- /* harmony export */ ROOT: function() { return /* binding */ ROOT; },
54
53
  /* harmony export */ VUE_FUNCTION_OPTIONS: function() { return /* binding */ VUE_FUNCTION_OPTIONS; },
55
54
  /* harmony export */ VUE_VERSION: function() { return /* binding */ VUE_VERSION; }
56
55
  /* harmony export */ });
@@ -58,7 +57,6 @@ const MOUNTED_COMPONENTS_KEY = Symbol('MOUNTED_COMPONENTS');
58
57
  const MESSAGE_KEY = Symbol('MESSAGE');
59
58
  const CONFIG_KEY = Symbol('CONFIG');
60
59
  const DEPENDENCIES_KEY = Symbol('DEPENDENCIES');
61
- const ROOT = '#root';
62
60
  const VUE_FUNCTION_OPTIONS = ['beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'beforeUnmount', 'unmounted', 'errorCaptured', 'renderTracked', 'renderTriggered', 'activated', 'deactivated', 'setup', 'data', 'render'];
63
61
  const VUE_VERSION = 3;
64
62
  const BASE_DEPENDENCIES = ['react', 'react-dom', '@variousjs/various', 'app'];
@@ -1129,6 +1127,7 @@ function reactComponent(config) {
1129
1127
  };
1130
1128
  unSubscribeMessage = () => null;
1131
1129
  componentDidMount() {
1130
+ this.isUnMounted = false; // fix StrictMode
1132
1131
  this.mountComponent();
1133
1132
  }
1134
1133
  componentWillUnmount() {
@@ -1260,19 +1259,18 @@ function reactComponent(config) {
1260
1259
  __webpack_require__.r(__webpack_exports__);
1261
1260
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1262
1261
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1263
- /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "react-dom/client");
1264
- /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom_client__WEBPACK_IMPORTED_MODULE_1__);
1265
- /* harmony import */ var _react_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-component */ "./src/core/react-component.tsx");
1266
- /* harmony import */ var _vue_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vue-component */ "./src/core/vue-component.tsx");
1267
- /* harmony import */ var _helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helper */ "./src/core/helper.ts");
1268
- /* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./error-boundary */ "./src/core/error-boundary.tsx");
1262
+ /* harmony import */ var _react_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react-component */ "./src/core/react-component.tsx");
1263
+ /* harmony import */ var _vue_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-component */ "./src/core/vue-component.tsx");
1264
+ /* harmony import */ var _helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper */ "./src/core/helper.ts");
1265
+ /* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./error-boundary */ "./src/core/error-boundary.tsx");
1266
+ /* harmony import */ var _create_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./create-module */ "./src/core/create-module.ts");
1269
1267
 
1270
1268
 
1271
1269
 
1272
1270
 
1273
1271
 
1274
1272
 
1275
- const renderComponent = ({
1273
+ const renderComponent = async ({
1276
1274
  name,
1277
1275
  module,
1278
1276
  url,
@@ -1282,14 +1280,17 @@ const renderComponent = ({
1282
1280
  renderNode,
1283
1281
  onMounted
1284
1282
  }) => {
1285
- const C = (type === 'vue3' ? _vue_component__WEBPACK_IMPORTED_MODULE_3__["default"] : _react_component__WEBPACK_IMPORTED_MODULE_2__["default"])({
1286
- name,
1287
- module,
1288
- url,
1289
- onMounted
1290
- });
1291
1283
  try {
1292
- const root = (0,react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot)(target);
1284
+ const ReactDOM = await (0,_create_module__WEBPACK_IMPORTED_MODULE_5__["default"])({
1285
+ name: 'react-dom'
1286
+ });
1287
+ const C = (type === 'vue3' ? _vue_component__WEBPACK_IMPORTED_MODULE_2__["default"] : _react_component__WEBPACK_IMPORTED_MODULE_1__["default"])({
1288
+ name,
1289
+ module,
1290
+ url,
1291
+ onMounted
1292
+ });
1293
+ const root = ReactDOM.createRoot(target);
1293
1294
  const {
1294
1295
  $silent,
1295
1296
  $ref,
@@ -1300,7 +1301,7 @@ const renderComponent = ({
1300
1301
  $silent,
1301
1302
  $ref
1302
1303
  };
1303
- const node = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_5__["default"], {
1304
+ const node = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_4__["default"], {
1304
1305
  name: name,
1305
1306
  module: module,
1306
1307
  url: url
@@ -1313,12 +1314,13 @@ const renderComponent = ({
1313
1314
  });
1314
1315
  });
1315
1316
  } catch (e) {
1316
- (0,_helper__WEBPACK_IMPORTED_MODULE_4__.onError)(new _helper__WEBPACK_IMPORTED_MODULE_4__.VariousError({
1317
+ const error = new _helper__WEBPACK_IMPORTED_MODULE_3__.VariousError({
1317
1318
  name,
1318
1319
  module,
1319
1320
  type: 'SCRIPT_ERROR',
1320
1321
  originalError: e
1321
- }));
1322
+ });
1323
+ (0,_helper__WEBPACK_IMPORTED_MODULE_3__.onError)(error);
1322
1324
  return () => Promise.resolve();
1323
1325
  }
1324
1326
  };
@@ -1407,6 +1409,7 @@ function vueComponent(config) {
1407
1409
  const V = props => {
1408
1410
  const store = (0,_store__WEBPACK_IMPORTED_MODULE_3__.useStore)(...storeKeys);
1409
1411
  const vueRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
1412
+ const vmRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
1410
1413
  const isVueMounted = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
1411
1414
  const errorRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
1412
1415
  const isUnMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
@@ -1490,7 +1493,11 @@ function vueComponent(config) {
1490
1493
  });
1491
1494
  }
1492
1495
  });
1493
- vueApp.mount(containerDivRef.current);
1496
+
1497
+ // fix StrictMode
1498
+ if (!vmRef.current) {
1499
+ vmRef.current = vueApp.mount(containerDivRef.current);
1500
+ }
1494
1501
  isVueMounted.current = true;
1495
1502
  unMountVue.current = () => vueApp.unmount();
1496
1503
  }, [$componentProps, store]);
@@ -1538,17 +1545,21 @@ function vueComponent(config) {
1538
1545
  setIsError(true);
1539
1546
  }
1540
1547
  }, [mountVue]);
1541
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => () => {
1542
- errorRef.current = undefined;
1543
- ComponentNodeRef.current = undefined;
1544
- isUnMountedRef.current = true;
1545
- (0,_helper__WEBPACK_IMPORTED_MODULE_4__.updateUnMountComponent)({
1546
- name,
1547
- module
1548
- });
1549
- unMountVue.current?.();
1550
- unSubscribeMessageRef.current?.();
1551
- isVueMounted.current = false;
1548
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
1549
+ // fix StrictMode
1550
+ isUnMountedRef.current = false;
1551
+ return () => {
1552
+ errorRef.current = undefined;
1553
+ ComponentNodeRef.current = undefined;
1554
+ isUnMountedRef.current = true;
1555
+ (0,_helper__WEBPACK_IMPORTED_MODULE_4__.updateUnMountComponent)({
1556
+ name,
1557
+ module
1558
+ });
1559
+ unMountVue.current?.();
1560
+ unSubscribeMessageRef.current?.();
1561
+ isVueMounted.current = false;
1562
+ };
1552
1563
  }, []);
1553
1564
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
1554
1565
  if (isVueMounted.current) {
@@ -1605,17 +1616,6 @@ function vueComponent(config) {
1605
1616
  "use strict";
1606
1617
  module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
1607
1618
 
1608
- /***/ }),
1609
-
1610
- /***/ "react-dom/client":
1611
- /*!***********************************!*\
1612
- !*** external "react-dom/client" ***!
1613
- \***********************************/
1614
- /***/ (function(module) {
1615
-
1616
- "use strict";
1617
- module.exports = __WEBPACK_EXTERNAL_MODULE_react_dom_client__;
1618
-
1619
1619
  /***/ })
1620
1620
 
1621
1621
  /******/ });
@@ -1695,43 +1695,41 @@ var __webpack_exports__ = {};
1695
1695
  \****************************/
1696
1696
  __webpack_require__.r(__webpack_exports__);
1697
1697
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1698
- /* harmony export */ Nycticorax: function() { return /* reexport default from dynamic */ nycticorax__WEBPACK_IMPORTED_MODULE_8___default.a; },
1699
- /* harmony export */ createComponent: function() { return /* reexport safe */ _create_component__WEBPACK_IMPORTED_MODULE_14__["default"]; },
1700
- /* harmony export */ createDispatch: function() { return /* reexport safe */ _dispatch__WEBPACK_IMPORTED_MODULE_9__["default"]; },
1701
- /* harmony export */ createLogger: function() { return /* reexport safe */ _logger__WEBPACK_IMPORTED_MODULE_11__["default"]; },
1702
- /* harmony export */ createModule: function() { return /* reexport safe */ _create_module__WEBPACK_IMPORTED_MODULE_13__["default"]; },
1703
- /* harmony export */ createPostMessage: function() { return /* reexport safe */ _message__WEBPACK_IMPORTED_MODULE_10__.createPostMessage; },
1704
- /* harmony export */ defineDependencies: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.defineDependencies; },
1705
- /* harmony export */ getConfig: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.getConfig; },
1706
- /* harmony export */ getMountedComponents: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.getMountedComponents; },
1707
- /* harmony export */ getStore: function() { return /* reexport safe */ _store__WEBPACK_IMPORTED_MODULE_2__.getUserStore; },
1708
- /* harmony export */ isModuleLoaded: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.isModuleLoaded; },
1709
- /* harmony export */ onComponentMounted: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.onComponentMounted; },
1710
- /* harmony export */ preloadModules: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.preloadModules; },
1711
- /* harmony export */ removeLoadedModules: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.removeLoadedModules; },
1712
- /* harmony export */ renderComponent: function() { return /* reexport safe */ _render_component__WEBPACK_IMPORTED_MODULE_15__["default"]; },
1698
+ /* harmony export */ Nycticorax: function() { return /* reexport default from dynamic */ nycticorax__WEBPACK_IMPORTED_MODULE_7___default.a; },
1699
+ /* harmony export */ createComponent: function() { return /* reexport safe */ _create_component__WEBPACK_IMPORTED_MODULE_13__["default"]; },
1700
+ /* harmony export */ createDispatch: function() { return /* reexport safe */ _dispatch__WEBPACK_IMPORTED_MODULE_8__["default"]; },
1701
+ /* harmony export */ createLogger: function() { return /* reexport safe */ _logger__WEBPACK_IMPORTED_MODULE_10__["default"]; },
1702
+ /* harmony export */ createModule: function() { return /* reexport safe */ _create_module__WEBPACK_IMPORTED_MODULE_12__["default"]; },
1703
+ /* harmony export */ createPostMessage: function() { return /* reexport safe */ _message__WEBPACK_IMPORTED_MODULE_9__.createPostMessage; },
1704
+ /* harmony export */ defineDependencies: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.defineDependencies; },
1705
+ /* harmony export */ getApp: function() { return /* binding */ getApp; },
1706
+ /* harmony export */ getConfig: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.getConfig; },
1707
+ /* harmony export */ getMountedComponents: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.getMountedComponents; },
1708
+ /* harmony export */ getStore: function() { return /* reexport safe */ _store__WEBPACK_IMPORTED_MODULE_1__.getUserStore; },
1709
+ /* harmony export */ isModuleLoaded: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.isModuleLoaded; },
1710
+ /* harmony export */ onComponentMounted: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.onComponentMounted; },
1711
+ /* harmony export */ preloadModules: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.preloadModules; },
1712
+ /* harmony export */ removeLoadedModules: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_11__.removeLoadedModules; },
1713
+ /* harmony export */ renderComponent: function() { return /* reexport safe */ _render_component__WEBPACK_IMPORTED_MODULE_14__["default"]; },
1713
1714
  /* harmony export */ version: function() { return /* binding */ version; }
1714
1715
  /* harmony export */ });
1715
1716
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1716
1717
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1717
- /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "react-dom/client");
1718
- /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom_client__WEBPACK_IMPORTED_MODULE_1__);
1719
- /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./store */ "./src/core/store.ts");
1720
- /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./config */ "./src/core/config.ts");
1721
- /* harmony import */ var _connector__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./connector */ "./src/core/connector.ts");
1722
- /* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./i18n */ "./src/core/i18n.ts");
1723
- /* harmony import */ var _default_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./default-component */ "./src/core/default-component.tsx");
1724
- /* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./error-boundary */ "./src/core/error-boundary.tsx");
1725
- /* harmony import */ var nycticorax__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! nycticorax */ "./node_modules/nycticorax/dist/index.js");
1726
- /* harmony import */ var nycticorax__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(nycticorax__WEBPACK_IMPORTED_MODULE_8__);
1727
- /* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dispatch */ "./src/core/dispatch.ts");
1728
- /* harmony import */ var _message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./message */ "./src/core/message.ts");
1729
- /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./logger */ "./src/core/logger.ts");
1730
- /* harmony import */ var _helper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helper */ "./src/core/helper.ts");
1731
- /* harmony import */ var _create_module__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./create-module */ "./src/core/create-module.ts");
1732
- /* harmony import */ var _create_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./create-component */ "./src/core/create-component.tsx");
1733
- /* harmony import */ var _render_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./render-component */ "./src/core/render-component.tsx");
1734
-
1718
+ /* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./store */ "./src/core/store.ts");
1719
+ /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config */ "./src/core/config.ts");
1720
+ /* harmony import */ var _connector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./connector */ "./src/core/connector.ts");
1721
+ /* harmony import */ var _i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./i18n */ "./src/core/i18n.ts");
1722
+ /* harmony import */ var _default_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./default-component */ "./src/core/default-component.tsx");
1723
+ /* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error-boundary */ "./src/core/error-boundary.tsx");
1724
+ /* harmony import */ var nycticorax__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! nycticorax */ "./node_modules/nycticorax/dist/index.js");
1725
+ /* harmony import */ var nycticorax__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(nycticorax__WEBPACK_IMPORTED_MODULE_7__);
1726
+ /* harmony import */ var _dispatch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dispatch */ "./src/core/dispatch.ts");
1727
+ /* harmony import */ var _message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./message */ "./src/core/message.ts");
1728
+ /* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./logger */ "./src/core/logger.ts");
1729
+ /* harmony import */ var _helper__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helper */ "./src/core/helper.ts");
1730
+ /* harmony import */ var _create_module__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./create-module */ "./src/core/create-module.ts");
1731
+ /* harmony import */ var _create_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./create-component */ "./src/core/create-component.tsx");
1732
+ /* harmony import */ var _render_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./render-component */ "./src/core/render-component.tsx");
1735
1733
 
1736
1734
 
1737
1735
 
@@ -1750,52 +1748,50 @@ __webpack_require__.r(__webpack_exports__);
1750
1748
 
1751
1749
 
1752
1750
  // eslint-disable-next-line no-undef
1753
- const version = "5.1.0";
1754
- /* harmony default export */ __webpack_exports__["default"] = (config => {
1751
+ const version = "5.1.2";
1752
+ const getApp = config => {
1755
1753
  const {
1756
1754
  dependencies,
1757
- root,
1758
1755
  store = {},
1759
1756
  actions = {},
1760
1757
  Fallback,
1761
1758
  ErrorFallback,
1762
- Root = _default_component__WEBPACK_IMPORTED_MODULE_6__.Root,
1759
+ Root = _default_component__WEBPACK_IMPORTED_MODULE_5__.Root,
1763
1760
  middlewares,
1764
1761
  i18n,
1765
1762
  ...rest
1766
1763
  } = config;
1767
1764
  if (middlewares) {
1768
- _connector__WEBPACK_IMPORTED_MODULE_4__["default"].setMiddlewares(middlewares);
1765
+ _connector__WEBPACK_IMPORTED_MODULE_3__["default"].setMiddlewares(middlewares);
1769
1766
  }
1770
- _connector__WEBPACK_IMPORTED_MODULE_4__["default"].setStoreActions(actions);
1767
+ _connector__WEBPACK_IMPORTED_MODULE_3__["default"].setStoreActions(actions);
1771
1768
  if (Fallback) {
1772
- _connector__WEBPACK_IMPORTED_MODULE_4__["default"].setFallbackComponent(Fallback);
1769
+ _connector__WEBPACK_IMPORTED_MODULE_3__["default"].setFallbackComponent(Fallback);
1773
1770
  }
1774
1771
  if (ErrorFallback) {
1775
- _connector__WEBPACK_IMPORTED_MODULE_4__["default"].setErrorFallbackComponent(ErrorFallback);
1772
+ _connector__WEBPACK_IMPORTED_MODULE_3__["default"].setErrorFallbackComponent(ErrorFallback);
1776
1773
  }
1777
- (0,_store__WEBPACK_IMPORTED_MODULE_2__.createStore)({
1774
+ (0,_store__WEBPACK_IMPORTED_MODULE_1__.createStore)({
1778
1775
  ...store,
1779
- [_config__WEBPACK_IMPORTED_MODULE_3__.MOUNTED_COMPONENTS_KEY]: [],
1780
- [_config__WEBPACK_IMPORTED_MODULE_3__.CONFIG_KEY]: rest,
1781
- [_config__WEBPACK_IMPORTED_MODULE_3__.DEPENDENCIES_KEY]: dependencies,
1782
- [_config__WEBPACK_IMPORTED_MODULE_3__.MESSAGE_KEY]: null
1776
+ [_config__WEBPACK_IMPORTED_MODULE_2__.MOUNTED_COMPONENTS_KEY]: [],
1777
+ [_config__WEBPACK_IMPORTED_MODULE_2__.CONFIG_KEY]: rest,
1778
+ [_config__WEBPACK_IMPORTED_MODULE_2__.DEPENDENCIES_KEY]: dependencies,
1779
+ [_config__WEBPACK_IMPORTED_MODULE_2__.MESSAGE_KEY]: null
1783
1780
  });
1784
1781
  Root.displayName = 'various-app-root';
1785
- class R extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
1782
+ return class extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
1786
1783
  static displayName = 'various-app';
1787
1784
  componentDidMount() {
1788
- (0,_i18n__WEBPACK_IMPORTED_MODULE_5__.createI18nConfig)(i18n);
1785
+ (0,_i18n__WEBPACK_IMPORTED_MODULE_4__.createI18nConfig)(i18n);
1789
1786
  }
1790
1787
  render() {
1791
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_7__["default"], {
1788
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_6__["default"], {
1792
1789
  name: "app",
1793
1790
  url: dependencies.app
1794
1791
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Root, null));
1795
1792
  }
1796
- }
1797
- (0,react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot)(document.querySelector(root || _config__WEBPACK_IMPORTED_MODULE_3__.ROOT)).render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(R, null));
1798
- });
1793
+ };
1794
+ };
1799
1795
  }();
1800
1796
  /******/ return __webpack_exports__;
1801
1797
  /******/ })()