tinacms 1.5.17 → 1.5.19

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 (279) hide show
  1. package/dist/admin/pages/CollectionListPage.d.ts +1 -1
  2. package/dist/auth/TinaCloudProvider.d.ts +3 -1
  3. package/dist/client.js +5 -3
  4. package/dist/client.mjs +5 -3
  5. package/dist/index.d.ts +2 -1
  6. package/dist/index.js +13065 -1820
  7. package/dist/index.mjs +27835 -16568
  8. package/dist/internalClient/index.d.ts +15 -3
  9. package/dist/tina-cms.d.ts +0 -3
  10. package/dist/toolkit/alerts/alerts.d.ts +34 -0
  11. package/dist/toolkit/alerts/index.d.ts +1 -0
  12. package/dist/toolkit/browser-storage/browser-storage-client.d.ts +12 -0
  13. package/dist/toolkit/browser-storage/get-flattened-form-values.d.ts +2 -0
  14. package/dist/toolkit/browser-storage/index.d.ts +2 -0
  15. package/dist/toolkit/browser-storage/use-form-browser-cache.d.ts +2 -0
  16. package/dist/toolkit/components/active-field-indicator.d.ts +2 -0
  17. package/dist/toolkit/components/media/breadcrumb.d.ts +7 -0
  18. package/dist/toolkit/components/media/copy-field.d.ts +8 -0
  19. package/dist/toolkit/components/media/index.d.ts +6 -0
  20. package/dist/toolkit/components/media/media-item.d.ts +12 -0
  21. package/dist/toolkit/components/media/media-manager.d.ts +10 -0
  22. package/dist/toolkit/components/media/modal.d.ts +13 -0
  23. package/dist/toolkit/components/media/pagination.d.ts +9 -0
  24. package/dist/toolkit/components/media/utils.d.ts +4 -0
  25. package/dist/toolkit/components/mutation-signal.d.ts +12 -0
  26. package/dist/toolkit/components/tina-cms-provider.d.ts +8 -0
  27. package/dist/toolkit/components/tina-provider.d.ts +14 -0
  28. package/dist/toolkit/components/tina-ui.d.ts +13 -0
  29. package/dist/toolkit/core/cms.d.ts +156 -0
  30. package/dist/toolkit/core/event.d.ts +17 -0
  31. package/dist/toolkit/core/flags.d.ts +13 -0
  32. package/dist/toolkit/core/index.d.ts +7 -0
  33. package/dist/toolkit/core/media-store.default.d.ts +45 -0
  34. package/dist/toolkit/core/media.d.ts +138 -0
  35. package/dist/toolkit/core/plugins.d.ts +249 -0
  36. package/dist/toolkit/core/subscribable.d.ts +72 -0
  37. package/dist/toolkit/fields/components/button-toggle.d.ts +23 -0
  38. package/dist/toolkit/fields/components/checkbox-group.d.ts +22 -0
  39. package/dist/toolkit/fields/components/color-picker/color-formatter.d.ts +20 -0
  40. package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +11 -0
  41. package/dist/toolkit/fields/components/color-picker/index.d.ts +1 -0
  42. package/dist/toolkit/fields/components/image-upload/image-upload.d.ts +23 -0
  43. package/dist/toolkit/fields/components/image-upload/index.d.ts +1 -0
  44. package/dist/toolkit/fields/components/index.d.ts +12 -0
  45. package/dist/toolkit/fields/components/input.d.ts +10 -0
  46. package/dist/toolkit/fields/components/number-input.d.ts +7 -0
  47. package/dist/toolkit/fields/components/radio-group.d.ts +21 -0
  48. package/dist/toolkit/fields/components/reference/index.d.ts +21 -0
  49. package/dist/toolkit/fields/components/reference/reference-link.d.ts +8 -0
  50. package/dist/toolkit/fields/components/reference/reference-select.d.ts +11 -0
  51. package/dist/toolkit/fields/components/select.d.ts +23 -0
  52. package/dist/toolkit/fields/components/text-field.d.ts +9 -0
  53. package/dist/toolkit/fields/components/textarea.d.ts +8 -0
  54. package/dist/toolkit/fields/components/toggle.d.ts +22 -0
  55. package/dist/toolkit/fields/field-events.d.ts +11 -0
  56. package/dist/toolkit/fields/index.d.ts +3 -0
  57. package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector-big.d.ts +9 -0
  58. package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector.d.ts +8 -0
  59. package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +47 -0
  60. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +6 -0
  61. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +7 -0
  62. package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +14 -0
  63. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +14 -0
  64. package/dist/toolkit/fields/plugins/date-format.d.ts +5 -0
  65. package/dist/toolkit/fields/plugins/field-props.d.ts +6 -0
  66. package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +36 -0
  67. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +57 -0
  68. package/dist/toolkit/fields/plugins/hidden-field-plugin.d.ts +7 -0
  69. package/dist/toolkit/fields/plugins/image-field-plugin.d.ts +15 -0
  70. package/dist/toolkit/fields/plugins/index.d.ts +19 -0
  71. package/dist/toolkit/fields/plugins/list-field-meta.d.ts +32 -0
  72. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +44 -0
  73. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +20 -0
  74. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +38 -0
  75. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +4 -0
  76. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/use-debounce.d.ts +1 -0
  77. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/editor-context.d.ts +20 -0
  78. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/embed-hooks.d.ts +7 -0
  79. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-resize.d.ts +1 -0
  80. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +3 -0
  81. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +10 -0
  82. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +2 -0
  83. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +2 -0
  84. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +2 -0
  85. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-rules.d.ts +1 -0
  86. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +6 -0
  87. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -0
  88. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +2 -0
  89. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +2 -0
  90. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +8 -0
  91. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +3 -0
  92. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/component.d.ts +9 -0
  93. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +5 -0
  94. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +6 -0
  95. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +14 -0
  96. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +15 -0
  97. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +9 -0
  98. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +7 -0
  99. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +6 -0
  100. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +5 -0
  101. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +11 -0
  102. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/autocomplete.d.ts +14 -0
  103. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +9 -0
  104. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +140 -0
  105. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/dropdown.d.ts +9 -0
  106. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/helpers.d.ts +2 -0
  107. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/icons.d.ts +24 -0
  108. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +5 -0
  109. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +10 -0
  110. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +6 -0
  111. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/toolbar-item.d.ts +19 -0
  112. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +2 -0
  113. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/types.d.ts +9 -0
  114. package/dist/toolkit/fields/plugins/number-field-plugin.d.ts +15 -0
  115. package/dist/toolkit/fields/plugins/number-format.d.ts +1 -0
  116. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +7 -0
  117. package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +9 -0
  118. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +9 -0
  119. package/dist/toolkit/fields/plugins/tags-field-plugin.d.ts +12 -0
  120. package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +14 -0
  121. package/dist/toolkit/fields/plugins/text-format.d.ts +1 -0
  122. package/dist/toolkit/fields/plugins/textarea-field-plugin.d.ts +13 -0
  123. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +8 -0
  124. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +36 -0
  125. package/dist/toolkit/form-builder/field-plugin.d.ts +14 -0
  126. package/dist/toolkit/form-builder/fields-builder.d.ts +13 -0
  127. package/dist/toolkit/form-builder/form-actions.d.ts +11 -0
  128. package/dist/toolkit/form-builder/form-builder.d.ts +32 -0
  129. package/dist/toolkit/form-builder/form-legacy.d.ts +8 -0
  130. package/dist/toolkit/form-builder/form-portal.d.ts +8 -0
  131. package/dist/toolkit/form-builder/form.d.ts +28 -0
  132. package/dist/toolkit/form-builder/index.d.ts +10 -0
  133. package/dist/toolkit/form-builder/loading-dots.d.ts +7 -0
  134. package/dist/toolkit/form-builder/reset-form.d.ts +10 -0
  135. package/dist/toolkit/forms/content-creator-plugin.d.ts +13 -0
  136. package/dist/toolkit/forms/field.d.ts +26 -0
  137. package/dist/toolkit/forms/form.d.ts +138 -0
  138. package/dist/toolkit/forms/index.d.ts +4 -0
  139. package/dist/toolkit/git-client/git-client.d.ts +92 -0
  140. package/dist/toolkit/git-client/git-file.d.ts +16 -0
  141. package/dist/toolkit/git-client/git-media-store.d.ts +11 -0
  142. package/dist/toolkit/git-client/index.d.ts +4 -0
  143. package/dist/toolkit/git-client/use-git-file.d.ts +2 -0
  144. package/dist/toolkit/hooks/use-field-reference.d.ts +12 -0
  145. package/dist/toolkit/hooks/use-local-storage.d.ts +1 -0
  146. package/dist/toolkit/icons/Add.d.ts +9 -0
  147. package/dist/toolkit/icons/Alert.d.ts +9 -0
  148. package/dist/toolkit/icons/AlignCenter.d.ts +9 -0
  149. package/dist/toolkit/icons/AlignLeft.d.ts +9 -0
  150. package/dist/toolkit/icons/AlignRight.d.ts +9 -0
  151. package/dist/toolkit/icons/Bold.d.ts +9 -0
  152. package/dist/toolkit/icons/ChevronDown.d.ts +9 -0
  153. package/dist/toolkit/icons/ChevronLeft.d.ts +9 -0
  154. package/dist/toolkit/icons/ChevronRight.d.ts +9 -0
  155. package/dist/toolkit/icons/ChevronUp.d.ts +9 -0
  156. package/dist/toolkit/icons/Circle.d.ts +9 -0
  157. package/dist/toolkit/icons/CircleCheck.d.ts +9 -0
  158. package/dist/toolkit/icons/Close.d.ts +9 -0
  159. package/dist/toolkit/icons/Code.d.ts +9 -0
  160. package/dist/toolkit/icons/Drag.d.ts +9 -0
  161. package/dist/toolkit/icons/Duplicate.d.ts +9 -0
  162. package/dist/toolkit/icons/Edit.d.ts +9 -0
  163. package/dist/toolkit/icons/EllipsisVertical.d.ts +9 -0
  164. package/dist/toolkit/icons/Error.d.ts +9 -0
  165. package/dist/toolkit/icons/Exit.d.ts +9 -0
  166. package/dist/toolkit/icons/File.d.ts +9 -0
  167. package/dist/toolkit/icons/Folder.d.ts +9 -0
  168. package/dist/toolkit/icons/Hamburger.d.ts +9 -0
  169. package/dist/toolkit/icons/Heading.d.ts +9 -0
  170. package/dist/toolkit/icons/Info.d.ts +9 -0
  171. package/dist/toolkit/icons/Italic.d.ts +9 -0
  172. package/dist/toolkit/icons/LeftArrow.d.ts +9 -0
  173. package/dist/toolkit/icons/Link.d.ts +9 -0
  174. package/dist/toolkit/icons/Lock.d.ts +9 -0
  175. package/dist/toolkit/icons/Markdown.d.ts +9 -0
  176. package/dist/toolkit/icons/Media.d.ts +9 -0
  177. package/dist/toolkit/icons/OrderedList.d.ts +9 -0
  178. package/dist/toolkit/icons/PullRequest.d.ts +9 -0
  179. package/dist/toolkit/icons/Quote.d.ts +9 -0
  180. package/dist/toolkit/icons/Redo.d.ts +9 -0
  181. package/dist/toolkit/icons/Reorder.d.ts +9 -0
  182. package/dist/toolkit/icons/ReorderRow.d.ts +9 -0
  183. package/dist/toolkit/icons/Reset.d.ts +9 -0
  184. package/dist/toolkit/icons/RightArrow.d.ts +9 -0
  185. package/dist/toolkit/icons/Settings.d.ts +9 -0
  186. package/dist/toolkit/icons/Strikethrough.d.ts +9 -0
  187. package/dist/toolkit/icons/Table.d.ts +9 -0
  188. package/dist/toolkit/icons/Tina.d.ts +9 -0
  189. package/dist/toolkit/icons/Trash.d.ts +9 -0
  190. package/dist/toolkit/icons/Underline.d.ts +9 -0
  191. package/dist/toolkit/icons/Undo.d.ts +9 -0
  192. package/dist/toolkit/icons/UnorderedList.d.ts +9 -0
  193. package/dist/toolkit/icons/Upload.d.ts +9 -0
  194. package/dist/toolkit/icons/Warning.d.ts +9 -0
  195. package/dist/toolkit/icons/index.d.ts +54 -0
  196. package/dist/toolkit/index.d.ts +40 -0
  197. package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +2 -0
  198. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +2 -0
  199. package/dist/toolkit/plugin-branch-switcher/branch-data.d.ts +11 -0
  200. package/dist/toolkit/plugin-branch-switcher/branch-modal.d.ts +6 -0
  201. package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +11 -0
  202. package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +6 -0
  203. package/dist/toolkit/plugin-branch-switcher/index.d.ts +6 -0
  204. package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +14 -0
  205. package/dist/toolkit/plugin-branch-switcher/types.d.ts +30 -0
  206. package/dist/toolkit/plugin-fields/index.d.ts +1 -0
  207. package/dist/toolkit/plugin-fields/markdown.d.ts +11 -0
  208. package/dist/toolkit/plugin-form-meta/index.d.ts +7 -0
  209. package/dist/toolkit/plugin-screens/index.d.ts +16 -0
  210. package/dist/toolkit/plugin-screens/media-manager-screen.d.ts +3 -0
  211. package/dist/toolkit/react-alerts/alerts.d.ts +6 -0
  212. package/dist/toolkit/react-alerts/index.d.ts +1 -0
  213. package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +37 -0
  214. package/dist/toolkit/react-cloud-config/index.d.ts +2 -0
  215. package/dist/toolkit/react-cloud-config/use-cloud-config-plugin.d.ts +3 -0
  216. package/dist/toolkit/react-core/index.d.ts +7 -0
  217. package/dist/toolkit/react-core/tina-error-boundary.d.ts +21 -0
  218. package/dist/toolkit/react-core/use-cms-event.d.ts +8 -0
  219. package/dist/toolkit/react-core/use-cms.d.ts +10 -0
  220. package/dist/toolkit/react-core/use-form.d.ts +14 -0
  221. package/dist/toolkit/react-core/use-plugin.d.ts +12 -0
  222. package/dist/toolkit/react-core/use-subscribable.d.ts +10 -0
  223. package/dist/toolkit/react-core/use-watch-form-values.d.ts +6 -0
  224. package/dist/toolkit/react-core/with-plugin.d.ts +18 -0
  225. package/dist/toolkit/react-datetime/DateTime.d.ts +126 -0
  226. package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +8 -0
  227. package/dist/toolkit/react-datetime/views/DaysView.d.ts +15 -0
  228. package/dist/toolkit/react-datetime/views/MonthsView.d.ts +11 -0
  229. package/dist/toolkit/react-datetime/views/TimeView.d.ts +23 -0
  230. package/dist/toolkit/react-datetime/views/YearsView.d.ts +16 -0
  231. package/dist/toolkit/react-dismissible/dismissible.d.ts +32 -0
  232. package/dist/toolkit/react-dismissible/index.d.ts +1 -0
  233. package/dist/toolkit/react-forms/form-modal.d.ts +2 -0
  234. package/dist/toolkit/react-forms/index.d.ts +1 -0
  235. package/dist/toolkit/react-modals/fullscreen-modal.d.ts +15 -0
  236. package/dist/toolkit/react-modals/index.d.ts +4 -0
  237. package/dist/toolkit/react-modals/modal/index.d.ts +5 -0
  238. package/dist/toolkit/react-modals/modal/modal-actions.d.ts +4 -0
  239. package/dist/toolkit/react-modals/modal/modal-body.d.ts +6 -0
  240. package/dist/toolkit/react-modals/modal/modal-header.d.ts +6 -0
  241. package/dist/toolkit/react-modals/modal/modal-overlay.d.ts +4 -0
  242. package/dist/toolkit/react-modals/modal/modal.d.ts +3 -0
  243. package/dist/toolkit/react-modals/modal-provider.d.ts +6 -0
  244. package/dist/toolkit/react-modals/popup-modal.d.ts +15 -0
  245. package/dist/toolkit/react-screens/components/screen-plugin-modal.d.ts +7 -0
  246. package/dist/toolkit/react-screens/index.d.ts +3 -0
  247. package/dist/toolkit/react-screens/screen-plugin.d.ts +42 -0
  248. package/dist/toolkit/react-screens/use-screen-plugin.d.ts +3 -0
  249. package/dist/toolkit/react-sidebar/components/form-list.d.ts +25 -0
  250. package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -0
  251. package/dist/toolkit/react-sidebar/components/nav.d.ts +34 -0
  252. package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +8 -0
  253. package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +7 -0
  254. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +19 -0
  255. package/dist/toolkit/react-sidebar/components/sidebar.d.ts +26 -0
  256. package/dist/toolkit/react-sidebar/components/sync-status.d.ts +31 -0
  257. package/dist/toolkit/react-sidebar/index.d.ts +5 -0
  258. package/dist/toolkit/react-sidebar/sidebar.d.ts +34 -0
  259. package/dist/toolkit/react-tinacms/index.d.ts +10 -0
  260. package/dist/toolkit/react-tinacms/use-cms.d.ts +3 -0
  261. package/dist/toolkit/react-tinacms/use-form.d.ts +12 -0
  262. package/dist/toolkit/react-tinacms/use-plugin.d.ts +1 -0
  263. package/dist/toolkit/react-tinacms/use-subscribable.d.ts +1 -0
  264. package/dist/toolkit/react-tinacms/use-watch-form-values.d.ts +1 -0
  265. package/dist/toolkit/react-tinacms/with-plugin.d.ts +1 -0
  266. package/dist/toolkit/react-tinacms/with-tina.d.ts +3 -0
  267. package/dist/toolkit/styles/button.d.ts +15 -0
  268. package/dist/toolkit/styles/container.d.ts +7 -0
  269. package/dist/toolkit/styles/font-loader.d.ts +1 -0
  270. package/dist/toolkit/styles/index.d.ts +4 -0
  271. package/dist/toolkit/styles/message.d.ts +9 -0
  272. package/dist/toolkit/styles/overflow-menu.d.ts +6 -0
  273. package/dist/toolkit/tina-cms.d.ts +41 -0
  274. package/dist/toolkit/tina-state.d.ts +84 -0
  275. package/dist/types/cms.d.ts +2 -1
  276. package/dist/unifiedClient/index.d.ts +0 -3
  277. package/dist/utils/index.d.ts +1 -0
  278. package/package.json +60 -14
  279. package/dist/style.css +0 -1536
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ import { Field, Form } from '../../../forms';
3
+ export interface BlocksFieldDefinititon extends Field {
4
+ component: 'blocks';
5
+ templates: {
6
+ [key: string]: BlockTemplate;
7
+ };
8
+ }
9
+ export interface BlockTemplate {
10
+ label: string;
11
+ defaultItem?: object | (() => object);
12
+ fields?: Field[];
13
+ /**
14
+ * An optional function which generates `props` for
15
+ * this items's `li`.
16
+ */
17
+ itemProps?: (item: object) => {
18
+ /**
19
+ * The `key` property used to optimize the rendering of lists.
20
+ *
21
+ * If rendering is causing problems, use `defaultItem` to
22
+ * generate a unique key for the item.
23
+ *
24
+ * Reference:
25
+ * * https://reactjs.org/docs/lists-and-keys.html
26
+ */
27
+ key?: string;
28
+ /**
29
+ * The label to be display on the list item.
30
+ */
31
+ label?: string;
32
+ };
33
+ }
34
+ interface BlockFieldProps {
35
+ input: any;
36
+ meta: any;
37
+ field: BlocksFieldDefinititon;
38
+ form: any;
39
+ tinaForm: Form;
40
+ index?: number;
41
+ }
42
+ export declare const BlocksField: ({ tinaForm, form, field, input, meta, index, }: BlockFieldProps) => JSX.Element;
43
+ export declare const BlocksFieldPlugin: {
44
+ name: string;
45
+ Component: ({ tinaForm, form, field, input, meta, index, }: BlockFieldProps) => JSX.Element;
46
+ };
47
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ButtonToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ButtonToggleProps, {}>) => JSX.Element;
3
+ export declare const ButtonToggleFieldPlugin: {
4
+ name: string;
5
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ButtonToggleProps, {}>) => JSX.Element;
6
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const CheckboxGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").CheckboxGroupProps, {}>) => JSX.Element;
3
+ export declare const CheckboxGroupFieldPlugin: {
4
+ name: string;
5
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").CheckboxGroupProps, {}>) => JSX.Element;
6
+ validate(value: any, values: any, meta: any, field: any): string;
7
+ };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ export interface ColorFieldProps {
4
+ colorFormat: string;
5
+ colors: string[];
6
+ widget?: 'sketch' | 'block';
7
+ }
8
+ export declare const ColorField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => JSX.Element;
9
+ export declare const ColorFieldPlugin: {
10
+ name: string;
11
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => JSX.Element;
12
+ parse: (value?: string) => string;
13
+ validate(value: any, values: any, meta: any, field: any): string;
14
+ };
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ import type { DatetimepickerProps } from 'react-datetime';
4
+ import { Field } from '../../forms';
5
+ export declare const DateField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => JSX.Element;
6
+ export declare const ReactDateTimeWithStyles: (props: DatetimepickerProps & Partial<Field>) => JSX.Element;
7
+ export declare const DateFieldPlugin: {
8
+ __type: string;
9
+ name: string;
10
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => JSX.Element;
11
+ format: (val: string, _name: string, field: DatetimepickerProps) => string;
12
+ parse: (val: string) => string;
13
+ validate(value: any, values: any, meta: any, field: any): string;
14
+ };
@@ -0,0 +1,5 @@
1
+ import type { DatetimepickerProps } from 'react-datetime';
2
+ export declare const DEFAULT_DATE_DISPLAY_FORMAT = "MMM DD, YYYY";
3
+ export declare const DEFAULT_TIME_DISPLAY_FORMAT = "h:mm A";
4
+ export declare const format: (val: string, _name: string, field: DatetimepickerProps) => string;
5
+ export declare const parse: (val: string) => string;
@@ -0,0 +1,6 @@
1
+ import { Field, FormApi } from '../../forms';
2
+ import { FieldRenderProps } from '../../form-builder';
3
+ export interface FieldProps<InputProps> extends FieldRenderProps<any, HTMLElement> {
4
+ field: Field & InputProps;
5
+ form: FormApi;
6
+ }
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ import { Field, Form } from '../../forms';
3
+ export interface GroupFieldDefinititon extends Field {
4
+ component: 'group';
5
+ fields: Field[];
6
+ }
7
+ export interface GroupProps {
8
+ input: any;
9
+ meta: any;
10
+ field: GroupFieldDefinititon;
11
+ form: any;
12
+ tinaForm: Form;
13
+ }
14
+ export declare const Group: (props: import("../../form-builder").InputFieldType<GroupProps, GroupFieldDefinititon>) => JSX.Element;
15
+ export declare const PanelHeader: ({ onClick, children }: {
16
+ onClick: any;
17
+ children: any;
18
+ }) => JSX.Element;
19
+ export declare const PanelBody: ({ id, children }: {
20
+ id: any;
21
+ children: any;
22
+ }) => JSX.Element;
23
+ export declare const GroupPanel: ({ isExpanded, className, style, ...props }: {
24
+ [x: string]: any;
25
+ isExpanded: any;
26
+ className?: string;
27
+ style?: {};
28
+ }) => JSX.Element;
29
+ export interface GroupFieldProps {
30
+ field: Field;
31
+ }
32
+ export declare function GroupField(props: GroupFieldProps): JSX.Element;
33
+ export declare const GroupFieldPlugin: {
34
+ name: string;
35
+ Component: (props: import("../../form-builder").InputFieldType<GroupProps, GroupFieldDefinititon>) => JSX.Element;
36
+ };
@@ -0,0 +1,57 @@
1
+ /// <reference types="react" />
2
+ import { Field, Form } from '../../forms';
3
+ interface GroupFieldDefinititon extends Field {
4
+ component: 'group';
5
+ fields: Field[];
6
+ defaultItem?: object | (() => object);
7
+ /**
8
+ * An optional function which generates `props` for
9
+ * this items's `li`.
10
+ */
11
+ itemProps?: (item: object) => {
12
+ /**
13
+ * The `key` property used to optimize the rendering of lists.
14
+ *
15
+ * If rendering is causing problems, use `defaultItem` to
16
+ * generate a unique key for the item.
17
+ *
18
+ * Reference:
19
+ * * https://reactjs.org/docs/lists-and-keys.html
20
+ */
21
+ key?: string;
22
+ /**
23
+ * The label to be display on the list item.
24
+ */
25
+ label?: string;
26
+ };
27
+ }
28
+ interface GroupProps {
29
+ input: any;
30
+ meta: any;
31
+ field: GroupFieldDefinititon;
32
+ form: any;
33
+ tinaForm: Form;
34
+ index?: number;
35
+ }
36
+ export declare const ItemClickTarget: ({ children, ...props }: {
37
+ [x: string]: any;
38
+ children: any;
39
+ }) => JSX.Element;
40
+ export declare const GroupLabel: ({ error, children, }: {
41
+ children?: any;
42
+ error?: boolean;
43
+ }) => JSX.Element;
44
+ export declare const ItemHeader: ({ isDragging, children, provider, ...props }: any) => JSX.Element;
45
+ export declare const ItemDeleteButton: ({ onClick, disabled }: {
46
+ onClick: any;
47
+ disabled?: boolean;
48
+ }) => JSX.Element;
49
+ export declare const DragHandle: ({ isDragging }: {
50
+ isDragging: boolean;
51
+ }) => JSX.Element;
52
+ export declare const GroupListField: ({ tinaForm, form, field, input, meta, index }: GroupProps) => JSX.Element;
53
+ export declare const GroupListFieldPlugin: {
54
+ name: string;
55
+ Component: ({ tinaForm, form, field, input, meta, index }: GroupProps) => JSX.Element;
56
+ };
57
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const HiddenField: () => JSX.Element;
3
+ export declare const HiddenFieldPlugin: {
4
+ name: string;
5
+ Component: () => JSX.Element;
6
+ parse: (value?: string) => string;
7
+ };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { InputProps } from '../components';
3
+ interface ImageProps {
4
+ path: string;
5
+ uploadDir?(formValues: any): string;
6
+ clearable?: boolean;
7
+ }
8
+ export declare const ImageField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ImageProps>) => JSX.Element;
9
+ export declare const ImageFieldPlugin: {
10
+ name: string;
11
+ Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ImageProps>) => JSX.Element;
12
+ parse: (value?: string) => string;
13
+ validate(value: any, values: any, meta: any, field: any): string;
14
+ };
15
+ export {};
@@ -0,0 +1,19 @@
1
+ export * from './blocks-field-plugin';
2
+ export * from './color-field-plugin';
3
+ export * from './group-field-plugin';
4
+ export * from './group-list-field-plugin';
5
+ export * from './list-field-plugin';
6
+ export * from './image-field-plugin';
7
+ export * from './mdx-field-plugin';
8
+ export * from './number-field-plugin';
9
+ export * from './select-field-plugin';
10
+ export * from './radio-group-field-plugin';
11
+ export * from './textarea-field-plugin';
12
+ export * from './text-field-plugin';
13
+ export * from './toggle-field-plugin';
14
+ export * from './tags-field-plugin';
15
+ export * from './date-field-plugin';
16
+ export * from './checkbox-group-field-plugin';
17
+ export * from './reference-field-plugin';
18
+ export * from './button-toggle-field-plugin';
19
+ export * from './hidden-field-plugin';
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import { Form } from '../../forms';
3
+ interface FieldMetaProps extends React.HTMLAttributes<HTMLElement> {
4
+ name: string;
5
+ children: any;
6
+ actions?: any;
7
+ label?: string | boolean;
8
+ description?: string;
9
+ error?: string;
10
+ margin?: boolean;
11
+ index?: number;
12
+ triggerHoverEvents?: boolean;
13
+ tinaForm: Form;
14
+ }
15
+ export declare const ListFieldMeta: ({ name, label, description, error, margin, children, actions, index, tinaForm, triggerHoverEvents, ...props }: FieldMetaProps) => JSX.Element;
16
+ export declare const ListHeader: ({ children }: {
17
+ children?: any;
18
+ }) => JSX.Element;
19
+ export declare const ListMeta: ({ children }: {
20
+ children?: any;
21
+ }) => JSX.Element;
22
+ export declare const ListLabel: ({ children }: {
23
+ children?: any;
24
+ }) => JSX.Element;
25
+ export declare const ListPanel: ({ className, ...props }: {
26
+ [x: string]: any;
27
+ className?: string;
28
+ }) => JSX.Element;
29
+ export declare const EmptyList: ({ message }: {
30
+ message?: string;
31
+ }) => JSX.Element;
32
+ export {};
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { Field, Form } from '../../forms';
3
+ declare type DefaultItem = string | number | (() => string | number);
4
+ interface ListFieldDefinititon extends Field {
5
+ component: 'list';
6
+ defaultItem?: DefaultItem;
7
+ field: {
8
+ component: 'text' | 'textarea' | 'number' | 'select' | 'image';
9
+ };
10
+ type?: string;
11
+ list?: boolean;
12
+ parentTypename?: string;
13
+ /**
14
+ * An optional function which generates `props` for
15
+ * this items's `li`.
16
+ */
17
+ itemProps?: (_item: object) => {
18
+ /**
19
+ * The `key` property used to optimize the rendering of lists.
20
+ *
21
+ * If rendering is causing problems, use `defaultItem` to
22
+ * generate a unique key for the item.
23
+ *
24
+ * Reference:
25
+ * * https://reactjs.org/docs/lists-and-keys.html
26
+ */
27
+ key?: string;
28
+ };
29
+ }
30
+ interface ListProps {
31
+ input: any;
32
+ meta: any;
33
+ field: ListFieldDefinititon;
34
+ form: any;
35
+ tinaForm: Form;
36
+ index?: number;
37
+ }
38
+ export declare const ListField: ({ tinaForm, form, field, input, meta, index }: ListProps) => JSX.Element;
39
+ export declare const ListFieldPlugin: {
40
+ name: string;
41
+ Component: ({ tinaForm, form, field, input, meta, index }: ListProps) => JSX.Element;
42
+ validate(value: any, values: any, meta: any, field: any): string;
43
+ };
44
+ export {};
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { InputProps } from 'react-select/lib/components/Input';
3
+ import { InputFieldType } from '../wrap-field-with-meta';
4
+ import type { MdxTemplate } from './plate/types';
5
+ export declare type RichTextType = React.PropsWithChildren<InputFieldType<InputProps, {
6
+ templates: MdxTemplate[];
7
+ }>>;
8
+ export declare const MdxFieldPlugin: {
9
+ name: string;
10
+ Component: (props: InputFieldType<InputProps, {
11
+ templates: MdxTemplate[];
12
+ }>) => JSX.Element;
13
+ };
14
+ export declare const MdxFieldPluginExtendible: {
15
+ name: string;
16
+ validate(value: any): string;
17
+ Component: (props: InputFieldType<InputProps, {
18
+ templates: MdxTemplate[];
19
+ }>) => JSX.Element;
20
+ };
@@ -0,0 +1,38 @@
1
+ /// <reference types="react" />
2
+ export declare type EmptyTextElement = {
3
+ type: 'text';
4
+ text: '';
5
+ };
6
+ export declare type PositionItem = {
7
+ line?: number | null;
8
+ column?: number | null;
9
+ offset?: number | null;
10
+ _index?: number | null;
11
+ _bufferIndex?: number | null;
12
+ };
13
+ export declare type Position = {
14
+ start: PositionItem;
15
+ end: PositionItem;
16
+ };
17
+ export declare type InvalidMarkdownElement = {
18
+ type: 'invalid_markdown';
19
+ value: string;
20
+ message: string;
21
+ position?: Position;
22
+ children: [EmptyTextElement];
23
+ };
24
+ declare type ErrorType = {
25
+ message: string;
26
+ position?: {
27
+ startColumn: number;
28
+ endColumn: number;
29
+ startLineNumber: number;
30
+ endLineNumber: number;
31
+ };
32
+ };
33
+ export declare const buildError: (element: InvalidMarkdownElement) => ErrorType;
34
+ export declare const buildErrorMessage: (element: InvalidMarkdownElement) => string;
35
+ export declare function ErrorMessage({ error }: {
36
+ error: InvalidMarkdownElement;
37
+ }): JSX.Element;
38
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { RichTextType } from '..';
3
+ declare const RawEditor: (props: RichTextType) => JSX.Element;
4
+ export default RawEditor;
@@ -0,0 +1 @@
1
+ export declare function useDebounce(value: any, delay: any): any;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { MdxTemplate } from './types';
3
+ export declare const EditorContext: React.Context<{
4
+ fieldName: string;
5
+ templates: MdxTemplate[];
6
+ rawMode: boolean;
7
+ setRawMode: (mode: boolean) => void;
8
+ }>;
9
+ export declare const useEditorContext: () => {
10
+ fieldName: string;
11
+ templates: MdxTemplate[];
12
+ rawMode: boolean;
13
+ setRawMode: (mode: boolean) => void;
14
+ };
15
+ export declare const useTemplates: () => {
16
+ fieldName: string;
17
+ templates: MdxTemplate[];
18
+ rawMode: boolean;
19
+ setRawMode: (mode: boolean) => void;
20
+ };
@@ -0,0 +1,7 @@
1
+ export declare const useHotkey: (key: any, callback: any) => void;
2
+ export declare const useEmbedHandles: (editor: any, element: any, baseFieldName: string) => {
3
+ isExpanded: boolean;
4
+ handleClose: () => void;
5
+ handleRemove: () => void;
6
+ handleSelect: () => void;
7
+ };
@@ -0,0 +1 @@
1
+ export declare const useResize: (ref: any, callback: any) => void;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { RichTextType } from '..';
3
+ export declare const RichEditor: (props: RichTextType) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Field } from '../../../../forms';
3
+ export declare const NestedForm: (props: {
4
+ onClose: () => void;
5
+ id: string;
6
+ label: string;
7
+ fields: Field[];
8
+ initialValues: object;
9
+ onChange: (values: object) => void;
10
+ }) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { AutoformatRule } from '@udecode/plate-headless';
2
+ export declare const autoformatBlocks: AutoformatRule[];
@@ -0,0 +1,2 @@
1
+ import type { AutoformatRule } from '@udecode/plate-headless';
2
+ export declare const autoformatLists: AutoformatRule[];
@@ -0,0 +1,2 @@
1
+ import type { AutoformatRule } from '@udecode/plate-headless';
2
+ export declare const autoformatMarks: AutoformatRule[];
@@ -0,0 +1 @@
1
+ export declare const autoformatRules: import("@udecode/plate-headless").AutoformatRule<import("@udecode/plate-headless").Value, import("@udecode/plate-headless").PlateEditor<import("@udecode/plate-headless").Value>>[];
@@ -0,0 +1,6 @@
1
+ import type { AutoformatBlockRule } from '@udecode/plate-headless';
2
+ import { TEditor } from '@udecode/plate-headless';
3
+ export declare const preFormat: AutoformatBlockRule['preFormat'];
4
+ export declare const format: (editor: TEditor, customFormatting: any) => void;
5
+ export declare const formatList: (editor: TEditor, elementType: string) => void;
6
+ export declare const formatText: (editor: TEditor, text: string) => void;
@@ -0,0 +1,11 @@
1
+ import { PlateEditor } from '@udecode/plate-headless';
2
+ export declare const plugins: import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").AnyObject, import("@udecode/plate-headless").Value, PlateEditor<import("@udecode/plate-headless").Value>>[];
3
+ export declare const insertInlineElement: (editor: any, inlineElement: any) => void;
4
+ export declare const insertBlockElement: (editor: any, blockElement: any) => void;
5
+ export declare const helpers: {
6
+ isNodeActive: (editor: any, type: any) => boolean;
7
+ isMarkActive: (editor: any, type: any) => boolean;
8
+ isListActive: (editor: any, type: any) => boolean;
9
+ currentNodeSupportsMDX: (editor: PlateEditor) => import("@udecode/plate-headless").TNodeEntry<import("@udecode/plate-headless").ENode<import("@udecode/plate-headless").Value>>;
10
+ normalize: (node: any) => any;
11
+ };
@@ -0,0 +1,2 @@
1
+ export declare const HANDLES_MDX: string[];
2
+ export declare const plugins: import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").AnyObject, import("@udecode/plate-headless").Value, import("@udecode/plate-headless").PlateEditor<import("@udecode/plate-headless").Value>>[];
@@ -0,0 +1,2 @@
1
+ export { plugins as commonPlugins } from './common';
2
+ export { plugins as formattingPlugins } from './formatting';
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * This fixes a bug where you can't delete between two void nodes
4
+ * without deleting the first node.
5
+ *
6
+ * https://github.com/ianstormtaylor/slate/issues/3991#issuecomment-832160304
7
+ */
8
+ export declare const withCorrectVoidBehavior: (editor: any) => any;
@@ -0,0 +1,3 @@
1
+ export declare const createCodeBlockPlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends import("@udecode/plate-headless").PlateEditor<OV> = import("@udecode/plate-headless").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
2
+ export declare const createHTMLBlockPlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends import("@udecode/plate-headless").PlateEditor<OV> = import("@udecode/plate-headless").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
3
+ export declare const createHTMLInlinePlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends import("@udecode/plate-headless").PlateEditor<OV> = import("@udecode/plate-headless").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const ImgEmbed: ({ attributes, children, element, editor, onChange, }: {
3
+ attributes: any;
4
+ children: any;
5
+ element: any;
6
+ editor: any;
7
+ onChange: any;
8
+ }) => JSX.Element;
9
+ export declare const ImageForm: (props: any) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { PlateEditor } from '@udecode/plate-headless';
2
+ import { Media } from '../../../../../../core/media';
3
+ export declare const ELEMENT_IMG = "img";
4
+ export declare const createImgPlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends PlateEditor<OV> = PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
5
+ export declare const insertImg: (editor: PlateEditor, media: Media) => void;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const ELEMENT_INVALID_MARKDOWN = "invalid_markdown";
3
+ export declare const createInvalidMarkdownPlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends import("@udecode/plate-headless").PlateEditor<OV> = import("@udecode/plate-headless").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
4
+ export declare function ErrorMessage({ error }: {
5
+ error: any;
6
+ }): JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { PlateEditor, createLinkPlugin } from '@udecode/plate-headless';
3
+ import { BaseRange } from 'slate';
4
+ export { createLinkPlugin };
5
+ declare type LinkElement = {
6
+ url?: string;
7
+ title?: string;
8
+ text: string | undefined;
9
+ };
10
+ export declare const wrapOrRewrapLink: (editor: any) => void;
11
+ export declare const LinkForm: (props: any) => JSX.Element;
12
+ export declare const isLinkActive: (editor: any) => boolean;
13
+ export declare const unwrapLink: (editor: PlateEditor, selection?: BaseRange) => void;
14
+ export declare const getLinks: (editor: any) => Generator<import("@udecode/plate-headless").TNodeEntry<LinkElement>, void, undefined>;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export declare const InlineEmbed: ({ attributes, children, element, onChange, editor, }: {
3
+ attributes: any;
4
+ children: any;
5
+ element: any;
6
+ onChange: any;
7
+ editor: any;
8
+ }) => JSX.Element;
9
+ export declare const BlockEmbed: ({ attributes, children, element, editor, onChange, }: {
10
+ attributes: any;
11
+ children: any;
12
+ element: any;
13
+ editor: any;
14
+ onChange: any;
15
+ }) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { PlateEditor } from '@udecode/plate-headless';
2
+ import type { MdxTemplate } from '../../types';
3
+ export declare const ELEMENT_MDX_INLINE = "mdxJsxTextElement";
4
+ export declare const ELEMENT_MDX_BLOCK = "mdxJsxFlowElement";
5
+ export declare const createMdxInlinePlugin: <OP = {
6
+ templates: MdxTemplate[];
7
+ }, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends PlateEditor<OV> = PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
8
+ export declare const createMdxBlockPlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends PlateEditor<OV> = PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
9
+ export declare const insertMDX: (editor: PlateEditor, value: MdxTemplate) => void;
@@ -0,0 +1,7 @@
1
+ import { SoftBreakPlugin } from './types';
2
+ export declare const KEY_SOFT_BREAK = "break";
3
+ /**
4
+ * This code is mostly copied from the plate soft-break plugin
5
+ * [here](https://github.com/udecode/plate/blob/3c0de39a66308a9b718cf9f35623502702ae2af4/packages/editor/break/src/soft-break/index.ts)
6
+ */
7
+ export declare const createSoftBreakPlugin: <OP = SoftBreakPlugin, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends import("@udecode/plate-headless").PlateEditor<OV> = import("@udecode/plate-headless").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from './create-soft-break-plugin';
5
+ export * from './on-key-down-soft-break';
6
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ export declare const onKeyDownSoftBreak: (editor: any, { options: { rules } }: {
2
+ options: {
3
+ rules?: any[];
4
+ };
5
+ }) => (event: any) => void;
@@ -0,0 +1,11 @@
1
+ import { QueryNodeOptions } from '@udecode/plate-headless';
2
+ export interface SoftBreakRule {
3
+ hotkey: string;
4
+ /**
5
+ * Filter the block types where the rule applies.
6
+ */
7
+ query?: QueryNodeOptions;
8
+ }
9
+ export interface SoftBreakPlugin {
10
+ rules?: SoftBreakRule[];
11
+ }