@g9tm/lynxcontrols 2.7.0 → 2.7.2

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.
@@ -12,6 +12,6 @@ Props:
12
12
  - `isFullSpan?`: (item: T, index: number) => void
13
13
  - `isSticky?`: (item: T, index: number) => void
14
14
  - `onEndReached?`: () => void
15
- - `onScroll?`: (detail: { scrollTop: number; scrollLeft: number; }) => void
15
+ - `onLanded?`: () => void
16
16
 
17
17
  Example: `<G9VirtualList getKey={getKey} items={items} renderItem={renderItem} />`
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "catalogVersion": 1,
3
3
  "package": "@g9tm/lynxcontrols",
4
- "version": "2.7.0",
4
+ "version": "2.7.2",
5
5
  "generatedBy": "node scripts/check-docs.mjs --write",
6
6
  "components": [
7
7
  {
@@ -11253,7 +11253,7 @@
11253
11253
  "required": false,
11254
11254
  "serializable": false,
11255
11255
  "role": "slot",
11256
- "doc": "The placeholder (MAUI `LoadingView`). Default: a full-fill themed background with a centred 42 px spinner."
11256
+ "doc": "The placeholder (MAUI `LoadingView`). Default: a full-fill themed background with a centred 42 px spinner, or nothing for an inline piece (`grow={false}`). `null` shows nothing (2.7.1, G9Hub 142)."
11257
11257
  },
11258
11258
  {
11259
11259
  "name": "render",
@@ -17544,7 +17544,7 @@
17544
17544
  "required": false,
17545
17545
  "serializable": true,
17546
17546
  "role": "behaviour",
17547
- "doc": "The picture; `null`/empty shows the fallback."
17547
+ "doc": "The picture: a URI, or a file path from the host (made a `file://` URI, see g9ImageSrc); `null`/empty shows the fallback."
17548
17548
  },
17549
17549
  {
17550
17550
  "name": "style",
@@ -17602,7 +17602,8 @@
17602
17602
  "evidence": {
17603
17603
  "ledger": [
17604
17604
  "N-092",
17605
- "N-147"
17605
+ "N-147",
17606
+ "N-171"
17606
17607
  ]
17607
17608
  },
17608
17609
  "tokens": [
@@ -30236,6 +30237,16 @@
30236
30237
  "payload": "focused: boolean"
30237
30238
  },
30238
30239
  "serializable": false
30240
+ },
30241
+ {
30242
+ "name": "setScreenProtection",
30243
+ "required": false,
30244
+ "type": {
30245
+ "kind": "event",
30246
+ "payload": "on: boolean",
30247
+ "returns": "Promise<G9ScreenProtectionState>"
30248
+ },
30249
+ "serializable": false
30239
30250
  }
30240
30251
  ]
30241
30252
  },
@@ -48470,6 +48481,14 @@
48470
48481
  "payload": "options: { readonly smooth?: boolean; } | undefined"
48471
48482
  },
48472
48483
  "serializable": false
48484
+ },
48485
+ {
48486
+ "name": "landed",
48487
+ "required": true,
48488
+ "type": {
48489
+ "kind": "boolean"
48490
+ },
48491
+ "serializable": true
48473
48492
  }
48474
48493
  ]
48475
48494
  },
@@ -48683,6 +48702,17 @@
48683
48702
  "role": "event",
48684
48703
  "doc": "Called when the list nears its end (load the next page)."
48685
48704
  },
48705
+ {
48706
+ "name": "onLanded",
48707
+ "type": {
48708
+ "kind": "event",
48709
+ "payload": null
48710
+ },
48711
+ "required": false,
48712
+ "serializable": false,
48713
+ "role": "event",
48714
+ "doc": "Once, when the list is shown in its place (2.7.1, G9Hub 143): a settling list after it landed (at most {@link g9ListRevealMs}), any other list on mount. A page holds its one loader until then."
48715
+ },
48686
48716
  {
48687
48717
  "name": "onScroll",
48688
48718
  "type": {
@@ -53024,6 +53054,14 @@
53024
53054
  "signature": "G9HoldRelease",
53025
53055
  "summary": "What the press turned out to be when the finger left."
53026
53056
  },
53057
+ {
53058
+ "id": "controls.host.g9HoldScreenProtection",
53059
+ "export": "g9HoldScreenProtection",
53060
+ "from": "@g9tm/lynxcontrols/host",
53061
+ "kind": "function",
53062
+ "signature": "(host: G9HostServices, onState?: ((state: G9ScreenProtectionState) => void) | undefined): () => void",
53063
+ "summary": "Turns the host's screen protection on until the returned release runs (idempotent): Android `FLAG_SECURE`, desktop content protection; iOS cannot block a capture and reports one. Holds are counted per host: protection goes off when the last one is released. `onState` hears what the host did (`blocked`, `captured`). On a host without it (`setScreenProtection` absent) nothing happens and the state is unprotected."
53064
+ },
53027
53065
  {
53028
53066
  "id": "controls.anchor.G9HorizontalStripContext",
53029
53067
  "export": "G9HorizontalStripContext",
@@ -53464,6 +53502,14 @@
53464
53502
  "signature": "300",
53465
53503
  "summary": "Above this many items a list grows progressively (unless `progressive={false}`)."
53466
53504
  },
53505
+ {
53506
+ "id": "controls.list.g9ListRevealMs",
53507
+ "export": "g9ListRevealMs",
53508
+ "from": "@g9tm/lynxcontrols/list",
53509
+ "kind": "constant",
53510
+ "signature": "450",
53511
+ "summary": "A settling list is shown at the latest after this, landed or not (ms; 2.5.14)."
53512
+ },
53467
53513
  {
53468
53514
  "id": "controls.list.G9ListRowProps",
53469
53515
  "export": "G9ListRowProps",
@@ -58520,6 +58566,14 @@
58520
58566
  "signature": "(): G9SafeInsets",
58521
58567
  "summary": "The platform safe-area insets from the host service; re-renders when they change."
58522
58568
  },
58569
+ {
58570
+ "id": "controls.host.useG9ScreenProtection",
58571
+ "export": "useG9ScreenProtection",
58572
+ "from": "@g9tm/lynxcontrols/host",
58573
+ "kind": "hook",
58574
+ "signature": "(active?: boolean): G9ScreenProtectionState",
58575
+ "summary": "Protects the screen while the component is shown and `active` (default true): a page with paid lessons, a banking screen, a one-time code. Returns what the host reports — `blocked` (captures show the app blank) and `captured` (iOS: the screen is being recorded or mirrored now; cover the content yourself)."
58576
+ },
58523
58577
  {
58524
58578
  "id": "controls.anchor.useG9Scroller",
58525
58579
  "export": "useG9Scroller",
package/catalog/index.md CHANGED
@@ -1,4 +1,4 @@
1
- # Catalog index: `@g9tm/lynxcontrols` 2.7.0
1
+ # Catalog index: `@g9tm/lynxcontrols` 2.7.2
2
2
 
3
3
  One line per component; the card (`cards/<Export>.md`) has its props and an example.
4
4