@ankhorage/navigator 3.3.14 → 3.3.15
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/CHANGELOG.md +15 -0
- package/README.md +25 -125
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ankhorage/navigator
|
|
2
2
|
|
|
3
|
+
## 3.3.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1874118: Keep repository-only Renovate configuration out of published documentation.
|
|
8
|
+
- f7a3aba: Update Ankhorage dependencies: `@ankhorage/paradox`, `@ankhorage/utility`.
|
|
9
|
+
- 71aec34: Update dependencies from Renovate pull request #149.
|
|
10
|
+
- ea4a44e: Update dependencies from Renovate pull request #155.
|
|
11
|
+
- 1e2e2af: Update dependencies from Renovate pull request #157.
|
|
12
|
+
- ab54668: Update dependencies from Renovate pull request #158.
|
|
13
|
+
- b5311c0: Update dependencies from Renovate pull request #160.
|
|
14
|
+
- 30329ae: Update Ankhorage dependencies: `@ankhorage/paradox`, `@ankhorage/utility`.
|
|
15
|
+
- 89a2c1d: Update dependencies from Renovate pull request #163.
|
|
16
|
+
- 831e893: Update the development toolchain to `@ankhorage/devtools` v2.
|
|
17
|
+
|
|
3
18
|
## 3.3.14
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -3,143 +3,43 @@
|
|
|
3
3
|
|
|
4
4
|
# NAVIGATOR
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Standalone manifest-driven Navigator capability for cataloging, validating, planning, generating, and verifying Expo Router navigation.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Configuration
|
|
11
11
|
|
|
12
|
-
###
|
|
13
|
-
|
|
14
|
-
Manifest navigation consumes only an `AppNavigatorManifest`, narrow module bindings, and target
|
|
15
|
-
context. A separate workspace layout consumes runtime destinations from its owning application,
|
|
16
|
-
without persisting that workspace into `AppManifest.navigator`. Neither capability needs the
|
|
17
|
-
complete `AppManifest`, themes, secrets, infrastructure, deployment data, or Studio state.
|
|
18
|
-
`@ankhorage/contracts/navigator` owns structural parsing; Navigator owns semantic target
|
|
19
|
-
validation, capability metadata, planning, generation, and Navigator-specific evidence.
|
|
20
|
-
|
|
21
|
-
The taxonomy stays orthogonal:
|
|
22
|
-
|
|
23
|
-
| Dimension | Examples |
|
|
24
|
-
| --- | --- |
|
|
25
|
-
| Topology | Slot, Stack, Tabs, Drawer, Split View, registered Custom |
|
|
26
|
-
| Implementation | native, JavaScript, headless, experimental |
|
|
27
|
-
| Presentation | bottom, top, rail, sidebar, adaptive, custom, two-column, three-column |
|
|
28
|
-
| Preset | `drawer`, `stack-tabs`, `stack-tabs-stack`, `drawer-tabs-stack` |
|
|
29
|
-
|
|
30
|
-
Tabs are always Tabs; top and bottom are presentations. `drawer` is a complete root preset with
|
|
31
|
-
direct routes. Presets resolve to ordinary recursive manifest input. Navigator has no flow field:
|
|
32
|
-
onboarding, survey, setup, checkout, and authentication are app-owned routes, nested navigators,
|
|
33
|
-
guards, and state. For example, `stack-tabs-stack` can represent a neutral pre-main sequence
|
|
34
|
-
followed by Tabs whose branches own Stacks without encoding application semantics.
|
|
35
|
-
|
|
36
|
-
The programmatic example below returns stable relative files and contents, dependency
|
|
37
|
-
requirements, diagnostics, support, the resolved plan, and capability IDs. It performs no writes.
|
|
38
|
-
To materialize the same contract into an Expo app, save the manifest and bindings as JSON and run:
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
ankh navigator catalog
|
|
42
|
-
ankh navigator validate --manifest navigator.json --bindings navigator.bindings.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION"
|
|
43
|
-
ankh navigator plan --manifest navigator.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION" --json
|
|
44
|
-
ankh navigator generate --manifest navigator.json --bindings navigator.bindings.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION" --target ./my-app
|
|
45
|
-
ankh navigator verify --manifest navigator.json --bindings navigator.bindings.json --platform web --expo-router-version "$EXPO_ROUTER_VERSION"
|
|
46
|
-
bun --cwd ./my-app expo start
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Human-readable output is the default; `--json` emits the stable versioned envelope. Generation
|
|
50
|
-
requires an explicit target. Custom navigator registries are executable consumer modules passed
|
|
51
|
-
with `--custom-navigators`; screen, guard, icon-resolver, and custom Tabs-presentation bindings
|
|
52
|
-
remain narrow JSON module/symbol records.
|
|
53
|
-
|
|
54
|
-
Navigator also publishes a deterministic catalog of 22 standalone applications under the
|
|
55
|
-
repository-root `examples/<stable-example-id>/` directories:
|
|
56
|
-
|
|
57
|
-
`drawer`, `drawer-split-view`, `drawer-stack`, `drawer-tabs`, `drawer-tabs-stack`,
|
|
58
|
-
`drawer-tabs-top`, `registered-custom`, `slot`, `split-view-three-column`,
|
|
59
|
-
`split-view-two-column`, `stack`, `stack-drawer`, `stack-drawer-stack`, `stack-drawer-tabs`,
|
|
60
|
-
`stack-drawer-tabs-stack`, `stack-tabs`, `stack-tabs-stack`, `stack-tabs-top`, `tabs`,
|
|
61
|
-
`tabs-bottom-tabs-top`, `tabs-split-view`, and `tabs-stack`.
|
|
62
|
-
|
|
63
|
-
Generate or compare one app with `--id`, or omit it for the complete catalog:
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
ankh navigator examples generate --target .
|
|
67
|
-
ankh navigator examples verify --target .
|
|
68
|
-
ankh navigator examples generate --id drawer --target .
|
|
69
|
-
ankh navigator examples verify --id drawer --target . --json
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Each example owns its manifest, narrow bindings, package metadata, and lockfile and uses only
|
|
73
|
-
registry dependencies. Repository acceptance extends deterministic CLI verification with fresh
|
|
74
|
-
frozen installs, strict typechecks, the Devtools-managed examples lint configuration, every
|
|
75
|
-
supported or testing-only Expo export target, and browser runtime checks:
|
|
76
|
-
|
|
77
|
-
```sh
|
|
78
|
-
bun run examples:acceptance
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Capability metadata separates `support`, `stability`, and each verification layer. Experimental
|
|
82
|
-
Stack and iOS Split View are testing-only. A non-iOS Slot fallback is explicitly not Split View.
|
|
83
|
-
The checked-in catalog does not turn the existence of a plan into runtime evidence: CI executes
|
|
84
|
-
install, export, and browser acceptance independently. Simulator and physical-device claims stay
|
|
85
|
-
unverified until those native environments record evidence.
|
|
86
|
-
|
|
87
|
-
Studio and future composers read `getNavigatorCatalog()` and `getNavigatorExampleCatalog()`,
|
|
88
|
-
author `manifest.navigator`, and invoke this same lifecycle. They do not own a second capability
|
|
89
|
-
or examples table.
|
|
90
|
-
|
|
91
|
-
Source: `docs/readme-usage.ts`
|
|
12
|
+
### Example
|
|
92
13
|
|
|
93
14
|
```ts
|
|
94
|
-
import
|
|
95
|
-
AppNavigatorManifest,
|
|
96
|
-
NavigatorGenerationBindings,
|
|
97
|
-
} from '@ankhorage/contracts/navigator';
|
|
98
|
-
import expoRouterPackage from 'expo-router/package.json';
|
|
15
|
+
import { defineParadoxConfig } from '@ankhorage/paradox';
|
|
99
16
|
|
|
100
|
-
import
|
|
101
|
-
createNavigatorPlan,
|
|
102
|
-
generateNavigator,
|
|
103
|
-
getNavigatorCatalog,
|
|
104
|
-
getNavigatorExampleCatalog,
|
|
105
|
-
validateNavigator,
|
|
106
|
-
verifyNavigator,
|
|
107
|
-
} from '@ankhorage/navigator';
|
|
17
|
+
import packageJson from './package.json';
|
|
108
18
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
initialRouteName: 'index',
|
|
112
|
-
routes: [
|
|
113
|
-
{ name: 'index', label: 'Home', screenId: 'home' },
|
|
114
|
-
{ name: 'settings', label: 'Settings', screenId: 'settings' },
|
|
115
|
-
],
|
|
116
|
-
} as const satisfies AppNavigatorManifest;
|
|
19
|
+
export default defineParadoxConfig({
|
|
20
|
+
mode: 'write',
|
|
117
21
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
22
|
+
docs: {
|
|
23
|
+
title: 'NAVIGATOR',
|
|
24
|
+
description:
|
|
25
|
+
'Standalone manifest-driven Navigator capability for cataloging, validating, planning, generating, and verifying Expo Router navigation.',
|
|
26
|
+
usage: {
|
|
27
|
+
entrypoints: ['docs/readme-usage.ts'],
|
|
28
|
+
},
|
|
122
29
|
},
|
|
123
|
-
guards: {},
|
|
124
|
-
} as const satisfies NavigatorGenerationBindings;
|
|
125
|
-
|
|
126
|
-
const target = {
|
|
127
|
-
platform: 'web',
|
|
128
|
-
expoRouterVersion: expoRouterPackage.version,
|
|
129
|
-
} as const;
|
|
130
30
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
31
|
+
package: {
|
|
32
|
+
root: '.',
|
|
33
|
+
entrypoints: Object.values(packageJson.exports).flatMap((entry) =>
|
|
34
|
+
typeof entry === 'string'
|
|
35
|
+
? []
|
|
36
|
+
: [entry.default.replace('./dist/', 'src/').replace(/\.js$/u, '.ts')],
|
|
37
|
+
),
|
|
38
|
+
},
|
|
135
39
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
diagnostics,
|
|
140
|
-
plan,
|
|
141
|
-
generation,
|
|
142
|
-
verification,
|
|
40
|
+
output: {
|
|
41
|
+
dir: './paradox',
|
|
42
|
+
},
|
|
143
43
|
});
|
|
144
44
|
```
|
|
145
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/navigator",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.15",
|
|
4
4
|
"description": "Standalone manifest-driven navigator capability for Expo Router across React Native and React Native Web.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"@ankhorage/contracts": "^22.8.2",
|
|
105
|
-
"@ankhorage/utility": "^1.
|
|
105
|
+
"@ankhorage/utility": "^1.9.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@ankhorage/surface": "^9.1.7",
|
|
109
|
-
"@react-native-vector-icons/fontawesome": "^13.1.
|
|
109
|
+
"@react-native-vector-icons/fontawesome": "^13.1.4",
|
|
110
110
|
"@react-native-vector-icons/fontawesome5": "^13.1.3",
|
|
111
111
|
"@react-native-vector-icons/fontawesome6": "^13.1.3",
|
|
112
112
|
"@react-native-vector-icons/ionicons": "^13.1.3",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"react-native-reanimated": "*",
|
|
121
121
|
"react-native-safe-area-context": "~5.7.0",
|
|
122
122
|
"react-native-tab-view": "^4.3.2",
|
|
123
|
-
"react-native-web": "~0.21.
|
|
123
|
+
"react-native-web": "~0.21.3",
|
|
124
124
|
"react-native-worklets": "*"
|
|
125
125
|
},
|
|
126
126
|
"peerDependenciesMeta": {
|
|
@@ -142,16 +142,16 @@
|
|
|
142
142
|
},
|
|
143
143
|
"devDependencies": {
|
|
144
144
|
"@ankhorage/ankh": "^0.10.4",
|
|
145
|
-
"@ankhorage/devtools": "^
|
|
146
|
-
"@ankhorage/paradox": "^0.
|
|
145
|
+
"@ankhorage/devtools": "^2.0.0",
|
|
146
|
+
"@ankhorage/paradox": "^0.2.8",
|
|
147
147
|
"@ankhorage/surface": "^9.1.7",
|
|
148
148
|
"@playwright/test": "^1.63.0",
|
|
149
|
-
"@react-native-vector-icons/fontawesome": "^13.1.
|
|
149
|
+
"@react-native-vector-icons/fontawesome": "^13.1.4",
|
|
150
150
|
"@react-native-vector-icons/fontawesome5": "^13.1.3",
|
|
151
151
|
"@react-native-vector-icons/fontawesome6": "^13.1.3",
|
|
152
152
|
"@react-native-vector-icons/ionicons": "^13.1.3",
|
|
153
153
|
"@react-native-vector-icons/material-design-icons": "^13.1.3",
|
|
154
|
-
"@types/bun": "^1.4.
|
|
154
|
+
"@types/bun": "^1.4.2",
|
|
155
155
|
"@types/node": "^24.13.3",
|
|
156
156
|
"@types/react": "^19.2.18",
|
|
157
157
|
"expo": "^57.0.20",
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
"react": "19.2.3",
|
|
160
160
|
"react-dom": "19.2.3",
|
|
161
161
|
"react-native": "0.86.3",
|
|
162
|
-
"react-native-gesture-handler": "^3.
|
|
162
|
+
"react-native-gesture-handler": "^3.3.0",
|
|
163
163
|
"react-native-pager-view": "8.0.2",
|
|
164
|
-
"react-native-reanimated": "^4.
|
|
164
|
+
"react-native-reanimated": "^4.7.0",
|
|
165
165
|
"react-native-safe-area-context": "~5.7.0",
|
|
166
166
|
"react-native-tab-view": "^4.3.2",
|
|
167
|
-
"react-native-web": "~0.21.
|
|
167
|
+
"react-native-web": "~0.21.3",
|
|
168
168
|
"react-native-worklets": "^0.12.1",
|
|
169
169
|
"typescript": "~6.0.3"
|
|
170
170
|
},
|