tinacms 1.6.7 → 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.
- package/dist/admin/components/AuthTemplate.d.ts +2 -2
- package/dist/admin/components/ErrorDialog.d.ts +2 -2
- package/dist/admin/components/FullscreenError.d.ts +2 -2
- package/dist/admin/components/GetCMS.d.ts +2 -2
- package/dist/admin/components/GetCollection.d.ts +2 -2
- package/dist/admin/components/GetCollections.d.ts +2 -2
- package/dist/admin/components/GetDocument.d.ts +2 -2
- package/dist/admin/components/Layout.d.ts +2 -2
- package/dist/admin/components/LoadingPage.d.ts +2 -2
- package/dist/admin/components/Page.d.ts +11 -11
- package/dist/admin/components/Sidebar.d.ts +2 -2
- package/dist/admin/index.d.ts +2 -2
- package/dist/admin/pages/CollectionCreatePage.d.ts +3 -3
- package/dist/admin/pages/CollectionDuplicatePage.d.ts +2 -2
- package/dist/admin/pages/CollectionListPage.d.ts +2 -2
- package/dist/admin/pages/CollectionUpdatePage.d.ts +2 -2
- package/dist/admin/pages/DashboardPage.d.ts +2 -2
- package/dist/admin/pages/ScreenPage.d.ts +2 -2
- package/dist/auth/AuthModal.d.ts +3 -3
- package/dist/auth/TinaCloudProvider.d.ts +3 -3
- package/dist/index.js +26 -185
- package/dist/index.mjs +26 -186
- package/dist/internalClient/formify.d.ts +1 -1
- package/dist/rich-text/index.d.ts +2 -2
- package/dist/rich-text/prism.d.ts +2 -2
- package/dist/tina-cms.d.ts +3 -9
- package/dist/toolkit/alerts/alerts.d.ts +1 -1
- package/dist/toolkit/components/account/update-password.d.ts +2 -2
- package/dist/toolkit/components/active-field-indicator.d.ts +2 -2
- package/dist/toolkit/components/media/breadcrumb.d.ts +2 -2
- package/dist/toolkit/components/media/copy-field.d.ts +2 -2
- package/dist/toolkit/components/media/media-item.d.ts +3 -3
- package/dist/toolkit/components/media/media-manager.d.ts +3 -3
- package/dist/toolkit/components/media/modal.d.ts +3 -3
- package/dist/toolkit/components/media/pagination.d.ts +2 -2
- package/dist/toolkit/components/mutation-signal.d.ts +1 -1
- package/dist/toolkit/fields/components/image-upload/image-upload.d.ts +3 -3
- package/dist/toolkit/fields/components/input.d.ts +2 -2
- package/dist/toolkit/fields/components/password-field.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/plugins/blocks-field-plugin/block-selector-big.d.ts +2 -2
- package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector.d.ts +2 -2
- package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +3 -3
- package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +4 -4
- package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +7 -7
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +8 -8
- package/dist/toolkit/fields/plugins/hidden-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/image-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/list-field-meta.d.ts +6 -6
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/component.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +3 -3
- 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 +21 -21
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/dropdown.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/icons.d.ts +17 -17
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +4 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/toolbar-item.d.ts +4 -4
- package/dist/toolkit/fields/plugins/number-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/password-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/tags-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/textarea-field-plugin.d.ts +3 -3
- package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +2 -2
- package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +7 -7
- package/dist/toolkit/form-builder/fields-builder.d.ts +3 -3
- package/dist/toolkit/form-builder/form-actions.d.ts +2 -1
- package/dist/toolkit/form-builder/form-builder.d.ts +6 -6
- package/dist/toolkit/form-builder/form-portal.d.ts +5 -1
- package/dist/toolkit/form-builder/form.d.ts +2 -2
- package/dist/toolkit/form-builder/loading-dots.d.ts +2 -2
- package/dist/toolkit/icons/Add.d.ts +2 -2
- package/dist/toolkit/icons/Alert.d.ts +2 -2
- package/dist/toolkit/icons/AlignCenter.d.ts +2 -2
- package/dist/toolkit/icons/AlignLeft.d.ts +2 -2
- package/dist/toolkit/icons/AlignRight.d.ts +2 -2
- package/dist/toolkit/icons/Bold.d.ts +2 -2
- package/dist/toolkit/icons/ChevronDown.d.ts +2 -2
- package/dist/toolkit/icons/ChevronLeft.d.ts +2 -2
- package/dist/toolkit/icons/ChevronRight.d.ts +2 -2
- package/dist/toolkit/icons/ChevronUp.d.ts +2 -2
- package/dist/toolkit/icons/Circle.d.ts +2 -2
- package/dist/toolkit/icons/CircleCheck.d.ts +2 -2
- package/dist/toolkit/icons/Close.d.ts +2 -2
- package/dist/toolkit/icons/Code.d.ts +2 -2
- package/dist/toolkit/icons/Drag.d.ts +2 -2
- package/dist/toolkit/icons/Duplicate.d.ts +2 -2
- package/dist/toolkit/icons/Edit.d.ts +2 -2
- package/dist/toolkit/icons/EllipsisVertical.d.ts +2 -2
- package/dist/toolkit/icons/Error.d.ts +2 -2
- package/dist/toolkit/icons/Exit.d.ts +2 -2
- package/dist/toolkit/icons/File.d.ts +2 -2
- package/dist/toolkit/icons/Folder.d.ts +2 -2
- package/dist/toolkit/icons/Hamburger.d.ts +2 -2
- package/dist/toolkit/icons/Heading.d.ts +2 -2
- package/dist/toolkit/icons/Info.d.ts +2 -2
- package/dist/toolkit/icons/Italic.d.ts +2 -2
- package/dist/toolkit/icons/LeftArrow.d.ts +2 -2
- package/dist/toolkit/icons/Link.d.ts +2 -2
- package/dist/toolkit/icons/Lock.d.ts +2 -2
- package/dist/toolkit/icons/Markdown.d.ts +2 -2
- package/dist/toolkit/icons/Media.d.ts +2 -2
- package/dist/toolkit/icons/OrderedList.d.ts +2 -2
- package/dist/toolkit/icons/PullRequest.d.ts +2 -2
- package/dist/toolkit/icons/Quote.d.ts +2 -2
- package/dist/toolkit/icons/Redo.d.ts +2 -2
- package/dist/toolkit/icons/Reorder.d.ts +2 -2
- package/dist/toolkit/icons/ReorderRow.d.ts +2 -2
- package/dist/toolkit/icons/Reset.d.ts +2 -2
- package/dist/toolkit/icons/RightArrow.d.ts +2 -2
- package/dist/toolkit/icons/Settings.d.ts +2 -2
- package/dist/toolkit/icons/Strikethrough.d.ts +2 -2
- package/dist/toolkit/icons/Table.d.ts +2 -2
- package/dist/toolkit/icons/Tina.d.ts +2 -2
- package/dist/toolkit/icons/Trash.d.ts +2 -2
- package/dist/toolkit/icons/Underline.d.ts +2 -2
- package/dist/toolkit/icons/Undo.d.ts +2 -2
- package/dist/toolkit/icons/UnorderedList.d.ts +2 -2
- package/dist/toolkit/icons/Upload.d.ts +2 -2
- package/dist/toolkit/icons/Warning.d.ts +2 -2
- package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +2 -2
- package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +2 -2
- package/dist/toolkit/plugin-branch-switcher/branch-data.d.ts +2 -2
- package/dist/toolkit/plugin-branch-switcher/branch-modal.d.ts +2 -2
- package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +3 -3
- package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +2 -2
- package/dist/toolkit/plugin-fields/markdown.d.ts +3 -3
- package/dist/toolkit/react-alerts/alerts.d.ts +3 -3
- package/dist/toolkit/react-core/with-plugin.d.ts +2 -2
- package/dist/toolkit/react-datetime/DateTime.d.ts +3 -3
- package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +2 -1
- package/dist/toolkit/react-datetime/views/DaysView.d.ts +6 -6
- package/dist/toolkit/react-datetime/views/MonthsView.d.ts +3 -3
- package/dist/toolkit/react-datetime/views/TimeView.d.ts +3 -3
- package/dist/toolkit/react-datetime/views/YearsView.d.ts +4 -4
- package/dist/toolkit/react-dismissible/dismissible.d.ts +1 -0
- package/dist/toolkit/react-forms/form-modal.d.ts +2 -2
- package/dist/toolkit/react-modals/fullscreen-modal.d.ts +3 -3
- package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -2
- package/dist/toolkit/react-modals/modal/modal-body.d.ts +2 -2
- package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
- package/dist/toolkit/react-modals/modal/modal-overlay.d.ts +2 -2
- package/dist/toolkit/react-modals/modal-provider.d.ts +5 -1
- package/dist/toolkit/react-modals/popup-modal.d.ts +3 -3
- package/dist/toolkit/react-sidebar/components/form-list.d.ts +4 -4
- package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -3
- package/dist/toolkit/react-sidebar/components/nav.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +3 -3
- package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +2 -2
- package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +4 -4
- package/dist/toolkit/react-sidebar/components/sidebar.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/sync-status.d.ts +4 -4
- package/dist/toolkit/react-tinacms/with-tina.d.ts +2 -2
- package/dist/toolkit/styles/button.d.ts +2 -2
- package/dist/toolkit/styles/container.d.ts +2 -2
- package/dist/toolkit/styles/message.d.ts +1 -1
- package/dist/toolkit/styles/overflow-menu.d.ts +2 -2
- package/dist/types/cms.d.ts +1 -0
- package/package.json +16 -25
- package/dist/admin/pages/LoginPage.d.ts +0 -6
- package/dist/admin/pages/LogoutPage.d.ts +0 -7
- package/dist/dev-tools.d.ts +0 -21
- package/dist/dev-tools.js +0 -492
- package/dist/dev-tools.mjs +0 -489
- package/dist/edit-state.d.ts +0 -38
- package/dist/edit-state.js +0 -110
- package/dist/edit-state.mjs +0 -103
- package/dist/toolkit/react-core/tina-error-boundary.d.ts +0 -21
|
@@ -5,5 +5,5 @@ export interface PasswordFieldProps extends a {
|
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
7
|
export declare const passwordFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded-md";
|
|
8
|
-
export declare const BasePasswordField: React.ForwardRefExoticComponent<
|
|
8
|
+
export declare const BasePasswordField: React.ForwardRefExoticComponent<Omit<PasswordFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export {};
|
|
@@ -5,5 +5,5 @@ export interface TextFieldProps extends a {
|
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
7
|
export declare const textFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded-md";
|
|
8
|
-
export declare const BaseTextField: React.ForwardRefExoticComponent<
|
|
8
|
+
export declare const BaseTextField: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export {};
|
|
@@ -4,5 +4,5 @@ export interface TextAreaProps extends a {
|
|
|
4
4
|
error?: boolean;
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
|
-
export declare const TextArea: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { BlockTemplate } from '.';
|
|
3
3
|
export declare const BlockSelectorBig: ({ templates, addItem, label, }: {
|
|
4
4
|
templates: {
|
|
@@ -6,4 +6,4 @@ export declare const BlockSelectorBig: ({ templates, addItem, label, }: {
|
|
|
6
6
|
};
|
|
7
7
|
addItem: any;
|
|
8
8
|
label: string | boolean;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { BlockTemplate } from '.';
|
|
3
3
|
export declare const BlockSelector: ({ templates, addItem, }: {
|
|
4
4
|
templates: {
|
|
5
5
|
[key: string]: BlockTemplate;
|
|
6
6
|
};
|
|
7
7
|
addItem: any;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Field, Form } from '../../../forms';
|
|
3
3
|
export interface BlocksFieldDefinititon extends Field {
|
|
4
4
|
component: 'blocks';
|
|
@@ -39,9 +39,9 @@ interface BlockFieldProps {
|
|
|
39
39
|
tinaForm: Form;
|
|
40
40
|
index?: number;
|
|
41
41
|
}
|
|
42
|
-
export declare const BlocksField: ({ tinaForm, form, field, input, meta, index, }: BlockFieldProps) => JSX.Element;
|
|
42
|
+
export declare const BlocksField: ({ tinaForm, form, field, input, meta, index, }: BlockFieldProps) => React.JSX.Element;
|
|
43
43
|
export declare const BlocksFieldPlugin: {
|
|
44
44
|
name: string;
|
|
45
|
-
Component: ({ tinaForm, form, field, input, meta, index, }: BlockFieldProps) => JSX.Element;
|
|
45
|
+
Component: ({ tinaForm, form, field, input, meta, index, }: BlockFieldProps) => React.JSX.Element;
|
|
46
46
|
};
|
|
47
47
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ButtonToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ButtonToggleProps, {}>) => JSX.Element;
|
|
2
|
+
export declare const ButtonToggleField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ButtonToggleProps, {}>) => import("react").JSX.Element;
|
|
3
3
|
export declare const ButtonToggleFieldPlugin: {
|
|
4
4
|
name: string;
|
|
5
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ButtonToggleProps, {}>) => JSX.Element;
|
|
5
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").ButtonToggleProps, {}>) => import("react").JSX.Element;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const CheckboxGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").CheckboxGroupProps, {}>) => JSX.Element;
|
|
2
|
+
export declare const CheckboxGroupField: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").CheckboxGroupProps, {}>) => import("react").JSX.Element;
|
|
3
3
|
export declare const CheckboxGroupFieldPlugin: {
|
|
4
4
|
name: string;
|
|
5
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").CheckboxGroupProps, {}>) => JSX.Element;
|
|
5
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<import("../components").CheckboxGroupProps, {}>) => import("react").JSX.Element;
|
|
6
6
|
validate(value: any, values: any, meta: any, field: any): string;
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { InputProps } from '../components';
|
|
3
3
|
export interface ColorFieldProps {
|
|
4
4
|
colorFormat: string;
|
|
5
5
|
colors: string[];
|
|
6
6
|
widget?: 'sketch' | 'block';
|
|
7
7
|
}
|
|
8
|
-
export declare const ColorField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => JSX.Element;
|
|
8
|
+
export declare const ColorField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => React.JSX.Element;
|
|
9
9
|
export declare const ColorFieldPlugin: {
|
|
10
10
|
name: string;
|
|
11
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => JSX.Element;
|
|
11
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ColorFieldProps>) => React.JSX.Element;
|
|
12
12
|
parse: (value?: string) => string;
|
|
13
13
|
validate(value: any, values: any, meta: any, field: any): string;
|
|
14
14
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { InputProps } from '../components';
|
|
3
3
|
import type { DatetimepickerProps } from 'react-datetime';
|
|
4
4
|
import { Field } from '../../forms';
|
|
5
|
-
export declare const DateField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => JSX.Element;
|
|
6
|
-
export declare const ReactDateTimeWithStyles: (props: DatetimepickerProps & Partial<Field>) => JSX.Element;
|
|
5
|
+
export declare const DateField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => React.JSX.Element;
|
|
6
|
+
export declare const ReactDateTimeWithStyles: (props: DatetimepickerProps & Partial<Field>) => React.JSX.Element;
|
|
7
7
|
export declare const DateFieldPlugin: {
|
|
8
8
|
__type: string;
|
|
9
9
|
name: string;
|
|
10
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => JSX.Element;
|
|
10
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, DatetimepickerProps>) => React.JSX.Element;
|
|
11
11
|
format: (val: string, _name: string, field: DatetimepickerProps) => string;
|
|
12
12
|
parse: (val: string) => string;
|
|
13
13
|
validate(value: any, values: any, meta: any, field: any): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Field, Form } from '../../forms';
|
|
3
3
|
export interface GroupFieldDefinititon extends Field {
|
|
4
4
|
component: 'group';
|
|
@@ -11,26 +11,26 @@ export interface GroupProps {
|
|
|
11
11
|
form: any;
|
|
12
12
|
tinaForm: Form;
|
|
13
13
|
}
|
|
14
|
-
export declare const Group: (props: import("../../form-builder").InputFieldType<GroupProps, GroupFieldDefinititon>) => JSX.Element;
|
|
14
|
+
export declare const Group: (props: import("../../form-builder").InputFieldType<GroupProps, GroupFieldDefinititon>) => React.JSX.Element;
|
|
15
15
|
export declare const PanelHeader: ({ onClick, children }: {
|
|
16
16
|
onClick: any;
|
|
17
17
|
children: any;
|
|
18
|
-
}) => JSX.Element;
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
19
|
export declare const PanelBody: ({ id, children }: {
|
|
20
20
|
id: any;
|
|
21
21
|
children: any;
|
|
22
|
-
}) => JSX.Element;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
23
|
export declare const GroupPanel: ({ isExpanded, className, style, ...props }: {
|
|
24
24
|
[x: string]: any;
|
|
25
25
|
isExpanded: any;
|
|
26
26
|
className?: string;
|
|
27
27
|
style?: {};
|
|
28
|
-
}) => JSX.Element;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
29
|
export interface GroupFieldProps {
|
|
30
30
|
field: Field;
|
|
31
31
|
}
|
|
32
|
-
export declare function GroupField(props: GroupFieldProps): JSX.Element;
|
|
32
|
+
export declare function GroupField(props: GroupFieldProps): React.JSX.Element;
|
|
33
33
|
export declare const GroupFieldPlugin: {
|
|
34
34
|
name: string;
|
|
35
|
-
Component: (props: import("../../form-builder").InputFieldType<GroupProps, GroupFieldDefinititon>) => JSX.Element;
|
|
35
|
+
Component: (props: import("../../form-builder").InputFieldType<GroupProps, GroupFieldDefinititon>) => React.JSX.Element;
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Field, Form } from '../../forms';
|
|
3
3
|
interface GroupFieldDefinititon extends Field {
|
|
4
4
|
component: 'group';
|
|
@@ -36,22 +36,22 @@ interface GroupProps {
|
|
|
36
36
|
export declare const ItemClickTarget: ({ children, ...props }: {
|
|
37
37
|
[x: string]: any;
|
|
38
38
|
children: any;
|
|
39
|
-
}) => JSX.Element;
|
|
39
|
+
}) => React.JSX.Element;
|
|
40
40
|
export declare const GroupLabel: ({ error, children, }: {
|
|
41
41
|
children?: any;
|
|
42
42
|
error?: boolean;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
export declare const ItemHeader: ({ isDragging, children, provider, ...props }: any) => JSX.Element;
|
|
43
|
+
}) => React.JSX.Element;
|
|
44
|
+
export declare const ItemHeader: ({ isDragging, children, provider, ...props }: any) => React.JSX.Element;
|
|
45
45
|
export declare const ItemDeleteButton: ({ onClick, disabled }: {
|
|
46
46
|
onClick: any;
|
|
47
47
|
disabled?: boolean;
|
|
48
|
-
}) => JSX.Element;
|
|
48
|
+
}) => React.JSX.Element;
|
|
49
49
|
export declare const DragHandle: ({ isDragging }: {
|
|
50
50
|
isDragging: boolean;
|
|
51
|
-
}) => JSX.Element;
|
|
52
|
-
export declare const GroupListField: ({ tinaForm, form, field, input, meta, index }: GroupProps) => JSX.Element;
|
|
51
|
+
}) => React.JSX.Element;
|
|
52
|
+
export declare const GroupListField: ({ tinaForm, form, field, input, meta, index }: GroupProps) => React.JSX.Element;
|
|
53
53
|
export declare const GroupListFieldPlugin: {
|
|
54
54
|
name: string;
|
|
55
|
-
Component: ({ tinaForm, form, field, input, meta, index }: GroupProps) => JSX.Element;
|
|
55
|
+
Component: ({ tinaForm, form, field, input, meta, index }: GroupProps) => React.JSX.Element;
|
|
56
56
|
};
|
|
57
57
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const HiddenField: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const HiddenField: () => React.JSX.Element;
|
|
3
3
|
export declare const HiddenFieldPlugin: {
|
|
4
4
|
name: string;
|
|
5
|
-
Component: () => JSX.Element;
|
|
5
|
+
Component: () => React.JSX.Element;
|
|
6
6
|
parse: (value?: string) => string;
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { InputProps } from '../components';
|
|
3
3
|
interface ImageProps {
|
|
4
4
|
path: string;
|
|
5
5
|
uploadDir?(formValues: any): string;
|
|
6
6
|
clearable?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const ImageField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ImageProps>) => JSX.Element;
|
|
8
|
+
export declare const ImageField: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ImageProps>) => React.JSX.Element;
|
|
9
9
|
export declare const ImageFieldPlugin: {
|
|
10
10
|
name: string;
|
|
11
|
-
Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ImageProps>) => JSX.Element;
|
|
11
|
+
Component: (props: import("./wrap-field-with-meta").InputFieldType<InputProps, ImageProps>) => React.JSX.Element;
|
|
12
12
|
parse: (value?: string) => string;
|
|
13
13
|
validate(value: any, values: any, meta: any, field: any): string;
|
|
14
14
|
};
|
|
@@ -12,21 +12,21 @@ interface FieldMetaProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
12
12
|
triggerHoverEvents?: boolean;
|
|
13
13
|
tinaForm: Form;
|
|
14
14
|
}
|
|
15
|
-
export declare const ListFieldMeta: ({ name, label, description, error, margin, children, actions, index, tinaForm, triggerHoverEvents, ...props }: FieldMetaProps) => JSX.Element;
|
|
15
|
+
export declare const ListFieldMeta: ({ name, label, description, error, margin, children, actions, index, tinaForm, triggerHoverEvents, ...props }: FieldMetaProps) => React.JSX.Element;
|
|
16
16
|
export declare const ListHeader: ({ children }: {
|
|
17
17
|
children?: any;
|
|
18
|
-
}) => JSX.Element;
|
|
18
|
+
}) => React.JSX.Element;
|
|
19
19
|
export declare const ListMeta: ({ children }: {
|
|
20
20
|
children?: any;
|
|
21
|
-
}) => JSX.Element;
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
22
|
export declare const ListLabel: ({ children }: {
|
|
23
23
|
children?: any;
|
|
24
|
-
}) => JSX.Element;
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
25
|
export declare const ListPanel: ({ className, ...props }: {
|
|
26
26
|
[x: string]: any;
|
|
27
27
|
className?: string;
|
|
28
|
-
}) => JSX.Element;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
29
|
export declare const EmptyList: ({ message }: {
|
|
30
30
|
message?: string;
|
|
31
|
-
}) => JSX.Element;
|
|
31
|
+
}) => React.JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { Field, Form } from '../../forms';
|
|
3
3
|
declare type DefaultItem = string | number | (() => string | number);
|
|
4
4
|
interface ListFieldDefinititon extends Field {
|
|
@@ -35,10 +35,10 @@ interface ListProps {
|
|
|
35
35
|
tinaForm: Form;
|
|
36
36
|
index?: number;
|
|
37
37
|
}
|
|
38
|
-
export declare const ListField: ({ tinaForm, form, field, input, meta, index }: ListProps) => JSX.Element;
|
|
38
|
+
export declare const ListField: ({ tinaForm, form, field, input, meta, index }: ListProps) => React.JSX.Element;
|
|
39
39
|
export declare const ListFieldPlugin: {
|
|
40
40
|
name: string;
|
|
41
|
-
Component: ({ tinaForm, form, field, input, meta, index }: ListProps) => JSX.Element;
|
|
41
|
+
Component: ({ tinaForm, form, field, input, meta, index }: ListProps) => React.JSX.Element;
|
|
42
42
|
validate(value: any, values: any, meta: any, field: any): string;
|
|
43
43
|
};
|
|
44
44
|
export {};
|
|
@@ -9,12 +9,12 @@ export declare const MdxFieldPlugin: {
|
|
|
9
9
|
name: string;
|
|
10
10
|
Component: (props: InputFieldType<InputProps, {
|
|
11
11
|
templates: MdxTemplate[];
|
|
12
|
-
}>) => JSX.Element;
|
|
12
|
+
}>) => React.JSX.Element;
|
|
13
13
|
};
|
|
14
14
|
export declare const MdxFieldPluginExtendible: {
|
|
15
15
|
name: string;
|
|
16
16
|
validate(value: any): string;
|
|
17
17
|
Component: (props: InputFieldType<InputProps, {
|
|
18
18
|
templates: MdxTemplate[];
|
|
19
|
-
}>) => JSX.Element;
|
|
19
|
+
}>) => React.JSX.Element;
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare type EmptyTextElement = {
|
|
3
3
|
type: 'text';
|
|
4
4
|
text: '';
|
|
@@ -34,5 +34,5 @@ export declare const buildError: (element: InvalidMarkdownElement) => ErrorType;
|
|
|
34
34
|
export declare const buildErrorMessage: (element: InvalidMarkdownElement) => string;
|
|
35
35
|
export declare function ErrorMessage({ error }: {
|
|
36
36
|
error: InvalidMarkdownElement;
|
|
37
|
-
}): JSX.Element;
|
|
37
|
+
}): React.JSX.Element;
|
|
38
38
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { RichTextType } from '..';
|
|
3
|
-
export declare const RichEditor: (props: RichTextType) => JSX.Element;
|
|
3
|
+
export declare const RichEditor: (props: RichTextType) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Field } from '../../../../forms';
|
|
3
3
|
export declare const NestedForm: (props: {
|
|
4
4
|
onClose: () => void;
|
|
@@ -7,4 +7,4 @@ export declare const NestedForm: (props: {
|
|
|
7
7
|
fields: Field[];
|
|
8
8
|
initialValues: object;
|
|
9
9
|
onChange: (values: object) => void;
|
|
10
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/component.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const ImgEmbed: ({ attributes, children, element, editor, onChange, }: {
|
|
3
3
|
attributes: any;
|
|
4
4
|
children: any;
|
|
5
5
|
element: any;
|
|
6
6
|
editor: any;
|
|
7
7
|
onChange: any;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
export declare const ImageForm: (props: any) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export declare const ImageForm: (props: any) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const ELEMENT_INVALID_MARKDOWN = "invalid_markdown";
|
|
3
3
|
export declare const createInvalidMarkdownPlugin: <OP = import("@udecode/plate-headless").AnyObject, OV extends import("@udecode/plate-headless").Value = import("@udecode/plate-headless").Value, OE extends import("@udecode/plate-headless").PlateEditor<OV> = import("@udecode/plate-headless").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-headless").OverrideByKey<OV, OE>) => import("@udecode/plate-headless").PlatePlugin<import("@udecode/plate-headless").NoInfer<OP>, OV, OE>;
|
|
4
4
|
export declare function ErrorMessage({ error }: {
|
|
5
5
|
error: any;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): React.JSX.Element;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PlateEditor, createLinkPlugin } from '@udecode/plate-headless';
|
|
3
3
|
import { BaseRange } from 'slate';
|
|
4
4
|
export { createLinkPlugin };
|
|
@@ -8,7 +8,7 @@ declare type LinkElement = {
|
|
|
8
8
|
text: string | undefined;
|
|
9
9
|
};
|
|
10
10
|
export declare const wrapOrRewrapLink: (editor: any) => void;
|
|
11
|
-
export declare const LinkForm: (props: any) => JSX.Element;
|
|
11
|
+
export declare const LinkForm: (props: any) => React.JSX.Element;
|
|
12
12
|
export declare const unwrapLink: (editor: PlateEditor, selection?: BaseRange) => void;
|
|
13
13
|
export declare const getLinks: (editor: any) => Generator<import("@udecode/plate-headless").TNodeEntry<LinkElement>, void, undefined>;
|
|
14
14
|
export declare const isLinkActive: (editor: any) => boolean;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const InlineEmbed: ({ attributes, children, element, onChange, editor, }: {
|
|
3
3
|
attributes: any;
|
|
4
4
|
children: any;
|
|
5
5
|
element: any;
|
|
6
6
|
onChange: any;
|
|
7
7
|
editor: any;
|
|
8
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
9
|
export declare const BlockEmbed: ({ attributes, children, element, editor, onChange, }: {
|
|
10
10
|
attributes: any;
|
|
11
11
|
children: any;
|
|
12
12
|
element: any;
|
|
13
13
|
editor: any;
|
|
14
14
|
onChange: any;
|
|
15
|
-
}) => JSX.Element;
|
|
15
|
+
}) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const components: () => {
|
|
3
3
|
h1: ({ attributes, editor, element, className, ...props }: {
|
|
4
4
|
[x: string]: any;
|
|
@@ -6,28 +6,28 @@ export declare const components: () => {
|
|
|
6
6
|
editor: any;
|
|
7
7
|
element: any;
|
|
8
8
|
className: any;
|
|
9
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
10
|
h2: ({ attributes, editor, element, className, ...props }: {
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
attributes: any;
|
|
13
13
|
editor: any;
|
|
14
14
|
element: any;
|
|
15
15
|
className: any;
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
17
|
h3: ({ attributes, editor, element, className, ...props }: {
|
|
18
18
|
[x: string]: any;
|
|
19
19
|
attributes: any;
|
|
20
20
|
editor: any;
|
|
21
21
|
element: any;
|
|
22
22
|
className: any;
|
|
23
|
-
}) => JSX.Element;
|
|
23
|
+
}) => React.JSX.Element;
|
|
24
24
|
h4: ({ attributes, editor, element, className, ...props }: {
|
|
25
25
|
[x: string]: any;
|
|
26
26
|
attributes: any;
|
|
27
27
|
editor: any;
|
|
28
28
|
element: any;
|
|
29
29
|
className: any;
|
|
30
|
-
}) => JSX.Element;
|
|
30
|
+
}) => React.JSX.Element;
|
|
31
31
|
/** Tailwind prose doesn't style h5 and h6 elements */
|
|
32
32
|
h5: ({ attributes, editor, element, className, ...props }: {
|
|
33
33
|
[x: string]: any;
|
|
@@ -35,64 +35,64 @@ export declare const components: () => {
|
|
|
35
35
|
editor: any;
|
|
36
36
|
element: any;
|
|
37
37
|
className: any;
|
|
38
|
-
}) => JSX.Element;
|
|
38
|
+
}) => React.JSX.Element;
|
|
39
39
|
h6: ({ attributes, editor, element, className, ...props }: {
|
|
40
40
|
[x: string]: any;
|
|
41
41
|
attributes: any;
|
|
42
42
|
editor: any;
|
|
43
43
|
element: any;
|
|
44
44
|
className: any;
|
|
45
|
-
}) => JSX.Element;
|
|
45
|
+
}) => React.JSX.Element;
|
|
46
46
|
p: ({ attributes, className, editor, element, ...props }: {
|
|
47
47
|
[x: string]: any;
|
|
48
48
|
attributes: any;
|
|
49
49
|
className: any;
|
|
50
50
|
editor: any;
|
|
51
51
|
element: any;
|
|
52
|
-
}) => JSX.Element;
|
|
52
|
+
}) => React.JSX.Element;
|
|
53
53
|
blockquote: ({ className, attributes, editor, element, ...props }: {
|
|
54
54
|
[x: string]: any;
|
|
55
55
|
className: any;
|
|
56
56
|
attributes: any;
|
|
57
57
|
editor: any;
|
|
58
58
|
element: any;
|
|
59
|
-
}) => JSX.Element;
|
|
60
|
-
code_block: (props: any) => JSX.Element;
|
|
59
|
+
}) => React.JSX.Element;
|
|
60
|
+
code_block: (props: any) => React.JSX.Element;
|
|
61
61
|
html: ({ attributes, editor, element, children, className }: {
|
|
62
62
|
attributes: any;
|
|
63
63
|
editor: any;
|
|
64
64
|
element: any;
|
|
65
65
|
children: any;
|
|
66
66
|
className: any;
|
|
67
|
-
}) => JSX.Element;
|
|
67
|
+
}) => React.JSX.Element;
|
|
68
68
|
html_inline: ({ attributes, editor, element, children, className }: {
|
|
69
69
|
attributes: any;
|
|
70
70
|
editor: any;
|
|
71
71
|
element: any;
|
|
72
72
|
children: any;
|
|
73
73
|
className: any;
|
|
74
|
-
}) => JSX.Element;
|
|
74
|
+
}) => React.JSX.Element;
|
|
75
75
|
ul: ({ attributes, editor, className, element, ...props }: {
|
|
76
76
|
[x: string]: any;
|
|
77
77
|
attributes: any;
|
|
78
78
|
editor: any;
|
|
79
79
|
className: any;
|
|
80
80
|
element: any;
|
|
81
|
-
}) => JSX.Element;
|
|
81
|
+
}) => React.JSX.Element;
|
|
82
82
|
ol: ({ attributes, editor, className, element, ...props }: {
|
|
83
83
|
[x: string]: any;
|
|
84
84
|
attributes: any;
|
|
85
85
|
editor: any;
|
|
86
86
|
className: any;
|
|
87
87
|
element: any;
|
|
88
|
-
}) => JSX.Element;
|
|
88
|
+
}) => React.JSX.Element;
|
|
89
89
|
li: ({ attributes, className, editor, element, ...props }: {
|
|
90
90
|
[x: string]: any;
|
|
91
91
|
attributes: any;
|
|
92
92
|
className: any;
|
|
93
93
|
editor: any;
|
|
94
94
|
element: any;
|
|
95
|
-
}) => JSX.Element;
|
|
95
|
+
}) => React.JSX.Element;
|
|
96
96
|
/** "list item content" */
|
|
97
97
|
lic: ({ attributes, editor, element, className, ...props }: {
|
|
98
98
|
[x: string]: any;
|
|
@@ -100,7 +100,7 @@ export declare const components: () => {
|
|
|
100
100
|
editor: any;
|
|
101
101
|
element: any;
|
|
102
102
|
className: any;
|
|
103
|
-
}) => JSX.Element;
|
|
103
|
+
}) => React.JSX.Element;
|
|
104
104
|
a: ({ attributes, editor, element, nodeProps, className, ...props }: {
|
|
105
105
|
[x: string]: any;
|
|
106
106
|
attributes: any;
|
|
@@ -108,7 +108,7 @@ export declare const components: () => {
|
|
|
108
108
|
element: any;
|
|
109
109
|
nodeProps: any;
|
|
110
110
|
className: any;
|
|
111
|
-
}) => JSX.Element;
|
|
111
|
+
}) => React.JSX.Element;
|
|
112
112
|
code: ({ editor, leaf, text, attributes, className, ...props }: {
|
|
113
113
|
[x: string]: any;
|
|
114
114
|
editor: any;
|
|
@@ -116,19 +116,19 @@ export declare const components: () => {
|
|
|
116
116
|
text: any;
|
|
117
117
|
attributes: any;
|
|
118
118
|
className: any;
|
|
119
|
-
}) => JSX.Element;
|
|
119
|
+
}) => React.JSX.Element;
|
|
120
120
|
italic: ({ editor, leaf, text, ...props }: {
|
|
121
121
|
[x: string]: any;
|
|
122
122
|
editor: any;
|
|
123
123
|
leaf: any;
|
|
124
124
|
text: any;
|
|
125
|
-
}) => JSX.Element;
|
|
125
|
+
}) => React.JSX.Element;
|
|
126
126
|
bold: ({ editor, leaf, text, ...props }: {
|
|
127
127
|
[x: string]: any;
|
|
128
128
|
editor: any;
|
|
129
129
|
leaf: any;
|
|
130
130
|
text: any;
|
|
131
|
-
}) => JSX.Element;
|
|
131
|
+
}) => React.JSX.Element;
|
|
132
132
|
hr: ({ attributes, className, editor, element, children, ...props }: {
|
|
133
133
|
[x: string]: any;
|
|
134
134
|
attributes: any;
|
|
@@ -136,5 +136,5 @@ export declare const components: () => {
|
|
|
136
136
|
editor: any;
|
|
137
137
|
element: any;
|
|
138
138
|
children: any;
|
|
139
|
-
}) => JSX.Element;
|
|
139
|
+
}) => React.JSX.Element;
|
|
140
140
|
};
|