@vc-shell/create-vc-app 1.0.277 → 1.0.278

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.278](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.277...v1.0.278) (2024-08-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **create-vc-app:** add shims and change sample constants ([bfdc2d6](https://github.com/VirtoCommerce/vc-shell/commit/bfdc2d6bb50b17d88387b2f71aef8c8c931c3452))
7
+
8
+
9
+
1
10
  ## [1.0.277](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.276...v1.0.277) (2024-08-22)
2
11
 
3
12
 
package/dist/index.js CHANGED
@@ -6,14 +6,14 @@ import i from "node:path";
6
6
  import u from "node:fs";
7
7
  import { fileURLToPath as $e } from "node:url";
8
8
  import { cwd as je, argv as Ae, exit as ke } from "node:process";
9
- const we = "@vc-shell/create-vc-app", Oe = "Application scaffolding", Ne = "1.0.277", Me = "module", Te = "./dist/index.js", Ue = [
9
+ const we = "@vc-shell/create-vc-app", Oe = "Application scaffolding", Ne = "1.0.278", Me = "module", Te = "./dist/index.js", Ue = [
10
10
  "dist"
11
11
  ], Ee = {
12
12
  build: "vite build && yarn postbuild",
13
13
  postbuild: "shx cp -R src/templates dist/"
14
14
  }, Le = {
15
15
  "@types/prompts": "^2.4.4",
16
- "@vc-shell/ts-config": "^1.0.277",
16
+ "@vc-shell/ts-config": "^1.0.278",
17
17
  copyfiles: "^2.4.1",
18
18
  "cross-env": "^7.0.3",
19
19
  shx: "^0.3.4",
@@ -23,9 +23,9 @@
23
23
  "@types/node": "^20.10.5",
24
24
  "@typescript-eslint/eslint-plugin": "^6.16.0",
25
25
  "@typescript-eslint/parser": "^6.16.0",
26
- "@vc-shell/api-client-generator": "^1.0.277",
27
- "@vc-shell/release-config": "^1.0.277",
28
- "@vc-shell/ts-config": "^1.0.277",
26
+ "@vc-shell/api-client-generator": "^1.0.278",
27
+ "@vc-shell/release-config": "^1.0.278",
28
+ "@vc-shell/ts-config": "^1.0.278",
29
29
  "@vitejs/plugin-vue": "^5.0.3",
30
30
  "@vue/eslint-config-prettier": "^9.0.0",
31
31
  "@vue/eslint-config-typescript": "^12.0.0",
@@ -54,8 +54,8 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@fortawesome/fontawesome-free": "^5.15.3",
57
- "@vc-shell/config-generator": "^1.0.277",
58
- "@vc-shell/framework": "^1.0.277",
57
+ "@vc-shell/config-generator": "^1.0.278",
58
+ "@vc-shell/framework": "^1.0.278",
59
59
  "@vueuse/core": "^10.7.1",
60
60
  "@vueuse/integrations": "^10.7.1",
61
61
  "cross-spawn": "^7.0.3",
@@ -1,9 +1,16 @@
1
1
  /* eslint-disable */
2
- import { CoreBladeAdditionalSettings } from "@vc-shell/framework";
3
- import { Ref } from "vue";
2
+ import {CoreBladeAdditionalSettings} from "@vc-shell/framework";
3
+ import {Ref, Plugin} from "vue";
4
+ import {DynamicGridSchema, DynamicDetailsSchema} from "@vc-shell/framework";
5
+ import * as vue from "vue";
6
+ import * as vueRouter from "vue-router";
7
+ import * as veeValidate from "vee-validate";
8
+ import * as vueI18n from "vue-i18n";
9
+ import moment from "moment";
10
+ import type {Component} from "vue";
4
11
 
5
12
  declare module "*.vue" {
6
- import type { DefineComponent } from "vue";
13
+ import type {DefineComponent} from "vue";
7
14
  const component: DefineComponent<{}, {}, any>;
8
15
  export default component;
9
16
  }
@@ -16,9 +23,41 @@ declare module "@vue/runtime-core" {
16
23
  $isMobile: Ref<boolean>;
17
24
  $isDesktop: Ref<boolean>;
18
25
  $isTouch: boolean;
26
+ $dynamicModules: {
27
+ [x: string]: {
28
+ components?: { [key: string]: Component };
29
+ composables?: { [key: string]: (...args: any[]) => any };
30
+ default: { install: (app: any, options?: any) => void };
31
+ schema: { [key: string]: DynamicGridSchema | DynamicDetailsSchema };
32
+ locales: { [key: string]: { [key: string]: string } };
33
+ notificationTemplates?: { [key: string]: Component };
34
+ };
35
+ };
19
36
  }
20
37
 
21
- interface ComponentOptionsBase extends CoreBladeAdditionalSettings {}
38
+ interface ComponentOptionsBase extends CoreBladeAdditionalSettings {
39
+ }
40
+ }
41
+
42
+ declare global {
43
+ interface Window {
44
+ VcShellDynamicModules: {
45
+ [x: string]: {
46
+ components?: { [key: string]: Component };
47
+ composables?: { [key: string]: (...args: any[]) => any };
48
+ default: { install: (app: any, options?: any) => void };
49
+ schema: { [key: string]: DynamicGridSchema | DynamicDetailsSchema };
50
+ locales: { [key: string]: { [key: string]: string } };
51
+ notificationTemplates?: { [key: string]: Component };
52
+ };
53
+ };
54
+ Vue: typeof vue;
55
+ VueRouter: typeof vueRouter;
56
+ VeeValidate: typeof veeValidate;
57
+ VueI18n: typeof vueI18n;
58
+ moment: moment;
59
+ VcShellFramework: any;
60
+ }
22
61
  }
23
62
 
24
63
  export {};
@@ -6,9 +6,7 @@ interface MockedItem {
6
6
  price: number;
7
7
  salePrice: number;
8
8
  guid: string;
9
- currency: {
10
- name: string;
11
- };
9
+ currency: string;
12
10
  }
13
11
 
14
12
  interface MockedQuery {
@@ -24,9 +22,7 @@ const mockedItems: MockedItem[] = [
24
22
  price: 100,
25
23
  salePrice: 90,
26
24
  guid: "a1e26bcd-2704-5a3f-b97c-3e32e3d77a38",
27
- currency: {
28
- name: "USD",
29
- },
25
+ currency: "USD",
30
26
  },
31
27
  {
32
28
  id: "44b96758-792a-5449-b649-f2a0cd614c4b",
@@ -36,9 +32,7 @@ const mockedItems: MockedItem[] = [
36
32
  price: 200,
37
33
  salePrice: 90,
38
34
  guid: "0ab995c0-3798-5011-a4ae-498e4c683cfd",
39
- currency: {
40
- name: "USD",
41
- },
35
+ currency: "USD",
42
36
  },
43
37
  {
44
38
  id: "605b2bfb-ba13-5687-91d5-0261b4b60524",
@@ -48,9 +42,7 @@ const mockedItems: MockedItem[] = [
48
42
  price: 300,
49
43
  salePrice: 90,
50
44
  guid: "8a9b6954-7bf7-58b2-a146-c68e06fa7bb4",
51
- currency: {
52
- name: "USD",
53
- },
45
+ currency: "USD",
54
46
  },
55
47
  {
56
48
  id: "5ca8185c-0c28-59bf-ab40-991f134e6db3",
@@ -60,9 +52,7 @@ const mockedItems: MockedItem[] = [
60
52
  price: 400,
61
53
  salePrice: 90,
62
54
  guid: "261364c5-f976-5c86-a92c-b0f0ea14efc7",
63
- currency: {
64
- name: "USD",
65
- },
55
+ currency: "USD",
66
56
  },
67
57
  {
68
58
  id: "077930cb-0874-5f85-9a5b-daafdd0bf860",
@@ -72,9 +62,7 @@ const mockedItems: MockedItem[] = [
72
62
  price: 500,
73
63
  salePrice: 90,
74
64
  guid: "74d302ef-31e6-5432-91f1-d92c87ee2d2a",
75
- currency: {
76
- name: "USD",
77
- },
65
+ currency: "USD",
78
66
  },
79
67
  ];
80
68
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vc-shell/create-vc-app",
3
3
  "description": "Application scaffolding",
4
- "version": "1.0.277",
4
+ "version": "1.0.278",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
7
7
  "files": [
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@types/prompts": "^2.4.4",
16
- "@vc-shell/ts-config": "^1.0.277",
16
+ "@vc-shell/ts-config": "^1.0.278",
17
17
  "copyfiles": "^2.4.1",
18
18
  "cross-env": "^7.0.3",
19
19
  "shx": "^0.3.4",