@vc-shell/framework 1.0.202 → 1.0.204

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,21 @@
1
+ ## [1.0.204](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.203...v1.0.204) (2024-04-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **navigation:** fixed loss of instance when opening the same workspace ([dda83bc](https://github.com/VirtoCommerce/vc-shell/commit/dda83bc4fd0a8b4583d0c9f607d0ba678fe3c0ff))
7
+
8
+
9
+
10
+ ## [1.0.203](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.202...v1.0.203) (2024-04-25)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * error fix ([2a106ba](https://github.com/VirtoCommerce/vc-shell/commit/2a106ba9ed958d6b1081d4c5c65324260b80f13a))
16
+
17
+
18
+
1
19
  ## [1.0.202](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.200...v1.0.202) (2024-04-25)
2
20
 
3
21
 
@@ -1,5 +1,10 @@
1
1
  import { onBeforeMount, onBeforeUnmount, unref, ComputedRef } from "vue";
2
2
 
3
+ /**
4
+ * Prevents the user from closing the tab if the modified flag is set to true.
5
+ * @param modified - The flag that indicates whether the user has made changes.
6
+ * @returns The modified flag.
7
+ */
3
8
  export const useBeforeUnload = (modified: ComputedRef<boolean>) => {
4
9
  onBeforeMount(() => {
5
10
  window.addEventListener("beforeunload", preventUnload);
@@ -1,4 +1,9 @@
1
1
  import { ComputedRef } from "vue";
2
+ /**
3
+ * Prevents the user from closing the tab if the modified flag is set to true.
4
+ * @param modified - The flag that indicates whether the user has made changes.
5
+ * @returns The modified flag.
6
+ */
2
7
  export declare const useBeforeUnload: (modified: ComputedRef<boolean>) => {
3
8
  modified: ComputedRef<boolean>;
4
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useBeforeUnload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,WAAW,EAAE,MAAM,KAAK,CAAC;AAEzE,eAAO,MAAM,eAAe,aAAc,YAAY,OAAO,CAAC;;CAiB7D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useBeforeUnload/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,WAAW,EAAE,MAAM,KAAK,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,eAAe,aAAc,YAAY,OAAO,CAAC;;CAiB7D,CAAC"}