tinacms 1.5.16 → 1.5.18

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 (282) hide show
  1. package/dist/auth/TinaCloudProvider.d.ts +3 -1
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.js +13064 -1819
  4. package/dist/index.mjs +30566 -0
  5. package/dist/internalClient/index.d.ts +15 -3
  6. package/dist/tina-cms.d.ts +0 -3
  7. package/dist/toolkit/alerts/alerts.d.ts +34 -0
  8. package/dist/toolkit/alerts/index.d.ts +1 -0
  9. package/dist/toolkit/browser-storage/browser-storage-client.d.ts +12 -0
  10. package/dist/toolkit/browser-storage/get-flattened-form-values.d.ts +2 -0
  11. package/dist/toolkit/browser-storage/index.d.ts +2 -0
  12. package/dist/toolkit/browser-storage/use-form-browser-cache.d.ts +2 -0
  13. package/dist/toolkit/components/active-field-indicator.d.ts +2 -0
  14. package/dist/toolkit/components/media/breadcrumb.d.ts +7 -0
  15. package/dist/toolkit/components/media/copy-field.d.ts +8 -0
  16. package/dist/toolkit/components/media/index.d.ts +6 -0
  17. package/dist/toolkit/components/media/media-item.d.ts +12 -0
  18. package/dist/toolkit/components/media/media-manager.d.ts +10 -0
  19. package/dist/toolkit/components/media/modal.d.ts +13 -0
  20. package/dist/toolkit/components/media/pagination.d.ts +9 -0
  21. package/dist/toolkit/components/media/utils.d.ts +4 -0
  22. package/dist/toolkit/components/mutation-signal.d.ts +12 -0
  23. package/dist/toolkit/components/tina-cms-provider.d.ts +8 -0
  24. package/dist/toolkit/components/tina-provider.d.ts +14 -0
  25. package/dist/toolkit/components/tina-ui.d.ts +13 -0
  26. package/dist/toolkit/core/cms.d.ts +156 -0
  27. package/dist/toolkit/core/event.d.ts +17 -0
  28. package/dist/toolkit/core/flags.d.ts +13 -0
  29. package/dist/toolkit/core/index.d.ts +7 -0
  30. package/dist/toolkit/core/media-store.default.d.ts +45 -0
  31. package/dist/toolkit/core/media.d.ts +138 -0
  32. package/dist/toolkit/core/plugins.d.ts +249 -0
  33. package/dist/toolkit/core/subscribable.d.ts +72 -0
  34. package/dist/toolkit/fields/components/button-toggle.d.ts +23 -0
  35. package/dist/toolkit/fields/components/checkbox-group.d.ts +22 -0
  36. package/dist/toolkit/fields/components/color-picker/color-formatter.d.ts +20 -0
  37. package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +11 -0
  38. package/dist/toolkit/fields/components/color-picker/index.d.ts +1 -0
  39. package/dist/toolkit/fields/components/image-upload/image-upload.d.ts +23 -0
  40. package/dist/toolkit/fields/components/image-upload/index.d.ts +1 -0
  41. package/dist/toolkit/fields/components/index.d.ts +12 -0
  42. package/dist/toolkit/fields/components/input.d.ts +10 -0
  43. package/dist/toolkit/fields/components/number-input.d.ts +7 -0
  44. package/dist/toolkit/fields/components/radio-group.d.ts +21 -0
  45. package/dist/toolkit/fields/components/reference/index.d.ts +21 -0
  46. package/dist/toolkit/fields/components/reference/reference-link.d.ts +8 -0
  47. package/dist/toolkit/fields/components/reference/reference-select.d.ts +11 -0
  48. package/dist/toolkit/fields/components/select.d.ts +23 -0
  49. package/dist/toolkit/fields/components/text-field.d.ts +9 -0
  50. package/dist/toolkit/fields/components/textarea.d.ts +8 -0
  51. package/dist/toolkit/fields/components/toggle.d.ts +22 -0
  52. package/dist/toolkit/fields/field-events.d.ts +11 -0
  53. package/dist/toolkit/fields/index.d.ts +3 -0
  54. package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector-big.d.ts +9 -0
  55. package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector.d.ts +8 -0
  56. package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +47 -0
  57. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +6 -0
  58. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +7 -0
  59. package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +14 -0
  60. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +14 -0
  61. package/dist/toolkit/fields/plugins/date-format.d.ts +5 -0
  62. package/dist/toolkit/fields/plugins/field-props.d.ts +6 -0
  63. package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +36 -0
  64. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +57 -0
  65. package/dist/toolkit/fields/plugins/hidden-field-plugin.d.ts +7 -0
  66. package/dist/toolkit/fields/plugins/image-field-plugin.d.ts +15 -0
  67. package/dist/toolkit/fields/plugins/index.d.ts +19 -0
  68. package/dist/toolkit/fields/plugins/list-field-meta.d.ts +32 -0
  69. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +44 -0
  70. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +20 -0
  71. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +38 -0
  72. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +4 -0
  73. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/use-debounce.d.ts +1 -0
  74. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/editor-context.d.ts +20 -0
  75. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/embed-hooks.d.ts +7 -0
  76. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-resize.d.ts +1 -0
  77. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +3 -0
  78. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +10 -0
  79. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +2 -0
  80. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +2 -0
  81. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +2 -0
  82. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-rules.d.ts +1 -0
  83. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +6 -0
  84. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -0
  85. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +2 -0
  86. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +2 -0
  87. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +8 -0
  88. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +3 -0
  89. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/component.d.ts +9 -0
  90. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +5 -0
  91. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +6 -0
  92. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +14 -0
  93. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +15 -0
  94. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +9 -0
  95. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +7 -0
  96. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +6 -0
  97. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +5 -0
  98. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +11 -0
  99. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/autocomplete.d.ts +14 -0
  100. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +9 -0
  101. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +140 -0
  102. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/dropdown.d.ts +9 -0
  103. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/helpers.d.ts +2 -0
  104. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/icons.d.ts +24 -0
  105. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +5 -0
  106. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +10 -0
  107. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +6 -0
  108. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/toolbar-item.d.ts +19 -0
  109. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +2 -0
  110. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/types.d.ts +9 -0
  111. package/dist/toolkit/fields/plugins/number-field-plugin.d.ts +15 -0
  112. package/dist/toolkit/fields/plugins/number-format.d.ts +1 -0
  113. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +7 -0
  114. package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +9 -0
  115. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +9 -0
  116. package/dist/toolkit/fields/plugins/tags-field-plugin.d.ts +12 -0
  117. package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +14 -0
  118. package/dist/toolkit/fields/plugins/text-format.d.ts +1 -0
  119. package/dist/toolkit/fields/plugins/textarea-field-plugin.d.ts +13 -0
  120. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +8 -0
  121. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +36 -0
  122. package/dist/toolkit/form-builder/field-plugin.d.ts +14 -0
  123. package/dist/toolkit/form-builder/fields-builder.d.ts +13 -0
  124. package/dist/toolkit/form-builder/form-actions.d.ts +11 -0
  125. package/dist/toolkit/form-builder/form-builder.d.ts +32 -0
  126. package/dist/toolkit/form-builder/form-legacy.d.ts +8 -0
  127. package/dist/toolkit/form-builder/form-portal.d.ts +8 -0
  128. package/dist/toolkit/form-builder/form.d.ts +28 -0
  129. package/dist/toolkit/form-builder/index.d.ts +10 -0
  130. package/dist/toolkit/form-builder/loading-dots.d.ts +7 -0
  131. package/dist/toolkit/form-builder/reset-form.d.ts +10 -0
  132. package/dist/toolkit/forms/content-creator-plugin.d.ts +13 -0
  133. package/dist/toolkit/forms/field.d.ts +26 -0
  134. package/dist/toolkit/forms/form.d.ts +138 -0
  135. package/dist/toolkit/forms/index.d.ts +4 -0
  136. package/dist/toolkit/git-client/git-client.d.ts +92 -0
  137. package/dist/toolkit/git-client/git-file.d.ts +16 -0
  138. package/dist/toolkit/git-client/git-media-store.d.ts +11 -0
  139. package/dist/toolkit/git-client/index.d.ts +4 -0
  140. package/dist/toolkit/git-client/use-git-file.d.ts +2 -0
  141. package/dist/toolkit/hooks/use-field-reference.d.ts +12 -0
  142. package/dist/toolkit/hooks/use-local-storage.d.ts +1 -0
  143. package/dist/toolkit/icons/Add.d.ts +9 -0
  144. package/dist/toolkit/icons/Alert.d.ts +9 -0
  145. package/dist/toolkit/icons/AlignCenter.d.ts +9 -0
  146. package/dist/toolkit/icons/AlignLeft.d.ts +9 -0
  147. package/dist/toolkit/icons/AlignRight.d.ts +9 -0
  148. package/dist/toolkit/icons/Bold.d.ts +9 -0
  149. package/dist/toolkit/icons/ChevronDown.d.ts +9 -0
  150. package/dist/toolkit/icons/ChevronLeft.d.ts +9 -0
  151. package/dist/toolkit/icons/ChevronRight.d.ts +9 -0
  152. package/dist/toolkit/icons/ChevronUp.d.ts +9 -0
  153. package/dist/toolkit/icons/Circle.d.ts +9 -0
  154. package/dist/toolkit/icons/CircleCheck.d.ts +9 -0
  155. package/dist/toolkit/icons/Close.d.ts +9 -0
  156. package/dist/toolkit/icons/Code.d.ts +9 -0
  157. package/dist/toolkit/icons/Drag.d.ts +9 -0
  158. package/dist/toolkit/icons/Duplicate.d.ts +9 -0
  159. package/dist/toolkit/icons/Edit.d.ts +9 -0
  160. package/dist/toolkit/icons/EllipsisVertical.d.ts +9 -0
  161. package/dist/toolkit/icons/Error.d.ts +9 -0
  162. package/dist/toolkit/icons/Exit.d.ts +9 -0
  163. package/dist/toolkit/icons/File.d.ts +9 -0
  164. package/dist/toolkit/icons/Folder.d.ts +9 -0
  165. package/dist/toolkit/icons/Hamburger.d.ts +9 -0
  166. package/dist/toolkit/icons/Heading.d.ts +9 -0
  167. package/dist/toolkit/icons/Info.d.ts +9 -0
  168. package/dist/toolkit/icons/Italic.d.ts +9 -0
  169. package/dist/toolkit/icons/LeftArrow.d.ts +9 -0
  170. package/dist/toolkit/icons/Link.d.ts +9 -0
  171. package/dist/toolkit/icons/Lock.d.ts +9 -0
  172. package/dist/toolkit/icons/Markdown.d.ts +9 -0
  173. package/dist/toolkit/icons/Media.d.ts +9 -0
  174. package/dist/toolkit/icons/OrderedList.d.ts +9 -0
  175. package/dist/toolkit/icons/PullRequest.d.ts +9 -0
  176. package/dist/toolkit/icons/Quote.d.ts +9 -0
  177. package/dist/toolkit/icons/Redo.d.ts +9 -0
  178. package/dist/toolkit/icons/Reorder.d.ts +9 -0
  179. package/dist/toolkit/icons/ReorderRow.d.ts +9 -0
  180. package/dist/toolkit/icons/Reset.d.ts +9 -0
  181. package/dist/toolkit/icons/RightArrow.d.ts +9 -0
  182. package/dist/toolkit/icons/Settings.d.ts +9 -0
  183. package/dist/toolkit/icons/Strikethrough.d.ts +9 -0
  184. package/dist/toolkit/icons/Table.d.ts +9 -0
  185. package/dist/toolkit/icons/Tina.d.ts +9 -0
  186. package/dist/toolkit/icons/Trash.d.ts +9 -0
  187. package/dist/toolkit/icons/Underline.d.ts +9 -0
  188. package/dist/toolkit/icons/Undo.d.ts +9 -0
  189. package/dist/toolkit/icons/UnorderedList.d.ts +9 -0
  190. package/dist/toolkit/icons/Upload.d.ts +9 -0
  191. package/dist/toolkit/icons/Warning.d.ts +9 -0
  192. package/dist/toolkit/icons/index.d.ts +54 -0
  193. package/dist/toolkit/index.d.ts +40 -0
  194. package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +2 -0
  195. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +2 -0
  196. package/dist/toolkit/plugin-branch-switcher/branch-data.d.ts +11 -0
  197. package/dist/toolkit/plugin-branch-switcher/branch-modal.d.ts +6 -0
  198. package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +11 -0
  199. package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +6 -0
  200. package/dist/toolkit/plugin-branch-switcher/index.d.ts +6 -0
  201. package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +14 -0
  202. package/dist/toolkit/plugin-branch-switcher/types.d.ts +30 -0
  203. package/dist/toolkit/plugin-fields/index.d.ts +1 -0
  204. package/dist/toolkit/plugin-fields/markdown.d.ts +11 -0
  205. package/dist/toolkit/plugin-form-meta/index.d.ts +7 -0
  206. package/dist/toolkit/plugin-screens/index.d.ts +16 -0
  207. package/dist/toolkit/plugin-screens/media-manager-screen.d.ts +3 -0
  208. package/dist/toolkit/react-alerts/alerts.d.ts +6 -0
  209. package/dist/toolkit/react-alerts/index.d.ts +1 -0
  210. package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +37 -0
  211. package/dist/toolkit/react-cloud-config/index.d.ts +2 -0
  212. package/dist/toolkit/react-cloud-config/use-cloud-config-plugin.d.ts +3 -0
  213. package/dist/toolkit/react-core/index.d.ts +7 -0
  214. package/dist/toolkit/react-core/tina-error-boundary.d.ts +21 -0
  215. package/dist/toolkit/react-core/use-cms-event.d.ts +8 -0
  216. package/dist/toolkit/react-core/use-cms.d.ts +10 -0
  217. package/dist/toolkit/react-core/use-form.d.ts +14 -0
  218. package/dist/toolkit/react-core/use-plugin.d.ts +12 -0
  219. package/dist/toolkit/react-core/use-subscribable.d.ts +10 -0
  220. package/dist/toolkit/react-core/use-watch-form-values.d.ts +6 -0
  221. package/dist/toolkit/react-core/with-plugin.d.ts +18 -0
  222. package/dist/toolkit/react-datetime/DateTime.d.ts +126 -0
  223. package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +8 -0
  224. package/dist/toolkit/react-datetime/views/DaysView.d.ts +15 -0
  225. package/dist/toolkit/react-datetime/views/MonthsView.d.ts +11 -0
  226. package/dist/toolkit/react-datetime/views/TimeView.d.ts +23 -0
  227. package/dist/toolkit/react-datetime/views/YearsView.d.ts +16 -0
  228. package/dist/toolkit/react-dismissible/dismissible.d.ts +32 -0
  229. package/dist/toolkit/react-dismissible/index.d.ts +1 -0
  230. package/dist/toolkit/react-forms/form-modal.d.ts +2 -0
  231. package/dist/toolkit/react-forms/index.d.ts +1 -0
  232. package/dist/toolkit/react-modals/fullscreen-modal.d.ts +15 -0
  233. package/dist/toolkit/react-modals/index.d.ts +4 -0
  234. package/dist/toolkit/react-modals/modal/index.d.ts +5 -0
  235. package/dist/toolkit/react-modals/modal/modal-actions.d.ts +4 -0
  236. package/dist/toolkit/react-modals/modal/modal-body.d.ts +6 -0
  237. package/dist/toolkit/react-modals/modal/modal-header.d.ts +6 -0
  238. package/dist/toolkit/react-modals/modal/modal-overlay.d.ts +4 -0
  239. package/dist/toolkit/react-modals/modal/modal.d.ts +3 -0
  240. package/dist/toolkit/react-modals/modal-provider.d.ts +6 -0
  241. package/dist/toolkit/react-modals/popup-modal.d.ts +15 -0
  242. package/dist/toolkit/react-screens/components/screen-plugin-modal.d.ts +7 -0
  243. package/dist/toolkit/react-screens/index.d.ts +3 -0
  244. package/dist/toolkit/react-screens/screen-plugin.d.ts +42 -0
  245. package/dist/toolkit/react-screens/use-screen-plugin.d.ts +3 -0
  246. package/dist/toolkit/react-sidebar/components/form-list.d.ts +25 -0
  247. package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -0
  248. package/dist/toolkit/react-sidebar/components/nav.d.ts +34 -0
  249. package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +8 -0
  250. package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +7 -0
  251. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +19 -0
  252. package/dist/toolkit/react-sidebar/components/sidebar.d.ts +26 -0
  253. package/dist/toolkit/react-sidebar/components/sync-status.d.ts +31 -0
  254. package/dist/toolkit/react-sidebar/index.d.ts +5 -0
  255. package/dist/toolkit/react-sidebar/sidebar.d.ts +34 -0
  256. package/dist/toolkit/react-tinacms/index.d.ts +10 -0
  257. package/dist/toolkit/react-tinacms/use-cms.d.ts +3 -0
  258. package/dist/toolkit/react-tinacms/use-form.d.ts +12 -0
  259. package/dist/toolkit/react-tinacms/use-plugin.d.ts +1 -0
  260. package/dist/toolkit/react-tinacms/use-subscribable.d.ts +1 -0
  261. package/dist/toolkit/react-tinacms/use-watch-form-values.d.ts +1 -0
  262. package/dist/toolkit/react-tinacms/with-plugin.d.ts +1 -0
  263. package/dist/toolkit/react-tinacms/with-tina.d.ts +3 -0
  264. package/dist/toolkit/styles/button.d.ts +15 -0
  265. package/dist/toolkit/styles/container.d.ts +7 -0
  266. package/dist/toolkit/styles/font-loader.d.ts +1 -0
  267. package/dist/toolkit/styles/index.d.ts +4 -0
  268. package/dist/toolkit/styles/message.d.ts +9 -0
  269. package/dist/toolkit/styles/overflow-menu.d.ts +6 -0
  270. package/dist/toolkit/tina-cms.d.ts +41 -0
  271. package/dist/toolkit/tina-state.d.ts +84 -0
  272. package/dist/types/cms.d.ts +2 -1
  273. package/dist/utils/index.d.ts +1 -0
  274. package/package.json +69 -25
  275. package/dist/index.es.js +0 -19299
  276. package/dist/style.css +0 -1536
  277. /package/dist/{client.es.js → client.mjs} +0 -0
  278. /package/dist/{dev-tools.es.js → dev-tools.mjs} +0 -0
  279. /package/dist/{edit-state.es.js → edit-state.mjs} +0 -0
  280. /package/dist/{react.es.js → react.mjs} +0 -0
  281. /package/dist/rich-text/{index.es.js → index.mjs} +0 -0
  282. /package/dist/rich-text/{prism.es.js → prism.mjs} +0 -0
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface AutocompleteItem {
3
+ key: string;
4
+ label: string;
5
+ render: (item: Omit<AutocompleteItem, 'render'>) => string | JSX.Element;
6
+ }
7
+ interface AutocompleteProps {
8
+ value: Omit<AutocompleteItem, 'render'>;
9
+ defaultQuery?: string;
10
+ onChange: (item: AutocompleteItem) => void;
11
+ items: AutocompleteItem[];
12
+ }
13
+ export declare const Autocomplete: React.FC<AutocompleteProps>;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { PlateEditor, TElement } from '@udecode/plate-headless';
3
+ export declare const CodeBlock: ({ attributes, editor, element, language: restrictLanguage, ...props }: {
4
+ attributes: Record<string, unknown>;
5
+ element: TElement;
6
+ editor: PlateEditor;
7
+ language?: string;
8
+ children: React.ReactNode;
9
+ }) => JSX.Element;
@@ -0,0 +1,140 @@
1
+ /// <reference types="react" />
2
+ export declare const components: () => {
3
+ h1: ({ attributes, editor, element, className, ...props }: {
4
+ [x: string]: any;
5
+ attributes: any;
6
+ editor: any;
7
+ element: any;
8
+ className: any;
9
+ }) => JSX.Element;
10
+ h2: ({ attributes, editor, element, className, ...props }: {
11
+ [x: string]: any;
12
+ attributes: any;
13
+ editor: any;
14
+ element: any;
15
+ className: any;
16
+ }) => JSX.Element;
17
+ h3: ({ attributes, editor, element, className, ...props }: {
18
+ [x: string]: any;
19
+ attributes: any;
20
+ editor: any;
21
+ element: any;
22
+ className: any;
23
+ }) => JSX.Element;
24
+ h4: ({ attributes, editor, element, className, ...props }: {
25
+ [x: string]: any;
26
+ attributes: any;
27
+ editor: any;
28
+ element: any;
29
+ className: any;
30
+ }) => JSX.Element;
31
+ /** Tailwind prose doesn't style h5 and h6 elements */
32
+ h5: ({ attributes, editor, element, className, ...props }: {
33
+ [x: string]: any;
34
+ attributes: any;
35
+ editor: any;
36
+ element: any;
37
+ className: any;
38
+ }) => JSX.Element;
39
+ h6: ({ attributes, editor, element, className, ...props }: {
40
+ [x: string]: any;
41
+ attributes: any;
42
+ editor: any;
43
+ element: any;
44
+ className: any;
45
+ }) => JSX.Element;
46
+ p: ({ attributes, className, editor, element, ...props }: {
47
+ [x: string]: any;
48
+ attributes: any;
49
+ className: any;
50
+ editor: any;
51
+ element: any;
52
+ }) => JSX.Element;
53
+ blockquote: ({ className, attributes, editor, element, ...props }: {
54
+ [x: string]: any;
55
+ className: any;
56
+ attributes: any;
57
+ editor: any;
58
+ element: any;
59
+ }) => JSX.Element;
60
+ code_block: (props: any) => JSX.Element;
61
+ html: ({ attributes, editor, element, children, className }: {
62
+ attributes: any;
63
+ editor: any;
64
+ element: any;
65
+ children: any;
66
+ className: any;
67
+ }) => JSX.Element;
68
+ html_inline: ({ attributes, editor, element, children, className }: {
69
+ attributes: any;
70
+ editor: any;
71
+ element: any;
72
+ children: any;
73
+ className: any;
74
+ }) => JSX.Element;
75
+ ul: ({ attributes, editor, className, element, ...props }: {
76
+ [x: string]: any;
77
+ attributes: any;
78
+ editor: any;
79
+ className: any;
80
+ element: any;
81
+ }) => JSX.Element;
82
+ ol: ({ attributes, editor, className, element, ...props }: {
83
+ [x: string]: any;
84
+ attributes: any;
85
+ editor: any;
86
+ className: any;
87
+ element: any;
88
+ }) => JSX.Element;
89
+ li: ({ attributes, className, editor, element, ...props }: {
90
+ [x: string]: any;
91
+ attributes: any;
92
+ className: any;
93
+ editor: any;
94
+ element: any;
95
+ }) => JSX.Element;
96
+ /** "list item content" */
97
+ lic: ({ attributes, editor, element, className, ...props }: {
98
+ [x: string]: any;
99
+ attributes: any;
100
+ editor: any;
101
+ element: any;
102
+ className: any;
103
+ }) => JSX.Element;
104
+ a: ({ attributes, editor, element, nodeProps, className, ...props }: {
105
+ [x: string]: any;
106
+ attributes: any;
107
+ editor: any;
108
+ element: any;
109
+ nodeProps: any;
110
+ className: any;
111
+ }) => JSX.Element;
112
+ code: ({ editor, leaf, text, attributes, className, ...props }: {
113
+ [x: string]: any;
114
+ editor: any;
115
+ leaf: any;
116
+ text: any;
117
+ attributes: any;
118
+ className: any;
119
+ }) => JSX.Element;
120
+ italic: ({ editor, leaf, text, ...props }: {
121
+ [x: string]: any;
122
+ editor: any;
123
+ leaf: any;
124
+ text: any;
125
+ }) => JSX.Element;
126
+ bold: ({ editor, leaf, text, ...props }: {
127
+ [x: string]: any;
128
+ editor: any;
129
+ leaf: any;
130
+ text: any;
131
+ }) => JSX.Element;
132
+ hr: ({ attributes, className, editor, element, children, ...props }: {
133
+ [x: string]: any;
134
+ attributes: any;
135
+ className: any;
136
+ editor: any;
137
+ element: any;
138
+ children: any;
139
+ }) => JSX.Element;
140
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare function Dropdown({ label, items, }: {
3
+ label: string | JSX.Element;
4
+ items: {
5
+ key: string;
6
+ onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
7
+ render: string | JSX.Element;
8
+ }[];
9
+ }): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare function classNames(...classes: string[]): string;
2
+ export declare const uuid: () => any;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ export declare const ToolbarIcon: ({ name }: {
3
+ name: string;
4
+ }) => any;
5
+ export declare const EllipsisIcon: ({ title }: {
6
+ title: any;
7
+ }) => JSX.Element;
8
+ export declare function UnorderedListIcon(props: any): JSX.Element;
9
+ export declare function HeadingIcon(props: any): JSX.Element;
10
+ export declare function OrderedListIcon(props: any): JSX.Element;
11
+ export declare function QuoteIcon(props: any): JSX.Element;
12
+ export declare function LinkIcon(props: any): JSX.Element;
13
+ export declare function CodeIcon(props: any): JSX.Element;
14
+ export declare function CodeBlockIcon(props: any): JSX.Element;
15
+ export declare function ImageIcon(props: any): JSX.Element;
16
+ export declare function BoldIcon(props: any): JSX.Element;
17
+ export declare function ItalicIcon(props: any): JSX.Element;
18
+ export declare function UnderlineIcon(props: any): JSX.Element;
19
+ export declare function StrikethroughIcon(props: any): JSX.Element;
20
+ export declare function LightningIcon(props: any): JSX.Element;
21
+ export declare function ArrowDownIcon(props: any): JSX.Element;
22
+ export declare function PlusIcon({ className }: {
23
+ className?: string;
24
+ }): JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const FloatingToolbarWrapper: ({ children, position, }: {
3
+ children: JSX.Element;
4
+ position?: 'top' | 'bottom';
5
+ }) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { MdxTemplate } from '../../../types';
3
+ export declare function Toolbar({ templates, }: {
4
+ inlineOnly: boolean;
5
+ templates: MdxTemplate[];
6
+ }): JSX.Element;
7
+ export declare const FloatingToolbar: ({ templates, }: {
8
+ templates: MdxTemplate[];
9
+ }) => JSX.Element;
10
+ export declare const FloatingLink: () => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const OverflowMenu: ({ toolbarItems, itemsShown, showEmbed }: {
3
+ toolbarItems: any;
4
+ itemsShown: any;
5
+ showEmbed: any;
6
+ }) => JSX.Element;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { PlateEditor } from '@udecode/plate-headless';
3
+ import type { MdxTemplate } from '../../../types';
4
+ export declare type ToolbarItemType = {
5
+ label: string;
6
+ name: string;
7
+ inlineOnly?: boolean;
8
+ hidden?: boolean;
9
+ active?: boolean;
10
+ onMouseDown?: (event: any) => void;
11
+ icon?: string;
12
+ options?: {}[];
13
+ isLastItem?: boolean;
14
+ };
15
+ export declare const ToolbarItem: ({ hidden, label, active, onMouseDown, icon, options, name, isLastItem, }: ToolbarItemType) => JSX.Element;
16
+ export declare const EmbedButton: ({ editor, templates, }: {
17
+ editor: PlateEditor;
18
+ templates: MdxTemplate[];
19
+ }) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { PlateEditor } from '@udecode/plate-headless';
2
+ export declare const insertEmptyCodeBlock: (editor: PlateEditor) => void;
@@ -0,0 +1,9 @@
1
+ import type { Field } from '../../../../forms';
2
+ export declare type MdxTemplate = {
3
+ label: string;
4
+ key: string;
5
+ inline?: boolean;
6
+ name: string;
7
+ defaultItem?: {};
8
+ fields: Field[];
9
+ };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ export declare const NumberField: (props: import("./wrap-field-with-meta").InputFieldType<{
4
+ step: string | number;
5
+ input: InputProps;
6
+ }, {}>) => JSX.Element;
7
+ export declare const NumberFieldPlugin: {
8
+ name: string;
9
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<{
10
+ step: string | number;
11
+ input: InputProps;
12
+ }, {}>) => JSX.Element;
13
+ parse: (value?: string) => number;
14
+ validate(value: any, values: any, meta: any, field: any): string;
15
+ };
@@ -0,0 +1 @@
1
+ export declare const parse: (value?: string) => number;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const RadioGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").RadioGroupProps, {}>) => JSX.Element;
3
+ export declare const RadioGroupFieldPlugin: {
4
+ name: string;
5
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").RadioGroupProps, {}>) => JSX.Element;
6
+ validate(value: any, values: any, meta: any, field: any): string;
7
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const ReferenceField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components/reference").ReferenceProps, {}>) => JSX.Element;
3
+ export declare const ReferenceFieldPlugin: {
4
+ name: string;
5
+ type: string;
6
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components/reference").ReferenceProps, {}>) => JSX.Element;
7
+ parse: (value?: string) => string;
8
+ validate(value: any, values: any, meta: any, field: any): string;
9
+ };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const SelectField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").SelectProps, {}>) => JSX.Element;
3
+ export declare const SelectFieldPlugin: {
4
+ name: string;
5
+ type: string;
6
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").SelectProps, {}>) => JSX.Element;
7
+ parse: (value?: string) => string;
8
+ validate(value: any, values: any, meta: any, field: any): string;
9
+ };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ export declare const TagsField: (props: import("./wrap-field-with-meta").InputFieldType<{
4
+ placeholder: string;
5
+ }, InputProps>) => JSX.Element;
6
+ export declare const TagsFieldPlugin: {
7
+ name: string;
8
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<{
9
+ placeholder: string;
10
+ }, InputProps>) => JSX.Element;
11
+ parse: (value?: string) => string;
12
+ };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ interface ExtraProps {
4
+ placeholder: string;
5
+ disabled?: boolean;
6
+ }
7
+ export declare const TextField: (props: import("./field-props").FieldProps<InputProps & ExtraProps>) => JSX.Element;
8
+ export declare const TextFieldPlugin: {
9
+ name: string;
10
+ Component: (props: import("./field-props").FieldProps<InputProps & ExtraProps>) => JSX.Element;
11
+ validate(value: any, values: any, meta: any, field: any): string;
12
+ parse: (value?: string) => string;
13
+ };
14
+ export {};
@@ -0,0 +1 @@
1
+ export declare const parse: (value?: string) => string;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ export declare const TextareaField: (props: import("./wrap-field-with-meta").InputFieldType<{
4
+ input: InputProps;
5
+ }, {}>) => JSX.Element;
6
+ export declare const TextareaFieldPlugin: {
7
+ name: string;
8
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<{
9
+ input: InputProps;
10
+ }, {}>) => JSX.Element;
11
+ parse: (value?: string) => string;
12
+ validate(value: any, values: any, meta: any, field: any): string;
13
+ };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const ToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ToggleProps, {}>) => JSX.Element;
3
+ export declare const ToggleFieldPlugin: {
4
+ name: string;
5
+ type: string;
6
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ToggleProps, {}>) => JSX.Element;
7
+ validate(value: any, values: any, meta: any, field: any): string;
8
+ };
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { FieldProps } from './field-props';
3
+ import { Form } from '../../forms';
4
+ export declare type InputFieldType<ExtraFieldProps, InputProps> = FieldProps<InputProps> & ExtraFieldProps;
5
+ export declare function wrapFieldsWithMeta<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => JSX.Element;
6
+ export declare function wrapFieldWithError<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => JSX.Element;
7
+ interface FieldMetaProps extends React.HTMLAttributes<HTMLElement> {
8
+ name: string;
9
+ children: any;
10
+ label?: string | boolean;
11
+ description?: string;
12
+ error?: string;
13
+ margin?: boolean;
14
+ index?: number;
15
+ tinaForm: Form;
16
+ }
17
+ export declare const FieldMeta: ({ name, label, description, error, margin, children, index, tinaForm, ...props }: FieldMetaProps) => JSX.Element;
18
+ export declare const FieldWrapper: ({ margin, children, ...props }: {
19
+ margin: boolean;
20
+ children: React.ReactNode;
21
+ } & Partial<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>>) => JSX.Element;
22
+ export interface FieldLabel extends React.HTMLAttributes<HTMLLabelElement> {
23
+ children?: any | any[];
24
+ className?: string;
25
+ name?: string;
26
+ }
27
+ export declare const FieldLabel: ({ children, className, name, ...props }: FieldLabel) => JSX.Element;
28
+ export declare const FieldDescription: ({ children, className, ...props }: {
29
+ children?: any | any[];
30
+ className?: string;
31
+ }) => JSX.Element;
32
+ export declare const FieldError: ({ children, className, ...props }: {
33
+ children?: any | any[];
34
+ className?: string;
35
+ }) => JSX.Element;
36
+ export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Field } from '../forms';
3
+ import { InputFieldType } from '../fields/plugins/wrap-field-with-meta';
4
+ export interface FieldPlugin<ExtraFieldProps = {}, InputProps = {}> {
5
+ __type: 'field';
6
+ name: string;
7
+ Component: React.FC<InputFieldType<ExtraFieldProps, InputProps>>;
8
+ type?: string;
9
+ validate?(value: any, allValues: any, meta: any, field: Field): string | object | undefined;
10
+ parse?: (value: any, name: string, field: Field) => any;
11
+ format?: (value: any, name: string, field: Field) => any;
12
+ defaultValue?: any;
13
+ }
14
+ export type { InputFieldType } from '../fields/plugins/wrap-field-with-meta';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Form, Field } from '../forms';
3
+ export interface FieldsBuilderProps {
4
+ form: Form;
5
+ activeFieldName?: string;
6
+ fields: Field[];
7
+ padding?: boolean;
8
+ }
9
+ export declare function FieldsBuilder({ form, fields, activeFieldName, padding, }: FieldsBuilderProps): JSX.Element;
10
+ export declare const FieldsGroup: ({ padding, children, }: {
11
+ padding?: boolean;
12
+ children?: any | any[];
13
+ }) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { Form } from '../forms';
3
+ export interface FormActionMenuProps {
4
+ form: Form;
5
+ actions: any[];
6
+ }
7
+ export declare const FormActionMenu: FC<FormActionMenuProps>;
8
+ export declare const ActionButton: ({ className, ...props }: {
9
+ [x: string]: any;
10
+ className?: string;
11
+ }) => JSX.Element;
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import { FC } from 'react';
3
+ import { Form } from '../forms';
4
+ export interface FormBuilderProps {
5
+ form: {
6
+ tinaForm: Form;
7
+ activeFieldName?: string;
8
+ };
9
+ hideFooter?: boolean;
10
+ label?: string;
11
+ onPristineChange?: (_pristine: boolean) => unknown;
12
+ }
13
+ export declare const FormBuilder: FC<FormBuilderProps>;
14
+ export declare const FormStatus: ({ pristine }: {
15
+ pristine: any;
16
+ }) => JSX.Element;
17
+ export declare const FormWrapper: ({ header, children, id, }: {
18
+ header?: React.ReactNode;
19
+ children: React.ReactNode;
20
+ id: string;
21
+ }) => JSX.Element;
22
+ export declare const CreateBranchModel: ({ close, safeSubmit, relativePath, values, crudType, }: {
23
+ safeSubmit: () => Promise<void>;
24
+ close: () => void;
25
+ relativePath: string;
26
+ values: Record<string, unknown>;
27
+ crudType: string;
28
+ }) => JSX.Element;
29
+ export declare const PrefixedTextField: ({ prefix, ...props }: {
30
+ [x: string]: any;
31
+ prefix?: string;
32
+ }) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Form } from '../forms';
2
+ import { FormRenderProps } from 'react-final-form';
3
+ import { FC } from 'react';
4
+ export interface FormLegacyProps {
5
+ form: Form;
6
+ children(props: FormRenderProps<string>): any;
7
+ }
8
+ export declare const FormLegacy: FC<FormLegacyProps>;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export declare type FormPortal = React.FC<{
3
+ children(props: {
4
+ zIndexShift: number;
5
+ }): React.ReactNode | null;
6
+ }>;
7
+ export declare function useFormPortal(): FormPortal;
8
+ export declare const FormPortalProvider: React.FC;
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ import { Form } from '../forms';
4
+ interface RenderProps {
5
+ isEditing: boolean;
6
+ setIsEditing(nextVal: boolean): any;
7
+ }
8
+ export interface Props {
9
+ form: Form;
10
+ children({ isEditing, setIsEditing }: RenderProps): any;
11
+ }
12
+ export declare function TinaForm({ form, children }: Props): JSX.Element;
13
+ interface TinaFieldsProps {
14
+ name: string;
15
+ type?: string;
16
+ Component: any;
17
+ children: any;
18
+ }
19
+ export declare function TinaField({ Component, children, ...fieldProps }: TinaFieldsProps): any;
20
+ export declare namespace TinaField {
21
+ var propTypes: {
22
+ name: PropTypes.Requireable<string>;
23
+ type: PropTypes.Requireable<string>;
24
+ Component: PropTypes.Validator<any>;
25
+ children: PropTypes.Requireable<any>;
26
+ };
27
+ }
28
+ export {};
@@ -0,0 +1,10 @@
1
+ export * from './field-plugin';
2
+ export * from './fields-builder';
3
+ export * from './form';
4
+ export * from './form-builder';
5
+ export * from './form-legacy';
6
+ export * from './form-portal';
7
+ export * from './loading-dots';
8
+ export * from './reset-form';
9
+ export * from './form-actions';
10
+ export type { FieldRenderProps } from 'react-final-form';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface LoadingDotsProps {
3
+ dotSize?: number;
4
+ color?: string;
5
+ }
6
+ export declare const LoadingDots: ({ dotSize, color, }: LoadingDotsProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { FC } from 'react';
3
+ interface ResetFormProps {
4
+ children: any;
5
+ pristine: boolean;
6
+ reset(): void;
7
+ style?: React.CSSProperties;
8
+ }
9
+ export declare const ResetForm: FC<ResetFormProps>;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CMS, Plugin } from '../core';
2
+ import { Field } from './field';
3
+ import { FormOptions } from './form';
4
+ export interface ContentCreatorPlugin<FormShape> extends Plugin {
5
+ __type: 'content-creator';
6
+ fields: Field[];
7
+ actions?: FormOptions<any>['actions'];
8
+ buttons?: FormOptions<any>['buttons'];
9
+ initialValues?: FormShape;
10
+ onSubmit(value: FormShape, cms: CMS): Promise<void> | void;
11
+ reset?: FormOptions<any>['reset'];
12
+ onChange?: FormOptions<any>['onChange'];
13
+ }
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ export declare type AnyField = Field & {
3
+ [key: string]: any;
4
+ };
5
+ export interface Field<F extends Field = AnyField> {
6
+ name: string;
7
+ label?: string | boolean;
8
+ description?: string;
9
+ component: React.FC<any> | string | null;
10
+ inlineComponent?: React.FC<any>;
11
+ parse?: (value: any, name: string, field: F) => any;
12
+ format?: (value: any, name: string, field: F) => any;
13
+ validate?(value: any, allValues: any, meta: any, field: Field): string | object | undefined;
14
+ defaultValue?: any;
15
+ fields?: F[];
16
+ /**
17
+ * Focus events can come from outside of the component, this is not
18
+ * a guarantee that the given field will receive focus since that functionality
19
+ * needs to be built on a per-component basis.
20
+ *
21
+ * This is also a one-way stree. The "active field" for a given form isn't
22
+ * necessarily updated when a user clicks on a new field. So you can have a
23
+ * field which is marked as the active field, and have focus on another field
24
+ */
25
+ experimental_focusIntent?: boolean;
26
+ }