@vc-shell/framework 1.0.173 → 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 +23 -0
- package/core/plugins/signalR/index.ts +15 -2
- package/dist/core/plugins/signalR/index.d.ts +4 -1
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/framework.js +4767 -4759
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +7 -8
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +3 -0
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/modules/dynamic/pages/dynamic-blade-list.vue +41 -29
- package/shared/modules/dynamic/types/index.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
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
|
+
|
|
15
|
+
## [1.0.174](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.173...v1.0.174) (2024-03-06)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **dynamic:** disabled method for actions ([a575064](https://github.com/VirtoCommerce/vc-shell/commit/a5750642339e0fedf3e937370361968eea144368))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
## [1.0.173](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.172...v1.0.173) (2024-03-06)
|
|
2
25
|
|
|
3
26
|
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/plugins/signalR/index.ts"],"names":[],"mappings":"
|
|
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"}
|