@wonderlandengine/editor-api 1.5.0-rc.4 → 1.5.0-rc.5
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/native.d.ts +1 -0
- package/dist/ui.d.ts +14 -1
- package/dist/ui.js +14 -1
- package/package.json +1 -1
package/dist/native.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface NativeUiAPI {
|
|
|
23
23
|
button(label: string): boolean;
|
|
24
24
|
image(id: number, width: number, height: number): boolean;
|
|
25
25
|
inputText(label: string, value: string): string | null;
|
|
26
|
+
inputTextPassword(label: string, value: string): string | null;
|
|
26
27
|
inputTextMultiline(widgetId: string, value: string): string | null;
|
|
27
28
|
checkbox(label: string, value: boolean): boolean | null;
|
|
28
29
|
colorEdit4(label: string, value: Float32Array): boolean;
|
package/dist/ui.d.ts
CHANGED
|
@@ -54,7 +54,20 @@ export declare function image(image: UiImage, width: number, height: number): bo
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const inputText: (label: string, value: string) => string | null;
|
|
56
56
|
/**
|
|
57
|
-
* Text input field
|
|
57
|
+
* Text input field for passwords.
|
|
58
|
+
*
|
|
59
|
+
* Shows asterisks instead of the actual characters and disables copying.
|
|
60
|
+
*
|
|
61
|
+
* @param label Label to display next to the field.
|
|
62
|
+
* @param value Current value to set the field to.
|
|
63
|
+
* @returns The new string value when changed by the user this frame, otherwise `null`.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* s = ui.inputTextPassword("change secret:", s) || s;
|
|
67
|
+
*/
|
|
68
|
+
export declare const inputTextPassword: (label: string, value: string) => string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Text input field for multiple lines.
|
|
58
71
|
*
|
|
59
72
|
* @param widgetId Unique id for the widget.
|
|
60
73
|
* @param value Current value to set the field to.
|
package/dist/ui.js
CHANGED
|
@@ -78,7 +78,20 @@ export function image(image, width, height) {
|
|
|
78
78
|
*/
|
|
79
79
|
export const inputText = ui.inputText.bind(ui);
|
|
80
80
|
/**
|
|
81
|
-
* Text input field
|
|
81
|
+
* Text input field for passwords.
|
|
82
|
+
*
|
|
83
|
+
* Shows asterisks instead of the actual characters and disables copying.
|
|
84
|
+
*
|
|
85
|
+
* @param label Label to display next to the field.
|
|
86
|
+
* @param value Current value to set the field to.
|
|
87
|
+
* @returns The new string value when changed by the user this frame, otherwise `null`.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* s = ui.inputTextPassword("change secret:", s) || s;
|
|
91
|
+
*/
|
|
92
|
+
export const inputTextPassword = ui.inputTextPassword.bind(ui);
|
|
93
|
+
/**
|
|
94
|
+
* Text input field for multiple lines.
|
|
82
95
|
*
|
|
83
96
|
* @param widgetId Unique id for the widget.
|
|
84
97
|
* @param value Current value to set the field to.
|
package/package.json
CHANGED