storybook 9.0.0-alpha.0 → 9.0.0-alpha.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.
Files changed (211) hide show
  1. package/README.md +31 -29
  2. package/assets/browser/favicon.svg +1 -0
  3. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  4. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  5. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  6. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  7. package/assets/docs/message-reference.png +0 -0
  8. package/assets/server/addon.tsconfig.json +6 -0
  9. package/assets/server/base-preview-body.html +119 -0
  10. package/assets/server/base-preview-head.html +451 -0
  11. package/assets/server/template.ejs +87 -0
  12. package/bin/index.cjs +1 -1
  13. package/dist/babel/index.cjs +54034 -0
  14. package/dist/babel/index.d.ts +7488 -0
  15. package/dist/babel/index.js +54044 -0
  16. package/dist/bin/index.cjs +124 -0
  17. package/dist/bin/index.js +118 -0
  18. package/dist/builder-manager/index.cjs +2167 -0
  19. package/dist/builder-manager/index.d.ts +19 -0
  20. package/dist/builder-manager/index.js +2189 -0
  21. package/dist/channels/index.cjs +1938 -0
  22. package/dist/channels/index.d.ts +108 -0
  23. package/dist/channels/index.js +1885 -0
  24. package/dist/cli/bin/index.cjs +2687 -0
  25. package/dist/cli/bin/index.d.ts +2 -0
  26. package/dist/cli/bin/index.js +2707 -0
  27. package/dist/cli/index.cjs +17327 -0
  28. package/dist/cli/index.d.ts +209 -0
  29. package/dist/cli/index.js +17349 -0
  30. package/dist/client-logger/index.cjs +112 -0
  31. package/dist/client-logger/index.d.ts +29 -0
  32. package/dist/client-logger/index.js +70 -0
  33. package/dist/common/index.cjs +20558 -0
  34. package/dist/common/index.d.ts +955 -0
  35. package/dist/common/index.js +20643 -0
  36. package/dist/components/index.cjs +30056 -0
  37. package/dist/components/index.d.ts +1423 -0
  38. package/dist/components/index.js +25416 -0
  39. package/dist/core-events/index.cjs +167 -0
  40. package/dist/core-events/index.d.ts +313 -0
  41. package/dist/core-events/index.js +149 -0
  42. package/dist/core-server/index.cjs +37872 -0
  43. package/dist/core-server/index.d.ts +462 -0
  44. package/dist/core-server/index.js +37966 -0
  45. package/dist/core-server/presets/common-manager.js +28 -0
  46. package/dist/core-server/presets/common-override-preset.cjs +4824 -0
  47. package/dist/core-server/presets/common-override-preset.js +4829 -0
  48. package/dist/core-server/presets/common-preset.cjs +10228 -0
  49. package/dist/core-server/presets/common-preset.js +10306 -0
  50. package/dist/csf/index.cjs +223 -0
  51. package/dist/csf/index.d.ts +752 -0
  52. package/dist/csf/index.js +216 -0
  53. package/dist/csf-tools/index.cjs +1422 -0
  54. package/dist/csf-tools/index.d.ts +250 -0
  55. package/dist/csf-tools/index.js +1439 -0
  56. package/dist/docs-tools/index.cjs +923 -0
  57. package/dist/docs-tools/index.d.ts +162 -0
  58. package/dist/docs-tools/index.js +909 -0
  59. package/dist/index.cjs +17 -1
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.js +2 -7
  62. package/dist/instrumenter/index.cjs +3273 -0
  63. package/dist/instrumenter/index.d.ts +104 -0
  64. package/dist/instrumenter/index.js +4800 -0
  65. package/dist/manager/globals-module-info.cjs +666 -0
  66. package/dist/manager/globals-module-info.d.ts +36 -0
  67. package/dist/manager/globals-module-info.js +653 -0
  68. package/dist/manager/globals-runtime.js +41567 -0
  69. package/dist/manager/globals.cjs +43 -0
  70. package/dist/manager/globals.d.ts +21 -0
  71. package/dist/manager/globals.js +30 -0
  72. package/dist/manager/runtime.js +12043 -0
  73. package/dist/manager-api/index.cjs +10772 -0
  74. package/dist/manager-api/index.d.ts +1211 -0
  75. package/dist/manager-api/index.js +4547 -0
  76. package/dist/manager-errors.d.ts +65 -0
  77. package/dist/manager-errors.js +83 -0
  78. package/dist/node-logger/index.cjs +1642 -0
  79. package/dist/node-logger/index.d.ts +117 -0
  80. package/dist/node-logger/index.js +1652 -0
  81. package/dist/preview/globals.cjs +34 -0
  82. package/dist/preview/globals.d.ts +12 -0
  83. package/dist/preview/globals.js +21 -0
  84. package/dist/preview/runtime.js +7723 -0
  85. package/dist/preview-api/index.cjs +5658 -0
  86. package/dist/preview-api/index.d.ts +1356 -0
  87. package/dist/preview-api/index.js +5665 -0
  88. package/dist/preview-errors.cjs +486 -0
  89. package/dist/preview-errors.d.ts +188 -0
  90. package/dist/preview-errors.js +433 -0
  91. package/dist/router/index.cjs +3320 -0
  92. package/dist/router/index.d.ts +385 -0
  93. package/dist/router/index.js +1849 -0
  94. package/dist/server-errors.cjs +710 -0
  95. package/dist/server-errors.d.ts +272 -0
  96. package/dist/server-errors.js +711 -0
  97. package/dist/telemetry/index.cjs +3683 -0
  98. package/dist/telemetry/index.d.ts +112 -0
  99. package/dist/telemetry/index.js +3720 -0
  100. package/dist/theming/create.cjs +2422 -0
  101. package/dist/theming/create.d.ts +50 -0
  102. package/dist/theming/create.js +990 -0
  103. package/dist/theming/index.cjs +4832 -0
  104. package/dist/theming/index.d.ts +11939 -0
  105. package/dist/theming/index.js +3253 -0
  106. package/dist/types/index.cjs +27 -0
  107. package/dist/types/index.d.ts +2541 -0
  108. package/dist/types/index.js +7 -0
  109. package/package.json +308 -212
  110. package/.eslintrc.cjs +0 -31
  111. package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
  112. package/core/babel/index.cjs +0 -1
  113. package/core/babel/index.d.ts +0 -2
  114. package/core/babel/index.js +0 -1
  115. package/core/builder-manager/index.cjs +0 -1
  116. package/core/builder-manager/index.d.ts +0 -2
  117. package/core/builder-manager/index.js +0 -1
  118. package/core/channels/index.cjs +0 -1
  119. package/core/channels/index.d.ts +0 -2
  120. package/core/channels/index.js +0 -1
  121. package/core/cli/bin/index.cjs +0 -1
  122. package/core/cli/bin/index.d.ts +0 -2
  123. package/core/cli/bin/index.js +0 -1
  124. package/core/cli/index.cjs +0 -1
  125. package/core/cli/index.d.ts +0 -2
  126. package/core/cli/index.js +0 -1
  127. package/core/client-logger/index.cjs +0 -1
  128. package/core/client-logger/index.d.ts +0 -2
  129. package/core/client-logger/index.js +0 -1
  130. package/core/common/index.cjs +0 -1
  131. package/core/common/index.d.ts +0 -2
  132. package/core/common/index.js +0 -1
  133. package/core/components/index.cjs +0 -1
  134. package/core/components/index.d.ts +0 -2
  135. package/core/components/index.js +0 -1
  136. package/core/core-events/index.cjs +0 -1
  137. package/core/core-events/index.d.ts +0 -2
  138. package/core/core-events/index.js +0 -1
  139. package/core/core-server/index.cjs +0 -1
  140. package/core/core-server/index.d.ts +0 -2
  141. package/core/core-server/index.js +0 -1
  142. package/core/core-server/presets/common-manager.js +0 -1
  143. package/core/core-server/presets/common-override-preset.cjs +0 -1
  144. package/core/core-server/presets/common-override-preset.js +0 -1
  145. package/core/core-server/presets/common-preset.cjs +0 -1
  146. package/core/core-server/presets/common-preset.js +0 -1
  147. package/core/csf/index.cjs +0 -1
  148. package/core/csf/index.d.ts +0 -2
  149. package/core/csf/index.js +0 -1
  150. package/core/csf-tools/index.cjs +0 -1
  151. package/core/csf-tools/index.d.ts +0 -2
  152. package/core/csf-tools/index.js +0 -1
  153. package/core/docs-tools/index.cjs +0 -1
  154. package/core/docs-tools/index.d.ts +0 -2
  155. package/core/docs-tools/index.js +0 -1
  156. package/core/index.cjs +0 -1
  157. package/core/index.d.ts +0 -2
  158. package/core/index.js +0 -1
  159. package/core/manager/globals-module-info.cjs +0 -1
  160. package/core/manager/globals-module-info.d.ts +0 -2
  161. package/core/manager/globals-module-info.js +0 -1
  162. package/core/manager/globals-runtime.js +0 -1
  163. package/core/manager/globals.cjs +0 -1
  164. package/core/manager/globals.d.ts +0 -2
  165. package/core/manager/globals.js +0 -1
  166. package/core/manager-api/index.cjs +0 -1
  167. package/core/manager-api/index.d.ts +0 -2
  168. package/core/manager-api/index.js +0 -1
  169. package/core/manager-errors.d.ts +0 -2
  170. package/core/manager-errors.js +0 -1
  171. package/core/node-logger/index.cjs +0 -1
  172. package/core/node-logger/index.d.ts +0 -2
  173. package/core/node-logger/index.js +0 -1
  174. package/core/preview/globals.cjs +0 -1
  175. package/core/preview/globals.d.ts +0 -2
  176. package/core/preview/globals.js +0 -1
  177. package/core/preview/runtime.js +0 -1
  178. package/core/preview-api/index.cjs +0 -1
  179. package/core/preview-api/index.d.ts +0 -2
  180. package/core/preview-api/index.js +0 -1
  181. package/core/preview-errors.cjs +0 -1
  182. package/core/preview-errors.d.ts +0 -2
  183. package/core/preview-errors.js +0 -1
  184. package/core/router/index.cjs +0 -1
  185. package/core/router/index.d.ts +0 -2
  186. package/core/router/index.js +0 -1
  187. package/core/server-errors.cjs +0 -1
  188. package/core/server-errors.d.ts +0 -2
  189. package/core/server-errors.js +0 -1
  190. package/core/telemetry/index.cjs +0 -1
  191. package/core/telemetry/index.d.ts +0 -2
  192. package/core/telemetry/index.js +0 -1
  193. package/core/theming/create.cjs +0 -1
  194. package/core/theming/create.d.ts +0 -2
  195. package/core/theming/create.js +0 -1
  196. package/core/theming/index.cjs +0 -1
  197. package/core/theming/index.d.ts +0 -2
  198. package/core/theming/index.js +0 -1
  199. package/core/types/index.cjs +0 -1
  200. package/core/types/index.d.ts +0 -2
  201. package/core/types/index.js +0 -1
  202. package/core.cjs +0 -0
  203. package/core.d.ts +0 -0
  204. package/core.js +0 -1
  205. package/dist/chunk-OWLSIX54.js +0 -8
  206. package/dist/core-path.cjs +0 -1
  207. package/dist/core-path.d.ts +0 -3
  208. package/dist/core-path.js +0 -9
  209. package/dist/proxy.cjs +0 -1
  210. package/dist/proxy.d.ts +0 -2
  211. package/dist/proxy.js +0 -9
@@ -0,0 +1,385 @@
1
+ import * as React from 'react';
2
+ import React__default, { ReactNode, ReactElement } from 'react';
3
+
4
+ interface StoryData {
5
+ viewMode?: string;
6
+ storyId?: string;
7
+ refId?: string;
8
+ }
9
+ declare const parsePath: (path: string | undefined) => StoryData;
10
+ interface Args {
11
+ [key: string]: any;
12
+ }
13
+ declare const DEEPLY_EQUAL: unique symbol;
14
+ declare const deepDiff: (value: any, update: any) => any;
15
+ declare const buildArgsParam: (initialArgs: Args | undefined, args: Args) => string;
16
+ interface Query {
17
+ [key: string]: any;
18
+ }
19
+ declare const queryFromLocation: (location: Partial<Location>) => Query;
20
+ declare const stringifyQuery: (query: Query) => string;
21
+ type Match$1 = {
22
+ path: string;
23
+ };
24
+ declare const getMatch: (current: string, target: string | RegExp, startsWith?: any) => Match$1 | null;
25
+
26
+ /**
27
+ * Actions represent the type of change to a location value.
28
+ *
29
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
30
+ */
31
+ declare enum Action {
32
+ /**
33
+ * A POP indicates a change to an arbitrary index in the history stack, such
34
+ * as a back or forward navigation. It does not describe the direction of the
35
+ * navigation, only that the current index changed.
36
+ *
37
+ * Note: This is the default action for newly created history objects.
38
+ */
39
+ Pop = "POP",
40
+ /**
41
+ * A PUSH indicates a new entry being added to the history stack, such as when
42
+ * a link is clicked and a new page loads. When this happens, all subsequent
43
+ * entries in the stack are lost.
44
+ */
45
+ Push = "PUSH",
46
+ /**
47
+ * A REPLACE indicates the entry at the current index in the history stack
48
+ * being replaced by a new one.
49
+ */
50
+ Replace = "REPLACE"
51
+ }
52
+ /**
53
+ * A URL pathname, beginning with a /.
54
+ *
55
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.pathname
56
+ */
57
+ declare type Pathname = string;
58
+ /**
59
+ * A URL search string, beginning with a ?.
60
+ *
61
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.search
62
+ */
63
+ declare type Search = string;
64
+ /**
65
+ * A URL fragment identifier, beginning with a #.
66
+ *
67
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
68
+ */
69
+ declare type Hash = string;
70
+ /**
71
+ * A unique string associated with a location. May be used to safely store
72
+ * and retrieve data in some other storage API, like `localStorage`.
73
+ *
74
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.key
75
+ */
76
+ declare type Key = string;
77
+ /**
78
+ * The pathname, search, and hash values of a URL.
79
+ */
80
+ interface Path {
81
+ /**
82
+ * A URL pathname, beginning with a /.
83
+ *
84
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.pathname
85
+ */
86
+ pathname: Pathname;
87
+ /**
88
+ * A URL search string, beginning with a ?.
89
+ *
90
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.search
91
+ */
92
+ search: Search;
93
+ /**
94
+ * A URL fragment identifier, beginning with a #.
95
+ *
96
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.hash
97
+ */
98
+ hash: Hash;
99
+ }
100
+ /**
101
+ * An entry in a history stack. A location contains information about the
102
+ * URL path, as well as possibly some arbitrary state and a key.
103
+ *
104
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location
105
+ */
106
+ interface Location$2 extends Path {
107
+ /**
108
+ * A value of arbitrary data associated with this location.
109
+ *
110
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.state
111
+ */
112
+ state: unknown;
113
+ /**
114
+ * A unique string associated with this location. May be used to safely store
115
+ * and retrieve data in some other storage API, like `localStorage`.
116
+ *
117
+ * Note: This value is always "default" on the initial location.
118
+ *
119
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#location.key
120
+ */
121
+ key: Key;
122
+ }
123
+ /**
124
+ * A change to the current location.
125
+ */
126
+ interface Update {
127
+ /**
128
+ * The action that triggered the change.
129
+ */
130
+ action: Action;
131
+ /**
132
+ * The new location.
133
+ */
134
+ location: Location$2;
135
+ }
136
+ /**
137
+ * A function that receives notifications about location changes.
138
+ */
139
+ interface Listener {
140
+ (update: Update): void;
141
+ }
142
+ /**
143
+ * A change to the current location that was blocked. May be retried
144
+ * after obtaining user confirmation.
145
+ */
146
+ interface Transition extends Update {
147
+ /**
148
+ * Retries the update to the current location.
149
+ */
150
+ retry(): void;
151
+ }
152
+ /**
153
+ * A function that receives transitions when navigation is blocked.
154
+ */
155
+ interface Blocker {
156
+ (tx: Transition): void;
157
+ }
158
+ /**
159
+ * Describes a location that is the destination of some navigation, either via
160
+ * `history.push` or `history.replace`. May be either a URL or the pieces of a
161
+ * URL path.
162
+ */
163
+ declare type To = string | Partial<Path>;
164
+ /**
165
+ * A history is an interface to the navigation stack. The history serves as the
166
+ * source of truth for the current location, as well as provides a set of
167
+ * methods that may be used to change it.
168
+ *
169
+ * It is similar to the DOM's `window.history` object, but with a smaller, more
170
+ * focused API.
171
+ */
172
+ interface History {
173
+ /**
174
+ * The last action that modified the current location. This will always be
175
+ * Action.Pop when a history instance is first created. This value is mutable.
176
+ *
177
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.action
178
+ */
179
+ readonly action: Action;
180
+ /**
181
+ * The current location. This value is mutable.
182
+ *
183
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.location
184
+ */
185
+ readonly location: Location$2;
186
+ /**
187
+ * Returns a valid href for the given `to` value that may be used as
188
+ * the value of an <a href> attribute.
189
+ *
190
+ * @param to - The destination URL
191
+ *
192
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.createHref
193
+ */
194
+ createHref(to: To): string;
195
+ /**
196
+ * Pushes a new location onto the history stack, increasing its length by one.
197
+ * If there were any entries in the stack after the current one, they are
198
+ * lost.
199
+ *
200
+ * @param to - The new URL
201
+ * @param state - Data to associate with the new location
202
+ *
203
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.push
204
+ */
205
+ push(to: To, state?: any): void;
206
+ /**
207
+ * Replaces the current location in the history stack with a new one. The
208
+ * location that was replaced will no longer be available.
209
+ *
210
+ * @param to - The new URL
211
+ * @param state - Data to associate with the new location
212
+ *
213
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.replace
214
+ */
215
+ replace(to: To, state?: any): void;
216
+ /**
217
+ * Navigates `n` entries backward/forward in the history stack relative to the
218
+ * current index. For example, a "back" navigation would use go(-1).
219
+ *
220
+ * @param delta - The delta in the stack index
221
+ *
222
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.go
223
+ */
224
+ go(delta: number): void;
225
+ /**
226
+ * Navigates to the previous entry in the stack. Identical to go(-1).
227
+ *
228
+ * Warning: if the current location is the first location in the stack, this
229
+ * will unload the current document.
230
+ *
231
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.back
232
+ */
233
+ back(): void;
234
+ /**
235
+ * Navigates to the next entry in the stack. Identical to go(1).
236
+ *
237
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.forward
238
+ */
239
+ forward(): void;
240
+ /**
241
+ * Sets up a listener that will be called whenever the current location
242
+ * changes.
243
+ *
244
+ * @param listener - A function that will be called when the location changes
245
+ * @returns unlisten - A function that may be used to stop listening
246
+ *
247
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.listen
248
+ */
249
+ listen(listener: Listener): () => void;
250
+ /**
251
+ * Prevents the current location from changing and sets up a listener that
252
+ * will be called instead.
253
+ *
254
+ * @param blocker - A function that will be called when a transition is blocked
255
+ * @returns unblock - A function that may be used to stop blocking
256
+ *
257
+ * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#history.block
258
+ */
259
+ block(blocker: Blocker): () => void;
260
+ }
261
+
262
+ /**
263
+ * A Navigator is a "location changer"; it's how you get to different locations.
264
+ *
265
+ * Every history instance conforms to the Navigator interface, but the
266
+ * distinction is useful primarily when it comes to the low-level <Router> API
267
+ * where both the location and a navigator must be provided separately in order
268
+ * to avoid "tearing" that may occur in a suspense-enabled app if the action
269
+ * and/or location were to be read directly from the history instance.
270
+ */
271
+ declare type Navigator = Omit<History, "action" | "location" | "back" | "forward" | "listen" | "block">;
272
+ interface RouterProps {
273
+ basename?: string;
274
+ children?: React.ReactNode;
275
+ location: Partial<Location$2> | string;
276
+ navigationType?: Action;
277
+ navigator: Navigator;
278
+ static?: boolean;
279
+ }
280
+ /**
281
+ * Provides location context for the rest of the app.
282
+ *
283
+ * Note: You usually won't render a <Router> directly. Instead, you'll render a
284
+ * router that is more specific to your environment such as a <BrowserRouter>
285
+ * in web browsers or a <StaticRouter> for server rendering.
286
+ *
287
+ * @see https://reactrouter.com/docs/en/v6/api#router
288
+ */
289
+ declare function Router({ basename: basenameProp, children, location: locationProp, navigationType, navigator, static: staticProp }: RouterProps): React.ReactElement | null;
290
+ interface NavigateOptions$1 {
291
+ replace?: boolean;
292
+ state?: any;
293
+ }
294
+
295
+ interface BrowserRouterProps {
296
+ basename?: string;
297
+ children?: React.ReactNode;
298
+ window?: Window;
299
+ }
300
+ /**
301
+ * A <Router> for use in web browsers. Provides the cleanest URLs.
302
+ */
303
+ declare function BrowserRouter({ basename, children, window }: BrowserRouterProps): JSX.Element;
304
+
305
+ interface Other extends StoryData {
306
+ path: string;
307
+ singleStory?: boolean;
308
+ }
309
+ type NavigateOptions = NavigateOptions$1 & {
310
+ plain?: boolean;
311
+ };
312
+ type NavigateFunction = (to: To | number, options?: NavigateOptions) => void;
313
+ type RouterData = {
314
+ location: Partial<Location$2>;
315
+ navigate: NavigateFunction;
316
+ } & Other;
317
+ type RenderData = Pick<RouterData, 'location'> & Other;
318
+ interface LinkProps {
319
+ to: string;
320
+ children: ReactNode;
321
+ }
322
+
323
+ interface MatchingData {
324
+ match: null | {
325
+ path: string;
326
+ };
327
+ }
328
+ interface LocationProps {
329
+ children: (renderData: RenderData) => any;
330
+ }
331
+ interface MatchPropsStartsWith {
332
+ path: string;
333
+ startsWith: boolean;
334
+ children: (matchingData: MatchingData) => ReactNode;
335
+ }
336
+ interface MatchPropsDefault {
337
+ path: RegExp;
338
+ startsWith: false;
339
+ children: (matchingData: MatchingData) => ReactNode;
340
+ }
341
+ interface RoutePropsStartsWith {
342
+ path: string;
343
+ startsWith?: boolean;
344
+ children: ReactNode;
345
+ }
346
+ interface RoutePropsDefault {
347
+ path: RegExp;
348
+ startsWith?: false;
349
+ children: ReactNode;
350
+ }
351
+ declare const useNavigate: () => (to: To | number, { plain, ...options }?: NavigateOptions) => void;
352
+ /** A component that will navigate to a new location/path when clicked */
353
+ declare const Link: {
354
+ ({ to, children, ...rest }: LinkProps): React__default.JSX.Element;
355
+ displayName: string;
356
+ };
357
+ /**
358
+ * A render-prop component where children is called with a location and will be called whenever it
359
+ * changes
360
+ */
361
+ declare const Location$1: {
362
+ ({ children }: LocationProps): React__default.JSX.Element;
363
+ displayName: string;
364
+ };
365
+ /**
366
+ * A render-prop component for rendering when a certain path is hit. It's immensely similar to
367
+ * `Location` but it receives an addition data property: `match`. match has a truthy value when the
368
+ * path is hit.
369
+ */
370
+ declare function Match(props: MatchPropsStartsWith): ReactElement;
371
+ declare function Match(props: MatchPropsDefault): ReactElement;
372
+ declare namespace Match {
373
+ var displayName: string;
374
+ }
375
+ /** A component to conditionally render children based on matching a target path */
376
+ declare function Route(props: RoutePropsDefault): ReactElement;
377
+ declare function Route(props: RoutePropsStartsWith): ReactElement;
378
+ declare namespace Route {
379
+ var displayName: string;
380
+ }
381
+
382
+ declare const LocationProvider: typeof BrowserRouter;
383
+ declare const BaseLocationProvider: typeof Router;
384
+
385
+ export { BaseLocationProvider, DEEPLY_EQUAL, Link, type LinkProps, Location$1 as Location, LocationProvider, Match, type NavigateFunction, type NavigateOptions, type Other, type RenderData, Route, type RouterData, type StoryData, buildArgsParam, deepDiff, getMatch, parsePath, queryFromLocation, stringifyQuery, useNavigate };