@g9tm/lynxcontrols 2.6.19 → 2.7.1
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/catalog/cards/G9RangeSlider.md +1 -1
- package/catalog/cards/G9VirtualList.md +1 -1
- package/catalog/catalog.json +66 -2
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/deferred/deferred-content.d.ts +4 -1
- package/dist/deferred/deferred-content.d.ts.map +1 -1
- package/dist/deferred/deferred-content.jsx +2 -2
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.jsx +1 -0
- package/dist/host/screen-protection.d.ts +15 -0
- package/dist/host/screen-protection.d.ts.map +1 -0
- package/dist/host/screen-protection.jsx +47 -0
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +1 -1
- package/dist/list/virtual-list.d.ts +7 -0
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +9 -0
- package/dist/range-slider/range-slider.d.ts +5 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +7 -1
- package/dist/route/path-router.d.ts.map +1 -1
- package/dist/route/path-router.jsx +4 -3
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/catalog-index.md +1 -0
- package/skills/g9-lynx-app/references/components/canvas.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +1 -1
- package/skills/g9-lynx-app/references/components/media-photo-editor.md +55 -0
- package/skills/g9-lynx-app/references/components/range-slider.md +1 -1
|
@@ -11,7 +11,7 @@ Props:
|
|
|
11
11
|
- `disabled?`: boolean
|
|
12
12
|
- `mode?`: 'range' | 'single' = "range"
|
|
13
13
|
- `formatValue?`: (value: number) => void
|
|
14
|
+
- `onDragCompleted?`: (value: number) => void
|
|
14
15
|
- `onRangeChange?`: (start: number, end: number) => void
|
|
15
|
-
- `onValueChanged?`: (value: number) => void
|
|
16
16
|
|
|
17
17
|
Example: `<G9RangeSlider />`
|
|
@@ -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
|
-
- `
|
|
15
|
+
- `onLanded?`: () => void
|
|
16
16
|
|
|
17
17
|
Example: `<G9VirtualList getKey={getKey} items={items} renderItem={renderItem} />`
|
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.7.1",
|
|
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",
|
|
@@ -30236,6 +30236,16 @@
|
|
|
30236
30236
|
"payload": "focused: boolean"
|
|
30237
30237
|
},
|
|
30238
30238
|
"serializable": false
|
|
30239
|
+
},
|
|
30240
|
+
{
|
|
30241
|
+
"name": "setScreenProtection",
|
|
30242
|
+
"required": false,
|
|
30243
|
+
"type": {
|
|
30244
|
+
"kind": "event",
|
|
30245
|
+
"payload": "on: boolean",
|
|
30246
|
+
"returns": "Promise<G9ScreenProtectionState>"
|
|
30247
|
+
},
|
|
30248
|
+
"serializable": false
|
|
30239
30249
|
}
|
|
30240
30250
|
]
|
|
30241
30251
|
},
|
|
@@ -32578,6 +32588,17 @@
|
|
|
32578
32588
|
"role": "behaviour",
|
|
32579
32589
|
"doc": "`'single'` (one thumb, `value`) or `'range'` (two thumbs, `rangeStart`/`rangeEnd`). Default `'range'`."
|
|
32580
32590
|
},
|
|
32591
|
+
{
|
|
32592
|
+
"name": "onDragCompleted",
|
|
32593
|
+
"type": {
|
|
32594
|
+
"kind": "event",
|
|
32595
|
+
"payload": "value: number"
|
|
32596
|
+
},
|
|
32597
|
+
"required": false,
|
|
32598
|
+
"serializable": false,
|
|
32599
|
+
"role": "event",
|
|
32600
|
+
"doc": "A drag ended (the finger lifted): the single value, or the range end (MAUI `DragCompleted`, since 2.7.0). Live previews follow `onValueChange` and commit here — one undo step per drag."
|
|
32601
|
+
},
|
|
32581
32602
|
{
|
|
32582
32603
|
"name": "onRangeChange",
|
|
32583
32604
|
"type": {
|
|
@@ -48459,6 +48480,14 @@
|
|
|
48459
48480
|
"payload": "options: { readonly smooth?: boolean; } | undefined"
|
|
48460
48481
|
},
|
|
48461
48482
|
"serializable": false
|
|
48483
|
+
},
|
|
48484
|
+
{
|
|
48485
|
+
"name": "landed",
|
|
48486
|
+
"required": true,
|
|
48487
|
+
"type": {
|
|
48488
|
+
"kind": "boolean"
|
|
48489
|
+
},
|
|
48490
|
+
"serializable": true
|
|
48462
48491
|
}
|
|
48463
48492
|
]
|
|
48464
48493
|
},
|
|
@@ -48672,6 +48701,17 @@
|
|
|
48672
48701
|
"role": "event",
|
|
48673
48702
|
"doc": "Called when the list nears its end (load the next page)."
|
|
48674
48703
|
},
|
|
48704
|
+
{
|
|
48705
|
+
"name": "onLanded",
|
|
48706
|
+
"type": {
|
|
48707
|
+
"kind": "event",
|
|
48708
|
+
"payload": null
|
|
48709
|
+
},
|
|
48710
|
+
"required": false,
|
|
48711
|
+
"serializable": false,
|
|
48712
|
+
"role": "event",
|
|
48713
|
+
"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."
|
|
48714
|
+
},
|
|
48675
48715
|
{
|
|
48676
48716
|
"name": "onScroll",
|
|
48677
48717
|
"type": {
|
|
@@ -53013,6 +53053,14 @@
|
|
|
53013
53053
|
"signature": "G9HoldRelease",
|
|
53014
53054
|
"summary": "What the press turned out to be when the finger left."
|
|
53015
53055
|
},
|
|
53056
|
+
{
|
|
53057
|
+
"id": "controls.host.g9HoldScreenProtection",
|
|
53058
|
+
"export": "g9HoldScreenProtection",
|
|
53059
|
+
"from": "@g9tm/lynxcontrols/host",
|
|
53060
|
+
"kind": "function",
|
|
53061
|
+
"signature": "(host: G9HostServices, onState?: ((state: G9ScreenProtectionState) => void) | undefined): () => void",
|
|
53062
|
+
"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."
|
|
53063
|
+
},
|
|
53016
53064
|
{
|
|
53017
53065
|
"id": "controls.anchor.G9HorizontalStripContext",
|
|
53018
53066
|
"export": "G9HorizontalStripContext",
|
|
@@ -53453,6 +53501,14 @@
|
|
|
53453
53501
|
"signature": "300",
|
|
53454
53502
|
"summary": "Above this many items a list grows progressively (unless `progressive={false}`)."
|
|
53455
53503
|
},
|
|
53504
|
+
{
|
|
53505
|
+
"id": "controls.list.g9ListRevealMs",
|
|
53506
|
+
"export": "g9ListRevealMs",
|
|
53507
|
+
"from": "@g9tm/lynxcontrols/list",
|
|
53508
|
+
"kind": "constant",
|
|
53509
|
+
"signature": "450",
|
|
53510
|
+
"summary": "A settling list is shown at the latest after this, landed or not (ms; 2.5.14)."
|
|
53511
|
+
},
|
|
53456
53512
|
{
|
|
53457
53513
|
"id": "controls.list.G9ListRowProps",
|
|
53458
53514
|
"export": "G9ListRowProps",
|
|
@@ -58509,6 +58565,14 @@
|
|
|
58509
58565
|
"signature": "(): G9SafeInsets",
|
|
58510
58566
|
"summary": "The platform safe-area insets from the host service; re-renders when they change."
|
|
58511
58567
|
},
|
|
58568
|
+
{
|
|
58569
|
+
"id": "controls.host.useG9ScreenProtection",
|
|
58570
|
+
"export": "useG9ScreenProtection",
|
|
58571
|
+
"from": "@g9tm/lynxcontrols/host",
|
|
58572
|
+
"kind": "hook",
|
|
58573
|
+
"signature": "(active?: boolean): G9ScreenProtectionState",
|
|
58574
|
+
"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)."
|
|
58575
|
+
},
|
|
58512
58576
|
{
|
|
58513
58577
|
"id": "controls.anchor.useG9Scroller",
|
|
58514
58578
|
"export": "useG9Scroller",
|
package/catalog/index.md
CHANGED