@luna-park/plugin 1.3.0 → 1.3.1
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/bin/preview.js +50 -50
- package/dist/extractor.d.ts +0 -246
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -1463
- package/dist/index.js +79 -78
- package/dist/preview.d.ts +0 -6
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,1464 +1 @@
|
|
|
1
|
-
import { CDatabase } from './modules/database/lib/Database';
|
|
2
|
-
import { Component } from 'vue';
|
|
3
|
-
import { ComputedRef } from 'vue';
|
|
4
|
-
import { Cron } from 'lite-cron';
|
|
5
|
-
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
6
|
-
import { default as LSettingsStoryWrapper } from './components/LSettingsStoryWrapper.vue';
|
|
7
|
-
|
|
8
|
-
declare namespace Anchor {
|
|
9
|
-
export {
|
|
10
|
-
EAnchorDirection,
|
|
11
|
-
ANCHOR_PADDING,
|
|
12
|
-
IAnchor,
|
|
13
|
-
CAnchor,
|
|
14
|
-
ISingleAnchor,
|
|
15
|
-
CSingleAnchor,
|
|
16
|
-
INodeAnchor,
|
|
17
|
-
CNodeAnchor
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const ANCHOR_PADDING = 43;
|
|
22
|
-
|
|
23
|
-
declare abstract class CAnchor implements IAnchor {
|
|
24
|
-
connections: Array<Wire.CWire>;
|
|
25
|
-
dbAnchor: TDBAnchor;
|
|
26
|
-
padding?: number;
|
|
27
|
-
protected constructor(anchor: IAnchor);
|
|
28
|
-
abstract getLocation(): TVector;
|
|
29
|
-
abstract getPadding(): number;
|
|
30
|
-
get schema(): TSchema;
|
|
31
|
-
get schemaRaw(): TSchema;
|
|
32
|
-
get toSchema(): TSchema;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare class CDynamicVariable {
|
|
36
|
-
_dynamic: boolean;
|
|
37
|
-
type: EDynamicVariableType;
|
|
38
|
-
value: unknown;
|
|
39
|
-
token: string;
|
|
40
|
-
access: Array<string>;
|
|
41
|
-
target?: {
|
|
42
|
-
invert: boolean;
|
|
43
|
-
operation: EDynamicVariableOperation;
|
|
44
|
-
variable?: CDynamicVariable;
|
|
45
|
-
};
|
|
46
|
-
constructor({ type, access, target, token, value }?: Partial<TDynamicVariable>);
|
|
47
|
-
getComputed(component: TFileComponent, options?: {
|
|
48
|
-
context?: TLayoutContext;
|
|
49
|
-
stackId?: string;
|
|
50
|
-
}): ComputedRef<CLayoutValue | TReturnValue>;
|
|
51
|
-
getValue(component: TFileComponent, options?: {
|
|
52
|
-
base?: boolean;
|
|
53
|
-
context?: TLayoutContext;
|
|
54
|
-
stackId?: string;
|
|
55
|
-
}): TReturnValue;
|
|
56
|
-
getRawValue(): unknown;
|
|
57
|
-
toJSON(): unknown;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare class CLayoutValue {
|
|
61
|
-
id: string;
|
|
62
|
-
child: Array<string>;
|
|
63
|
-
component: TFileComponent;
|
|
64
|
-
type?: ELayoutValueType;
|
|
65
|
-
baseType?: ELayoutValueType;
|
|
66
|
-
stackId: string;
|
|
67
|
-
context: TLayoutContext;
|
|
68
|
-
constructor(access: Array<string>, component: TFileComponent, options?: {
|
|
69
|
-
context?: TLayoutContext;
|
|
70
|
-
stackId?: string;
|
|
71
|
-
});
|
|
72
|
-
get value(): unknown;
|
|
73
|
-
set value(value: unknown);
|
|
74
|
-
get schema(): TSchema;
|
|
75
|
-
get baseSchema(): TSchema;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare class CNode {
|
|
79
|
-
id: string;
|
|
80
|
-
dbNode: TGeneratedNode;
|
|
81
|
-
element?: HTMLElement;
|
|
82
|
-
invert: boolean;
|
|
83
|
-
parent?: TAnyLogic;
|
|
84
|
-
config: {
|
|
85
|
-
animate: boolean;
|
|
86
|
-
processing: boolean;
|
|
87
|
-
};
|
|
88
|
-
inputs: Record<string, Anchor.CNodeAnchor>;
|
|
89
|
-
outputs: Record<string, Anchor.CNodeAnchor>;
|
|
90
|
-
private cache;
|
|
91
|
-
private _location;
|
|
92
|
-
_data: TNodeData;
|
|
93
|
-
constructor(node: TNode_2);
|
|
94
|
-
get orderedInputs(): Anchor.CNodeAnchor[];
|
|
95
|
-
get orderedOutputs(): Anchor.CNodeAnchor[];
|
|
96
|
-
set location(location: TVector);
|
|
97
|
-
get location(): TVector;
|
|
98
|
-
getSafeInputs(): Record<string, CNodeAnchor>;
|
|
99
|
-
getSafeOutputs(): Record<string, CNodeAnchor>;
|
|
100
|
-
set data(data: Record<string, unknown>);
|
|
101
|
-
get data(): TNodeData;
|
|
102
|
-
reset(): void;
|
|
103
|
-
setLocation(location: TVector): CNode;
|
|
104
|
-
getAnchorLocation(anchor: Anchor.CNodeAnchor): CVector;
|
|
105
|
-
getRelativeAnchorLocation(anchor: Anchor.CNodeAnchor): CVector;
|
|
106
|
-
getRelativeAnchorLocation_internal(anchor: Anchor.CNodeAnchor): CVector;
|
|
107
|
-
getLocation(): CVector;
|
|
108
|
-
private getLocation_internal;
|
|
109
|
-
getSize(): CVector;
|
|
110
|
-
private getSize_internal;
|
|
111
|
-
execute(outputKey: string, stack?: TStack): MaybePromise<void>;
|
|
112
|
-
getInput(inputKey: string, stack?: TStack): unknown;
|
|
113
|
-
setOutput(outputKey: string, value: unknown, stack?: TStack): void;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
declare class CNodeAnchor extends CAnchor implements INodeAnchor {
|
|
117
|
-
key: string;
|
|
118
|
-
index: number;
|
|
119
|
-
node: Node_2.CNode;
|
|
120
|
-
direction: EAnchorDirection;
|
|
121
|
-
value: unknown;
|
|
122
|
-
element?: HTMLElement;
|
|
123
|
-
cache: {
|
|
124
|
-
preview?: unknown;
|
|
125
|
-
relativeLocation?: CVector;
|
|
126
|
-
};
|
|
127
|
-
constructor(anchor: INodeAnchor);
|
|
128
|
-
get schema(): TSchema;
|
|
129
|
-
get toSchema(): TSchema;
|
|
130
|
-
get schemaRaw(): TSchema;
|
|
131
|
-
getLocation(): CVector;
|
|
132
|
-
getRelativeLocation(): CVector;
|
|
133
|
-
resetCache(): void;
|
|
134
|
-
getPadding(): number;
|
|
135
|
-
isDisabled(): boolean;
|
|
136
|
-
errorMessage(): string | undefined;
|
|
137
|
-
setValue(value: string | number | boolean): void;
|
|
138
|
-
resetValue(): void;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
declare type Component_2 = {
|
|
142
|
-
name: string;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
declare class CPathPoint {
|
|
146
|
-
direction: CVector;
|
|
147
|
-
location: CVector;
|
|
148
|
-
constructor({ direction, location }: {
|
|
149
|
-
direction: TVector;
|
|
150
|
-
location: TVector;
|
|
151
|
-
});
|
|
152
|
-
move(offset: TVector, config?: {
|
|
153
|
-
reverse: boolean;
|
|
154
|
-
}): CPathPoint;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
declare function create({ from, temp, to }: {
|
|
158
|
-
from: Anchor.CAnchor;
|
|
159
|
-
temp: boolean;
|
|
160
|
-
to: Anchor.CAnchor;
|
|
161
|
-
}): CWire;
|
|
162
|
-
|
|
163
|
-
declare function create_2(dbNode: TLogicNode, { origin }?: {
|
|
164
|
-
origin?: TNode_2;
|
|
165
|
-
}): CNode;
|
|
166
|
-
|
|
167
|
-
declare class CSingleAnchor extends CAnchor implements ISingleAnchor {
|
|
168
|
-
location: TVector;
|
|
169
|
-
constructor(anchor: ISingleAnchor);
|
|
170
|
-
getLocation(): TVector;
|
|
171
|
-
getPadding(): number;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
declare class CVector {
|
|
175
|
-
x: number;
|
|
176
|
-
y: number;
|
|
177
|
-
constructor(vector: TVector);
|
|
178
|
-
setX(x: number): CVector;
|
|
179
|
-
setY(y: number): CVector;
|
|
180
|
-
clone(): CVector;
|
|
181
|
-
add(vector: TVector): CVector;
|
|
182
|
-
sub(vector: TVector): CVector;
|
|
183
|
-
mul(number: number): CVector;
|
|
184
|
-
div(number: number): CVector;
|
|
185
|
-
round(): CVector;
|
|
186
|
-
addX(x: number): CVector;
|
|
187
|
-
addY(y: number): CVector;
|
|
188
|
-
normalize(): CVector;
|
|
189
|
-
isNearlyEqual(vector: TVector): boolean;
|
|
190
|
-
getPointString(): string;
|
|
191
|
-
getMagnitude(): number;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
declare class CWire {
|
|
195
|
-
id: string;
|
|
196
|
-
from: Anchor.CAnchor;
|
|
197
|
-
to: Anchor.CAnchor;
|
|
198
|
-
animate: boolean;
|
|
199
|
-
temp: boolean;
|
|
200
|
-
constructor(wire: TWire);
|
|
201
|
-
get type(): TSchema | (TUnknown & TArguments<unknown>);
|
|
202
|
-
get toType(): TSchema;
|
|
203
|
-
getPoints(): string;
|
|
204
|
-
registerRibbon(path: Path): void;
|
|
205
|
-
getBoundingBox(): TRect;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
declare type DeepPartial<T> = {
|
|
209
|
-
[K in keyof T]?: T[K] extends Array<unknown> ? Array<DeepPartial<T[K][number]>> : T[K] extends Record<string, unknown> ? DeepPartial<T[K]> : T[K];
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
declare enum EAnchorDirection {
|
|
213
|
-
input = "input",
|
|
214
|
-
output = "output",
|
|
215
|
-
none = "none"
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
declare enum EComponentPreview {
|
|
219
|
-
Compact = "compact",
|
|
220
|
-
Stretch = "stretch",
|
|
221
|
-
Full = "full"
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
declare enum EComponentType {
|
|
225
|
-
Component = "component",
|
|
226
|
-
Page = "page"
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
declare enum EConfigDisplay {
|
|
230
|
-
Smart = "smart",
|
|
231
|
-
Performance = "performance"
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
declare enum EDynamicVariableOperation {
|
|
235
|
-
Equal = "equal",
|
|
236
|
-
Greater = "greater",
|
|
237
|
-
Less = "less",
|
|
238
|
-
StartsWith = "starts-with",
|
|
239
|
-
EndsWith = "ends-with",
|
|
240
|
-
Contains = "contains"
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
declare enum EDynamicVariableType {
|
|
244
|
-
Constant = "constant",
|
|
245
|
-
Dynamic = "dynamic",
|
|
246
|
-
Token = "token"
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
declare enum EElementTemplate {
|
|
250
|
-
If = "if",
|
|
251
|
-
For = "for"
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export declare enum EElementType {
|
|
255
|
-
Script = "script",
|
|
256
|
-
Standalone = "standalone",
|
|
257
|
-
Folder = "folder",
|
|
258
|
-
MainLogic = "main",
|
|
259
|
-
Logic = "logic",
|
|
260
|
-
Config = "config",
|
|
261
|
-
Text = "text",
|
|
262
|
-
Store = "store",
|
|
263
|
-
Database = "database",
|
|
264
|
-
Component = "component",
|
|
265
|
-
Route = "route",
|
|
266
|
-
Type = "type",
|
|
267
|
-
Cron = "cron",
|
|
268
|
-
Media = "media"
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
declare enum EFileSortStrategy {
|
|
272
|
-
Name = "name",
|
|
273
|
-
Type = "type"
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
declare enum EHistoryMode {
|
|
277
|
-
Hash = "hash",
|
|
278
|
-
Web = "web",
|
|
279
|
-
Memory = "memory"
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export declare enum EInjectionKey {
|
|
283
|
-
ViteImport = "viteImport",
|
|
284
|
-
VitePlugin = "vitePlugin",
|
|
285
|
-
AppImport = "appImport",
|
|
286
|
-
AppBody = "appBody",
|
|
287
|
-
AppSetup = "appSetup",
|
|
288
|
-
Style = "style",
|
|
289
|
-
ServerImport = "serverImport",
|
|
290
|
-
ServerBody = "serverBody"
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
declare enum ELayoutElement {
|
|
294
|
-
input = "input",
|
|
295
|
-
div = "div",
|
|
296
|
-
media = "media",
|
|
297
|
-
customText = "customText",
|
|
298
|
-
component = "component",
|
|
299
|
-
package = "package",
|
|
300
|
-
customHtml = "customHtml",
|
|
301
|
-
slot = "slot",
|
|
302
|
-
template = "template",
|
|
303
|
-
variable = "variable",
|
|
304
|
-
link = "link"
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
declare enum ELayoutEvent {
|
|
308
|
-
click = "click",
|
|
309
|
-
keydown = "keydown",
|
|
310
|
-
mouseenter = "mouseenter",
|
|
311
|
-
mouseleave = "mouseleave",
|
|
312
|
-
mousedown = "mousedown",
|
|
313
|
-
mouseup = "mouseup",
|
|
314
|
-
mousemove = "mousemove",
|
|
315
|
-
wheel = "wheel"
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
declare enum ELayoutValueType {
|
|
319
|
-
variable = "variable",
|
|
320
|
-
property = "property",
|
|
321
|
-
attribute = "attribute",
|
|
322
|
-
context = "context",
|
|
323
|
-
computed = "computed",
|
|
324
|
-
event = "event",
|
|
325
|
-
file = "file",
|
|
326
|
-
model = "model",
|
|
327
|
-
logic = "logic"
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
declare enum ELogicMode {
|
|
331
|
-
Pure = "pure",
|
|
332
|
-
Macro = "macro",
|
|
333
|
-
Code = "code"
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export declare enum ELogicScope {
|
|
337
|
-
Frontend = "frontend",
|
|
338
|
-
Backend = "backend",
|
|
339
|
-
Desktop = "desktop",
|
|
340
|
-
Shared = "shared"
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export declare enum ELogicType {
|
|
344
|
-
function = "function",
|
|
345
|
-
macro = "macro",
|
|
346
|
-
operation = "operation"
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
export declare enum EPluginHooks {
|
|
350
|
-
BackendMiddleware = "backend/middleware",
|
|
351
|
-
BackendInputNode = "backend/input-node"
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
declare enum EResponsiveStrategy {
|
|
355
|
-
DesktopFirst = "desktop-first",
|
|
356
|
-
MobileFirst = "mobile-first"
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
declare enum ERouteMethod {
|
|
360
|
-
Get = "get",
|
|
361
|
-
Post = "post",
|
|
362
|
-
Put = "put",
|
|
363
|
-
Delete = "delete"
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
declare enum EStoreType {
|
|
367
|
-
Memory = "memory",
|
|
368
|
-
Session = "session",
|
|
369
|
-
Local = "local"
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export declare enum ETokenType {
|
|
373
|
-
Color = "color",
|
|
374
|
-
FontSize = "font-size",
|
|
375
|
-
FontWeight = "font-weight",
|
|
376
|
-
FontFamily = "font-family",
|
|
377
|
-
Length = "length",
|
|
378
|
-
Time = "time"
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
export declare enum EVarType {
|
|
382
|
-
exec = "exec",
|
|
383
|
-
number = "number",
|
|
384
|
-
string = "string",
|
|
385
|
-
boolean = "boolean",
|
|
386
|
-
object = "object",
|
|
387
|
-
record = "record",
|
|
388
|
-
array = "array",
|
|
389
|
-
interface = "interface",
|
|
390
|
-
type = "type",
|
|
391
|
-
function = "function",
|
|
392
|
-
union = "union",
|
|
393
|
-
unknown = "unknown",
|
|
394
|
-
undefined = "undefined",
|
|
395
|
-
void = "void"
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
declare function from(wire: TWire): CWire;
|
|
399
|
-
|
|
400
|
-
declare function from_2(node: TNode_2): CNode;
|
|
401
|
-
|
|
402
|
-
export declare function getPluginParam<T>(target: TOption<TEnv, T>, env: Partial<TEnv>): Promise<T>;
|
|
403
|
-
|
|
404
|
-
declare interface IAnchor {
|
|
405
|
-
connections?: Array<Wire.CWire>;
|
|
406
|
-
dbAnchor: TDBAnchor;
|
|
407
|
-
padding?: number;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
declare interface INodeAnchor extends IAnchor {
|
|
411
|
-
index: number;
|
|
412
|
-
direction: EAnchorDirection;
|
|
413
|
-
element?: HTMLElement;
|
|
414
|
-
key: string;
|
|
415
|
-
node: Node_2.CNode;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
declare interface ISingleAnchor extends IAnchor {
|
|
419
|
-
location: TVector;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
export declare function loadPlugin<TConfig extends TSchema, TInternal>(plugin: TPlugin<TConfig, TInternal>, env: Partial<TEnv>): Promise<TBasePlugin<TConfig, TInternal>>;
|
|
423
|
-
|
|
424
|
-
export declare const LogicType: {
|
|
425
|
-
array: <T extends TSchema, TArgs extends TArguments<Array<T>>>(items: T, args?: TArgs) => TArray<T> & TArgs;
|
|
426
|
-
boolean: <TArgs extends TArguments<boolean>>(args?: TArgs) => TBoolean & TArgs;
|
|
427
|
-
exec: (args?: TArguments) => TExec;
|
|
428
|
-
function: <TInputs extends TObject, TOutput extends TSchema = TUndefined, TPromise extends boolean = false>(inputs?: TInputs, output?: TOutput, args?: TArguments & {
|
|
429
|
-
promise?: TPromise;
|
|
430
|
-
}) => TFunction<TInputs, TOutput, TPromise>;
|
|
431
|
-
interface: <T, TArgs extends TArguments<T> = TArguments<T>>(interfaceClass: (new (...args: any) => T) | string, args?: TArgs) => TInterface<T> & TArgs;
|
|
432
|
-
number: <TArgs extends TArguments<number>>(args?: TArgs) => TNumber & TArgs;
|
|
433
|
-
object: <T extends TProperties, TArgs extends TArguments<object>>(properties?: T, args?: TArgs) => TObject<T> & TArgs;
|
|
434
|
-
record: <TKey extends TString | TNumber, TValue extends TSchema = TSchema<TAnyLogic_2>>(key: TKey, value: TValue, args?: TArguments) => TRecord<TKey, TValue>;
|
|
435
|
-
string: <TArgs extends TArguments<string>>(args?: TArgs) => TString & TArgs;
|
|
436
|
-
type: <T extends TSchema>(target: Array<string>, args?: TArguments) => TType<T>;
|
|
437
|
-
undefined: (args?: TArguments) => TUndefined;
|
|
438
|
-
union: <T extends Array<TSchema>>(elements: T, args?: TArguments) => TUnion<T>;
|
|
439
|
-
unknown: <TArgs extends TArguments<unknown>>(args?: TArgs) => TUnknown & TArgs;
|
|
440
|
-
void: (args?: TArguments) => TVoid;
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
export declare const LogicUtil: {
|
|
444
|
-
omit(target: TObject, keys: Array<string>): TObject;
|
|
445
|
-
partial(target: TObject, force?: boolean): TObject;
|
|
446
|
-
pick(target: TObject, keys: Array<string>): TObject;
|
|
447
|
-
promise(target: TSchema): TSchema;
|
|
448
|
-
required(target: TObject): TObject;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
export { LSettingsStoryWrapper }
|
|
452
|
-
|
|
453
|
-
export declare function makeComponent<TProps extends Record<string, TSchema>>(component: TComponent<TProps>): TComponent<TProps>;
|
|
454
|
-
|
|
455
|
-
export declare function makeLogicNode<TInputs extends TNodeInterfaceDescriptor, TOutputs extends TNodeInterfaceDescriptor, TConfig extends TNodeConfigDescriptor>(node: TNodeDescriptor<TInputs, TOutputs, TConfig>): TLogicNode;
|
|
456
|
-
|
|
457
|
-
declare function makePath(start: CPathPoint, end: CPathPoint): Path;
|
|
458
|
-
|
|
459
|
-
export declare function makePlugin<TConfig extends TSchema, TInternal>(plugin: TPlugin<TConfig, TInternal>): TPlugin<TConfig, TInternal>;
|
|
460
|
-
|
|
461
|
-
declare type MaybePromise<T> = T | Promise<T>;
|
|
462
|
-
|
|
463
|
-
declare type MethodsFrom<TInterface extends TNodeInterfaceDescriptor> = {
|
|
464
|
-
[TKey in keyof TInterface]: (() => MaybePromise<Static<TInterface[TKey]>>) | {
|
|
465
|
-
async: () => Promise<Static<TInterface[TKey]>>;
|
|
466
|
-
sync: () => MaybePromise<Static<TInterface[TKey]>>;
|
|
467
|
-
};
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
declare namespace Node_2 {
|
|
471
|
-
export {
|
|
472
|
-
from_2 as from,
|
|
473
|
-
create_2 as create,
|
|
474
|
-
NODE_WIDTH,
|
|
475
|
-
TNode_2 as TNode,
|
|
476
|
-
CNode
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
declare const NODE_WIDTH = 10;
|
|
481
|
-
|
|
482
|
-
declare type OptionalKeys<T extends TProperties> = {
|
|
483
|
-
[K in keyof T]: T[K] extends {
|
|
484
|
-
optional: true;
|
|
485
|
-
} ? K : never;
|
|
486
|
-
}[keyof T];
|
|
487
|
-
|
|
488
|
-
declare type Path = Array<CPathPoint>;
|
|
489
|
-
|
|
490
|
-
declare function pathToString(path: Path, config?: {
|
|
491
|
-
smoothing: boolean;
|
|
492
|
-
}): string;
|
|
493
|
-
|
|
494
|
-
declare type RequiredKeys<T extends TProperties> = Exclude<keyof T, OptionalKeys<T>>;
|
|
495
|
-
|
|
496
|
-
export declare type Static<T extends TSchema> = T extends {
|
|
497
|
-
optional: true;
|
|
498
|
-
} ? (T["static"] | undefined) : T["static"];
|
|
499
|
-
|
|
500
|
-
declare type StaticFunction<TInputs extends TObject, TOutput extends TSchema, TPromise extends boolean = false> = TPromise extends true ? (...args: Array<Static<TInputs>[string]>) => Promise<Static<TOutput>> : (...args: Array<Static<TInputs>[string]>) => Static<TOutput>;
|
|
501
|
-
|
|
502
|
-
declare type StaticObject<T extends TProperties> = {
|
|
503
|
-
[K in RequiredKeys<T>]: Static<T[K]>;
|
|
504
|
-
} & {
|
|
505
|
-
[K in OptionalKeys<T>]?: Static<T[K]>;
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
declare type StaticOfProps<T extends Record<string, TSchema>> = {
|
|
509
|
-
[K in keyof T]: {
|
|
510
|
-
schema: TSchema;
|
|
511
|
-
value: Static<T[K]>;
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
declare type StaticRecord<TKey extends TSchema, TValue extends TSchema> = Record<Static<TKey>, Static<TValue>>;
|
|
516
|
-
|
|
517
|
-
declare type StaticUnion<T extends Array<TSchema>> = {
|
|
518
|
-
[K in keyof T]: Static<T[K]>;
|
|
519
|
-
}[number];
|
|
520
|
-
|
|
521
|
-
declare type TAnchor<TExport extends boolean = false> = TExport extends true ? TSchema : {
|
|
522
|
-
id: string;
|
|
523
|
-
parent?: TLogic<TExport>;
|
|
524
|
-
schema: TSchema;
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
export declare type TAnyLogic<TExport extends boolean = false> = TLogic<TExport> | TLogicMain<TExport>;
|
|
528
|
-
|
|
529
|
-
declare type TAnyLogic_2 = TExec | TObject | TRecord<any, any> | TInterface | TType | TArray<any> | TString | TNumber | TBoolean | TUnknown | TUndefined | TUnion<any> | TFunction<any, any> | TVoid;
|
|
530
|
-
|
|
531
|
-
export declare type TApplication<TExport extends boolean = false> = {
|
|
532
|
-
name: string;
|
|
533
|
-
config: TApplicationConfig;
|
|
534
|
-
tree: TFile<TExport>;
|
|
535
|
-
version: number;
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
declare type TApplicationConfig = {
|
|
539
|
-
backend: {
|
|
540
|
-
proxy: string;
|
|
541
|
-
salt: string;
|
|
542
|
-
};
|
|
543
|
-
database: {
|
|
544
|
-
type: string;
|
|
545
|
-
};
|
|
546
|
-
description?: string;
|
|
547
|
-
desktop: {
|
|
548
|
-
fullscreen: boolean;
|
|
549
|
-
height: number;
|
|
550
|
-
resizable: boolean;
|
|
551
|
-
version: string;
|
|
552
|
-
width: number;
|
|
553
|
-
};
|
|
554
|
-
libraries: Record<string, boolean>;
|
|
555
|
-
packages: Record<string, {
|
|
556
|
-
name: string;
|
|
557
|
-
components: TExportNodeResult["components"];
|
|
558
|
-
description?: string;
|
|
559
|
-
functions: TExportNodeResult["functions"];
|
|
560
|
-
types: TExportNodeResult["types"];
|
|
561
|
-
}>;
|
|
562
|
-
palette: {
|
|
563
|
-
tokens: {
|
|
564
|
-
colors: Array<{
|
|
565
|
-
id: string;
|
|
566
|
-
name: string;
|
|
567
|
-
value: string;
|
|
568
|
-
}>;
|
|
569
|
-
fonts: Array<{
|
|
570
|
-
id: string;
|
|
571
|
-
name: string;
|
|
572
|
-
value: string;
|
|
573
|
-
}>;
|
|
574
|
-
lengths: Array<{
|
|
575
|
-
id: string;
|
|
576
|
-
name: string;
|
|
577
|
-
value: string;
|
|
578
|
-
}>;
|
|
579
|
-
};
|
|
580
|
-
inject: {
|
|
581
|
-
html: string;
|
|
582
|
-
css: string;
|
|
583
|
-
js: string;
|
|
584
|
-
head: string;
|
|
585
|
-
};
|
|
586
|
-
};
|
|
587
|
-
plugins: Record<string, {
|
|
588
|
-
config?: unknown;
|
|
589
|
-
internals?: unknown;
|
|
590
|
-
target: string;
|
|
591
|
-
}>;
|
|
592
|
-
state: {
|
|
593
|
-
currentTab: string;
|
|
594
|
-
explorerSort: EFileSortStrategy;
|
|
595
|
-
tabs: Array<string>;
|
|
596
|
-
};
|
|
597
|
-
style: {
|
|
598
|
-
strategy: EResponsiveStrategy;
|
|
599
|
-
};
|
|
600
|
-
web: {
|
|
601
|
-
history: EHistoryMode;
|
|
602
|
-
pwa: boolean;
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
|
|
606
|
-
declare interface TArguments<TType = unknown> {
|
|
607
|
-
build?: (arg: unknown) => unknown;
|
|
608
|
-
customizable?: boolean;
|
|
609
|
-
default?: TType | (() => TType);
|
|
610
|
-
defaultType?: TSchema;
|
|
611
|
-
description?: string;
|
|
612
|
-
dynamic?: ((arg: {
|
|
613
|
-
config: Record<string, unknown>;
|
|
614
|
-
inputs: Record<string, TSchema>;
|
|
615
|
-
outputs: Record<string, TSchema>;
|
|
616
|
-
}) => TSchema);
|
|
617
|
-
enum?: TEnum<TType>;
|
|
618
|
-
example?: unknown;
|
|
619
|
-
format?: "date-time" | "email" | "color";
|
|
620
|
-
multiple?: boolean;
|
|
621
|
-
name?: string;
|
|
622
|
-
optional?: boolean;
|
|
623
|
-
options?: {
|
|
624
|
-
access?: TSchema<TObject>;
|
|
625
|
-
format?: (arg: TType) => TType;
|
|
626
|
-
freeze?: boolean;
|
|
627
|
-
readonly?: boolean;
|
|
628
|
-
} & Record<string, unknown>;
|
|
629
|
-
parse?: (arg: unknown) => unknown;
|
|
630
|
-
placeholder?: string;
|
|
631
|
-
priority?: boolean;
|
|
632
|
-
promise?: boolean;
|
|
633
|
-
required?: boolean;
|
|
634
|
-
static?: unknown;
|
|
635
|
-
sub?: TSchema;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
declare interface TArray<T extends TSchema = TSchema> {
|
|
639
|
-
items: T;
|
|
640
|
-
static: Array<Static<T>>;
|
|
641
|
-
type: EVarType.array;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
declare type TBaseDynamicVariable = {
|
|
645
|
-
type: EDynamicVariableType;
|
|
646
|
-
_dynamic: true;
|
|
647
|
-
access: Array<string>;
|
|
648
|
-
target: {
|
|
649
|
-
invert?: boolean;
|
|
650
|
-
operation: EDynamicVariableOperation;
|
|
651
|
-
variable?: TDynamicVariable;
|
|
652
|
-
};
|
|
653
|
-
token: string;
|
|
654
|
-
value: unknown;
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
export declare type TBasePlugin<TConfig extends TSchema = TSchema, TInternals = unknown> = {
|
|
658
|
-
build?: {
|
|
659
|
-
backImports?: Array<{
|
|
660
|
-
name: string;
|
|
661
|
-
version?: string;
|
|
662
|
-
}>;
|
|
663
|
-
frontImports?: Array<{
|
|
664
|
-
name: string;
|
|
665
|
-
version?: string;
|
|
666
|
-
}>;
|
|
667
|
-
injections?: Partial<Record<EInjectionKey, string>>;
|
|
668
|
-
};
|
|
669
|
-
color?: string;
|
|
670
|
-
config?: TConfig;
|
|
671
|
-
dependencies?: Array<{
|
|
672
|
-
id: string;
|
|
673
|
-
name: string;
|
|
674
|
-
target: string;
|
|
675
|
-
}>;
|
|
676
|
-
description?: string;
|
|
677
|
-
editor?: {
|
|
678
|
-
components?: Array<TComponent>;
|
|
679
|
-
interfaces?: Array<TInterface_2>;
|
|
680
|
-
nodes?: Array<TLogicNode>;
|
|
681
|
-
templates?: Array<TTemplate>;
|
|
682
|
-
tokens?: Array<TToken>;
|
|
683
|
-
wrapper?: TComponent & {
|
|
684
|
-
attributes?: Record<string, unknown>;
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
|
-
hooks?: {
|
|
688
|
-
[THook in EPluginHooks]?: (params: THookParams[THook]) => MaybePromise<void>;
|
|
689
|
-
};
|
|
690
|
-
icon: string;
|
|
691
|
-
id: string;
|
|
692
|
-
inject?: {
|
|
693
|
-
css?: string;
|
|
694
|
-
js?: string;
|
|
695
|
-
};
|
|
696
|
-
interface?: Component;
|
|
697
|
-
internals?: TInternals;
|
|
698
|
-
lifecycle?: {
|
|
699
|
-
mount?: (env: TEnv<TConfig, TInternals>) => Promise<void> | void;
|
|
700
|
-
unmount?: (env: TEnv<TConfig, TInternals>) => Promise<void> | void;
|
|
701
|
-
update?: (env: TEnv<TConfig, TInternals>) => Promise<void> | void;
|
|
702
|
-
};
|
|
703
|
-
name: string;
|
|
704
|
-
settings?: Array<{
|
|
705
|
-
component: Component;
|
|
706
|
-
icon?: IconDefinition | string;
|
|
707
|
-
label: string;
|
|
708
|
-
}>;
|
|
709
|
-
windows?: Record<string, Component>;
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
declare interface TBoolean {
|
|
713
|
-
static: boolean;
|
|
714
|
-
type: EVarType.boolean;
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
declare type TCanvas = {
|
|
718
|
-
location: TVector;
|
|
719
|
-
zoom: number;
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
export declare type TComponent<TProps extends Record<string, TSchema> = Record<string, TSchema>, TInternals = unknown> = {
|
|
723
|
-
build?: {
|
|
724
|
-
imports?: Array<{
|
|
725
|
-
default?: boolean;
|
|
726
|
-
from: string;
|
|
727
|
-
name: string;
|
|
728
|
-
}>;
|
|
729
|
-
name?: string;
|
|
730
|
-
};
|
|
731
|
-
component: Component;
|
|
732
|
-
documentation?: {
|
|
733
|
-
description?: string;
|
|
734
|
-
link?: string;
|
|
735
|
-
};
|
|
736
|
-
emits?: Record<string, TSchema>;
|
|
737
|
-
icon?: IconDefinition | string;
|
|
738
|
-
internals?: TInternals;
|
|
739
|
-
models?: Record<string, TSchema>;
|
|
740
|
-
name: string;
|
|
741
|
-
preview?: {
|
|
742
|
-
properties?: Partial<{
|
|
743
|
-
[TKey in keyof TProps]: Static<TProps[TKey]>;
|
|
744
|
-
}>;
|
|
745
|
-
slots?: Record<string, string>;
|
|
746
|
-
style?: string;
|
|
747
|
-
};
|
|
748
|
-
properties?: TProps;
|
|
749
|
-
slots?: Record<string, TSlot> | ((attributes: StaticOfProps<TProps> & {
|
|
750
|
-
internals: TInternals;
|
|
751
|
-
}) => Record<string, TSlot>);
|
|
752
|
-
};
|
|
753
|
-
|
|
754
|
-
declare type TComponentOptions = {
|
|
755
|
-
type: EComponentType;
|
|
756
|
-
path: string;
|
|
757
|
-
preview: EComponentPreview;
|
|
758
|
-
previewSize: string;
|
|
759
|
-
};
|
|
760
|
-
|
|
761
|
-
declare type TDBAnchor = {
|
|
762
|
-
id?: string;
|
|
763
|
-
schema: TSchema;
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
declare type TDocumentation = {
|
|
767
|
-
description?: string;
|
|
768
|
-
examples?: Array<{
|
|
769
|
-
inputs: Array<{
|
|
770
|
-
key: string;
|
|
771
|
-
value: unknown;
|
|
772
|
-
}>;
|
|
773
|
-
outputs: Array<{
|
|
774
|
-
key: string;
|
|
775
|
-
value: unknown;
|
|
776
|
-
}>;
|
|
777
|
-
}>;
|
|
778
|
-
parameters?: Array<{
|
|
779
|
-
description: string;
|
|
780
|
-
name: string;
|
|
781
|
-
}>;
|
|
782
|
-
};
|
|
783
|
-
|
|
784
|
-
declare type TDynamicVariable<TExport extends boolean = false> = (TExport extends true ? TBaseDynamicVariable : CDynamicVariable) | unknown;
|
|
785
|
-
|
|
786
|
-
declare type TEnum<TEnumType> = Array<TEnumType> | Record<string, TEnumType>;
|
|
787
|
-
|
|
788
|
-
export declare type TEnv<TConfig extends TSchema = TSchema, TInternals = unknown> = {
|
|
789
|
-
addFile: (file: DeepPartial<TFile<true>> & {
|
|
790
|
-
type: EElementType;
|
|
791
|
-
}, parentId?: string) => TFile;
|
|
792
|
-
app: TApplication;
|
|
793
|
-
backend: {
|
|
794
|
-
cookies: Record<string, {
|
|
795
|
-
options?: Record<string, string>;
|
|
796
|
-
value: string;
|
|
797
|
-
}>;
|
|
798
|
-
};
|
|
799
|
-
config: Static<TConfig>;
|
|
800
|
-
getFile: (id: string) => TFile | undefined;
|
|
801
|
-
internals: TInternals;
|
|
802
|
-
mode: "build" | "editor";
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
declare interface TExec {
|
|
806
|
-
type: EVarType.exec;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
declare type TExportNodeFunction = {
|
|
810
|
-
name?: string;
|
|
811
|
-
description?: string;
|
|
812
|
-
parameters?: Array<TSchema>;
|
|
813
|
-
return?: TSchema;
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
declare type TExportNodeResult = {
|
|
817
|
-
components: Record<string, {
|
|
818
|
-
properties: Record<string, TSchema>;
|
|
819
|
-
slots: Record<string, TSchema>;
|
|
820
|
-
}>;
|
|
821
|
-
functions: Record<string, TExportNodeFunction>;
|
|
822
|
-
types: Record<string, TSchema>;
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
export declare type TFile<TExport extends boolean = false> = (TFolder<TExport> | TFileComponent<TExport> | TFileConfig<TExport> | TFileCron<TExport> | TFileDatabase<TExport> | TFileRoute<TExport> | TFileScript<TExport> | TFileStore<TExport> | TFileText<TExport> | TFileType<TExport> | TFileMedia<TExport>) & {
|
|
826
|
-
isEditing?: boolean;
|
|
827
|
-
};
|
|
828
|
-
|
|
829
|
-
declare type TFileBase<TExport extends boolean = false> = {
|
|
830
|
-
name: string;
|
|
831
|
-
state: TFileState;
|
|
832
|
-
} & (TExport extends false ? {
|
|
833
|
-
id: string;
|
|
834
|
-
parent?: TFolder<TExport>;
|
|
835
|
-
} : {});
|
|
836
|
-
|
|
837
|
-
export declare type TFileComponent<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
838
|
-
type: EElementType.Component;
|
|
839
|
-
collapsed?: boolean;
|
|
840
|
-
layout: TLayoutSchema<ELayoutElement, TExport>;
|
|
841
|
-
logics: Record<string, TLogic<TExport> | TLogicMain<TExport>>;
|
|
842
|
-
options: TComponentOptions;
|
|
843
|
-
values: {
|
|
844
|
-
computed: Record<string, TValue<TExport>>;
|
|
845
|
-
events: Record<string, TValue<TExport>>;
|
|
846
|
-
model?: TSchema;
|
|
847
|
-
properties: Record<string, TValue<TExport>>;
|
|
848
|
-
variables: Record<string, TValue<TExport>>;
|
|
849
|
-
};
|
|
850
|
-
} & (TExport extends false ? {
|
|
851
|
-
flat: Record<string, TLayoutSchema>;
|
|
852
|
-
} : {});
|
|
853
|
-
|
|
854
|
-
export declare type TFileConfig<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
855
|
-
type: EElementType.Config;
|
|
856
|
-
content: unknown;
|
|
857
|
-
display: EConfigDisplay;
|
|
858
|
-
schema: TSchema;
|
|
859
|
-
scope: ELogicScope;
|
|
860
|
-
};
|
|
861
|
-
|
|
862
|
-
export declare type TFileCron<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
863
|
-
type: EElementType.Cron;
|
|
864
|
-
active: boolean;
|
|
865
|
-
editorTrigger: boolean;
|
|
866
|
-
logics: Record<string, TAnyLogic<TExport>>;
|
|
867
|
-
time: string;
|
|
868
|
-
} & (TExport extends false ? {
|
|
869
|
-
cron?: Cron;
|
|
870
|
-
scope: ELogicScope.Backend;
|
|
871
|
-
} : {});
|
|
872
|
-
|
|
873
|
-
export declare type TFileDatabase<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
874
|
-
type: EElementType.Database;
|
|
875
|
-
data: Array<Record<string, unknown>>;
|
|
876
|
-
schema: TSchema<TObject>;
|
|
877
|
-
} & (TExport extends false ? {
|
|
878
|
-
db: CDatabase;
|
|
879
|
-
scope: ELogicScope.Backend;
|
|
880
|
-
} : {});
|
|
881
|
-
|
|
882
|
-
export declare type TFileMedia<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
883
|
-
type: EElementType.Media;
|
|
884
|
-
mimeType: string;
|
|
885
|
-
target: string;
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
export declare type TFileRoute<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
889
|
-
type: EElementType.Route;
|
|
890
|
-
dev?: boolean;
|
|
891
|
-
input: {
|
|
892
|
-
body: TSchema;
|
|
893
|
-
headers: TSchema;
|
|
894
|
-
query: TSchema;
|
|
895
|
-
};
|
|
896
|
-
logics: Record<string, TAnyLogic<TExport>>;
|
|
897
|
-
method: ERouteMethod;
|
|
898
|
-
output: TSchema;
|
|
899
|
-
path: string;
|
|
900
|
-
} & (TExport extends false ? {
|
|
901
|
-
scope: ELogicScope.Backend;
|
|
902
|
-
} : {});
|
|
903
|
-
|
|
904
|
-
export declare type TFileScript<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
905
|
-
type: EElementType.Script;
|
|
906
|
-
logics: Record<string, TAnyLogic<TExport>>;
|
|
907
|
-
options?: {
|
|
908
|
-
autoReload?: boolean;
|
|
909
|
-
};
|
|
910
|
-
scope: ELogicScope;
|
|
911
|
-
};
|
|
912
|
-
|
|
913
|
-
declare type TFileState = {
|
|
914
|
-
expand?: boolean;
|
|
915
|
-
isEditing?: boolean;
|
|
916
|
-
logic?: {
|
|
917
|
-
location: TVector;
|
|
918
|
-
zoom: number;
|
|
919
|
-
};
|
|
920
|
-
opened?: boolean;
|
|
921
|
-
panel?: string;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
export declare type TFileStore<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
925
|
-
type: EElementType.Store;
|
|
926
|
-
default: unknown;
|
|
927
|
-
logics: Record<string, TLogic<TExport>>;
|
|
928
|
-
options: TStoreOptions;
|
|
929
|
-
schema: TSchema;
|
|
930
|
-
} & (TExport extends false ? {
|
|
931
|
-
proxy: TSchema;
|
|
932
|
-
scope: ELogicScope.Frontend;
|
|
933
|
-
value: Record<string, unknown>;
|
|
934
|
-
} : {});
|
|
935
|
-
|
|
936
|
-
export declare type TFileText<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
937
|
-
type: EElementType.Text;
|
|
938
|
-
blocks: Array<{
|
|
939
|
-
content: string;
|
|
940
|
-
key: string;
|
|
941
|
-
}>;
|
|
942
|
-
} & (TExport extends false ? {
|
|
943
|
-
scope: ELogicScope.Frontend;
|
|
944
|
-
} : {});
|
|
945
|
-
|
|
946
|
-
export declare type TFileType<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
947
|
-
name: string;
|
|
948
|
-
type: EElementType.Type;
|
|
949
|
-
schemas: Record<string, TSchema>;
|
|
950
|
-
} & (TExport extends false ? {
|
|
951
|
-
scope: ELogicScope.Shared;
|
|
952
|
-
} : {});
|
|
953
|
-
|
|
954
|
-
export declare type TFolder<TExport extends boolean = false> = TFileBase<TExport> & {
|
|
955
|
-
type: EElementType.Folder;
|
|
956
|
-
children: Record<string, TFile<TExport>>;
|
|
957
|
-
color?: string;
|
|
958
|
-
};
|
|
959
|
-
|
|
960
|
-
declare interface TFunction<TInputs extends TObject = TObject, TOutput extends TSchema = TUnknown, TPromise extends boolean = false> {
|
|
961
|
-
inputs: TInputs;
|
|
962
|
-
output: TOutput;
|
|
963
|
-
static: StaticFunction<TInputs, TOutput, TPromise>;
|
|
964
|
-
type: EVarType.function;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
declare type TGeneratedNode<TLogic extends TLogicNode = TLogicNode> = TLogic & {
|
|
968
|
-
node?: CNode;
|
|
969
|
-
origin: TLogic;
|
|
970
|
-
proxy: any;
|
|
971
|
-
};
|
|
972
|
-
|
|
973
|
-
declare type TGraph<TExport extends boolean = false> = {
|
|
974
|
-
canvas: TCanvas;
|
|
975
|
-
nodes: Record<string, TNode<TExport>>;
|
|
976
|
-
wires: Record<string, TWire_2<TExport>>;
|
|
977
|
-
};
|
|
978
|
-
|
|
979
|
-
export declare type THookParams = {
|
|
980
|
-
[EPluginHooks.BackendMiddleware]: {
|
|
981
|
-
cookies: Record<string, {
|
|
982
|
-
options?: Record<string, unknown>;
|
|
983
|
-
value: string;
|
|
984
|
-
}>;
|
|
985
|
-
setContextVar: (key: string, value: unknown) => void;
|
|
986
|
-
};
|
|
987
|
-
[EPluginHooks.BackendInputNode]: {
|
|
988
|
-
addInput: (key: string, schema: TSchema) => void;
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
declare interface TInterface<T = unknown> {
|
|
993
|
-
class?: new (...args: any) => T;
|
|
994
|
-
className: string;
|
|
995
|
-
static: T;
|
|
996
|
-
type: EVarType.interface;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
declare type TInterface_2 = {
|
|
1000
|
-
arguments?: Array<TSchema>;
|
|
1001
|
-
class?: new (...args: Array<unknown>) => unknown;
|
|
1002
|
-
methods?: Array<{
|
|
1003
|
-
name: string;
|
|
1004
|
-
parameters?: Array<TSchema>;
|
|
1005
|
-
return: TSchema;
|
|
1006
|
-
}>;
|
|
1007
|
-
name: string;
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
declare type TLayoutContentType<TElement extends ELayoutElement, TExport extends boolean = false> = TElement extends ELayoutElement.variable ? {
|
|
1011
|
-
var: CDynamicVariable | unknown;
|
|
1012
|
-
} : TElement extends ELayoutElement.component ? {
|
|
1013
|
-
id: string;
|
|
1014
|
-
slot: boolean;
|
|
1015
|
-
slots: Record<string, TLayoutSchema<TElement, TExport>>;
|
|
1016
|
-
} : TElement extends ELayoutElement.customText ? {
|
|
1017
|
-
text: TTextBlock;
|
|
1018
|
-
variables: Array<string>;
|
|
1019
|
-
} : TElement extends ELayoutElement.customHtml ? {
|
|
1020
|
-
html: string;
|
|
1021
|
-
variables: Array<string>;
|
|
1022
|
-
} : TElement extends ELayoutElement.template ? {
|
|
1023
|
-
preview: string;
|
|
1024
|
-
template: EElementTemplate;
|
|
1025
|
-
var: CDynamicVariable | unknown;
|
|
1026
|
-
} : TElement extends ELayoutElement.package ? {
|
|
1027
|
-
slot: boolean;
|
|
1028
|
-
slots: Record<string, TLayoutSchema<TElement, TExport>>;
|
|
1029
|
-
target: Array<string>;
|
|
1030
|
-
} : Record<string, unknown>;
|
|
1031
|
-
|
|
1032
|
-
declare type TLayoutContext = Record<string, TLayoutContextVariable>;
|
|
1033
|
-
|
|
1034
|
-
declare type TLayoutContextVariable = {
|
|
1035
|
-
schema: TSchema;
|
|
1036
|
-
value: unknown;
|
|
1037
|
-
};
|
|
1038
|
-
|
|
1039
|
-
declare type TLayoutSchema<TElement extends ELayoutElement = ELayoutElement, TExport extends boolean = false> = {
|
|
1040
|
-
[TInnerElement in TElement]: {
|
|
1041
|
-
id: string;
|
|
1042
|
-
name: string;
|
|
1043
|
-
children: Array<TLayoutSchema<ELayoutElement, TExport>>;
|
|
1044
|
-
classes: Array<TDynamicVariable<TExport>>;
|
|
1045
|
-
collapsed?: boolean;
|
|
1046
|
-
component: TFileComponent<TExport>;
|
|
1047
|
-
content: TLayoutContentType<TInnerElement>;
|
|
1048
|
-
element: TInnerElement;
|
|
1049
|
-
events: Array<ELayoutEvent | string>;
|
|
1050
|
-
model?: Array<string>;
|
|
1051
|
-
properties: Record<string, TDynamicVariable<TExport>>;
|
|
1052
|
-
style: Record<"base" | string, Record<"default" | "hover", Record<string, Record<string, TDynamicVariable<TExport>>> & {
|
|
1053
|
-
collapsed?: boolean;
|
|
1054
|
-
}>>;
|
|
1055
|
-
tag?: string;
|
|
1056
|
-
};
|
|
1057
|
-
}[TElement] & (TExport extends false ? {
|
|
1058
|
-
parent?: TLayoutSchema<ELayoutElement, TExport>;
|
|
1059
|
-
} : {});
|
|
1060
|
-
|
|
1061
|
-
export declare type TLogic<TExport extends boolean = false> = TLogicBase<TExport> & {
|
|
1062
|
-
type: EElementType.Logic | EElementType.Standalone;
|
|
1063
|
-
async: boolean;
|
|
1064
|
-
code?: string;
|
|
1065
|
-
export: boolean;
|
|
1066
|
-
inputs: Record<string, TAnchor<TExport>>;
|
|
1067
|
-
mode: ELogicMode;
|
|
1068
|
-
outputs: Record<string, TAnchor<TExport>>;
|
|
1069
|
-
packages?: Array<string>;
|
|
1070
|
-
} & (TExport extends false ? {
|
|
1071
|
-
id: string;
|
|
1072
|
-
} : {});
|
|
1073
|
-
|
|
1074
|
-
declare type TLogicBase<TExport extends boolean = false> = {
|
|
1075
|
-
name: string;
|
|
1076
|
-
type: EElementType;
|
|
1077
|
-
graph: TGraph<TExport>;
|
|
1078
|
-
values: {
|
|
1079
|
-
variables: Record<string, TValue<TExport>>;
|
|
1080
|
-
};
|
|
1081
|
-
} & (TExport extends false ? {
|
|
1082
|
-
id: string;
|
|
1083
|
-
db: Record<string, TLogicNode>;
|
|
1084
|
-
isEditing?: boolean;
|
|
1085
|
-
parent: TFile<TExport>;
|
|
1086
|
-
} : {});
|
|
1087
|
-
|
|
1088
|
-
export declare type TLogicMain<TExport extends boolean = false> = TLogicBase<TExport> & {
|
|
1089
|
-
name: "Main";
|
|
1090
|
-
type: EElementType.MainLogic;
|
|
1091
|
-
} & (TExport extends false ? {
|
|
1092
|
-
id: "main";
|
|
1093
|
-
} : {});
|
|
1094
|
-
|
|
1095
|
-
export declare type TLogicNode = {
|
|
1096
|
-
build?: {
|
|
1097
|
-
define?: Array<{
|
|
1098
|
-
id: (data: {
|
|
1099
|
-
input?: Record<string, unknown>;
|
|
1100
|
-
}) => string;
|
|
1101
|
-
values: (data: {
|
|
1102
|
-
input?: Record<string, unknown>;
|
|
1103
|
-
}) => string;
|
|
1104
|
-
}>;
|
|
1105
|
-
entry?: boolean;
|
|
1106
|
-
generate?: (options: {
|
|
1107
|
-
config: Record<string, unknown>;
|
|
1108
|
-
inputKeys: Array<string>;
|
|
1109
|
-
key: string;
|
|
1110
|
-
}) => string;
|
|
1111
|
-
imports?: Array<{
|
|
1112
|
-
name: string;
|
|
1113
|
-
target: string;
|
|
1114
|
-
}>;
|
|
1115
|
-
};
|
|
1116
|
-
config?: TNodeConfigDescriptor;
|
|
1117
|
-
display?: TNodeDisplay;
|
|
1118
|
-
documentation?: TDocumentation;
|
|
1119
|
-
dynamics?: {
|
|
1120
|
-
inputs?: (ioSchema: {
|
|
1121
|
-
config: Record<string, unknown>;
|
|
1122
|
-
inputs: Record<string, unknown>;
|
|
1123
|
-
optionals: Record<string, boolean>;
|
|
1124
|
-
outputs: Record<string, unknown>;
|
|
1125
|
-
}) => TNodeInterfaceDescriptor;
|
|
1126
|
-
outputs?: (ioSchema: {
|
|
1127
|
-
config: Record<string, unknown>;
|
|
1128
|
-
inputs: Record<string, unknown>;
|
|
1129
|
-
optionals: Record<string, boolean>;
|
|
1130
|
-
outputs: Record<string, unknown>;
|
|
1131
|
-
}) => TNodeInterfaceDescriptor;
|
|
1132
|
-
};
|
|
1133
|
-
inputs: TNodeInterfaceDescriptor;
|
|
1134
|
-
methods: Record<string, () => unknown>;
|
|
1135
|
-
name: string;
|
|
1136
|
-
outputs: TNodeInterfaceDescriptor;
|
|
1137
|
-
type?: ELogicType;
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
declare type TMethodsOf<TInputs extends TNodeInterfaceDescriptor, TOutputs extends TNodeInterfaceDescriptor> = MethodsFrom<TOnlyExecOf<TInputs>> & MethodsFrom<TOnlyVarsOf<TOutputs>>;
|
|
1141
|
-
|
|
1142
|
-
declare type TNode<TExport extends boolean = false> = TExport extends true ? {
|
|
1143
|
-
data?: Record<string, unknown>;
|
|
1144
|
-
internal?: {
|
|
1145
|
-
inputs?: Record<string, unknown>;
|
|
1146
|
-
outputs?: Record<string, unknown>;
|
|
1147
|
-
};
|
|
1148
|
-
location: TVector;
|
|
1149
|
-
logic: string;
|
|
1150
|
-
} : CNode;
|
|
1151
|
-
|
|
1152
|
-
declare type TNode_2 = {
|
|
1153
|
-
id: string;
|
|
1154
|
-
inputs: Record<string, Anchor.CNodeAnchor>;
|
|
1155
|
-
outputs: Record<string, Anchor.CNodeAnchor>;
|
|
1156
|
-
data?: object;
|
|
1157
|
-
dbNode: TGeneratedNode;
|
|
1158
|
-
location: TVector;
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
|
-
declare type TNodeConfigDescriptor = Record<string, TSchema>;
|
|
1162
|
-
|
|
1163
|
-
declare type TNodeConfigSchema<TConfig extends TNodeConfigDescriptor> = {
|
|
1164
|
-
internal?: unknown;
|
|
1165
|
-
} & {
|
|
1166
|
-
[TKey in keyof TConfig]: Static<TConfig[TKey]>;
|
|
1167
|
-
};
|
|
1168
|
-
|
|
1169
|
-
declare type TNodeData = {
|
|
1170
|
-
config?: Record<string, unknown>;
|
|
1171
|
-
multiple?: {
|
|
1172
|
-
isArray?: boolean;
|
|
1173
|
-
number: number;
|
|
1174
|
-
};
|
|
1175
|
-
optionals?: Record<string, boolean>;
|
|
1176
|
-
size?: TVector;
|
|
1177
|
-
} & Record<string, unknown>;
|
|
1178
|
-
|
|
1179
|
-
declare type TNodeDescriptor<TInputs extends TNodeInterfaceDescriptor, TOutputs extends TNodeInterfaceDescriptor, TConfig extends TNodeConfigDescriptor> = TNodeGenerated<TInputs, TOutputs, TConfig> & ThisType<{
|
|
1180
|
-
[TKey in keyof TOnlyExecOf<TOutputs>]: (stack?: unknown) => Promise<void>;
|
|
1181
|
-
} & {
|
|
1182
|
-
[TKey in keyof TOnlyVarsOf<TInputs>]: Static<TInputs[TKey]>;
|
|
1183
|
-
} & {
|
|
1184
|
-
[TKey in keyof TOnlyVarsOf<TOutputs>]: Static<TOutputs[TKey]>;
|
|
1185
|
-
} & Record<`internal_${string}`, unknown> & {
|
|
1186
|
-
arguments: Promise<Array<unknown>>;
|
|
1187
|
-
cache: Record<string, unknown>;
|
|
1188
|
-
config: {
|
|
1189
|
-
[TKey in keyof TConfig]: Static<TConfig[TKey]>;
|
|
1190
|
-
};
|
|
1191
|
-
properties: Record<string, {
|
|
1192
|
-
name: string;
|
|
1193
|
-
value: Promise<unknown>;
|
|
1194
|
-
}>;
|
|
1195
|
-
stack: any;
|
|
1196
|
-
}>;
|
|
1197
|
-
|
|
1198
|
-
declare type TNodeDisplay = {
|
|
1199
|
-
altSearch?: string;
|
|
1200
|
-
config?: {
|
|
1201
|
-
back?: string | IconDefinition;
|
|
1202
|
-
data?: {
|
|
1203
|
-
size?: {
|
|
1204
|
-
x: number;
|
|
1205
|
-
y: number;
|
|
1206
|
-
};
|
|
1207
|
-
};
|
|
1208
|
-
fixed?: boolean;
|
|
1209
|
-
headerless?: boolean;
|
|
1210
|
-
hoverable?: boolean;
|
|
1211
|
-
icon?: string | IconDefinition;
|
|
1212
|
-
inspector?: string;
|
|
1213
|
-
noDelete?: boolean;
|
|
1214
|
-
noSelection?: boolean;
|
|
1215
|
-
notFound?: boolean;
|
|
1216
|
-
once?: boolean;
|
|
1217
|
-
priority?: number;
|
|
1218
|
-
scope?: ELogicScope;
|
|
1219
|
-
transparent?: boolean;
|
|
1220
|
-
};
|
|
1221
|
-
custom?: Component_2 | string;
|
|
1222
|
-
data?: Record<string, unknown>;
|
|
1223
|
-
inspector?: string;
|
|
1224
|
-
interface?: Component_2 | string;
|
|
1225
|
-
name?: string;
|
|
1226
|
-
priority?: number;
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
declare type TNodeDynamics<TInputs extends TNodeInterfaceDescriptor, TOutputs extends TNodeInterfaceDescriptor, TConfig extends TNodeConfigDescriptor> = {
|
|
1230
|
-
inputs?: (ioSchema: {
|
|
1231
|
-
config: TNodeConfigSchema<TConfig>;
|
|
1232
|
-
inputs: TNodeIOSchema<TInputs>;
|
|
1233
|
-
optionals: TNodeOptionals<TInputs, TOutputs>;
|
|
1234
|
-
outputs: TNodeIOSchema<TOutputs>;
|
|
1235
|
-
}) => Partial<TNodeInterfaceDescriptor>;
|
|
1236
|
-
outputs?: (ioSchema: {
|
|
1237
|
-
config: TNodeConfigSchema<TConfig>;
|
|
1238
|
-
inputs: TNodeIOSchema<TInputs>;
|
|
1239
|
-
optionals: TNodeOptionals<TInputs, TOutputs>;
|
|
1240
|
-
outputs: TNodeIOSchema<TOutputs>;
|
|
1241
|
-
}) => Partial<TNodeInterfaceDescriptor>;
|
|
1242
|
-
};
|
|
1243
|
-
|
|
1244
|
-
declare type TNodeGenerated<TInputs extends TNodeInterfaceDescriptor, TOutputs extends TNodeInterfaceDescriptor, TConfig extends TNodeConfigDescriptor> = {
|
|
1245
|
-
build?: {
|
|
1246
|
-
define?: Array<{
|
|
1247
|
-
id: (data: {
|
|
1248
|
-
input?: TOnlyVarsOf<TInputs>;
|
|
1249
|
-
}) => string;
|
|
1250
|
-
values: (data: {
|
|
1251
|
-
input?: TOnlyVarsOf<TInputs>;
|
|
1252
|
-
}) => string;
|
|
1253
|
-
}>;
|
|
1254
|
-
entry?: boolean;
|
|
1255
|
-
generate?: (data: {
|
|
1256
|
-
config?: {
|
|
1257
|
-
[TKey in keyof TConfig]: Static<TConfig[TKey]>;
|
|
1258
|
-
};
|
|
1259
|
-
inputKeys: Array<string>;
|
|
1260
|
-
key?: string;
|
|
1261
|
-
}) => string;
|
|
1262
|
-
imports?: Array<{
|
|
1263
|
-
name: string;
|
|
1264
|
-
target: string;
|
|
1265
|
-
}>;
|
|
1266
|
-
};
|
|
1267
|
-
config?: TConfig;
|
|
1268
|
-
display?: TNodeDisplay;
|
|
1269
|
-
documentation?: TDocumentation;
|
|
1270
|
-
dynamics?: TNodeDynamics<TInputs, TOutputs, TConfig>;
|
|
1271
|
-
inputs: TInputs;
|
|
1272
|
-
methods: Partial<TMethodsOf<TInputs, TOutputs>>;
|
|
1273
|
-
name?: string;
|
|
1274
|
-
outputs: TOutputs;
|
|
1275
|
-
type?: ELogicType;
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
declare type TNodeInterfaceDescriptor = Record<string, TSchema>;
|
|
1279
|
-
|
|
1280
|
-
declare type TNodeIOSchema<TInterface extends TNodeInterfaceDescriptor> = {
|
|
1281
|
-
[TKey in keyof TOnlyVarsOf<TInterface>]: {
|
|
1282
|
-
linked: boolean;
|
|
1283
|
-
schema: TOnlyVarsOf<TInterface>[TKey];
|
|
1284
|
-
value: Static<TOnlyVarsOf<TInterface>[TKey]>;
|
|
1285
|
-
};
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
declare type TNodeOptionals<TInputs extends TNodeInterfaceDescriptor, TOutputs extends TNodeInterfaceDescriptor> = {
|
|
1289
|
-
[TKey in keyof (TOnlyVarsOf<TInputs> | TOnlyVarsOf<TOutputs>)]: boolean;
|
|
1290
|
-
};
|
|
1291
|
-
|
|
1292
|
-
declare interface TNumber {
|
|
1293
|
-
static: number;
|
|
1294
|
-
type: EVarType.number;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
declare interface TObject<T extends TProperties = TProperties> {
|
|
1298
|
-
properties: T;
|
|
1299
|
-
static: StaticObject<T>;
|
|
1300
|
-
type: EVarType.object;
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
declare type TOnlyExecOf<TNodeInterfaceDescriptor> = {
|
|
1304
|
-
[TAnchor in keyof TNodeInterfaceDescriptor as TNodeInterfaceDescriptor[TAnchor] extends TExec ? TAnchor : never]: TNodeInterfaceDescriptor[TAnchor];
|
|
1305
|
-
};
|
|
1306
|
-
|
|
1307
|
-
declare type TOnlyVarsOf<TNodeInterfaceDescriptor> = {
|
|
1308
|
-
[TAnchor in keyof TNodeInterfaceDescriptor as TNodeInterfaceDescriptor[TAnchor] extends TExec ? never : TAnchor]: TNodeInterfaceDescriptor[TAnchor];
|
|
1309
|
-
};
|
|
1310
|
-
|
|
1311
|
-
export declare type TOption<TParams = unknown, TResult = unknown> = TResult | ((env: TParams) => Promise<TResult> | TResult);
|
|
1312
|
-
|
|
1313
|
-
export declare type TPlugin<TConfig extends TSchema = TSchema, TInternal = unknown, TBase extends TBasePlugin<TConfig, TInternal> = TBasePlugin<TConfig, TInternal>> = Omit<TBase, "build" | "editor" | "inject"> & {
|
|
1314
|
-
[TCategory in "build" | "editor" | "inject"]?: {
|
|
1315
|
-
[TKey in keyof NonNullable<TBase[TCategory]>]: TOption<TEnv<TConfig, TInternal>, NonNullable<TBase[TCategory]>[TKey]>;
|
|
1316
|
-
};
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
declare type TProperties = Record<string, TSchema>;
|
|
1320
|
-
|
|
1321
|
-
export declare type TProxyPlugin<TConfig extends TSchema = TSchema, TInternal = unknown, TBase extends TBasePlugin<TConfig, TInternal> = TBasePlugin<TConfig, TInternal>> = Omit<TBase, "build" | "editor" | "inject"> & {
|
|
1322
|
-
[TCategory in "build" | "editor" | "inject"]?: {
|
|
1323
|
-
[TKey in keyof NonNullable<TBase[TCategory]>]: Promise<NonNullable<TBase[TCategory]>[TKey]>;
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
|
|
1327
|
-
declare interface TRecord<TKey extends TString | TNumber = TString, TValue extends TSchema = TSchema> {
|
|
1328
|
-
key: TKey;
|
|
1329
|
-
static: StaticRecord<TKey, TValue>;
|
|
1330
|
-
type: EVarType.record;
|
|
1331
|
-
value: TValue;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
declare type TRect = {
|
|
1335
|
-
height: number;
|
|
1336
|
-
width: number;
|
|
1337
|
-
x: number;
|
|
1338
|
-
y: number;
|
|
1339
|
-
};
|
|
1340
|
-
|
|
1341
|
-
declare type TReturnValue = {
|
|
1342
|
-
schema: TSchema;
|
|
1343
|
-
value: unknown;
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
|
-
export declare type TSchema<TLogic extends TAnyLogic_2 = TAnyLogic_2> = TArguments & TLogic;
|
|
1347
|
-
|
|
1348
|
-
export declare type TSlot = TSchema<TObject> | TSchema<TVoid>;
|
|
1349
|
-
|
|
1350
|
-
declare type TStack = {
|
|
1351
|
-
id: string;
|
|
1352
|
-
config?: Record<string, unknown>;
|
|
1353
|
-
context: object;
|
|
1354
|
-
parent?: TStackParent;
|
|
1355
|
-
variables: Record<string, unknown>;
|
|
1356
|
-
};
|
|
1357
|
-
|
|
1358
|
-
declare type TStackParent = {
|
|
1359
|
-
logic?: TLogic;
|
|
1360
|
-
node?: CNode;
|
|
1361
|
-
stack: TStack;
|
|
1362
|
-
};
|
|
1363
|
-
|
|
1364
|
-
declare type TStoreOptions = {
|
|
1365
|
-
type: EStoreType;
|
|
1366
|
-
};
|
|
1367
|
-
|
|
1368
|
-
declare interface TString {
|
|
1369
|
-
static: string;
|
|
1370
|
-
type: EVarType.string;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
export declare type TTemplate = {
|
|
1374
|
-
name: string;
|
|
1375
|
-
preview?: string;
|
|
1376
|
-
template: TFile<true>;
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
declare type TTextBlock = {
|
|
1380
|
-
content: string;
|
|
1381
|
-
key: string;
|
|
1382
|
-
};
|
|
1383
|
-
|
|
1384
|
-
export declare type TToken = {
|
|
1385
|
-
id: string;
|
|
1386
|
-
name?: string;
|
|
1387
|
-
type: ETokenType;
|
|
1388
|
-
value: string;
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
declare interface TType<T extends TSchema = TSchema> {
|
|
1392
|
-
static: T;
|
|
1393
|
-
target: Array<string>;
|
|
1394
|
-
type: EVarType.type;
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
declare interface TUndefined {
|
|
1398
|
-
static: undefined;
|
|
1399
|
-
type: EVarType.undefined;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
declare interface TUnion<T extends Array<TSchema> = Array<TSchema>> {
|
|
1403
|
-
elements: T;
|
|
1404
|
-
static: StaticUnion<T>;
|
|
1405
|
-
type: EVarType.union;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
declare interface TUnknown {
|
|
1409
|
-
static: unknown;
|
|
1410
|
-
type: EVarType.unknown;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
declare type TValue<TExport extends boolean = false> = TExport extends false ? {
|
|
1414
|
-
id: string;
|
|
1415
|
-
isEditing?: boolean;
|
|
1416
|
-
parent?: TLogic<TExport>;
|
|
1417
|
-
schema: TSchema;
|
|
1418
|
-
} : TSchema;
|
|
1419
|
-
|
|
1420
|
-
declare type TVector = {
|
|
1421
|
-
x: number;
|
|
1422
|
-
y: number;
|
|
1423
|
-
};
|
|
1424
|
-
|
|
1425
|
-
declare interface TVoid {
|
|
1426
|
-
static: void;
|
|
1427
|
-
type: EVarType.void;
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
declare type TWire = {
|
|
1431
|
-
id: string;
|
|
1432
|
-
from: Anchor.CAnchor;
|
|
1433
|
-
temp?: boolean;
|
|
1434
|
-
to: Anchor.CAnchor;
|
|
1435
|
-
};
|
|
1436
|
-
|
|
1437
|
-
declare type TWire_2<TExport extends boolean = false> = TExport extends true ? {
|
|
1438
|
-
from: {
|
|
1439
|
-
key: string;
|
|
1440
|
-
node: string;
|
|
1441
|
-
};
|
|
1442
|
-
to: {
|
|
1443
|
-
key: string;
|
|
1444
|
-
node: string;
|
|
1445
|
-
};
|
|
1446
|
-
} : CWire;
|
|
1447
|
-
|
|
1448
|
-
declare namespace Wire {
|
|
1449
|
-
export {
|
|
1450
|
-
from,
|
|
1451
|
-
create,
|
|
1452
|
-
makePath,
|
|
1453
|
-
pathToString,
|
|
1454
|
-
TWire,
|
|
1455
|
-
CPathPoint,
|
|
1456
|
-
Path,
|
|
1457
|
-
WIRE_PADDING,
|
|
1458
|
-
CWire
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
declare const WIRE_PADDING = 6;
|
|
1463
|
-
|
|
1464
1
|
export { }
|