mobx-view-model-devtools 0.0.35 → 0.0.36
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 +11 -4
- 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
7
|
import { Maybe, AnyObject, 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);
|
|
@@ -25,6 +26,8 @@ declare abstract class ListItem<T> {
|
|
|
25
26
|
private _data;
|
|
26
27
|
private getChildren?;
|
|
27
28
|
cache: Map<string, any>;
|
|
29
|
+
protected tempVarName: string;
|
|
30
|
+
protected dataWatchAtom: mobx.IAtom;
|
|
28
31
|
get isExpanded(): boolean;
|
|
29
32
|
get children(): ListItem<any>[];
|
|
30
33
|
get isExpandable(): boolean;
|
|
@@ -39,6 +42,7 @@ declare abstract class ListItem<T> {
|
|
|
39
42
|
get depthLine(): string;
|
|
40
43
|
get stringifiedData(): string;
|
|
41
44
|
get operations(): ListItemOperation<T>[];
|
|
45
|
+
getSavedTempVarNotification(tempVarName: string): string;
|
|
42
46
|
expandKey: string;
|
|
43
47
|
constructor(devtools: ViewModelDevtools, key: string, _data: T, getChildren?: ((item: ListItem<T>) => ListItem<any>[]) | undefined, cache?: Map<string, any>);
|
|
44
48
|
}
|
|
@@ -48,7 +52,7 @@ declare class PropertyListItem extends ListItem<any> {
|
|
|
48
52
|
path: string;
|
|
49
53
|
order: number;
|
|
50
54
|
private parent;
|
|
51
|
-
|
|
55
|
+
editContent: string;
|
|
52
56
|
isEditMode: boolean;
|
|
53
57
|
get data(): any;
|
|
54
58
|
get descriptor(): PropertyDescriptor | null | undefined;
|
|
@@ -68,6 +72,8 @@ declare class PropertyListItem extends ListItem<any> {
|
|
|
68
72
|
get isCopiable(): boolean;
|
|
69
73
|
get stringifiedData(): string;
|
|
70
74
|
get operations(): ListItemOperation<any>[];
|
|
75
|
+
handleChangeEditContent: ChangeEventHandler<HTMLInputElement>;
|
|
76
|
+
getSavedTempVarNotification(tempVarName: string): string;
|
|
71
77
|
protected constructor(devtools: ViewModelDevtools, property: Maybe<string>, path: string, order: number, parent: ListItem<any>);
|
|
72
78
|
static createKey(parent: ListItem<any>, property: Maybe<string>): string;
|
|
73
79
|
static create(devtools: ViewModelDevtools, property: Maybe<string>, path: string, order: number, parent: ListItem<any>): PropertyListItem;
|
|
@@ -139,6 +145,7 @@ declare class ViewModelDevtools {
|
|
|
139
145
|
expandAllVMs(): void;
|
|
140
146
|
collapseAllVms(): void;
|
|
141
147
|
showPopup(): void;
|
|
148
|
+
get notifications(): AnyViewModel | mobx_view_model.AnyViewModelSimple;
|
|
142
149
|
hidePopup(): void;
|
|
143
150
|
private init;
|
|
144
151
|
private isInitialized;
|
|
@@ -154,12 +161,12 @@ declare class ViewModelDevtools {
|
|
|
154
161
|
declare class VMListItem extends ListItem<AnyVM> {
|
|
155
162
|
private allVms;
|
|
156
163
|
private parent?;
|
|
157
|
-
private dataWatchAtom;
|
|
158
164
|
private get childVMListItems();
|
|
159
165
|
get isFitted(): boolean;
|
|
160
166
|
private get propertyListItems();
|
|
161
167
|
get children(): ListItem<any>[];
|
|
162
168
|
private getVmParams;
|
|
169
|
+
getSavedTempVarNotification(tempVarName: string): string;
|
|
163
170
|
get operations(): ListItemOperation<any>[];
|
|
164
171
|
get depth(): number;
|
|
165
172
|
searchData: {
|