@variousjs/various 5.0.1 → 5.1.0
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 +122 -59
- package/dist/index.dev.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/standalone-dev.js +1807 -0
- package/dist/standalone-dev.js.map +1 -0
- package/dist/standalone.js +2 -0
- package/dist/standalone.js.map +1 -0
- package/index.d.ts +29 -27
- package/package.json +31 -8
package/dist/index.dev.js
CHANGED
|
@@ -45,6 +45,7 @@ function _extends() {
|
|
|
45
45
|
"use strict";
|
|
46
46
|
__webpack_require__.r(__webpack_exports__);
|
|
47
47
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48
|
+
/* harmony export */ BASE_DEPENDENCIES: function() { return /* binding */ BASE_DEPENDENCIES; },
|
|
48
49
|
/* harmony export */ CONFIG_KEY: function() { return /* binding */ CONFIG_KEY; },
|
|
49
50
|
/* harmony export */ DEPENDENCIES_KEY: function() { return /* binding */ DEPENDENCIES_KEY; },
|
|
50
51
|
/* harmony export */ MESSAGE_KEY: function() { return /* binding */ MESSAGE_KEY; },
|
|
@@ -60,6 +61,7 @@ const DEPENDENCIES_KEY = Symbol('DEPENDENCIES');
|
|
|
60
61
|
const ROOT = '#root';
|
|
61
62
|
const VUE_FUNCTION_OPTIONS = ['beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUpdate', 'updated', 'beforeUnmount', 'unmounted', 'errorCaptured', 'renderTracked', 'renderTriggered', 'activated', 'deactivated', 'setup', 'data', 'render'];
|
|
62
63
|
const VUE_VERSION = 3;
|
|
64
|
+
const BASE_DEPENDENCIES = ['react', 'react-dom', '@variousjs/various', 'app'];
|
|
63
65
|
|
|
64
66
|
/***/ }),
|
|
65
67
|
|
|
@@ -77,8 +79,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
77
79
|
|
|
78
80
|
class Connector {
|
|
79
81
|
constructor() {
|
|
80
|
-
this.
|
|
81
|
-
this.
|
|
82
|
+
this.fallbackComponent = _default_component__WEBPACK_IMPORTED_MODULE_0__.Fallback;
|
|
83
|
+
this.errorFallbackComponent = _default_component__WEBPACK_IMPORTED_MODULE_0__.ErrorFallback;
|
|
82
84
|
this.storeActions = {};
|
|
83
85
|
this.componentActions = {};
|
|
84
86
|
this.i18nConfigs = {};
|
|
@@ -128,17 +130,17 @@ class Connector {
|
|
|
128
130
|
getStoreActions() {
|
|
129
131
|
return this.storeActions;
|
|
130
132
|
}
|
|
131
|
-
|
|
132
|
-
this.
|
|
133
|
+
setFallbackComponent(fallbackComponent) {
|
|
134
|
+
this.fallbackComponent = fallbackComponent;
|
|
133
135
|
}
|
|
134
|
-
|
|
135
|
-
return this.
|
|
136
|
+
getFallbackComponent() {
|
|
137
|
+
return this.fallbackComponent;
|
|
136
138
|
}
|
|
137
|
-
|
|
138
|
-
this.
|
|
139
|
+
setErrorFallbackComponent(errorFallbackComponent) {
|
|
140
|
+
this.errorFallbackComponent = errorFallbackComponent;
|
|
139
141
|
}
|
|
140
|
-
|
|
141
|
-
return this.
|
|
142
|
+
getErrorFallbackComponent() {
|
|
143
|
+
return this.errorFallbackComponent;
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
/* harmony default export */ __webpack_exports__["default"] = (new Connector());
|
|
@@ -188,7 +190,8 @@ const createComponent = (config, storeKeys) => {
|
|
|
188
190
|
};
|
|
189
191
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_3__["default"], {
|
|
190
192
|
name: name,
|
|
191
|
-
module: module
|
|
193
|
+
module: module,
|
|
194
|
+
url: url
|
|
192
195
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(C, nextProps));
|
|
193
196
|
};
|
|
194
197
|
component.displayName = 'various-creator';
|
|
@@ -232,7 +235,7 @@ const createModule = (config, logError = true) => {
|
|
|
232
235
|
(0,_helper__WEBPACK_IMPORTED_MODULE_3__.resetDependencyConfig)(name, url);
|
|
233
236
|
}
|
|
234
237
|
return new Promise((resolve, reject) => {
|
|
235
|
-
if (!url && !dependencies[name]) {
|
|
238
|
+
if (!url && !dependencies[name] && !(0,_helper__WEBPACK_IMPORTED_MODULE_3__.isModuleSpecified)(name)) {
|
|
236
239
|
const error = new _helper__WEBPACK_IMPORTED_MODULE_3__.VariousError({
|
|
237
240
|
name,
|
|
238
241
|
module,
|
|
@@ -314,22 +317,35 @@ const createModule = (config, logError = true) => {
|
|
|
314
317
|
"use strict";
|
|
315
318
|
__webpack_require__.r(__webpack_exports__);
|
|
316
319
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
317
|
-
/* harmony export */
|
|
318
|
-
/* harmony export */
|
|
319
|
-
/* harmony export */
|
|
320
|
+
/* harmony export */ ErrorFallback: function() { return /* binding */ ErrorFallback; },
|
|
321
|
+
/* harmony export */ Fallback: function() { return /* binding */ Fallback; },
|
|
322
|
+
/* harmony export */ Root: function() { return /* binding */ Root; }
|
|
320
323
|
/* harmony export */ });
|
|
321
324
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
322
325
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
326
|
+
/* harmony import */ var _helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helper */ "./src/core/helper.ts");
|
|
327
|
+
|
|
323
328
|
|
|
324
|
-
const
|
|
325
|
-
const
|
|
329
|
+
const Fallback = props => {
|
|
330
|
+
const className = (0,_helper__WEBPACK_IMPORTED_MODULE_1__.getClassNameWithModule)(props.$self, 'various-component-fallback');
|
|
331
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
332
|
+
className: className
|
|
333
|
+
}, "Loading");
|
|
334
|
+
};
|
|
335
|
+
const ErrorFallback = ({
|
|
326
336
|
$error,
|
|
327
|
-
$reload
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
337
|
+
$reload,
|
|
338
|
+
$self
|
|
339
|
+
}) => {
|
|
340
|
+
const className = (0,_helper__WEBPACK_IMPORTED_MODULE_1__.getClassNameWithModule)($self, 'various-component-error_fallback');
|
|
341
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
342
|
+
className: className
|
|
343
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("h3", null, $error.type), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", null, $error.message), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", {
|
|
344
|
+
type: "button",
|
|
345
|
+
onClick: $reload
|
|
346
|
+
}, "Reload"));
|
|
347
|
+
};
|
|
348
|
+
const Root = () => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, "App Container is not defined");
|
|
333
349
|
|
|
334
350
|
/***/ }),
|
|
335
351
|
|
|
@@ -469,6 +485,7 @@ class ErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
|
469
485
|
module
|
|
470
486
|
});
|
|
471
487
|
}
|
|
488
|
+
$self = (0,_helper__WEBPACK_IMPORTED_MODULE_1__.getSelfInfo)(this.props);
|
|
472
489
|
reload = () => {
|
|
473
490
|
this.error = undefined;
|
|
474
491
|
this.setState({
|
|
@@ -476,16 +493,11 @@ class ErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
|
476
493
|
});
|
|
477
494
|
};
|
|
478
495
|
render() {
|
|
479
|
-
const
|
|
480
|
-
name,
|
|
481
|
-
module
|
|
482
|
-
} = this.props;
|
|
483
|
-
const ErrorNode = _connector__WEBPACK_IMPORTED_MODULE_2__["default"].getErrorComponent();
|
|
496
|
+
const ErrorFallbackNode = _connector__WEBPACK_IMPORTED_MODULE_2__["default"].getErrorFallbackComponent();
|
|
484
497
|
const store = (0,_store__WEBPACK_IMPORTED_MODULE_3__.getUserStore)();
|
|
485
498
|
if (this.state.hasError) {
|
|
486
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
487
|
-
$
|
|
488
|
-
$module: module,
|
|
499
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ErrorFallbackNode, {
|
|
500
|
+
$self: this.$self,
|
|
489
501
|
$reload: this.reload,
|
|
490
502
|
$store: store,
|
|
491
503
|
$error: this.error
|
|
@@ -511,15 +523,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
511
523
|
/* harmony export */ checkReactComponent: function() { return /* binding */ checkReactComponent; },
|
|
512
524
|
/* harmony export */ checkVueComponent: function() { return /* binding */ checkVueComponent; },
|
|
513
525
|
/* harmony export */ defineDependencies: function() { return /* binding */ defineDependencies; },
|
|
526
|
+
/* harmony export */ getClassNameWithModule: function() { return /* binding */ getClassNameWithModule; },
|
|
514
527
|
/* harmony export */ getConfig: function() { return /* binding */ getConfig; },
|
|
515
528
|
/* harmony export */ getMountedComponents: function() { return /* binding */ getMountedComponents; },
|
|
516
529
|
/* harmony export */ getNameWithModule: function() { return /* binding */ getNameWithModule; },
|
|
530
|
+
/* harmony export */ getSelfInfo: function() { return /* binding */ getSelfInfo; },
|
|
517
531
|
/* harmony export */ isModuleLoaded: function() { return /* binding */ isModuleLoaded; },
|
|
532
|
+
/* harmony export */ isModuleSpecified: function() { return /* binding */ isModuleSpecified; },
|
|
518
533
|
/* harmony export */ isPromiseLike: function() { return /* binding */ isPromiseLike; },
|
|
519
534
|
/* harmony export */ onComponentMounted: function() { return /* binding */ onComponentMounted; },
|
|
520
535
|
/* harmony export */ onError: function() { return /* binding */ onError; },
|
|
521
536
|
/* harmony export */ parseComponentActions: function() { return /* binding */ parseComponentActions; },
|
|
522
537
|
/* harmony export */ preloadModules: function() { return /* binding */ preloadModules; },
|
|
538
|
+
/* harmony export */ removeLoadedModules: function() { return /* binding */ removeLoadedModules; },
|
|
523
539
|
/* harmony export */ resetDependencyConfig: function() { return /* binding */ resetDependencyConfig; },
|
|
524
540
|
/* harmony export */ updateMountedComponent: function() { return /* binding */ updateMountedComponent; },
|
|
525
541
|
/* harmony export */ updateUnMountComponent: function() { return /* binding */ updateUnMountComponent; }
|
|
@@ -538,16 +554,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
538
554
|
|
|
539
555
|
const getUrlHash = url => `${url}?${+new Date()}`;
|
|
540
556
|
const hasModule = (modules, module) => modules.some(c => c.name === module.name && c.module === module.module);
|
|
541
|
-
const preloadModules =
|
|
542
|
-
const names = typeof name === 'string' ? [name] : name;
|
|
557
|
+
const preloadModules = names => new Promise((resolve, reject) => {
|
|
543
558
|
window.requirejs(names, resolve, reject);
|
|
544
559
|
});
|
|
560
|
+
const removeLoadedModules = names => {
|
|
561
|
+
names.forEach(name => {
|
|
562
|
+
if (!_config__WEBPACK_IMPORTED_MODULE_2__.BASE_DEPENDENCIES.includes(name)) {
|
|
563
|
+
window.requirejs.undef(name);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
};
|
|
545
567
|
const defineDependencies = deps => {
|
|
546
568
|
const dependencies = (0,_store__WEBPACK_IMPORTED_MODULE_0__.getStore)(_config__WEBPACK_IMPORTED_MODULE_2__.DEPENDENCIES_KEY);
|
|
547
569
|
const next = {};
|
|
548
570
|
Object.keys(deps).forEach(name => {
|
|
549
|
-
|
|
550
|
-
|
|
571
|
+
if (!_config__WEBPACK_IMPORTED_MODULE_2__.BASE_DEPENDENCIES.includes(name)) {
|
|
572
|
+
next[name] = `${deps[name]}#${name}`;
|
|
573
|
+
window.requirejs.undef(name);
|
|
574
|
+
}
|
|
551
575
|
});
|
|
552
576
|
window.requirejs.config({
|
|
553
577
|
paths: next
|
|
@@ -559,7 +583,8 @@ const defineDependencies = deps => {
|
|
|
559
583
|
}
|
|
560
584
|
}, true);
|
|
561
585
|
};
|
|
562
|
-
const isModuleLoaded = name => window.requirejs.
|
|
586
|
+
const isModuleLoaded = name => window.requirejs.defined(name);
|
|
587
|
+
const isModuleSpecified = name => window.requirejs.specified(name);
|
|
563
588
|
const getMountedComponents = () => (0,_store__WEBPACK_IMPORTED_MODULE_0__.getStore)(_config__WEBPACK_IMPORTED_MODULE_2__.MOUNTED_COMPONENTS_KEY);
|
|
564
589
|
const onComponentMounted = (module, callback) => {
|
|
565
590
|
const modules = Array.isArray(module) ? module : [module];
|
|
@@ -743,6 +768,26 @@ function updateUnMountComponent(moduleDefined) {
|
|
|
743
768
|
module
|
|
744
769
|
});
|
|
745
770
|
}
|
|
771
|
+
function getSelfInfo(params) {
|
|
772
|
+
const {
|
|
773
|
+
name,
|
|
774
|
+
module,
|
|
775
|
+
url
|
|
776
|
+
} = params;
|
|
777
|
+
const dependencies = (0,_store__WEBPACK_IMPORTED_MODULE_0__.getStore)(_config__WEBPACK_IMPORTED_MODULE_2__.DEPENDENCIES_KEY);
|
|
778
|
+
return {
|
|
779
|
+
name,
|
|
780
|
+
module,
|
|
781
|
+
url: url || dependencies[name]
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
function getClassNameWithModule(self, prefix) {
|
|
785
|
+
const {
|
|
786
|
+
name,
|
|
787
|
+
module
|
|
788
|
+
} = self;
|
|
789
|
+
return `${prefix} ${[name, module].filter(Boolean).join('-')}`;
|
|
790
|
+
}
|
|
746
791
|
|
|
747
792
|
/***/ }),
|
|
748
793
|
|
|
@@ -1156,8 +1201,13 @@ function reactComponent(config) {
|
|
|
1156
1201
|
name,
|
|
1157
1202
|
module
|
|
1158
1203
|
});
|
|
1204
|
+
$self = (0,_helper__WEBPACK_IMPORTED_MODULE_2__.getSelfInfo)({
|
|
1205
|
+
name,
|
|
1206
|
+
module,
|
|
1207
|
+
url
|
|
1208
|
+
});
|
|
1159
1209
|
render() {
|
|
1160
|
-
const
|
|
1210
|
+
const Fallback = _connector__WEBPACK_IMPORTED_MODULE_4__["default"].getFallbackComponent();
|
|
1161
1211
|
const {
|
|
1162
1212
|
$silent,
|
|
1163
1213
|
$componentProps,
|
|
@@ -1176,13 +1226,13 @@ function reactComponent(config) {
|
|
|
1176
1226
|
if ($silent || (0,_helper__WEBPACK_IMPORTED_MODULE_2__.isModuleLoaded)(name)) {
|
|
1177
1227
|
return null;
|
|
1178
1228
|
}
|
|
1179
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
1180
|
-
$
|
|
1181
|
-
$module: module,
|
|
1229
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Fallback, {
|
|
1230
|
+
$self: this.$self,
|
|
1182
1231
|
$store: store
|
|
1183
1232
|
});
|
|
1184
1233
|
}
|
|
1185
1234
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ComponentNode, (0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, $componentProps, {
|
|
1235
|
+
$self: this.$self,
|
|
1186
1236
|
$dispatch: this.$dispatch,
|
|
1187
1237
|
$store: store,
|
|
1188
1238
|
$postMessage: this.$postMessage,
|
|
@@ -1215,6 +1265,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1215
1265
|
/* harmony import */ var _react_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-component */ "./src/core/react-component.tsx");
|
|
1216
1266
|
/* harmony import */ var _vue_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vue-component */ "./src/core/vue-component.tsx");
|
|
1217
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");
|
|
1269
|
+
|
|
1218
1270
|
|
|
1219
1271
|
|
|
1220
1272
|
|
|
@@ -1248,7 +1300,11 @@ const renderComponent = ({
|
|
|
1248
1300
|
$silent,
|
|
1249
1301
|
$ref
|
|
1250
1302
|
};
|
|
1251
|
-
const node = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
1303
|
+
const node = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
1304
|
+
name: name,
|
|
1305
|
+
module: module,
|
|
1306
|
+
url: url
|
|
1307
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(C, nextProps));
|
|
1252
1308
|
root.render(renderNode ? renderNode(node) : node);
|
|
1253
1309
|
return () => new Promise(resolve => {
|
|
1254
1310
|
setTimeout(() => {
|
|
@@ -1355,6 +1411,11 @@ function vueComponent(config) {
|
|
|
1355
1411
|
const errorRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1356
1412
|
const isUnMountedRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
|
|
1357
1413
|
const ComponentNodeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1414
|
+
const selfRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)((0,_helper__WEBPACK_IMPORTED_MODULE_4__.getSelfInfo)({
|
|
1415
|
+
name,
|
|
1416
|
+
module,
|
|
1417
|
+
url
|
|
1418
|
+
}));
|
|
1358
1419
|
const containerDivRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
1359
1420
|
const propsReactiveRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1360
1421
|
const storeReactiveRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
@@ -1363,7 +1424,7 @@ function vueComponent(config) {
|
|
|
1363
1424
|
const updateVueComponentRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)();
|
|
1364
1425
|
const [componentReady, setComponentReady] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
|
1365
1426
|
const [isError, setIsError] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
|
1366
|
-
const
|
|
1427
|
+
const Fallback = _connector__WEBPACK_IMPORTED_MODULE_1__["default"].getFallbackComponent();
|
|
1367
1428
|
const {
|
|
1368
1429
|
$silent,
|
|
1369
1430
|
$componentProps
|
|
@@ -1421,7 +1482,8 @@ function vueComponent(config) {
|
|
|
1421
1482
|
$logger,
|
|
1422
1483
|
$postMessage,
|
|
1423
1484
|
$t,
|
|
1424
|
-
$store: storeReactiveRef.current.value
|
|
1485
|
+
$store: storeReactiveRef.current.value,
|
|
1486
|
+
$self: selfRef.current
|
|
1425
1487
|
},
|
|
1426
1488
|
// eslint-disable-next-line react/no-this-in-sfc
|
|
1427
1489
|
key: this.key
|
|
@@ -1511,15 +1573,14 @@ function vueComponent(config) {
|
|
|
1511
1573
|
if (isError) {
|
|
1512
1574
|
throw errorRef.current;
|
|
1513
1575
|
}
|
|
1514
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !componentReady && !$silent && !(0,_helper__WEBPACK_IMPORTED_MODULE_4__.isModuleLoaded)(name) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
1515
|
-
$
|
|
1516
|
-
$module: module,
|
|
1576
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !componentReady && !$silent && !(0,_helper__WEBPACK_IMPORTED_MODULE_4__.isModuleLoaded)(name) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Fallback, {
|
|
1577
|
+
$self: selfRef.current,
|
|
1517
1578
|
$store: store
|
|
1518
1579
|
}) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
1519
|
-
className:
|
|
1580
|
+
className: (0,_helper__WEBPACK_IMPORTED_MODULE_4__.getClassNameWithModule)({
|
|
1520
1581
|
name,
|
|
1521
1582
|
module
|
|
1522
|
-
})
|
|
1583
|
+
}, 'various-vue-component'),
|
|
1523
1584
|
ref: containerDivRef
|
|
1524
1585
|
}));
|
|
1525
1586
|
};
|
|
@@ -1647,6 +1708,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1647
1708
|
/* harmony export */ isModuleLoaded: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.isModuleLoaded; },
|
|
1648
1709
|
/* harmony export */ onComponentMounted: function() { return /* reexport safe */ _helper__WEBPACK_IMPORTED_MODULE_12__.onComponentMounted; },
|
|
1649
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; },
|
|
1650
1712
|
/* harmony export */ renderComponent: function() { return /* reexport safe */ _render_component__WEBPACK_IMPORTED_MODULE_15__["default"]; },
|
|
1651
1713
|
/* harmony export */ version: function() { return /* binding */ version; }
|
|
1652
1714
|
/* harmony export */ });
|
|
@@ -1688,16 +1750,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1688
1750
|
|
|
1689
1751
|
|
|
1690
1752
|
// eslint-disable-next-line no-undef
|
|
1691
|
-
const version = "5.0
|
|
1753
|
+
const version = "5.1.0";
|
|
1692
1754
|
/* harmony default export */ __webpack_exports__["default"] = (config => {
|
|
1693
1755
|
const {
|
|
1694
1756
|
dependencies,
|
|
1695
1757
|
root,
|
|
1696
1758
|
store = {},
|
|
1697
1759
|
actions = {},
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1760
|
+
Fallback,
|
|
1761
|
+
ErrorFallback,
|
|
1762
|
+
Root = _default_component__WEBPACK_IMPORTED_MODULE_6__.Root,
|
|
1701
1763
|
middlewares,
|
|
1702
1764
|
i18n,
|
|
1703
1765
|
...rest
|
|
@@ -1706,11 +1768,11 @@ const version = "5.0.1";
|
|
|
1706
1768
|
_connector__WEBPACK_IMPORTED_MODULE_4__["default"].setMiddlewares(middlewares);
|
|
1707
1769
|
}
|
|
1708
1770
|
_connector__WEBPACK_IMPORTED_MODULE_4__["default"].setStoreActions(actions);
|
|
1709
|
-
if (
|
|
1710
|
-
_connector__WEBPACK_IMPORTED_MODULE_4__["default"].
|
|
1771
|
+
if (Fallback) {
|
|
1772
|
+
_connector__WEBPACK_IMPORTED_MODULE_4__["default"].setFallbackComponent(Fallback);
|
|
1711
1773
|
}
|
|
1712
|
-
if (
|
|
1713
|
-
_connector__WEBPACK_IMPORTED_MODULE_4__["default"].
|
|
1774
|
+
if (ErrorFallback) {
|
|
1775
|
+
_connector__WEBPACK_IMPORTED_MODULE_4__["default"].setErrorFallbackComponent(ErrorFallback);
|
|
1714
1776
|
}
|
|
1715
1777
|
(0,_store__WEBPACK_IMPORTED_MODULE_2__.createStore)({
|
|
1716
1778
|
...store,
|
|
@@ -1719,7 +1781,7 @@ const version = "5.0.1";
|
|
|
1719
1781
|
[_config__WEBPACK_IMPORTED_MODULE_3__.DEPENDENCIES_KEY]: dependencies,
|
|
1720
1782
|
[_config__WEBPACK_IMPORTED_MODULE_3__.MESSAGE_KEY]: null
|
|
1721
1783
|
});
|
|
1722
|
-
|
|
1784
|
+
Root.displayName = 'various-app-root';
|
|
1723
1785
|
class R extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
1724
1786
|
static displayName = 'various-app';
|
|
1725
1787
|
componentDidMount() {
|
|
@@ -1727,8 +1789,9 @@ const version = "5.0.1";
|
|
|
1727
1789
|
}
|
|
1728
1790
|
render() {
|
|
1729
1791
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
1730
|
-
name: "app"
|
|
1731
|
-
|
|
1792
|
+
name: "app",
|
|
1793
|
+
url: dependencies.app
|
|
1794
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Root, null));
|
|
1732
1795
|
}
|
|
1733
1796
|
}
|
|
1734
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));
|