vestjs-runtime 1.0.5 → 1.0.6
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/dist/cjs/IsolateSerializer.development.js +16 -0
- package/dist/cjs/IsolateSerializer.development.js.map +1 -1
- package/dist/cjs/IsolateSerializer.production.js +1 -1
- package/dist/cjs/IsolateSerializer.production.js.map +1 -1
- package/dist/cjs/test-utils.development.js +11 -0
- package/dist/cjs/test-utils.development.js.map +1 -1
- package/dist/cjs/test-utils.production.js +1 -1
- package/dist/cjs/test-utils.production.js.map +1 -1
- package/dist/cjs/vestjs-runtime.development.js +148 -120
- package/dist/cjs/vestjs-runtime.development.js.map +1 -1
- package/dist/cjs/vestjs-runtime.production.js +1 -1
- package/dist/cjs/vestjs-runtime.production.js.map +1 -1
- package/dist/es/IsolateSerializer.development.js +16 -0
- package/dist/es/IsolateSerializer.development.js.map +1 -1
- package/dist/es/IsolateSerializer.production.js +1 -1
- package/dist/es/IsolateSerializer.production.js.map +1 -1
- package/dist/es/test-utils.development.js +11 -0
- package/dist/es/test-utils.development.js.map +1 -1
- package/dist/es/test-utils.production.js +1 -1
- package/dist/es/test-utils.production.js.map +1 -1
- package/dist/es/vestjs-runtime.development.js +150 -122
- package/dist/es/vestjs-runtime.development.js.map +1 -1
- package/dist/es/vestjs-runtime.production.js +1 -1
- package/dist/es/vestjs-runtime.production.js.map +1 -1
- package/dist/umd/IsolateSerializer.development.js +16 -0
- package/dist/umd/IsolateSerializer.development.js.map +1 -1
- package/dist/umd/IsolateSerializer.production.js +1 -1
- package/dist/umd/IsolateSerializer.production.js.map +1 -1
- package/dist/umd/test-utils.development.js +11 -0
- package/dist/umd/test-utils.development.js.map +1 -1
- package/dist/umd/test-utils.production.js +1 -1
- package/dist/umd/test-utils.production.js.map +1 -1
- package/dist/umd/vestjs-runtime.development.js +148 -120
- package/dist/umd/vestjs-runtime.development.js.map +1 -1
- package/dist/umd/vestjs-runtime.production.js +1 -1
- package/dist/umd/vestjs-runtime.production.js.map +1 -1
- package/package.json +3 -3
- package/types/IsolateSerializer.d.ts +8 -1
- package/types/IsolateSerializer.d.ts.map +1 -1
- package/types/test-utils.d.ts +8 -1
- package/types/test-utils.d.ts.map +1 -1
- package/types/vestjs-runtime.d.ts +35 -7
- package/types/vestjs-runtime.d.ts.map +1 -1
|
@@ -5,7 +5,8 @@ declare enum IsolateKeys {
|
|
|
5
5
|
Key = "key",
|
|
6
6
|
Parent = "parent",
|
|
7
7
|
Data = "data",
|
|
8
|
-
AllowReorder = "allowReorder"
|
|
8
|
+
AllowReorder = "allowReorder",
|
|
9
|
+
Status = "status"
|
|
9
10
|
}
|
|
10
11
|
declare enum MinifiedKeys {
|
|
11
12
|
Type = "$",
|
|
@@ -13,7 +14,13 @@ declare enum MinifiedKeys {
|
|
|
13
14
|
Key = "k",
|
|
14
15
|
Parent = "P",
|
|
15
16
|
Data = "D",
|
|
16
|
-
AllowReorder = "aR"
|
|
17
|
+
AllowReorder = "aR",
|
|
18
|
+
Status = "S"
|
|
19
|
+
}
|
|
20
|
+
declare enum IsolateStatus {
|
|
21
|
+
PENDING = "PENDING",
|
|
22
|
+
DONE = "DONE",
|
|
23
|
+
INITIAL = "INITIAL"
|
|
17
24
|
}
|
|
18
25
|
type IsolateKey = Nullable<string>;
|
|
19
26
|
type TIsolate<P extends IsolatePayload = IsolatePayload> = {
|
|
@@ -22,6 +29,7 @@ type TIsolate<P extends IsolatePayload = IsolatePayload> = {
|
|
|
22
29
|
[IsolateKeys.Type]: string;
|
|
23
30
|
[IsolateKeys.Keys]: Nullable<Record<string, TIsolate>>;
|
|
24
31
|
[IsolateKeys.Data]: DataOnly<P>;
|
|
32
|
+
[IsolateKeys.Status]: IsolateStatus;
|
|
25
33
|
children: Nullable<TIsolate[]>;
|
|
26
34
|
key: IsolateKey;
|
|
27
35
|
output: any;
|
|
@@ -66,7 +74,8 @@ declare namespace Walker {
|
|
|
66
74
|
Key = "key",
|
|
67
75
|
Parent = "parent",
|
|
68
76
|
Data = "data",
|
|
69
|
-
AllowReorder = "allowReorder"
|
|
77
|
+
AllowReorder = "allowReorder",
|
|
78
|
+
Status = "status"
|
|
70
79
|
}
|
|
71
80
|
enum MinifiedKeys {
|
|
72
81
|
Type = "$",
|
|
@@ -74,7 +83,8 @@ declare namespace Walker {
|
|
|
74
83
|
Key = "k",
|
|
75
84
|
Parent = "P",
|
|
76
85
|
Data = "D",
|
|
77
|
-
AllowReorder = "aR"
|
|
86
|
+
AllowReorder = "aR",
|
|
87
|
+
Status = "S"
|
|
78
88
|
}
|
|
79
89
|
const KeyToMinified: {
|
|
80
90
|
$type: MinifiedKeys;
|
|
@@ -83,6 +93,7 @@ declare namespace Walker {
|
|
|
83
93
|
data: MinifiedKeys;
|
|
84
94
|
key: MinifiedKeys;
|
|
85
95
|
allowReorder: MinifiedKeys;
|
|
96
|
+
status: MinifiedKeys;
|
|
86
97
|
};
|
|
87
98
|
// This const is an object that looks like this:
|
|
88
99
|
// {
|
|
@@ -92,6 +103,11 @@ declare namespace Walker {
|
|
|
92
103
|
// ...
|
|
93
104
|
// }
|
|
94
105
|
const MinifiedToKey: Record<string, IsolateKeys>;
|
|
106
|
+
enum IsolateStatus {
|
|
107
|
+
PENDING = "PENDING",
|
|
108
|
+
DONE = "DONE",
|
|
109
|
+
INITIAL = "INITIAL"
|
|
110
|
+
}
|
|
95
111
|
type IsolateKey = Nullable<string>;
|
|
96
112
|
type TIsolate<P extends IsolatePayload = IsolatePayload> = {
|
|
97
113
|
[IsolateKeys.AllowReorder]?: boolean;
|
|
@@ -99,6 +115,7 @@ declare namespace Walker {
|
|
|
99
115
|
[IsolateKeys.Type]: string;
|
|
100
116
|
[IsolateKeys.Keys]: Nullable<Record<string, TIsolate>>;
|
|
101
117
|
[IsolateKeys.Data]: DataOnly<P>;
|
|
118
|
+
[IsolateKeys.Status]: IsolateStatus;
|
|
102
119
|
children: Nullable<TIsolate[]>;
|
|
103
120
|
key: IsolateKey;
|
|
104
121
|
output: any;
|
|
@@ -215,6 +232,8 @@ declare class IsolateMutator {
|
|
|
215
232
|
static addChildKey(isolate: TIsolate, key: string, node: TIsolate): void;
|
|
216
233
|
static slice(isolate: TIsolate, at: number): void;
|
|
217
234
|
static setData(isolate: TIsolate, data: any): void;
|
|
235
|
+
static setPending(isolate: TIsolate): void;
|
|
236
|
+
static setDone(isolate: TIsolate): void;
|
|
218
237
|
}
|
|
219
238
|
declare namespace Bus {
|
|
220
239
|
function useBus(): import("vest-utils").BusType;
|
|
@@ -232,7 +251,8 @@ declare namespace IsolateSelectors {
|
|
|
232
251
|
Key = "key",
|
|
233
252
|
Parent = "parent",
|
|
234
253
|
Data = "data",
|
|
235
|
-
AllowReorder = "allowReorder"
|
|
254
|
+
AllowReorder = "allowReorder",
|
|
255
|
+
Status = "status"
|
|
236
256
|
}
|
|
237
257
|
enum MinifiedKeys {
|
|
238
258
|
Type = "$",
|
|
@@ -240,7 +260,8 @@ declare namespace IsolateSelectors {
|
|
|
240
260
|
Key = "k",
|
|
241
261
|
Parent = "P",
|
|
242
262
|
Data = "D",
|
|
243
|
-
AllowReorder = "aR"
|
|
263
|
+
AllowReorder = "aR",
|
|
264
|
+
Status = "S"
|
|
244
265
|
}
|
|
245
266
|
const KeyToMinified: {
|
|
246
267
|
$type: MinifiedKeys;
|
|
@@ -249,6 +270,7 @@ declare namespace IsolateSelectors {
|
|
|
249
270
|
data: MinifiedKeys;
|
|
250
271
|
key: MinifiedKeys;
|
|
251
272
|
allowReorder: MinifiedKeys;
|
|
273
|
+
status: MinifiedKeys;
|
|
252
274
|
};
|
|
253
275
|
// This const is an object that looks like this:
|
|
254
276
|
// {
|
|
@@ -258,6 +280,11 @@ declare namespace IsolateSelectors {
|
|
|
258
280
|
// ...
|
|
259
281
|
// }
|
|
260
282
|
const MinifiedToKey: Record<string, IsolateKeys>;
|
|
283
|
+
enum IsolateStatus {
|
|
284
|
+
PENDING = "PENDING",
|
|
285
|
+
DONE = "DONE",
|
|
286
|
+
INITIAL = "INITIAL"
|
|
287
|
+
}
|
|
261
288
|
type IsolateKey = Nullable<string>;
|
|
262
289
|
type TIsolate<P extends IsolatePayload = IsolatePayload> = {
|
|
263
290
|
[IsolateKeys.AllowReorder]?: boolean;
|
|
@@ -265,6 +292,7 @@ declare namespace IsolateSelectors {
|
|
|
265
292
|
[IsolateKeys.Type]: string;
|
|
266
293
|
[IsolateKeys.Keys]: Nullable<Record<string, TIsolate>>;
|
|
267
294
|
[IsolateKeys.Data]: DataOnly<P>;
|
|
295
|
+
[IsolateKeys.Status]: IsolateStatus;
|
|
268
296
|
children: Nullable<TIsolate[]>;
|
|
269
297
|
key: IsolateKey;
|
|
270
298
|
output: any;
|
|
@@ -291,5 +319,5 @@ declare class IsolateSerializer {
|
|
|
291
319
|
static getChildren(node: TIsolate): Nullable<TIsolate[]>;
|
|
292
320
|
static validateIsolate(node: Record<string, any> | TIsolate): void;
|
|
293
321
|
}
|
|
294
|
-
export { IsolateKey, TIsolate, Isolate, Reconciler, IRecociler, Walker, RuntimeApi as VestRuntime, IsolateInspector, IsolateMutator, Bus, IsolateSelectors, IsolateSerializer };
|
|
322
|
+
export { IsolateKey, TIsolate, Isolate, IsolateStatus, Reconciler, IRecociler, Walker, RuntimeApi as VestRuntime, IsolateInspector, IsolateMutator, Bus, IsolateSelectors, IsolateSerializer };
|
|
295
323
|
//# sourceMappingURL=vestjs-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vestjs-runtime.d.ts","sourceRoot":"","sources":["../src/vestjs-runtime.ts","../src/Isolate/
|
|
1
|
+
{"version":3,"file":"vestjs-runtime.d.ts","sourceRoot":"","sources":["../src/vestjs-runtime.ts","../src/errors/ErrorStrings.ts","../src/Isolate/IsolateInspector.ts","../src/Isolate/IsolateStatus.ts","../src/Isolate/IsolateMutator.ts","../src/Isolate/IsolateKeys.ts","../src/Isolate/IsolateSelectors.ts","../src/Reconciler.ts","../src/VestRuntime.ts","../src/Bus.ts","../src/RuntimeEvents.ts","../src/Isolate/Isolate.ts","../src/IsolateWalker.ts","../src/exports/IsolateSerializer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,uLAAiC,CAAgB"}
|