@symbo.ls/router 2.12.87 → 2.12.89
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/index.js +5 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -32,11 +32,12 @@ const defaultOptions = {
|
|
|
32
32
|
authCheck: true,
|
|
33
33
|
updateState: true,
|
|
34
34
|
updateStateOptions: {
|
|
35
|
+
preventUpdate: ['Iframe'],
|
|
35
36
|
preventUpdateTriggerStateUpdate: true
|
|
36
37
|
// preventContentUpdate: true,
|
|
37
38
|
// preventUpdate: ['MainHeaderCaptions', 'HeaderSubAside']
|
|
38
39
|
},
|
|
39
|
-
|
|
40
|
+
preventUpdate: ['Iframe'],
|
|
40
41
|
setOptions: {},
|
|
41
42
|
scrollToOffset: 120,
|
|
42
43
|
scrollToOptions: { behavior: 'smooth' }
|
|
@@ -99,7 +100,9 @@ export const router = (
|
|
|
99
100
|
const hasSet = isInitial || (!isInitial && !isModal)
|
|
100
101
|
if (hasSet) {
|
|
101
102
|
if (options.forceContentUpdate || (!isInitial && wasModal)) {
|
|
102
|
-
element.content.update(
|
|
103
|
+
element.content.update({}, {
|
|
104
|
+
preventUpdate: options.preventUpdate
|
|
105
|
+
})
|
|
103
106
|
} else {
|
|
104
107
|
element.set({
|
|
105
108
|
tag: options.useFragment && 'fragment',
|
|
@@ -115,8 +118,6 @@ export const router = (
|
|
|
115
118
|
|
|
116
119
|
if (!isModal && element.Modal?.content) {
|
|
117
120
|
element.Modal.removeContent()
|
|
118
|
-
} else if (isModal && element.content?.Tabs) {
|
|
119
|
-
element.content.Tabs.update()
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/router",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.89",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"@domql/utils": "latest",
|
|
12
12
|
"@symbo.ls/auth-redirect": "latest"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "139bed3c8f506cf74bbaf4753aadd7ab4daa3c9a",
|
|
15
15
|
"source": "index.js"
|
|
16
16
|
}
|