@react-navigation/native 8.0.0-alpha.28 → 8.0.0-alpha.29
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/ios/ReactNavigationSFSymbolView.mm +22 -9
- package/ios/ReactNavigationSFSymbolView.swift +351 -65
- package/lib/module/__stubs__/createStackNavigator.js +9 -1
- package/lib/module/__stubs__/createStackNavigator.js.map +1 -1
- package/lib/module/__stubs__/window.js +3 -0
- package/lib/module/__stubs__/window.js.map +1 -1
- package/lib/module/createMemoryHistory.js +7 -3
- package/lib/module/createMemoryHistory.js.map +1 -1
- package/lib/module/createStandardNavigationFactories.js +99 -0
- package/lib/module/createStandardNavigationFactories.js.map +1 -0
- package/lib/module/extractPathFromURL.js +1 -1
- package/lib/module/extractPathFromURL.js.map +1 -1
- package/lib/module/getStateFromHref.js +2 -2
- package/lib/module/getStateFromHref.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/native/SFSymbol.ios.js +35 -14
- package/lib/module/native/SFSymbol.ios.js.map +1 -1
- package/lib/module/native/SFSymbolViewNativeComponent.ts +22 -9
- package/lib/module/useLinkBuilder.js +4 -3
- package/lib/module/useLinkBuilder.js.map +1 -1
- package/lib/module/useLinking.js +11 -2
- package/lib/module/useLinking.js.map +1 -1
- package/lib/module/useLinking.native.js +5 -5
- package/lib/module/useLinking.native.js.map +1 -1
- package/lib/module/useMemoArray.js +25 -0
- package/lib/module/useMemoArray.js.map +1 -0
- package/lib/module/useScrollToTop.js +2 -1
- package/lib/module/useScrollToTop.js.map +1 -1
- package/lib/typescript/src/Link.d.ts +1 -1
- package/lib/typescript/src/Link.d.ts.map +1 -1
- package/lib/typescript/src/LinkingContext.d.ts +1 -1
- package/lib/typescript/src/LinkingContext.d.ts.map +1 -1
- package/lib/typescript/src/LocaleDirContext.d.ts +1 -1
- package/lib/typescript/src/LocaleDirContext.d.ts.map +1 -1
- package/lib/typescript/src/NavigationContainer.d.ts +2 -2
- package/lib/typescript/src/NavigationContainer.d.ts.map +1 -1
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts +1 -1
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +1 -1
- package/lib/typescript/src/__stubs__/window.d.ts.map +1 -1
- package/lib/typescript/src/createMemoryHistory.d.ts +1 -1
- package/lib/typescript/src/createMemoryHistory.d.ts.map +1 -1
- package/lib/typescript/src/createStandardNavigationFactories.d.ts +31 -0
- package/lib/typescript/src/createStandardNavigationFactories.d.ts.map +1 -0
- package/lib/typescript/src/createStaticNavigation.d.ts +3 -3
- package/lib/typescript/src/createStaticNavigation.d.ts.map +1 -1
- package/lib/typescript/src/extractPathFromURL.d.ts +1 -1
- package/lib/typescript/src/extractPathFromURL.d.ts.map +1 -1
- package/lib/typescript/src/getStateFromHref.d.ts +3 -3
- package/lib/typescript/src/getStateFromHref.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +15 -14
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/native/CornerInset.d.ts +1 -1
- package/lib/typescript/src/native/CornerInset.d.ts.map +1 -1
- package/lib/typescript/src/native/CornerInset.ios.d.ts +2 -2
- package/lib/typescript/src/native/CornerInset.ios.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts +1 -1
- package/lib/typescript/src/native/MaterialSymbol.android.d.ts.map +1 -1
- package/lib/typescript/src/native/MaterialSymbol.d.ts +1 -1
- package/lib/typescript/src/native/MaterialSymbol.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbol.d.ts +1 -1
- package/lib/typescript/src/native/SFSymbol.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbol.ios.d.ts +2 -2
- package/lib/typescript/src/native/SFSymbol.ios.d.ts.map +1 -1
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts +22 -9
- package/lib/typescript/src/native/SFSymbolViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/native/types.d.ts +227 -31
- package/lib/typescript/src/native/types.d.ts.map +1 -1
- package/lib/typescript/src/server/index.d.ts +1 -1
- package/lib/typescript/src/server/index.d.ts.map +1 -1
- package/lib/typescript/src/theming/MaterialTheme.d.ts +1 -1
- package/lib/typescript/src/theming/MaterialTheme.d.ts.map +1 -1
- package/lib/typescript/src/useDocumentTitle.d.ts +1 -1
- package/lib/typescript/src/useDocumentTitle.d.ts.map +1 -1
- package/lib/typescript/src/useLinkBuilder.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.d.ts +6 -6
- package/lib/typescript/src/useLinking.d.ts.map +1 -1
- package/lib/typescript/src/useLinking.native.d.ts +10 -10
- package/lib/typescript/src/useLinking.native.d.ts.map +1 -1
- package/lib/typescript/src/useLocale.d.ts +1 -1
- package/lib/typescript/src/useMemoArray.d.ts +2 -0
- package/lib/typescript/src/useMemoArray.d.ts.map +1 -0
- package/lib/typescript/src/useScrollToTop.d.ts.map +1 -1
- package/package.json +13 -12
- package/src/__stubs__/createStackNavigator.tsx +13 -5
- package/src/__stubs__/window.tsx +5 -0
- package/src/createMemoryHistory.tsx +10 -3
- package/src/createStandardNavigationFactories.tsx +218 -0
- package/src/extractPathFromURL.tsx +1 -1
- package/src/getStateFromHref.tsx +8 -3
- package/src/index.tsx +4 -0
- package/src/native/SFSymbol.ios.tsx +73 -14
- package/src/native/SFSymbolViewNativeComponent.ts +22 -9
- package/src/native/types.tsx +278 -32
- package/src/useLinkBuilder.tsx +4 -2
- package/src/useLinking.native.tsx +17 -10
- package/src/useLinking.tsx +19 -2
- package/src/useMemoArray.tsx +41 -0
- package/src/useScrollToTop.tsx +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ColorValue } from 'react-native';
|
|
2
|
-
import type { FONT_WEIGHTS } from './constants';
|
|
3
|
-
import type { MaterialSymbolName } from './MaterialSymbolData';
|
|
2
|
+
import type { FONT_WEIGHTS } from './constants.js';
|
|
3
|
+
import type { MaterialSymbolName } from './MaterialSymbolData.js';
|
|
4
4
|
export type MaterialSymbolOptions = {
|
|
5
5
|
/**
|
|
6
6
|
* The name of the Material Symbol to display.
|
|
@@ -67,58 +67,211 @@ export type MaterialSymbolOptions = {
|
|
|
67
67
|
*/
|
|
68
68
|
color?: ColorValue | undefined;
|
|
69
69
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export type
|
|
73
|
-
export type
|
|
70
|
+
type SFSymbolScale = 'small' | 'medium' | 'large';
|
|
71
|
+
type SFSymbolRenderingMode = 'monochrome' | 'hierarchical' | 'palette' | 'multicolor';
|
|
72
|
+
export type SFSymbolEffectName = 'bounce' | 'pulse' | 'appear' | 'disappear' | 'variableColor' | 'scale' | 'breathe' | 'wiggle' | 'rotate' | 'drawOn' | 'drawOff';
|
|
73
|
+
export type SFSymbolContentTransitionEffect = 'automatic' | 'replace';
|
|
74
|
+
export type SFSymbolEffectRepeat = 'continuous' | 'nonRepeating' | {
|
|
74
75
|
/**
|
|
75
|
-
*
|
|
76
|
+
* Number of times to repeat the effect.
|
|
76
77
|
*/
|
|
77
|
-
|
|
78
|
+
count?: number | undefined;
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
repeating?: boolean | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* Number of times to repeat the animation.
|
|
86
|
-
* Ignored if `repeating` is `true`.
|
|
80
|
+
* Delay in seconds between repeated effect cycles.
|
|
87
81
|
*/
|
|
88
|
-
|
|
82
|
+
delay?: number | undefined;
|
|
83
|
+
};
|
|
84
|
+
export type SFSymbolEffectScope = 'byLayer' | 'wholeSymbol' | 'individually';
|
|
85
|
+
export type SFSymbolEffectDirection = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward' | 'clockwise' | 'counterClockwise';
|
|
86
|
+
export type SFSymbolBreatheVariant = 'plain' | 'pulse';
|
|
87
|
+
export type SFSymbolDrawDirection = 'reversed' | 'nonReversed';
|
|
88
|
+
export type SFSymbolInactiveLayers = 'hide' | 'dim';
|
|
89
|
+
type SFSymbolEffectBaseConfig = {
|
|
89
90
|
/**
|
|
90
|
-
* Speed multiplier for the
|
|
91
|
+
* Speed multiplier for the effect.
|
|
91
92
|
*
|
|
92
93
|
* @default 1
|
|
93
94
|
*/
|
|
94
95
|
speed?: number | undefined;
|
|
95
96
|
/**
|
|
96
|
-
*
|
|
97
|
+
* Repeat behavior for the effect. Use an object for periodic repeats.
|
|
98
|
+
*/
|
|
99
|
+
repeat?: SFSymbolEffectRepeat | undefined;
|
|
100
|
+
};
|
|
101
|
+
type SFSymbolScopedEffectConfig = SFSymbolEffectBaseConfig & {
|
|
102
|
+
/**
|
|
103
|
+
* Whether to animate the whole symbol at once or by layer.
|
|
97
104
|
*
|
|
98
|
-
* @default
|
|
105
|
+
* @default 'byLayer'
|
|
106
|
+
*/
|
|
107
|
+
scope?: Extract<SFSymbolEffectScope, 'byLayer' | 'wholeSymbol'> | undefined;
|
|
108
|
+
};
|
|
109
|
+
type SFSymbolDirectionalEffectName = 'bounce' | 'appear' | 'disappear';
|
|
110
|
+
type SFSymbolDirectionalEffectConfig = SFSymbolScopedEffectConfig & {
|
|
111
|
+
/**
|
|
112
|
+
* The symbol effect to apply.
|
|
99
113
|
*/
|
|
100
|
-
|
|
114
|
+
type: SFSymbolDirectionalEffectName;
|
|
101
115
|
/**
|
|
102
|
-
*
|
|
103
|
-
* Applicable to `bounce` and `wiggle`.
|
|
116
|
+
* The direction the symbol moves during the effect.
|
|
104
117
|
*/
|
|
105
118
|
direction?: 'up' | 'down' | undefined;
|
|
119
|
+
};
|
|
120
|
+
type SFSymbolScaleEffectConfig = SFSymbolScopedEffectConfig & {
|
|
121
|
+
/**
|
|
122
|
+
* The symbol effect to apply.
|
|
123
|
+
*/
|
|
124
|
+
type: 'scale';
|
|
125
|
+
/**
|
|
126
|
+
* Whether the symbol scales up or down.
|
|
127
|
+
*/
|
|
128
|
+
direction?: 'up' | 'down' | undefined;
|
|
129
|
+
};
|
|
130
|
+
type SFSymbolBasicScopedEffectConfig = SFSymbolScopedEffectConfig & {
|
|
131
|
+
/**
|
|
132
|
+
* The symbol effect to apply.
|
|
133
|
+
*/
|
|
134
|
+
type: 'pulse';
|
|
135
|
+
};
|
|
136
|
+
type SFSymbolBreatheEffectConfig = SFSymbolScopedEffectConfig & {
|
|
137
|
+
/**
|
|
138
|
+
* The symbol effect to apply.
|
|
139
|
+
*/
|
|
140
|
+
type: 'breathe';
|
|
141
|
+
/**
|
|
142
|
+
* The breathe effect variant.
|
|
143
|
+
*/
|
|
144
|
+
variant?: SFSymbolBreatheVariant | undefined;
|
|
145
|
+
};
|
|
146
|
+
type SFSymbolWiggleEffectConfig = SFSymbolScopedEffectConfig & {
|
|
147
|
+
/**
|
|
148
|
+
* The symbol effect to apply.
|
|
149
|
+
*/
|
|
150
|
+
type: 'wiggle';
|
|
151
|
+
/**
|
|
152
|
+
* The direction the symbol wiggles toward.
|
|
153
|
+
*/
|
|
154
|
+
direction?: SFSymbolEffectDirection | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* A custom wiggle angle in degrees. Overrides `direction` when set.
|
|
157
|
+
*/
|
|
158
|
+
angle?: number | undefined;
|
|
159
|
+
};
|
|
160
|
+
type SFSymbolRotateEffectConfig = SFSymbolScopedEffectConfig & {
|
|
161
|
+
/**
|
|
162
|
+
* The symbol effect to apply.
|
|
163
|
+
*/
|
|
164
|
+
type: 'rotate';
|
|
165
|
+
/**
|
|
166
|
+
* Which way the symbol rotates.
|
|
167
|
+
*/
|
|
168
|
+
direction?: 'clockwise' | 'counterClockwise' | undefined;
|
|
169
|
+
};
|
|
170
|
+
type SFSymbolDrawEffectConfig = SFSymbolEffectBaseConfig & {
|
|
171
|
+
/**
|
|
172
|
+
* The symbol effect to apply.
|
|
173
|
+
*/
|
|
174
|
+
type: 'drawOn';
|
|
175
|
+
/**
|
|
176
|
+
* Whether to animate the whole symbol at once, by layer, or individually.
|
|
177
|
+
*
|
|
178
|
+
* @default 'byLayer'
|
|
179
|
+
*/
|
|
180
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
181
|
+
};
|
|
182
|
+
type SFSymbolDrawOffEffectConfig = SFSymbolEffectBaseConfig & {
|
|
183
|
+
/**
|
|
184
|
+
* The symbol effect to apply.
|
|
185
|
+
*/
|
|
186
|
+
type: 'drawOff';
|
|
187
|
+
/**
|
|
188
|
+
* Whether to animate the whole symbol at once, by layer, or individually.
|
|
189
|
+
*
|
|
190
|
+
* @default 'byLayer'
|
|
191
|
+
*/
|
|
192
|
+
scope?: SFSymbolEffectScope | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Whether the draw-off animation follows the symbol's authored draw
|
|
195
|
+
* order or plays it in reverse.
|
|
196
|
+
* - `nonReversed`: follows the symbol's draw order.
|
|
197
|
+
* - `reversed`: plays it in reverse.
|
|
198
|
+
*/
|
|
199
|
+
drawDirection?: SFSymbolDrawDirection | undefined;
|
|
200
|
+
};
|
|
201
|
+
type SFSymbolVariableColorEffectConfig = SFSymbolEffectBaseConfig & {
|
|
202
|
+
/**
|
|
203
|
+
* The symbol effect to apply.
|
|
204
|
+
*/
|
|
205
|
+
type: 'variableColor';
|
|
106
206
|
/**
|
|
107
207
|
* Whether the variable color effect reverses with each cycle.
|
|
108
|
-
* Only applicable to `variableColor`.
|
|
109
208
|
*
|
|
110
209
|
* @default false
|
|
111
210
|
*/
|
|
112
211
|
reversing?: boolean | undefined;
|
|
113
212
|
/**
|
|
114
|
-
* Whether
|
|
115
|
-
*
|
|
213
|
+
* Whether layers light up cumulatively and stay active through the
|
|
214
|
+
* cycle, rather than one at a time.
|
|
116
215
|
*
|
|
117
216
|
* @default false
|
|
118
217
|
*/
|
|
119
218
|
cumulative?: boolean | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* How layers that aren't currently active are displayed.
|
|
221
|
+
* - `hide`: inactive layers are invisible.
|
|
222
|
+
* - `dim`: inactive layers stay visible but faded.
|
|
223
|
+
*
|
|
224
|
+
* Defaults to the symbol's standard appearance when unset.
|
|
225
|
+
*/
|
|
226
|
+
inactiveLayers?: SFSymbolInactiveLayers | undefined;
|
|
227
|
+
};
|
|
228
|
+
type SFSymbolEffectConfig = SFSymbolDirectionalEffectConfig | SFSymbolScaleEffectConfig | SFSymbolBasicScopedEffectConfig | SFSymbolBreatheEffectConfig | SFSymbolWiggleEffectConfig | SFSymbolRotateEffectConfig | SFSymbolDrawEffectConfig | SFSymbolDrawOffEffectConfig | SFSymbolVariableColorEffectConfig;
|
|
229
|
+
export type SFSymbolContentTransitionScope = 'byLayer' | 'wholeSymbol';
|
|
230
|
+
export type SFSymbolReplaceTransitionVariant = 'downUp' | 'upUp' | 'offUp';
|
|
231
|
+
type SFSymbolContentTransitionBaseConfig = {
|
|
232
|
+
/**
|
|
233
|
+
* Speed multiplier for the transition.
|
|
234
|
+
*
|
|
235
|
+
* @default 1
|
|
236
|
+
*/
|
|
237
|
+
speed?: number | undefined;
|
|
120
238
|
};
|
|
121
|
-
|
|
239
|
+
type SFSymbolContentTransitionConfig = (SFSymbolContentTransitionBaseConfig & {
|
|
240
|
+
/**
|
|
241
|
+
* The transition effect to apply when the symbol `name` or `variableValue` changes.
|
|
242
|
+
*/
|
|
243
|
+
type: 'automatic';
|
|
244
|
+
}) | (SFSymbolContentTransitionBaseConfig & {
|
|
245
|
+
/**
|
|
246
|
+
* The transition effect to apply when the symbol `name` or `variableValue` changes.
|
|
247
|
+
*/
|
|
248
|
+
type: 'replace';
|
|
249
|
+
/**
|
|
250
|
+
* The direction the outgoing and incoming symbols move.
|
|
251
|
+
* - `downUp`: the old symbol slides down, the new one comes up.
|
|
252
|
+
* - `upUp`: both the old and new symbols move up.
|
|
253
|
+
* - `offUp`: the old symbol fades in place, the new one comes up.
|
|
254
|
+
*/
|
|
255
|
+
variant?: SFSymbolReplaceTransitionVariant | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* Whether to transition the whole symbol at once or by layer.
|
|
258
|
+
*
|
|
259
|
+
* @default 'byLayer'
|
|
260
|
+
*/
|
|
261
|
+
scope?: SFSymbolContentTransitionScope | undefined;
|
|
262
|
+
/**
|
|
263
|
+
* Whether to prefer Magic Replace when possible.
|
|
264
|
+
*
|
|
265
|
+
* Falls back to regular Replace on iOS 17.
|
|
266
|
+
*
|
|
267
|
+
* @default false
|
|
268
|
+
*/
|
|
269
|
+
magic?: boolean | undefined;
|
|
270
|
+
});
|
|
271
|
+
type SFSymbolEffect = SFSymbolEffectName | SFSymbolEffectConfig;
|
|
272
|
+
type SFSymbolContentTransition = SFSymbolContentTransitionEffect | SFSymbolContentTransitionConfig;
|
|
273
|
+
type SFSymbolVariableValueMode = 'automatic' | 'color' | 'draw';
|
|
274
|
+
type SFSymbolColorRenderingMode = 'automatic' | 'flat' | 'gradient';
|
|
122
275
|
export type SFSymbolOptions = {
|
|
123
276
|
/**
|
|
124
277
|
* The name of the SF Symbol to display.
|
|
@@ -126,6 +279,7 @@ export type SFSymbolOptions = {
|
|
|
126
279
|
name: import('sf-symbols-typescript').SFSymbol;
|
|
127
280
|
/**
|
|
128
281
|
* The size of the symbol.
|
|
282
|
+
*
|
|
129
283
|
* @default 24
|
|
130
284
|
*/
|
|
131
285
|
size?: number | undefined;
|
|
@@ -144,11 +298,33 @@ export type SFSymbolOptions = {
|
|
|
144
298
|
*/
|
|
145
299
|
weight?: keyof typeof FONT_WEIGHTS | (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS] | undefined;
|
|
146
300
|
/**
|
|
147
|
-
* The scale
|
|
301
|
+
* The symbol's scale variant (`small`, `medium`, or `large`).
|
|
148
302
|
*
|
|
149
303
|
* @default 'medium'
|
|
150
304
|
*/
|
|
151
305
|
scale?: SFSymbolScale | undefined;
|
|
306
|
+
/**
|
|
307
|
+
* The value used to customize variable symbols.
|
|
308
|
+
* Must be between `0` and `1`.
|
|
309
|
+
*
|
|
310
|
+
* Variable symbols (e.g. `wifi`, `speaker.wave.3`) have layers that
|
|
311
|
+
* activate progressively to represent a magnitude. This controls how
|
|
312
|
+
* many are shown: `0` renders the fewest, `1` the full symbol.
|
|
313
|
+
*
|
|
314
|
+
* Has no effect on symbols that aren't variable.
|
|
315
|
+
*/
|
|
316
|
+
variableValue?: number | undefined;
|
|
317
|
+
/**
|
|
318
|
+
* How the partial state from `variableValue` is rendered.
|
|
319
|
+
* - `automatic`: the system chooses based on the symbol.
|
|
320
|
+
* - `color`: fades inactive layers using opacity.
|
|
321
|
+
* - `draw`: partially draws layers instead of fading them.
|
|
322
|
+
*
|
|
323
|
+
* Requires iOS 26+. Ignored on earlier versions.
|
|
324
|
+
*
|
|
325
|
+
* @default 'automatic'
|
|
326
|
+
*/
|
|
327
|
+
variableValueMode?: SFSymbolVariableValueMode | undefined;
|
|
152
328
|
/**
|
|
153
329
|
* The rendering mode of the symbol.
|
|
154
330
|
* - `monochrome`: Single color tint (default).
|
|
@@ -158,7 +334,7 @@ export type SFSymbolOptions = {
|
|
|
158
334
|
*
|
|
159
335
|
* @default 'monochrome'
|
|
160
336
|
*/
|
|
161
|
-
|
|
337
|
+
renderingMode?: SFSymbolRenderingMode | undefined;
|
|
162
338
|
/**
|
|
163
339
|
* The colors for non-monochrome rendering modes.
|
|
164
340
|
* - `hierarchical`: uses `primary` as the base color.
|
|
@@ -173,9 +349,29 @@ export type SFSymbolOptions = {
|
|
|
173
349
|
tertiary?: ColorValue | undefined;
|
|
174
350
|
} | undefined;
|
|
175
351
|
/**
|
|
176
|
-
*
|
|
352
|
+
* How color is applied across the symbol's layers.
|
|
353
|
+
* - `automatic`: the system chooses based on the symbol.
|
|
354
|
+
* - `flat`: a solid color per layer.
|
|
355
|
+
* - `gradient`: a gradient derived from each layer's color.
|
|
356
|
+
*
|
|
357
|
+
* Requires iOS 26+. Ignored on earlier versions.
|
|
358
|
+
*
|
|
359
|
+
* @default 'automatic'
|
|
360
|
+
*/
|
|
361
|
+
colorRenderingMode?: SFSymbolColorRenderingMode | undefined;
|
|
362
|
+
/**
|
|
363
|
+
* The effect to apply to the symbol.
|
|
364
|
+
*
|
|
365
|
+
* Requires iOS 17+. Effects introduced in later iOS versions are ignored
|
|
366
|
+
* on earlier versions.
|
|
367
|
+
*/
|
|
368
|
+
effect?: SFSymbolEffect | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* The content transition to apply when the symbol `name` or `variableValue` changes.
|
|
371
|
+
*
|
|
177
372
|
* Requires iOS 17+. Ignored on earlier versions.
|
|
178
373
|
*/
|
|
179
|
-
|
|
374
|
+
contentTransition?: SFSymbolContentTransition | undefined;
|
|
180
375
|
};
|
|
376
|
+
export {};
|
|
181
377
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/native/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/native/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAa,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACvD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,EACH,MAAM,GACN,YAAY,GACZ,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GA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,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;KACnC,GACD,SAAS,CAAC;IACd;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IAC5D;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CAC3D,CAAC"}
|
|
@@ -6,5 +6,5 @@ export type ServerContainerProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Provider for request-scoped server navigation state.
|
|
8
8
|
*/
|
|
9
|
-
export declare function ServerContainer({ location, children }: ServerContainerProps):
|
|
9
|
+
export declare function ServerContainer({ location, children }: ServerContainerProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,oBAAoB,qBAM3E"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { MaterialDarkFallbackTheme as MaterialDarkTheme, MaterialLightFallbackTheme as MaterialLightTheme, } from './MaterialFallbackTheme';
|
|
1
|
+
export { MaterialDarkFallbackTheme as MaterialDarkTheme, MaterialLightFallbackTheme as MaterialLightTheme, } from './MaterialFallbackTheme.js';
|
|
2
2
|
//# sourceMappingURL=MaterialTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,IAAI,iBAAiB,EAC9C,0BAA0B,IAAI,kBAAkB,GACjD,MAAM,
|
|
1
|
+
{"version":3,"file":"MaterialTheme.d.ts","sourceRoot":"","sources":["../../../../src/theming/MaterialTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,IAAI,iBAAiB,EAC9C,0BAA0B,IAAI,kBAAkB,GACjD,MAAM,4BAAyB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { DocumentTitleOptions } from './types';
|
|
3
|
+
import type { DocumentTitleOptions } from './types.js';
|
|
4
4
|
/**
|
|
5
5
|
* Set the document title for the active screen
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../src/useDocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../src/useDocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAS,CAAC;AAEpD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,SAAS,aAAa,EAC9D,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAC9D,EACE,OAAc,EACd,SAA6D,GAC9D,GAAE,oBAAyB,QAwB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinkBuilder.d.ts","sourceRoot":"","sources":["../../../src/useLinkBuilder.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLinkBuilder.d.ts","sourceRoot":"","sources":["../../../src/useLinkBuilder.tsx"],"names":[],"mappings":"AAyBA;;GAEG;AACH,wBAAgB,YAAY,WAWjB,MAAM,WAAW,MAAM,wBAmEjC;AAED;;GAEG;AACH,wBAAgB,cAAc,WAQnB,MAAM;;;;;;;;;;;;;;;;;;;;;;;cApGX,CAAA;YACA,CAAA;aACF,CAAF;WAKc,CAAC;;;;;;;cAUH,CAAC;;;;;;;cAIuB,CAAC;;;;;;;cASjC,CAFD;;;;;;;;cAIK,CAAT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFA;AAED;;;;GAIG;AACH,wBAAgB,cAAc;sBAxGnB,MAAM,WAAW,MAAM;wBAgFvB,MAAM;;;;;;;;;;;;;;;;;;;;;;;kBApGX,CAAA;gBACA,CAAA;iBACF,CAAF;eAKc,CAAC;;;;;;;kBAUH,CAAC;;;;;;;kBAIuB,CAAC;;;;;;;kBASjC,CAFD;;;;;;;;kBAIK,CAAT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoGA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type NavigationContainerRef, type ParamListBase } from '@react-navigation/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { LinkingOptions } from './types';
|
|
4
|
-
import type { Thenable } from './useThenable';
|
|
3
|
+
import type { LinkingOptions } from './types.js';
|
|
4
|
+
import type { Thenable } from './useThenable.js';
|
|
5
5
|
/**
|
|
6
6
|
* Run async function in series as it's called.
|
|
7
7
|
*/
|
|
@@ -25,9 +25,9 @@ export declare function useLinking<ParamList extends ParamListBase>(ref: React.R
|
|
|
25
25
|
type: "params";
|
|
26
26
|
params: object;
|
|
27
27
|
}[] | undefined;
|
|
28
|
-
} &
|
|
28
|
+
} & {
|
|
29
29
|
params?: Readonly<object | undefined>;
|
|
30
|
-
}
|
|
30
|
+
}>>[];
|
|
31
31
|
}> & {
|
|
32
32
|
state?: (Partial<Omit<Readonly<{
|
|
33
33
|
key: string;
|
|
@@ -47,9 +47,9 @@ export declare function useLinking<ParamList extends ParamListBase>(ref: React.R
|
|
|
47
47
|
type: "params";
|
|
48
48
|
params: object;
|
|
49
49
|
}[] | undefined;
|
|
50
|
-
} &
|
|
50
|
+
} & {
|
|
51
51
|
params?: Readonly<object | undefined>;
|
|
52
|
-
}
|
|
52
|
+
}>>[];
|
|
53
53
|
}> & /*elided*/ any) | undefined;
|
|
54
54
|
}) | undefined>;
|
|
55
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinking.d.ts","sourceRoot":"","sources":["../../../src/useLinking.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useLinking.d.ts","sourceRoot":"","sources":["../../../src/useLinking.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAe,CAAC;AA+G9C;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,IAAI,MAAM,OAAO,CAAC,IAAI,CAAC,eAO7C,CAAC;AAIF,wBAAgB,UAAU,CAAC,SAAS,SAAS,aAAa,EACxD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAC9D,EACE,OAAc,EACd,MAAM,EACN,gBAA0C,EAC1C,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,cAAc,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4Y7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type NavigationContainerRef, type ParamListBase } from '@react-navigation/core';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { LinkingOptions } from './types';
|
|
4
|
-
import type { Thenable } from './useThenable';
|
|
3
|
+
import type { LinkingOptions } from './types.js';
|
|
4
|
+
import type { Thenable } from './useThenable.js';
|
|
5
5
|
export declare function useLinking<ParamList extends ParamListBase>(ref: React.RefObject<NavigationContainerRef<ParamList> | null>, { enabled, prefixes, filter, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: LinkingOptions<ParamListBase>): {
|
|
6
6
|
getInitialState: () => Thenable<(Partial<Omit<Readonly<{
|
|
7
7
|
key: string;
|
|
@@ -21,9 +21,9 @@ export declare function useLinking<ParamList extends ParamListBase>(ref: React.R
|
|
|
21
21
|
type: "params";
|
|
22
22
|
params: object;
|
|
23
23
|
}[] | undefined;
|
|
24
|
-
} &
|
|
24
|
+
} & {
|
|
25
25
|
params?: Readonly<object | undefined>;
|
|
26
|
-
}
|
|
26
|
+
}>>[];
|
|
27
27
|
}> & {
|
|
28
28
|
state?: (Partial<Omit<Readonly<{
|
|
29
29
|
key: string;
|
|
@@ -43,9 +43,9 @@ export declare function useLinking<ParamList extends ParamListBase>(ref: React.R
|
|
|
43
43
|
type: "params";
|
|
44
44
|
params: object;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
} &
|
|
46
|
+
} & {
|
|
47
47
|
params?: Readonly<object | undefined>;
|
|
48
|
-
}
|
|
48
|
+
}>>[];
|
|
49
49
|
}> & /*elided*/ any) | undefined;
|
|
50
50
|
}) | undefined> | Promise<(Partial<Omit<Readonly<{
|
|
51
51
|
key: string;
|
|
@@ -65,9 +65,9 @@ export declare function useLinking<ParamList extends ParamListBase>(ref: React.R
|
|
|
65
65
|
type: "params";
|
|
66
66
|
params: object;
|
|
67
67
|
}[] | undefined;
|
|
68
|
-
} &
|
|
68
|
+
} & {
|
|
69
69
|
params?: Readonly<object | undefined>;
|
|
70
|
-
}
|
|
70
|
+
}>>[];
|
|
71
71
|
}> & {
|
|
72
72
|
state?: (Partial<Omit<Readonly<{
|
|
73
73
|
key: string;
|
|
@@ -87,9 +87,9 @@ export declare function useLinking<ParamList extends ParamListBase>(ref: React.R
|
|
|
87
87
|
type: "params";
|
|
88
88
|
params: object;
|
|
89
89
|
}[] | undefined;
|
|
90
|
-
} &
|
|
90
|
+
} & {
|
|
91
91
|
params?: Readonly<object | undefined>;
|
|
92
|
-
}
|
|
92
|
+
}>>[];
|
|
93
93
|
}> & /*elided*/ any) | undefined;
|
|
94
94
|
}) | undefined>;
|
|
95
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../../src/useLinking.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAE3B,KAAK,aAAa,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAe,CAAC;AAM9C,wBAAgB,UAAU,CAAC,SAAS,SAAS,aAAa,EACxD,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,EAC9D,EACE,OAAc,EACd,QAAgB,EAChB,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAQC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,cAAc,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+KjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMemoArray.d.ts","sourceRoot":"","sources":["../../../src/useMemoArray.tsx"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,OAAO,EAAE,CAAC,EAAE,GAC7C,CAAC,EAAE,CAoCL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollToTop.d.ts","sourceRoot":"","sources":["../../../src/useScrollToTop.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,KAAK,aAAa,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE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,IAAI,CAAA;CAAE,CAAC;AAE9D,KAAK,iBAAiB,GAClB;IAAE,kBAAkB,IAAI,KAAK,CAAC,SAAS,GAAG,UAAU,CAAA;CAAE,GACtD;IAAE,OAAO,IAAI,cAAc,CAAA;CAAE,GAC7B,cAAc,GACd,IAAI,CAAC;AA8BT,wBAAgB,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,QAuErE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/native",
|
|
3
3
|
"description": "React Native integration for React Navigation",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.29",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"react-navigation",
|
|
@@ -62,24 +62,25 @@
|
|
|
62
62
|
"clean": "del lib"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@react-navigation/core": "^8.0.0-alpha.
|
|
65
|
+
"@react-navigation/core": "^8.0.0-alpha.20",
|
|
66
66
|
"escape-string-regexp": "^5.0.0",
|
|
67
67
|
"fast-deep-equal": "^3.1.3",
|
|
68
|
-
"nanoid": "^5.1.
|
|
68
|
+
"nanoid": "^5.1.11",
|
|
69
69
|
"sf-symbols-typescript": "^2.2.0",
|
|
70
|
-
"
|
|
70
|
+
"standard-navigation": "^0.0.7",
|
|
71
|
+
"use-latest-callback": "^0.3.4"
|
|
71
72
|
},
|
|
72
73
|
"devDependencies": {
|
|
73
|
-
"@jest/globals": "^
|
|
74
|
-
"@testing-library/react-native": "^
|
|
75
|
-
"@types/react": "~19.2.
|
|
74
|
+
"@jest/globals": "^29.7.0",
|
|
75
|
+
"@testing-library/react-native": "^14.0.0",
|
|
76
|
+
"@types/react": "~19.2.17",
|
|
76
77
|
"del-cli": "^7.0.0",
|
|
77
78
|
"react": "19.2.0",
|
|
78
79
|
"react-dom": "19.2.0",
|
|
79
|
-
"react-native": "0.83.
|
|
80
|
-
"react-native-builder-bob": "^0.
|
|
81
|
-
"
|
|
82
|
-
"typescript": "^6.0.
|
|
80
|
+
"react-native": "0.83.6",
|
|
81
|
+
"react-native-builder-bob": "^0.42.1",
|
|
82
|
+
"test-renderer": "1.2.0",
|
|
83
|
+
"typescript": "^6.0.3"
|
|
83
84
|
},
|
|
84
85
|
"peerDependencies": {
|
|
85
86
|
"react": ">= 19.2.0",
|
|
@@ -125,5 +126,5 @@
|
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "9c6b764c575fdf7e3c27df37f820899dda9d4259"
|
|
129
130
|
}
|
|
@@ -22,11 +22,19 @@ const StackNavigator = (
|
|
|
22
22
|
props
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
const route = state.routes[state.index];
|
|
26
|
+
|
|
27
|
+
if (route == null) {
|
|
28
|
+
throw new Error(`Couldn't find a route at index ${state.index}.`);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const descriptor = descriptors[route.key];
|
|
32
|
+
|
|
33
|
+
if (descriptor == null) {
|
|
34
|
+
throw new Error(`Couldn't find a descriptor for route '${route.key}'.`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return <NavigationContent>{descriptor.render()}</NavigationContent>;
|
|
30
38
|
};
|
|
31
39
|
|
|
32
40
|
interface StubStackTypeBag extends NavigatorTypeBagBase {
|
package/src/__stubs__/window.tsx
CHANGED
|
@@ -35,6 +35,11 @@ const history = {
|
|
|
35
35
|
) {
|
|
36
36
|
index += n;
|
|
37
37
|
const entry = entries[index];
|
|
38
|
+
|
|
39
|
+
if (entry == null) {
|
|
40
|
+
throw new Error(`Couldn't find a history entry at index ${index}.`);
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
location = new URL(entry.href);
|
|
39
44
|
currentState = entry.state;
|
|
40
45
|
listeners.forEach((cb) => cb());
|