@stacksjs/stx 0.2.492 → 0.2.494

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 (76) hide show
  1. package/dist/{chunk-nwy97xaa.js → chunk-0adrp7qd.js} +1 -1
  2. package/dist/{chunk-zxkzdbcv.js → chunk-15w4adyd.js} +1 -1
  3. package/dist/{chunk-nf9fhj10.js → chunk-2gr5zcm3.js} +1 -1
  4. package/dist/chunk-2wvezjd5.js +33 -0
  5. package/dist/{chunk-q21e52cb.js → chunk-33snwgdy.js} +1 -1
  6. package/dist/chunk-379nn8yc.js +2 -0
  7. package/dist/{chunk-jnf8vt18.js → chunk-40jd0b4h.js} +1 -1
  8. package/dist/{chunk-nfd56dgj.js → chunk-4mrgy3ve.js} +1 -1
  9. package/dist/{chunk-djwms13g.js → chunk-4rmdngzw.js} +1 -1
  10. package/dist/{chunk-4tb1mqr8.js → chunk-4ssg2hn4.js} +1 -1
  11. package/dist/chunk-52saa2nj.js +2 -0
  12. package/dist/{chunk-z26ty1t1.js → chunk-6v3p6cx1.js} +1 -1
  13. package/dist/{chunk-e43ckdk2.js → chunk-78vfptph.js} +1 -1
  14. package/dist/{chunk-b6xrqx6w.js → chunk-7e6sxdp6.js} +1 -1
  15. package/dist/{chunk-kzg3h5wg.js → chunk-81t6zr3m.js} +1 -1
  16. package/dist/{chunk-ze9vhhvc.js → chunk-8qdvhbv7.js} +2 -2
  17. package/dist/{chunk-2b1zg7xp.js → chunk-93sr9q8g.js} +1 -1
  18. package/dist/{chunk-sdxq5ej9.js → chunk-9mh1qq3g.js} +1 -1
  19. package/dist/{chunk-ft6k76e4.js → chunk-b5mcvm6y.js} +1 -1
  20. package/dist/{chunk-z7bqn398.js → chunk-b90y5phw.js} +5 -5
  21. package/dist/{chunk-7c18zqdc.js → chunk-dve4q9tg.js} +1 -1
  22. package/dist/{chunk-0zs1fd9z.js → chunk-fxppbahx.js} +1 -1
  23. package/dist/{chunk-c0jedy4d.js → chunk-gvkfydq5.js} +1 -1
  24. package/dist/{chunk-jaghd4j0.js → chunk-h0sd5cda.js} +2 -2
  25. package/dist/{chunk-bay6snzz.js → chunk-hhj1txvj.js} +1 -1
  26. package/dist/{chunk-j1d4aemv.js → chunk-jh385m2w.js} +1 -1
  27. package/dist/chunk-kxg9q64a.js +2 -0
  28. package/dist/{chunk-jws8btr5.js → chunk-m9nr12a1.js} +40 -40
  29. package/dist/{chunk-dnq9fhwf.js → chunk-mdfrm5hv.js} +1 -1
  30. package/dist/{chunk-fzwy4nny.js → chunk-mq7vvaf4.js} +1 -1
  31. package/dist/{chunk-cfj3c9ss.js → chunk-nfffn3s0.js} +1 -1
  32. package/dist/{chunk-0acycggt.js → chunk-nw7qvyek.js} +1 -1
  33. package/dist/{chunk-perp76wy.js → chunk-ny64ezsj.js} +1 -1
  34. package/dist/{chunk-f324yttz.js → chunk-qhnpc3ac.js} +1 -1
  35. package/dist/{chunk-1x4b64mx.js → chunk-qjba655t.js} +1 -1
  36. package/dist/{chunk-gparzn81.js → chunk-qjxxd4a0.js} +1 -1
  37. package/dist/{chunk-fh3r97cq.js → chunk-qsy7phd4.js} +1 -1
  38. package/dist/{chunk-vbthtg0x.js → chunk-rfq1jfhf.js} +1 -1
  39. package/dist/{chunk-fh7w72xm.js → chunk-rr41gk8b.js} +1 -1
  40. package/dist/{chunk-aertsqje.js → chunk-snyq0jj6.js} +1 -1
  41. package/dist/{chunk-52fcqzmc.js → chunk-stvqwzen.js} +1 -1
  42. package/dist/{chunk-6mqb6vf7.js → chunk-tdetcthb.js} +1 -1
  43. package/dist/{chunk-gwvg2c50.js → chunk-v8m2khkq.js} +1 -1
  44. package/dist/{chunk-g3hn7ncc.js → chunk-vtn0gmen.js} +2 -2
  45. package/dist/{chunk-emx5wsaa.js → chunk-xk2mwk61.js} +1 -1
  46. package/dist/{chunk-86vgttef.js → chunk-yvt8zszz.js} +1 -1
  47. package/dist/{chunk-nnqjjtqz.js → chunk-zbzmfqmk.js} +1 -1
  48. package/dist/{chunk-bt58m9y8.js → chunk-zqxqdns1.js} +1 -1
  49. package/dist/cli.js +7 -7
  50. package/dist/component-renderer.js +15 -1
  51. package/dist/craft-entry.js +1 -1
  52. package/dist/craft.js +1 -1
  53. package/dist/native/bridge/protocol.d.ts +5 -1
  54. package/dist/native/compiler/component-mapping.js +1 -0
  55. package/dist/native/compiler/html-to-ir.js +26 -5
  56. package/dist/native/compiler/icons.d.ts +15 -0
  57. package/dist/native/compiler/icons.js +15 -0
  58. package/dist/native/compiler/ir.d.ts +1 -0
  59. package/dist/native/components/primitives.d.ts +48 -1
  60. package/dist/native/components/primitives.js +3 -0
  61. package/dist/native/primitives/Video.stx +5 -0
  62. package/dist/native/prop-names.d.ts +6 -0
  63. package/dist/native/prop-names.js +34 -1
  64. package/dist/native/runtime/craft-bridge.js +240 -34
  65. package/dist/native/runtime/craft.d.ts +54 -1
  66. package/dist/native/runtime/event-stream.d.ts +31 -0
  67. package/dist/native/runtime/event-stream.js +232 -0
  68. package/dist/native/runtime/jsc-globals.d.ts +32 -0
  69. package/dist/native/runtime/jsc-globals.js +101 -0
  70. package/dist/pwa.js +1 -1
  71. package/dist/ssg.js +2 -2
  72. package/package.json +5 -5
  73. package/dist/chunk-0gx8he4p.js +0 -33
  74. package/dist/chunk-af944jrx.js +0 -2
  75. package/dist/chunk-q9w7sb6r.js +0 -2
  76. package/dist/chunk-qnyfg99e.js +0 -2
@@ -1,4 +1,4 @@
1
- import { nativePropName } from "../prop-names.js";
1
+ import { NATIVE_BOOLEAN_PROPS, nativePropName } from "../prop-names.js";
2
2
  import { mapToNativeComponent } from "./component-mapping.js";
3
3
  import { resolveIconName } from "./icons.js";
4
4
  import { parseViewBox, SVG_DROPPED, SVG_NODE_TYPES, SVG_TYPES, svgGeometry } from "./svg.js";
@@ -43,12 +43,21 @@ const DROP_SUBTREE = new Set(["script", "style", "head", "meta", "link", "title"
43
43
  load: "onLoad",
44
44
  "load-end": "onLoadEnd",
45
45
  loadend: "onLoadEnd",
46
- error: "onError"
46
+ error: "onError",
47
+ play: "onPlay",
48
+ playing: "onPlay",
49
+ pause: "onPause",
50
+ ended: "onEnd",
51
+ end: "onEnd",
52
+ timeupdate: "onProgress",
53
+ progress: "onProgress",
54
+ loadedmetadata: "onLoad"
47
55
  };
48
56
  export const NATIVE_EVENTS = new Set([
49
57
  "onBlur",
50
58
  "onChangeText",
51
59
  "onDismiss",
60
+ "onEnd",
52
61
  "onEndEditing",
53
62
  "onEndReached",
54
63
  "onError",
@@ -58,9 +67,12 @@ export const NATIVE_EVENTS = new Set([
58
67
  "onLoadEnd",
59
68
  "onLoadStart",
60
69
  "onLongPress",
70
+ "onPause",
71
+ "onPlay",
61
72
  "onPress",
62
73
  "onPressIn",
63
74
  "onPressOut",
75
+ "onProgress",
64
76
  "onRequestClose",
65
77
  "onRefresh",
66
78
  "onScroll",
@@ -229,6 +241,7 @@ const STYLE_KEYS = new Set([
229
241
  "Icon",
230
242
  "Image",
231
243
  "ImageBackground",
244
+ "Video",
232
245
  "FlatList",
233
246
  "SectionList",
234
247
  "Switch",
@@ -308,11 +321,15 @@ function readAttributes(tag, attributes, diagnostics) {
308
321
  props.key = value;
309
322
  continue;
310
323
  }
311
- const decoded = decodeEntities(value);
324
+ const decoded = decodeEntities(value), prop = nativePropName(rawName);
325
+ if (decoded === "" && NATIVE_BOOLEAN_PROPS.has(prop)) {
326
+ props[prop] = !0;
327
+ continue;
328
+ }
312
329
  try {
313
- props[nativePropName(rawName)] = JSON.parse(decoded);
330
+ props[prop] = JSON.parse(decoded);
314
331
  } catch {
315
- props[nativePropName(rawName)] = decoded;
332
+ props[prop] = decoded;
316
333
  }
317
334
  }
318
335
  const style = { ...classes ? compileClassStyles(classes).style : {}, ...inline };
@@ -454,6 +471,10 @@ export async function translateHtmlToIR(html, options = {}) {
454
471
  seenUnmapped.add(`drop:${tag}`);
455
472
  diagnostics.push({ kind: "dropped-subtree", tag });
456
473
  }
474
+ if (type === "Video" && props.source === void 0 && props.src !== void 0) {
475
+ props.source = props.src;
476
+ delete props.src;
477
+ }
457
478
  if (type === "Icon") {
458
479
  const icon = compileClassStyles(classes).icon;
459
480
  props.symbol = resolveIconName(String(props.symbol || props.name || icon || ""), Boolean(props.symbol)).symbol;
@@ -30,6 +30,7 @@ export declare const LUCIDE_TO_SF: {
30
30
  'alert-circle': 'exclamationmark.circle';
31
31
  'alert-triangle': 'exclamationmark.triangle';
32
32
  'archive': 'archivebox';
33
+ 'armchair': 'sofa';
33
34
  'arrow-down': 'arrow.down';
34
35
  'arrow-left': 'arrow.left';
35
36
  'arrow-right': 'arrow.right';
@@ -41,19 +42,24 @@ export declare const LUCIDE_TO_SF: {
41
42
  'backpack': 'backpack';
42
43
  'badge-check': 'checkmark.seal';
43
44
  'badge-x': 'xmark.seal';
45
+ 'ban': 'nosign';
44
46
  'bar-chart': 'chart.bar';
45
47
  'bar-chart-2': 'chart.bar';
46
48
  'bar-chart-3': 'chart.bar';
47
49
  'battery': 'battery.100';
50
+ 'battery-charging': 'battery.100.bolt';
48
51
  'bed': 'bed.double';
49
52
  'bell': 'bell';
50
53
  'bell-off': 'bell.slash';
54
+ 'bell-ring': 'bell.and.waves.left.and.right';
51
55
  'bike': 'figure.outdoor.cycle';
52
56
  'bluetooth': 'antenna.radiowaves.left.and.right';
53
57
  'book': 'book';
54
58
  'book-open': 'book';
55
59
  'bookmark': 'bookmark';
60
+ 'box': 'shippingbox';
56
61
  'brain': 'brain';
62
+ 'cable': 'cable.connector';
57
63
  'calendar': 'calendar';
58
64
  'calendar-check': 'calendar.badge.checkmark';
59
65
  'calendar-clock': 'calendar.badge.clock';
@@ -78,6 +84,7 @@ export declare const LUCIDE_TO_SF: {
78
84
  'chevron-up': 'chevron.up';
79
85
  'circle': 'circle';
80
86
  'circle-alert': 'exclamationmark.circle';
87
+ 'circle-arrow-down': 'arrow.down.circle';
81
88
  'circle-check': 'checkmark.circle';
82
89
  'circle-check-big': 'checkmark.circle';
83
90
  'circle-help': 'questionmark.circle';
@@ -89,11 +96,14 @@ export declare const LUCIDE_TO_SF: {
89
96
  'clipboard': 'clipboard';
90
97
  'clipboard-list': 'list.clipboard';
91
98
  'clock': 'clock';
99
+ 'clock-3': 'clock';
92
100
  'cloud': 'cloud';
93
101
  'cloud-off': 'icloud.slash';
94
102
  'coffee': 'cup.and.saucer';
95
103
  'copy': 'doc.on.doc';
96
104
  'credit-card': 'creditcard';
105
+ 'cylinder': 'cylinder';
106
+ 'disc': 'opticaldisc';
97
107
  'download': 'arrow.down.circle';
98
108
  'droplet': 'drop';
99
109
  'droplets': 'drop';
@@ -115,6 +125,7 @@ export declare const LUCIDE_TO_SF: {
115
125
  'graduation-cap': 'graduationcap';
116
126
  'grip-vertical': 'line.3.horizontal';
117
127
  'heart': 'heart';
128
+ 'heart-off': 'heart.slash';
118
129
  'heart-pulse': 'heart.text.square';
119
130
  'help-circle': 'questionmark.circle';
120
131
  'history': 'clock.arrow.circlepath';
@@ -126,6 +137,7 @@ export declare const LUCIDE_TO_SF: {
126
137
  'info': 'info.circle';
127
138
  'layers': 'square.3.layers.3d';
128
139
  'layout-grid': 'square.grid.2x2';
140
+ 'leaf': 'leaf';
129
141
  'library': 'books.vertical';
130
142
  'link': 'link';
131
143
  'list': 'list.bullet';
@@ -151,6 +163,7 @@ export declare const LUCIDE_TO_SF: {
151
163
  'more-vertical': 'ellipsis';
152
164
  'mountain': 'mountain.2';
153
165
  'music': 'music.note';
166
+ 'music-2': 'music.note';
154
167
  'package': 'shippingbox';
155
168
  'pause': 'pause';
156
169
  'pause-circle': 'pause.circle';
@@ -161,6 +174,7 @@ export declare const LUCIDE_TO_SF: {
161
174
  'plug': 'powerplug';
162
175
  'plus': 'plus';
163
176
  'plus-circle': 'plus.circle';
177
+ 'rectangle-horizontal': 'rectangle';
164
178
  'refresh-cw': 'arrow.clockwise';
165
179
  'repeat': 'repeat';
166
180
  'rotate-ccw': 'arrow.counterclockwise';
@@ -203,6 +217,7 @@ export declare const LUCIDE_TO_SF: {
203
217
  'trash-2': 'trash';
204
218
  'trending-down': 'chart.line.downtrend.xyaxis';
205
219
  'trending-up': 'chart.line.uptrend.xyaxis';
220
+ 'triangle-alert': 'exclamationmark.triangle';
206
221
  'trophy': 'trophy';
207
222
  'unlink': 'personalhotspot.slash';
208
223
  'upload': 'arrow.up.circle';
@@ -4,6 +4,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
4
4
  "alert-circle": "exclamationmark.circle",
5
5
  "alert-triangle": "exclamationmark.triangle",
6
6
  archive: "archivebox",
7
+ armchair: "sofa",
7
8
  "arrow-down": "arrow.down",
8
9
  "arrow-left": "arrow.left",
9
10
  "arrow-right": "arrow.right",
@@ -15,19 +16,24 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
15
16
  backpack: "backpack",
16
17
  "badge-check": "checkmark.seal",
17
18
  "badge-x": "xmark.seal",
19
+ ban: "nosign",
18
20
  "bar-chart": "chart.bar",
19
21
  "bar-chart-2": "chart.bar",
20
22
  "bar-chart-3": "chart.bar",
21
23
  battery: "battery.100",
24
+ "battery-charging": "battery.100.bolt",
22
25
  bed: "bed.double",
23
26
  bell: "bell",
24
27
  "bell-off": "bell.slash",
28
+ "bell-ring": "bell.and.waves.left.and.right",
25
29
  bike: "figure.outdoor.cycle",
26
30
  bluetooth: "antenna.radiowaves.left.and.right",
27
31
  book: "book",
28
32
  "book-open": "book",
29
33
  bookmark: "bookmark",
34
+ box: "shippingbox",
30
35
  brain: "brain",
36
+ cable: "cable.connector",
31
37
  calendar: "calendar",
32
38
  "calendar-check": "calendar.badge.checkmark",
33
39
  "calendar-clock": "calendar.badge.clock",
@@ -52,6 +58,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
52
58
  "chevron-up": "chevron.up",
53
59
  circle: "circle",
54
60
  "circle-alert": "exclamationmark.circle",
61
+ "circle-arrow-down": "arrow.down.circle",
55
62
  "circle-check": "checkmark.circle",
56
63
  "circle-check-big": "checkmark.circle",
57
64
  "circle-help": "questionmark.circle",
@@ -63,11 +70,14 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
63
70
  clipboard: "clipboard",
64
71
  "clipboard-list": "list.clipboard",
65
72
  clock: "clock",
73
+ "clock-3": "clock",
66
74
  cloud: "cloud",
67
75
  "cloud-off": "icloud.slash",
68
76
  coffee: "cup.and.saucer",
69
77
  copy: "doc.on.doc",
70
78
  "credit-card": "creditcard",
79
+ cylinder: "cylinder",
80
+ disc: "opticaldisc",
71
81
  download: "arrow.down.circle",
72
82
  droplet: "drop",
73
83
  droplets: "drop",
@@ -89,6 +99,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
89
99
  "graduation-cap": "graduationcap",
90
100
  "grip-vertical": "line.3.horizontal",
91
101
  heart: "heart",
102
+ "heart-off": "heart.slash",
92
103
  "heart-pulse": "heart.text.square",
93
104
  "help-circle": "questionmark.circle",
94
105
  history: "clock.arrow.circlepath",
@@ -100,6 +111,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
100
111
  info: "info.circle",
101
112
  layers: "square.3.layers.3d",
102
113
  "layout-grid": "square.grid.2x2",
114
+ leaf: "leaf",
103
115
  library: "books.vertical",
104
116
  link: "link",
105
117
  list: "list.bullet",
@@ -125,6 +137,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
125
137
  "more-vertical": "ellipsis",
126
138
  mountain: "mountain.2",
127
139
  music: "music.note",
140
+ "music-2": "music.note",
128
141
  package: "shippingbox",
129
142
  pause: "pause",
130
143
  "pause-circle": "pause.circle",
@@ -135,6 +148,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
135
148
  plug: "powerplug",
136
149
  plus: "plus",
137
150
  "plus-circle": "plus.circle",
151
+ "rectangle-horizontal": "rectangle",
138
152
  "refresh-cw": "arrow.clockwise",
139
153
  repeat: "repeat",
140
154
  "rotate-ccw": "arrow.counterclockwise",
@@ -177,6 +191,7 @@ export const FALLBACK_SYMBOL = "circle", LUCIDE_TO_SF = {
177
191
  "trash-2": "trash",
178
192
  "trending-down": "chart.line.downtrend.xyaxis",
179
193
  "trending-up": "chart.line.uptrend.xyaxis",
194
+ "triangle-alert": "exclamationmark.triangle",
180
195
  trophy: "trophy",
181
196
  unlink: "personalhotspot.slash",
182
197
  upload: "arrow.up.circle",
@@ -203,6 +203,7 @@ export type STXComponentType = | 'View'
203
203
  | 'Icon'
204
204
  | 'Image'
205
205
  | 'ImageBackground'
206
+ | 'Video'
206
207
  // Lists
207
208
  | 'FlatList'
208
209
  | 'SectionList'
@@ -13,9 +13,12 @@ export declare const ComponentRegistry: {
13
13
  Pressable: 'Pressable';
14
14
  Switch: 'Switch';
15
15
  Slider: 'Slider';
16
+ Picker: 'Picker';
17
+ DatePicker: 'DatePicker';
16
18
  Icon: 'Icon';
17
19
  Image: 'Image';
18
20
  ImageBackground: 'ImageBackground';
21
+ Video: 'Video';
19
22
  FlatList: 'FlatList';
20
23
  SectionList: 'SectionList';
21
24
  Modal: 'Modal';
@@ -96,6 +99,9 @@ export declare interface TextInputProps extends BaseProps {
96
99
  multiline?: boolean
97
100
  editable?: boolean
98
101
  selectionColor?: string
102
+ textContentType?: string
103
+ autoComplete?: string
104
+ passwordRules?: string
99
105
  }
100
106
  // ============================================================================
101
107
  // Interactive Components
@@ -159,6 +165,22 @@ export declare interface PickerProps extends BaseProps {
159
165
  onValueChange?: (value: string | number, index: number) => void
160
166
  disabled?: boolean
161
167
  }
168
+ /** A value as `<input type="date|time|datetime-local">` writes it. */
169
+ export declare interface DatePickerChange {
170
+ value: string
171
+ iso: string
172
+ timestamp: number
173
+ }
174
+ export declare interface DatePickerProps extends BaseProps {
175
+ mode?: 'date' | 'time' | 'datetime'
176
+ value?: string | number
177
+ minimumDate?: string | number
178
+ maximumDate?: string | number
179
+ minuteInterval?: number
180
+ display?: 'compact' | 'inline' | 'wheels'
181
+ onValueChange?: (event: DatePickerChange) => void
182
+ disabled?: boolean
183
+ }
162
184
  /** Iconify or SF Symbol rendered by the platform's native icon view. */
163
185
  export declare interface IconProps extends BaseProps {
164
186
  name?: string
@@ -176,6 +198,23 @@ export declare interface ImageProps extends BaseProps {
176
198
  fadeDuration?: number
177
199
  defaultSource?: ImageSource
178
200
  }
201
+ /** A video drawn by the platform's player (AVPlayer on iOS). */
202
+ export declare interface VideoProps extends BaseProps {
203
+ source?: string | { uri: string }
204
+ src?: string
205
+ controls?: boolean
206
+ autoplay?: boolean
207
+ loop?: boolean
208
+ muted?: boolean
209
+ paused?: boolean
210
+ resizeMode?: 'contain' | 'cover' | 'stretch'
211
+ onLoad?: (event: { duration: number }) => void
212
+ onPlay?: () => void
213
+ onPause?: () => void
214
+ onEnd?: () => void
215
+ onProgress?: (event: { currentTime: number, duration: number }) => void
216
+ onError?: (event: { message: string }) => void
217
+ }
179
218
  export declare interface ImageBackgroundProps extends ImageProps {
180
219
  imageStyle?: STXStyle
181
220
  }
@@ -295,12 +334,20 @@ export type KeyboardType = | 'default'
295
334
  | 'decimal-pad'
296
335
  | 'url'
297
336
  | 'web-search'
298
- | 'visible-password';
337
+ | 'visible-password'
338
+ | 'ascii-capable'
339
+ | 'numbers-and-punctuation'
340
+ | 'name-phone-pad'
341
+ | 'twitter';
299
342
  export type ReturnKeyType = | 'done'
300
343
  | 'go'
301
344
  | 'next'
302
345
  | 'search'
303
346
  | 'send'
347
+ | 'join'
348
+ | 'route'
349
+ | 'continue'
350
+ | 'emergency-call'
304
351
  | 'default';
305
352
  export type ImageSource = | { uri: string; width?: number; height?: number; headers?: Record<string, string> }
306
353
  | number // require('./image.png');
@@ -11,9 +11,12 @@ export const ComponentRegistry = {
11
11
  Pressable: "Pressable",
12
12
  Switch: "Switch",
13
13
  Slider: "Slider",
14
+ Picker: "Picker",
15
+ DatePicker: "DatePicker",
14
16
  Icon: "Icon",
15
17
  Image: "Image",
16
18
  ImageBackground: "ImageBackground",
19
+ Video: "Video",
17
20
  FlatList: "FlatList",
18
21
  SectionList: "SectionList",
19
22
  Modal: "Modal",
@@ -0,0 +1,5 @@
1
+ {{-- Video: the native type (AVPlayer on iOS), written as an ordinary stx component. --}}
2
+ <script server>
3
+ const classes = $props.class ?? $props.className ?? ''
4
+ </script>
5
+ <video data-native="Video" class="{{ classes }}"></video>
@@ -1,2 +1,8 @@
1
1
  /** Restore a native protocol prop after HTML lowercasing or kebab-case binding emission. */
2
2
  export declare function nativePropName(name: string): string;
3
+ /**
4
+ * Native props that are booleans, where an attribute written bare means true
5
+ * as it does in HTML. HTML hands a bare attribute over as an empty string, so
6
+ * `<video controls>` or a folded `:multiline="true"` reached the host as "".
7
+ */
8
+ export declare const NATIVE_BOOLEAN_PROPS: Set<any>;
@@ -11,6 +11,7 @@ const NATIVE_PROP_NAMES = [
11
11
  "alwaysBounceVertical",
12
12
  "animationType",
13
13
  "autoCapitalize",
14
+ "autoComplete",
14
15
  "autoCorrect",
15
16
  "autoFocus",
16
17
  "blurRadius",
@@ -30,15 +31,19 @@ const NATIVE_PROP_NAMES = [
30
31
  "keyboardVerticalOffset",
31
32
  "keyExtractor",
32
33
  "maxLength",
34
+ "maximumDate",
33
35
  "maximumTrackTintColor",
34
36
  "maximumValue",
35
37
  "maxToRenderPerBatch",
38
+ "minimumDate",
36
39
  "minimumTrackTintColor",
37
40
  "minimumValue",
41
+ "minuteInterval",
38
42
  "numberOfLines",
39
43
  "numColumns",
40
44
  "onEndReachedThreshold",
41
45
  "pagingEnabled",
46
+ "passwordRules",
42
47
  "placeholderTextColor",
43
48
  "pointerEvents",
44
49
  "presentationStyle",
@@ -58,13 +63,41 @@ const NATIVE_PROP_NAMES = [
58
63
  "statusBarTranslucent",
59
64
  "stickyHeaderIndices",
60
65
  "testID",
66
+ "textContentType",
61
67
  "thumbColor",
62
68
  "thumbTintColor",
63
69
  "titleColor",
64
70
  "trackColor",
65
71
  "underlayColor",
66
72
  "windowSize"
67
- ], nativePropNames = new Map(NATIVE_PROP_NAMES.map((name) => [normaliseKey(name), name]));
73
+ ];
74
+ export const NATIVE_BOOLEAN_PROPS = new Set([
75
+ "animating",
76
+ "autoCorrect",
77
+ "autoFocus",
78
+ "autoplay",
79
+ "autoPlay",
80
+ "bounces",
81
+ "controls",
82
+ "disabled",
83
+ "editable",
84
+ "hidesWhenStopped",
85
+ "horizontal",
86
+ "loop",
87
+ "multiline",
88
+ "muted",
89
+ "pagingEnabled",
90
+ "paused",
91
+ "refreshing",
92
+ "scrollEnabled",
93
+ "secureTextEntry",
94
+ "selectTextOnFocus",
95
+ "showsHorizontalScrollIndicator",
96
+ "showsVerticalScrollIndicator",
97
+ "transparent",
98
+ "visible"
99
+ ]);
100
+ const nativePropNames = new Map(NATIVE_PROP_NAMES.map((name) => [normaliseKey(name), name]));
68
101
  function normaliseKey(name) {
69
102
  return name.replace(/[-_]/g, "").toLowerCase();
70
103
  }