tinacms 2.1.0 → 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 +3376 -2178
- package/dist/index.mjs +3333 -2119
- 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/lib/utils.d.ts +2 -0
- 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/components/button.d.ts +11 -0
- package/dist/toolkit/fields/components/reference/components/command.d.ts +67 -0
- package/dist/toolkit/fields/components/reference/components/popover.d.ts +6 -0
- package/dist/toolkit/fields/components/reference/index.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/reference-select.d.ts +4 -4
- 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 +76 -52
- 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
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const createCodeBlockPlugin: <OP = import("@udecode/plate-
|
|
2
|
-
export declare const createHTMLBlockPlugin: <OP = import("@udecode/plate-
|
|
3
|
-
export declare const createHTMLInlinePlugin: <OP = import("@udecode/plate-
|
|
1
|
+
export declare const createCodeBlockPlugin: <OP = import("@udecode/plate-common").AnyObject, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
2
|
+
export declare const createHTMLBlockPlugin: <OP = import("@udecode/plate-common").AnyObject, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
3
|
+
export declare const createHTMLInlinePlugin: <OP = import("@udecode/plate-common").AnyObject, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Media } from '../../../../../../core/media';
|
|
2
|
+
import { type PlateEditor } from '@udecode/plate-common';
|
|
3
3
|
export declare const ELEMENT_IMG = "img";
|
|
4
|
-
|
|
4
|
+
declare const createImgPlugin: <OP = import("@udecode/plate-common").AnyObject, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends PlateEditor<OV> = PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
5
5
|
export declare const insertImg: (editor: PlateEditor, media: Media) => void;
|
|
6
|
+
export default createImgPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const ELEMENT_INVALID_MARKDOWN = "invalid_markdown";
|
|
3
|
-
export declare const createInvalidMarkdownPlugin: <OP = import("@udecode/plate-
|
|
3
|
+
export declare const createInvalidMarkdownPlugin: <OP = import("@udecode/plate-common").AnyObject, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
4
4
|
export declare function ErrorMessage({ error }: {
|
|
5
5
|
error: any;
|
|
6
6
|
}): React.JSX.Element;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { type BaseRange } from 'slate';
|
|
3
|
+
import { createLinkPlugin } from '@udecode/plate-link';
|
|
4
|
+
import { type PlateEditor } from '@udecode/plate-common';
|
|
4
5
|
export { createLinkPlugin };
|
|
5
|
-
|
|
6
|
+
type LinkElement = {
|
|
6
7
|
url?: string;
|
|
7
8
|
title?: string;
|
|
8
9
|
text: string | undefined;
|
|
@@ -10,5 +11,5 @@ declare type LinkElement = {
|
|
|
10
11
|
export declare const wrapOrRewrapLink: (editor: any) => void;
|
|
11
12
|
export declare const LinkForm: (props: any) => React.JSX.Element;
|
|
12
13
|
export declare const unwrapLink: (editor: PlateEditor, selection?: BaseRange) => void;
|
|
13
|
-
export declare const getLinks: (editor: any) => Generator<import("@udecode/plate-
|
|
14
|
+
export declare const getLinks: (editor: any) => Generator<import("@udecode/plate-common").TNodeEntry<LinkElement>, void, undefined>;
|
|
14
15
|
export declare const isLinkActive: (editor: any) => boolean;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PlateEditor } from '@udecode/plate-headless';
|
|
2
1
|
import type { MdxTemplate } from '../../types';
|
|
2
|
+
import { type PlateEditor } from '@udecode/plate-common';
|
|
3
3
|
export declare const ELEMENT_MDX_INLINE = "mdxJsxTextElement";
|
|
4
4
|
export declare const ELEMENT_MDX_BLOCK = "mdxJsxFlowElement";
|
|
5
5
|
export declare const createMdxInlinePlugin: <OP = {
|
|
6
6
|
templates: MdxTemplate[];
|
|
7
|
-
}, OV extends import("@udecode/plate-
|
|
8
|
-
export declare const createMdxBlockPlugin: <OP = import("@udecode/plate-
|
|
7
|
+
}, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends PlateEditor<OV> = PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
8
|
+
export declare const createMdxBlockPlugin: <OP = import("@udecode/plate-common").AnyObject, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends PlateEditor<OV> = PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
9
9
|
export declare const insertMDX: (editor: PlateEditor, value: MdxTemplate) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SoftBreakPlugin } from './types';
|
|
1
|
+
import type { SoftBreakPlugin } from './types';
|
|
2
2
|
export declare const KEY_SOFT_BREAK = "break";
|
|
3
3
|
/**
|
|
4
4
|
* This code is mostly copied from the plate soft-break plugin
|
|
5
5
|
* [here](https://github.com/udecode/plate/blob/3c0de39a66308a9b718cf9f35623502702ae2af4/packages/editor/break/src/soft-break/index.ts)
|
|
6
6
|
*/
|
|
7
|
-
export declare const createSoftBreakPlugin: <OP = SoftBreakPlugin, OV extends import("@udecode/plate-
|
|
7
|
+
export declare const createSoftBreakPlugin: <OP = SoftBreakPlugin, OV extends import("@udecode/plate-common").Value = import("@udecode/plate-common").Value, OE extends import("@udecode/plate-common").PlateEditor<OV> = import("@udecode/plate-common").PlateEditor<OV>>(override?: Partial<import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>>, overrideByKey?: import("@udecode/plate-common").OverrideByKey<OV, OE>) => import("@udecode/plate-common").PlatePlugin<import("@udecode/plate-common").NoInfer<OP>, OV, OE>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PlateEditor, TElement } from '@udecode/plate-
|
|
2
|
+
import { type PlateEditor, type TElement } from '@udecode/plate-common';
|
|
3
3
|
export declare const CodeBlock: ({ attributes, editor, element, language: restrictLanguage, ...props }: {
|
|
4
4
|
attributes: Record<string, unknown>;
|
|
5
5
|
element: TElement;
|
|
@@ -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 {};
|