@peter.naydenov/cuts 1.2.3 → 1.2.4
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 +5 -0
- package/README.md +1 -5
- package/package.json +6 -6
package/Changelog.md
CHANGED
package/README.md
CHANGED
|
@@ -82,12 +82,8 @@ Scenes can be `visible`(show) and `unvisible`(hide), also some scenes can be a c
|
|
|
82
82
|
|
|
83
83
|
AfterShow and BeforeHide are optional methods that coming after version 1.2.x. `Aftershow` is created to run a javascript, that we normally want to 'deffer'. They are not related to showing the scene, could need more time to execute and don't have user interaction triggers. Something like 'document.onload' but here in a context of SPA.
|
|
84
84
|
|
|
85
|
-
`BeforeHide` is function that will run before navigation away from the scene. It's inspired by the `beforeunload` event. Here we can write code that will prevent navigation away from the scene.
|
|
85
|
+
`BeforeHide` is function that will run before navigation away from the scene. It's inspired by the `beforeunload` event. Here we can write code that will prevent navigation away from the scene. Should return a boolean. If true, navigation will be allowed, if false, navigation will be prevented.
|
|
86
86
|
|
|
87
|
-
```js
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
```
|
|
91
87
|
|
|
92
88
|
|
|
93
89
|
## Links
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peter.naydenov/cuts",
|
|
3
3
|
"description": "SPA scene manager",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Peter Naydenov",
|
|
7
7
|
"main": "./src/main.js",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
36
36
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
37
37
|
"@rollup/plugin-terser": "^0.4.4",
|
|
38
|
-
"@types/node": "^22.10.
|
|
38
|
+
"@types/node": "^22.10.6",
|
|
39
39
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
40
40
|
"c8": "^10.1.3",
|
|
41
41
|
"chai": "^5.1.2",
|
|
42
42
|
"cypress": "^13.17.0",
|
|
43
43
|
"mocha": "^11.0.1",
|
|
44
|
-
"rollup": "^4.
|
|
45
|
-
"typescript": "^5.7.
|
|
46
|
-
"vite": "^6.0.
|
|
44
|
+
"rollup": "^4.30.1",
|
|
45
|
+
"typescript": "^5.7.3",
|
|
46
|
+
"vite": "^6.0.7",
|
|
47
47
|
"vue": "^3.5.13"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@peter.naydenov/log": "^1.1.0",
|
|
51
|
-
"@peter.naydenov/shortcuts": "^3.1.
|
|
51
|
+
"@peter.naydenov/shortcuts": "^3.1.3",
|
|
52
52
|
"ask-for-promise": "^3.0.1"
|
|
53
53
|
},
|
|
54
54
|
"c8": {
|