@cloud-app-dev/vidc 3.2.20 → 3.2.22

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 (94) hide show
  1. package/es/AppContext/Sync.d.ts +1 -0
  2. package/es/Box/TwoColumnBox/index.less +1 -1
  3. package/es/Box/index.d.ts +3 -3
  4. package/es/CheckGroupFixed/demo.d.ts +1 -0
  5. package/es/CheckGroupFixed/index.d.ts +1 -0
  6. package/es/DomMove/demo.d.ts +1 -0
  7. package/es/Drawer/Footer.d.ts +1 -0
  8. package/es/DynamicGridList/Demo.d.ts +1 -0
  9. package/es/DynamicList/demo.d.ts +1 -0
  10. package/es/DynamicList/index.d.ts +1 -0
  11. package/es/ErrorFallback/index.d.ts +1 -0
  12. package/es/FullScreen/index.d.ts +1 -0
  13. package/es/GridList/Demo.d.ts +1 -0
  14. package/es/Input/demo.d.ts +1 -0
  15. package/es/Input/index.d.ts +1 -0
  16. package/es/LabelValue/index.less +2 -2
  17. package/es/List/demo.d.ts +1 -0
  18. package/es/List/index.d.ts +4 -4
  19. package/es/ListWithSizeAnimate/demo.d.ts +1 -0
  20. package/es/Map/BasicMap/LeafletInstance.d.ts +1 -1
  21. package/es/Map/ClusterLayer/hook.d.ts +2 -2
  22. package/es/Map/ClusterLayer/index.d.ts +1 -0
  23. package/es/Map/FindPio/index.d.ts +1 -0
  24. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +1 -0
  25. package/es/Map/InfoWindow/demo.d.ts +1 -0
  26. package/es/Map/InfoWindow/index.d.ts +1 -0
  27. package/es/Map/LevelCenter/DragMarker/index.d.ts +1 -0
  28. package/es/Map/LevelCenter/demo.d.ts +1 -0
  29. package/es/Map/LevelCenter/index.d.ts +1 -1
  30. package/es/Map/MapDrawSelect/demo.d.ts +1 -0
  31. package/es/Map/MapDrawSelect/index.d.ts +1 -1
  32. package/es/Map/ResetTools/index.d.ts +1 -0
  33. package/es/Map/SinglePoint/index.d.ts +1 -1
  34. package/es/Map/icon.d.ts +1 -1
  35. package/es/Map/index.d.ts +21 -11
  36. package/es/Map/withMap/index.d.ts +1 -0
  37. package/es/Modal/demo.d.ts +1 -0
  38. package/es/Modal/index.d.ts +8 -8
  39. package/es/Picture/component/DefaultRects/RectInfo.d.ts +1 -0
  40. package/es/Picture/component/DefaultRects/index.d.ts +1 -0
  41. package/es/Picture/component/DrawRect/index.d.ts +1 -0
  42. package/es/Picture/component/RectMenu/index.d.ts +1 -0
  43. package/es/Picture/component/WheelScale/index.d.ts +1 -0
  44. package/es/Picture/demo.d.ts +1 -0
  45. package/es/Picture/index.d.ts +1 -0
  46. package/es/Picture/utils.d.ts +1 -1
  47. package/es/Player/contraller_bar/time.d.ts +1 -0
  48. package/es/Player/demo.d.ts +1 -0
  49. package/es/Player/empty.d.ts +1 -0
  50. package/es/Player/fps_play.d.ts +1 -0
  51. package/es/Player/frontend_player.d.ts +1 -0
  52. package/es/Player/frontend_timeline.d.ts +1 -0
  53. package/es/Player/iconfont.d.ts +1 -0
  54. package/es/Player/message.d.ts +1 -0
  55. package/es/Player/segment_player.d.ts +1 -0
  56. package/es/Player/segment_timeline.d.ts +1 -0
  57. package/es/Player/timeline.d.ts +2 -1
  58. package/es/Player/util.d.ts +3 -2
  59. package/es/PlayerExt/demo.d.ts +1 -0
  60. package/es/PlayerExt/index.d.ts +1 -0
  61. package/es/Progress/index.d.ts +1 -0
  62. package/es/ROI/demo.d.ts +1 -0
  63. package/es/ScreenPlayer/Live.d.ts +1 -0
  64. package/es/ScreenPlayer/RatePick.d.ts +1 -0
  65. package/es/ScreenPlayer/Record.d.ts +1 -0
  66. package/es/ScreenPlayer/ScreenSelect.d.ts +1 -0
  67. package/es/ScreenPlayer/SegmentTimeLine.d.ts +1 -0
  68. package/es/ScreenPlayer/TimeMode.d.ts +1 -0
  69. package/es/ScreenPlayer/TimeSelect.d.ts +1 -0
  70. package/es/ScreenPlayer/demo.d.ts +1 -0
  71. package/es/ScreenPlayer/demo2.d.ts +1 -0
  72. package/es/ScreenPlayer/index.d.ts +3 -2
  73. package/es/ScreenPlayer/useTimeSlider.d.ts +1 -0
  74. package/es/ScreenPlayer/useVideoFit.d.ts +2 -2
  75. package/es/Service/fetch-adapter.d.ts +1 -1
  76. package/es/Service/fetch-adapter.js +2 -2
  77. package/es/Service/interface.d.ts +1 -2
  78. package/es/ThemeAntd/demo.d.ts +1 -0
  79. package/es/ThemeAntd/demo.js +1 -1
  80. package/es/ThemeAntd/demo.less +2 -0
  81. package/es/ThemeAntd/style/button.less +3 -3
  82. package/es/ThemeAntd/style/pagination.less +2 -1
  83. package/es/Timeout/index.d.ts +1 -0
  84. package/es/Tree/demo.d.ts +1 -0
  85. package/es/Tree/index.d.ts +1 -1
  86. package/es/VList/index.d.ts +1 -0
  87. package/es/useDrawROI/index.d.ts +4 -4
  88. package/es/useFullscreen/demo.d.ts +1 -0
  89. package/es/useFullscreen/index.d.ts +5 -4
  90. package/es/useHistory/index.d.ts +1 -1
  91. package/es/useHistory/interface.d.ts +2 -3
  92. package/es/useVirtualList/index.d.ts +1 -1
  93. package/package.json +1 -1
  94. package/tsconfig.json +1 -0
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AppContextInterface, AppStoreType } from './interface';
2
3
  interface ISyncProps {
3
4
  stateChange: (options: AppContextInterface) => void;
@@ -2,7 +2,7 @@
2
2
  position: relative;
3
3
  width: 100%;
4
4
  height: 100%;
5
- color: var(--color1);
5
+ color: inherit;
6
6
 
7
7
  .two-column-aside {
8
8
  position: absolute;
package/es/Box/index.d.ts CHANGED
@@ -7,8 +7,8 @@ export interface ContentBoxProps {
7
7
  }
8
8
  declare function Box({ className, contentGrid, children }: ContentBoxProps): JSX.Element;
9
9
  declare namespace Box {
10
- var TwoColumnBox: any;
11
- var InfoBox: any;
12
- var BetweenBox: any;
10
+ var TwoColumnBox: typeof import("./TwoColumnBox").default;
11
+ var InfoBox: typeof import("./InfoBox").default;
12
+ var BetweenBox: typeof import("./BetweenBox").default;
13
13
  }
14
14
  export default Box;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface SourceDictType {
3
4
  value?: string | number;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function App(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IFooterProps } from './interface';
2
3
  import './index.less';
3
4
  declare function Footer({ onClose, cancelText, okText, onOk }: IFooterProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function (): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { TData } from '../useInfiniteScroll';
2
3
  import './index.less';
3
4
  export interface IDynamicListProps<T> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ErrorBoundaryProps } from './inerface';
2
3
  interface IErrorFallbackProps {
3
4
  error: Error;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IFullScrenProps {
3
4
  /**
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from 'antd';
2
3
  import './index.less';
3
4
  interface IInputProps extends Omit<InputProps, 'onChange'> {
@@ -5,13 +5,13 @@
5
5
  span {
6
6
  &:first-child {
7
7
  padding-right: 4px;
8
- color: var(--color);
8
+ color: var(--color4);
9
9
  white-space: nowrap;
10
10
  }
11
11
 
12
12
  &:last-child {
13
13
  flex: 1;
14
- color: var(--color-dark);
14
+ color: var(--color6);
15
15
 
16
16
  &.no-wrap {
17
17
  overflow: hidden;
package/es/List/demo.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -33,9 +33,9 @@ declare namespace List {
33
33
  itemNameKey: string;
34
34
  renderHeaderExt: () => JSX.Element;
35
35
  };
36
- var VList: any;
37
- var DynamicList: any;
38
- var GridList: any;
39
- var DynamicGridList: any;
36
+ var VList: typeof import("../VList").default;
37
+ var DynamicList: typeof import("../DynamicList").default;
38
+ var GridList: React.ForwardRefExoticComponent<import("../GridList").GridListProps<unknown> & React.RefAttributes<HTMLDivElement>>;
39
+ var DynamicGridList: typeof import("../DynamicGridList").default;
40
40
  }
41
41
  export default List;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function App(): JSX.Element;
@@ -10,7 +10,7 @@ declare class LeafletInstance implements IMapInstance {
10
10
  mapReset(): void;
11
11
  setZoom(zoom: number): void;
12
12
  setCenter(center: [number, number] | LatLng): void;
13
- getZoom(): any;
13
+ getZoom(): number;
14
14
  on(type: string, fn: (event: any) => void): void;
15
15
  off(type: string, fn: (event: any) => void): void;
16
16
  setCursor(cursor: string): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference path="../AMap.d.ts" />
2
- import { MapPoint, LClusterInterface } from '../interface';
2
+ import { MapPoint, Marker, LClusterInterface } from '../interface';
3
3
  import './index.less';
4
4
  export declare function useMarkerCluster(onPointClick?: (point: MapPoint) => void): (LClusterInterface & AMap.MarkerCluster) | null;
5
- export declare function useMarkers(points?: MapPoint[]): any[];
5
+ export declare function useMarkers(points?: MapPoint[]): Marker[];
@@ -1,4 +1,5 @@
1
1
  /// <reference path="../AMap.d.ts" />
2
+ /// <reference types="react" />
2
3
  import { IClusterLayerProps } from './props';
3
4
  import './index.less';
4
5
  declare function ClusterLayer({ points, onPointClick, children }: IClusterLayerProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare function FindPio(): JSX.Element;
3
4
  export default FindPio;
@@ -1,3 +1,4 @@
1
1
  /// <reference path="../AMap.d.ts" />
2
+ /// <reference types="react" />
2
3
  import { InfoWindowProps } from '.';
3
4
  export default function MakerLikeWindow({ children, visible, center, width, height }: InfoWindowProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,4 +1,5 @@
1
1
  /// <reference path="../AMap.d.ts" />
2
+ /// <reference types="react" />
2
3
  export interface InfoWindowProps {
3
4
  children: JSX.Element;
4
5
  visible?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface IDragMarkerProps {
2
3
  center?: [number, number];
3
4
  onChange?: (options: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -11,5 +11,5 @@ export interface ILevelCenter {
11
11
  }) => void;
12
12
  children?: React.ReactNode;
13
13
  }
14
- declare const _default: any;
14
+ declare const _default: (props: ILevelCenter) => JSX.Element;
15
15
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -11,5 +11,5 @@ export interface IMapDrawSelectProps {
11
11
  drawEnd?: (points: MapPoint[]) => void;
12
12
  onPointClick?: (point: MapPoint) => void;
13
13
  }
14
- declare const _default: any;
14
+ declare const _default: (props: IMapDrawSelectProps) => JSX.Element;
15
15
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../Player/style/iconfont';
2
3
  import './index.less';
3
4
  export interface IResetTools {
@@ -23,5 +23,5 @@ export interface ISinglePlayerProps {
23
23
  }) => void;
24
24
  children?: React.ReactNode;
25
25
  }
26
- declare const _default: any;
26
+ declare const _default: (props: ISinglePlayerProps) => JSX.Element;
27
27
  export default _default;
package/es/Map/icon.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare const LevelCenterCenterSvg = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"28px\" height=\"40px\" viewBox=\"0 0 28 40\" version=\"1.1\"><defs><linearGradient x1=\"6.38826004%\" y1=\"96.2639042%\" x2=\"66.7998206%\" y2=\"14.972142%\" id=\"linearGradient-1\"><stop stop-color=\"#000000\" stop-opacity=\"0.2\" offset=\"0%\"/><stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"/></linearGradient></defs><g id=\"Img/Add\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><path d=\"M22,28 L28,28 L15.2872963,39.7348034 C15.102574,39.9053163 14.8604062,40 14.6090162,40 L14,40 C13.7238576,40 13.5,39.7761424 13.5,39.5 C13.5,39.3918149 13.5350889,39.2865481 13.6,39.2 L22,28 Z\" id=\"Rectangle\" fill=\"url(#linearGradient-1)\"/><path d=\"M11,23 L17,23 L15.103901,39.1168412 C15.0446525,39.6204542 14.6178366,40 14.1107504,40 L13.8892496,40 C13.3821634,40 12.9553475,39.6204542 12.896099,39.1168412 L11,23 Z\" id=\"Rectangle\" fill=\"#FF8800\"/><circle id=\"Oval\" stroke=\"#FF8800\" fill=\"#FFAA00\" cx=\"14\" cy=\"12\" r=\"11.5\"/><circle id=\"Oval\" fill=\"#FF8800\" cx=\"15\" cy=\"13\" r=\"4\"/><circle id=\"Oval\" fill=\"#FFFFFF\" cx=\"14\" cy=\"12\" r=\"4\"/></g></svg>";
2
- export declare function createMapCenterIcon(): any;
2
+ export declare function createMapCenterIcon(): import("leaflet").DivIcon;
package/es/Map/index.d.ts CHANGED
@@ -1,14 +1,24 @@
1
+ /// <reference types="react" />
2
+ import ClusterLayer from './ClusterLayer';
3
+ import Config from './Config';
4
+ import Context from './Context';
5
+ import FindPio from './FindPio';
6
+ import LoaderMap from './LoaderMap';
7
+ import BasicMap from './BasicMap';
8
+ import ResetTools from './ResetTools';
9
+ import useMarker from './useMarker';
10
+ import withMap from './withMap';
1
11
  declare const Map: {
2
- ClusterLayer: any;
3
- Config: any;
4
- Context: any;
5
- FindPio: any;
6
- LevelCenter: any;
7
- LoaderMap: any;
8
- BasicMap: any;
9
- ResetTools: any;
10
- SinglePoint: any;
11
- useMarker: any;
12
- withMap: any;
12
+ ClusterLayer: typeof ClusterLayer;
13
+ Config: typeof Config;
14
+ Context: typeof Context;
15
+ FindPio: typeof FindPio;
16
+ LevelCenter: (props: import("./LevelCenter").ILevelCenter) => JSX.Element;
17
+ LoaderMap: typeof LoaderMap;
18
+ BasicMap: typeof BasicMap;
19
+ ResetTools: typeof ResetTools;
20
+ SinglePoint: (props: import("./SinglePoint").ISinglePlayerProps) => JSX.Element;
21
+ useMarker: typeof useMarker;
22
+ withMap: typeof withMap;
13
23
  };
14
24
  export default Map;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare function withMap<P>(Component: any, className?: string): (props: P) => JSX.Element;
2
3
  export default withMap;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -7,18 +7,18 @@ declare namespace Modal {
7
7
  className: string;
8
8
  getContainer: boolean;
9
9
  };
10
- var info: any;
11
- var success: any;
12
- var error: any;
13
- var warn: any;
14
- var warning: any;
15
- var confirm: any;
16
- var destroyAll: any;
10
+ var info: import("antd/lib/modal/confirm").ModalFunc;
11
+ var success: import("antd/lib/modal/confirm").ModalFunc;
12
+ var error: import("antd/lib/modal/confirm").ModalFunc;
13
+ var warn: import("antd/lib/modal/confirm").ModalFunc;
14
+ var warning: import("antd/lib/modal/confirm").ModalFunc;
15
+ var confirm: import("antd/lib/modal/confirm").ModalFunc;
16
+ var destroyAll: () => void;
17
17
  var useModal: (prefixCls?: string) => {
18
18
  open: (options: IUseModalHookState) => void;
19
19
  close: () => void;
20
20
  };
21
- var useAntdModal: any;
21
+ var useAntdModal: typeof import("antd/lib/modal/useModal").default;
22
22
  var RefModal: React.ForwardRefExoticComponent<IModalProps & React.RefAttributes<IRefModalMethodsProps>>;
23
23
  }
24
24
  export interface IUseModalHookState {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RectType } from '../../interface';
2
3
  interface IRectInfoProps {
3
4
  item: RectType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RectType } from '../../interface';
2
3
  import './index.less';
3
4
  interface IDefaultRectsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuRectType } from '../../interface';
2
3
  import './index.less';
3
4
  interface IDrawRectProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuRectType } from '../../../Picture/interface';
2
3
  import './index.less';
3
4
  interface IRectMenuProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface IWheelScaleProps {
2
3
  dom: HTMLElement;
3
4
  setScale: (scale: number) => void;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function App(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IPictureProps } from './interface';
2
3
  import './index.less';
3
4
  declare function Picture({ className, width, height, minHeight, disabledDrag, imagePath, rects, isOpenSelect, disabledDrawMenu, menus, hasTool, fullScreenEle, ...props }: IPictureProps): JSX.Element;
@@ -7,7 +7,7 @@ export declare function computedRectScale({ imageSource, domImg, rects }: {
7
7
  domImg: HTMLImageElement;
8
8
  rects: RectType[];
9
9
  }): {
10
- rect: any;
10
+ rect: number[];
11
11
  type: ImageType;
12
12
  needExpand?: boolean | undefined;
13
13
  imgId?: string | undefined;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare function Time(): JSX.Element;
2
3
  export default Time;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function Empty(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type Api from './api';
2
3
  import type VideoEventInstance from './event';
3
4
  interface IFPSPlay {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IFrontendPlayerProps } from './player';
2
3
  /**
3
4
  * @desc 主组件,负责片段整体逻辑控制
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './style/timeline.less';
2
3
  interface ITimeLineProps {
3
4
  duration: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IIconFontProps } from '../IconFont';
2
3
  import './style/iconfont.js';
3
4
  declare function IconFont({ className, ...props }: IIconFontProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './style/message.less';
2
3
  declare function VideoMessage(): JSX.Element;
3
4
  export declare const NoSource: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ISegmentPlayerProps } from './player';
2
3
  /**
3
4
  * @desc 主组件,负责片段整体逻辑控制
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ISegmentType } from './player';
2
3
  import './style/timeline.less';
3
4
  interface ITimeLineProps {
@@ -1,4 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import './style/timeline.less';
2
- export declare function useTimes(): any[];
3
+ export declare function useTimes(): number[];
3
4
  declare function TimeLine(): JSX.Element;
4
5
  export default TimeLine;
@@ -1,5 +1,6 @@
1
1
  import Flvjs from '@cloud-app-dev/flv.js';
2
2
  import Hls, { HlsConfig } from 'hls.js';
3
+ import type VideoEventInstance from './event';
3
4
  import type { FlvPlayerConfig } from './player';
4
5
  export declare function tryCatch(fn: () => void | Promise<any>): Promise<void>;
5
6
  /**
@@ -21,7 +22,7 @@ export declare function createFlvPlayer(video: HTMLVideoElement, url?: string, i
21
22
  * @param hls
22
23
  * @returns
23
24
  */
24
- export declare const playUnload: (video?: HTMLVideoElement, flv?: any, hls?: any) => void;
25
+ export declare const playUnload: (video?: HTMLVideoElement, flv?: Flvjs.Player, hls?: Hls) => void;
25
26
  /**
26
27
  * reload
27
28
  * @param video
@@ -30,7 +31,7 @@ export declare const playUnload: (video?: HTMLVideoElement, flv?: any, hls?: any
30
31
  * @param hls
31
32
  * @param url
32
33
  */
33
- export declare const playReload: (video?: HTMLVideoElement, event?: any, flv?: any, hls?: any, url?: string) => undefined;
34
+ export declare const playReload: (video?: HTMLVideoElement, event?: VideoEventInstance, flv?: Flvjs.Player, hls?: Hls, url?: string) => undefined;
34
35
  /**
35
36
  * 获取播放文件类型
36
37
  * @param {*} url
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ISegmentType } from "../Player/player";
2
3
  import './index.less';
3
4
  export declare type PlayModeType = 1 | 2;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProgressComponentProps {
3
4
  status: 'over' | 'error' | 'loading';
package/es/ROI/demo.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const App: () => JSX.Element;
2
3
  export default App;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import type { ILivePlayerProps } from './interface';
3
4
  declare function LivePlayer({ list, children, oneWinExtTools, allWinExtTools, ...props }: ILivePlayerProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface IRatePick {
2
3
  onChange: (rate: number) => void;
3
4
  value: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import type { IRecordPlayerProps } from './interface';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface IScreenSelect {
2
3
  screenNum: number;
3
4
  updateState: (arg: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ISegmentType } from '../Player/player';
2
3
  interface ISegmentTimeLineProps {
3
4
  begin?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ITimeModeProps {
2
3
  timeMode: number;
3
4
  onChange: (timeMode: number) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ITimeSelectProps {
2
3
  time?: number;
3
4
  onChange?: (time: number) => void;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function App(): JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function App(): JSX.Element;
@@ -1,5 +1,6 @@
1
+ /// <reference types="react" />
1
2
  declare const Sceenplayer: {
2
- LivePlayer: any;
3
- RecordPlayer: any;
3
+ LivePlayer: import("react").ComponentType<import("./interface").ILivePlayerProps>;
4
+ RecordPlayer: import("react").ComponentType<import("./interface").IRecordPlayerProps>;
4
5
  };
5
6
  export default Sceenplayer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ISegmentType } from '../Player/player';
2
3
  export interface ITimeSliderOptions {
3
4
  hoursPer: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  export default function useVideoFit(containerRef: React.RefObject<HTMLDivElement>, deps?: any[]): {
3
- fit: any;
4
- toggleFit: any;
3
+ fit: string;
4
+ toggleFit: () => void;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="test/typings/global" />
2
- import { AxiosRequestConfig, AxiosPromise } from 'axios';
2
+ import { AxiosPromise, AxiosRequestConfig } from 'axios';
3
3
  export interface AxiosFetchRequestConfig extends AxiosRequestConfig<BodyInit> {
4
4
  mode?: RequestMode;
5
5
  body?: BodyInit;
@@ -13,10 +13,10 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
13
13
  /* eslint-disable @typescript-eslint/triple-slash-reference */
14
14
  /// <reference path="../../typings/global.d.ts"/>
15
15
  import { AxiosError } from 'axios';
16
+ import CanceledError from 'axios/lib/cancel/CanceledError';
17
+ import buildFullPath from 'axios/lib/core/buildFullPath';
16
18
  import settle from 'axios/lib/core/settle';
17
19
  import buildURL from 'axios/lib/helpers/buildURL';
18
- import buildFullPath from 'axios/lib/core/buildFullPath';
19
- import CanceledError from 'axios/lib/cancel/CanceledError';
20
20
  import { isUndefined } from 'lodash-es';
21
21
  export default function fetchAdapter(config) {
22
22
  return new Promise(function (resolve, reject) {
@@ -1,5 +1,5 @@
1
1
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
2
- export type RsponseType = AxiosRequestConfig & { requestId?: string; cancelHttp?: (cancel: (o?:any) => void) => void; loggerIndex?: number };
2
+ export type RsponseType = AxiosRequestConfig & { requestId?: string; cancelHttp?: (cancel: (o?: any) => void) => void; loggerIndex?: number };
3
3
 
4
4
  export type XHRResponse = {
5
5
  url: string;
@@ -20,4 +20,3 @@ export type IServiceInterface = {
20
20
  registerResponseMiddleware(fn: MiddleWareType): void;
21
21
  registerResponseErrorMiddleware(fn: MiddleWareType): void;
22
22
  };
23
-
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './demo.less';
2
3
  declare const App: () => JSX.Element;
3
4
  export default App;
@@ -25,7 +25,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
25
25
  import { jsxs as _jsxs } from "react/jsx-runtime";
26
26
 
27
27
  var App = function App() {
28
- var ref = useRef();
28
+ var ref = useRef(null);
29
29
  return /*#__PURE__*/_jsx(_ConfigProvider, {
30
30
  prefixCls: "cloudapp",
31
31
  children: /*#__PURE__*/_jsx(ThemeAntd, {
@@ -15,4 +15,6 @@
15
15
  --table-head-bg: #1d4788;
16
16
  --table-row-hover-color: #1d4788;
17
17
  --radius1: 4px;
18
+ --color1: #fff;
19
+ --color: #333;
18
20
  }
@@ -16,7 +16,7 @@ div {
16
16
 
17
17
  .@{ant-prefix}-btn-primary:hover,
18
18
  .@{ant-prefix}-btn-primary:focus {
19
- color: var(--color);
19
+ color: #fff;
20
20
  background: var(--primary-dark);
21
21
  border-color: var(--primary-dark);
22
22
  }
@@ -25,7 +25,7 @@ div {
25
25
  .@{ant-prefix}-btn-primary[disabled]:hover,
26
26
  .@{ant-prefix}-btn-primary[disabled]:focus,
27
27
  .@{ant-prefix}-btn-primary[disabled]:active {
28
- color: var(--color);
28
+ color: #fff;
29
29
  background: var(--primary-dark);
30
30
  opacity: .8;
31
31
  border-color: var(--primary-dark);
@@ -49,7 +49,7 @@ div {
49
49
 
50
50
  .@{ant-prefix}-btn-danger:hover,
51
51
  .@{ant-prefix}-btn-danger:focus {
52
- color: var(--color);
52
+ color: #fff;
53
53
  background: var(--danger-dark);
54
54
  border-color: var(--danger-dark);
55
55
  }
@@ -35,6 +35,7 @@ div {
35
35
 
36
36
  .@{ant-prefix}-pagination-item-active {
37
37
  border-color: var(--form-active-bg);
38
+ color: var(--form-active-bg);
38
39
  }
39
40
 
40
41
  .@{ant-prefix}-pagination-item:focus,
@@ -44,7 +45,7 @@ div {
44
45
 
45
46
  .@{ant-prefix}-pagination-item:focus a,
46
47
  .@{ant-prefix}-pagination-item:hover a {
47
- color: var(--color);
48
+ color: var(--form-active-bg);
48
49
  }
49
50
 
50
51
  .@{ant-prefix}-pagination-prev:focus:not(.@{ant-prefix}-pagination-disabled) .@{ant-prefix}-pagination-item-link,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { BasicTarget } from 'ahooks/es/utils/domTarget';
2
3
  interface ITimeoutProps {
3
4
  /**
package/es/Tree/demo.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare function App(): JSX.Element;
2
3
  export default App;
@@ -20,5 +20,5 @@ export interface BaseTreeProps extends Omit<TreeProps, 'icon'> {
20
20
  treeNodeProps?: ITreeNodeProps;
21
21
  icon?: (node: DataNode) => JSX.Element;
22
22
  }
23
- declare const BTree: React.ForwardRefExoticComponent<Pick<BaseTreeProps, keyof BaseTreeProps> & React.RefAttributes<any>>;
23
+ declare const BTree: React.ForwardRefExoticComponent<BaseTreeProps & React.RefAttributes<any>>;
24
24
  export default BTree;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IVListProps<T> {
3
4
  data?: Array<T>;
@@ -5,12 +5,12 @@ interface ROIOptions {
5
5
  defaultAreas?: [number, number][][];
6
6
  }
7
7
  declare function useDrawROI(target: BasicTarget<HTMLCanvasElement>, { row, rowItems, defaultAreas }: ROIOptions): {
8
- open: () => any;
9
- close: () => any;
10
- clear: () => any;
8
+ open: () => void;
9
+ close: () => void;
10
+ clear: () => void;
11
11
  rio: number[][];
12
12
  status: string;
13
- areas: any;
13
+ areas: [number, number][][];
14
14
  deleteArea: (area: number[][]) => void;
15
15
  };
16
16
  export default useDrawROI;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function App(): JSX.Element;
@@ -1,11 +1,12 @@
1
+ import type { BasicTarget } from 'ahooks/es/utils/domTarget';
1
2
  export interface Options {
2
3
  onExit?: () => void;
3
4
  onEnter?: () => void;
4
5
  }
5
6
  declare const useFullscreen: (target: BasicTarget, options?: Options) => readonly [boolean, {
6
- readonly enterFullscreen: any;
7
- readonly exitFullscreen: any;
8
- readonly toggleFullscreen: any;
9
- readonly isEnabled: any;
7
+ readonly enterFullscreen: () => void;
8
+ readonly exitFullscreen: () => void;
9
+ readonly toggleFullscreen: () => void;
10
+ readonly isEnabled: boolean;
10
11
  }];
11
12
  export default useFullscreen;
@@ -1,3 +1,3 @@
1
- import { VHistory } from "./interface.d";
1
+ import { VHistory } from './interface.d';
2
2
  declare function useHistory(): VHistory;
3
3
  export default useHistory;
@@ -1,4 +1,3 @@
1
- import {History} from 'history';
1
+ import { History } from 'history';
2
2
 
3
-
4
- export type VHistory = History
3
+ export type VHistory = History;
@@ -9,5 +9,5 @@ export interface Options<T> {
9
9
  declare const useVirtualList: <T = any>(list: T[], options: Options<T>) => readonly [{
10
10
  index: number;
11
11
  data: T;
12
- }[], any];
12
+ }[], (index: number) => void];
13
13
  export default useVirtualList;
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": "3.2.20",
5
+ "version": "3.2.22",
6
6
  "scripts": {
7
7
  "docs:deploy": "gh-pages -d docs-dist",
8
8
  "build": "npm run entry && father build",
package/tsconfig.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "target": "ES6",
8
8
  "jsx": "react",
9
9
  "baseUrl": "./",
10
+ "moduleResolution": "node",
10
11
  "paths": {
11
12
  "@@/*": [".dumi/tmp/*"],
12
13
  "test/*": ["src/*", "*"]