@astryxdesign/native 0.7.6-canary.fc44bc3 → 0.7.6-canary.fda92ac

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,SAAS,EAAE,eAOvB,CAAC"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,SAAS,EAAE,eAoBvB,CAAC"}
@@ -3,7 +3,17 @@ export const textInput = {
3
3
  name: 'TextInput',
4
4
  // family:input-fields routes base props to the primary semantic control.
5
5
  baseTarget: 'control',
6
+ // The Swift field applies only these types; search, tel and url stay in
7
+ // the web contract.
8
+ projections: { type: { text: 'text', password: 'password', email: 'email' } },
6
9
  webOnly: {
7
10
  autoComplete: 'HTML autocomplete attribute',
11
+ // Touch-keyboard props join a native contract only where that platform's
12
+ // field applies them.
13
+ enterKeyHint: 'touch-keyboard Return key label the Swift field does not apply',
14
+ inputMode: 'touch keyboard choice the Swift field does not apply',
15
+ autoCapitalize: 'touch-keyboard capitalization the Swift field does not apply',
16
+ hasAutoCorrect: 'touch-keyboard autocorrection the Swift field does not apply',
17
+ hasSpellCheck: 'spell-check marking the Swift field does not apply',
8
18
  },
9
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/native",
3
- "version": "0.7.6-canary.fc44bc3",
3
+ "version": "0.7.6-canary.fda92ac",
4
4
  "description": "Experimental native platforms for Astryx (iOS, Android, macOS, Windows) — published to npm only under the @canary dist-tag; never released as a stable (latest) version.",
5
5
  "author": "Meta Open Source",
6
6
  "license": "MIT",
@@ -70,10 +70,10 @@
70
70
  }
71
71
  },
72
72
  "peerDependencies": {
73
- "@astryxdesign/core": "0.7.6-canary.fc44bc3"
73
+ "@astryxdesign/core": "0.7.6-canary.fda92ac"
74
74
  },
75
75
  "devDependencies": {
76
- "@astryxdesign/core": "0.7.6-canary.fc44bc3"
76
+ "@astryxdesign/core": "0.7.6-canary.fda92ac"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "node ../../scripts/clean-dist.mjs && tsc --project tsconfig.build.json && node scripts/generate.mjs --types",
@@ -14,7 +14,20 @@ export const textInput: NativeAdditions = {
14
14
  name: 'TextInput',
15
15
  // family:input-fields routes base props to the primary semantic control.
16
16
  baseTarget: 'control',
17
+ // The Swift field applies only these types; search, tel and url stay in
18
+ // the web contract.
19
+ projections: {type: {text: 'text', password: 'password', email: 'email'}},
17
20
  webOnly: {
18
21
  autoComplete: 'HTML autocomplete attribute',
22
+ // Touch-keyboard props join a native contract only where that platform's
23
+ // field applies them.
24
+ enterKeyHint:
25
+ 'touch-keyboard Return key label the Swift field does not apply',
26
+ inputMode: 'touch keyboard choice the Swift field does not apply',
27
+ autoCapitalize:
28
+ 'touch-keyboard capitalization the Swift field does not apply',
29
+ hasAutoCorrect:
30
+ 'touch-keyboard autocorrection the Swift field does not apply',
31
+ hasSpellCheck: 'spell-check marking the Swift field does not apply',
19
32
  },
20
33
  };