tinacms 2.1.1 → 2.2.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 (133) hide show
  1. package/dist/admin/api.d.ts +1 -1
  2. package/dist/admin/components/GetCollection.d.ts +2 -2
  3. package/dist/admin/pages/utils.d.ts +1 -1
  4. package/dist/auth/authenticate.d.ts +1 -1
  5. package/dist/hooks/create-page-plugin.d.ts +3 -3
  6. package/dist/hooks/use-content-creator.d.ts +2 -2
  7. package/dist/hooks/use-graphql-forms.d.ts +5 -5
  8. package/dist/index.d.ts +10 -10
  9. package/dist/index.js +3125 -2093
  10. package/dist/index.mjs +3087 -2045
  11. package/dist/internalClient/authProvider.d.ts +3 -4
  12. package/dist/internalClient/formify.d.ts +1 -1
  13. package/dist/internalClient/index.d.ts +3 -3
  14. package/dist/react.d.ts +2 -2
  15. package/dist/rich-text/index.d.ts +4 -4
  16. package/dist/tina-cms.d.ts +1 -1
  17. package/dist/toolkit/alerts/alerts.d.ts +2 -2
  18. package/dist/toolkit/browser-storage/get-flattened-form-values.d.ts +1 -1
  19. package/dist/toolkit/components/media/modal.d.ts +1 -1
  20. package/dist/toolkit/components/tina-provider.d.ts +1 -1
  21. package/dist/toolkit/core/event.d.ts +1 -1
  22. package/dist/toolkit/core/media.d.ts +1 -0
  23. package/dist/toolkit/core/plugins.d.ts +1 -1
  24. package/dist/toolkit/core/subscribable.d.ts +1 -1
  25. package/dist/toolkit/fields/components/button-toggle.d.ts +1 -1
  26. package/dist/toolkit/fields/components/checkbox-group.d.ts +1 -1
  27. package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +1 -1
  28. package/dist/toolkit/fields/components/input.d.ts +1 -1
  29. package/dist/toolkit/fields/components/number-input.d.ts +1 -1
  30. package/dist/toolkit/fields/components/password-field.d.ts +1 -1
  31. package/dist/toolkit/fields/components/radio-group.d.ts +1 -1
  32. package/dist/toolkit/fields/components/reference/index.d.ts +1 -1
  33. package/dist/toolkit/fields/components/select.d.ts +1 -1
  34. package/dist/toolkit/fields/components/text-field.d.ts +1 -1
  35. package/dist/toolkit/fields/components/textarea.d.ts +1 -1
  36. package/dist/toolkit/fields/components/toggle.d.ts +1 -1
  37. package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +1 -1
  38. package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +0 -1
  39. package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +0 -1
  40. package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +3 -3
  41. package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +7 -3
  42. package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +1 -1
  43. package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +7 -7
  44. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +5 -5
  45. package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +1 -1
  46. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +25 -0
  47. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/fixed-toolbar-buttons.d.ts +6 -0
  48. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/floating-toolbar-buttons.d.ts +2 -0
  49. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/headings-dropdown.d.ts +3 -0
  50. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +11 -0
  51. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +14 -0
  52. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +11 -0
  53. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +18 -0
  54. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +12 -0
  55. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +11 -0
  56. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +12 -0
  57. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +29 -0
  58. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/fixed-toolbar.d.ts +1 -0
  59. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +5 -0
  60. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +115 -0
  61. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +18 -0
  62. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +19 -0
  63. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +27 -0
  64. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +8 -0
  65. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +11 -0
  66. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +6 -0
  67. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +16 -0
  68. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +13 -0
  69. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +19 -0
  70. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/overflow-menu.d.ts +7 -0
  71. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -0
  72. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +18 -0
  73. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +18 -0
  74. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +4 -0
  75. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +12 -0
  76. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/templates-toolbar-button.d.ts +2 -0
  77. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +30 -0
  78. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/tooltip.d.ts +12 -0
  79. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/turn-into-dropdown-menu.d.ts +3 -0
  80. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +1 -1
  81. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +1 -1
  82. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
  83. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
  84. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
  85. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-rules.d.ts +1 -1
  86. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +2 -2
  87. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +3 -4
  88. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +1 -1
  89. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +3 -3
  90. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +4 -3
  91. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +1 -1
  92. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +5 -4
  93. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -3
  94. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +2 -2
  95. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +1 -1
  96. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +1 -1
  97. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +130 -52
  98. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +4 -0
  99. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-provider.d.ts +16 -0
  100. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +1 -1
  101. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +6 -0
  102. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/types.d.ts +1 -1
  103. package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +0 -1
  104. package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +0 -1
  105. package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +0 -1
  106. package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +1 -1
  107. package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +0 -1
  108. package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +2 -2
  109. package/dist/toolkit/form-builder/field-plugin.d.ts +0 -1
  110. package/dist/toolkit/form-builder/form-portal.d.ts +2 -2
  111. package/dist/toolkit/forms/field.d.ts +1 -2
  112. package/dist/toolkit/forms/form.d.ts +1 -1
  113. package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +1 -1
  114. package/dist/toolkit/react-core/use-cms-event.d.ts +1 -1
  115. package/dist/toolkit/react-datetime/DateTime.d.ts +8 -8
  116. package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +1 -1
  117. package/dist/toolkit/react-datetime/views/DaysView.d.ts +1 -1
  118. package/dist/toolkit/react-datetime/views/MonthsView.d.ts +1 -1
  119. package/dist/toolkit/react-datetime/views/TimeView.d.ts +1 -1
  120. package/dist/toolkit/react-datetime/views/YearsView.d.ts +1 -1
  121. package/dist/toolkit/react-modals/modal/modal.d.ts +1 -1
  122. package/dist/toolkit/react-modals/modal-provider.d.ts +1 -1
  123. package/dist/toolkit/react-sidebar/components/form-list.d.ts +5 -5
  124. package/dist/toolkit/styles/message.d.ts +2 -2
  125. package/dist/toolkit/tina-cms.d.ts +7 -11
  126. package/dist/toolkit/tina-state.d.ts +3 -3
  127. package/dist/types/cms.d.ts +3 -4
  128. package/dist/unifiedClient/index.d.ts +3 -3
  129. package/package.json +74 -57
  130. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +0 -5
  131. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +0 -16
  132. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +0 -6
  133. package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/toolbar-item.d.ts +0 -21
@@ -1,5 +1,15 @@
1
1
  import React from 'react';
2
- export declare const components: () => {
2
+ export declare const Components: () => {
3
+ slash_input: React.ForwardRefExoticComponent<Omit<Omit<{
4
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
5
+ } & Omit<{
6
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
7
+ asChild?: boolean | undefined;
8
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
9
+ ref?: React.Ref<any>;
10
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
11
+ element: import("@udecode/plate-common").TElement;
12
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>>;
3
13
  h1: ({ attributes, editor, element, className, ...props }: {
4
14
  [x: string]: any;
5
15
  attributes: any;
@@ -50,14 +60,47 @@ export declare const components: () => {
50
60
  editor: any;
51
61
  element: any;
52
62
  }) => React.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
- }) => React.JSX.Element;
60
- code_block: (props: any) => React.JSX.Element;
63
+ blockquote: React.ForwardRefExoticComponent<Omit<Omit<{
64
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
65
+ } & Omit<{
66
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
67
+ asChild?: boolean | undefined;
68
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
69
+ ref?: React.Ref<any>;
70
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
71
+ element: import("@udecode/plate-common").TElement;
72
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>>;
73
+ code_block: React.ForwardRefExoticComponent<Omit<Omit<{
74
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
75
+ } & Omit<{
76
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
77
+ asChild?: boolean | undefined;
78
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
79
+ ref?: React.Ref<any>;
80
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
81
+ element: import("@udecode/plate-common").TElement;
82
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>>;
83
+ code_line: React.ForwardRefExoticComponent<Omit<Omit<{
84
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
85
+ } & Omit<{
86
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
87
+ asChild?: boolean | undefined;
88
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
89
+ ref?: React.Ref<any>;
90
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
91
+ element: import("@udecode/plate-common").TElement;
92
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>>;
93
+ code_syntax: React.ForwardRefExoticComponent<Omit<Omit<{
94
+ leafToAttributes?: (leaf: import("@udecode/plate-common").TText) => any;
95
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
96
+ leaf: import("@udecode/plate-common").TText;
97
+ text: import("@udecode/plate-common").TText;
98
+ } & Omit<{
99
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
100
+ asChild?: boolean | undefined;
101
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
102
+ ref?: React.Ref<any>;
103
+ } & React.RefAttributes<HTMLSpanElement>, "ref">, never> & React.RefAttributes<any>>;
61
104
  html: ({ attributes, editor, element, children, className }: {
62
105
  attributes: any;
63
106
  editor: any;
@@ -72,35 +115,40 @@ export declare const components: () => {
72
115
  children: any;
73
116
  className: any;
74
117
  }) => React.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
- }) => React.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
- }) => React.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
- }) => React.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
- }) => React.JSX.Element;
118
+ ul: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<{
119
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
120
+ } & Omit<{
121
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
122
+ asChild?: boolean | undefined;
123
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
124
+ ref?: React.Ref<any>;
125
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
126
+ element: import("@udecode/plate-common").TElement;
127
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
128
+ variant?: "ol" | "ul";
129
+ } & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<any>, "ref">, never> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
130
+ ol: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<{
131
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
132
+ } & Omit<{
133
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
134
+ asChild?: boolean | undefined;
135
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
136
+ ref?: React.Ref<any>;
137
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
138
+ element: import("@udecode/plate-common").TElement;
139
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref"> & import("class-variance-authority").VariantProps<(props?: {
140
+ variant?: "ol" | "ul";
141
+ } & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<any>, "ref">, never> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
142
+ li: React.ForwardRefExoticComponent<Omit<{
143
+ elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
144
+ } & Omit<{
145
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
146
+ asChild?: boolean | undefined;
147
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
148
+ ref?: React.Ref<any>;
149
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
150
+ element: import("@udecode/plate-common").TElement;
151
+ } & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<any>>;
104
152
  a: ({ attributes, editor, element, nodeProps, className, ...props }: {
105
153
  [x: string]: any;
106
154
  attributes: any;
@@ -109,20 +157,50 @@ export declare const components: () => {
109
157
  nodeProps: any;
110
158
  className: any;
111
159
  }) => React.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
- }) => React.JSX.Element;
120
- italic: ({ editor, leaf, text, ...props }: {
121
- [x: string]: any;
122
- editor: any;
123
- leaf: any;
124
- text: any;
125
- }) => React.JSX.Element;
160
+ code: React.ForwardRefExoticComponent<Omit<Omit<{
161
+ leafToAttributes?: (leaf: import("@udecode/plate-common").TText) => any;
162
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
163
+ leaf: import("@udecode/plate-common").TText;
164
+ text: import("@udecode/plate-common").TText;
165
+ } & Omit<{
166
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
167
+ asChild?: boolean | undefined;
168
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
169
+ ref?: React.Ref<any>;
170
+ } & React.RefAttributes<HTMLSpanElement>, "ref">, never> & React.RefAttributes<any>>;
171
+ underline: React.ForwardRefExoticComponent<Omit<{
172
+ leafToAttributes?: (leaf: import("@udecode/plate-common").TText) => any;
173
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
174
+ leaf: import("@udecode/plate-common").TText;
175
+ text: import("@udecode/plate-common").TText;
176
+ } & Omit<{
177
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
178
+ asChild?: boolean | undefined;
179
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
180
+ ref?: React.Ref<any>;
181
+ } & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<any>>;
182
+ strikethrough: React.ForwardRefExoticComponent<Omit<{
183
+ leafToAttributes?: (leaf: import("@udecode/plate-common").TText) => any;
184
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
185
+ leaf: import("@udecode/plate-common").TText;
186
+ text: import("@udecode/plate-common").TText;
187
+ } & Omit<{
188
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
189
+ asChild?: boolean | undefined;
190
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
191
+ ref?: React.Ref<any>;
192
+ } & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<any>>;
193
+ italic: React.ForwardRefExoticComponent<Omit<{
194
+ leafToAttributes?: (leaf: import("@udecode/plate-common").TText) => any;
195
+ } & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & Omit<import("slate-react").RenderLeafProps, "text" | "leaf"> & {
196
+ leaf: import("@udecode/plate-common").TText;
197
+ text: import("@udecode/plate-common").TText;
198
+ } & Omit<{
199
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
200
+ asChild?: boolean | undefined;
201
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
202
+ ref?: React.Ref<any>;
203
+ } & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<any>>;
126
204
  bold: ({ editor, leaf, text, ...props }: {
127
205
  [x: string]: any;
128
206
  editor: any;
@@ -0,0 +1,4 @@
1
+ export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed';
2
+ export declare const ICON_WIDTH = 32;
3
+ export declare const EMBED_ICON_WIDTH = 78;
4
+ export declare const HEADING = 138;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { type ReactNode } from 'react';
3
+ import type { MdxTemplate } from '../types';
4
+ import type { Form } from '../../../../../forms';
5
+ import type { ToolbarOverrideType } from './toolbar-overrides';
6
+ interface ToolbarContextProps {
7
+ tinaForm: Form;
8
+ templates: MdxTemplate[];
9
+ overrides: ToolbarOverrideType[];
10
+ }
11
+ interface ToolbarProviderProps extends ToolbarContextProps {
12
+ children: ReactNode;
13
+ }
14
+ export declare const ToolbarProvider: React.FC<ToolbarProviderProps>;
15
+ export declare const useToolbarContext: () => ToolbarContextProps;
16
+ export {};
@@ -1,2 +1,2 @@
1
- import { PlateEditor } from '@udecode/plate-headless';
1
+ import { type PlateEditor } from '@udecode/plate-common';
2
2
  export declare const insertEmptyCodeBlock: (editor: PlateEditor) => void;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * RegExps. A URL must match #1 and then at least one of #2/#3. Use two levels
3
+ * of REs to avoid REDOS.
4
+ */
5
+ /** Loosely validate a URL `string`. */
6
+ export declare const isUrl: (string: any) => boolean;
@@ -1,5 +1,5 @@
1
1
  import type { Field } from '../../../../forms';
2
- export declare type MdxTemplate = {
2
+ export type MdxTemplate = {
3
3
  label: string;
4
4
  key: string;
5
5
  inline?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const RadioGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").RadioGroupProps, {}>) => import("react").JSX.Element;
3
2
  export declare const RadioGroupFieldPlugin: {
4
3
  name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ReferenceField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components/reference").ReferenceProps, {}>) => import("react").JSX.Element;
3
2
  export declare const ReferenceFieldPlugin: {
4
3
  name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").SelectProps, {}>) => import("react").JSX.Element;
3
2
  export declare const SelectFieldPlugin: {
4
3
  name: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { InputProps } from '../components';
2
+ import { type InputProps } from '../components';
3
3
  interface ExtraProps {
4
4
  placeholder: string;
5
5
  disabled?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const ToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ToggleProps, {}>) => import("react").JSX.Element;
3
2
  export declare const ToggleFieldPlugin: {
4
3
  name: string;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { FieldProps } from './field-props';
3
3
  import { Form } from '../../forms';
4
- export declare type InputFieldType<ExtraFieldProps, InputProps> = FieldProps<InputProps> & ExtraFieldProps;
4
+ export type InputFieldType<ExtraFieldProps, InputProps> = FieldProps<InputProps> & ExtraFieldProps;
5
5
  export declare function wrapFieldsWithMeta<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => React.JSX.Element;
6
6
  export declare function wrapFieldWithError<ExtraFieldProps = {}, InputProps = {}>(Field: React.FunctionComponent<InputFieldType<ExtraFieldProps, InputProps>> | React.ComponentClass<InputFieldType<ExtraFieldProps, InputProps>>): (props: InputFieldType<ExtraFieldProps, InputProps>) => React.JSX.Element;
7
7
  interface FieldMetaProps extends React.HTMLAttributes<HTMLElement> {
@@ -18,7 +18,7 @@ export declare const FieldMeta: ({ name, label, description, error, margin, chil
18
18
  export declare const FieldWrapper: ({ margin, children, ...props }: {
19
19
  margin: boolean;
20
20
  children: React.ReactNode;
21
- } & Partial<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">>) => React.JSX.Element;
21
+ } & Partial<React.ComponentPropsWithoutRef<"div">>) => React.JSX.Element;
22
22
  export interface FieldLabel extends React.HTMLAttributes<HTMLLabelElement> {
23
23
  children?: any | any[];
24
24
  className?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Field } from '../forms';
3
2
  import { InputFieldType } from '../fields/plugins/wrap-field-with-meta';
4
3
  export interface FieldPlugin<ExtraFieldProps = {}, InputProps = {}> {
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- export declare type FormPortal = React.FC<{
2
+ export type FormPortal = React.FC<{
3
3
  children(props: {
4
4
  zIndexShift: number;
5
5
  }): React.ReactNode | null;
6
6
  }>;
7
7
  export declare function useFormPortal(): FormPortal;
8
- declare type FormPortalProviderProps = {
8
+ type FormPortalProviderProps = {
9
9
  children?: React.ReactNode;
10
10
  };
11
11
  export declare const FormPortalProvider: React.FC<FormPortalProviderProps>;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- export declare type AnyField = Field & {
1
+ export type AnyField = Field & {
3
2
  [key: string]: any;
4
3
  };
5
4
  export interface Field<F extends Field = AnyField> {
@@ -3,7 +3,7 @@ import type { FormSubscription } from 'final-form';
3
3
  import type { Plugin } from '../core';
4
4
  import { Field, AnyField } from './field';
5
5
  export type { FormApi };
6
- declare type GlobalOptions = {
6
+ type GlobalOptions = {
7
7
  global: true;
8
8
  icon?: any;
9
9
  layout?: 'fullscreen' | 'popup';
@@ -3,4 +3,4 @@ import { BranchSwitcherProps, Branch } from './types';
3
3
  export declare function formatBranchName(str: string): string;
4
4
  export declare const BranchSwitcher: (props: BranchSwitcherProps) => React.JSX.Element;
5
5
  export declare const EditoralBranchSwitcher: ({ listBranches, createBranch, chooseBranch, setModalTitle, }: BranchSwitcherProps) => React.JSX.Element;
6
- export declare const getFilteredBranchList: (branchList: Branch[], search: string, currentBranchName: string, filter?: 'content' | 'all') => Branch[];
6
+ export declare const getFilteredBranchList: (branchList: Branch[], search: string, currentBranchName: string, filter?: "content" | "all") => Branch[];
@@ -3,6 +3,6 @@ import { Callback, CMSEvent } from '../core';
3
3
  export declare function useCMSEvent<E extends CMSEvent = CMSEvent>(event: E['type'] | E['type'][], callback: Callback<E>, deps: React.DependencyList): void;
4
4
  export declare const useEventSubscription: typeof useCMSEvent;
5
5
  export declare function useEvent<E extends CMSEvent = CMSEvent>(eventType: E['type']): {
6
- dispatch: (event: Omit<E, 'type'>) => void;
6
+ dispatch: (event: Omit<E, "type">) => void;
7
7
  subscribe: (callback: (event: E) => any) => () => void;
8
8
  };
@@ -1,8 +1,8 @@
1
1
  export default class Datetime extends React.Component<any, any, any> {
2
2
  static propTypes: {
3
- value: PropTypes.Requireable<string | Date>;
4
- initialValue: PropTypes.Requireable<string | Date>;
5
- initialViewDate: PropTypes.Requireable<string | Date>;
3
+ value: PropTypes.Requireable<NonNullable<string | Date>>;
4
+ initialValue: PropTypes.Requireable<NonNullable<string | Date>>;
5
+ initialViewDate: PropTypes.Requireable<NonNullable<string | Date>>;
6
6
  initialViewMode: PropTypes.Requireable<string>;
7
7
  onOpen: PropTypes.Requireable<(...args: any[]) => any>;
8
8
  onClose: PropTypes.Requireable<(...args: any[]) => any>;
@@ -16,8 +16,8 @@ export default class Datetime extends React.Component<any, any, any> {
16
16
  utc: PropTypes.Requireable<boolean>;
17
17
  displayTimeZone: PropTypes.Requireable<string>;
18
18
  input: PropTypes.Requireable<boolean>;
19
- dateFormat: PropTypes.Requireable<string | boolean>;
20
- timeFormat: PropTypes.Requireable<string | boolean>;
19
+ dateFormat: PropTypes.Requireable<NonNullable<string | boolean>>;
20
+ timeFormat: PropTypes.Requireable<NonNullable<string | boolean>>;
21
21
  inputProps: PropTypes.Requireable<object>;
22
22
  timeConstraints: PropTypes.Requireable<object>;
23
23
  isValidDate: PropTypes.Requireable<(...args: any[]) => any>;
@@ -130,6 +130,6 @@ export default class Datetime extends React.Component<any, any, any> {
130
130
  _onInputClick: (e: any) => void;
131
131
  callHandler(method: any, e: any): boolean;
132
132
  }
133
- import React from "react";
134
- import PropTypes from "prop-types";
135
- import moment from "moment";
133
+ import React from 'react';
134
+ import PropTypes from 'prop-types';
135
+ import moment from 'moment';
@@ -6,4 +6,4 @@ export default function ViewNavigation({ onClickPrev, onClickSwitch, onClickNext
6
6
  switchColSpan: any;
7
7
  switchProps: any;
8
8
  }): React.JSX.Element;
9
- import React from "react";
9
+ import React from 'react';
@@ -13,4 +13,4 @@ export default class DaysView extends React.Component<any, any, any> {
13
13
  renderFooter(): React.JSX.Element;
14
14
  _setDate: (e: any) => void;
15
15
  }
16
- import React from "react";
16
+ import React from 'react';
@@ -9,4 +9,4 @@ export default class MonthsView extends React.Component<any, any, any> {
9
9
  getMonthText(month: any): any;
10
10
  _updateSelectedMonth: (event: any) => void;
11
11
  }
12
- import React from "react";
12
+ import React from 'react';
@@ -29,4 +29,4 @@ export default class TimeView extends React.Component<any, any, any> {
29
29
  };
30
30
  componentDidUpdate(prevProps: any): void;
31
31
  }
32
- import React from "react";
32
+ import React from 'react';
@@ -14,4 +14,4 @@ export default class YearsView extends React.Component<any, any, any> {
14
14
  isDisabledYear(year: any): any;
15
15
  _updateSelectedYear: (event: any) => void;
16
16
  }
17
- import React from "react";
17
+ import React from 'react';
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- export declare type ModalProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
2
+ export type ModalProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
3
  export declare const Modal: (props: ModalProps) => React.ReactPortal;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- declare type ModalProviderProps = {
2
+ type ModalProviderProps = {
3
3
  children?: React.ReactNode;
4
4
  };
5
5
  export declare const ModalProvider: React.FC<ModalProviderProps>;
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { TinaState } from '../../tina-state';
3
- declare type FormListItem = TinaState['formLists'][number]['items'][number];
2
+ import type { TinaState } from '../../tina-state';
3
+ type FormListItem = TinaState['formLists'][number]['items'][number];
4
4
  export interface FormsListProps {
5
5
  formList: FormListItem[];
6
6
  setActiveFormId(id: string): void;
7
- isEditing: Boolean;
7
+ isEditing: boolean;
8
8
  hidden?: boolean;
9
9
  }
10
10
  declare const FormListItem: ({ item, depth, setActiveFormId, }: {
11
11
  item: Extract<FormListItem, {
12
- type: 'document';
12
+ type: "document";
13
13
  }>;
14
14
  depth: number;
15
15
  setActiveFormId: (id: string) => void;
@@ -20,6 +20,6 @@ export declare const FormLists: (props: {
20
20
  export declare const FormList: (props: {
21
21
  isEditing: boolean;
22
22
  setActiveFormId: (id: string) => void;
23
- formList: TinaState['formLists'][number];
23
+ formList: TinaState["formLists"][number];
24
24
  }) => React.JSX.Element;
25
25
  export {};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  export declare const Message: ({ children, type, size, className, link, linkLabel, }: {
3
3
  children?: React.ReactNode | React.ReactNode[];
4
- type?: 'success' | 'warning' | 'error' | 'info';
5
- size?: 'small' | 'medium';
4
+ type?: "success" | "warning" | "error" | "info";
5
+ size?: "small" | "medium";
6
6
  className?: string;
7
7
  link?: string;
8
8
  linkLabel?: string;
@@ -1,14 +1,10 @@
1
- /**
2
-
3
- */
4
- /// <reference types="react" />
5
- import { CMS, CMSConfig, PluginType } from './core';
6
- import { FieldPlugin } from './form-builder';
7
- import { ScreenPlugin } from './react-screens';
8
- import { Form } from './forms';
9
- import { Alerts, EventsToAlerts } from './alerts';
10
- import { SidebarState, SidebarStateOptions } from './react-sidebar';
11
- import { TinaAction, TinaState } from './tina-state';
1
+ import { CMS, type CMSConfig, type PluginType } from './core';
2
+ import type { FieldPlugin } from './form-builder';
3
+ import type { ScreenPlugin } from './react-screens';
4
+ import type { Form } from './forms';
5
+ import { Alerts, type EventsToAlerts } from './alerts';
6
+ import { SidebarState, type SidebarStateOptions } from './react-sidebar';
7
+ import type { TinaAction, TinaState } from './tina-state';
12
8
  import type { Client } from '../internalClient';
13
9
  export interface TinaCMSConfig extends CMSConfig {
14
10
  sidebar?: SidebarStateOptions | boolean;
@@ -1,6 +1,6 @@
1
1
  import { Form } from './react-tinacms';
2
2
  import { TinaCMS } from './tina-cms';
3
- declare type FormListItem = {
3
+ type FormListItem = {
4
4
  type: 'document';
5
5
  path: string;
6
6
  formId: string;
@@ -9,13 +9,13 @@ declare type FormListItem = {
9
9
  type: 'list';
10
10
  label: string;
11
11
  };
12
- declare type FormList = {
12
+ type FormList = {
13
13
  label: string;
14
14
  id: string;
15
15
  items: FormListItem[];
16
16
  formIds: string[];
17
17
  };
18
- export declare type TinaAction = {
18
+ export type TinaAction = {
19
19
  type: 'forms:add';
20
20
  value: Form;
21
21
  } | {
@@ -1,7 +1,6 @@
1
1
  /**
2
2
 
3
3
  */
4
- /// <reference types="react" />
5
4
  import type { StaticMedia, TinaCMS } from '@tinacms/toolkit';
6
5
  import type { Schema, Config } from '@tinacms/schema-tools';
7
6
  import type { TinaCloudMediaStoreClass } from '../auth';
@@ -9,7 +8,7 @@ import type { useDocumentCreatorPlugin } from '../hooks/use-content-creator';
9
8
  import type { formifyCallback } from '../hooks/use-graphql-forms';
10
9
  import type { TinaIOConfig } from '../internalClient';
11
10
  import type { TinaClient } from '../client';
12
- declare type APIProviderProps = {
11
+ type APIProviderProps = {
13
12
  /**
14
13
  * @deprecated Please see https://tina.io/blog/tina-v-0.68.14 for information on how to upgrade to the new API
15
14
  *
@@ -33,7 +32,7 @@ interface BaseProviderProps {
33
32
  tinaioConfig?: TinaIOConfig;
34
33
  schema?: Schema;
35
34
  }
36
- declare type QueryProviderProps = {
35
+ type QueryProviderProps = {
37
36
  /** Your React page component */
38
37
  children: (props?: any) => React.ReactNode;
39
38
  /** The query from getStaticProps */
@@ -52,7 +51,7 @@ declare type QueryProviderProps = {
52
51
  /** The `data` from getStaticProps */
53
52
  data?: never;
54
53
  };
55
- export declare type TinaCMSProviderDefaultProps = QueryProviderProps & APIProviderProps & BaseProviderProps & Config & {
54
+ export type TinaCMSProviderDefaultProps = QueryProviderProps & APIProviderProps & BaseProviderProps & Config & {
56
55
  tinaGraphQLVersion: string;
57
56
  children?: React.ReactNode;
58
57
  };
@@ -7,12 +7,12 @@ export interface TinaClientArgs<GenQueries = Record<string, unknown>> {
7
7
  queries: (client: TinaClient<GenQueries>) => GenQueries;
8
8
  errorPolicy?: Config['client']['errorPolicy'];
9
9
  }
10
- export declare type TinaClientRequestArgs = {
10
+ export type TinaClientRequestArgs = {
11
11
  variables?: Record<string, any>;
12
12
  query: string;
13
13
  errorPolicy?: 'throw' | 'include';
14
14
  } & Partial<Omit<TinaClientArgs, 'queries'>>;
15
- export declare type TinaClientURLParts = {
15
+ export type TinaClientURLParts = {
16
16
  host: string;
17
17
  clientId: string;
18
18
  branch: string;
@@ -28,7 +28,7 @@ export declare class TinaClient<GenQueries> {
28
28
  fetchOptions?: Parameters<typeof fetch>[1];
29
29
  }): Promise<{
30
30
  data: DataType;
31
- errors: GraphQLError[];
31
+ errors: GraphQLError[] | null;
32
32
  query: string;
33
33
  }>;
34
34
  }