tinacms 1.6.6 → 2.0.0

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 (185) hide show
  1. package/dist/admin/components/AuthTemplate.d.ts +2 -2
  2. package/dist/admin/components/ErrorDialog.d.ts +2 -2
  3. package/dist/admin/components/FullscreenError.d.ts +2 -2
  4. package/dist/admin/components/GetCMS.d.ts +2 -2
  5. package/dist/admin/components/GetCollection.d.ts +2 -2
  6. package/dist/admin/components/GetCollections.d.ts +2 -2
  7. package/dist/admin/components/GetDocument.d.ts +2 -2
  8. package/dist/admin/components/Layout.d.ts +2 -2
  9. package/dist/admin/components/LoadingPage.d.ts +2 -2
  10. package/dist/admin/components/Page.d.ts +11 -11
  11. package/dist/admin/components/Sidebar.d.ts +2 -2
  12. package/dist/admin/index.d.ts +2 -2
  13. package/dist/admin/pages/CollectionCreatePage.d.ts +3 -3
  14. package/dist/admin/pages/CollectionDuplicatePage.d.ts +2 -2
  15. package/dist/admin/pages/CollectionListPage.d.ts +2 -2
  16. package/dist/admin/pages/CollectionUpdatePage.d.ts +2 -2
  17. package/dist/admin/pages/DashboardPage.d.ts +2 -2
  18. package/dist/admin/pages/ScreenPage.d.ts +2 -2
  19. package/dist/auth/AuthModal.d.ts +3 -3
  20. package/dist/auth/TinaCloudProvider.d.ts +3 -3
  21. package/dist/index.js +26 -185
  22. package/dist/index.mjs +26 -186
  23. package/dist/internalClient/formify.d.ts +1 -1
  24. package/dist/rich-text/index.d.ts +2 -2
  25. package/dist/rich-text/prism.d.ts +2 -2
  26. package/dist/tina-cms.d.ts +3 -9
  27. package/dist/toolkit/alerts/alerts.d.ts +1 -1
  28. package/dist/toolkit/components/account/update-password.d.ts +2 -2
  29. package/dist/toolkit/components/active-field-indicator.d.ts +2 -2
  30. package/dist/toolkit/components/media/breadcrumb.d.ts +2 -2
  31. package/dist/toolkit/components/media/copy-field.d.ts +2 -2
  32. package/dist/toolkit/components/media/media-item.d.ts +3 -3
  33. package/dist/toolkit/components/media/media-manager.d.ts +3 -3
  34. package/dist/toolkit/components/media/modal.d.ts +3 -3
  35. package/dist/toolkit/components/media/pagination.d.ts +2 -2
  36. package/dist/toolkit/components/mutation-signal.d.ts +1 -1
  37. package/dist/toolkit/fields/components/image-upload/image-upload.d.ts +3 -3
  38. package/dist/toolkit/fields/components/input.d.ts +2 -2
  39. package/dist/toolkit/fields/components/password-field.d.ts +1 -1
  40. package/dist/toolkit/fields/components/text-field.d.ts +1 -1
  41. package/dist/toolkit/fields/components/textarea.d.ts +1 -1
  42. package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector-big.d.ts +2 -2
  43. package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector.d.ts +2 -2
  44. package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +3 -3
  45. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
  46. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
  47. package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +3 -3
  48. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +4 -4
  49. package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +7 -7
  50. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +8 -8
  51. package/dist/toolkit/fields/plugins/hidden-field-plugin.d.ts +3 -3
  52. package/dist/toolkit/fields/plugins/image-field-plugin.d.ts +3 -3
  53. package/dist/toolkit/fields/plugins/list-field-meta.d.ts +6 -6
  54. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -3
  55. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +2 -2
  56. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +2 -2
  57. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +2 -2
  58. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +2 -2
  59. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +2 -2
  60. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/component.d.ts +3 -3
  61. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +2 -2
  62. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +2 -2
  63. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +3 -3
  64. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +1 -1
  65. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +21 -21
  66. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/dropdown.d.ts +1 -1
  67. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/icons.d.ts +17 -17
  68. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +2 -2
  69. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +4 -4
  70. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +2 -2
  71. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/toolbar-item.d.ts +4 -4
  72. package/dist/toolkit/fields/plugins/number-field-plugin.d.ts +3 -3
  73. package/dist/toolkit/fields/plugins/password-field-plugin.d.ts +3 -3
  74. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
  75. package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +2 -2
  76. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
  77. package/dist/toolkit/fields/plugins/tags-field-plugin.d.ts +3 -3
  78. package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +3 -3
  79. package/dist/toolkit/fields/plugins/textarea-field-plugin.d.ts +3 -3
  80. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
  81. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +7 -7
  82. package/dist/toolkit/form-builder/fields-builder.d.ts +3 -3
  83. package/dist/toolkit/form-builder/form-actions.d.ts +2 -1
  84. package/dist/toolkit/form-builder/form-builder.d.ts +6 -6
  85. package/dist/toolkit/form-builder/form-portal.d.ts +5 -1
  86. package/dist/toolkit/form-builder/form.d.ts +2 -2
  87. package/dist/toolkit/form-builder/loading-dots.d.ts +2 -2
  88. package/dist/toolkit/icons/Add.d.ts +2 -2
  89. package/dist/toolkit/icons/Alert.d.ts +2 -2
  90. package/dist/toolkit/icons/AlignCenter.d.ts +2 -2
  91. package/dist/toolkit/icons/AlignLeft.d.ts +2 -2
  92. package/dist/toolkit/icons/AlignRight.d.ts +2 -2
  93. package/dist/toolkit/icons/Bold.d.ts +2 -2
  94. package/dist/toolkit/icons/ChevronDown.d.ts +2 -2
  95. package/dist/toolkit/icons/ChevronLeft.d.ts +2 -2
  96. package/dist/toolkit/icons/ChevronRight.d.ts +2 -2
  97. package/dist/toolkit/icons/ChevronUp.d.ts +2 -2
  98. package/dist/toolkit/icons/Circle.d.ts +2 -2
  99. package/dist/toolkit/icons/CircleCheck.d.ts +2 -2
  100. package/dist/toolkit/icons/Close.d.ts +2 -2
  101. package/dist/toolkit/icons/Code.d.ts +2 -2
  102. package/dist/toolkit/icons/Drag.d.ts +2 -2
  103. package/dist/toolkit/icons/Duplicate.d.ts +2 -2
  104. package/dist/toolkit/icons/Edit.d.ts +2 -2
  105. package/dist/toolkit/icons/EllipsisVertical.d.ts +2 -2
  106. package/dist/toolkit/icons/Error.d.ts +2 -2
  107. package/dist/toolkit/icons/Exit.d.ts +2 -2
  108. package/dist/toolkit/icons/File.d.ts +2 -2
  109. package/dist/toolkit/icons/Folder.d.ts +2 -2
  110. package/dist/toolkit/icons/Hamburger.d.ts +2 -2
  111. package/dist/toolkit/icons/Heading.d.ts +2 -2
  112. package/dist/toolkit/icons/Info.d.ts +2 -2
  113. package/dist/toolkit/icons/Italic.d.ts +2 -2
  114. package/dist/toolkit/icons/LeftArrow.d.ts +2 -2
  115. package/dist/toolkit/icons/Link.d.ts +2 -2
  116. package/dist/toolkit/icons/Lock.d.ts +2 -2
  117. package/dist/toolkit/icons/Markdown.d.ts +2 -2
  118. package/dist/toolkit/icons/Media.d.ts +2 -2
  119. package/dist/toolkit/icons/OrderedList.d.ts +2 -2
  120. package/dist/toolkit/icons/PullRequest.d.ts +2 -2
  121. package/dist/toolkit/icons/Quote.d.ts +2 -2
  122. package/dist/toolkit/icons/Redo.d.ts +2 -2
  123. package/dist/toolkit/icons/Reorder.d.ts +2 -2
  124. package/dist/toolkit/icons/ReorderRow.d.ts +2 -2
  125. package/dist/toolkit/icons/Reset.d.ts +2 -2
  126. package/dist/toolkit/icons/RightArrow.d.ts +2 -2
  127. package/dist/toolkit/icons/Settings.d.ts +2 -2
  128. package/dist/toolkit/icons/Strikethrough.d.ts +2 -2
  129. package/dist/toolkit/icons/Table.d.ts +2 -2
  130. package/dist/toolkit/icons/Tina.d.ts +2 -2
  131. package/dist/toolkit/icons/Trash.d.ts +2 -2
  132. package/dist/toolkit/icons/Underline.d.ts +2 -2
  133. package/dist/toolkit/icons/Undo.d.ts +2 -2
  134. package/dist/toolkit/icons/UnorderedList.d.ts +2 -2
  135. package/dist/toolkit/icons/Upload.d.ts +2 -2
  136. package/dist/toolkit/icons/Warning.d.ts +2 -2
  137. package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +2 -2
  138. package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +2 -2
  139. package/dist/toolkit/plugin-branch-switcher/branch-data.d.ts +2 -2
  140. package/dist/toolkit/plugin-branch-switcher/branch-modal.d.ts +2 -2
  141. package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +1 -1
  142. package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +3 -3
  143. package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +2 -2
  144. package/dist/toolkit/plugin-fields/markdown.d.ts +3 -3
  145. package/dist/toolkit/react-alerts/alerts.d.ts +3 -3
  146. package/dist/toolkit/react-core/with-plugin.d.ts +2 -2
  147. package/dist/toolkit/react-datetime/DateTime.d.ts +3 -3
  148. package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +2 -1
  149. package/dist/toolkit/react-datetime/views/DaysView.d.ts +6 -6
  150. package/dist/toolkit/react-datetime/views/MonthsView.d.ts +3 -3
  151. package/dist/toolkit/react-datetime/views/TimeView.d.ts +3 -3
  152. package/dist/toolkit/react-datetime/views/YearsView.d.ts +4 -4
  153. package/dist/toolkit/react-dismissible/dismissible.d.ts +1 -0
  154. package/dist/toolkit/react-forms/form-modal.d.ts +2 -2
  155. package/dist/toolkit/react-modals/fullscreen-modal.d.ts +3 -3
  156. package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -2
  157. package/dist/toolkit/react-modals/modal/modal-body.d.ts +2 -2
  158. package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
  159. package/dist/toolkit/react-modals/modal/modal-overlay.d.ts +2 -2
  160. package/dist/toolkit/react-modals/modal-provider.d.ts +5 -1
  161. package/dist/toolkit/react-modals/popup-modal.d.ts +3 -3
  162. package/dist/toolkit/react-sidebar/components/form-list.d.ts +4 -4
  163. package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -3
  164. package/dist/toolkit/react-sidebar/components/nav.d.ts +1 -1
  165. package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +3 -3
  166. package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +2 -2
  167. package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +4 -4
  168. package/dist/toolkit/react-sidebar/components/sidebar.d.ts +1 -1
  169. package/dist/toolkit/react-sidebar/components/sync-status.d.ts +4 -4
  170. package/dist/toolkit/react-tinacms/with-tina.d.ts +2 -2
  171. package/dist/toolkit/styles/button.d.ts +2 -2
  172. package/dist/toolkit/styles/container.d.ts +2 -2
  173. package/dist/toolkit/styles/message.d.ts +1 -1
  174. package/dist/toolkit/styles/overflow-menu.d.ts +2 -2
  175. package/dist/types/cms.d.ts +1 -0
  176. package/package.json +16 -25
  177. package/dist/admin/pages/LoginPage.d.ts +0 -6
  178. package/dist/admin/pages/LogoutPage.d.ts +0 -7
  179. package/dist/dev-tools.d.ts +0 -21
  180. package/dist/dev-tools.js +0 -492
  181. package/dist/dev-tools.mjs +0 -489
  182. package/dist/edit-state.d.ts +0 -38
  183. package/dist/edit-state.js +0 -110
  184. package/dist/edit-state.mjs +0 -103
  185. package/dist/toolkit/react-core/tina-error-boundary.d.ts +0 -21
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import React from 'react';
7
7
  export declare const Folder: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const HamburgerIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const HeadingIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const InfoIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const ItalicIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const LeftArrowIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const LinkIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const LockIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const MarkdownIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const MediaIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const OrderedListIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const PullRequestIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const QuoteIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const RedoIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const ReorderIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const ReorderRowIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const ResetIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const RightArrowIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const SettingsIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const StrikethroughIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const TableIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const TinaIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const TrashIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const UnderlineIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const UndoIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const UnorderedListIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const UploadIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
  */
6
- /// <reference types="react" />
6
+ import * as React from 'react';
7
7
  export declare const WarningIcon: ({ ...props }: {
8
8
  [x: string]: any;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const BranchBanner: () => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const BranchBanner: () => React.JSX.Element;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const BranchButton: () => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const BranchButton: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export interface BranchContextData {
3
3
  currentBranch: string;
4
4
  setCurrentBranch: (string: any) => void;
@@ -7,5 +7,5 @@ export declare const BranchDataProvider: ({ currentBranch, setCurrentBranch, chi
7
7
  currentBranch: any;
8
8
  setCurrentBranch: any;
9
9
  children: any;
10
- }) => JSX.Element;
10
+ }) => React.JSX.Element;
11
11
  export declare const useBranchData: () => BranchContextData;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  interface SubmitModalProps {
3
3
  close(): void;
4
4
  }
5
- export declare const BranchModal: ({ close }: SubmitModalProps) => JSX.Element;
5
+ export declare const BranchModal: ({ close }: SubmitModalProps) => React.JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { BranchSwitcherProps, Branch } from './types';
3
3
  export declare function formatBranchName(str: string): string;
4
- export declare const BranchSwitcherLegacy: ({ listBranches, createBranch, chooseBranch, }: BranchSwitcherProps) => JSX.Element;
4
+ export declare const BranchSwitcherLegacy: ({ listBranches, createBranch, chooseBranch, }: BranchSwitcherProps) => React.JSX.Element;
5
5
  export declare const getFilteredBranchList: (branchList: Branch[], filter: string, currentBranchName: string) => Branch[];
6
6
  export declare const CreateBranch: React.FC<{
7
7
  setNewBranchName: (value: any) => void;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { BranchSwitcherProps, Branch } from './types';
3
3
  export declare function formatBranchName(str: string): string;
4
- export declare const BranchSwitcher: (props: BranchSwitcherProps) => JSX.Element;
5
- export declare const EditoralBranchSwitcher: ({ listBranches, createBranch, chooseBranch, setModalTitle, }: BranchSwitcherProps) => JSX.Element;
4
+ export declare const BranchSwitcher: (props: BranchSwitcherProps) => React.JSX.Element;
5
+ export declare const EditoralBranchSwitcher: ({ listBranches, createBranch, chooseBranch, setModalTitle, }: BranchSwitcherProps) => React.JSX.Element;
6
6
  export declare const getFilteredBranchList: (branchList: Branch[], search: string, currentBranchName: string, filter?: 'content' | 'all') => Branch[];
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { ScreenPlugin } from '../react-screens';
3
3
  import { BranchSwitcherProps } from './types';
4
4
  export declare class BranchSwitcherPlugin implements ScreenPlugin {
@@ -10,5 +10,5 @@ export declare class BranchSwitcherPlugin implements ScreenPlugin {
10
10
  createBranch: BranchSwitcherProps['createBranch'];
11
11
  chooseBranch: BranchSwitcherProps['chooseBranch'];
12
12
  constructor(options: BranchSwitcherProps);
13
- Component: () => JSX.Element;
13
+ Component: () => React.JSX.Element;
14
14
  }
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const MarkdownFieldPlaceholder: {
3
3
  __type: string;
4
4
  name: string;
5
- Component: (props: any) => JSX.Element;
5
+ Component: (props: any) => React.JSX.Element;
6
6
  };
7
7
  export declare const HtmlFieldPlaceholder: {
8
8
  __type: string;
9
9
  name: string;
10
- Component: (props: any) => JSX.Element;
10
+ Component: (props: any) => React.JSX.Element;
11
11
  };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- import { Alerts as AlertsCollection } from '../alerts';
1
+ import type { Alerts as AlertsCollection } from '../alerts';
2
+ import React from 'react';
3
3
  export interface AlertsProps {
4
4
  alerts: AlertsCollection;
5
5
  }
6
- export declare function Alerts({ alerts }: AlertsProps): JSX.Element;
6
+ export declare function Alerts({ alerts }: AlertsProps): React.JSX.Element;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Plugin } from '../core';
2
+ import * as React from 'react';
3
3
  /**
4
4
  * A Higher-Order-Component for adding Plugins to the CMS.
5
5
  *
@@ -7,7 +7,7 @@ import { Plugin } from '../core';
7
7
  * @param plugin Plugin
8
8
  * @alias withPlugin
9
9
  */
10
- export declare function withPlugins(Component: any, plugins: Plugin | Plugin[]): (props: any) => JSX.Element;
10
+ export declare function withPlugins(Component: any, plugins: Plugin | Plugin[]): (props: any) => React.JSX.Element;
11
11
  /**
12
12
  * A Higher-Order-Component for adding Plugins to the CMS.
13
13
  *
@@ -64,10 +64,10 @@ export default class Datetime extends React.Component<any, any, any> {
64
64
  selectedDate: any;
65
65
  inputValue: any;
66
66
  };
67
- render(): JSX.Element;
68
- renderInput(): JSX.Element;
67
+ render(): React.JSX.Element;
68
+ renderInput(): React.JSX.Element;
69
69
  renderView(): any;
70
- _renderCalendar: () => JSX.Element;
70
+ _renderCalendar: () => React.JSX.Element;
71
71
  getInitialState(): {
72
72
  open: boolean;
73
73
  currentView: any;
@@ -5,4 +5,5 @@ export default function ViewNavigation({ onClickPrev, onClickSwitch, onClickNext
5
5
  switchContent: any;
6
6
  switchColSpan: any;
7
7
  switchProps: any;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
+ import React from "react";
@@ -1,16 +1,16 @@
1
1
  export default class DaysView extends React.Component<any, any, any> {
2
2
  static defaultProps: {
3
3
  isValidDate: () => boolean;
4
- renderDay: (props: any, date: any) => JSX.Element;
4
+ renderDay: (props: any, date: any) => React.JSX.Element;
5
5
  };
6
6
  constructor(props: any);
7
7
  constructor(props: any, context: any);
8
- render(): JSX.Element;
9
- renderNavigation(): JSX.Element;
10
- renderDayHeaders(): JSX.Element;
11
- renderDays(): JSX.Element[];
8
+ render(): React.JSX.Element;
9
+ renderNavigation(): React.JSX.Element;
10
+ renderDayHeaders(): React.JSX.Element;
11
+ renderDays(): React.JSX.Element[];
12
12
  renderDay(date: any, startOfMonth: any, endOfMonth: any): any;
13
- renderFooter(): JSX.Element;
13
+ renderFooter(): React.JSX.Element;
14
14
  _setDate: (e: any) => void;
15
15
  }
16
16
  import React from "react";
@@ -1,9 +1,9 @@
1
1
  export default class MonthsView extends React.Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  constructor(props: any, context: any);
4
- render(): JSX.Element;
5
- renderNavigation(): JSX.Element;
6
- renderMonths(): JSX.Element[];
4
+ render(): React.JSX.Element;
5
+ renderNavigation(): React.JSX.Element;
6
+ renderMonths(): React.JSX.Element[];
7
7
  renderMonth(month: any): any;
8
8
  isDisabledMonth(month: any): boolean;
9
9
  getMonthText(month: any): any;
@@ -8,9 +8,9 @@ export default class TimeView extends React.Component<any, any, any> {
8
8
  milliseconds: string;
9
9
  ampm: string;
10
10
  };
11
- render(): JSX.Element;
12
- renderCounter(type: any, value: any): JSX.Element;
13
- renderHeader(): JSX.Element;
11
+ render(): React.JSX.Element;
12
+ renderCounter(type: any, value: any): React.JSX.Element;
13
+ renderHeader(): React.JSX.Element;
14
14
  onStartClicking(e: any, action: any, type: any): void;
15
15
  timer: NodeJS.Timeout;
16
16
  increaseTimer: NodeJS.Timeout;
@@ -1,12 +1,12 @@
1
1
  export default class YearsView extends React.Component<any, any, any> {
2
2
  static defaultProps: {
3
- renderYear: (props: any, year: any) => JSX.Element;
3
+ renderYear: (props: any, year: any) => React.JSX.Element;
4
4
  };
5
5
  constructor(props: any);
6
6
  constructor(props: any, context: any);
7
- render(): JSX.Element;
8
- renderNavigation(): JSX.Element;
9
- renderYears(): JSX.Element[];
7
+ render(): React.JSX.Element;
8
+ renderNavigation(): React.JSX.Element;
9
+ renderYears(): React.JSX.Element[];
10
10
  renderYear(year: any): any;
11
11
  getViewYear(): number;
12
12
  getSelectedYear(): any;
@@ -27,6 +27,7 @@ export interface DismissibleProps {
27
27
  * dismissible area to propagate to their intended target.
28
28
  */
29
29
  allowClickPropagation?: boolean;
30
+ children?: React.ReactNode;
30
31
  }
31
32
  export declare const Dismissible: React.FC<DismissibleProps>;
32
33
  export declare function useDismissible({ onDismiss, escape, click, disabled, allowClickPropagation, document: customDocument, }: DismissibleProps): any;
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const FormModal: ({ plugin, close }: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const FormModal: ({ plugin, close }: any) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const FullscreenModal: ({ className, style, ...props }: {
3
3
  [x: string]: any;
4
4
  className?: string;
5
5
  style?: {};
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  /**
8
8
  * @alias [FullscreenModal]
9
9
  * @deprecated
@@ -12,4 +12,4 @@ export declare const ModalFullscreen: ({ className, style, ...props }: {
12
12
  [x: string]: any;
13
13
  className?: string;
14
14
  style?: {};
15
- }) => JSX.Element;
15
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export declare const ModalActions: ({ children }: {
3
3
  children: any;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const ModalBody: ({ className, padded, ...props }: {
3
3
  [x: string]: any;
4
4
  className?: string;
5
5
  padded?: boolean;
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
@@ -3,4 +3,4 @@ export interface ModalHeaderProps {
3
3
  children: React.ReactChild | React.ReactChild[];
4
4
  close?(): void;
5
5
  }
6
- export declare const ModalHeader: ({ children, close }: ModalHeaderProps) => JSX.Element;
6
+ export declare const ModalHeader: ({ children, close }: ModalHeaderProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  export declare const ModalOverlay: ({ children }: {
3
3
  children: any;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,6 +1,10 @@
1
1
  import * as React from 'react';
2
- export declare const ModalProvider: React.FC;
2
+ declare type ModalProviderProps = {
3
+ children?: React.ReactNode;
4
+ };
5
+ export declare const ModalProvider: React.FC<ModalProviderProps>;
3
6
  export interface ModalContext {
4
7
  portalNode: Element | null;
5
8
  }
6
9
  export declare function useModalContainer(): ModalContext;
10
+ export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const PopupModal: ({ className, style, ...props }: {
3
3
  [x: string]: any;
4
4
  className?: string;
5
5
  style?: {};
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  /**
8
8
  * @alias [PopupModal]
9
9
  * @deprecated
@@ -12,4 +12,4 @@ export declare const ModalPopup: ({ className, style, ...props }: {
12
12
  [x: string]: any;
13
13
  className?: string;
14
14
  style?: {};
15
- }) => JSX.Element;
15
+ }) => React.JSX.Element;