mobx-view-model-devtools 0.0.35 → 0.0.37
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/auto.global.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +14 -6
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as mobx_view_model from 'mobx-view-model';
|
|
2
|
+
import { ViewModelStoreBase, AnyViewModel, AnyViewModelSimple } from 'mobx-view-model';
|
|
1
3
|
import * as mobx from 'mobx';
|
|
2
4
|
import { ObservableSet } from 'mobx';
|
|
3
|
-
import { ViewModelStoreBase, AnyViewModel, AnyViewModelSimple } from 'mobx-view-model';
|
|
4
5
|
import { VirtualizerHandle } from 'virtua';
|
|
5
6
|
import { Ref } from 'yummies/mobx';
|
|
6
|
-
import {
|
|
7
|
+
import { AnyObject, Maybe, Defined } from 'yummies/types';
|
|
7
8
|
import { KeyboardHandler as KeyboardHandler$1, KeyboardHandlerAction } from 'mobx-swiss-knife';
|
|
8
|
-
import { ComponentType } from 'react';
|
|
9
|
+
import { ComponentType, ChangeEventHandler } from 'react';
|
|
9
10
|
|
|
10
11
|
declare class KeyboardHandler extends KeyboardHandler$1<KeyboardHandlerAction> {
|
|
11
12
|
constructor(devtools: ViewModelDevtools);
|
|
@@ -24,7 +25,11 @@ declare abstract class ListItem<T> {
|
|
|
24
25
|
key: string;
|
|
25
26
|
private _data;
|
|
26
27
|
private getChildren?;
|
|
28
|
+
position: number;
|
|
29
|
+
metaData: AnyObject;
|
|
27
30
|
cache: Map<string, any>;
|
|
31
|
+
protected tempVarName: string;
|
|
32
|
+
protected dataWatchAtom: mobx.IAtom;
|
|
28
33
|
get isExpanded(): boolean;
|
|
29
34
|
get children(): ListItem<any>[];
|
|
30
35
|
get isExpandable(): boolean;
|
|
@@ -39,6 +44,7 @@ declare abstract class ListItem<T> {
|
|
|
39
44
|
get depthLine(): string;
|
|
40
45
|
get stringifiedData(): string;
|
|
41
46
|
get operations(): ListItemOperation<T>[];
|
|
47
|
+
getSavedTempVarNotification(tempVarName: string): string;
|
|
42
48
|
expandKey: string;
|
|
43
49
|
constructor(devtools: ViewModelDevtools, key: string, _data: T, getChildren?: ((item: ListItem<T>) => ListItem<any>[]) | undefined, cache?: Map<string, any>);
|
|
44
50
|
}
|
|
@@ -48,7 +54,7 @@ declare class PropertyListItem extends ListItem<any> {
|
|
|
48
54
|
path: string;
|
|
49
55
|
order: number;
|
|
50
56
|
private parent;
|
|
51
|
-
|
|
57
|
+
editContent: string;
|
|
52
58
|
isEditMode: boolean;
|
|
53
59
|
get data(): any;
|
|
54
60
|
get descriptor(): PropertyDescriptor | null | undefined;
|
|
@@ -68,6 +74,8 @@ declare class PropertyListItem extends ListItem<any> {
|
|
|
68
74
|
get isCopiable(): boolean;
|
|
69
75
|
get stringifiedData(): string;
|
|
70
76
|
get operations(): ListItemOperation<any>[];
|
|
77
|
+
handleChangeEditContent: ChangeEventHandler<HTMLInputElement>;
|
|
78
|
+
getSavedTempVarNotification(tempVarName: string): string;
|
|
71
79
|
protected constructor(devtools: ViewModelDevtools, property: Maybe<string>, path: string, order: number, parent: ListItem<any>);
|
|
72
80
|
static createKey(parent: ListItem<any>, property: Maybe<string>): string;
|
|
73
81
|
static create(devtools: ViewModelDevtools, property: Maybe<string>, path: string, order: number, parent: ListItem<any>): PropertyListItem;
|
|
@@ -128,7 +136,6 @@ declare class ViewModelDevtools {
|
|
|
128
136
|
checkIsExtraPathExpanded(path: string): boolean;
|
|
129
137
|
handleExpandVmPropertyClick(vmItem: VMListItem, path: string): void;
|
|
130
138
|
handlePropertyClick(item: PropertyListItem, e: React.MouseEvent<HTMLElement>): void;
|
|
131
|
-
handleExpandExtraPropertyClick(path: string): void;
|
|
132
139
|
handleVmItemHeaderClick(vmItem: VMListItem): void;
|
|
133
140
|
isExpandable(vmItem: VMListItem): boolean | undefined;
|
|
134
141
|
private getVmParams;
|
|
@@ -139,6 +146,7 @@ declare class ViewModelDevtools {
|
|
|
139
146
|
expandAllVMs(): void;
|
|
140
147
|
collapseAllVms(): void;
|
|
141
148
|
showPopup(): void;
|
|
149
|
+
get notifications(): AnyViewModel | mobx_view_model.AnyViewModelSimple;
|
|
142
150
|
hidePopup(): void;
|
|
143
151
|
private init;
|
|
144
152
|
private isInitialized;
|
|
@@ -154,12 +162,12 @@ declare class ViewModelDevtools {
|
|
|
154
162
|
declare class VMListItem extends ListItem<AnyVM> {
|
|
155
163
|
private allVms;
|
|
156
164
|
private parent?;
|
|
157
|
-
private dataWatchAtom;
|
|
158
165
|
private get childVMListItems();
|
|
159
166
|
get isFitted(): boolean;
|
|
160
167
|
private get propertyListItems();
|
|
161
168
|
get children(): ListItem<any>[];
|
|
162
169
|
private getVmParams;
|
|
170
|
+
getSavedTempVarNotification(tempVarName: string): string;
|
|
163
171
|
get operations(): ListItemOperation<any>[];
|
|
164
172
|
get depth(): number;
|
|
165
173
|
searchData: {
|