lecodes-sdk 2.2.0 → 2.2.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/dist/types/ui/UIInput.d.ts +7 -0
- package/dist/types/ui/autofocus.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/dist/types.json +1 -1
- package/package.json +1 -1
- package/prompts/ui.md +1 -0
- package/src/ui/UIInput.ts +11 -1
- package/src/ui/UINode.ts +1 -0
- package/src/ui/UIScreen.ts +2 -1
- package/src/ui/autofocus.ts +54 -0
- package/src/version.ts +1 -1
|
@@ -29,6 +29,13 @@ type InputStyle = {
|
|
|
29
29
|
* still work in both modes. Scrolling never dismisses the keyboard on any setting.
|
|
30
30
|
*/
|
|
31
31
|
keyboardDismiss?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Takes the focus when its screen opens — the keyboard is up from the first moment. For a
|
|
34
|
+
* screen made for typing: a composer, a chat, a search, a one-field form; not the first field
|
|
35
|
+
* of a long form. Once per input (a screen shown again does not take the keyboard back); one
|
|
36
|
+
* per screen. The SDK's own behaviour over `focus()`: a design tool shows the screen as it opens.
|
|
37
|
+
*/
|
|
38
|
+
autofocus?: boolean;
|
|
32
39
|
/** Hard cap on the text length — enforced by the host while typing/pasting. */
|
|
33
40
|
maxLength?: number;
|
|
34
41
|
/** Auto-capitalization hint; omitted = platform default. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.2.
|
|
1
|
+
export declare const SDK_VERSION = "2.2.1";
|
|
2
2
|
/** The major of a semver string, or null when it is not one. */
|
|
3
3
|
export declare const sdkMajor: (version: string | null | undefined) => number | null;
|
|
4
4
|
/** The `// sdk: <version>` line of a compiled bundle's header (sdk/src/compile/header.ts), read from
|