@vc-shell/create-vc-app 1.0.222 → 1.0.223

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,17 @@
1
+ ## [1.0.223](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.222...v1.0.223) (2024-05-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * **dynamic:** refactoring of scope, composable args interface, dynamic hint for some components ([e6b8099](https://github.com/VirtoCommerce/vc-shell/commit/e6b8099a120cef9429896904947e13fdae670541))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **dynamic:** change scope in composables to be plain object instead refs. Also, if you want to extend scope, use lodash's merge method like: _.merge(scope, {})
12
+
13
+
14
+
1
15
  ## [1.0.222](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.221...v1.0.222) (2024-05-28)
2
16
 
3
17
 
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 Re } from "node:url";
8
8
  import { cwd as je, argv as Ae, exit as we } from "node:process";
9
- const ke = "@vc-shell/create-vc-app", Oe = "Application scaffolding", Ne = "1.0.222", Me = "module", Te = "./dist/index.js", Ue = [
9
+ const ke = "@vc-shell/create-vc-app", Oe = "Application scaffolding", Ne = "1.0.223", 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.222",
16
+ "@vc-shell/ts-config": "^1.0.223",
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.222",
27
- "@vc-shell/release-config": "^1.0.222",
28
- "@vc-shell/ts-config": "^1.0.222",
26
+ "@vc-shell/api-client-generator": "^1.0.223",
27
+ "@vc-shell/release-config": "^1.0.223",
28
+ "@vc-shell/ts-config": "^1.0.223",
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",
@@ -55,8 +55,8 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@fortawesome/fontawesome-free": "^5.15.3",
58
- "@vc-shell/config-generator": "^1.0.222",
59
- "@vc-shell/framework": "^1.0.222",
58
+ "@vc-shell/config-generator": "^1.0.223",
59
+ "@vc-shell/framework": "^1.0.223",
60
60
  "@vueuse/core": "^10.7.1",
61
61
  "@vueuse/integrations": "^10.7.1",
62
62
  "cross-spawn": "^7.0.3",
@@ -1,5 +1,5 @@
1
1
  import { computed, ref, Ref } from "vue";
2
- import { DetailsBaseBladeScope, DynamicBladeForm, IBladeToolbar, useDetailsFactory } from "@vc-shell/framework";
2
+ import { DetailsBaseBladeScope, IBladeToolbar, useDetailsFactory, DetailsComposableArgs } from "@vc-shell/framework";
3
3
 
4
4
  export interface DynamicItemScope extends DetailsBaseBladeScope {
5
5
  toolbarOverrides: {
@@ -7,11 +7,7 @@ export interface DynamicItemScope extends DetailsBaseBladeScope {
7
7
  };
8
8
  }
9
9
 
10
- export default (args: {
11
- props: InstanceType<typeof DynamicBladeForm>["$props"];
12
- emit: InstanceType<typeof DynamicBladeForm>["$emit"];
13
- mounted: Ref<boolean>;
14
- }) => {
10
+ export default (args: DetailsComposableArgs) => {
15
11
  const factory = useDetailsFactory({
16
12
  load: async () => {
17
13
  return {};
@@ -1,6 +1,6 @@
1
1
  import { computed, ref, Ref } from "vue";
2
2
  import {
3
- DynamicBladeList,
3
+ ListComposableArgs,
4
4
  ListBaseBladeScope,
5
5
  useBladeNavigation,
6
6
  useListFactory,
@@ -10,11 +10,7 @@ import {
10
10
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
11
11
  export interface DynamicItemsScope extends ListBaseBladeScope {}
12
12
 
13
- export default (args: {
14
- props: InstanceType<typeof DynamicBladeList>["$props"];
15
- emit: InstanceType<typeof DynamicBladeList>["$emit"];
16
- mounted: Ref<boolean>;
17
- }) => {
13
+ export default (args: ListComposableArgs) => {
18
14
  const factory = useListFactory({
19
15
  load: async () => {
20
16
  return {
@@ -1,5 +1,5 @@
1
1
  import { computed, ref, Ref } from "vue";
2
- import { DetailsBaseBladeScope, DynamicBladeForm, UseDetails, useDetailsFactory } from "@vc-shell/framework";
2
+ import { DetailsBaseBladeScope, DetailsComposableArgs, UseDetails, useDetailsFactory } from "@vc-shell/framework";
3
3
  import { addNewMockItem, loadMockItem, removeMockItem, updateMockItem } from "../../sample-data/methods";
4
4
  import { currencyOptions, MockedItem } from "../../sample-data";
5
5
  import { useI18n } from "vue-i18n";
@@ -8,11 +8,7 @@ export interface DynamicItemScope extends DetailsBaseBladeScope {
8
8
  currencyOptions: typeof currencyOptions;
9
9
  }
10
10
 
11
- export default (args: {
12
- props: InstanceType<typeof DynamicBladeForm>["$props"];
13
- emit: InstanceType<typeof DynamicBladeForm>["$emit"];
14
- mounted: Ref<boolean>;
15
- }): UseDetails<MockedItem, DynamicItemScope> => {
11
+ export default (args: DetailsComposableArgs): UseDetails<MockedItem, DynamicItemScope> => {
16
12
  const factory = useDetailsFactory<MockedItem>({
17
13
  load: loadMockItem,
18
14
  saveChanges: (details) => {
@@ -1,6 +1,6 @@
1
1
  import { computed, ref, Ref } from "vue";
2
2
  import {
3
- DynamicBladeList,
3
+ ListComposableArgs,
4
4
  ListBaseBladeScope,
5
5
  useBladeNavigation,
6
6
  useListFactory,
@@ -13,11 +13,7 @@ import { MockedItem, MockedQuery } from "../../sample-data";
13
13
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
14
14
  export interface DynamicItemsScope extends ListBaseBladeScope {}
15
15
 
16
- export default (args: {
17
- props: InstanceType<typeof DynamicBladeList>["$props"];
18
- emit: InstanceType<typeof DynamicBladeList>["$emit"];
19
- mounted: Ref<boolean>;
20
- }): UseList<MockedItem[], MockedQuery, DynamicItemsScope> => {
16
+ export default (args: ListComposableArgs): UseList<MockedItem[], MockedQuery, DynamicItemsScope> => {
21
17
  const factory = useListFactory<MockedItem[], MockedQuery>({
22
18
  load: loadMockItemsList,
23
19
  remove: async (query, customQuery) => {
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.222",
4
+ "version": "1.0.223",
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.222",
16
+ "@vc-shell/ts-config": "^1.0.223",
17
17
  "copyfiles": "^2.4.1",
18
18
  "cross-env": "^7.0.3",
19
19
  "shx": "^0.3.4",