@vc-shell/framework 1.0.242 → 1.0.244

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/core/composables/useErrorHandler/index.ts +13 -0
  3. package/core/plugins/validation/rules.ts +3 -3
  4. package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
  5. package/dist/core/plugins/modularity/index.d.ts +3 -3
  6. package/dist/core/plugins/modularity/index.d.ts.map +1 -1
  7. package/dist/framework.js +38632 -26397
  8. package/dist/index.d.ts +7 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/shared/components/error-interceptor/index.d.ts.map +1 -1
  11. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  12. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
  13. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
  14. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
  15. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
  16. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
  17. package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -1
  18. package/dist/shared/modules/dynamic/helpers/visibilityHandler.d.ts.map +1 -1
  19. package/dist/shared/modules/dynamic/index.d.ts +4 -4
  20. package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  23. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  24. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
  25. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  26. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  27. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  28. package/package.json +7 -6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [1.0.244](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.243...v1.0.244) (2024-06-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * application insights logger ([536db4d](https://github.com/VirtoCommerce/vc-shell/commit/536db4db35c91f4fb566717d2d6c536e48aacc95))
7
+
8
+
9
+
10
+ ## [1.0.243](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.242...v1.0.243) (2024-06-21)
11
+
12
+
13
+
1
14
  ## [1.0.242](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.241...v1.0.242) (2024-06-21)
2
15
 
3
16
 
@@ -1,4 +1,6 @@
1
1
  import { onErrorCaptured, getCurrentInstance, ref, Ref } from "vue";
2
+ import { useAppInsights } from "vue3-application-insights";
3
+ import { useUser } from "..";
2
4
 
3
5
  interface IUseErrorHandler {
4
6
  error: Ref<string | null>;
@@ -8,6 +10,8 @@ interface IUseErrorHandler {
8
10
  export function useErrorHandler(capture?: boolean): IUseErrorHandler {
9
11
  const error = ref<string | null>(null);
10
12
  const instance = getCurrentInstance();
13
+ const appInsights = useAppInsights();
14
+ const { user } = useUser();
11
15
 
12
16
  function reset() {
13
17
  error.value = null;
@@ -25,6 +29,15 @@ export function useErrorHandler(capture?: boolean): IUseErrorHandler {
25
29
  } else {
26
30
  error.value = err.toString();
27
31
  }
32
+
33
+ appInsights.trackException({
34
+ exception: err,
35
+ properties: {
36
+ userId: user.value?.id ?? "",
37
+ userName: user.value?.userName ?? "",
38
+ },
39
+ });
40
+
28
41
  console.error(err);
29
42
  }
30
43
 
@@ -1,10 +1,10 @@
1
1
  import { i18n } from "..";
2
2
  import { defineRule } from "vee-validate";
3
- import * as AllRules from "@vee-validate/rules";
3
+ import { all } from "@vee-validate/rules";
4
4
 
5
- Object.keys(AllRules).forEach((rule: string) => {
5
+ Object.keys(all).forEach((rule: string) => {
6
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
- defineRule(rule, (AllRules as Record<string, any>)[rule]);
7
+ defineRule(rule, (all as Record<string, any>)[rule]);
8
8
  });
9
9
 
10
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useErrorHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,GAAG,EAAE,MAAM,KAAK,CAAC;AAEpE,UAAU,gBAAgB;IACxB,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1B,KAAK,IAAI,IAAI,CAAC;CACf;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAoCnE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useErrorHandler/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,GAAG,EAAE,MAAM,KAAK,CAAC;AAIpE,UAAU,gBAAgB;IACxB,KAAK,EAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1B,KAAK,IAAI,IAAI,CAAC;CACf;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB,CA+CnE"}
@@ -10,11 +10,11 @@ export declare const createAppModule: (pages: {
10
10
  [key: string]: BladeInstanceConstructor;
11
11
  }, locales?: {
12
12
  [key: string]: object;
13
- }, notificationTemplates?: {
13
+ } | undefined, notificationTemplates?: {
14
14
  [key: string]: Component;
15
- }, moduleComponents?: {
15
+ } | undefined, moduleComponents?: {
16
16
  [key: string]: Component;
17
- }) => {
17
+ } | undefined) => {
18
18
  install(app: App, options?: {
19
19
  router: Router;
20
20
  }): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAK,MAAM,KAAK,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAc,MAAM,qDAAqD,CAAC;AAK3G,eAAO,MAAM,YAAY,eAAgB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAA;CAAE,YAAY,OAAO;iBACxF,GAAG,GAAG,IAAI;CAavB,CAAC;AAEH,eAAO,MAAM,eAAe,UACnB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,wBAAwB,CAAA;CAAE,YACxC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,0BACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,qBACjC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE;iBAGhC,GAAG,YAAY;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CA2GxD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/modularity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAK,MAAM,KAAK,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAc,MAAM,qDAAqD,CAAC;AAK3G,eAAO,MAAM,YAAY;;aAAuE,OAAO;iBACxF,GAAG,GAAG,IAAI;CAavB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;iBAOX,GAAG,YAAY;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CA2GxD,CAAC"}