@glodon-aiot/dataset-annotation 3.1.0-beta.15 → 3.2.1

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 (121) hide show
  1. package/dist/dataset-annotation.js +123591 -0
  2. package/dist/dataset-annotation.umd.cjs +1017 -0
  3. package/dist/example/DatasetAnnotationDemo.d.ts +3 -0
  4. package/dist/example/DemoTabs.d.ts +3 -0
  5. package/dist/example/DetectionDatasetDemo.d.ts +5 -0
  6. package/dist/example/DetectionImageDemo.d.ts +5 -0
  7. package/dist/example/OcrDatasetDemo.d.ts +5 -0
  8. package/dist/example/OcrImageDemo.d.ts +5 -0
  9. package/dist/example/OcrkvcDatasetDemo.d.ts +5 -0
  10. package/dist/example/constant.local.d.ts +6 -0
  11. package/dist/example/index.d.ts +1 -0
  12. package/dist/src/Common/Page/index.d.ts +2 -1
  13. package/dist/src/Common/PageHeader/index.d.ts +1 -0
  14. package/dist/src/DatasetContext/index.d.ts +4 -3
  15. package/dist/src/components/CompositionInput/index.d.ts +2 -2
  16. package/dist/src/components/DataEmpty/index.d.ts +2 -1
  17. package/dist/src/components/DetectionAnnotation/PreSamplesPage/index.d.ts +2 -1
  18. package/dist/src/components/DetectionAnnotation/components/DisabledTooltip/index.d.ts +2 -2
  19. package/dist/src/components/DetectionAnnotation/components/ImageDetail/index.d.ts +2 -1
  20. package/dist/src/components/DetectionAnnotation/components/LabelMaker/Drawable.d.ts +2 -2
  21. package/dist/src/components/DetectionAnnotation/components/LabelMaker/RectLabel.d.ts +2 -2
  22. package/dist/src/components/DetectionAnnotation/components/LabelMaker/index.d.ts +1 -0
  23. package/dist/src/components/DetectionAnnotation/components/Labels/index.d.ts +1 -0
  24. package/dist/src/components/DetectionAnnotation/components/TagItem/index.d.ts +2 -1
  25. package/dist/src/components/DetectionAnnotation/index.d.ts +2 -1
  26. package/dist/src/components/DetectionImageAnnotation/index.d.ts +2 -0
  27. package/dist/src/components/Iconfont/index.d.ts +1 -1
  28. package/dist/src/components/MarkDescriptions/index.d.ts +1 -0
  29. package/dist/src/components/OCRImageViewer/index.d.ts +2 -1
  30. package/dist/src/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorInput.d.ts +2 -2
  31. package/dist/src/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorItem.d.ts +2 -1
  32. package/dist/src/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LableEditor.d.ts +1 -0
  33. package/dist/src/components/OcrAnnotation/MarkKVOCRModal/index.d.ts +1 -0
  34. package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/ImageDetail/index.d.ts +2 -1
  35. package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/LabelEditorInput.d.ts +2 -2
  36. package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/LabelEditorItem.d.ts +1 -0
  37. package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/LableEditor.d.ts +1 -0
  38. package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/index.d.ts +1 -0
  39. package/dist/src/components/OcrAnnotation/MarkOCRBoxModal/index.d.ts +1 -0
  40. package/dist/src/components/OcrAnnotation/OcrModal/index.d.ts +2 -1
  41. package/dist/src/components/OcrAnnotation/PreLabelOCR/PreLabelModal.d.ts +2 -1
  42. package/dist/src/components/OcrAnnotation/PreLabelOCR/index.d.ts +2 -1
  43. package/dist/src/components/OcrAnnotation/index.d.ts +2 -1
  44. package/dist/src/components/OcrImageAnnotation/index.d.ts +2 -0
  45. package/dist/src/components/PageNav/index.d.ts +2 -1
  46. package/dist/src/components/PicZipImportModal/index.d.ts +2 -1
  47. package/dist/src/components/PreLabelOCR/PreLabelModal.d.ts +2 -1
  48. package/dist/src/components/PreLabelOCR/index.d.ts +2 -1
  49. package/dist/src/components/ScanTable/index.d.ts +2 -1
  50. package/dist/src/components/Thumbnail/index.d.ts +2 -1
  51. package/dist/src/components/hooks/useBlocker.d.ts +1 -1
  52. package/dist/src/featuresConfig.d.ts +1 -1
  53. package/package.json +15 -22
  54. package/dist/es/Common/Page/index.mjs +0 -28
  55. package/dist/es/Common/PageContent/index.mjs +0 -18
  56. package/dist/es/Common/PageHeader/index.mjs +0 -38
  57. package/dist/es/DatasetContext/index.mjs +0 -11
  58. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -6
  59. package/dist/es/_virtual/index.mjs +0 -4
  60. package/dist/es/access/images/data_empty.svg.mjs +0 -4
  61. package/dist/es/components/CompositionInput/index.mjs +0 -53
  62. package/dist/es/components/DataEmpty/index.mjs +0 -50
  63. package/dist/es/components/DetectionAnnotation/PreSamplesPage/index.mjs +0 -291
  64. package/dist/es/components/DetectionAnnotation/components/DisabledTooltip/index.mjs +0 -23
  65. package/dist/es/components/DetectionAnnotation/components/ImageDetail/index.mjs +0 -165
  66. package/dist/es/components/DetectionAnnotation/components/LabelMaker/Drawable.mjs +0 -51
  67. package/dist/es/components/DetectionAnnotation/components/LabelMaker/FabricCustomize.mjs +0 -42
  68. package/dist/es/components/DetectionAnnotation/components/LabelMaker/RectLabel.mjs +0 -283
  69. package/dist/es/components/DetectionAnnotation/components/LabelMaker/icons/delete-icon.svg.mjs +0 -4
  70. package/dist/es/components/DetectionAnnotation/components/LabelMaker/index.mjs +0 -314
  71. package/dist/es/components/DetectionAnnotation/components/Labels/index.mjs +0 -200
  72. package/dist/es/components/DetectionAnnotation/components/TagItem/index.mjs +0 -143
  73. package/dist/es/components/DetectionAnnotation/icon_item_empty.svg.mjs +0 -4
  74. package/dist/es/components/DetectionAnnotation/index.mjs +0 -712
  75. package/dist/es/components/DetectionImageAnnotation/index.mjs +0 -61
  76. package/dist/es/components/Iconfont/index.mjs +0 -16
  77. package/dist/es/components/MarkDescriptions/index.mjs +0 -65
  78. package/dist/es/components/OCRImageViewer/index.mjs +0 -212
  79. package/dist/es/components/OcrAnnotation/MarkKVOCRModal/CategoryDrawer.mjs +0 -136
  80. package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorInput.mjs +0 -57
  81. package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LabelEditorItem.mjs +0 -72
  82. package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/LableEditor.mjs +0 -54
  83. package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/index.mjs +0 -366
  84. package/dist/es/components/OcrAnnotation/MarkKVOCRModal/index.mjs +0 -254
  85. package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/ImageDetail/index.mjs +0 -100
  86. package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/images/delete.png.mjs +0 -4
  87. package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/index.mjs +0 -755
  88. package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/index.mjs +0 -230
  89. package/dist/es/components/OcrAnnotation/OcrModal/index.mjs +0 -179
  90. package/dist/es/components/OcrAnnotation/PreLabelOCR/PreLabelModal.mjs +0 -280
  91. package/dist/es/components/OcrAnnotation/PreLabelOCR/index.mjs +0 -43
  92. package/dist/es/components/OcrAnnotation/constant.mjs +0 -5
  93. package/dist/es/components/OcrAnnotation/index.mjs +0 -381
  94. package/dist/es/components/OcrImageAnnotation/index.mjs +0 -39
  95. package/dist/es/components/PageNav/index.mjs +0 -29
  96. package/dist/es/components/PicZipImportModal/index.mjs +0 -583
  97. package/dist/es/components/PicZipImportModal/pic_zip.svg.mjs +0 -4
  98. package/dist/es/components/PicZipImportModal/pic_zip_json.svg.mjs +0 -4
  99. package/dist/es/components/PreLabelOCR/PreLabelModal.mjs +0 -275
  100. package/dist/es/components/PreLabelOCR/index.mjs +0 -43
  101. package/dist/es/components/ScanTable/index.mjs +0 -96
  102. package/dist/es/components/Thumbnail/default.png.mjs +0 -4
  103. package/dist/es/components/Thumbnail/index.mjs +0 -30
  104. package/dist/es/components/hooks/Prompt.mjs +0 -33
  105. package/dist/es/constant.mjs +0 -13
  106. package/dist/es/createDatasetAnnotation/index.mjs +0 -133
  107. package/dist/es/createDetectionDatasetAnnotation/index.mjs +0 -129
  108. package/dist/es/createDetectionImageAnnotation/index.mjs +0 -31
  109. package/dist/es/createOcrDatasetAnnotation/index.mjs +0 -129
  110. package/dist/es/createOcrImageAnnotation/index.mjs +0 -33
  111. package/dist/es/featuresConfig.mjs +0 -79
  112. package/dist/es/index.mjs +0 -35
  113. package/dist/es/node_modules/classnames/index.mjs +0 -42
  114. package/dist/es/utils/color.mjs +0 -30
  115. package/dist/es/utils/index.mjs +0 -22
  116. package/dist/es/utils/sign.mjs +0 -33
  117. package/dist/lib/index.js +0 -7
  118. package/dist/src/components/Iconfont/font_3140028_iptomfpgyu.d.ts +0 -0
  119. package/dist/src/components/Iconfont/font_3454453_gu5ijeufyng.d.ts +0 -0
  120. package/dist/src/components/Iconfont/font_4108228_3slzqhoow93.d.ts +0 -0
  121. package/dist/src/components/Iconfont/font_4439177_k3mjwv7kzfd.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DatasetAnnotationDemo: React.FC;
3
+ export default DatasetAnnotationDemo;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DemoTabs: () => JSX.Element;
3
+ export default DemoTabs;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface DetectionDatasetDemoProps {
3
+ }
4
+ declare const DetectionDatasetDemo: React.FC<DetectionDatasetDemoProps>;
5
+ export default DetectionDatasetDemo;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface DetectionImageDemoProps {
3
+ }
4
+ declare const DetectionImageDemo: React.FC<DetectionImageDemoProps>;
5
+ export default DetectionImageDemo;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface OcrDatasetDemoProps {
3
+ }
4
+ declare const OcrDatasetDemo: React.FC<OcrDatasetDemoProps>;
5
+ export default OcrDatasetDemo;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface OcrImageDemoProps {
3
+ }
4
+ declare const OcrImageDemo: React.FC<OcrImageDemoProps>;
5
+ export default OcrImageDemo;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ interface OcrkvcDatasetDemoProps {
3
+ }
4
+ declare const OcrkvcDatasetDemo: React.FC<OcrkvcDatasetDemoProps>;
5
+ export default OcrkvcDatasetDemo;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 重要提示
3
+ * 必须替换自己的token, 可以是user token, 也可以是resource token
4
+ */
5
+ export declare const TEST_TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzkzNDc5NjksImlhdCI6MTczOTM0MzQzOCwicm8iOiJ1c2VyIiwidGVuIjoiZ2xkY3YiLCJ1aWQiOiIxOSJ9.au9CgObfa7LPvb7ZiwSqH1Eqbp0NdR3r0D9ea1-C4oo";
6
+ export declare const TEST_API_URL = "https://aiot-dev.glodon.com/api/aecpilotdev/data";
@@ -0,0 +1 @@
1
+ import './style.less';
@@ -1,4 +1,5 @@
1
- import { default as React, ReactElement } from 'react';
1
+ import React, { ReactElement } from 'react';
2
+ import './style.less';
2
3
  interface PageProps {
3
4
  className?: string;
4
5
  title?: string;
@@ -1,4 +1,5 @@
1
1
  import { PropsWithChildren, ReactNode } from 'react';
2
+ import './style.less';
2
3
  export interface PageHeaderProps {
3
4
  breadcrumb?: ReactNode;
4
5
  title: ReactNode;
@@ -1,5 +1,6 @@
1
- import { AIShopApi, CVForceDatahubApi, IDataSet, IPagination, ISample, IVersion, ModelServiceApi } from '@glodon-aiot/apis';
2
- import { FeaturesConfig } from '../featuresConfig';
1
+ /// <reference types="react" />
2
+ import { AIShopApi, CVForceDatahubApi, IDataSet, IPagination, ISample, IVersion, ModelServiceApi } from "@glodon-aiot/apis";
3
+ import { FeaturesConfig } from "../featuresConfig";
3
4
  interface DatasetDetails {
4
5
  datasetId: string;
5
6
  versionId: string;
@@ -17,5 +18,5 @@ interface DatasetDetails {
17
18
  };
18
19
  featuresConfig?: FeaturesConfig;
19
20
  }
20
- declare const DatasetContext: import('react').Context<DatasetDetails>;
21
+ declare const DatasetContext: import("react").Context<DatasetDetails>;
21
22
  export default DatasetContext;
@@ -1,5 +1,5 @@
1
- import { InputProps } from 'antd';
2
- import { default as React } from 'react';
1
+ import { InputProps } from "antd";
2
+ import React from "react";
3
3
  interface ICompositionInputProps extends Omit<InputProps, "onChange"> {
4
4
  onChange?: (value: string) => void;
5
5
  }
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  interface DataEmptyProps {
3
4
  emptyClassName?: string;
4
5
  emptyStyle?: React.CSSProperties;
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { ILabel, ISample } from '@glodon-aiot/apis';
3
4
  interface IPreSamplesProps {
4
5
  datasetId: string;
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- import { TooltipPlacement } from 'antd/es/tooltip';
1
+ import React from "react";
2
+ import { TooltipPlacement } from "antd/es/tooltip";
3
3
  interface ImageDetailProps {
4
4
  isPreLabel: boolean;
5
5
  placement?: TooltipPlacement;
@@ -1,4 +1,5 @@
1
- import { default as React, Dispatch, SetStateAction } from 'react';
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
+ import './style.less';
2
3
  import { ILabel, ISample } from '@glodon-aiot/apis';
3
4
  import { LabelItem } from '../../../DetectionImageAnnotation';
4
5
  interface ImageDetailProps {
@@ -1,5 +1,5 @@
1
- import { LabelBox } from '.';
2
- import { fabric } from 'fabric';
1
+ import { LabelBox } from ".";
2
+ import { fabric } from "fabric";
3
3
  /**
4
4
  * @name stopDraw 停止绘制
5
5
  * @param canvas fabric Canvas
@@ -1,5 +1,5 @@
1
- import { fabric } from 'fabric';
2
- import { Color } from '../../../../utils/color';
1
+ import { fabric } from "fabric";
2
+ import { Color } from "../../../../utils/color";
3
3
  type ControlName = "TL" | "BL" | "TR" | "BR" | "ML" | "MB" | "MR" | "MT" | "MTR";
4
4
  interface RectLabelConfig {
5
5
  id: string;
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { fabric } from 'fabric';
3
+ import './style.less';
3
4
  import { ILabel } from '@glodon-aiot/apis';
4
5
  import { LabelItem } from '../../../DetectionImageAnnotation';
5
6
  interface Point {
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  import { ILabel, Label } from '@glodon-aiot/apis';
3
4
  interface LabelsProps {
4
5
  datasetId: string;
@@ -1,4 +1,5 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
+ import './style.less';
2
3
  import { KeyFilter } from 'ahooks/lib/useKeyPress';
3
4
  export interface Tag {
4
5
  }
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { AnnotationProps } from '../../featuresConfig';
3
4
  interface DetectionAnnotationProps extends AnnotationProps {
4
5
  }
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
1
3
  import { ILabel, TInfer } from '@glodon-aiot/apis';
2
4
  export interface LabelExtra {
3
5
  [key: string]: any;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Iconfont: import('react').FC<import('@ant-design/icons/lib/components/IconFont').IconFontProps<string>>;
2
+ declare const Iconfont: import("react").FC<import("@ant-design/icons/lib/components/IconFont").IconFontProps<string>>;
3
3
  export default Iconfont;
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  import { Category, TInfer } from '@glodon-aiot/apis';
3
4
  interface MarkDescriptionsProps {
4
5
  labels: TInfer[];
@@ -1,4 +1,5 @@
1
- import { default as React, CSSProperties, ReactNode } from 'react';
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
+ import './style.less';
2
3
  import { TInfer } from '@glodon-aiot/apis';
3
4
  interface OCRImageViewerProps {
4
5
  url: string;
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { OCRLabel } from './LabelEditorItem';
1
+ import { FC } from "react";
2
+ import { OCRLabel } from "./LabelEditorItem";
3
3
  interface LabelEditorInputProps {
4
4
  value?: Partial<OCRLabel>;
5
5
  selected?: boolean;
@@ -1,4 +1,5 @@
1
- import { FC } from 'react';
1
+ import { FC } from "react";
2
+ import "./style.less";
2
3
  export interface OCRLabel {
3
4
  uuid: string;
4
5
  box: [number, number][];
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  import { OCRLabel } from './LabelEditorItem';
3
4
  import { Category } from '@glodon-aiot/apis';
4
5
  interface LabelEditorProps {
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  import { ISample } from '@glodon-aiot/apis';
3
4
  interface MarkKVOCRModalProps {
4
5
  visible: boolean;
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { Category, ILabel, ISample } from '@glodon-aiot/apis';
3
4
  import { LabelItem } from '../../../DetectionImageAnnotation';
4
5
  interface ImageDetailProps {
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
- import { OCRLabel } from './LabelEditorItem';
1
+ import { FC } from "react";
2
+ import { OCRLabel } from "./LabelEditorItem";
3
3
  interface LabelEditorInputProps {
4
4
  value?: Partial<OCRLabel>;
5
5
  selected?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  export interface OCRLabel {
3
4
  uuid: string;
4
5
  box: [number, number][];
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  import { OCRLabel } from './LabelEditorItem';
3
4
  import { Category } from '@glodon-aiot/apis';
4
5
  interface LabelEditorProps {
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { OCRLabel } from './LabelEditorItem';
3
+ import './style.less';
3
4
  import { LabelItem } from '../../../DetectionImageAnnotation';
4
5
  interface Category {
5
6
  id: string;
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import './style.less';
2
3
  import { ISample } from '@glodon-aiot/apis';
3
4
  interface MarkOCRBoxModalProps {
4
5
  visible: boolean;
@@ -1,4 +1,5 @@
1
- import { default as React, Dispatch, SetStateAction } from 'react';
1
+ import React, { Dispatch, SetStateAction } from 'react';
2
+ import './style.less';
2
3
  import { ISample } from '@glodon-aiot/apis';
3
4
  interface ImageDetailModalProps {
4
5
  isOcrModalVisible: boolean;
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { IPreLabelTask } from '@glodon-aiot/apis';
3
4
  export declare enum IDatasetType {
4
5
  Detection = "detection",
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { IPreLabelTask } from '@glodon-aiot/apis';
3
4
  interface IPreLabelOCRProps {
4
5
  datasetId: string;
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { AnnotationProps } from '../../featuresConfig';
3
4
  interface OcrAnnotationProps extends AnnotationProps {
4
5
  }
@@ -1,3 +1,5 @@
1
+ /// <reference types="react" />
2
+ import './style.less';
1
3
  import { Category, ILabel, TInfer } from '@glodon-aiot/apis';
2
4
  import { LabelItem } from '../DetectionImageAnnotation';
3
5
  export interface OcrLabelmakerValue {
@@ -1,4 +1,5 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
+ import './style.less';
2
3
  interface PageNavProps {
3
4
  left?: ReactNode;
4
5
  right?: ReactNode;
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { RcFile } from 'antd/es/upload/interface';
3
4
  import { IAM, IVersion } from '@glodon-aiot/apis';
4
5
  export declare enum IAcceptType {
@@ -1,5 +1,6 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { IPreLabelTask } from '@glodon-aiot/apis';
3
+ import './style.less';
3
4
  export declare enum IDatasetType {
4
5
  Detection = "detection",
5
6
  OCR = "ocr"
@@ -1,5 +1,6 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
2
  import { IPreLabelTask } from '@glodon-aiot/apis';
3
+ import './style.less';
3
4
  interface IPreLabelOCRProps {
4
5
  datasetId: string;
5
6
  versionId: string;
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { TInfer } from '@glodon-aiot/apis';
3
4
  interface ScanTableProps {
4
5
  currentInfer?: TInfer[];
@@ -1,4 +1,5 @@
1
- import { default as React } from 'react';
1
+ import React from 'react';
2
+ import './style.less';
2
3
  import { IProxy } from '@glodon-aiot/apis';
3
4
  interface IThumbnailProps {
4
5
  imgProxy?: IProxy;
@@ -1,2 +1,2 @@
1
- import { Transition } from 'history';
1
+ import { Transition } from "history";
2
2
  export declare function useBlocker(blocker: (tx: Transition) => void, when?: boolean): void;
@@ -1,4 +1,4 @@
1
- import { CVForceDatahubApi, IVersion, ModelServiceApi } from '@glodon-aiot/apis';
1
+ import { CVForceDatahubApi, IVersion, ModelServiceApi } from "@glodon-aiot/apis";
2
2
  export interface LabelManager {
3
3
  visible?: boolean;
4
4
  add?: boolean;
package/package.json CHANGED
@@ -1,28 +1,26 @@
1
1
  {
2
2
  "name": "@glodon-aiot/dataset-annotation",
3
- "version": "3.1.0-beta.15",
4
- "module": "./dist/es/index.mjs",
5
- "main": "./dist/lib/index.js",
6
- "typings": "./dist/src/index.d.ts",
3
+ "version": "3.2.1",
4
+ "module": "./dist/dataset-annotation.js",
5
+ "main": "./dist/dataset-annotation.umd.cjs",
6
+ "types": "./dist/src/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/es/index.mjs",
10
- "require": "./dist/lib/index.js",
9
+ "import": "./dist/dataset-annotation.js",
10
+ "require": "./dist/dataset-annotation.umd.cjs",
11
11
  "types": "./dist/src/index.d.ts"
12
12
  },
13
- "./style.css": "./dist/lib/index.css"
13
+ "./style.css": "./dist/style.css"
14
14
  },
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
18
  "type": "module",
19
- "types": "dist/src/index.d.ts",
20
19
  "scripts": {
21
20
  "dev": "vite",
22
21
  "start": "vite",
23
- "build": "tsc && vite build --mode prod && yarn build:cdn",
22
+ "build": "tsc && vite build --mode prod",
24
23
  "build:pre": "tsc && vite build --mode prod",
25
- "build:cdn": "tsc && vite build --mode prod --config ./vite.config.cdn.ts",
26
24
  "preview": "vite preview",
27
25
  "check": "yarn prettier --check .",
28
26
  "write": "yarn prettier --write .",
@@ -38,19 +36,17 @@
38
36
  "dependencies": {
39
37
  "@ant-design/icons": "^5.3.4",
40
38
  "@aws-crypto/sha256-js": "^3.0.0",
41
- "@glodon-aiot/apis": "^3.1.0-beta.15",
42
- "@glodon-aiot/minio": "^0.1.6",
43
- "ahooks": "^3.8.5",
44
- "antd": "4.24.12",
45
- "axios": "0.24.0",
39
+ "@glodon-aiot/apis": "^3.2.1",
40
+ "@reduxjs/toolkit": "^1.9.5",
41
+ "@types/fabric": "^5.3.2",
42
+ "antd": "4.x",
46
43
  "browser-md5-file": "^1.1.1",
47
44
  "fabric": "^5.3.0",
48
- "js-base64": "^3.7.7",
49
45
  "lodash": "^4.17.21",
50
- "rc-virtual-list": "^3.18.6",
51
46
  "react": "^17.0.2",
52
47
  "react-dom": "^17.0.2",
53
- "react-json-view": "^1.21.3"
48
+ "react-json-view": "^1.21.3",
49
+ "react-redux": "^9.2.0"
54
50
  },
55
51
  "devDependencies": {
56
52
  "@babel/core": "^7.20.12",
@@ -66,7 +62,6 @@
66
62
  "@storybook/node-logger": "6.4.9",
67
63
  "@storybook/react": "6.4.9",
68
64
  "@storybook/testing-library": "^0.0.13",
69
- "@types/fabric": "^5.3.2",
70
65
  "@types/lodash": "^4",
71
66
  "@types/react": "^17.0.44",
72
67
  "@types/react-dom": "^17.0.17",
@@ -98,9 +93,7 @@
98
93
  "storybook-less-loader": "^0.1.0",
99
94
  "typescript": "*",
100
95
  "vite": "^4.1.1",
101
- "vite-plugin-css-injected-by-js": "^3.5.0",
102
- "vite-plugin-dts": "^4.5.4",
103
- "vite-plugin-externalize-deps": "^0.9.0"
96
+ "vite-plugin-css-injected-by-js": "^3.5.0"
104
97
  },
105
98
  "lint-staged": {
106
99
  "*.{js,css,md,jsx,less,ts,tsx,json}": "prettier --write"
@@ -1,28 +0,0 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { Layout as m } from "antd";
3
- import n from "../PageContent/index.mjs";
4
- import l from "../PageHeader/index.mjs";
5
- /* empty css */const g = (e) => {
6
- const {
7
- title: t,
8
- header: r,
9
- className: i
10
- } = e;
11
- return /* @__PURE__ */ a(m, {
12
- style: {
13
- height: "100%",
14
- width: "100%",
15
- overflow: "hidden"
16
- },
17
- className: i,
18
- children: [r, !r && t && /* @__PURE__ */ o(l, {
19
- className: "content-title",
20
- title: t
21
- }), /* @__PURE__ */ o(n, {
22
- children: e.children
23
- })]
24
- });
25
- };
26
- export {
27
- g as default
28
- };
@@ -1,18 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- function r(o) {
3
- const {
4
- children: e
5
- } = o;
6
- return /* @__PURE__ */ n("div", {
7
- style: {
8
- padding: 16,
9
- backgroundColor: "#F7F7F9",
10
- overflow: "hidden",
11
- height: "100%"
12
- },
13
- children: e
14
- });
15
- }
16
- export {
17
- r as default
18
- };
@@ -1,38 +0,0 @@
1
- import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
- import d from "../../node_modules/classnames/index.mjs";
3
- /* empty css */function u(l) {
4
- const {
5
- breadcrumb: e,
6
- title: i,
7
- icon: o,
8
- actions: s,
9
- className: m,
10
- children: n
11
- } = l, t = !!n, r = d({
12
- "page-header bg-white h-auto leading-none content-title": !0
13
- });
14
- return /* @__PURE__ */ c("div", {
15
- className: r,
16
- style: {
17
- padding: `${t ? "16" : "24"}px 22px ${t ? "0" : "24"}px 22px`
18
- },
19
- children: [e && /* @__PURE__ */ a("div", {
20
- children: e
21
- }), /* @__PURE__ */ c("div", {
22
- className: "title-bar flex justify-between items-center",
23
- style: {
24
- marginTop: `${t && e ? "16" : "0"}px`
25
- },
26
- children: [i && /* @__PURE__ */ a("div", {
27
- className: "title",
28
- children: i
29
- }), s && /* @__PURE__ */ a("div", {
30
- className: "actions",
31
- children: s
32
- })]
33
- }), n]
34
- });
35
- }
36
- export {
37
- u as default
38
- };
@@ -1,11 +0,0 @@
1
- import { createContext as t } from "react";
2
- const a = t({
3
- datasetId: "",
4
- versionId: "",
5
- no: "",
6
- loading: !1,
7
- services: {}
8
- });
9
- export {
10
- a as default
11
- };
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
4
- export {
5
- e as getDefaultExportFromCjs
6
- };
@@ -1,4 +0,0 @@
1
- var s = { exports: {} };
2
- export {
3
- s as __module
4
- };
@@ -1,4 +0,0 @@
1
- const N = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIiIGhlaWdodD0iOTAiIHZpZXdCb3g9IjAgMCA4MiA5MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yOS4xMiA2MC4zMTAxQzI5LjA0IDYwLjg2MDEgMjkgNjEuNDMgMjkgNjJDMjkgNjguNjMgMzQuMzcgNzQgNDEgNzRDNDcuNjMgNzQgNTMgNjguNjMgNTMgNjJDNTMgNjEuNDMgNTIuOTYgNjAuODYwMSA1Mi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