@cozeloop/components 0.0.2 → 0.0.3-beta-1769665914778

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 (235) hide show
  1. package/README.md +82 -1
  2. package/dist/es/index.css +645 -0
  3. package/dist/es/index.mjs +6089 -0
  4. package/dist/es/loopIcons.mjs +3 -0
  5. package/dist/es/rslib-runtime.mjs +40 -0
  6. package/dist/es/static/svg/select.svg +1 -0
  7. package/dist/lib/base-search-select/base-search-form-select.d.ts +3 -0
  8. package/dist/lib/base-search-select/base-search-select.d.ts +12 -0
  9. package/dist/lib/base-search-select/index.d.ts +3 -0
  10. package/dist/lib/base-search-select/types.d.ts +13 -0
  11. package/dist/lib/base-search-select/utils.d.ts +8 -0
  12. package/dist/lib/basic-card/index.d.ts +7 -0
  13. package/dist/lib/card-pane/index.d.ts +5 -0
  14. package/dist/lib/chip-select/index.d.ts +2 -0
  15. package/dist/lib/code-editor/index.d.ts +3 -0
  16. package/dist/lib/code-editor-with-loading/index.d.ts +10 -0
  17. package/dist/lib/codemirror-editor/code-editor.d.ts +23 -0
  18. package/dist/lib/codemirror-editor/index.d.ts +6 -0
  19. package/dist/lib/codemirror-editor/json-editor.d.ts +19 -0
  20. package/dist/lib/codemirror-editor/raw-code-editor.d.ts +20 -0
  21. package/dist/lib/codemirror-editor/raw-text-editor.d.ts +11 -0
  22. package/dist/lib/codemirror-editor/text-editor.d.ts +23 -0
  23. package/dist/lib/codemirror-editor/themes/coze-dark.d.ts +1 -0
  24. package/dist/lib/codemirror-editor/themes/coze-light.d.ts +1 -0
  25. package/dist/lib/collapse-card/index.d.ts +14 -0
  26. package/dist/lib/collapse-item/index.d.ts +7 -0
  27. package/dist/lib/collapsible-card/index.d.ts +13 -0
  28. package/dist/{types → lib}/column-manage-storage/index.d.ts +6 -6
  29. package/dist/lib/columns-select/index.d.ts +19 -0
  30. package/dist/lib/copyable/index.d.ts +5 -0
  31. package/dist/lib/edit-icon-button/index.d.ts +8 -0
  32. package/dist/lib/footer-actions/index.d.ts +15 -0
  33. package/dist/{types → lib}/hooks/use-infinite-scroll.d.ts +12 -12
  34. package/dist/lib/hooks/use-mouse-down-offset.d.ts +9 -0
  35. package/dist/lib/hooks/use-unsave-leave-warning.d.ts +15 -0
  36. package/dist/lib/id-render/icon-button-container.d.ts +8 -0
  37. package/dist/lib/id-render/index.d.ts +7 -0
  38. package/dist/lib/index-controller/record-navigation.d.ts +6 -0
  39. package/dist/lib/index-controller/use-item-index-controller.d.ts +47 -0
  40. package/dist/lib/index.d.ts +71 -0
  41. package/dist/{types → lib}/infinite-scroll-table/index.d.ts +6 -6
  42. package/dist/lib/info-tooltip/index.d.ts +9 -0
  43. package/dist/lib/input-components/radio-button.d.ts +14 -0
  44. package/dist/lib/input-slider/index.d.ts +15 -0
  45. package/dist/lib/input-with-count/index.d.ts +2 -0
  46. package/dist/lib/jump-button/jump-icon-button.d.ts +4 -0
  47. package/dist/{types → lib}/large-txt-render/index.d.ts +2 -2
  48. package/dist/lib/layout/content.d.ts +7 -0
  49. package/dist/lib/layout/header.d.ts +7 -0
  50. package/dist/lib/layout/index.d.ts +12 -0
  51. package/dist/lib/layout/tabs.d.ts +6 -0
  52. package/dist/lib/lazy-load-component/index.d.ts +5 -0
  53. package/dist/lib/logic-editor/index.d.ts +3 -0
  54. package/dist/lib/logic-editor/logic-editor.d.ts +15 -0
  55. package/dist/lib/logic-editor/logic-left-render.d.ts +3 -0
  56. package/dist/lib/logic-editor/logic-operator-render.d.ts +3 -0
  57. package/dist/lib/logic-editor/logic-right-render.d.ts +3 -0
  58. package/dist/lib/logic-editor/logic-types.d.ts +53 -0
  59. package/dist/lib/logic-editor/utils.d.ts +2 -0
  60. package/dist/lib/logic-expr/consts.d.ts +2 -0
  61. package/dist/lib/logic-expr/expr-group-render.d.ts +2 -0
  62. package/dist/lib/logic-expr/expr-render.d.ts +2 -0
  63. package/dist/lib/logic-expr/index.d.ts +2 -0
  64. package/dist/lib/logic-expr/logic-expr.d.ts +2 -0
  65. package/dist/lib/logic-expr/logic-not.d.ts +10 -0
  66. package/dist/lib/logic-expr/logic-toggle.d.ts +12 -0
  67. package/dist/lib/logic-expr/types.d.ts +79 -0
  68. package/dist/lib/loop-icons/index.d.ts +1 -0
  69. package/dist/lib/loop-radio-group/index.d.ts +2 -0
  70. package/dist/lib/multi-part-editor/components/image-item-renderer.d.ts +14 -0
  71. package/dist/lib/multi-part-editor/components/multipart-item-renderer.d.ts +10 -0
  72. package/dist/lib/multi-part-editor/components/url-input-modal.d.ts +14 -0
  73. package/dist/lib/multi-part-editor/components/video-item-renderer.d.ts +14 -0
  74. package/dist/lib/multi-part-editor/index.d.ts +3 -0
  75. package/dist/lib/multi-part-editor/multi-part-render.d.ts +10 -0
  76. package/dist/lib/multi-part-editor/type.d.ts +81 -0
  77. package/dist/lib/multi-part-editor/upload-button.d.ts +23 -0
  78. package/dist/lib/multi-part-editor/utils.d.ts +16 -0
  79. package/dist/lib/open-detail-button/index.d.ts +6 -0
  80. package/dist/lib/page-content/index.d.ts +20 -0
  81. package/dist/lib/primary-page/index.d.ts +1 -0
  82. package/dist/lib/primary-page/primary-header.d.ts +14 -0
  83. package/dist/lib/primary-title/index.d.ts +6 -0
  84. package/dist/lib/resizable-side-sheet/index.d.ts +10 -0
  85. package/dist/{types → lib}/resize-sidesheet/index.d.ts +4 -3
  86. package/dist/lib/resize-sidesheet/use-drag.d.ts +11 -0
  87. package/dist/lib/schema-editor/index.d.ts +11 -0
  88. package/dist/lib/semi-schema-form/components/tmpls/array-field-item.d.ts +6 -0
  89. package/dist/lib/semi-schema-form/components/tmpls/array-field.d.ts +6 -0
  90. package/dist/lib/semi-schema-form/components/tmpls/base-input.d.ts +8 -0
  91. package/dist/lib/semi-schema-form/components/tmpls/description-field.d.ts +6 -0
  92. package/dist/lib/semi-schema-form/components/tmpls/error-list.d.ts +6 -0
  93. package/dist/lib/semi-schema-form/components/tmpls/field-error.d.ts +6 -0
  94. package/dist/lib/semi-schema-form/components/tmpls/field.d.ts +7 -0
  95. package/dist/lib/semi-schema-form/components/tmpls/icon-button.d.ts +11 -0
  96. package/dist/lib/semi-schema-form/components/tmpls/index.d.ts +2 -0
  97. package/dist/lib/semi-schema-form/components/tmpls/object-field.d.ts +8 -0
  98. package/dist/lib/semi-schema-form/components/tmpls/submit.d.ts +4 -0
  99. package/dist/lib/semi-schema-form/components/tmpls/title-field.d.ts +6 -0
  100. package/dist/lib/semi-schema-form/components/widgets/checkbox.d.ts +7 -0
  101. package/dist/lib/semi-schema-form/components/widgets/checkboxs.d.ts +7 -0
  102. package/dist/lib/semi-schema-form/components/widgets/index.d.ts +2 -0
  103. package/dist/lib/semi-schema-form/components/widgets/radio.d.ts +7 -0
  104. package/dist/lib/semi-schema-form/components/widgets/range.d.ts +7 -0
  105. package/dist/lib/semi-schema-form/components/widgets/select.d.ts +7 -0
  106. package/dist/lib/semi-schema-form/components/widgets/textarea.d.ts +6 -0
  107. package/dist/lib/semi-schema-form/index.d.ts +4 -0
  108. package/dist/lib/sentinel-form/enum.d.ts +8 -0
  109. package/dist/lib/sentinel-form/index.d.ts +20 -0
  110. package/dist/lib/step-nav/index.d.ts +12 -0
  111. package/dist/{types → lib}/table/index.d.ts +1 -1
  112. package/dist/lib/table/sort-icon.d.ts +8 -0
  113. package/dist/lib/table/table-with-pagination.d.ts +21 -0
  114. package/dist/lib/table/table-without-pagniation.d.ts +6 -0
  115. package/dist/lib/table-batch-operate/table-batch-operation.d.ts +9 -0
  116. package/dist/lib/table-batch-operate/use-batch-operate.d.ts +30 -0
  117. package/dist/lib/table-col-actions/index.d.ts +24 -0
  118. package/dist/lib/table-cols-config/index.d.ts +11 -0
  119. package/dist/lib/table-cols-config/type.d.ts +6 -0
  120. package/dist/lib/table-cols-config/use-hidden-col-keys.d.ts +5 -0
  121. package/dist/lib/table-cols-config/util.d.ts +3 -0
  122. package/dist/lib/table-empty/index.d.ts +2 -0
  123. package/dist/lib/table-header/index.d.ts +14 -0
  124. package/dist/{types → lib}/tabs/index.d.ts +1 -1
  125. package/dist/lib/text-area-pro/index.d.ts +6 -0
  126. package/dist/lib/text-with-copy/index.d.ts +14 -0
  127. package/dist/lib/title-with-sub/index.d.ts +7 -0
  128. package/dist/lib/tooltip-when-disabled/index.d.ts +6 -0
  129. package/dist/lib/tooltip-with-disabled/index.d.ts +5 -0
  130. package/dist/lib/upload/index.d.ts +9 -0
  131. package/dist/lib/user-profile/index.d.ts +9 -0
  132. package/dist/lib/utils/basic.d.ts +2 -0
  133. package/dist/lib/version-list/version-descriptions.d.ts +15 -0
  134. package/dist/lib/version-list/version-item.d.ts +9 -0
  135. package/dist/lib/version-list/version-list.d.ts +11 -0
  136. package/dist/lib/version-list/version-switch-panel.d.ts +5 -0
  137. package/package.json +47 -35
  138. package/dist/es/collapsible-card/index.js +0 -45
  139. package/dist/es/collapsible-card/index.module.js +0 -5
  140. package/dist/es/collapsible-card/index_module.css +0 -48
  141. package/dist/es/column-manage-storage/index.js +0 -73
  142. package/dist/es/columns-select/index.js +0 -219
  143. package/dist/es/hooks/use-infinite-scroll.js +0 -178
  144. package/dist/es/hooks/use-mouse-down-offset.js +0 -41
  145. package/dist/es/id-render/icon-button-container.js +0 -61
  146. package/dist/es/id-render/index.js +0 -78
  147. package/dist/es/index.js +0 -66
  148. package/dist/es/infinite-scroll-table/index.js +0 -98
  149. package/dist/es/input-slider/index.js +0 -123
  150. package/dist/es/input-slider/index.module.js +0 -5
  151. package/dist/es/input-slider/index_module.css +0 -21
  152. package/dist/es/large-txt-render/index.js +0 -38
  153. package/dist/es/page-content/index.js +0 -108
  154. package/dist/es/primary-page/index.js +0 -4
  155. package/dist/es/primary-page/primary-header.js +0 -38
  156. package/dist/es/resize-sidesheet/index.js +0 -100
  157. package/dist/es/resize-sidesheet/index.module.js +0 -5
  158. package/dist/es/resize-sidesheet/index_module.css +0 -9
  159. package/dist/es/resize-sidesheet/use-drag.js +0 -31
  160. package/dist/es/table/index.js +0 -56
  161. package/dist/es/table/index.module.js +0 -5
  162. package/dist/es/table/index_module.css +0 -90
  163. package/dist/es/table/sort-icon.js +0 -105
  164. package/dist/es/table/table-with-pagination.js +0 -112
  165. package/dist/es/table/table-without-pagniation.js +0 -74
  166. package/dist/es/table-col-actions/index.js +0 -103
  167. package/dist/es/table-header/index.js +0 -68
  168. package/dist/es/table-header/index.module.js +0 -5
  169. package/dist/es/table-header/index_module.css +0 -3
  170. package/dist/es/tabs/index.js +0 -42
  171. package/dist/es/tabs/index.module.js +0 -5
  172. package/dist/es/tabs/index_module.css +0 -37
  173. package/dist/es/text-with-copy/index.js +0 -71
  174. package/dist/es/tooltip-with-disabled/index.js +0 -49
  175. package/dist/es/utils/basic.js +0 -44
  176. package/dist/es/utils/rect.js +0 -37
  177. package/dist/lib/collapsible-card/index.js +0 -79
  178. package/dist/lib/collapsible-card/index.module.js +0 -25
  179. package/dist/lib/collapsible-card/index_module.css +0 -48
  180. package/dist/lib/column-manage-storage/index.js +0 -98
  181. package/dist/lib/columns-select/index.js +0 -241
  182. package/dist/lib/hooks/use-infinite-scroll.js +0 -195
  183. package/dist/lib/hooks/use-mouse-down-offset.js +0 -65
  184. package/dist/lib/id-render/icon-button-container.js +0 -89
  185. package/dist/lib/id-render/index.js +0 -112
  186. package/dist/lib/index.js +0 -110
  187. package/dist/lib/infinite-scroll-table/index.js +0 -126
  188. package/dist/lib/input-slider/index.js +0 -154
  189. package/dist/lib/input-slider/index.module.js +0 -25
  190. package/dist/lib/input-slider/index_module.css +0 -21
  191. package/dist/lib/large-txt-render/index.js +0 -62
  192. package/dist/lib/page-content/index.js +0 -136
  193. package/dist/lib/primary-page/index.js +0 -28
  194. package/dist/lib/primary-page/primary-header.js +0 -72
  195. package/dist/lib/resize-sidesheet/index.js +0 -129
  196. package/dist/lib/resize-sidesheet/index.module.js +0 -25
  197. package/dist/lib/resize-sidesheet/index_module.css +0 -9
  198. package/dist/lib/resize-sidesheet/use-drag.js +0 -55
  199. package/dist/lib/table/index.js +0 -88
  200. package/dist/lib/table/index.module.js +0 -25
  201. package/dist/lib/table/index_module.css +0 -90
  202. package/dist/lib/table/sort-icon.js +0 -137
  203. package/dist/lib/table/table-with-pagination.js +0 -146
  204. package/dist/lib/table/table-without-pagniation.js +0 -108
  205. package/dist/lib/table-col-actions/index.js +0 -123
  206. package/dist/lib/table-header/index.js +0 -96
  207. package/dist/lib/table-header/index.module.js +0 -25
  208. package/dist/lib/table-header/index_module.css +0 -3
  209. package/dist/lib/tabs/index.js +0 -74
  210. package/dist/lib/tabs/index.module.js +0 -25
  211. package/dist/lib/tabs/index_module.css +0 -37
  212. package/dist/lib/text-with-copy/index.js +0 -105
  213. package/dist/lib/tooltip-with-disabled/index.js +0 -71
  214. package/dist/lib/utils/basic.js +0 -78
  215. package/dist/lib/utils/rect.js +0 -65
  216. package/dist/types/collapsible-card/index.d.ts +0 -22
  217. package/dist/types/columns-select/index.d.ts +0 -29
  218. package/dist/types/hooks/use-mouse-down-offset.d.ts +0 -9
  219. package/dist/types/id-render/icon-button-container.d.ts +0 -12
  220. package/dist/types/id-render/index.d.ts +0 -13
  221. package/dist/types/index.d.ts +0 -19
  222. package/dist/types/input-slider/index.d.ts +0 -14
  223. package/dist/types/page-content/index.d.ts +0 -36
  224. package/dist/types/primary-page/index.d.ts +0 -1
  225. package/dist/types/primary-page/primary-header.d.ts +0 -17
  226. package/dist/types/resize-sidesheet/use-drag.d.ts +0 -10
  227. package/dist/types/table/sort-icon.d.ts +0 -13
  228. package/dist/types/table/table-with-pagination.d.ts +0 -14
  229. package/dist/types/table/table-without-pagniation.d.ts +0 -8
  230. package/dist/types/table-col-actions/index.d.ts +0 -21
  231. package/dist/types/table-header/index.d.ts +0 -20
  232. package/dist/types/text-with-copy/index.d.ts +0 -24
  233. package/dist/types/tooltip-with-disabled/index.d.ts +0 -9
  234. package/dist/types/utils/basic.d.ts +0 -1
  235. package/dist/types/utils/rect.d.ts +0 -10
@@ -0,0 +1,6 @@
1
+ import { type ArrayFieldTemplateProps, type FormContextType, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ArrayFieldTemplate` component is the template used to render all items in an array.
3
+ *
4
+ * @param props - The `ArrayFieldTemplateItemType` props for the component
5
+ */
6
+ export default function ArrayFieldTemplate<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: ArrayFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { type BaseInputTemplateProps, type FormContextType, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
3
+ * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
4
+ * It can be customized/overridden for other themes or individual implementations as needed.
5
+ *
6
+ * @param props - The `WidgetProps` for this template
7
+ */
8
+ export default function BaseInputTemplate<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: BaseInputTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type DescriptionFieldProps, type FormContextType, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `DescriptionField` is the template to use to render the description of a field
3
+ *
4
+ * @param props - The `DescriptionFieldProps` for this component
5
+ */
6
+ export default function DescriptionField<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: DescriptionFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { type ErrorListProps, type FormContextType, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
3
+ *
4
+ * @param props - The `ErrorListProps` for this component
5
+ */
6
+ export default function ErrorList<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ errors, registry }: ErrorListProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type FieldErrorProps, type FormContextType, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `FieldErrorTemplate` component renders the errors local to the particular field
3
+ *
4
+ * @param props - The `FieldErrorProps` for the errors being rendered
5
+ */
6
+ export default function FieldErrorTemplate<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: FieldErrorProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ import { type FieldTemplateProps, type FormContextType, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
3
+ * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.
4
+ *
5
+ * @param props - The `FieldTemplateProps` for this component
6
+ */
7
+ export default function FieldTemplate<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: FieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { type FormContextType, type IconButtonProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ import { type IconButtonProps as SemiIconBaseButtonProps } from '@coze-arch/coze-design';
3
+ export type BaseIconButtonProps<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object> = Omit<IconButtonProps<T, S, F>, 'type' | 'color'>;
4
+ type IconButtonComponent = <T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: BaseIconButtonProps<T, S, F>) => JSX.Element;
5
+ export default function BaseIconButton<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: BaseIconButtonProps<T, S, F> & SemiIconBaseButtonProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare const AddButton: IconButtonComponent;
7
+ export declare const CopyButton: IconButtonComponent;
8
+ export declare const MoveDownButton: IconButtonComponent;
9
+ export declare const MoveUpButton: IconButtonComponent;
10
+ export declare const RemoveButton: IconButtonComponent;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ import { type TemplatesType } from '@rjsf/utils';
2
+ export declare const templates: Partial<TemplatesType>;
@@ -0,0 +1,8 @@
1
+ import { type FormContextType, type ObjectFieldTemplateProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
3
+ * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
4
+ * the properties.
5
+ *
6
+ * @param props - The `ObjectFieldTemplateProps` for this component
7
+ */
8
+ export default function ObjectFieldTemplate<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: ObjectFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type SubmitButtonProps } from '@rjsf/utils';
2
+ /** The `SubmitButton` renders a button that represent the `Submit` action on a form
3
+ */
4
+ export default function SubmitButton<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ uiSchema }: SubmitButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { type FormContextType, type TitleFieldProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `TitleField` is the template to use to render the title of a field
3
+ *
4
+ * @param props - The `TitleFieldProps` for this component
5
+ */
6
+ export default function TitleField<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ id, uiSchema, title }: TitleFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `CheckBoxWidget` is a widget for rendering boolean properties.
3
+ * It is typically used to represent a boolean.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function CheckboxWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type WidgetProps, type RJSFSchema, type StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
3
+ * It is typically used to represent an array of enums.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function CheckboxesWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ import { type RegistryWidgetsType } from '@rjsf/utils';
2
+ export declare const widgets: RegistryWidgetsType;
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `RadioWidget` is a widget for rendering a radio group.
3
+ * It is typically used with a string property constrained with enum options.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function RadioWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ autofocus, disabled, formContext, id, onBlur, onChange, onFocus, options, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
3
+ * in a div, with the value along side it.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function RangeWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `SelectWidget` is a widget for rendering dropdowns.
3
+ * It is typically used with string properties constrained with enum options.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function SelectWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ autofocus, disabled, formContext, id, multiple, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type FormContextType, type RJSFSchema, type StrictRJSFSchema, type WidgetProps } from '@rjsf/utils';
2
+ /** The `TextareaWidget` is a widget for rendering input fields as textarea.
3
+ *
4
+ * @param props - The `WidgetProps` for this component
5
+ */
6
+ export default function TextareaWidget<T = unknown, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = object>({ disabled, formContext, id, onBlur, onChange, onFocus, options, placeholder, readonly, value, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type Form from '@rjsf/core';
2
+ export { default as schemaValidators } from '@rjsf/validator-ajv8';
3
+ export declare const SemiSchemaForm: import("react").ComponentType<import("@rjsf/core").FormProps<any, import("@rjsf/utils").RJSFSchema, any>>;
4
+ export type SemiSchemaFormInstance = Form;
@@ -0,0 +1,8 @@
1
+ export declare enum EventNames {
2
+ INIT_LOOP_FORM = "init_loop_form",
3
+ LOOP_FORM_FIELD_VALIDATE_ERROR = "loop_form_field_validate_error",// 表单项报错次数
4
+ LOOP_FORM_SUBMIT_INTERFACE_ERROR = "loop_form_submit_interface_error",// 提交接口报错次数
5
+ LOOP_FORM_SUBMIT_SUCCESS = "loop_form_submit_success",// 提交成功
6
+ LOOP_FORM_FIELD_CHANGE_TIMELINE = "loop_form_field_change_timeline",// 表单项变更时间轴
7
+ LOOP_FORM_CLOSE = "loop_form_close"
8
+ }
@@ -0,0 +1,20 @@
1
+ import type { Ref } from 'react';
2
+ import { type BaseFormProps, Form, type FormApi } from '@coze-arch/coze-design';
3
+ export interface SentinelFormProps<T extends Record<string, any>> extends BaseFormProps<any> {
4
+ /**
5
+ * 表单ID,用于快速定位该表单的用户,命名规范:[业务模块]-[业务名称]-[表单名称]
6
+ * 示例:数据引擎-AIDP-表单创建
7
+ */
8
+ formID: string;
9
+ onSubmit?: (values: T, e?: React.FormEvent<HTMLFormElement>) => void;
10
+ onValueChange?: (values: T, changed: Partial<T>) => void;
11
+ }
12
+ export type SentinelFormRef<T extends Record<string, any>> = Form<T> & {
13
+ submitLog?: (isInterfaceError?: boolean, error?: any) => Promise<void>;
14
+ };
15
+ export type SentinelFormApi<T extends Record<string, any>> = FormApi<T> & {
16
+ submitLog?: (isInterfaceError?: boolean, error?: any) => Promise<void>;
17
+ };
18
+ export declare const SentinelForm: <T extends Record<string, any>>(props: SentinelFormProps<T> & {
19
+ ref?: Ref<SentinelFormRef<T>>;
20
+ }) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ interface StepNavProps {
2
+ currentStep: string;
3
+ stepItems: {
4
+ key: string;
5
+ label: string;
6
+ icon?: React.ReactNode;
7
+ }[];
8
+ onStepChange?: (step: string) => void;
9
+ clickToChange?: boolean;
10
+ }
11
+ export declare function StepNav({ currentStep, stepItems, onStepChange, clickToChange, }: StepNavProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -1,2 +1,2 @@
1
1
  import { type TableProps } from '@coze-arch/coze-design';
2
- export declare const LoopTable: React.FC<TableProps>;
2
+ export declare const LoopTable: React.FC<TableProps>;
@@ -0,0 +1,8 @@
1
+ import { type SVGAttributes } from 'react';
2
+ export declare const IconSortArrow: ({ sortOrder, ...rest }: {
3
+ sortOrder?: "ascend" | "descend" | boolean;
4
+ } & SVGAttributes<HTMLOrSVGElement>) => import("react/jsx-runtime").JSX.Element;
5
+ /** 表格排序专用图标 */
6
+ export declare const createLoopTableSortIcon: () => ({ sortOrder }: {
7
+ sortOrder?: "ascend" | "descend" | boolean;
8
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { type Params, type PaginationResult } from 'ahooks/lib/usePagination/types';
2
+ import { type TableProps } from '@coze-arch/coze-design';
3
+ /** 获取本地存储的表格分页数量 */
4
+ export declare function getStoragePageSize(pageSizeStorageKey: string | undefined): number | undefined;
5
+ export declare const PAGE_SIZE_OPTIONS: number[];
6
+ export declare const DEFAULT_PAGE_SIZE = 20;
7
+ export type TableWithPaginationProps<RecordItem> = TableProps & {
8
+ heightFull?: boolean;
9
+ service: Pick<PaginationResult<{
10
+ total: number;
11
+ list: RecordItem[];
12
+ }, Params>, 'data' | 'pagination' | 'loading'>;
13
+ pageSizeOpts?: number[];
14
+ header?: React.ReactNode;
15
+ /** 该参数将插入到分页器左侧,共同作为 footer 的一部分 */
16
+ footerWithPagination?: React.ReactNode;
17
+ pageSizeStorageKey?: string;
18
+ showSizeChanger?: boolean;
19
+ footerClassName?: string;
20
+ };
21
+ export declare function TableWithPagination<RecordItem>(props: TableWithPaginationProps<RecordItem>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type TableProps } from '@coze-arch/coze-design';
2
+ export type TableWithoutPaginationProps = TableProps & {
3
+ heightFull?: boolean;
4
+ header?: React.ReactNode;
5
+ };
6
+ export declare function TableWithoutPagination(props: TableWithoutPaginationProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { type BatchOperateStore } from './use-batch-operate';
2
+ export interface BatchOperateProps<RecordItem> {
3
+ /** 批量操作接口 */
4
+ batchOperateStore: BatchOperateStore<RecordItem>;
5
+ /** 自定义批量操作按钮 */
6
+ actions?: React.ReactNode;
7
+ }
8
+ /** 表格批量操作 */
9
+ export declare function TableBatchOperate<RecordItem>({ actions, batchOperateStore, }: BatchOperateProps<RecordItem>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { type RowSelection } from '@coze-arch/coze-design';
2
+ /** 批量操作接口 */
3
+ export interface BatchOperateStore<RecordItem> {
4
+ /** 表格行选择器 */
5
+ rowSelection: RowSelection<RecordItem>;
6
+ /** 已选择的表格行记录数据 */
7
+ selectedItems: RecordItem[];
8
+ /** 设置已选择的表格行记录数据 */
9
+ setSelectedItems: (items: RecordItem[]) => void;
10
+ /** 批量操作状态 */
11
+ enableBatchOperate: boolean;
12
+ /** 设置批量操作状态 */
13
+ setEnableBatchOperate: (enable: boolean) => void;
14
+ /** 取消批量操作 */
15
+ onCancelBatchOperate: () => void;
16
+ }
17
+ /** 批量操作配置 */
18
+ export interface BatchOperateOptions<RecordItem> {
19
+ /** 表格行记录数据的唯一ID字段,默认 `id` */
20
+ recordKey?: keyof RecordItem;
21
+ /** 最大可选数量,默认不限制 */
22
+ maxSelectionCount?: number;
23
+ }
24
+ /**
25
+ * 表格批量操作状态管理。
26
+ * 支持跨分页选择数据。
27
+ * @param recordKey 表格行记录数据的唯一ID字段,默认 `id`
28
+ * @returns 批量操作接口
29
+ */
30
+ export declare function useBatchOperate<RecordItem>({ recordKey, maxSelectionCount, }?: BatchOperateOptions<RecordItem>): BatchOperateStore<RecordItem>;
@@ -0,0 +1,24 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type SpaceProps, type TypographyProps } from '@coze-arch/coze-design';
3
+ export interface TableColAction {
4
+ label: ReactNode;
5
+ icon?: ReactNode;
6
+ disabled?: boolean;
7
+ hide?: boolean;
8
+ type?: TypographyProps['type'];
9
+ disabledTooltip?: string;
10
+ onClick?: () => void;
11
+ tooltip?: string;
12
+ 'data-btm'?: string;
13
+ 'data-btm-title'?: string;
14
+ }
15
+ interface Props {
16
+ actions: TableColAction[];
17
+ maxCount?: number;
18
+ disabled?: boolean;
19
+ spaceProps?: SpaceProps;
20
+ wrapperClassName?: string;
21
+ textClassName?: string;
22
+ }
23
+ export declare function TableColActions({ actions, maxCount, disabled, spaceProps, wrapperClassName, textClassName, }: Props): import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type ColumnPropsPro, type ColKey } from './type';
2
+ export { type ColumnPropsPro, type ColKey };
3
+ export interface TableColsConfigProps<T extends Record<string, any> = any> {
4
+ className?: string;
5
+ defaultHiddenColKeys?: ColKey[];
6
+ localStorageKey?: string;
7
+ columns?: ColumnPropsPro<T>[];
8
+ onChangeConfig?: (newColumns: ColumnPropsPro<T>[]) => void;
9
+ onClose?: () => void;
10
+ }
11
+ export declare function TableColsConfig<T extends Record<string, any> = any>({ className, localStorageKey, defaultHiddenColKeys, columns, onChangeConfig, onClose, }: TableColsConfigProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type ColumnProps } from '@coze-arch/coze-design';
2
+ export type ColKey = string | number;
3
+ export interface ColumnPropsPro<T extends Record<string, any> = any> extends ColumnProps<T> {
4
+ configurable?: boolean;
5
+ colConfigKey?: ColKey;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { type ColKey } from './type';
2
+ export declare function useHiddenColKeys({ localStorageKey, defaultHiddenColKeys, }: {
3
+ localStorageKey?: string;
4
+ defaultHiddenColKeys?: ColKey[];
5
+ }): readonly [ColKey[], import("react").Dispatch<import("react").SetStateAction<ColKey[]>>];
@@ -0,0 +1,3 @@
1
+ import { type ColumnPropsPro, type ColKey } from './type';
2
+ export declare function generateColumnsWithKey<T extends Record<string, any> = any>(cols?: ColumnPropsPro<T>[], hiddenColKeys?: ColKey[]): ColumnPropsPro<T>[] | undefined;
3
+ export declare function generateConfigColumns<T extends Record<string, any> = any>(cols?: ColumnPropsPro<T>[], hiddenColKeys?: ColKey[]): ColumnPropsPro<T>[] | undefined;
@@ -0,0 +1,2 @@
1
+ import { type EmptyStateProps } from '@coze-arch/coze-design';
2
+ export declare function TableEmpty({ className, ...props }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { type ButtonProps } from '@coze-arch/coze-design';
2
+ import { type ColumnSelectorProps } from '../columns-select';
3
+ import { type TableColsConfigProps } from '../table-cols-config';
4
+ export interface TableHeaderProps {
5
+ columnSelectorConfigProps?: ColumnSelectorProps;
6
+ tableColsConfigProps?: TableColsConfigProps;
7
+ filterForm?: React.ReactNode;
8
+ actions?: React.ReactNode;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ spaceProps?: Record<string, unknown>;
12
+ refreshButtonPros?: ButtonProps;
13
+ }
14
+ export declare function TableHeader({ columnSelectorConfigProps, tableColsConfigProps, filterForm, actions, className, style, spaceProps, refreshButtonPros, }: TableHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { type TabsProps } from '@coze-arch/coze-design';
2
- export declare const LoopTabs: (props: TabsProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const LoopTabs: (props: TabsProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type TextAreaProps } from '@coze-arch/coze-design';
3
+ export interface Props extends TextAreaProps {
4
+ bottomExtra?: React.ReactNode;
5
+ }
6
+ export declare function TextAreaPro({ bottomExtra, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { type CSSProperties } from 'react';
2
+ interface TextWithCopyProps {
3
+ content?: string;
4
+ displayText?: string;
5
+ copyTooltipText?: string;
6
+ maxWidth?: number | string;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ textClassName?: string;
10
+ textType?: 'success' | 'secondary' | 'primary' | 'danger' | 'warning' | 'tertiary' | 'quaternary';
11
+ onlyIconCopy?: boolean;
12
+ }
13
+ export declare function TextWithCopy({ displayText, copyTooltipText, content, className, maxWidth, style, textClassName, textType, onlyIconCopy, }: TextWithCopyProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ interface TitleWithSubProps {
2
+ title: string;
3
+ subTitle?: string;
4
+ className?: string;
5
+ }
6
+ export declare function TitleWithSub({ title, subTitle, className, }: TitleWithSubProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { type TooltipProps } from '@coze-arch/coze-design';
2
+ export interface TooltipWhenDisabledProps extends TooltipProps {
3
+ disabled?: boolean;
4
+ needWrap?: boolean;
5
+ }
6
+ export declare function TooltipWhenDisabled({ children, disabled, needWrap, ...rest }: TooltipWhenDisabledProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { type TooltipProps } from '@coze-arch/coze-design';
2
+ export interface TooltipWithDisabledProps extends TooltipProps {
3
+ disabled?: boolean;
4
+ }
5
+ export declare function TooltipWithDisabled({ children, disabled, ...rest }: TooltipWithDisabledProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { type customRequestArgs } from '@coze-arch/coze-design';
2
+ export declare function uploadFile({ file, fileType, onProgress, onSuccess, onError, spaceID, }: {
3
+ file: File;
4
+ fileType?: 'image' | 'object';
5
+ onProgress?: customRequestArgs['onProgress'];
6
+ onSuccess?: customRequestArgs['onSuccess'];
7
+ onError?: customRequestArgs['onError'];
8
+ spaceID: string;
9
+ }): Promise<string>;
@@ -0,0 +1,9 @@
1
+ interface UserInfoProps {
2
+ avatarUrl?: string;
3
+ name?: string;
4
+ className?: string;
5
+ avatarClassName?: string;
6
+ userNameClassName?: string;
7
+ }
8
+ export declare const UserProfile: ({ avatarUrl, name, className, avatarClassName, userNameClassName, }: UserInfoProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const handleCopy: (value: string, hideToast?: boolean) => Promise<boolean>;
2
+ export declare function sleep(timer?: number): Promise<void>;
@@ -0,0 +1,15 @@
1
+ import { type UserInfo } from '@cozeloop/api-schema/evaluation';
2
+ export type Integer64 = string;
3
+ export interface Version {
4
+ id: Integer64;
5
+ version?: string;
6
+ submitTime?: Integer64;
7
+ submitter?: UserInfo;
8
+ description?: string;
9
+ isDraft?: boolean;
10
+ draftSubmitText?: string;
11
+ }
12
+ export default function VersionDescriptions({ version, className, }: {
13
+ version: Version | undefined;
14
+ className?: string;
15
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { type Version } from './version-descriptions';
2
+ interface Props {
3
+ version: Version | undefined;
4
+ active?: boolean;
5
+ className?: string;
6
+ onClick?: () => void;
7
+ }
8
+ export default function VersionItem({ version, active, className, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type Integer64, type Version } from './version-descriptions';
2
+ export interface VersionListProps {
3
+ versions: Version[] | undefined;
4
+ activeVersionId?: Integer64;
5
+ loadMoreLoading?: boolean;
6
+ enableLoadMore?: boolean;
7
+ noMore?: boolean;
8
+ onActiveChange?: (versionId: Integer64, version: Version) => void;
9
+ onLoadMore?: () => void;
10
+ }
11
+ export default function VersionList({ versions, loadMoreLoading, enableLoadMore, noMore, activeVersionId, onActiveChange, onLoadMore, }: VersionListProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { type VersionListProps } from './version-list';
2
+ export default function VersionSwitchPanel({ visible, onClose, ...versionListProps }: VersionListProps & {
3
+ visible?: boolean;
4
+ onClose?: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
package/package.json CHANGED
@@ -1,56 +1,68 @@
1
1
  {
2
2
  "name": "@cozeloop/components",
3
- "version": "0.0.2",
3
+ "version": "0.0.3-beta-1769665914778",
4
4
  "description": "common components for cozeloop",
5
- "author": "cozeloop",
6
- "main": "./dist/lib/index.js",
5
+ "author": "houtao.zzj@bytedance.com",
6
+ "exports": {
7
+ ".": "./dist/es/index.mjs",
8
+ "./loop-icons": "./dist/es/loopIcons.mjs"
9
+ },
10
+ "main": "dist/es/index.mjs",
11
+ "typesVersions": {
12
+ "*": {
13
+ ".": [
14
+ "./dist/lib/index.d.ts"
15
+ ],
16
+ "loop-icons": [
17
+ "./dist/lib/loop-icons/index.d.ts"
18
+ ]
19
+ }
20
+ },
7
21
  "scripts": {
8
22
  "build": "exit 0",
23
+ "build:sdk": "npm run clean && rslib build && npx tsc -b tsconfig.build.json",
24
+ "clean": "rm -rf ./dist && rm -rf ./.rslib",
9
25
  "lint": "eslint ./ --cache",
10
- "pub": "node publish.js",
11
26
  "test": "exit 0",
12
27
  "test:cov": "exit 0"
13
28
  },
14
29
  "dependencies": {
15
- "@coze-arch/coze-design": "0.0.6-alpha.101d0c",
16
- "@cozeloop/toolkit": "latest",
30
+ "@arco-iconbox/react-cozeloop-icons": "0.0.3",
31
+ "@codemirror/commands": "^6.3.3",
32
+ "@codemirror/lang-go": "^6.0.1",
33
+ "@codemirror/state": "^6.4.1",
34
+ "@codemirror/view": "^6.34.1",
35
+ "@coze-arch/coze-design": "0.0.7-alpha.985c0d",
36
+ "@coze-editor/editor": "0.1.0-alpha.577152",
37
+ "@cozeloop/api-schema": "0.0.3-beta-1769665914778",
38
+ "@cozeloop/config-provider": "0.0.3-beta-1769665914778",
39
+ "@cozeloop/hooks": "0.0.1",
40
+ "@cozeloop/i18n": "0.0.3-beta-1769665914778",
41
+ "@cozeloop/toolkit": "0.0.3-beta-1769665914778",
42
+ "@monaco-editor/react": "^4.5.2",
43
+ "@rjsf/core": "~5.24.9",
44
+ "@rjsf/utils": "~5.24.9",
45
+ "@rjsf/validator-ajv8": "~5.24.9",
17
46
  "ahooks": "^3.7.8",
18
47
  "classnames": "^2.3.2",
19
48
  "copy-to-clipboard": "^3.3.3",
49
+ "dayjs": "^1.11.7",
20
50
  "immer": "^10.0.3",
21
51
  "lodash-es": "^4.17.21",
52
+ "monaco-editor": "^0.45.0",
22
53
  "nanoid": "^4.0.2",
23
- "react-sortable-hoc": "2.0.0"
24
- },
25
- "devDependencies": {
26
- "@cozeloop/tailwind-config": "workspace:*",
27
- "@cozeloop/tailwind-plugin": "workspace:*",
28
- "@edenx/module-tools": "1.39.2",
29
- "@edenx/plugin-tailwind": "1.51.0",
30
- "@flow-infra/bot-typings": "workspace:*",
31
- "@flow-infra/eslint-config": "workspace:*",
32
- "@flow-infra/tailwind-config": "workspace:*",
33
- "@flow-infra/ts-config": "workspace:*",
34
- "@types/lodash-es": "^4.17.10",
35
- "@types/react": "18.2.37",
36
- "@types/react-dom": "18.2.15",
37
- "@vitest/coverage-v8": "~3.0.5",
38
- "happy-dom": "^12.10.3",
39
- "react-dom": "~18.2.0",
40
- "storybook": "^7.6.7",
41
- "tsconfig-paths": "4.1.0",
42
- "vite": "^4.3.9",
43
- "vite-plugin-svgr": "~3.3.0",
44
- "vitest": "~3.0.5"
45
- },
46
- "peerDependencies": {
47
- "react": "~18.2.0"
54
+ "react": "~18.2.0",
55
+ "react-sortable-hoc": "2.0.0",
56
+ "sortablejs": "~1.15.2"
48
57
  },
49
- "module": "./dist/es/index.js",
50
- "types": "./dist/types/index.d.ts",
58
+ "peerDependencies": {},
59
+ "publishRegistries": [
60
+ "npm"
61
+ ],
62
+ "module": "dist/es/index.mjs",
63
+ "types": "dist/lib/index.d.ts",
51
64
  "files": [
52
65
  "dist",
53
- "package.json",
54
66
  "README.md"
55
67
  ]
56
- }
68
+ }