@vc-shell/framework 1.0.243 → 1.0.245
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 +18 -0
- package/core/composables/useErrorHandler/index.ts +13 -0
- package/core/plugins/signalR/index.ts +8 -5
- 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/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/framework.js +38714 -25158
- package/dist/index.css +1 -1
- 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/factories/types/index.d.ts +2 -0
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/nodeBuilder.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/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -0
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +397 -3
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +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-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.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 +8 -6
- package/shared/modules/dynamic/factories/types/index.ts +2 -0
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +1 -0
- package/shared/modules/dynamic/pages/dynamic-blade-form.vue +7 -1
- package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -0
- package/ui/components/molecules/vc-editor/vc-editor.vue +4 -0
- package/ui/components/molecules/vc-select/vc-select.vue +3 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +18 -14
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +3 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +22 -10
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +3 -0
- package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +1 -0
- package/ui/components/organisms/vc-table/vc-table.vue +10 -4
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +0 -42
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.0.245](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.244...v1.0.245) (2024-06-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **ui:** fix vc-table cell hover behavior and cell opacity ([8548032](https://github.com/VirtoCommerce/vc-shell/commit/85480323eadc982344684be5c57e1f900659eb80))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.244](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.243...v1.0.244) (2024-06-24)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* application insights logger ([536db4d](https://github.com/VirtoCommerce/vc-shell/commit/536db4db35c91f4fb566717d2d6c536e48aacc95))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.0.243](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.242...v1.0.243) (2024-06-21)
|
|
2
20
|
|
|
3
21
|
|
|
@@ -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
|
|
|
@@ -3,6 +3,7 @@ import { HubConnectionBuilder, LogLevel } from "@microsoft/signalr";
|
|
|
3
3
|
import { PushNotification } from "../../api/platform";
|
|
4
4
|
import { useNotifications } from "./../../composables/useNotifications";
|
|
5
5
|
import { useUser } from "../../composables/useUser";
|
|
6
|
+
import { useCypressSignalRMock } from "cypress-signalr-mock";
|
|
6
7
|
|
|
7
8
|
const { addNotification } = useNotifications();
|
|
8
9
|
|
|
@@ -15,11 +16,13 @@ export const signalR = {
|
|
|
15
16
|
) {
|
|
16
17
|
const { isAuthenticated } = useUser();
|
|
17
18
|
let reconnect = false;
|
|
18
|
-
const connection =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const connection =
|
|
20
|
+
useCypressSignalRMock("pushNotificationHub", { enableForVitest: true }) ??
|
|
21
|
+
new HubConnectionBuilder()
|
|
22
|
+
.withUrl("/pushNotificationHub")
|
|
23
|
+
.withAutomaticReconnect()
|
|
24
|
+
.configureLogging(LogLevel.Information)
|
|
25
|
+
.build();
|
|
23
26
|
|
|
24
27
|
const start = () => {
|
|
25
28
|
connection
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/signalR/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAS,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/signalR/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAS,MAAM,KAAK,CAAC;AASjC,eAAO,MAAM,OAAO;iBAEX,GAAG,YACE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CA0DJ,CAAC"}
|