@node-red/editor-client 3.1.8 → 4.0.0-beta.2

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.
Files changed (149) hide show
  1. package/locales/de/editor.json +2 -0
  2. package/locales/en-US/editor.json +10 -1
  3. package/locales/fr/editor.json +8 -1
  4. package/locales/ja/editor.json +10 -3
  5. package/package.json +1 -1
  6. package/public/red/about +52 -0
  7. package/public/red/red.js +1433 -263
  8. package/public/red/red.min.js +3 -3
  9. package/public/red/style.min.css +2 -2
  10. package/public/red/tours/3.1/welcome.js +231 -0
  11. package/public/red/tours/images/nr4-auto-complete.png +0 -0
  12. package/public/red/tours/images/nr4-config-select.png +0 -0
  13. package/public/red/tours/images/nr4-multiplayer.png +0 -0
  14. package/public/red/tours/images/nr4-plugins.png +0 -0
  15. package/public/red/tours/images/nr4-sf-config.png +0 -0
  16. package/public/red/tours/images/nr4-timestamp-formatting.png +0 -0
  17. package/public/red/tours/welcome.js +105 -161
  18. package/public/types/node/assert/strict.d.ts +1 -1
  19. package/public/types/node/assert.d.ts +8 -9
  20. package/public/types/node/async_hooks.d.ts +9 -5
  21. package/public/types/node/buffer.d.ts +43 -18
  22. package/public/types/node/child_process.d.ts +8 -5
  23. package/public/types/node/cluster.d.ts +15 -19
  24. package/public/types/node/console.d.ts +2 -2
  25. package/public/types/node/crypto.d.ts +165 -70
  26. package/public/types/node/dgram.d.ts +4 -4
  27. package/public/types/node/diagnostics_channel.d.ts +8 -7
  28. package/public/types/node/dns/promises.d.ts +11 -9
  29. package/public/types/node/dns.d.ts +18 -13
  30. package/public/types/node/dom-events.d.ts +129 -0
  31. package/public/types/node/domain.d.ts +2 -2
  32. package/public/types/node/events.d.ts +49 -12
  33. package/public/types/node/fs/promises.d.ts +68 -24
  34. package/public/types/node/fs.d.ts +132 -59
  35. package/public/types/node/globals.d.ts +31 -17
  36. package/public/types/node/http.d.ts +138 -27
  37. package/public/types/node/http2.d.ts +38 -5
  38. package/public/types/node/https.d.ts +12 -3
  39. package/public/types/node/module.d.ts +1 -2
  40. package/public/types/node/net.d.ts +69 -28
  41. package/public/types/node/os.d.ts +16 -5
  42. package/public/types/node/path.d.ts +5 -5
  43. package/public/types/node/perf_hooks.d.ts +48 -9
  44. package/public/types/node/process.d.ts +18 -17
  45. package/public/types/node/querystring.d.ts +2 -2
  46. package/public/types/node/readline/promises.d.ts +146 -0
  47. package/public/types/node/readline.d.ts +141 -31
  48. package/public/types/node/stream/consumers.d.ts +2 -2
  49. package/public/types/node/stream/promises.d.ts +1 -1
  50. package/public/types/node/stream/web.d.ts +4 -66
  51. package/public/types/node/stream.d.ts +96 -118
  52. package/public/types/node/string_decoder.d.ts +2 -2
  53. package/public/types/node/test.d.ts +200 -16
  54. package/public/types/node/timers/promises.d.ts +1 -26
  55. package/public/types/node/timers.d.ts +2 -2
  56. package/public/types/node/tls.d.ts +21 -12
  57. package/public/types/node/trace_events.d.ts +12 -2
  58. package/public/types/node/ts4.8/assert/strict.d.ts +11 -0
  59. package/public/types/node/ts4.8/assert.d.ts +964 -0
  60. package/public/types/node/ts4.8/async_hooks.d.ts +504 -0
  61. package/public/types/node/ts4.8/buffer.d.ts +2262 -0
  62. package/public/types/node/ts4.8/child_process.d.ts +1372 -0
  63. package/public/types/node/ts4.8/cluster.d.ts +413 -0
  64. package/public/types/node/ts4.8/console.d.ts +415 -0
  65. package/public/types/node/ts4.8/crypto.d.ts +3967 -0
  66. package/public/types/node/ts4.8/dgram.d.ts +548 -0
  67. package/public/types/node/ts4.8/diagnostics_channel.d.ts +156 -0
  68. package/public/types/node/ts4.8/dns/promises.d.ts +373 -0
  69. package/public/types/node/ts4.8/dns.d.ts +662 -0
  70. package/public/types/node/ts4.8/dom-events.d.ts +129 -0
  71. package/public/types/node/ts4.8/domain.d.ts +173 -0
  72. package/public/types/node/ts4.8/events.d.ts +681 -0
  73. package/public/types/node/ts4.8/fs/promises.d.ts +1141 -0
  74. package/public/types/node/ts4.8/fs.d.ts +3875 -0
  75. package/public/types/node/ts4.8/globals.d.ts +297 -0
  76. package/public/types/node/ts4.8/http.d.ts +1617 -0
  77. package/public/types/node/ts4.8/http2.d.ts +2137 -0
  78. package/public/types/node/ts4.8/https.d.ts +544 -0
  79. package/public/types/node/ts4.8/module.d.ts +117 -0
  80. package/public/types/node/ts4.8/net.d.ts +872 -0
  81. package/public/types/node/ts4.8/os.d.ts +469 -0
  82. package/public/types/node/ts4.8/path.d.ts +194 -0
  83. package/public/types/node/ts4.8/perf_hooks.d.ts +628 -0
  84. package/public/types/node/ts4.8/process.d.ts +1485 -0
  85. package/public/types/node/ts4.8/querystring.d.ts +134 -0
  86. package/public/types/node/ts4.8/readline/promises.d.ts +146 -0
  87. package/public/types/node/ts4.8/readline.d.ts +656 -0
  88. package/public/types/node/ts4.8/stream/consumers.d.ts +15 -0
  89. package/public/types/node/ts4.8/stream/promises.d.ts +45 -0
  90. package/public/types/node/ts4.8/stream/web.d.ts +333 -0
  91. package/public/types/node/ts4.8/stream.d.ts +1343 -0
  92. package/public/types/node/ts4.8/string_decoder.d.ts +70 -0
  93. package/public/types/node/ts4.8/test.d.ts +377 -0
  94. package/public/types/node/ts4.8/timers/promises.d.ts +71 -0
  95. package/public/types/node/ts4.8/timers.d.ts +97 -0
  96. package/public/types/node/ts4.8/tls.d.ts +1031 -0
  97. package/public/types/node/ts4.8/trace_events.d.ts +174 -0
  98. package/public/types/node/ts4.8/tty.d.ts +209 -0
  99. package/public/types/node/ts4.8/url.d.ts +900 -0
  100. package/public/types/node/ts4.8/util.d.ts +1853 -0
  101. package/public/types/node/ts4.8/v8.d.ts +399 -0
  102. package/public/types/node/ts4.8/vm.d.ts +512 -0
  103. package/public/types/node/ts4.8/wasi.d.ts +161 -0
  104. package/public/types/node/ts4.8/worker_threads.d.ts +692 -0
  105. package/public/types/node/ts4.8/zlib.d.ts +520 -0
  106. package/public/types/node/tty.d.ts +5 -3
  107. package/public/types/node/url.d.ts +81 -39
  108. package/public/types/node/util.d.ts +269 -13
  109. package/public/types/node/v8.d.ts +22 -4
  110. package/public/types/node/vm.d.ts +7 -5
  111. package/public/types/node/wasi.d.ts +2 -2
  112. package/public/types/node/worker_threads.d.ts +51 -11
  113. package/public/types/node/zlib.d.ts +2 -2
  114. package/public/types/node-red/func.d.ts +26 -17
  115. package/public/vendor/ace/worker-jsonata.js +1 -1
  116. package/public/vendor/monaco/dist/{fa2cc0ab9f0bec2b3365.ttf → 0c718f5b7d2bce997c5f.ttf} +0 -0
  117. package/public/vendor/monaco/dist/css.worker.js +1 -1
  118. package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
  119. package/public/vendor/monaco/dist/editor.js +1 -29
  120. package/public/vendor/monaco/dist/editor.js.LICENSE.txt +2 -2
  121. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  122. package/public/vendor/monaco/dist/html.worker.js +1 -1
  123. package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
  124. package/public/vendor/monaco/dist/json.worker.js +1 -1
  125. package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
  126. package/public/vendor/monaco/dist/locale/cs.js +324 -106
  127. package/public/vendor/monaco/dist/locale/de.js +336 -118
  128. package/public/vendor/monaco/dist/locale/es.js +329 -111
  129. package/public/vendor/monaco/dist/locale/fr.js +334 -116
  130. package/public/vendor/monaco/dist/locale/it.js +327 -109
  131. package/public/vendor/monaco/dist/locale/ja.js +329 -111
  132. package/public/vendor/monaco/dist/locale/ko.js +330 -112
  133. package/public/vendor/monaco/dist/locale/pl.js +329 -111
  134. package/public/vendor/monaco/dist/locale/pt-br.js +329 -111
  135. package/public/vendor/monaco/dist/locale/qps-ploc.js +330 -112
  136. package/public/vendor/monaco/dist/locale/ru.js +331 -113
  137. package/public/vendor/monaco/dist/locale/tr.js +329 -111
  138. package/public/vendor/monaco/dist/locale/zh-hans.js +331 -113
  139. package/public/vendor/monaco/dist/locale/zh-hant.js +331 -113
  140. package/public/vendor/monaco/dist/ts.worker.js +2 -2
  141. package/public/vendor/vendor.js +1 -1
  142. package/public/vendor/monaco/dist/7064e66c3890a12c47b4.ttf +0 -0
  143. /package/public/red/tours/{images → 3.1/images}/context-menu.png +0 -0
  144. /package/public/red/tours/{images → 3.1/images}/global-env-vars.png +0 -0
  145. /package/public/red/tours/{images → 3.1/images}/hiding-flows.png +0 -0
  146. /package/public/red/tours/{images → 3.1/images}/locking-flows.png +0 -0
  147. /package/public/red/tours/{images → 3.1/images}/mermaid.png +0 -0
  148. /package/public/red/tours/{images → 3.1/images}/node-help.png +0 -0
  149. /package/public/red/tours/{images → 3.1/images}/tab-changes.png +0 -0
@@ -0,0 +1,297 @@
1
+
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
3
+
4
+ // Declare "static" methods in Error
5
+ interface ErrorConstructor {
6
+ /** Create .stack property on a target object */
7
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
8
+
9
+ /**
10
+ * Optional override for formatting stack traces
11
+ *
12
+ * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
13
+ */
14
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
15
+
16
+ stackTraceLimit: number;
17
+ }
18
+
19
+ /*-----------------------------------------------*
20
+ * *
21
+ * GLOBAL *
22
+ * *
23
+ ------------------------------------------------*/
24
+
25
+ // For backwards compability
26
+ interface NodeRequire extends NodeJS.Require { }
27
+ interface RequireResolve extends NodeJS.RequireResolve { }
28
+ interface NodeModule extends NodeJS.Module { }
29
+
30
+ declare var process: NodeJS.Process;
31
+ declare var console: Console;
32
+
33
+ declare var __filename: string;
34
+ declare var __dirname: string;
35
+
36
+ declare var require: NodeRequire;
37
+ declare var module: NodeModule;
38
+
39
+ // Same as module.exports
40
+ declare var exports: any;
41
+
42
+ /**
43
+ * Only available if `--expose-gc` is passed to the process.
44
+ */
45
+ declare var gc: undefined | (() => void);
46
+
47
+ //#region borrowed
48
+ // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
49
+ /** A controller object that allows you to abort one or more DOM requests as and when desired. */
50
+ interface AbortController {
51
+ /**
52
+ * Returns the AbortSignal object associated with this object.
53
+ */
54
+
55
+ readonly signal: AbortSignal;
56
+ /**
57
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
58
+ */
59
+ abort(): void;
60
+ }
61
+
62
+ /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
63
+ interface AbortSignal extends EventTarget {
64
+ /**
65
+ * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
66
+ */
67
+ readonly aborted: boolean;
68
+ }
69
+
70
+ declare var AbortController: {
71
+ prototype: AbortController;
72
+ new(): AbortController;
73
+ };
74
+
75
+ declare var AbortSignal: {
76
+ prototype: AbortSignal;
77
+ new(): AbortSignal;
78
+ // TODO: Add abort() static
79
+ };
80
+ //#endregion borrowed
81
+
82
+ //#region ArrayLike.at()
83
+ interface RelativeIndexable<T> {
84
+ /**
85
+ * Takes an integer value and returns the item at that index,
86
+ * allowing for positive and negative integers.
87
+ * Negative integers count back from the last item in the array.
88
+ */
89
+ at(index: number): T | undefined;
90
+ }
91
+ interface String extends RelativeIndexable<string> {}
92
+ interface Array<T> extends RelativeIndexable<T> {}
93
+ interface Int8Array extends RelativeIndexable<number> {}
94
+ interface Uint8Array extends RelativeIndexable<number> {}
95
+ interface Uint8ClampedArray extends RelativeIndexable<number> {}
96
+ interface Int16Array extends RelativeIndexable<number> {}
97
+ interface Uint16Array extends RelativeIndexable<number> {}
98
+ interface Int32Array extends RelativeIndexable<number> {}
99
+ interface Uint32Array extends RelativeIndexable<number> {}
100
+ interface Float32Array extends RelativeIndexable<number> {}
101
+ interface Float64Array extends RelativeIndexable<number> {}
102
+ interface BigInt64Array extends RelativeIndexable<bigint> {}
103
+ interface BigUint64Array extends RelativeIndexable<bigint> {}
104
+ //#endregion ArrayLike.at() end
105
+
106
+ /**
107
+ * @since v17.0.0
108
+ *
109
+ * Creates a deep clone of an object.
110
+ */
111
+ declare function structuredClone<T>(
112
+ value: T,
113
+ transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
114
+ ): T;
115
+
116
+ /*----------------------------------------------*
117
+ * *
118
+ * GLOBAL INTERFACES *
119
+ * *
120
+ *-----------------------------------------------*/
121
+ declare namespace NodeJS {
122
+ interface CallSite {
123
+ /**
124
+ * Value of "this"
125
+ */
126
+ getThis(): unknown;
127
+
128
+ /**
129
+ * Type of "this" as a string.
130
+ * This is the name of the function stored in the constructor field of
131
+ * "this", if available. Otherwise the object's [[Class]] internal
132
+ * property.
133
+ */
134
+ getTypeName(): string | null;
135
+
136
+ /**
137
+ * Current function
138
+ */
139
+ getFunction(): Function | undefined;
140
+
141
+ /**
142
+ * Name of the current function, typically its name property.
143
+ * If a name property is not available an attempt will be made to try
144
+ * to infer a name from the function's context.
145
+ */
146
+ getFunctionName(): string | null;
147
+
148
+ /**
149
+ * Name of the property [of "this" or one of its prototypes] that holds
150
+ * the current function
151
+ */
152
+ getMethodName(): string | null;
153
+
154
+ /**
155
+ * Name of the script [if this function was defined in a script]
156
+ */
157
+ getFileName(): string | null;
158
+
159
+ /**
160
+ * Current line number [if this function was defined in a script]
161
+ */
162
+ getLineNumber(): number | null;
163
+
164
+ /**
165
+ * Current column number [if this function was defined in a script]
166
+ */
167
+ getColumnNumber(): number | null;
168
+
169
+ /**
170
+ * A call site object representing the location where eval was called
171
+ * [if this function was created using a call to eval]
172
+ */
173
+ getEvalOrigin(): string | undefined;
174
+
175
+ /**
176
+ * Is this a toplevel invocation, that is, is "this" the global object?
177
+ */
178
+ isToplevel(): boolean;
179
+
180
+ /**
181
+ * Does this call take place in code defined by a call to eval?
182
+ */
183
+ isEval(): boolean;
184
+
185
+ /**
186
+ * Is this call in native V8 code?
187
+ */
188
+ isNative(): boolean;
189
+
190
+ /**
191
+ * Is this a constructor call?
192
+ */
193
+ isConstructor(): boolean;
194
+ }
195
+
196
+ interface ErrnoException extends Error {
197
+ errno?: number | undefined;
198
+ code?: string | undefined;
199
+ path?: string | undefined;
200
+ syscall?: string | undefined;
201
+ }
202
+
203
+ interface ReadableStream extends EventEmitter {
204
+ readable: boolean;
205
+ read(size?: number): string | Buffer;
206
+ setEncoding(encoding: BufferEncoding): this;
207
+ pause(): this;
208
+ resume(): this;
209
+ isPaused(): boolean;
210
+ pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
211
+ unpipe(destination?: WritableStream): this;
212
+ unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
213
+ wrap(oldStream: ReadableStream): this;
214
+ [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
215
+ }
216
+
217
+ interface WritableStream extends EventEmitter {
218
+ writable: boolean;
219
+ write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
220
+ write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
221
+ end(cb?: () => void): this;
222
+ end(data: string | Uint8Array, cb?: () => void): this;
223
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
224
+ }
225
+
226
+ interface ReadWriteStream extends ReadableStream, WritableStream { }
227
+
228
+ interface RefCounted {
229
+ ref(): this;
230
+ unref(): this;
231
+ }
232
+
233
+ type TypedArray =
234
+ | Uint8Array
235
+ | Uint8ClampedArray
236
+ | Uint16Array
237
+ | Uint32Array
238
+ | Int8Array
239
+ | Int16Array
240
+ | Int32Array
241
+ | BigUint64Array
242
+ | BigInt64Array
243
+ | Float32Array
244
+ | Float64Array;
245
+ type ArrayBufferView = TypedArray | DataView;
246
+
247
+ interface Require {
248
+ (id: string): any;
249
+ resolve: RequireResolve;
250
+ cache: Dict<NodeModule>;
251
+ /**
252
+ * @deprecated
253
+ */
254
+ extensions: RequireExtensions;
255
+ main: Module | undefined;
256
+ }
257
+
258
+ interface RequireResolve {
259
+ (id: string, options?: { paths?: string[] | undefined; }): string;
260
+ paths(request: string): string[] | null;
261
+ }
262
+
263
+ interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
264
+ '.js': (m: Module, filename: string) => any;
265
+ '.json': (m: Module, filename: string) => any;
266
+ '.node': (m: Module, filename: string) => any;
267
+ }
268
+ interface Module {
269
+ /**
270
+ * `true` if the module is running during the Node.js preload
271
+ */
272
+ isPreloading: boolean;
273
+ exports: any;
274
+ require: Require;
275
+ id: string;
276
+ filename: string;
277
+ loaded: boolean;
278
+ /** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
279
+ parent: Module | null | undefined;
280
+ children: Module[];
281
+ /**
282
+ * @since v11.14.0
283
+ *
284
+ * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
285
+ */
286
+ path: string;
287
+ paths: string[];
288
+ }
289
+
290
+ interface Dict<T> {
291
+ [key: string]: T | undefined;
292
+ }
293
+
294
+ interface ReadOnlyDict<T> {
295
+ readonly [key: string]: T | undefined;
296
+ }
297
+ }