@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.
Files changed (58) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/core/composables/useErrorHandler/index.ts +13 -0
  3. package/core/plugins/signalR/index.ts +8 -5
  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/core/plugins/signalR/index.d.ts.map +1 -1
  8. package/dist/framework.js +38714 -25158
  9. package/dist/index.css +1 -1
  10. package/dist/index.d.ts +7 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/shared/components/error-interceptor/index.d.ts.map +1 -1
  13. package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
  14. package/dist/shared/modules/dynamic/composables/useFilterBuilder/index.d.ts.map +1 -1
  15. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts +1 -1
  16. package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
  17. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts +1 -1
  18. package/dist/shared/modules/dynamic/factories/base/useListFactory.d.ts.map +1 -1
  19. package/dist/shared/modules/dynamic/factories/types/index.d.ts +2 -0
  20. package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
  21. package/dist/shared/modules/dynamic/helpers/nodeBuilder.d.ts.map +1 -1
  22. package/dist/shared/modules/dynamic/helpers/override.d.ts.map +1 -1
  23. package/dist/shared/modules/dynamic/helpers/visibilityHandler.d.ts.map +1 -1
  24. package/dist/shared/modules/dynamic/index.d.ts +4 -4
  25. package/dist/shared/modules/dynamic/index.d.ts.map +1 -1
  26. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -0
  27. package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts.map +1 -1
  28. package/dist/tsconfig.tsbuildinfo +1 -1
  29. package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +397 -3
  30. package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +1 -1
  31. package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
  32. package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
  33. package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
  34. 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
  35. 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
  36. 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
  37. 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
  38. package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts.map +1 -1
  39. 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
  40. 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
  41. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  42. package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
  43. package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
  44. package/package.json +8 -6
  45. package/shared/modules/dynamic/factories/types/index.ts +2 -0
  46. package/shared/modules/dynamic/helpers/nodeBuilder.ts +1 -0
  47. package/shared/modules/dynamic/pages/dynamic-blade-form.vue +7 -1
  48. package/ui/components/molecules/vc-editor/vc-editor.stories.ts +1 -0
  49. package/ui/components/molecules/vc-editor/vc-editor.vue +4 -0
  50. package/ui/components/molecules/vc-select/vc-select.vue +3 -0
  51. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +18 -14
  52. package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue +3 -0
  53. package/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue +22 -10
  54. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue +3 -0
  55. package/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/vc-blade-toolbar.vue +1 -0
  56. package/ui/components/organisms/vc-table/vc-table.vue +10 -4
  57. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +0 -42
  58. 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 = new HubConnectionBuilder()
19
- .withUrl("/pushNotificationHub")
20
- .withAutomaticReconnect()
21
- .configureLogging(LogLevel.Information)
22
- .build();
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;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"}
@@ -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;AAQjC,eAAO,MAAM,OAAO;iBAEX,GAAG,YACE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CAwDJ,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"}