mobx-view-model-devtools 0.0.10 → 0.0.11
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/README.md +6 -0
- package/index.cjs +2 -1
- package/index.d.ts +19 -10
- package/index.global.js +37080 -1
- package/index.js +37070 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ type VmTreeItem = {
|
|
|
15
15
|
key: string;
|
|
16
16
|
properties: string[];
|
|
17
17
|
};
|
|
18
|
-
interface
|
|
18
|
+
interface FittedInfo {
|
|
19
19
|
isFitted: boolean;
|
|
20
20
|
isFittedById?: boolean;
|
|
21
21
|
isFittedByName?: boolean;
|
|
@@ -35,7 +35,7 @@ interface FocusableRef<T extends HTMLElement = HTMLElement> extends Ref<T, {
|
|
|
35
35
|
interface ViewModelDevtoolsConfig {
|
|
36
36
|
containerId?: string;
|
|
37
37
|
defaultIsOpened?: boolean;
|
|
38
|
-
viewModels
|
|
38
|
+
viewModels?: ViewModelStoreBase;
|
|
39
39
|
position?: 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right';
|
|
40
40
|
buttonClassName?: string;
|
|
41
41
|
extras?: AnyObject;
|
|
@@ -45,7 +45,8 @@ declare class ViewModelDevtools {
|
|
|
45
45
|
isPopupOpened: boolean;
|
|
46
46
|
displayType: string;
|
|
47
47
|
vmStore: ViewModelStoreBase;
|
|
48
|
-
projectVmStore
|
|
48
|
+
projectVmStore?: Maybe<ViewModelStoreBase<AnyViewModel>>;
|
|
49
|
+
extras: Maybe<AnyObject>;
|
|
49
50
|
isAllVmsExpandedByDefault: boolean;
|
|
50
51
|
expandedVmItemsPaths: ObservableSet<string>;
|
|
51
52
|
logoUrl: string;
|
|
@@ -55,25 +56,33 @@ declare class ViewModelDevtools {
|
|
|
55
56
|
keyboardHandler: KeyboardHandler;
|
|
56
57
|
search: string;
|
|
57
58
|
private expandedVmsSet;
|
|
58
|
-
private get vmMap();
|
|
59
59
|
get allVms(): AnyVM[];
|
|
60
60
|
get rootVms(): AnyVM[];
|
|
61
61
|
get formattedSearch(): string;
|
|
62
62
|
get vmTree(): VmTreeItem[];
|
|
63
|
+
get isActive(): boolean;
|
|
63
64
|
get isInSearch(): boolean;
|
|
64
65
|
private get searchCache();
|
|
65
|
-
getVMFittedInfo(vmTreeItem: VmTreeItem):
|
|
66
|
+
getVMFittedInfo(vmTreeItem: VmTreeItem): FittedInfo;
|
|
66
67
|
checkIsPropertyFitted(vmItem: VmTreeItem, property: string): boolean;
|
|
68
|
+
checkIsExtrasPropertyFitted(property: string): boolean;
|
|
67
69
|
isExpanded(vmItem: VmTreeItem): boolean;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
checkIsVmPathExpanded(vmItem: VmTreeItem, path: string): boolean;
|
|
71
|
+
checkIsExtraPathExpanded(path: string): boolean;
|
|
72
|
+
handleExpandVmPropertyClick(vmItem: VmTreeItem, path: string): void;
|
|
73
|
+
handleExpandExtraPropertyClick(path: string): void;
|
|
70
74
|
handleVmItemHeaderClick(vmItem: VmTreeItem): void;
|
|
71
75
|
handleSearchChange: ChangeEventHandler<HTMLInputElement>;
|
|
72
76
|
private getVmParams;
|
|
73
|
-
private
|
|
74
|
-
|
|
77
|
+
private constructor();
|
|
78
|
+
setStore(viewModels: ViewModelStoreBase<AnyViewModel> | undefined): void;
|
|
79
|
+
setExtras(extras: Maybe<AnyObject>): void;
|
|
75
80
|
render(): void;
|
|
76
|
-
static
|
|
81
|
+
private static _instance;
|
|
82
|
+
static define(config?: ViewModelDevtoolsConfig): ViewModelDevtools;
|
|
83
|
+
static connect(viewModels: ViewModelDevtoolsConfig['viewModels'], extras?: AnyObject): ViewModelDevtools;
|
|
84
|
+
static connectViewModels(viewModels: ViewModelDevtoolsConfig['viewModels']): ViewModelDevtools;
|
|
85
|
+
static connectExtras(extras: AnyObject): ViewModelDevtools;
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
export { ViewModelDevtools };
|