@glodon-aiot/dataset-annotation 3.19.0-alpha.20 → 3.19.0-alpha.21
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/es/components/VLMAnnotationDetail/VLMDetail/index.mjs +175 -175
- package/dist/es/createClassificationDatasetAnnotation/index.mjs +100 -84
- package/dist/es/createDatasetAnnotation/index.mjs +100 -84
- package/dist/es/createDetectionDatasetAnnotation/index.mjs +105 -89
- package/dist/es/createOcrDatasetAnnotation/index.mjs +103 -87
- package/dist/es/createVlmtasetAnnotation/index.mjs +103 -87
- package/dist/es/index.mjs +1 -1
- package/dist/es/utils/index.mjs +44 -17
- package/dist/lib/index.js +3 -3
- package/dist/src/DatasetContext/index.d.ts +2 -1
- package/dist/src/api.d.ts +2 -1
- package/dist/src/createClassificationDatasetAnnotation/index.d.ts +2 -1
- package/dist/src/createDatasetAnnotation/index.d.ts +2 -1
- package/dist/src/createDetectionDatasetAnnotation/index.d.ts +2 -1
- package/dist/src/createOcrDatasetAnnotation/index.d.ts +2 -1
- package/dist/src/createVlmtasetAnnotation/index.d.ts +2 -1
- package/dist/src/featuresConfig.d.ts +2 -1
- package/dist/src/utils/index.d.ts +5 -0
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AIShopApi, CVForceDatahubApi, IDataSet, IPagination, ISample, IVersion, ModelServiceApi } from '@glodon-aiot/apis';
|
|
2
2
|
import { FeaturesConfig } from '../featuresConfig';
|
|
3
|
+
import { TokenGetter } from '../utils';
|
|
3
4
|
interface DatasetDetails {
|
|
4
5
|
datasetId: string;
|
|
5
6
|
versionId: string;
|
|
@@ -16,7 +17,7 @@ interface DatasetDetails {
|
|
|
16
17
|
aiShop?: AIShopApi;
|
|
17
18
|
};
|
|
18
19
|
token?: string;
|
|
19
|
-
getToken?:
|
|
20
|
+
getToken?: TokenGetter;
|
|
20
21
|
apiUrl?: string;
|
|
21
22
|
featuresConfig?: FeaturesConfig;
|
|
22
23
|
}
|
package/dist/src/api.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { CVForceDatahubApi } from '@glodon-aiot/apis';
|
|
2
|
-
|
|
2
|
+
import { TokenGetter } from './utils';
|
|
3
|
+
export declare function getCVForceDatahubService(apiBase: string, token: string, errorHandler: (status: number, message: string) => void, getToken?: TokenGetter): CVForceDatahubApi;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { TokenGetter } from '../utils';
|
|
1
2
|
import { FeaturesConfig } from '../featuresConfig';
|
|
2
3
|
export type DatasetAnnotation = 'manage' | 'label' | 'view';
|
|
3
4
|
export interface DatasetAnnotationConfig extends FeaturesConfig {
|
|
4
5
|
getContainer: () => HTMLElement;
|
|
5
6
|
token: string;
|
|
6
|
-
getToken?:
|
|
7
|
+
getToken?: TokenGetter;
|
|
7
8
|
datasetId: string;
|
|
8
9
|
versionId?: string;
|
|
9
10
|
apiUrl?: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { TokenGetter } from '../utils';
|
|
1
2
|
import { FeaturesConfig } from '../featuresConfig';
|
|
2
3
|
export type DatasetAnnotation = 'manage' | 'label' | 'view';
|
|
3
4
|
export interface DatasetAnnotationConfig extends FeaturesConfig {
|
|
4
5
|
getContainer: () => HTMLElement;
|
|
5
6
|
token: string;
|
|
6
|
-
getToken?:
|
|
7
|
+
getToken?: TokenGetter;
|
|
7
8
|
datasetId: string;
|
|
8
9
|
versionId?: string;
|
|
9
10
|
apiUrl?: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { TokenGetter } from '../utils';
|
|
1
2
|
import { FeaturesConfig } from '../featuresConfig';
|
|
2
3
|
export type DatasetAnnotation = 'manage' | 'label' | 'view';
|
|
3
4
|
export interface DatasetAnnotationConfig extends FeaturesConfig {
|
|
4
5
|
getContainer: () => HTMLElement;
|
|
5
6
|
token: string;
|
|
6
|
-
getToken?:
|
|
7
|
+
getToken?: TokenGetter;
|
|
7
8
|
datasetId: string;
|
|
8
9
|
versionId?: string;
|
|
9
10
|
apiUrl?: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { TokenGetter } from '../utils';
|
|
1
2
|
import { FeaturesConfig } from '../featuresConfig';
|
|
2
3
|
export type DatasetAnnotation = 'manage' | 'label' | 'view';
|
|
3
4
|
export interface DatasetAnnotationConfig extends FeaturesConfig {
|
|
4
5
|
getContainer: () => HTMLElement;
|
|
5
6
|
token: string;
|
|
6
|
-
getToken?:
|
|
7
|
+
getToken?: TokenGetter;
|
|
7
8
|
datasetId: string;
|
|
8
9
|
versionId?: string;
|
|
9
10
|
apiUrl?: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { TokenGetter } from '../utils';
|
|
1
2
|
import { FeaturesConfig } from '../featuresConfig';
|
|
2
3
|
export type DatasetAnnotation = 'manage' | 'label' | 'view';
|
|
3
4
|
export interface DatasetAnnotationConfig extends FeaturesConfig {
|
|
4
5
|
getContainer: () => HTMLElement;
|
|
5
6
|
token: string;
|
|
6
|
-
getToken?:
|
|
7
|
+
getToken?: TokenGetter;
|
|
7
8
|
datasetId: string;
|
|
8
9
|
versionId?: string;
|
|
9
10
|
apiUrl?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AIShopApi, CVForceDatahubApi, IVersion, ModelServiceApi } from '@glodon-aiot/apis';
|
|
2
|
+
import { TokenGetter } from './utils';
|
|
2
3
|
export interface LabelManager {
|
|
3
4
|
visible?: boolean;
|
|
4
5
|
add?: boolean;
|
|
@@ -46,7 +47,7 @@ export interface AnnotationProps extends FeaturesConfig {
|
|
|
46
47
|
};
|
|
47
48
|
backTo?: string;
|
|
48
49
|
token?: string;
|
|
49
|
-
getToken?:
|
|
50
|
+
getToken?: TokenGetter;
|
|
50
51
|
apiUrl?: string;
|
|
51
52
|
}
|
|
52
53
|
export declare const EXAMPLE_SRC_ROOT = "https://cv-aiot.obs.cn-north-4.myhuaweicloud.com:443/demodata";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { IDataSet, IVersion } from '@glodon-aiot/apis';
|
|
2
2
|
export declare const parseJWT: (token: string) => any;
|
|
3
3
|
export declare const isExpired: (token: string) => boolean;
|
|
4
|
+
export interface TokenGetterOptions {
|
|
5
|
+
forceRefresh?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type TokenGetter = (options?: TokenGetterOptions) => string | undefined | Promise<string | undefined>;
|
|
8
|
+
export declare const createTokenResolver: (token?: string, getToken?: TokenGetter) => () => Promise<string | undefined>;
|
|
4
9
|
export declare const removeNewlines: (str: string) => string;
|
|
5
10
|
export declare const removeLeadingAndTrailingBackslashes: (str: string) => string;
|
|
6
11
|
export declare const tagColors: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/dataset-annotation",
|
|
3
|
-
"version": "3.19.0-alpha.
|
|
3
|
+
"version": "3.19.0-alpha.21",
|
|
4
4
|
"module": "./dist/es/index.mjs",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ant-design/icons": "^5.3.4",
|
|
39
39
|
"@aws-crypto/sha256-js": "^3.0.0",
|
|
40
|
-
"@glodon-aiot/apis": "^3.19.0-alpha.
|
|
40
|
+
"@glodon-aiot/apis": "^3.19.0-alpha.21",
|
|
41
41
|
"@glodon-aiot/minio": "^0.1.6",
|
|
42
42
|
"@reduxjs/toolkit": "^1.9.5",
|
|
43
43
|
"@types/fabric": "^5.3.2",
|