@cloud-app-dev/vidc 2.1.0-alpha.3 → 2.1.0-alpha.4

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.
@@ -0,0 +1,3 @@
1
+ import { RouterProps } from 'react-router-dom';
2
+ declare function AppRouter({ basename, children, ...props }: RouterProps): JSX.Element;
3
+ export default AppRouter;
@@ -0,0 +1,19 @@
1
+ import { __rest } from "tslib";
2
+ import React from 'react';
3
+ import { Router, Routes } from 'react-router-dom';
4
+ import InstanceHistory from '../InstanceHistory';
5
+
6
+ function AppRouter(_a) {
7
+ var basename = _a.basename,
8
+ children = _a.children,
9
+ props = __rest(_a, ["basename", "children"]);
10
+
11
+ return /*#__PURE__*/React.createElement(Router, Object.assign({}, props, {
12
+ basename: basename,
13
+ navigator: InstanceHistory,
14
+ navigationType: InstanceHistory.action,
15
+ location: InstanceHistory.location
16
+ }), /*#__PURE__*/React.createElement(Routes, null, children));
17
+ }
18
+
19
+ export default AppRouter;
package/es/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as Api } from './Api';
2
2
  export { default as AppContext } from './AppContext';
3
3
  export { default as AppRedirect } from './AppRedirect';
4
+ export { default as AppRouter } from './AppRouter';
4
5
  export { default as Auth } from './Auth';
5
6
  export { default as AutoExit } from './AutoExit';
6
7
  export { default as Box } from './Box';
package/es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { default as Api } from './Api';
2
2
  export { default as AppContext } from './AppContext';
3
3
  export { default as AppRedirect } from './AppRedirect';
4
+ export { default as AppRouter } from './AppRouter';
4
5
  export { default as Auth } from './Auth';
5
6
  export { default as AutoExit } from './AutoExit';
6
7
  export { default as Box } from './Box';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "2.1.0-alpha.3",
5
+ "version": "2.1.0-alpha.4",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",
@@ -36,8 +36,7 @@
36
36
  "fetch-like-axios": "^0.0.5",
37
37
  "immer": "^9.0.5",
38
38
  "lodash": "^4.17.21",
39
- "rc-queue-anim": "^2.0.0",
40
- "react-activation": "^0.9.12"
39
+ "rc-queue-anim": "^2.0.0"
41
40
  },
42
41
  "devDependencies": {
43
42
  "@cloud-app-dev/utils": "^3.0.3",