@vc-shell/framework 1.0.174 → 1.0.175

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.175](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.174...v1.0.175) (2024-03-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **dynamic:** remove table actions from widgetView ([e51fb3f](https://github.com/VirtoCommerce/vc-shell/commit/e51fb3f8e63c56ed0146f61a036581a45f386830))
7
+
8
+
9
+ ### Features
10
+
11
+ * **core:** Update signalR plugin to accept options, SendSystemEvents connection ([7cc96d5](https://github.com/VirtoCommerce/vc-shell/commit/7cc96d5c783207b94b0657c2467203ccea4a55a5))
12
+
13
+
14
+
1
15
  ## [1.0.174](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.173...v1.0.174) (2024-03-06)
2
16
 
3
17
 
@@ -1,4 +1,4 @@
1
- import { watch } from "vue";
1
+ import { App, watch } from "vue";
2
2
  import { HubConnectionBuilder, LogLevel } from "@microsoft/signalr";
3
3
  import { PushNotification } from "../../api/platform";
4
4
  import { useNotifications } from "./../../composables/useNotifications";
@@ -7,7 +7,12 @@ import { useUser } from "../../composables/useUser";
7
7
  const { addNotification } = useNotifications();
8
8
 
9
9
  export const signalR = {
10
- install() {
10
+ install(
11
+ app: App,
12
+ options?: {
13
+ creator?: string;
14
+ },
15
+ ) {
11
16
  const { isAuthenticated } = useUser();
12
17
  let reconnect = false;
13
18
  const connection = new HubConnectionBuilder()
@@ -40,6 +45,14 @@ export const signalR = {
40
45
  addNotification(message);
41
46
  });
42
47
 
48
+ if (options?.creator) {
49
+ connection.on("SendSystemEvents", (message: PushNotification) => {
50
+ if (message.creator === options.creator) {
51
+ addNotification(message);
52
+ }
53
+ });
54
+ }
55
+
43
56
  watch(
44
57
  isAuthenticated,
45
58
  async (value) => {
@@ -1,4 +1,7 @@
1
+ import { App } from "vue";
1
2
  export declare const signalR: {
2
- install(): void;
3
+ install(app: App, options?: {
4
+ creator?: string;
5
+ }): void;
3
6
  };
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/signalR/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO;;CAgDnB,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;AAQjC,eAAO,MAAM,OAAO;iBAEX,GAAG,YACE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CAwDJ,CAAC"}