framework7-svelte 7.0.0-beta.12 → 7.0.0-beta.15

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.
@@ -5,6 +5,7 @@ import { SvelteComponentTyped } from 'svelte';
5
5
 
6
6
 
7
7
  interface ViewProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div']> {
8
+ initRouterOnTabShow?: boolean;
8
9
  tab ?: boolean;
9
10
  tabActive ?: boolean;
10
11
  name ?: string;
@@ -18,7 +18,9 @@
18
18
 
19
19
  const emit = createEmitter(createEventDispatcher, $$props);
20
20
 
21
- const { main, tab, tabActive, browserHistoryInitialMatch = true } = $$props;
21
+ const { main, tab, tabActive, browserHistoryInitialMatch = true, initRouterOnTabShow } = $$props;
22
+
23
+ const shouldInitRouter = !(initRouterOnTabShow && tab && !tabActive);
22
24
 
23
25
  let initialPage;
24
26
  let initialRoute;
@@ -54,7 +56,7 @@
54
56
  instance: f7View,
55
57
  };
56
58
  app.f7routers.views.push(routerData);
57
- if (f7View && f7View.router && (url || main)) {
59
+ if (shouldInitRouter && f7View && f7View.router && (url || main)) {
58
60
  const initialData = getRouterInitialComponent(f7View.router);
59
61
  initialPage = initialData.initialPage;
60
62
  initialRoute = initialData.initialRoute;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Svelte 7.0.0-beta.12
2
+ * Framework7 Svelte 7.0.0-beta.15
3
3
  * Build full featured iOS & Android apps using Framework7 & Svelte
4
4
  * https://framework7.io/svelte/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: February 22, 2022
10
+ * Released on: April 11, 2022
11
11
  */
12
12
  import Framework7Svelte from './shared/plugin.js';
13
13
  import { f7, f7ready, theme, app } from './shared/f7.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7-svelte",
3
- "version": "7.0.0-beta.12",
3
+ "version": "7.0.0-beta.15",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Svelte",
5
5
  "type": "module",
6
6
  "svelte": "./framework7-svelte.js",
@@ -24,6 +24,7 @@
24
24
  "ipad",
25
25
  "apple",
26
26
  "phonegap",
27
+ "capacitor",
27
28
  "native",
28
29
  "touch",
29
30
  "appstore",