@teambit/ui-foundation.ui.react-router.slot-router 0.0.517 → 0.0.518
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/dist/slot-router.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SlotRegistry } from '@teambit/harmony';
|
|
3
|
-
import { RouteProps } from 'react-router-dom';
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { SlotRegistry } from '@teambit/harmony';
|
|
3
|
+
import type { RouteProps } from 'react-router-dom';
|
|
4
4
|
import type { LinkProps } from '@teambit/base-react.navigation.link';
|
|
5
5
|
export type RouteSlot = SlotRegistry<RouteProps | RouteProps[]>;
|
|
6
6
|
export type NavigationSlot = SlotRegistry<LinkProps>;
|
package/dist/slot-router.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot-router.js","sourceRoot":"","sources":["../slot-router.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"slot-router.js","sourceRoot":"","sources":["../slot-router.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAiBjC,SAAS,KAAK,CAAC,KAAiB;IAC9B,IAAI,KAAK,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC,IAAI,CAAC;IAClC,IAAI,KAAK,CAAC,KAAK;QAAE,OAAO,GAAG,CAAC;IAC5B,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAmB;IAC7G,MAAM,MAAM,GAAG,eAAe,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACzE,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IAEjD,MAAM,SAAS,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,KAAK,OAAwB,KAAK,IAAvB,KAAK,CAAC,KAAK,CAAC,CAAe,CAAC,CAAC;IAEnF,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL,KAAC,MAAM,cACL,MAAC,KAAK,IAAC,IAAI,EAAE,UAAU,aACpB,SAAS,EACT,QAAQ,IACH,GACD,CACV,CAAC;IACJ,CAAC;IAED,OAAO,CACL,KAAC,MAAM,cACL,MAAC,KAAK,IAAC,IAAI,EAAE,UAAU,aACpB,SAAS,EACT,QAAQ,IACH,GACD,CACV,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/ui-foundation.ui.react-router.slot-router",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.518",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/ui-foundation/ui/react-router/slot-router",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "ui/react-router/slot-router",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.518"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
package/slot-router.tsx
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SlotRegistry } from '@teambit/harmony';
|
|
4
|
+
import type { RouteProps } from 'react-router-dom';
|
|
5
|
+
import { Routes, Route } from 'react-router-dom';
|
|
4
6
|
import { flatten } from 'lodash';
|
|
5
7
|
import type { LinkProps } from '@teambit/base-react.navigation.link';
|
|
6
8
|
|
|
File without changes
|