@vizejs/fresco-native 0.717.0 → 0.719.0

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/index.d.ts CHANGED
@@ -1,5 +1,14 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
4
+ /**
5
+ * Which binding artifact the generated loader actually loaded: `'native'` for
6
+ * a native addon, otherwise the `platformArchABI` of the WASI flavor. Every
7
+ * flavor napi-rs can build is listed, because `NAPI_RS_NATIVE_LIBRARY_PATH`
8
+ * can point the loader at a WASI artifact this package does not build itself.
9
+ */
10
+ export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1'
11
+
3
12
  /** Add child to parent node. */
4
13
  export declare function addLayoutChild(parent: number, child: number): void
5
14
 
@@ -225,7 +234,7 @@ export interface RenderNodeNapi {
225
234
  /** Node ID */
226
235
  id: number
227
236
  /** Node type accepted by the native renderer. */
228
- nodeType: "root" | "box" | "text" | "input"
237
+ nodeType: "root" | "box" | "text" | "input" | "raw"
229
238
  /** Text content (for text nodes) */
230
239
  text?: string
231
240
  /** Whether text should wrap */
@@ -240,10 +249,16 @@ export interface RenderNodeNapi {
240
249
  focused?: boolean
241
250
  /** Cursor position in input */
242
251
  cursor?: number
252
+ /** Inclusive grapheme index at the start of the input selection. */
253
+ selectionStart?: number
254
+ /** Exclusive grapheme index at the end of the input selection. */
255
+ selectionEnd?: number
243
256
  /** Whether to mask input (password) */
244
257
  mask?: boolean
245
258
  /** Mask character */
246
259
  maskChar?: string
260
+ /** Exact rows for raw frame-buffer nodes. */
261
+ lines?: Array<string>
247
262
  /** Flex style */
248
263
  style?: FlexStyleNapi
249
264
  /** Visual appearance */