@g9tm/lynxcontrols 2.5.8 → 2.5.9
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/G9PathNavigator.md +6 -2
- package/catalog/catalog.json +79 -6
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/provider/keep-alive.d.ts +2 -0
- package/dist/provider/keep-alive.d.ts.map +1 -1
- package/dist/provider/keep-alive.jsx +3 -1
- package/dist/route/path-navigator.css +179 -2
- package/dist/route/path-navigator.css.map +1 -1
- package/dist/route/path-navigator.d.ts +28 -4
- package/dist/route/path-navigator.d.ts.map +1 -1
- package/dist/route/path-navigator.jsx +103 -25
- package/dist/route/path-router.d.ts +25 -2
- package/dist/route/path-router.d.ts.map +1 -1
- package/dist/route/path-router.jsx +47 -5
- package/package.json +2 -2
- package/skills/g9-lynx-app/references/components/route.md +6 -2
|
@@ -6,8 +6,12 @@ Draws the router: the top page (and the one parked under it), or a list and its
|
|
|
6
6
|
|
|
7
7
|
Props:
|
|
8
8
|
- `router`: object
|
|
9
|
-
- `
|
|
10
|
-
- `
|
|
9
|
+
- `onMasterResize?`: (pattern: string, width: number) => void
|
|
10
|
+
- `renderPage?`: (entry, page, pane, motion) => ReactNode
|
|
11
|
+
- `leaveMs?`: number = "motionMs"
|
|
12
|
+
- `motion?`: 'none' | 'custom' | 'auto'
|
|
13
|
+
- `motionMs?`: number = 280
|
|
14
|
+
- `reducedMotion?`: boolean
|
|
11
15
|
- `wide?`: boolean
|
|
12
16
|
|
|
13
17
|
Example: `<G9PathNavigator router={router} />`
|
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.9",
|
|
5
5
|
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
6
|
"components": [
|
|
7
7
|
{
|
|
@@ -17647,6 +17647,28 @@
|
|
|
17647
17647
|
"required": false,
|
|
17648
17648
|
"serializable": true,
|
|
17649
17649
|
"role": "identity"
|
|
17650
|
+
},
|
|
17651
|
+
{
|
|
17652
|
+
"name": "style",
|
|
17653
|
+
"type": {
|
|
17654
|
+
"kind": "object",
|
|
17655
|
+
"name": "style",
|
|
17656
|
+
"map": {
|
|
17657
|
+
"kind": "union",
|
|
17658
|
+
"of": [
|
|
17659
|
+
{
|
|
17660
|
+
"kind": "string"
|
|
17661
|
+
},
|
|
17662
|
+
{
|
|
17663
|
+
"kind": "number"
|
|
17664
|
+
}
|
|
17665
|
+
]
|
|
17666
|
+
}
|
|
17667
|
+
},
|
|
17668
|
+
"required": false,
|
|
17669
|
+
"serializable": true,
|
|
17670
|
+
"role": "appearance",
|
|
17671
|
+
"doc": "Inline style on the region's view (2.5.9: a motion's duration)."
|
|
17650
17672
|
}
|
|
17651
17673
|
],
|
|
17652
17674
|
"anchor": null,
|
|
@@ -24486,10 +24508,57 @@
|
|
|
24486
24508
|
"kind": "number"
|
|
24487
24509
|
},
|
|
24488
24510
|
"required": false,
|
|
24489
|
-
"default":
|
|
24511
|
+
"default": "motionMs",
|
|
24512
|
+
"serializable": true,
|
|
24513
|
+
"role": "behaviour",
|
|
24514
|
+
"doc": "How long a popped page may take to leave (ms) before the router forgets it. Default `motionMs` (0 with no motion)."
|
|
24515
|
+
},
|
|
24516
|
+
{
|
|
24517
|
+
"name": "motion",
|
|
24518
|
+
"type": {
|
|
24519
|
+
"kind": "enum",
|
|
24520
|
+
"values": [
|
|
24521
|
+
"none",
|
|
24522
|
+
"custom",
|
|
24523
|
+
"auto"
|
|
24524
|
+
]
|
|
24525
|
+
},
|
|
24526
|
+
"required": false,
|
|
24527
|
+
"serializable": true,
|
|
24528
|
+
"role": "behaviour",
|
|
24529
|
+
"doc": "`auto` (default): the library's motion by kind. `custom`: none of the library's, `renderPage` animates and calls `onSettled` (the move settles after `leaveMs` at the latest). `none`: no motion at all."
|
|
24530
|
+
},
|
|
24531
|
+
{
|
|
24532
|
+
"name": "motionMs",
|
|
24533
|
+
"type": {
|
|
24534
|
+
"kind": "number"
|
|
24535
|
+
},
|
|
24536
|
+
"required": false,
|
|
24537
|
+
"default": 280,
|
|
24490
24538
|
"serializable": true,
|
|
24491
24539
|
"role": "behaviour",
|
|
24492
|
-
"doc": "
|
|
24540
|
+
"doc": "The motion's length (ms). Default 280."
|
|
24541
|
+
},
|
|
24542
|
+
{
|
|
24543
|
+
"name": "onMasterResize",
|
|
24544
|
+
"type": {
|
|
24545
|
+
"kind": "event",
|
|
24546
|
+
"payload": "pattern: string, width: number"
|
|
24547
|
+
},
|
|
24548
|
+
"required": false,
|
|
24549
|
+
"serializable": false,
|
|
24550
|
+
"role": "event",
|
|
24551
|
+
"doc": "The list was dragged to a new width (a resizable `master`; the app persists it and passes it back as `width`)."
|
|
24552
|
+
},
|
|
24553
|
+
{
|
|
24554
|
+
"name": "reducedMotion",
|
|
24555
|
+
"type": {
|
|
24556
|
+
"kind": "boolean"
|
|
24557
|
+
},
|
|
24558
|
+
"required": false,
|
|
24559
|
+
"serializable": true,
|
|
24560
|
+
"role": "behaviour",
|
|
24561
|
+
"doc": "The device asks for less motion: same as `motion: 'none'`."
|
|
24493
24562
|
},
|
|
24494
24563
|
{
|
|
24495
24564
|
"name": "renderPage",
|
|
@@ -24507,6 +24576,10 @@
|
|
|
24507
24576
|
{
|
|
24508
24577
|
"name": "pane",
|
|
24509
24578
|
"type": "\"full\" | \"detail\" | \"master\""
|
|
24579
|
+
},
|
|
24580
|
+
{
|
|
24581
|
+
"name": "motion",
|
|
24582
|
+
"type": "G9PathPageMotion"
|
|
24510
24583
|
}
|
|
24511
24584
|
],
|
|
24512
24585
|
"returns": "ReactNode"
|
|
@@ -24514,7 +24587,7 @@
|
|
|
24514
24587
|
"required": false,
|
|
24515
24588
|
"serializable": false,
|
|
24516
24589
|
"role": "slot",
|
|
24517
|
-
"doc": "Wraps each page (the app's frame for `route.layout`,
|
|
24590
|
+
"doc": "Wraps each page (the app's frame for `route.layout`, its own motion by `motion.kind` / `motion.phase`)."
|
|
24518
24591
|
},
|
|
24519
24592
|
{
|
|
24520
24593
|
"name": "router",
|
|
@@ -52284,8 +52357,8 @@
|
|
|
52284
52357
|
"export": "g9ParsePath",
|
|
52285
52358
|
"from": "@g9tm/lynxcontrols/route",
|
|
52286
52359
|
"kind": "function",
|
|
52287
|
-
"signature": "(href: string): G9PageUrl",
|
|
52288
|
-
"summary": "Parses `/c/42?msg=7#top
|
|
52360
|
+
"signature": "(href: string, origin?: string): G9PageUrl",
|
|
52361
|
+
"summary": "Parses `/c/42?msg=7#top` (`origin`: the URL's origin, default `''`)."
|
|
52289
52362
|
},
|
|
52290
52363
|
{
|
|
52291
52364
|
"id": "controls.dashboard.g9PartOfDay",
|
package/catalog/index.md
CHANGED