@teambit/react-router 1.0.13 → 1.0.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.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_react-router@1.0.13/dist/react-router.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_react-router@1.0.13/dist/react-router.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_react-router@1.0.15/dist/react-router.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_react-router@1.0.15/dist/react-router.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const Logo: () => JSX.Element;
1
+ import React from 'react';
2
+ export declare const Logo: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { Location, NavigationType, RouteProps } from 'react-router-dom';
3
3
  import { SlotRegistry } from '@teambit/harmony';
4
4
  import type { SSR } from '@teambit/ui';
@@ -31,7 +31,7 @@ export declare class ReactRouterUI {
31
31
  /**
32
32
  * render all slot routes.
33
33
  */
34
- renderRoutes(routes: RouteProps[]): JSX.Element;
34
+ renderRoutes(routes: RouteProps[]): React.JSX.Element;
35
35
  /** decides how navigation is stored and applied.
36
36
  * Url - updates the `window.location.pathname`.
37
37
  * Hash - updates `window.location.hash`.
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { RouteProps } from 'react-router-dom';
3
3
  import { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
4
4
  import { ReactRouterUI } from './react-router.ui.runtime';
@@ -16,6 +16,6 @@ declare type RootRouteProps = {
16
16
  /**
17
17
  * Setup context needed for routing.
18
18
  */
19
- export declare function RouteContext({ routing, children, location }: RouterContextProps): JSX.Element;
20
- export declare function RootRoute({ rootRoutes, routeSlot }: RootRouteProps): JSX.Element;
19
+ export declare function RouteContext({ routing, children, location }: RouterContextProps): React.JSX.Element;
20
+ export declare function RootRoute({ rootRoutes, routeSlot }: RootRouteProps): React.JSX.Element;
21
21
  export {};
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/react-router",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "homepage": "https://bit.cloud/teambit/ui-foundation/react-router",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.ui-foundation",
8
8
  "name": "react-router",
9
- "version": "1.0.13"
9
+ "version": "1.0.15"
10
10
  },
11
11
  "dependencies": {
12
12
  "core-js": "^3.0.0",
@@ -15,7 +15,7 @@
15
15
  "@teambit/harmony": "0.4.6",
16
16
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.506",
17
17
  "@teambit/ui-foundation.ui.navigation.react-router-adapter": "6.1.1",
18
- "@teambit/ui": "1.0.13"
18
+ "@teambit/ui": "1.0.15"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/react": "^17.0.8",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react-router-dom": "^6.0.0",
30
- "@teambit/legacy": "1.0.572",
30
+ "@teambit/legacy": "1.0.573",
31
31
  "react": "^16.8.0 || ^17.0.0",
32
32
  "react-dom": "^16.8.0 || ^17.0.0"
33
33
  },