cortex-react-ui 0.2.8 → 0.2.9
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/lib/cjs/Camera/Camera.d.ts +1 -0
- package/lib/cjs/Map/components/DrawTools.d.ts +0 -2
- package/lib/cjs/Map/components/Maps.d.ts +0 -3
- package/lib/cjs/Map/index.d.ts +1 -1
- package/lib/cjs/Map/utils/httpService.d.ts +16 -0
- package/lib/cjs/index.js +5 -5
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/Camera/Camera.d.ts +1 -0
- package/lib/esm/Map/components/DrawTools.d.ts +0 -2
- package/lib/esm/Map/components/Maps.d.ts +0 -3
- package/lib/esm/Map/index.d.ts +1 -1
- package/lib/esm/Map/utils/httpService.d.ts +16 -0
- package/lib/esm/index.js +5 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/index.d.ts +5 -10
- package/lib/styles/Camera/index.css +4 -0
- package/lib/styles/Scanner/index.css +75 -0
- package/package.json +4 -14
- package/lib/cjs/Map/Map.d.ts +0 -16
- package/lib/esm/Map/Map.d.ts +0 -16
- package/lib/styles/Scanner/index.scss +0 -110
|
@@ -4,9 +4,7 @@ export type DrawToolsProps = {
|
|
|
4
4
|
position?: ControlPosition | undefined;
|
|
5
5
|
handleOnCreated?: (v: void) => void;
|
|
6
6
|
handleOnDeleted?: (v: void) => void;
|
|
7
|
-
handleOnEdited?: (v: void) => void;
|
|
8
7
|
draw?: drawType;
|
|
9
|
-
editable?: boolean;
|
|
10
8
|
};
|
|
11
9
|
export type drawType = {
|
|
12
10
|
polyline?: boolean;
|
package/lib/esm/Map/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './
|
|
1
|
+
export { default } from './App';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface IHttpOption {
|
|
2
|
+
token?: string;
|
|
3
|
+
headers?: KeyValue<string, string>[];
|
|
4
|
+
}
|
|
5
|
+
export declare class HttpResponse<T = any> {
|
|
6
|
+
status: number;
|
|
7
|
+
data: T | null;
|
|
8
|
+
error: string | null;
|
|
9
|
+
}
|
|
10
|
+
export default class HttpService {
|
|
11
|
+
static get: <T = any>(url: string, params: Record<string, any>, options?: IHttpOption) => Promise<HttpResponse<T>>;
|
|
12
|
+
static post: <T = any>(url: string, data: any, options?: IHttpOption) => Promise<HttpResponse<T>>;
|
|
13
|
+
static put: <T = any>(url: string, data: any, options?: IHttpOption) => Promise<HttpResponse<T>>;
|
|
14
|
+
static delete: <T = any>(url: string, params: Record<string, any>, options?: IHttpOption) => Promise<HttpResponse<T>>;
|
|
15
|
+
}
|
|
16
|
+
export {};
|