@xh/hoist 80.0.0-SNAPSHOT.1767982629403 → 80.0.0-SNAPSHOT.1768003263151
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TabSwitcherConfig, IDynamicTabSwitcherModel } from '@xh/hoist/cmp/tab/Types';
|
|
2
|
-
import { HoistModel,
|
|
1
|
+
import type { TabSwitcherConfig, IDynamicTabSwitcherModel, TabContainerModelPersistOptions } from '@xh/hoist/cmp/tab/Types';
|
|
2
|
+
import { HoistModel, RefreshContextModel, RefreshMode, RenderMode } from '@xh/hoist/core';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { TabConfig, TabModel } from './TabModel';
|
|
5
5
|
export interface TabContainerConfig {
|
|
@@ -12,7 +12,7 @@ export interface TabContainerConfig {
|
|
|
12
12
|
defaultTabId?: string;
|
|
13
13
|
/**
|
|
14
14
|
* Base route name for this container. If set, this container will be route-enabled, with the
|
|
15
|
-
* route for each tab being "[route]/[tab.id]".
|
|
15
|
+
* route for each tab being "[route]/[tab.id]".
|
|
16
16
|
*/
|
|
17
17
|
route?: string;
|
|
18
18
|
/**
|
|
@@ -35,8 +35,13 @@ export interface TabContainerConfig {
|
|
|
35
35
|
* See enum for description of supported modes.
|
|
36
36
|
*/
|
|
37
37
|
refreshMode?: RefreshMode;
|
|
38
|
-
/**
|
|
39
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Options governing persistence. Tab containers can persist their last-active tab as well
|
|
40
|
+
* as favorite tabs for the dynamic `switcher` option. Note that this must be left unset or
|
|
41
|
+
* its nested `persistActiveTabId` option must be set to false if also using `route`, to avoid
|
|
42
|
+
* a possible conflict between an initial route and persisted last active tab.
|
|
43
|
+
*/
|
|
44
|
+
persistWith?: TabContainerModelPersistOptions;
|
|
40
45
|
/**
|
|
41
46
|
* Placeholder to display if no tabs are provided or all tabs have been removed via
|
|
42
47
|
* their `omit` config.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright © 2026 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
8
|
TabSwitcherConfig,
|
|
9
9
|
IDynamicTabSwitcherModel,
|
|
10
10
|
TabContainerModelPersistOptions
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
managed,
|
|
15
15
|
PersistableState,
|
|
16
16
|
PersistenceProvider,
|
|
17
|
-
PersistOptions,
|
|
18
17
|
RefreshContextModel,
|
|
19
18
|
RefreshMode,
|
|
20
19
|
RenderMode,
|
|
@@ -41,7 +40,7 @@ export interface TabContainerConfig {
|
|
|
41
40
|
|
|
42
41
|
/**
|
|
43
42
|
* Base route name for this container. If set, this container will be route-enabled, with the
|
|
44
|
-
* route for each tab being "[route]/[tab.id]".
|
|
43
|
+
* route for each tab being "[route]/[tab.id]".
|
|
45
44
|
*/
|
|
46
45
|
route?: string;
|
|
47
46
|
|
|
@@ -69,8 +68,13 @@ export interface TabContainerConfig {
|
|
|
69
68
|
*/
|
|
70
69
|
refreshMode?: RefreshMode;
|
|
71
70
|
|
|
72
|
-
/**
|
|
73
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Options governing persistence. Tab containers can persist their last-active tab as well
|
|
73
|
+
* as favorite tabs for the dynamic `switcher` option. Note that this must be left unset or
|
|
74
|
+
* its nested `persistActiveTabId` option must be set to false if also using `route`, to avoid
|
|
75
|
+
* a possible conflict between an initial route and persisted last active tab.
|
|
76
|
+
*/
|
|
77
|
+
persistWith?: TabContainerModelPersistOptions;
|
|
74
78
|
|
|
75
79
|
/**
|
|
76
80
|
* Placeholder to display if no tabs are provided or all tabs have been removed via
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "80.0.0-SNAPSHOT.
|
|
3
|
+
"version": "80.0.0-SNAPSHOT.1768003263151",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|