@node-red/editor-client 3.1.0-beta.2 → 3.1.0-beta.3

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 (43) hide show
  1. package/locales/en-US/editor.json +1 -0
  2. package/locales/ja/editor.json +2 -1
  3. package/package.json +1 -1
  4. package/public/red/about +35 -0
  5. package/public/red/red.js +194 -125
  6. package/public/red/red.min.js +3 -3
  7. package/public/red/style.min.css +1 -1
  8. package/public/red/tours/welcome.js +30 -11
  9. package/public/types/node/crypto.d.ts +13 -6
  10. package/public/types/node/dns.d.ts +1 -1
  11. package/public/types/node/globals.d.ts +1 -1
  12. package/public/types/node/stream.d.ts +99 -0
  13. package/public/types/node/test.d.ts +2 -2
  14. package/public/types/node-red/func.d.ts +2 -3
  15. package/public/vendor/mermaid/mermaid.min.js +713 -417
  16. package/public/vendor/monaco/dist/css.worker.js +1 -1
  17. package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
  18. package/public/vendor/monaco/dist/editor.js +29 -1
  19. package/public/vendor/monaco/dist/editor.js.LICENSE.txt +1 -1
  20. package/public/vendor/monaco/dist/editor.worker.js +1 -1
  21. package/public/vendor/monaco/dist/fa2cc0ab9f0bec2b3365.ttf +0 -0
  22. package/public/vendor/monaco/dist/html.worker.js +1 -1
  23. package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
  24. package/public/vendor/monaco/dist/json.worker.js +1 -1
  25. package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
  26. package/public/vendor/monaco/dist/locale/cs.js +100 -39
  27. package/public/vendor/monaco/dist/locale/de.js +100 -39
  28. package/public/vendor/monaco/dist/locale/es.js +100 -39
  29. package/public/vendor/monaco/dist/locale/fr.js +100 -39
  30. package/public/vendor/monaco/dist/locale/it.js +100 -39
  31. package/public/vendor/monaco/dist/locale/ja.js +101 -40
  32. package/public/vendor/monaco/dist/locale/ko.js +100 -39
  33. package/public/vendor/monaco/dist/locale/pl.js +100 -39
  34. package/public/vendor/monaco/dist/locale/pt-br.js +102 -41
  35. package/public/vendor/monaco/dist/locale/qps-ploc.js +100 -39
  36. package/public/vendor/monaco/dist/locale/ru.js +100 -39
  37. package/public/vendor/monaco/dist/locale/tr.js +100 -39
  38. package/public/vendor/monaco/dist/locale/zh-hans.js +101 -40
  39. package/public/vendor/monaco/dist/locale/zh-hant.js +100 -39
  40. package/public/vendor/monaco/dist/theme/forge-dark.json +213 -0
  41. package/public/vendor/monaco/dist/theme/forge-light.json +227 -0
  42. package/public/vendor/monaco/dist/ts.worker.js +6 -1
  43. package/public/vendor/vendor.js +2 -2
@@ -1,20 +1,21 @@
1
1
  export default {
2
- version: "3.1.0-beta.2",
2
+ version: "3.1.0-beta.3",
3
3
  steps: [
4
4
  {
5
5
  titleIcon: "fa fa-map-o",
6
6
  title: {
7
- "en-US": "Welcome to Node-RED 3.1 Beta 2!",
8
- "ja": "Node-RED 3.1 ベータ1へようこそ!"
7
+ "en-US": "Welcome to Node-RED 3.1 Beta 3!",
8
+ "ja": "Node-RED 3.1 ベータ3へようこそ!"
9
9
  },
10
10
  description: {
11
- "en-US": "<p>This is the second beta release for 3.1.0 and we have a few new features to tell you about.</p>",
12
- // "ja": "<p>これは3.1.0の最初のベータリリースです。いくつかの新機能について説明します。</p>"
11
+ "en-US": "<p>This is the third beta release for 3.1.0. This is mostly a bug fix release, so you can skip this tour if you've tried the other betas.</p><p>If not, stick around to see what's new in Node-RED 3.1.</p>",
12
+ "ja": "<p>これは3.1.0の3回目のベータリリースです。不具合修正のリリースのため、もし他のベータ版を試したことがある場合は、このツアーを読み飛ばしてもかまいません。</p><p>そうでない場合は、Node-RED 3.1の新機能を確認してください。</p>"
13
13
  }
14
14
  },
15
15
  {
16
16
  title: {
17
17
  "en-US": "New ways to work with groups",
18
+ "ja": "グループの新たな操作方法"
18
19
  },
19
20
  description: {
20
21
  "en-US": `<p>We have changed how you interact with groups in the editor.</p>
@@ -23,49 +24,67 @@ export default {
23
24
  <li>They can be reordered using the Moving Forwards and Move Backwards actions</li>
24
25
  <li>Multiple nodes can be dragged into a group in one go</li>
25
26
  <li>Holding <code>Alt</code> when dragging a node will *remove* it from its group</li>
27
+ </ul>`,
28
+ "ja": `<p>エディタ上のグループの操作が変更されました。</p>
29
+ <ul>
30
+ <li>グループ内のノードをクリックする時に、グループが邪魔をすることが無くなりました。</li>
31
+ <li>「前面へ移動」と「背面へ移動」の動作を用いて、複数のグループの表示順序を変えることができます。</li>
32
+ <li>グループ内へ一度に複数のノードをドラッグできるようになりました。</li>
33
+ <li><code>Alt</code> を押したまま、グループ内のノードをドラッグすると、そのグループから *除く* ことができます。</li>
26
34
  </ul>`
27
35
  }
28
36
  },
29
37
  {
30
38
  title: {
31
39
  "en-US": "Change notification on tabs",
40
+ "ja": "タブ上の変更通知"
32
41
  },
33
42
  image: 'images/tab-changes.png',
34
43
  description: {
35
44
  "en-US": `<p>When a tab contains undeployed changes it now shows the
36
45
  same style of change icon used by nodes.</p>
37
46
  <p>This will make it much easier to track down changes when you're
38
- working across multiple flows.</p>`
47
+ working across multiple flows.</p>`,
48
+ "ja": `<p>タブ内にデプロイされていない変更が存在する時は、ノードと同じスタイルで変更の印が表示されるようになりました。</p>
49
+ <p>これによって複数のフローを編集している時に、変更を見つけるのが簡単になりました。</p>`
39
50
  }
40
51
  },
41
52
  {
42
53
  title: {
43
54
  "en-US": "A bigger canvas to work with",
55
+ "ja": "より広くなった作業キャンバス"
44
56
  },
45
57
  description: {
46
58
  "en-US": `<p>The default canvas size has been increased so you can fit more
47
59
  into one flow.</p>
48
60
  <p>We still recommend using tools such as subflows and Link Nodes to help
49
- keep things organised, but now you have more room to work in.</p>`
61
+ keep things organised, but now you have more room to work in.</p>`,
62
+ "ja": `<p>標準のキャンバスが広くなったため、1つのフローに沢山のものを含めることができるようになりました。</p>
63
+ <p>引き続き、サブフローやリンクノードなどの方法を用いて整理することをお勧めしますが、作業できる場所が増えました。</p>`
50
64
  }
51
65
  },
52
66
  {
53
67
  title: {
54
68
  "en-US": "Finding help",
69
+ "ja": "ヘルプを見つける"
55
70
  },
56
71
  image: 'images/node-help.png',
57
72
  description: {
58
73
  "en-US": `<p>All node edit dialogs now include a link to that node's help
59
74
  in the footer.</p>
60
- <p>Clicking it will open up the Help sidebar showing the help for that node.</p>`
75
+ <p>Clicking it will open up the Help sidebar showing the help for that node.</p>`,
76
+ "ja": `<p>全てのノードの編集ダイアログの下に、ノードのヘルプへのリンクが追加されました。</p>
77
+ <p>これをクリックすると、ノードのヘルプサイドバーが表示されます。</p>`
61
78
  }
62
79
  },
63
80
  {
64
81
  title: {
65
82
  "en-US": "And lots more...",
83
+ "ja": "そしてさらに沢山あります..."
66
84
  },
67
85
  description: {
68
- "en-US": `<p>Of course we have everything from 3.1.0-beta.1 as well....</p>`
86
+ "en-US": `<p>Of course we have everything from 3.1.0-beta.1 as well....</p>`,
87
+ "ja": `<p>もちろん3.1.0 ベータ1の全ての機能があります....</p>`
69
88
  }
70
89
  },
71
90
  {
@@ -134,13 +153,13 @@ export default {
134
153
  {
135
154
  title: {
136
155
  "en-US": "Adding Mermaid Diagrams",
137
- "ja": "Mermaidの図を追加"
156
+ "ja": "Mermaid図を追加"
138
157
  },
139
158
  image: 'images/mermaid.png',
140
159
  description: {
141
160
  "en-US": `<p>You can also add <a href="https://github.com/mermaid-js/mermaid">Mermaid</a> diagrams directly into your node or flow descriptions.</p>
142
161
  <p>This gives you much richer options for documenting your flows.</p>`,
143
- "ja": `<p>ノードやフローの説明に、<a href="https://github.com/mermaid-js/mermaid">Mermaid</a>の図を直接追加することもできます。</p>
162
+ "ja": `<p>ノードやフローの説明に、<a href="https://github.com/mermaid-js/mermaid">Mermaid</a>図を直接追加することもできます。</p>
144
163
  <p>これによって、フローを説明する文書作成の選択肢がより多くなります。</p>`
145
164
  },
146
165
  },
@@ -1279,6 +1279,7 @@ declare module 'crypto' {
1279
1279
  interface VerifyKeyObjectInput extends SigningOptions {
1280
1280
  key: KeyObject;
1281
1281
  }
1282
+ interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1282
1283
  type KeyLike = string | Buffer | KeyObject;
1283
1284
  /**
1284
1285
  * The `Sign` class is a utility for generating signatures. It can be used in one
@@ -1433,8 +1434,8 @@ declare module 'crypto' {
1433
1434
  * be passed instead of a public key.
1434
1435
  * @since v0.1.92
1435
1436
  */
1436
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1437
- verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1437
+ verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: NodeJS.ArrayBufferView): boolean;
1438
+ verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
1438
1439
  }
1439
1440
  /**
1440
1441
  * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
@@ -2941,11 +2942,16 @@ declare module 'crypto' {
2941
2942
  * If the `callback` function is provided this function uses libuv's threadpool.
2942
2943
  * @since v12.0.0
2943
2944
  */
2944
- function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
2945
2945
  function verify(
2946
2946
  algorithm: string | null | undefined,
2947
2947
  data: NodeJS.ArrayBufferView,
2948
- key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
2948
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
2949
+ signature: NodeJS.ArrayBufferView
2950
+ ): boolean;
2951
+ function verify(
2952
+ algorithm: string | null | undefined,
2953
+ data: NodeJS.ArrayBufferView,
2954
+ key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
2949
2955
  signature: NodeJS.ArrayBufferView,
2950
2956
  callback: (error: Error | null, result: boolean) => void
2951
2957
  ): void;
@@ -3094,12 +3100,13 @@ declare module 'crypto' {
3094
3100
  */
3095
3101
  disableEntropyCache?: boolean | undefined;
3096
3102
  }
3103
+ type UUID = `${string}-${string}-${string}-${string}-${string}`;
3097
3104
  /**
3098
3105
  * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
3099
3106
  * cryptographic pseudorandom number generator.
3100
3107
  * @since v15.6.0
3101
3108
  */
3102
- function randomUUID(options?: RandomUUIDOptions): string;
3109
+ function randomUUID(options?: RandomUUIDOptions): UUID;
3103
3110
  interface X509CheckOptions {
3104
3111
  /**
3105
3112
  * @default 'always'
@@ -3558,7 +3565,7 @@ declare module 'crypto' {
3558
3565
  * The UUID is generated using a cryptographic pseudorandom number generator.
3559
3566
  * @since v16.7.0
3560
3567
  */
3561
- randomUUID(): string;
3568
+ randomUUID(): UUID;
3562
3569
  CryptoKey: CryptoKeyConstructor;
3563
3570
  }
3564
3571
  // This constructor throws ILLEGAL_CONSTRUCTOR so it should not be newable.
@@ -174,7 +174,7 @@ declare module 'dns' {
174
174
  type: 'AAAA';
175
175
  }
176
176
  export interface CaaRecord {
177
- critial: number;
177
+ critical: number;
178
178
  issue?: string | undefined;
179
179
  issuewild?: string | undefined;
180
180
  iodef?: string | undefined;
@@ -56,7 +56,7 @@ interface AbortController {
56
56
  /**
57
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
58
  */
59
- abort(): void;
59
+ abort(reason?: any): void;
60
60
  }
61
61
 
62
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. */
@@ -862,6 +862,105 @@ declare module 'stream' {
862
862
  end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
863
863
  cork(): void;
864
864
  uncork(): void;
865
+ /**
866
+ * Event emitter
867
+ * The defined events on documents including:
868
+ * 1. close
869
+ * 2. data
870
+ * 3. drain
871
+ * 4. end
872
+ * 5. error
873
+ * 6. finish
874
+ * 7. pause
875
+ * 8. pipe
876
+ * 9. readable
877
+ * 10. resume
878
+ * 11. unpipe
879
+ */
880
+ addListener(event: 'close', listener: () => void): this;
881
+ addListener(event: 'data', listener: (chunk: any) => void): this;
882
+ addListener(event: 'drain', listener: () => void): this;
883
+ addListener(event: 'end', listener: () => void): this;
884
+ addListener(event: 'error', listener: (err: Error) => void): this;
885
+ addListener(event: 'finish', listener: () => void): this;
886
+ addListener(event: 'pause', listener: () => void): this;
887
+ addListener(event: 'pipe', listener: (src: Readable) => void): this;
888
+ addListener(event: 'readable', listener: () => void): this;
889
+ addListener(event: 'resume', listener: () => void): this;
890
+ addListener(event: 'unpipe', listener: (src: Readable) => void): this;
891
+ addListener(event: string | symbol, listener: (...args: any[]) => void): this;
892
+ emit(event: 'close'): boolean;
893
+ emit(event: 'data', chunk: any): boolean;
894
+ emit(event: 'drain'): boolean;
895
+ emit(event: 'end'): boolean;
896
+ emit(event: 'error', err: Error): boolean;
897
+ emit(event: 'finish'): boolean;
898
+ emit(event: 'pause'): boolean;
899
+ emit(event: 'pipe', src: Readable): boolean;
900
+ emit(event: 'readable'): boolean;
901
+ emit(event: 'resume'): boolean;
902
+ emit(event: 'unpipe', src: Readable): boolean;
903
+ emit(event: string | symbol, ...args: any[]): boolean;
904
+ on(event: 'close', listener: () => void): this;
905
+ on(event: 'data', listener: (chunk: any) => void): this;
906
+ on(event: 'drain', listener: () => void): this;
907
+ on(event: 'end', listener: () => void): this;
908
+ on(event: 'error', listener: (err: Error) => void): this;
909
+ on(event: 'finish', listener: () => void): this;
910
+ on(event: 'pause', listener: () => void): this;
911
+ on(event: 'pipe', listener: (src: Readable) => void): this;
912
+ on(event: 'readable', listener: () => void): this;
913
+ on(event: 'resume', listener: () => void): this;
914
+ on(event: 'unpipe', listener: (src: Readable) => void): this;
915
+ on(event: string | symbol, listener: (...args: any[]) => void): this;
916
+ once(event: 'close', listener: () => void): this;
917
+ once(event: 'data', listener: (chunk: any) => void): this;
918
+ once(event: 'drain', listener: () => void): this;
919
+ once(event: 'end', listener: () => void): this;
920
+ once(event: 'error', listener: (err: Error) => void): this;
921
+ once(event: 'finish', listener: () => void): this;
922
+ once(event: 'pause', listener: () => void): this;
923
+ once(event: 'pipe', listener: (src: Readable) => void): this;
924
+ once(event: 'readable', listener: () => void): this;
925
+ once(event: 'resume', listener: () => void): this;
926
+ once(event: 'unpipe', listener: (src: Readable) => void): this;
927
+ once(event: string | symbol, listener: (...args: any[]) => void): this;
928
+ prependListener(event: 'close', listener: () => void): this;
929
+ prependListener(event: 'data', listener: (chunk: any) => void): this;
930
+ prependListener(event: 'drain', listener: () => void): this;
931
+ prependListener(event: 'end', listener: () => void): this;
932
+ prependListener(event: 'error', listener: (err: Error) => void): this;
933
+ prependListener(event: 'finish', listener: () => void): this;
934
+ prependListener(event: 'pause', listener: () => void): this;
935
+ prependListener(event: 'pipe', listener: (src: Readable) => void): this;
936
+ prependListener(event: 'readable', listener: () => void): this;
937
+ prependListener(event: 'resume', listener: () => void): this;
938
+ prependListener(event: 'unpipe', listener: (src: Readable) => void): this;
939
+ prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
940
+ prependOnceListener(event: 'close', listener: () => void): this;
941
+ prependOnceListener(event: 'data', listener: (chunk: any) => void): this;
942
+ prependOnceListener(event: 'drain', listener: () => void): this;
943
+ prependOnceListener(event: 'end', listener: () => void): this;
944
+ prependOnceListener(event: 'error', listener: (err: Error) => void): this;
945
+ prependOnceListener(event: 'finish', listener: () => void): this;
946
+ prependOnceListener(event: 'pause', listener: () => void): this;
947
+ prependOnceListener(event: 'pipe', listener: (src: Readable) => void): this;
948
+ prependOnceListener(event: 'readable', listener: () => void): this;
949
+ prependOnceListener(event: 'resume', listener: () => void): this;
950
+ prependOnceListener(event: 'unpipe', listener: (src: Readable) => void): this;
951
+ prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
952
+ removeListener(event: 'close', listener: () => void): this;
953
+ removeListener(event: 'data', listener: (chunk: any) => void): this;
954
+ removeListener(event: 'drain', listener: () => void): this;
955
+ removeListener(event: 'end', listener: () => void): this;
956
+ removeListener(event: 'error', listener: (err: Error) => void): this;
957
+ removeListener(event: 'finish', listener: () => void): this;
958
+ removeListener(event: 'pause', listener: () => void): this;
959
+ removeListener(event: 'pipe', listener: (src: Readable) => void): this;
960
+ removeListener(event: 'readable', listener: () => void): this;
961
+ removeListener(event: 'resume', listener: () => void): this;
962
+ removeListener(event: 'unpipe', listener: (src: Readable) => void): this;
963
+ removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
865
964
  }
866
965
  type TransformCallback = (error?: Error | null, data?: any) => void;
867
966
  interface TransformOptions extends DuplexOptions {
@@ -45,7 +45,7 @@ declare module 'node:test' {
45
45
  function test(options?: TestOptions, fn?: TestFn): Promise<void>;
46
46
  function test(fn?: TestFn): Promise<void>;
47
47
 
48
- /**
48
+ /*
49
49
  * @since v16.17.0
50
50
  * @param name The name of the suite, which is displayed when reporting suite results.
51
51
  * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
@@ -57,7 +57,7 @@ declare module 'node:test' {
57
57
  function describe(options?: TestOptions, fn?: SuiteFn): void;
58
58
  function describe(fn?: SuiteFn): void;
59
59
 
60
- /**
60
+ /*
61
61
  * @since v16.17.0
62
62
  * @param name The name of the test, which is displayed when reporting test results.
63
63
  * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
@@ -1,6 +1,5 @@
1
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
-
2
+ /* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/Steve-Mcl/monaco-editor-esm-i18n */
4
3
 
5
4
  interface NodeMessage {
6
5
  topic?: string;
@@ -281,5 +280,5 @@ declare class env {
281
280
  * @example
282
281
  * ```const flowName = env.get("NR_FLOW_NAME");```
283
282
  */
284
- static get(name:string) :string;
283
+ static get(name:string) :any;
285
284
  }