@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.
- package/CHANGELOG.md +13 -0
- package/core/composables/useErrorHandler/index.ts +13 -0
- package/core/plugins/validation/rules.ts +3 -3
- package/dist/core/composables/useErrorHandler/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +3 -3
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/framework.js +38632 -26397
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/error-interceptor/index.d.ts.map +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
- package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/visibilityHandler.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/index.d.ts +4 -4
- package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- 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
|
|
3
|
+
import { all } from "@vee-validate/rules";
|
|
4
4
|
|
|
5
|
-
Object.keys(
|
|
5
|
+
Object.keys(all).forEach((rule: string) => {
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
-
defineRule(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;
|
|
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,
|
|
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"}
|