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.
- package/dist/admin/api.d.ts +1 -1
- package/dist/admin/components/GetCollection.d.ts +2 -2
- package/dist/admin/pages/utils.d.ts +1 -1
- package/dist/auth/authenticate.d.ts +1 -1
- package/dist/hooks/create-page-plugin.d.ts +3 -3
- package/dist/hooks/use-content-creator.d.ts +2 -2
- package/dist/hooks/use-graphql-forms.d.ts +5 -5
- package/dist/index.d.ts +10 -10
- package/dist/index.js +3125 -2093
- package/dist/index.mjs +3087 -2045
- package/dist/internalClient/authProvider.d.ts +3 -4
- package/dist/internalClient/formify.d.ts +1 -1
- package/dist/internalClient/index.d.ts +3 -3
- package/dist/react.d.ts +2 -2
- package/dist/rich-text/index.d.ts +4 -4
- package/dist/tina-cms.d.ts +1 -1
- package/dist/toolkit/alerts/alerts.d.ts +2 -2
- package/dist/toolkit/browser-storage/get-flattened-form-values.d.ts +1 -1
- package/dist/toolkit/components/media/modal.d.ts +1 -1
- package/dist/toolkit/components/tina-provider.d.ts +1 -1
- package/dist/toolkit/core/event.d.ts +1 -1
- package/dist/toolkit/core/media.d.ts +1 -0
- package/dist/toolkit/core/plugins.d.ts +1 -1
- package/dist/toolkit/core/subscribable.d.ts +1 -1
- package/dist/toolkit/fields/components/button-toggle.d.ts +1 -1
- package/dist/toolkit/fields/components/checkbox-group.d.ts +1 -1
- package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +1 -1
- package/dist/toolkit/fields/components/input.d.ts +1 -1
- package/dist/toolkit/fields/components/number-input.d.ts +1 -1
- package/dist/toolkit/fields/components/password-field.d.ts +1 -1
- package/dist/toolkit/fields/components/radio-group.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/index.d.ts +1 -1
- package/dist/toolkit/fields/components/select.d.ts +1 -1
- package/dist/toolkit/fields/components/text-field.d.ts +1 -1
- package/dist/toolkit/fields/components/textarea.d.ts +1 -1
- package/dist/toolkit/fields/components/toggle.d.ts +1 -1
- package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +0 -1
- package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +0 -1
- package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +7 -3
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +7 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +25 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/fixed-toolbar-buttons.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/floating-toolbar-buttons.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/headings-dropdown.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +11 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +14 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +11 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +11 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +29 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/fixed-toolbar.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +5 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +115 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +19 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +27 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +8 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +11 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +16 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +13 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mark-toolbar-button.d.ts +19 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/overflow-menu.d.ts +7 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +4 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/templates-toolbar-button.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +30 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/tooltip.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/turn-into-dropdown-menu.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-rules.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +3 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +4 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +5 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +130 -52
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +4 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-provider.d.ts +16 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/types.d.ts +1 -1
- package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +0 -1
- package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +0 -1
- package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +0 -1
- package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +1 -1
- package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +0 -1
- package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +2 -2
- package/dist/toolkit/form-builder/field-plugin.d.ts +0 -1
- package/dist/toolkit/form-builder/form-portal.d.ts +2 -2
- package/dist/toolkit/forms/field.d.ts +1 -2
- package/dist/toolkit/forms/form.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +1 -1
- package/dist/toolkit/react-core/use-cms-event.d.ts +1 -1
- package/dist/toolkit/react-datetime/DateTime.d.ts +8 -8
- package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +1 -1
- package/dist/toolkit/react-datetime/views/DaysView.d.ts +1 -1
- package/dist/toolkit/react-datetime/views/MonthsView.d.ts +1 -1
- package/dist/toolkit/react-datetime/views/TimeView.d.ts +1 -1
- package/dist/toolkit/react-datetime/views/YearsView.d.ts +1 -1
- package/dist/toolkit/react-modals/modal/modal.d.ts +1 -1
- package/dist/toolkit/react-modals/modal-provider.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/form-list.d.ts +5 -5
- package/dist/toolkit/styles/message.d.ts +2 -2
- package/dist/toolkit/tina-cms.d.ts +7 -11
- package/dist/toolkit/tina-state.d.ts +3 -3
- package/dist/types/cms.d.ts +3 -4
- package/dist/unifiedClient/index.d.ts +3 -3
- package/package.json +74 -57
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +0 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +0 -16
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +0 -6
- 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
|
|
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:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
leaf:
|
|
116
|
-
text:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})
|
|
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,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 {};
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PlateEditor } from '@udecode/plate-
|
|
1
|
+
import { type PlateEditor } from '@udecode/plate-common';
|
|
2
2
|
export declare const insertEmptyCodeBlock: (editor: PlateEditor) => void;
|
|
@@ -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,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
|
|
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<
|
|
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,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
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
|
-
|
|
8
|
+
type FormPortalProviderProps = {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
};
|
|
11
11
|
export declare const FormPortalProvider: React.FC<FormPortalProviderProps>;
|
|
@@ -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
|
-
|
|
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?:
|
|
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,
|
|
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
|
|
134
|
-
import PropTypes from
|
|
135
|
-
import moment from
|
|
133
|
+
import React from 'react';
|
|
134
|
+
import PropTypes from 'prop-types';
|
|
135
|
+
import moment from 'moment';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type ModalProps = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
3
3
|
export declare const Modal: (props: ModalProps) => React.ReactPortal;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TinaState } from '../../tina-state';
|
|
3
|
-
|
|
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:
|
|
7
|
+
isEditing: boolean;
|
|
8
8
|
hidden?: boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const FormListItem: ({ item, depth, setActiveFormId, }: {
|
|
11
11
|
item: Extract<FormListItem, {
|
|
12
|
-
type:
|
|
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[
|
|
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?:
|
|
5
|
-
size?:
|
|
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
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
12
|
+
type FormList = {
|
|
13
13
|
label: string;
|
|
14
14
|
id: string;
|
|
15
15
|
items: FormListItem[];
|
|
16
16
|
formIds: string[];
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type TinaAction = {
|
|
19
19
|
type: 'forms:add';
|
|
20
20
|
value: Form;
|
|
21
21
|
} | {
|
package/dist/types/cms.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
}
|