@vc-shell/framework 1.0.255 → 1.0.256
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.0.256](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.255...v1.0.256) (2024-07-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **core:** fix useDynamicModules error ([f85b5ec](https://github.com/VirtoCommerce/vc-shell/commit/f85b5ecf0d9b39c66b1389796ad453aaae3800da))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.0.255](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.254...v1.0.255) (2024-07-12)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -40,10 +40,12 @@ export function useDynamicModules(app: App, { router, appName }: { router: Route
|
|
|
40
40
|
const appsUrl = "/Modules/$(VirtoCommerce.MarketplaceVendor)/Content/apps.json";
|
|
41
41
|
const modules: Apps[] = await fetch(appsUrl).then((res) => res.json());
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
const appModules = module[appName].modules;
|
|
43
|
+
const module = modules.find((module) => module[appName]);
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
if (typeof module !== "undefined") {
|
|
46
|
+
const appModules = module[appName]?.modules;
|
|
47
|
+
|
|
48
|
+
if (!(appModules && appModules.length)) {
|
|
47
49
|
throw new Error("Modules not found");
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAmCpC,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE;;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,KAAK,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAmCpC,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE;;EA4DnG"}
|
package/dist/framework.js
CHANGED
|
@@ -52470,10 +52470,10 @@ function yge(t) {
|
|
|
52470
52470
|
function bge(t, { router: e, appName: n }) {
|
|
52471
52471
|
async function r() {
|
|
52472
52472
|
try {
|
|
52473
|
-
const
|
|
52474
|
-
|
|
52475
|
-
const s = o[n]
|
|
52476
|
-
if (!s.length)
|
|
52473
|
+
const o = (await fetch("/Modules/$(VirtoCommerce.MarketplaceVendor)/Content/apps.json").then((s) => s.json())).find((s) => s[n]);
|
|
52474
|
+
if (typeof o < "u") {
|
|
52475
|
+
const s = o[n]?.modules;
|
|
52476
|
+
if (!(s && s.length))
|
|
52477
52477
|
throw new Error("Modules not found");
|
|
52478
52478
|
for (const l of s) {
|
|
52479
52479
|
const u = l.url.replace(/^([^/])/, "/$1").replace(/([^/])$/, "$1/"), c = await fetch(u + "manifest.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vc-shell/framework",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.256",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/framework.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/dompurify": "^3.0.5",
|
|
63
63
|
"@types/quill": "^2.0.14",
|
|
64
|
-
"@vc-shell/api-client-generator": "^1.0.
|
|
65
|
-
"@vc-shell/config-generator": "^1.0.
|
|
66
|
-
"@vc-shell/ts-config": "^1.0.
|
|
64
|
+
"@vc-shell/api-client-generator": "^1.0.256",
|
|
65
|
+
"@vc-shell/config-generator": "^1.0.256",
|
|
66
|
+
"@vc-shell/ts-config": "^1.0.256",
|
|
67
67
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
68
68
|
"cypress-signalr-mock": "^1.5.0",
|
|
69
69
|
"sass": "^1.69.6",
|