@cozeloop/components 0.0.10 → 0.0.11
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/{index.js → index.mjs} +302 -13
- package/dist/es/static/svg/audio-icon.svg +6 -0
- package/dist/es/static/svg/video-icon.svg +6 -0
- package/dist/lib/base-search-select/base-search-select.d.ts +4 -1
- package/dist/lib/base-search-select/index.d.ts +1 -1
- package/dist/lib/base-search-select/types.d.ts +1 -1
- package/dist/lib/codemirror-editor/code-editor.d.ts +23 -2
- package/dist/lib/codemirror-editor/text-editor.d.ts +23 -2
- package/dist/lib/collapse-item/index.d.ts +7 -0
- package/dist/lib/index.d.ts +3 -1
- package/dist/lib/large-txt-render/index.d.ts +1 -0
- package/dist/lib/multi-modal-dataset-item-render/audio-render/index.d.ts +35 -0
- package/dist/lib/multi-modal-dataset-item-render/index.d.ts +2 -0
- package/dist/lib/multi-modal-dataset-item-render/video-render/index.d.ts +35 -0
- package/dist/lib/primary-page/primary-header.d.ts +1 -1
- package/package.json +10 -29
- package/dist/lib/base-search-select/base-search-form-select.js +0 -6
- package/dist/lib/base-search-select/base-search-form-select.js.map +0 -1
- package/dist/lib/base-search-select/base-search-select.js +0 -128
- package/dist/lib/base-search-select/base-search-select.js.map +0 -1
- package/dist/lib/base-search-select/index.js +0 -3
- package/dist/lib/base-search-select/index.js.map +0 -1
- package/dist/lib/base-search-select/types.js +0 -2
- package/dist/lib/base-search-select/types.js.map +0 -1
- package/dist/lib/base-search-select/utils.js +0 -48
- package/dist/lib/base-search-select/utils.js.map +0 -1
- package/dist/lib/basic-card/index.js +0 -4
- package/dist/lib/basic-card/index.js.map +0 -1
- package/dist/lib/card-pane/index.js +0 -9
- package/dist/lib/card-pane/index.js.map +0 -1
- package/dist/lib/chip-select/index.js +0 -6
- package/dist/lib/chip-select/index.js.map +0 -1
- package/dist/lib/code-editor/index.js +0 -9
- package/dist/lib/code-editor/index.js.map +0 -1
- package/dist/lib/code-editor-with-loading/index.js +0 -31
- package/dist/lib/code-editor-with-loading/index.js.map +0 -1
- package/dist/lib/codemirror-editor/code-editor.js +0 -116
- package/dist/lib/codemirror-editor/code-editor.js.map +0 -1
- package/dist/lib/codemirror-editor/index.js +0 -7
- package/dist/lib/codemirror-editor/index.js.map +0 -1
- package/dist/lib/codemirror-editor/json-editor.js +0 -103
- package/dist/lib/codemirror-editor/json-editor.js.map +0 -1
- package/dist/lib/codemirror-editor/raw-code-editor.js +0 -103
- package/dist/lib/codemirror-editor/raw-code-editor.js.map +0 -1
- package/dist/lib/codemirror-editor/raw-text-editor.js +0 -32
- package/dist/lib/codemirror-editor/raw-text-editor.js.map +0 -1
- package/dist/lib/codemirror-editor/text-editor.js +0 -44
- package/dist/lib/codemirror-editor/text-editor.js.map +0 -1
- package/dist/lib/codemirror-editor/themes/coze-dark.js +0 -113
- package/dist/lib/codemirror-editor/themes/coze-dark.js.map +0 -1
- package/dist/lib/codemirror-editor/themes/coze-light.js +0 -119
- package/dist/lib/codemirror-editor/themes/coze-light.js.map +0 -1
- package/dist/lib/collapse-card/index.js +0 -31
- package/dist/lib/collapse-card/index.js.map +0 -1
- package/dist/lib/collapsible-card/index.js +0 -13
- package/dist/lib/collapsible-card/index.js.map +0 -1
- package/dist/lib/column-manage-storage/index.js +0 -48
- package/dist/lib/column-manage-storage/index.js.map +0 -1
- package/dist/lib/columns-select/index.js +0 -78
- package/dist/lib/columns-select/index.js.map +0 -1
- package/dist/lib/copyable/index.js +0 -12
- package/dist/lib/copyable/index.js.map +0 -1
- package/dist/lib/edit-icon-button/index.js +0 -13
- package/dist/lib/edit-icon-button/index.js.map +0 -1
- package/dist/lib/footer-actions/index.js +0 -8
- package/dist/lib/footer-actions/index.js.map +0 -1
- package/dist/lib/hooks/use-infinite-scroll.js +0 -133
- package/dist/lib/hooks/use-infinite-scroll.js.map +0 -1
- package/dist/lib/hooks/use-mouse-down-offset.js +0 -39
- package/dist/lib/hooks/use-mouse-down-offset.js.map +0 -1
- package/dist/lib/hooks/use-unsave-leave-warning.js +0 -26
- package/dist/lib/hooks/use-unsave-leave-warning.js.map +0 -1
- package/dist/lib/id-render/icon-button-container.js +0 -8
- package/dist/lib/id-render/icon-button-container.js.map +0 -1
- package/dist/lib/id-render/index.js +0 -22
- package/dist/lib/id-render/index.js.map +0 -1
- package/dist/lib/index-controller/record-navigation.js +0 -10
- package/dist/lib/index-controller/record-navigation.js.map +0 -1
- package/dist/lib/index-controller/use-item-index-controller.js +0 -123
- package/dist/lib/index-controller/use-item-index-controller.js.map +0 -1
- package/dist/lib/index.js +0 -76
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/infinite-scroll-table/index.js +0 -35
- package/dist/lib/infinite-scroll-table/index.js.map +0 -1
- package/dist/lib/info-tooltip/index.js +0 -9
- package/dist/lib/info-tooltip/index.js.map +0 -1
- package/dist/lib/input-components/radio-button.js +0 -21
- package/dist/lib/input-components/radio-button.js.map +0 -1
- package/dist/lib/input-slider/index.js +0 -81
- package/dist/lib/input-slider/index.js.map +0 -1
- package/dist/lib/input-with-count/index.js +0 -7
- package/dist/lib/input-with-count/index.js.map +0 -1
- package/dist/lib/jump-button/jump-icon-button.js +0 -7
- package/dist/lib/jump-button/jump-icon-button.js.map +0 -1
- package/dist/lib/large-txt-render/index.js +0 -26
- package/dist/lib/large-txt-render/index.js.map +0 -1
- package/dist/lib/layout/content.js +0 -5
- package/dist/lib/layout/content.js.map +0 -1
- package/dist/lib/layout/header.js +0 -6
- package/dist/lib/layout/header.js.map +0 -1
- package/dist/lib/layout/index.js +0 -9
- package/dist/lib/layout/index.js.map +0 -1
- package/dist/lib/layout/tabs.js +0 -10
- package/dist/lib/layout/tabs.js.map +0 -1
- package/dist/lib/lazy-load-component/index.js +0 -42
- package/dist/lib/lazy-load-component/index.js.map +0 -1
- package/dist/lib/logic-editor/index.js +0 -3
- package/dist/lib/logic-editor/index.js.map +0 -1
- package/dist/lib/logic-editor/logic-editor.js +0 -70
- package/dist/lib/logic-editor/logic-editor.js.map +0 -1
- package/dist/lib/logic-editor/logic-left-render.js +0 -62
- package/dist/lib/logic-editor/logic-left-render.js.map +0 -1
- package/dist/lib/logic-editor/logic-operator-render.js +0 -31
- package/dist/lib/logic-editor/logic-operator-render.js.map +0 -1
- package/dist/lib/logic-editor/logic-right-render.js +0 -26
- package/dist/lib/logic-editor/logic-right-render.js.map +0 -1
- package/dist/lib/logic-editor/logic-types.js +0 -144
- package/dist/lib/logic-editor/logic-types.js.map +0 -1
- package/dist/lib/logic-editor/utils.js +0 -18
- package/dist/lib/logic-editor/utils.js.map +0 -1
- package/dist/lib/logic-expr/consts.js +0 -5
- package/dist/lib/logic-expr/consts.js.map +0 -1
- package/dist/lib/logic-expr/expr-group-render.js +0 -60
- package/dist/lib/logic-expr/expr-group-render.js.map +0 -1
- package/dist/lib/logic-expr/expr-render.js +0 -84
- package/dist/lib/logic-expr/expr-render.js.map +0 -1
- package/dist/lib/logic-expr/index.js +0 -2
- package/dist/lib/logic-expr/index.js.map +0 -1
- package/dist/lib/logic-expr/logic-expr.js +0 -187
- package/dist/lib/logic-expr/logic-expr.js.map +0 -1
- package/dist/lib/logic-expr/logic-not.js +0 -20
- package/dist/lib/logic-expr/logic-not.js.map +0 -1
- package/dist/lib/logic-expr/logic-toggle.js +0 -32
- package/dist/lib/logic-expr/logic-toggle.js.map +0 -1
- package/dist/lib/logic-expr/types.js +0 -2
- package/dist/lib/logic-expr/types.js.map +0 -1
- package/dist/lib/loop-icons/index.js +0 -3
- package/dist/lib/loop-icons/index.js.map +0 -1
- package/dist/lib/loop-radio-group/index.js +0 -7
- package/dist/lib/loop-radio-group/index.js.map +0 -1
- package/dist/lib/multi-part-editor/components/image-item-renderer.js +0 -58
- package/dist/lib/multi-part-editor/components/image-item-renderer.js.map +0 -1
- package/dist/lib/multi-part-editor/components/multipart-item-renderer.js +0 -26
- package/dist/lib/multi-part-editor/components/multipart-item-renderer.js.map +0 -1
- package/dist/lib/multi-part-editor/components/url-input-modal.js +0 -151
- package/dist/lib/multi-part-editor/components/url-input-modal.js.map +0 -1
- package/dist/lib/multi-part-editor/components/video-item-renderer.js +0 -58
- package/dist/lib/multi-part-editor/components/video-item-renderer.js.map +0 -1
- package/dist/lib/multi-part-editor/index.js +0 -301
- package/dist/lib/multi-part-editor/index.js.map +0 -1
- package/dist/lib/multi-part-editor/multi-part-render.js +0 -40
- package/dist/lib/multi-part-editor/multi-part-render.js.map +0 -1
- package/dist/lib/multi-part-editor/type.js +0 -27
- package/dist/lib/multi-part-editor/type.js.map +0 -1
- package/dist/lib/multi-part-editor/upload-button.js +0 -104
- package/dist/lib/multi-part-editor/upload-button.js.map +0 -1
- package/dist/lib/multi-part-editor/utils.js +0 -43
- package/dist/lib/multi-part-editor/utils.js.map +0 -1
- package/dist/lib/open-detail-button/index.js +0 -12
- package/dist/lib/open-detail-button/index.js.map +0 -1
- package/dist/lib/page-content/index.js +0 -24
- package/dist/lib/page-content/index.js.map +0 -1
- package/dist/lib/primary-page/index.js +0 -2
- package/dist/lib/primary-page/index.js.map +0 -1
- package/dist/lib/primary-page/primary-header.js +0 -4
- package/dist/lib/primary-page/primary-header.js.map +0 -1
- package/dist/lib/primary-title/index.js +0 -8
- package/dist/lib/primary-title/index.js.map +0 -1
- package/dist/lib/provider/index.js +0 -42
- package/dist/lib/provider/index.js.map +0 -1
- package/dist/lib/resizable-side-sheet/index.js +0 -32
- package/dist/lib/resizable-side-sheet/index.js.map +0 -1
- package/dist/lib/resize-sidesheet/index.js +0 -15
- package/dist/lib/resize-sidesheet/index.js.map +0 -1
- package/dist/lib/resize-sidesheet/use-drag.js +0 -30
- package/dist/lib/resize-sidesheet/use-drag.js.map +0 -1
- package/dist/lib/schema-editor/index.js +0 -5
- package/dist/lib/schema-editor/index.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/array-field-item.js +0 -19
- package/dist/lib/semi-schema-form/components/tmpls/array-field-item.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/array-field.js +0 -39
- package/dist/lib/semi-schema-form/components/tmpls/array-field.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/base-input.js +0 -32
- package/dist/lib/semi-schema-form/components/tmpls/base-input.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/description-field.js +0 -13
- package/dist/lib/semi-schema-form/components/tmpls/description-field.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/error-list.js +0 -14
- package/dist/lib/semi-schema-form/components/tmpls/error-list.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/field-error.js +0 -16
- package/dist/lib/semi-schema-form/components/tmpls/field-error.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/field.js +0 -21
- package/dist/lib/semi-schema-form/components/tmpls/field.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/icon-button.js +0 -29
- package/dist/lib/semi-schema-form/components/tmpls/icon-button.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/index.js +0 -31
- package/dist/lib/semi-schema-form/components/tmpls/index.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/object-field.js +0 -81
- package/dist/lib/semi-schema-form/components/tmpls/object-field.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/submit.js +0 -13
- package/dist/lib/semi-schema-form/components/tmpls/submit.js.map +0 -1
- package/dist/lib/semi-schema-form/components/tmpls/title-field.js +0 -12
- package/dist/lib/semi-schema-form/components/tmpls/title-field.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/checkbox.js +0 -26
- package/dist/lib/semi-schema-form/components/widgets/checkbox.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/checkboxs.js +0 -27
- package/dist/lib/semi-schema-form/components/widgets/checkboxs.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/index.js +0 -15
- package/dist/lib/semi-schema-form/components/widgets/index.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/radio.js +0 -27
- package/dist/lib/semi-schema-form/components/widgets/radio.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/range.js +0 -26
- package/dist/lib/semi-schema-form/components/widgets/range.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/select.js +0 -44
- package/dist/lib/semi-schema-form/components/widgets/select.js.map +0 -1
- package/dist/lib/semi-schema-form/components/widgets/textarea.js +0 -18
- package/dist/lib/semi-schema-form/components/widgets/textarea.js.map +0 -1
- package/dist/lib/semi-schema-form/index.js +0 -9
- package/dist/lib/semi-schema-form/index.js.map +0 -1
- package/dist/lib/sentinel-form/enum.js +0 -15
- package/dist/lib/sentinel-form/enum.js.map +0 -1
- package/dist/lib/sentinel-form/index.js +0 -301
- package/dist/lib/sentinel-form/index.js.map +0 -1
- package/dist/lib/step-nav/index.js +0 -13
- package/dist/lib/step-nav/index.js.map +0 -1
- package/dist/lib/table/index.js +0 -7
- package/dist/lib/table/index.js.map +0 -1
- package/dist/lib/table/sort-icon.js +0 -31
- package/dist/lib/table/sort-icon.js.map +0 -1
- package/dist/lib/table/table-with-pagination.js +0 -74
- package/dist/lib/table/table-with-pagination.js.map +0 -1
- package/dist/lib/table/table-without-pagniation.js +0 -37
- package/dist/lib/table/table-without-pagniation.js.map +0 -1
- package/dist/lib/table-batch-operate/table-batch-operation.js +0 -17
- package/dist/lib/table-batch-operate/table-batch-operation.js.map +0 -1
- package/dist/lib/table-batch-operate/use-batch-operate.js +0 -71
- package/dist/lib/table-batch-operate/use-batch-operate.js.map +0 -1
- package/dist/lib/table-col-actions/index.js +0 -39
- package/dist/lib/table-col-actions/index.js.map +0 -1
- package/dist/lib/table-cols-config/index.js +0 -60
- package/dist/lib/table-cols-config/index.js.map +0 -1
- package/dist/lib/table-cols-config/type.js +0 -2
- package/dist/lib/table-cols-config/type.js.map +0 -1
- package/dist/lib/table-cols-config/use-hidden-col-keys.js +0 -32
- package/dist/lib/table-cols-config/use-hidden-col-keys.js.map +0 -1
- package/dist/lib/table-cols-config/util.js +0 -39
- package/dist/lib/table-cols-config/util.js.map +0 -1
- package/dist/lib/table-empty/index.js +0 -9
- package/dist/lib/table-empty/index.js.map +0 -1
- package/dist/lib/table-header/index.js +0 -12
- package/dist/lib/table-header/index.js.map +0 -1
- package/dist/lib/tabs/index.js +0 -9
- package/dist/lib/tabs/index.js.map +0 -1
- package/dist/lib/text-area-pro/index.js +0 -10
- package/dist/lib/text-area-pro/index.js.map +0 -1
- package/dist/lib/text-with-copy/index.js +0 -25
- package/dist/lib/text-with-copy/index.js.map +0 -1
- package/dist/lib/title-with-sub/index.js +0 -6
- package/dist/lib/title-with-sub/index.js.map +0 -1
- package/dist/lib/tooltip-when-disabled/index.js +0 -9
- package/dist/lib/tooltip-when-disabled/index.js.map +0 -1
- package/dist/lib/tooltip-with-disabled/index.js +0 -9
- package/dist/lib/tooltip-with-disabled/index.js.map +0 -1
- package/dist/lib/tsconfig.build.tsbuildinfo +0 -1
- package/dist/lib/upload/index.js +0 -25
- package/dist/lib/upload/index.js.map +0 -1
- package/dist/lib/user-profile/index.js +0 -21
- package/dist/lib/user-profile/index.js.map +0 -1
- package/dist/lib/utils/basic.js +0 -30
- package/dist/lib/utils/basic.js.map +0 -1
- package/dist/lib/version-list/version-descriptions.js +0 -15
- package/dist/lib/version-list/version-descriptions.js.map +0 -1
- package/dist/lib/version-list/version-item.js +0 -6
- package/dist/lib/version-list/version-item.js.map +0 -1
- package/dist/lib/version-list/version-list.js +0 -12
- package/dist/lib/version-list/version-list.js.map +0 -1
- package/dist/lib/version-list/version-switch-panel.js +0 -11
- package/dist/lib/version-list/version-switch-panel.js.map +0 -1
- /package/dist/es/{loopIcons.js → loopIcons.mjs} +0 -0
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import "./static/svg/select.svg";
|
|
3
|
+
import __rslib_svgr_url__1__ from "./static/svg/audio-icon.svg";
|
|
4
|
+
import __rslib_svgr_url__2__ from "./static/svg/video-icon.svg";
|
|
3
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
6
|
import { arrayMove, sortableContainer as external_react_sortable_hoc_sortableContainer, sortableElement, sortableHandle } from "react-sortable-hoc";
|
|
5
|
-
import react, { Fragment as external_react_Fragment, createContext, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
7
|
+
import react, { Fragment as external_react_Fragment, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
6
8
|
import { I18n as i18n_I18n, initIntl } from "@cozeloop/i18n";
|
|
7
|
-
import { IconCozArrowDown, IconCozArrowLeft, IconCozArrowRight, IconCozCheckMarkCircleFill, IconCozCheckMarkFill, IconCozContent, IconCozCopy, IconCozCross, IconCozCrossCircleFill, IconCozCrossFill, IconCozEye, IconCozFilter, IconCozHandle, IconCozImage, IconCozImageArrowUp, IconCozImageBroken, IconCozInfoCircle, IconCozLongArrowTopRight, IconCozLongArrowUp, IconCozMore, IconCozPencil, IconCozPlayCircle, IconCozPlus, IconCozPlusCircle, IconCozQuestionMarkCircle, IconCozRefresh, IconCozSetting, IconCozTableSetting, IconCozTrashCan, IconCozVideo, IconCozWarningCircle } from "@coze-arch/coze-design/icons";
|
|
8
|
-
import { Banner, Button, ButtonGroup, Cascader, Checkbox, Col, Collapse, CozAvatar, CozInputNumber, CozPagination, DatePicker, Descriptions, Divider, Dropdown, Empty, EmptyState, Form, IconButton, Image, ImagePreview, Input, List, Loading, Menu, Modal, Popover, Radio, RadioGroup, Row, Select, SideSheet, Skeleton, Slider, Space, Spin, Switch, Table, Tabs, Tag, TextArea, Toast, Tooltip, Typography, Upload, withField } from "@coze-arch/coze-design";
|
|
9
|
+
import { IconCozArrowDown, IconCozArrowLeft, IconCozArrowRight, IconCozCheckMarkCircleFill, IconCozCheckMarkFill, IconCozContent, IconCozCopy, IconCozCross, IconCozCrossCircleFill, IconCozCrossCircleFillPalette, IconCozCrossFill, IconCozDownload, IconCozEye, IconCozFilter, IconCozHandle, IconCozImage, IconCozImageArrowUp, IconCozImageBroken, IconCozInfoCircle, IconCozLongArrowTopRight, IconCozLongArrowUp, IconCozMore, IconCozPencil, IconCozPlayCircle, IconCozPlus, IconCozPlusCircle, IconCozQuestionMarkCircle, IconCozRefresh, IconCozSetting, IconCozTableSetting, IconCozTrashCan, IconCozVideo, IconCozWarningCircle } from "@coze-arch/coze-design/icons";
|
|
10
|
+
import { AudioPlayer, Banner, Button, ButtonGroup, Cascader, Checkbox, Col, Collapse, CozAvatar, CozInputNumber, CozPagination, DatePicker, Descriptions, Divider, Dropdown, Empty, EmptyState, Form, IconButton, Image, ImagePreview, Input, List, Loading, LoadingButton, Menu, Modal, Popover, Radio, RadioGroup, Row, Select, SideSheet, Skeleton, Slider, Space, Spin, Switch, Table, Tabs, Tag, TextArea, Toast, Tooltip, Typography, Upload, VideoPlayer, withField } from "@coze-arch/coze-design";
|
|
9
11
|
import classnames from "classnames";
|
|
10
12
|
import { IconCozIllus404, IconCozIllus404Dark, IconCozIllusEmpty, IconCozIllusEmptyDark, IconCozIllusError, IconCozIllusErrorDark, IconCozIllusLock, IconCozIllusLockDark, IconCozIllusNone, IconCozIllusNoneDark } from "@coze-arch/coze-design/illustrations";
|
|
11
13
|
import { useDebounceFn, useInfiniteScroll, useLatest, useMemoizedFn, useRequest, useSize } from "ahooks";
|
|
12
|
-
import { cloneDeep, debounce, get, isEmpty as external_lodash_es_isEmpty, isInteger, isNull, isNumber, isObject, isString, isUndefined, set } from "lodash-es";
|
|
14
|
+
import { cloneDeep, debounce, get, isEmpty as external_lodash_es_isEmpty, isFunction, isInteger, isNull, isNumber, isObject, isString, isUndefined, set } from "lodash-es";
|
|
13
15
|
import copy_to_clipboard from "copy-to-clipboard";
|
|
14
|
-
import { formatTimestampToString, safeJsonParse, sleep as toolkit_sleep } from "@cozeloop/toolkit";
|
|
16
|
+
import { fileDownload, formatTimestampToString, safeJsonParse, sleep as toolkit_sleep } from "@cozeloop/toolkit";
|
|
15
17
|
import _monaco_editor_react, { DiffEditor, loader } from "@monaco-editor/react";
|
|
16
18
|
import sortablejs from "sortablejs";
|
|
17
19
|
import { nanoid } from "nanoid";
|
|
@@ -603,7 +605,7 @@ const LoopTabs = (props)=>{
|
|
|
603
605
|
};
|
|
604
606
|
const PER_PRE_MAX_LENGTH = 25000;
|
|
605
607
|
const LargeTxtRender = (props)=>{
|
|
606
|
-
const { text } = props;
|
|
608
|
+
const { text, className } = props;
|
|
607
609
|
const ref = useRef(null);
|
|
608
610
|
const getMoreTextChunk = (startIndex)=>{
|
|
609
611
|
const endIndex = startIndex + PER_PRE_MAX_LENGTH;
|
|
@@ -625,7 +627,7 @@ const LargeTxtRender = (props)=>{
|
|
|
625
627
|
});
|
|
626
628
|
return /*#__PURE__*/ jsx("pre", {
|
|
627
629
|
ref: ref,
|
|
628
|
-
className:
|
|
630
|
+
className: classnames('m-0 break-words whitespace-pre-wrap max-h-full overflow-y-auto text-[13px] leading-4 text-[var(--coz-fg-primary)] font-normal', className),
|
|
629
631
|
children: data?.list.join('') || ''
|
|
630
632
|
});
|
|
631
633
|
};
|
|
@@ -1074,8 +1076,9 @@ const dealColumnsWithStorage = (storageKey, columns)=>{
|
|
|
1074
1076
|
checked: sort[column.key]?.checked ?? true
|
|
1075
1077
|
}));
|
|
1076
1078
|
};
|
|
1077
|
-
const PrimaryPage = ({ pageTitle, filterSlot, children, contentClassName, className, headerClassName, titleClassName, titleSlot })=>/*#__PURE__*/ jsxs("div", {
|
|
1079
|
+
const PrimaryPage = ({ pageTitle, filterSlot, children, contentClassName, className, headerClassName, titleClassName, titleSlot, ...restProps })=>/*#__PURE__*/ jsxs("div", {
|
|
1078
1080
|
className: classnames('pt-2 pb-3 h-full max-h-full flex flex-col', className),
|
|
1081
|
+
...restProps,
|
|
1079
1082
|
children: [
|
|
1080
1083
|
pageTitle || titleSlot ? /*#__PURE__*/ jsxs("div", {
|
|
1081
1084
|
className: classnames('flex items-center justify-between py-4 px-6', headerClassName),
|
|
@@ -1838,7 +1841,7 @@ const base_search_select_index_module = {
|
|
|
1838
1841
|
"select-dropdown-style": "select-dropdown-style-o3gnrf",
|
|
1839
1842
|
selectDropdownStyle: "select-dropdown-style-o3gnrf"
|
|
1840
1843
|
};
|
|
1841
|
-
const BaseSearchSelect = (props)=>{
|
|
1844
|
+
const BaseSearchSelect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
1842
1845
|
const { optionList: _optionList, loadOptionByIds, value, defaultValue, onSearch, renderSelectedItem, onChangeWithObject, onDropdownVisibleChange, showRefreshBtn, onClickRefresh, disabledCacheOptions } = props;
|
|
1843
1846
|
const [searchWord, setSearchWord] = useState('');
|
|
1844
1847
|
const [refreshFlag, setRefreshFlag] = useState([]);
|
|
@@ -1950,9 +1953,10 @@ const BaseSearchSelect = (props)=>{
|
|
|
1950
1953
|
onSearch: (vs, e)=>{
|
|
1951
1954
|
setSearchWord(vs);
|
|
1952
1955
|
if (onSearch) onSearch?.(vs, e);
|
|
1953
|
-
}
|
|
1956
|
+
},
|
|
1957
|
+
ref: ref
|
|
1954
1958
|
});
|
|
1955
|
-
};
|
|
1959
|
+
});
|
|
1956
1960
|
const base_search_select = BaseSearchSelect;
|
|
1957
1961
|
const BaseSearchFormSelect = withField((props)=>/*#__PURE__*/ jsx(base_search_select, {
|
|
1958
1962
|
...props
|
|
@@ -5175,6 +5179,14 @@ var enum_EventNames = /*#__PURE__*/ function(EventNames) {
|
|
|
5175
5179
|
EventNames["LOOP_FORM_CLOSE"] = "loop_form_close";
|
|
5176
5180
|
return EventNames;
|
|
5177
5181
|
}({});
|
|
5182
|
+
function safeStringify(obj) {
|
|
5183
|
+
return JSON.stringify(obj, (_, value)=>{
|
|
5184
|
+
if (/*#__PURE__*/ isValidElement(value)) return '[ReactElement]';
|
|
5185
|
+
if ('function' == typeof value) return '[Function]';
|
|
5186
|
+
if (value instanceof HTMLElement) return '[HTMLElement]';
|
|
5187
|
+
return value;
|
|
5188
|
+
});
|
|
5189
|
+
}
|
|
5178
5190
|
const SentinelFormInner = ({ formID, children, onValueChange, onSubmit, getFormApi, ...props }, ref)=>{
|
|
5179
5191
|
const sendEvent = useReportEvent();
|
|
5180
5192
|
const sessionID = useMemo(()=>nanoid(), []);
|
|
@@ -5229,7 +5241,7 @@ const SentinelFormInner = ({ formID, children, onValueChange, onSubmit, getFormA
|
|
|
5229
5241
|
form_item_filled: JSON.stringify(formItemFilled),
|
|
5230
5242
|
form_item_show: JSON.stringify(formItemShow),
|
|
5231
5243
|
form_item_used_percent: formItemFilled.length / formItemShow.length,
|
|
5232
|
-
form_values:
|
|
5244
|
+
form_values: safeStringify(values),
|
|
5233
5245
|
time: successTime,
|
|
5234
5246
|
time_str: dayjs(successTime).format('YYYY-MM-DD HH:mm:ss')
|
|
5235
5247
|
});
|
|
@@ -5266,6 +5278,7 @@ const SentinelFormInner = ({ formID, children, onValueChange, onSubmit, getFormA
|
|
|
5266
5278
|
const formIdRef = useRef(formID);
|
|
5267
5279
|
const sessionIdRef = useRef(sessionID);
|
|
5268
5280
|
const flushedRef = useRef(false);
|
|
5281
|
+
const latestValuesRef = useRef('');
|
|
5269
5282
|
useEffect(()=>{
|
|
5270
5283
|
formIdRef.current = formID;
|
|
5271
5284
|
}, [
|
|
@@ -5335,11 +5348,17 @@ const SentinelFormInner = ({ formID, children, onValueChange, onSubmit, getFormA
|
|
|
5335
5348
|
form_operation_submit_success: submitSuccess.current,
|
|
5336
5349
|
form_request_error_times: interfaceErrorCount.current,
|
|
5337
5350
|
form_item_error_times: validateErrorCount.current,
|
|
5351
|
+
form_values: latestValuesRef.current,
|
|
5338
5352
|
time: closeTime,
|
|
5339
5353
|
time_str: dayjs(closeTime).format('YYYY-MM-DD HH:mm:ss')
|
|
5340
5354
|
});
|
|
5341
5355
|
};
|
|
5342
5356
|
const onValuesChange = (values, changedValues)=>{
|
|
5357
|
+
try {
|
|
5358
|
+
latestValuesRef.current = safeStringify(values);
|
|
5359
|
+
} catch (err) {
|
|
5360
|
+
console.error(err);
|
|
5361
|
+
}
|
|
5343
5362
|
handleValueChange(changedValues);
|
|
5344
5363
|
onValueChange?.(values, changedValues);
|
|
5345
5364
|
};
|
|
@@ -6103,4 +6122,274 @@ const CodeEditorWithLoading = ({ value, onChange, disabled, className })=>{
|
|
|
6103
6122
|
]
|
|
6104
6123
|
});
|
|
6105
6124
|
};
|
|
6106
|
-
|
|
6125
|
+
const CollapseItem = ({ children, open: defaultOpen, title, className })=>{
|
|
6126
|
+
const [open, setOpen] = useState(defaultOpen);
|
|
6127
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6128
|
+
className: className,
|
|
6129
|
+
children: [
|
|
6130
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6131
|
+
className: "h-5 flex flex-row items-center cursor-pointer text-sm coz-fg-primary font-semibold",
|
|
6132
|
+
onClick: ()=>setOpen((pre)=>!pre),
|
|
6133
|
+
children: [
|
|
6134
|
+
title,
|
|
6135
|
+
/*#__PURE__*/ jsx(IconCozArrowRight, {
|
|
6136
|
+
className: classnames('h-4 w-4 ml-2 coz-fg-plus transition-transform', open ? 'rotate-90' : '')
|
|
6137
|
+
})
|
|
6138
|
+
]
|
|
6139
|
+
}),
|
|
6140
|
+
/*#__PURE__*/ jsx("div", {
|
|
6141
|
+
className: open ? '' : 'hidden',
|
|
6142
|
+
children: children
|
|
6143
|
+
})
|
|
6144
|
+
]
|
|
6145
|
+
});
|
|
6146
|
+
};
|
|
6147
|
+
const audio_icon = __rslib_svgr_url__1__;
|
|
6148
|
+
function AudioRender({ audioUrl, audioName, className, showDownload, deletion, upload, size = 'small' }) {
|
|
6149
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
6150
|
+
const iconSizeCls = 'small' === size ? 'text-[14px]' : 'text-[20px]';
|
|
6151
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6152
|
+
className: "flex flex-col",
|
|
6153
|
+
onClick: (e)=>{
|
|
6154
|
+
e.stopPropagation();
|
|
6155
|
+
},
|
|
6156
|
+
children: [
|
|
6157
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6158
|
+
className: classnames('inline-block relative group', 'small' === size ? 'w-[36px] h-[36px]' : 'w-[80px] h-[80px]', className),
|
|
6159
|
+
children: [
|
|
6160
|
+
upload?.status === 'error' ? /*#__PURE__*/ jsx("div", {
|
|
6161
|
+
className: classnames('w-full h-full flex items-center justify-center rounded-[6px] coz-mg-primary', 'border border-solid coz-stroke-hglt-red'),
|
|
6162
|
+
children: /*#__PURE__*/ jsx(IconCozImageBroken, {
|
|
6163
|
+
className: "text-[20px] coz-fg-dim"
|
|
6164
|
+
})
|
|
6165
|
+
}) : /*#__PURE__*/ jsx(Spin, {
|
|
6166
|
+
spinning: upload?.status === 'loading',
|
|
6167
|
+
wrapperClassName: "!w-full !h-full [&_.semi-spin-children]:w-full [&_.semi-spin-children]:h-full",
|
|
6168
|
+
children: /*#__PURE__*/ jsx("img", {
|
|
6169
|
+
src: audio_icon,
|
|
6170
|
+
alt: audioName,
|
|
6171
|
+
width: '100%',
|
|
6172
|
+
height: '100%',
|
|
6173
|
+
style: {
|
|
6174
|
+
objectFit: 'cover',
|
|
6175
|
+
objectPosition: 'center'
|
|
6176
|
+
}
|
|
6177
|
+
})
|
|
6178
|
+
}),
|
|
6179
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6180
|
+
className: classnames('absolute inset-0 rounded-[6px] flex gap-3 items-center justify-center', 'z-[1]', 'bg-[rgba(0,0,0,0.4)]', 'invisible group-hover:visible'),
|
|
6181
|
+
children: [
|
|
6182
|
+
upload?.status === 'error' ? /*#__PURE__*/ jsx(IconCozRefresh, {
|
|
6183
|
+
className: classnames('text-white cursor-pointer', iconSizeCls),
|
|
6184
|
+
onClick: upload?.onRetry
|
|
6185
|
+
}) : null,
|
|
6186
|
+
audioUrl && ![
|
|
6187
|
+
'error',
|
|
6188
|
+
'loading'
|
|
6189
|
+
].includes(upload?.status || 'success') ? /*#__PURE__*/ jsx(IconCozPlayCircle, {
|
|
6190
|
+
className: classnames('text-white cursor-pointer', iconSizeCls),
|
|
6191
|
+
onClick: ()=>setModalVisible(true)
|
|
6192
|
+
}) : null,
|
|
6193
|
+
showDownload ? /*#__PURE__*/ jsx(IconCozDownload, {
|
|
6194
|
+
className: classnames('text-white cursor-pointer', iconSizeCls),
|
|
6195
|
+
onClick: ()=>{
|
|
6196
|
+
if (audioUrl) fileDownload(audioUrl, audioName || i18n_I18n.t('test'));
|
|
6197
|
+
}
|
|
6198
|
+
}) : null,
|
|
6199
|
+
isFunction(deletion) ? /*#__PURE__*/ jsx("div", {
|
|
6200
|
+
className: "absolute right-[-8px] top-[-8px] p-[2px] shrink-0 inline-flex justify-center items-center cursor-pointer",
|
|
6201
|
+
onClick: ()=>deletion(),
|
|
6202
|
+
children: /*#__PURE__*/ jsx(IconCozCrossCircleFillPalette, {})
|
|
6203
|
+
}) : null
|
|
6204
|
+
]
|
|
6205
|
+
})
|
|
6206
|
+
]
|
|
6207
|
+
}),
|
|
6208
|
+
/*#__PURE__*/ jsx(Modal, {
|
|
6209
|
+
visible: modalVisible,
|
|
6210
|
+
closable: false,
|
|
6211
|
+
title: /*#__PURE__*/ jsxs("div", {
|
|
6212
|
+
className: "w-full flex items-center justify-between",
|
|
6213
|
+
children: [
|
|
6214
|
+
/*#__PURE__*/ jsx(Typography.Title, {
|
|
6215
|
+
heading: 5,
|
|
6216
|
+
ellipsis: {
|
|
6217
|
+
showTooltip: true
|
|
6218
|
+
},
|
|
6219
|
+
children: audioName || i18n_I18n.t('audio')
|
|
6220
|
+
}),
|
|
6221
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6222
|
+
className: "flex items-center gap-2",
|
|
6223
|
+
children: [
|
|
6224
|
+
/*#__PURE__*/ jsx(LoadingButton, {
|
|
6225
|
+
color: "primary",
|
|
6226
|
+
icon: /*#__PURE__*/ jsx(IconCozDownload, {}),
|
|
6227
|
+
onClick: async ()=>{
|
|
6228
|
+
if (audioUrl) await fileDownload(audioUrl, audioName || i18n_I18n.t('test'));
|
|
6229
|
+
},
|
|
6230
|
+
children: i18n_I18n.t('download')
|
|
6231
|
+
}),
|
|
6232
|
+
/*#__PURE__*/ jsx(IconButton, {
|
|
6233
|
+
size: "large",
|
|
6234
|
+
color: "secondary",
|
|
6235
|
+
className: "!w-[40px] !h-[40px]",
|
|
6236
|
+
icon: /*#__PURE__*/ jsx(IconCozCross, {}),
|
|
6237
|
+
onClick: ()=>setModalVisible(false)
|
|
6238
|
+
})
|
|
6239
|
+
]
|
|
6240
|
+
})
|
|
6241
|
+
]
|
|
6242
|
+
}),
|
|
6243
|
+
width: 800,
|
|
6244
|
+
onCancel: ()=>setModalVisible(false),
|
|
6245
|
+
children: /*#__PURE__*/ jsx(AudioPlayer, {
|
|
6246
|
+
autoPlay: false,
|
|
6247
|
+
audioUrl: audioUrl,
|
|
6248
|
+
theme: "light",
|
|
6249
|
+
skipDuration: 180,
|
|
6250
|
+
className: classnames('rounded-[8px]', '[&_.semi-audio-player-control>span:not(:first-child)]:hidden', '[&_.semi-audio-player-control_button]:!coz-stroke-primary', '[&_.semi-audio-player-slider-progress]:bg-[--coz-fg-hglt]')
|
|
6251
|
+
})
|
|
6252
|
+
})
|
|
6253
|
+
]
|
|
6254
|
+
});
|
|
6255
|
+
}
|
|
6256
|
+
const video_icon = __rslib_svgr_url__2__;
|
|
6257
|
+
function VideoRender({ videoName, videoUrl, showDownload, deletion, upload, size = 'small', className }) {
|
|
6258
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
6259
|
+
const [videoElementStatus, setVideoElementStatus] = useState('loading');
|
|
6260
|
+
const iconSizeCls = 'small' === size ? 'text-[14px]' : 'text-[20px]';
|
|
6261
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
6262
|
+
className: "flex flex-col",
|
|
6263
|
+
onClick: (e)=>{
|
|
6264
|
+
e.stopPropagation();
|
|
6265
|
+
},
|
|
6266
|
+
children: [
|
|
6267
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6268
|
+
className: classnames('inline-block relative group', 'small' === size ? 'w-[36px] h-[36px]' : 'w-[80px] h-[80px]', className),
|
|
6269
|
+
children: [
|
|
6270
|
+
'loading' === videoElementStatus || upload?.status === 'loading' ? /*#__PURE__*/ jsx(Spin, {
|
|
6271
|
+
spinning: true,
|
|
6272
|
+
wrapperClassName: "absolute inset-0",
|
|
6273
|
+
children: /*#__PURE__*/ jsx("img", {
|
|
6274
|
+
src: video_icon,
|
|
6275
|
+
className: "w-full h-full object-cover"
|
|
6276
|
+
})
|
|
6277
|
+
}) : null,
|
|
6278
|
+
'error' === videoElementStatus || upload?.status === 'error' ? /*#__PURE__*/ jsx("div", {
|
|
6279
|
+
className: classnames('absolute inset-0 rounded-[6px] flex items-center justify-center coz-mg-primary', {
|
|
6280
|
+
'border border-solid coz-stroke-hglt-red': upload?.status === 'error'
|
|
6281
|
+
}),
|
|
6282
|
+
children: /*#__PURE__*/ jsx(IconCozImageBroken, {
|
|
6283
|
+
className: classnames('text-[30px] coz-fg-dim')
|
|
6284
|
+
})
|
|
6285
|
+
}) : null,
|
|
6286
|
+
/*#__PURE__*/ jsx("video", {
|
|
6287
|
+
src: videoUrl,
|
|
6288
|
+
width: '100%',
|
|
6289
|
+
height: '100%',
|
|
6290
|
+
className: classnames('rounded-[6px] pointer-events-none', {
|
|
6291
|
+
invisible: 'loaded' !== videoElementStatus || [
|
|
6292
|
+
'error',
|
|
6293
|
+
'loading'
|
|
6294
|
+
].includes(upload?.status || 'success')
|
|
6295
|
+
}),
|
|
6296
|
+
style: {
|
|
6297
|
+
objectFit: 'cover',
|
|
6298
|
+
objectPosition: 'center'
|
|
6299
|
+
},
|
|
6300
|
+
onLoadedData: ()=>setVideoElementStatus('loaded'),
|
|
6301
|
+
onError: ()=>setVideoElementStatus('error')
|
|
6302
|
+
}),
|
|
6303
|
+
/*#__PURE__*/ jsx("div", {
|
|
6304
|
+
className: classnames('absolute inset-0 flex items-center justify-center rounded-[6px]', 'bg-[rgba(0,0,0,0.2)]', 'group-hover:invisible', 'loaded' !== videoElementStatus || [
|
|
6305
|
+
'error',
|
|
6306
|
+
'loading'
|
|
6307
|
+
].includes(upload?.status || 'success') ? 'invisible' : 'visible'),
|
|
6308
|
+
children: /*#__PURE__*/ jsx(IconCozPlayCircle, {
|
|
6309
|
+
className: classnames('coz-fg-hglt-plus', iconSizeCls)
|
|
6310
|
+
})
|
|
6311
|
+
}),
|
|
6312
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6313
|
+
className: classnames('absolute inset-0 flex gap-3 items-center rounded-[6px] justify-center', 'z-[1]', 'bg-[rgba(0,0,0,0.4)]', 'invisible group-hover:visible'),
|
|
6314
|
+
children: [
|
|
6315
|
+
upload?.status === 'error' ? /*#__PURE__*/ jsx(IconCozRefresh, {
|
|
6316
|
+
className: classnames('text-white cursor-pointer', iconSizeCls),
|
|
6317
|
+
onClick: upload?.onRetry
|
|
6318
|
+
}) : null,
|
|
6319
|
+
videoUrl && ![
|
|
6320
|
+
'error',
|
|
6321
|
+
'loading'
|
|
6322
|
+
].includes(upload?.status || 'success') ? /*#__PURE__*/ jsx(IconCozPlayCircle, {
|
|
6323
|
+
className: classnames('text-white cursor-pointer', iconSizeCls),
|
|
6324
|
+
onClick: ()=>setModalVisible(true)
|
|
6325
|
+
}) : null,
|
|
6326
|
+
showDownload ? /*#__PURE__*/ jsx(IconCozDownload, {
|
|
6327
|
+
className: classnames('text-white cursor-pointer', iconSizeCls),
|
|
6328
|
+
onClick: ()=>{
|
|
6329
|
+
if (videoUrl) fileDownload(videoUrl, videoName || i18n_I18n.t('test'));
|
|
6330
|
+
}
|
|
6331
|
+
}) : null,
|
|
6332
|
+
isFunction(deletion) ? /*#__PURE__*/ jsx("div", {
|
|
6333
|
+
className: "absolute right-[-8px] top-[-8px] p-[2px] shrink-0 inline-flex justify-center items-center cursor-pointer",
|
|
6334
|
+
onClick: ()=>deletion(),
|
|
6335
|
+
children: /*#__PURE__*/ jsx(IconCozCrossCircleFillPalette, {})
|
|
6336
|
+
}) : null
|
|
6337
|
+
]
|
|
6338
|
+
})
|
|
6339
|
+
]
|
|
6340
|
+
}),
|
|
6341
|
+
/*#__PURE__*/ jsx(Modal, {
|
|
6342
|
+
visible: modalVisible,
|
|
6343
|
+
closable: false,
|
|
6344
|
+
className: "[&_div:has(>.semi-videoPlayer)]:overflow-hidden",
|
|
6345
|
+
title: /*#__PURE__*/ jsxs("div", {
|
|
6346
|
+
className: "w-full flex items-center justify-between",
|
|
6347
|
+
children: [
|
|
6348
|
+
/*#__PURE__*/ jsx(Typography.Title, {
|
|
6349
|
+
heading: 5,
|
|
6350
|
+
ellipsis: {
|
|
6351
|
+
showTooltip: true
|
|
6352
|
+
},
|
|
6353
|
+
children: videoName || i18n_I18n.t('video')
|
|
6354
|
+
}),
|
|
6355
|
+
/*#__PURE__*/ jsxs("div", {
|
|
6356
|
+
className: "flex items-center gap-2",
|
|
6357
|
+
children: [
|
|
6358
|
+
/*#__PURE__*/ jsx(LoadingButton, {
|
|
6359
|
+
color: "primary",
|
|
6360
|
+
icon: /*#__PURE__*/ jsx(IconCozDownload, {}),
|
|
6361
|
+
onClick: async ()=>{
|
|
6362
|
+
if (videoUrl) await fileDownload(videoUrl, videoName || i18n_I18n.t('test'));
|
|
6363
|
+
},
|
|
6364
|
+
children: i18n_I18n.t('download')
|
|
6365
|
+
}),
|
|
6366
|
+
/*#__PURE__*/ jsx(IconButton, {
|
|
6367
|
+
size: "large",
|
|
6368
|
+
color: "secondary",
|
|
6369
|
+
className: "!w-[40px] !h-[40px]",
|
|
6370
|
+
icon: /*#__PURE__*/ jsx(IconCozCross, {}),
|
|
6371
|
+
onClick: ()=>setModalVisible(false)
|
|
6372
|
+
})
|
|
6373
|
+
]
|
|
6374
|
+
})
|
|
6375
|
+
]
|
|
6376
|
+
}),
|
|
6377
|
+
width: 900,
|
|
6378
|
+
height: 600,
|
|
6379
|
+
onCancel: ()=>setModalVisible(false),
|
|
6380
|
+
children: /*#__PURE__*/ jsx(VideoPlayer, {
|
|
6381
|
+
className: "rounded-[8px] overflow-hidden",
|
|
6382
|
+
src: videoUrl || '',
|
|
6383
|
+
controlsList: [
|
|
6384
|
+
'play',
|
|
6385
|
+
'time',
|
|
6386
|
+
'volume',
|
|
6387
|
+
'playbackRate',
|
|
6388
|
+
'fullscreen'
|
|
6389
|
+
]
|
|
6390
|
+
})
|
|
6391
|
+
})
|
|
6392
|
+
]
|
|
6393
|
+
});
|
|
6394
|
+
}
|
|
6395
|
+
export { AudioRender, base_search_form_select as BaseSearchFormSelect, base_search_select as BaseSearchSelect, BasicCard, CardPane, ChipSelect, _monaco_editor_react as CodeEditor, CodeEditorWithLoading, CodeMirrorCodeEditor, CodeMirrorJsonEditor, CodeMirrorRawCodeEditor, CodeMirrorRawTextEditor, CodeMirrorTextEditor, CollapseCard, CollapseItem, ColumnSelector, Copyable, CozeLoopProvider, DEFAULT_FILE_COUNT, DEFAULT_FILE_SIZE, DEFAULT_PAGE_SIZE, DEFAULT_PART_COUNT, DEFAULT_SUPPORTED_FORMATS, DEFAULT_VIDEO_SUPPORTED_FORMATS, DiffEditor, EditIconButton, EditorProvider, FooterActions, FullPage, IDRender, IconButtonContainer, ImageItemRenderer, IndexControllerView, InfiniteScrollTable, InfoTooltip, InputSlider, InputWithCount, JumpIconButton, LargeTxtRender, Layout, LazyLoadComponent, LogicEditor, LogicExpr, LoopRadioGroup, LoopTable, LoopTabs, MultiPartRender, MultipartEditor, type_ImageStatus as MultipartRenderStatus, OpenDetailButton, PAGE_SIZE_OPTIONS, PageError, PageLoading, PageNoAuth, PageNoContent, PageNotFound, PrimaryPage, PrimaryTitle, RadioButton, ResizableSideSheet, ResizeSidesheet, SchemaEditor, SemiSchemaForm, SentinelForm, StepNav, TableBatchOperate, TableColActions, TableColsConfig, TableEmpty, TableHeader, TableWithPagination, TableWithoutPagination, TextAreaPro, TextWithCopy, TitleWithSub, TooltipWhenDisabled, TooltipWithDisabled, UploadButton, UserProfile, VersionItem, VersionList, VersionSwitchPanel, VideoItemRenderer, VideoRender, dealColumnsWithStorage, formateDecimalPlacesString, getColumnManageStorage, getStoragePageSize, handleCopy, validator_ajv8 as schemaValidators, setColumnsManageStorage, sleep, upload_uploadFile as uploadFile, useBatchOperate, useItemIndexController, useReportEvent, useUnsaveLeaveWarning };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="36" height="36" rx="4" fill="#5768A1" fill-opacity="0.08"/>
|
|
3
|
+
<path d="M8 9.2C8 8.07989 8 7.51984 8.21799 7.09202C8.40973 6.71569 8.71569 6.40973 9.09202 6.21799C9.51984 6 10.0799 6 11.2 6H20.0079C20.497 6 20.7416 6 20.9718 6.05526C21.1759 6.10425 21.3709 6.18506 21.5499 6.29472C21.7517 6.4184 21.9247 6.59135 22.2706 6.93726L27.0627 11.7294C27.4087 12.0753 27.5816 12.2483 27.7053 12.4501C27.8149 12.629 27.8957 12.8241 27.9447 13.0282C28 13.2584 28 13.503 28 13.9921V26.8C28 27.9201 28 28.4801 27.782 28.908C27.5903 29.2843 27.2843 29.5903 26.908 29.782C26.4801 30 25.9201 30 24.8 30H11.2C10.0799 30 9.51984 30 9.09202 29.782C8.71569 29.5903 8.40973 29.2843 8.21799 28.908C8 28.4801 8 27.9201 8 26.8V9.2Z" fill="#00BF40"/>
|
|
4
|
+
<path d="M21.3334 6.77291C21.3334 6.53058 21.3334 6.40942 21.3813 6.35331C21.4228 6.30463 21.4852 6.2788 21.549 6.28382C21.6226 6.28961 21.7083 6.37528 21.8796 6.54664L27.4538 12.1208C27.6251 12.2921 27.7108 12.3778 27.7166 12.4513C27.7216 12.5152 27.6958 12.5775 27.6471 12.6191C27.591 12.667 27.4698 12.667 27.2275 12.667H24.5334C23.4132 12.667 22.8532 12.667 22.4254 12.449C22.049 12.2573 21.7431 11.9513 21.5514 11.575C21.3334 11.1472 21.3334 10.5871 21.3334 9.46703V6.77291Z" fill="white" fill-opacity="0.3"/>
|
|
5
|
+
<path d="M16.0556 25.5C15.4445 25.5 14.9213 25.2824 14.4862 24.8472C14.051 24.4121 13.8334 23.8889 13.8334 23.2778C13.8334 22.6667 14.051 22.1435 14.4862 21.7083C14.9213 21.2731 15.4445 21.0555 16.0556 21.0555C16.2686 21.0555 16.4653 21.081 16.6459 21.1319C16.8264 21.1829 17 21.2593 17.1667 21.3611V16.3333C17.1667 15.8731 17.5398 15.5 18 15.5H21.3334V17.1667H18.6945C18.4644 17.1667 18.2778 17.3532 18.2778 17.5833V23.2778C18.2778 23.8889 18.0602 24.4121 17.625 24.8472C17.1898 25.2824 16.6667 25.5 16.0556 25.5Z" fill="white"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect width="36" height="36" rx="4" fill="#5768A1" fill-opacity="0.08"/>
|
|
3
|
+
<path d="M8 9.2C8 8.07989 8 7.51984 8.21799 7.09202C8.40973 6.71569 8.71569 6.40973 9.09202 6.21799C9.51984 6 10.0799 6 11.2 6H20.0079C20.497 6 20.7416 6 20.9718 6.05526C21.1759 6.10425 21.3709 6.18506 21.5499 6.29472C21.7517 6.4184 21.9247 6.59135 22.2706 6.93726L27.0627 11.7294C27.4087 12.0753 27.5816 12.2483 27.7053 12.4501C27.8149 12.629 27.8957 12.8241 27.9447 13.0282C28 13.2584 28 13.503 28 13.9921V26.8C28 27.9201 28 28.4801 27.782 28.908C27.5903 29.2843 27.2843 29.5903 26.908 29.782C26.4801 30 25.9201 30 24.8 30H11.2C10.0799 30 9.51984 30 9.09202 29.782C8.71569 29.5903 8.40973 29.2843 8.21799 28.908C8 28.4801 8 27.9201 8 26.8V9.2Z" fill="#4080FF"/>
|
|
4
|
+
<path d="M21.3334 6.77291C21.3334 6.53058 21.3334 6.40942 21.3813 6.35331C21.4228 6.30463 21.4852 6.2788 21.549 6.28382C21.6226 6.28961 21.7083 6.37528 21.8796 6.54664L27.4538 12.1208C27.6251 12.2921 27.7108 12.3778 27.7166 12.4513C27.7216 12.5152 27.6958 12.5775 27.6471 12.6191C27.591 12.667 27.4698 12.667 27.2275 12.667H24.5334C23.4132 12.667 22.8532 12.667 22.4254 12.449C22.049 12.2573 21.7431 11.9513 21.5514 11.575C21.3334 11.1472 21.3334 10.5871 21.3334 9.46703V6.77291Z" fill="white" fill-opacity="0.3"/>
|
|
5
|
+
<path d="M12.4447 16.6107C12.4447 16.1504 12.8178 15.7773 13.278 15.7773H19.1114C19.5716 15.7773 19.9447 16.1504 19.9447 16.6107V17.6003L21.2028 16.8925C21.7583 16.5801 22.4447 16.9815 22.4447 17.6189V21.4358C22.4447 22.0731 21.7583 22.4746 21.2028 22.1621L19.9447 21.4544V22.444C19.9447 22.9042 19.5716 23.2773 19.1114 23.2773H13.278C12.8178 23.2773 12.4447 22.9042 12.4447 22.444V16.6107ZM14.9447 19.1107C15.4049 19.1107 15.778 18.7375 15.778 18.2773C15.778 17.8171 15.4049 17.444 14.9447 17.444C14.4844 17.444 14.1114 17.8171 14.1114 18.2773C14.1114 18.7375 14.4844 19.1107 14.9447 19.1107Z" fill="white"/>
|
|
6
|
+
</svg>
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { type ComponentRef } from 'react';
|
|
2
|
+
import { Select } from '@coze-arch/coze-design';
|
|
1
3
|
import { type BaseSelectProps } from './types';
|
|
4
|
+
export type BaseSearchSelectRef = ComponentRef<typeof Select>;
|
|
2
5
|
/**
|
|
3
6
|
* 基础选择器组件
|
|
4
7
|
* 解决两个主要问题:
|
|
5
8
|
* 1. 初始选中值不在第一页数据中导致只显示ID
|
|
6
9
|
* 2. 搜索后选中值不在结果中导致只显示ID
|
|
7
10
|
*/
|
|
8
|
-
declare const BaseSearchSelect: (
|
|
11
|
+
declare const BaseSearchSelect: import("react").ForwardRefExoticComponent<Omit<BaseSelectProps, "ref"> & import("react").RefAttributes<import("@coze-arch/coze-design").SemiSelect>>;
|
|
9
12
|
export default BaseSearchSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as BaseSearchSelect } from './base-search-select';
|
|
1
|
+
export { default as BaseSearchSelect, type BaseSearchSelectRef, } from './base-search-select';
|
|
2
2
|
export { default as BaseSearchFormSelect } from './base-search-form-select';
|
|
3
3
|
export { type BaseSelectProps, type LoadOptionByIds } from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type OptionProps, type SelectProps } from '@coze-arch/coze-design';
|
|
2
|
-
export type LoadOptionByIds = (ids: string[] | number[]) => Promise<(OptionProps & {
|
|
2
|
+
export type LoadOptionByIds = (ids: string | number | string[] | number[]) => Promise<(OptionProps & {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
})[]>;
|
|
5
5
|
export interface BaseSelectProps extends SelectProps {
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
export declare const CodeMirrorCodeEditor: (props: import("@coze-editor/editor/react").InferRendererProps<(import("@coze-editor/editor/react").OptionPluginSpec<"editorHeight", string | number | undefined> | import("@coze-editor/editor/react").OptionPluginSpec<"borderRadius", string | number | undefined> | import("@coze-editor/editor/react").OptionPluginSpec<"padding", string | number | undefined> | import("@coze-editor/editor/react").OptionPluginSpec<"lineHeight", string | number | undefined> | import("@coze-editor/editor/react").ExtensionPluginSpec | import("@coze-editor/editor/react").OptionPluginSpec<"fontSize", number> | import("@coze-editor/editor/react").OptionPluginSpec<"placeholder", string | HTMLElement> | import("@coze-editor/editor/react").OptionPluginSpec<"readOnly", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"editable", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"lineWrapping", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"height", string | number> | import("@coze-editor/editor/react").OptionPluginSpec<"minHeight", string | number> | import("@coze-editor/editor/react").OptionPluginSpec<"maxHeight", string | number> | import("@coze-editor/editor/react").APIPluginSpec<"getValue", [], string> | import("@coze-editor/editor/react").APIPluginSpec<"setValue", [value: string], void> | import("@coze-editor/editor/react").APIPluginSpec<"replaceText", [options: {
|
|
2
|
+
from: number;
|
|
3
|
+
to: number;
|
|
4
|
+
text: string;
|
|
5
|
+
cursorOffset?: number;
|
|
6
|
+
scrollIntoView?: boolean;
|
|
7
|
+
userEvent?: string;
|
|
8
|
+
}], void> | import("@coze-editor/editor/react").APIPluginSpec<"getCursorPosition", [], number> | import("@coze-editor/editor/react").APIPluginSpec<"setCursorPosition", [pos: number], void> | import("@coze-editor/editor/react").APIPluginSpec<"focus", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"blur", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"disableKeybindings", [keys: string[]], void> | import("@coze-editor/editor/react").APIPluginSpec<"updateASTDecorations", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"undo", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"redo", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void> | import("@coze-editor/editor/react").APIPluginSpec<"getSelection", [], {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
anchor: number;
|
|
12
|
+
head: number;
|
|
13
|
+
}> | import("@coze-editor/editor/react").APIPluginSpec<"getLineInfoAtPosition", [pos: number], import("@codemirror/state").Line> | import("@coze-editor/editor/react").EventPluginSpec<"selectionChange", {
|
|
14
|
+
selection: {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
head: number;
|
|
18
|
+
anchor: number;
|
|
19
|
+
};
|
|
20
|
+
update: import("@codemirror/view").ViewUpdate;
|
|
21
|
+
}> | import("@coze-editor/editor/react").EventPluginSpec<"change", {
|
|
22
|
+
value: string;
|
|
23
|
+
}> | import("@coze-editor/editor/react").EventPluginSpec<"focus", symbol> | import("@coze-editor/editor/react").EventPluginSpec<"blur", symbol> | import("@coze-editor/editor/react").DOMEventHandlerPluginSpec<"mousedown"> | import("@coze-editor/editor/react").DOMEventHandlerPluginSpec<"mouseup"> | import("@coze-editor/editor/react").OptionPluginSpec<"tabSize", number> | import("@coze-editor/editor/react").OptionPluginSpec<"scrollBeyondLastLine", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"uri", string> | import("@coze-editor/editor/react").OptionPluginSpec<"theme", string> | import("@coze-editor/editor/react").OptionPluginSpec<"languageId", string> | import("@coze-editor/editor/react").OptionPluginSpec<"transformer", import("@coze-editor/editor/preset-code").Transformer> | import("@coze-editor/editor/react").OptionPluginSpec<"overlayScrollbar", unknown> | import("@coze-editor/editor/react").OptionPluginSpec<"lineNumbersGutter", unknown> | import("@coze-editor/editor/react").OptionPluginSpec<"foldGutter", unknown> | import("@coze-editor/editor/react").OptionPluginSpec<"colorizeBrackets", unknown> | import("@coze-editor/editor/react").APIPluginSpec<"validate", [], void>)[]>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
export declare const CodeMirrorTextEditor: (props: import("@coze-editor/editor/react").InferRendererProps<(import("@coze-editor/editor/react").OptionPluginSpec<"lineHeight", string | number | undefined> | import("@coze-editor/editor/react").ExtensionPluginSpec | import("@coze-editor/editor/react").OptionPluginSpec<"fontSize", number> | import("@coze-editor/editor/react").OptionPluginSpec<"placeholder", string | HTMLElement> | import("@coze-editor/editor/react").OptionPluginSpec<"readOnly", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"editable", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"lineWrapping", boolean> | import("@coze-editor/editor/react").OptionPluginSpec<"height", string | number> | import("@coze-editor/editor/react").OptionPluginSpec<"minHeight", string | number> | import("@coze-editor/editor/react").OptionPluginSpec<"maxHeight", string | number> | import("@coze-editor/editor/react").APIPluginSpec<"getValue", [], string> | import("@coze-editor/editor/react").APIPluginSpec<"getCursorPosition", [], number> | import("@coze-editor/editor/react").APIPluginSpec<"focus", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"blur", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"updateASTDecorations", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"undo", [], void> | import("@coze-editor/editor/react").APIPluginSpec<"redo", [], void> | import("@coze-editor/editor/react").EventPluginSpec<"focus", symbol> | import("@coze-editor/editor/react").EventPluginSpec<"blur", symbol> | import("@coze-editor/editor/react").DOMEventHandlerPluginSpec<"mousedown"> | import("@coze-editor/editor/react").DOMEventHandlerPluginSpec<"mouseup"> | import("@coze-editor/editor/react").APIPluginSpec<"setValue", [value: string], void> | import("@coze-editor/editor/react").APIPluginSpec<"replaceText", [options: {
|
|
2
|
+
from: number;
|
|
3
|
+
to: number;
|
|
4
|
+
text: string;
|
|
5
|
+
cursorOffset?: number;
|
|
6
|
+
scrollIntoView?: boolean;
|
|
7
|
+
userEvent?: string;
|
|
8
|
+
}], void> | import("@coze-editor/editor/react").APIPluginSpec<"setCursorPosition", [pos: number], void> | import("@coze-editor/editor/react").APIPluginSpec<"disableKeybindings", [keys: string[]], void> | import("@coze-editor/editor/react").APIPluginSpec<"transformTextInSelection", [transformer: (text: string) => string | undefined], void> | import("@coze-editor/editor/react").APIPluginSpec<"getSelection", [], {
|
|
9
|
+
from: number;
|
|
10
|
+
to: number;
|
|
11
|
+
anchor: number;
|
|
12
|
+
head: number;
|
|
13
|
+
}> | import("@coze-editor/editor/react").APIPluginSpec<"getLineInfoAtPosition", [pos: number], import("@codemirror/state").Line> | import("@coze-editor/editor/react").EventPluginSpec<"selectionChange", {
|
|
14
|
+
selection: {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
head: number;
|
|
18
|
+
anchor: number;
|
|
19
|
+
};
|
|
20
|
+
update: import("@codemirror/view").ViewUpdate;
|
|
21
|
+
}> | import("@coze-editor/editor/react").EventPluginSpec<"change", {
|
|
22
|
+
value: string;
|
|
23
|
+
}>)[]>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export { TableBatchOperate } from './table-batch-operate/table-batch-operation';
|
|
|
34
34
|
export { useBatchOperate, type BatchOperateStore, } from './table-batch-operate/use-batch-operate';
|
|
35
35
|
export { useItemIndexController, type IndexControllerStore, } from './index-controller/use-item-index-controller';
|
|
36
36
|
export { IndexControllerView } from './index-controller/record-navigation';
|
|
37
|
-
export { BaseSearchSelect, BaseSearchFormSelect, type BaseSelectProps, type LoadOptionByIds, } from './base-search-select';
|
|
37
|
+
export { BaseSearchSelect, BaseSearchFormSelect, type BaseSearchSelectRef, type BaseSelectProps, type LoadOptionByIds, } from './base-search-select';
|
|
38
38
|
export { OpenDetailButton } from './open-detail-button';
|
|
39
39
|
export { EditIconButton } from './edit-icon-button';
|
|
40
40
|
export { CollapseCard } from './collapse-card';
|
|
@@ -68,3 +68,5 @@ export { SentinelForm, type SentinelFormRef, type SentinelFormApi, } from './sen
|
|
|
68
68
|
export { CodeMirrorCodeEditor, CodeMirrorTextEditor, CodeMirrorJsonEditor, CodeMirrorRawTextEditor, CodeMirrorRawCodeEditor, EditorProvider, } from './codemirror-editor';
|
|
69
69
|
export { SchemaEditor } from './schema-editor';
|
|
70
70
|
export { CodeEditorWithLoading } from './code-editor-with-loading';
|
|
71
|
+
export { CollapseItem } from './collapse-item';
|
|
72
|
+
export { AudioRender, type AudioRenderProps, VideoRender, type VideoRenderProps, } from './multi-modal-dataset-item-render';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface AudioRenderProps {
|
|
2
|
+
audioUrl?: string;
|
|
3
|
+
audioName?: string;
|
|
4
|
+
showDownload?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* 删除按钮 复合参数
|
|
7
|
+
*
|
|
8
|
+
* - 若不展示删除按钮,则传 false | undefined
|
|
9
|
+
* - 若展示删除按钮,则直接传回调函数
|
|
10
|
+
*
|
|
11
|
+
* (不叫 delete 是为了避讳 js 关键字)
|
|
12
|
+
*/
|
|
13
|
+
deletion?: false | (() => void);
|
|
14
|
+
/**
|
|
15
|
+
* 上传态 展示配置
|
|
16
|
+
*
|
|
17
|
+
* 只有在可编辑表单中需要考虑
|
|
18
|
+
*/
|
|
19
|
+
upload?: {
|
|
20
|
+
/**
|
|
21
|
+
* loading - 展示 loading 态
|
|
22
|
+
* error - 展示 retry 按钮
|
|
23
|
+
*/
|
|
24
|
+
status: 'success' | 'error' | 'loading';
|
|
25
|
+
onRetry?: () => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @enum 'small' - 整体宽高 36px;icon 宽高 14px
|
|
29
|
+
* @enum 'medium' - 整体宽高 80px;icon 宽高 20px
|
|
30
|
+
* @default 'small'
|
|
31
|
+
*/
|
|
32
|
+
size?: 'small' | 'medium';
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function AudioRender({ audioUrl, audioName, className, showDownload, deletion, upload, size, }: AudioRenderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface VideoRenderProps {
|
|
2
|
+
videoName?: string;
|
|
3
|
+
videoUrl?: string;
|
|
4
|
+
showDownload?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* 删除按钮 复合参数
|
|
7
|
+
*
|
|
8
|
+
* - 若不展示删除按钮,则传 false | undefined
|
|
9
|
+
* - 若展示删除按钮,则直接传回调函数
|
|
10
|
+
*
|
|
11
|
+
* (不叫 delete 是为了避讳 js 关键字)
|
|
12
|
+
*/
|
|
13
|
+
deletion?: false | (() => void);
|
|
14
|
+
/**
|
|
15
|
+
* 上传态 展示配置
|
|
16
|
+
*
|
|
17
|
+
* 只有在可编辑表单中需要考虑
|
|
18
|
+
*/
|
|
19
|
+
upload?: {
|
|
20
|
+
/**
|
|
21
|
+
* loading - 展示 loading 态
|
|
22
|
+
* error - 展示 retry 按钮
|
|
23
|
+
*/
|
|
24
|
+
status: 'success' | 'error' | 'loading';
|
|
25
|
+
onRetry?: () => void;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @enum 'small' - 整体宽高 36px;icon 宽高 14px
|
|
29
|
+
* @enum 'medium' - 整体宽高 80px;icon 宽高 20px
|
|
30
|
+
* @default 'small'
|
|
31
|
+
*/
|
|
32
|
+
size?: 'small' | 'medium';
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function VideoRender({ videoName, videoUrl, showDownload, deletion, upload, size, className, }: VideoRenderProps): import("react/jsx-runtime").JSX.Element;
|