@selfhelp/shared 1.14.16 → 1.14.17

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/CHANGELOG.md CHANGED
@@ -9,6 +9,19 @@ All notable changes to `@selfhelp/shared` will be documented in this file.
9
9
 
10
10
  This project follows semantic versioning.
11
11
 
12
+ ## v1.14.17
13
+
14
+ Mobile adapter contract additions for the form capability pass (so the mobile
15
+ `TextInput` / `Textarea` renderers can honour the new `shared_max_length` and
16
+ `mobile_*` fields through the adapter seam). All additions are optional.
17
+
18
+ ### Added
19
+
20
+ - **`IMobileInputProps`**: `maxLength` (RN `maxLength`, from `shared_max_length`),
21
+ `autoCapitalize` (`'none' | 'sentences' | 'words' | 'characters'`, from
22
+ `mobile_auto_capitalize`), and `'url'` added to the `keyboardType` union.
23
+ - **`IMobileTextareaProps`**: `maxLength` + `autoCapitalize` (same mapping).
24
+
12
25
  ## v1.14.16
13
26
 
14
27
  Form / interactive capability pass (backend migration
package/dist/index.d.mts CHANGED
@@ -1230,7 +1230,11 @@ interface IMobileInputProps extends IMobileAdapterBaseProps {
1230
1230
  isInvalid?: boolean;
1231
1231
  isRequired?: boolean;
1232
1232
  secureTextEntry?: boolean;
1233
- keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad';
1233
+ keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
1234
+ /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
1235
+ maxLength?: number;
1236
+ /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
1237
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
1234
1238
  }
1235
1239
  interface IMobileTextareaProps extends IMobileAdapterBaseProps {
1236
1240
  value?: string;
@@ -1242,6 +1246,10 @@ interface IMobileTextareaProps extends IMobileAdapterBaseProps {
1242
1246
  isRequired?: boolean;
1243
1247
  /** Minimum visible rows (maps to RN `numberOfLines`). */
1244
1248
  numberOfLines?: number;
1249
+ /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
1250
+ maxLength?: number;
1251
+ /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
1252
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
1245
1253
  }
1246
1254
  interface IMobileSwitchProps extends IMobileAdapterBaseProps {
1247
1255
  isSelected?: boolean;
package/dist/index.d.ts CHANGED
@@ -1230,7 +1230,11 @@ interface IMobileInputProps extends IMobileAdapterBaseProps {
1230
1230
  isInvalid?: boolean;
1231
1231
  isRequired?: boolean;
1232
1232
  secureTextEntry?: boolean;
1233
- keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad';
1233
+ keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
1234
+ /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
1235
+ maxLength?: number;
1236
+ /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
1237
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
1234
1238
  }
1235
1239
  interface IMobileTextareaProps extends IMobileAdapterBaseProps {
1236
1240
  value?: string;
@@ -1242,6 +1246,10 @@ interface IMobileTextareaProps extends IMobileAdapterBaseProps {
1242
1246
  isRequired?: boolean;
1243
1247
  /** Minimum visible rows (maps to RN `numberOfLines`). */
1244
1248
  numberOfLines?: number;
1249
+ /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
1250
+ maxLength?: number;
1251
+ /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
1252
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
1245
1253
  }
1246
1254
  interface IMobileSwitchProps extends IMobileAdapterBaseProps {
1247
1255
  isSelected?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfhelp/shared",
3
- "version": "1.14.16",
3
+ "version": "1.14.17",
4
4
  "description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -87,7 +87,11 @@ export interface IMobileInputProps extends IMobileAdapterBaseProps {
87
87
  isInvalid?: boolean;
88
88
  isRequired?: boolean;
89
89
  secureTextEntry?: boolean;
90
- keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad';
90
+ keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
91
+ /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
92
+ maxLength?: number;
93
+ /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
94
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
91
95
  }
92
96
 
93
97
  export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
@@ -100,6 +104,10 @@ export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
100
104
  isRequired?: boolean;
101
105
  /** Minimum visible rows (maps to RN `numberOfLines`). */
102
106
  numberOfLines?: number;
107
+ /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
108
+ maxLength?: number;
109
+ /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
110
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
103
111
  }
104
112
 
105
113
  export interface IMobileSwitchProps extends IMobileAdapterBaseProps {