tinacms 0.0.0-a6e7bb7-20250702023440 → 0.0.0-a736baf-20251126000514
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 +3 -0
- package/dist/auth/AuthModal.d.ts +1 -4
- package/dist/auth/TinaCloudProvider.d.ts +0 -1
- package/dist/client.js +2 -2
- package/dist/client.mjs +2 -2
- package/dist/index.js +102858 -15446
- package/dist/index.mjs +102742 -15328
- package/dist/internalClient/index.d.ts +19 -0
- package/dist/react.js +4 -2
- package/dist/react.mjs +4 -2
- package/dist/rich-text/index.d.ts +6 -0
- package/dist/rich-text/index.js +18 -5
- package/dist/rich-text/index.mjs +18 -5
- package/dist/rich-text/static.d.ts +6 -0
- package/dist/rich-text/static.js +8 -1
- package/dist/rich-text/static.mjs +8 -1
- package/dist/tina-cms.d.ts +1 -1
- package/dist/toolkit/components/ProgressBar.d.ts +11 -0
- package/dist/toolkit/components/media/media-item.d.ts +10 -0
- package/dist/toolkit/fields/components/reference/components/button.d.ts +1 -1
- package/dist/toolkit/fields/components/reference/components/command.d.ts +21 -33
- package/dist/toolkit/fields/components/select.d.ts +1 -1
- package/dist/toolkit/fields/plugins/dnd-kit-wrapper.d.ts +49 -0
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +3 -1
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/editor.d.ts +20 -18
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/blockquote-element.d.ts +14 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/button.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/code-block-element.d.ts +17 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block/error-message.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-combobox.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-leaf.d.ts +2 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-line-element.d.ts +14 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-syntax-leaf.d.ts +2 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/command.d.ts +112 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dialog.d.ts +12 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/dropdown-menu.d.ts +10 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/floating-toolbar.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-element.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/hr-toolbar-button.d.ts +18 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/icons.d.ts +2 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/image-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/indent-list-toolbar-button.d.ts +6 -19
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/inline-combobox.d.ts +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/input.d.ts +3 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-element.d.ts +4 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-floating-toolbar.d.ts +4 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/link-toolbar-button.d.ts +4 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/list-element.d.ts +28 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-element.d.ts +3 -10
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/mermaid-toolbar-button.d.ts +6 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/paragraph-element.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/popover.d.ts +7 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/quote-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/raw-markdown-toolbar-button.d.ts +6 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/resizable.d.ts +24 -21
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/separator.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/slash-input-element.d.ts +15 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/block-selection.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-cell-element.d.ts +33 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/{table-dropdown-menu.d.ts → table/table-dropdown-menu.d.ts} +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-element.d.ts +20 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table/table-row-element.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/toolbar.d.ts +7 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-hook.d.ts +10 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/use-floating-toolbar-state.d.ts +22 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-create-editor.d.ts +6 -0
- 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-utils.d.ts +3 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +18 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +0 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-html-block/index.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +2 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +5 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +7 -4
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +3 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/editor-plugins.d.ts +520 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +262 -207
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/toolbar/toolbar-overrides.d.ts +1 -1
- package/dist/toolkit/form-builder/create-branch-modal.d.ts +13 -0
- package/dist/toolkit/form-builder/editorial-workflow-constants.d.ts +17 -0
- package/dist/toolkit/form-builder/form-builder.d.ts +0 -11
- package/dist/toolkit/form-builder/index.d.ts +1 -0
- package/dist/toolkit/icons/TinaExtended.d.ts +4 -0
- package/dist/toolkit/icons/index.d.ts +1 -0
- package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +3 -1
- package/dist/toolkit/react-modals/modal/modal-actions.d.ts +2 -1
- package/dist/toolkit/react-modals/modal/modal-header.d.ts +1 -1
- package/dist/toolkit/react-sidebar/components/badge.d.ts +6 -0
- package/dist/toolkit/react-sidebar/components/callout.d.ts +5 -0
- package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -1
- package/dist/toolkit/react-sidebar/components/nav.d.ts +2 -1
- package/dist/toolkit/styles/button.d.ts +1 -1
- package/dist/toolkit/styles/dropdown-button.d.ts +75 -0
- package/dist/toolkit/styles/index.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +33 -31
- package/dist/admin/pages/IndexingPage.d.ts +0 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/code-block-element.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-cell-element.d.ts +0 -27
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts +0 -14
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-row-element.d.ts +0 -13
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +0 -8
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +0 -3
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +0 -15
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts +0 -2
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +0 -7
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +0 -6
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +0 -5
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +0 -11
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +0 -2
- package/dist/toolkit/react-sidebar/components/alert.d.ts +0 -5
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/floating-toolbar-plugin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FloatingToolbarPlugin: import("@udecode/plate/react").PlatePlugin<import("@udecode/plate").PluginConfig<"floating-toolbar", {}, {}, {}, {}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'strikethrough' | 'italic' | 'mermaid' | 'raw' | 'embed' | 'table';
|
|
1
|
+
export type ToolbarOverrideType = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'strikethrough' | 'italic' | 'mermaid' | 'raw' | 'embed' | 'table' | 'hr';
|
|
2
2
|
export declare const STANDARD_ICON_WIDTH = 32;
|
|
3
3
|
export declare const HEADING_ICON_WITH_TEXT = 127;
|
|
4
4
|
export declare const HEADING_ICON_ONLY = 58;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const CreateBranchModal: ({ close, safeSubmit, path, values, crudType, }: {
|
|
3
|
+
safeSubmit: () => Promise<void>;
|
|
4
|
+
close: () => void;
|
|
5
|
+
path: string;
|
|
6
|
+
values: Record<string, unknown>;
|
|
7
|
+
crudType: string;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export declare const PrefixedTextField: ({ label, prefix, ...props }: {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
label?: any;
|
|
12
|
+
prefix?: string;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editorial Workflow Status Constants
|
|
3
|
+
* These match the server-side constants in tinacloud/js/content-api/src/editorial-workflow.ts
|
|
4
|
+
*/
|
|
5
|
+
export declare const EDITORIAL_WORKFLOW_STATUS: {
|
|
6
|
+
readonly QUEUED: "queued";
|
|
7
|
+
readonly PROCESSING: "processing";
|
|
8
|
+
readonly SETTING_UP: "setting_up";
|
|
9
|
+
readonly CREATING_BRANCH: "creating_branch";
|
|
10
|
+
readonly INDEXING: "indexing";
|
|
11
|
+
readonly CONTENT_GENERATION: "content_generation";
|
|
12
|
+
readonly CREATING_PR: "creating_pr";
|
|
13
|
+
readonly COMPLETE: "complete";
|
|
14
|
+
readonly ERROR: "error";
|
|
15
|
+
readonly TIMEOUT: "timeout";
|
|
16
|
+
};
|
|
17
|
+
export type EditorialWorkflowStatus = (typeof EDITORIAL_WORKFLOW_STATUS)[keyof typeof EDITORIAL_WORKFLOW_STATUS];
|
|
@@ -29,14 +29,3 @@ export declare const CreateBranchModel: ({ close, safeSubmit, relativePath, valu
|
|
|
29
29
|
values: Record<string, unknown>;
|
|
30
30
|
crudType: string;
|
|
31
31
|
}) => React.JSX.Element;
|
|
32
|
-
export declare const CreateBranchModal: ({ close, safeSubmit, path, values, crudType, }: {
|
|
33
|
-
safeSubmit: () => Promise<void>;
|
|
34
|
-
close: () => void;
|
|
35
|
-
path: string;
|
|
36
|
-
values: Record<string, unknown>;
|
|
37
|
-
crudType: string;
|
|
38
|
-
}) => React.JSX.Element;
|
|
39
|
-
export declare const PrefixedTextField: ({ prefix, ...props }: {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
prefix?: string;
|
|
42
|
-
}) => React.JSX.Element;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const BranchButton: (
|
|
2
|
+
export declare const BranchButton: ({ className }: {
|
|
3
|
+
className?: string;
|
|
4
|
+
}) => React.JSX.Element;
|
|
3
5
|
export declare const BranchPreviewButton: (props: React.ButtonHTMLAttributes<HTMLButtonElement>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface ModalHeaderProps {
|
|
3
|
-
children: React.
|
|
3
|
+
children: React.ReactNode;
|
|
4
4
|
close?(): void;
|
|
5
5
|
}
|
|
6
6
|
export declare const ModalHeader: ({ children, close }: ModalHeaderProps) => React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Badge: ({ children, calloutStyle, className, displayIcon, ...props }: {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
calloutStyle?: "warning" | "info" | "success" | "error";
|
|
5
|
+
displayIcon?: boolean;
|
|
6
|
+
} & React.HTMLProps<HTMLDivElement>) => React.JSX.Element;
|
|
@@ -9,6 +9,7 @@ interface NavCollection {
|
|
|
9
9
|
interface NavProps {
|
|
10
10
|
isLocalMode: boolean;
|
|
11
11
|
showHamburger?: boolean;
|
|
12
|
+
menuIsOpen: boolean;
|
|
12
13
|
toggleMenu: () => void;
|
|
13
14
|
children?: any;
|
|
14
15
|
className?: string;
|
|
@@ -40,5 +41,5 @@ interface NavProps {
|
|
|
40
41
|
};
|
|
41
42
|
}>;
|
|
42
43
|
}
|
|
43
|
-
export declare const Nav: ({ isLocalMode, showHamburger, toggleMenu, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
|
|
44
|
+
export declare const Nav: ({ isLocalMode, showHamburger, menuIsOpen, toggleMenu, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
|
|
44
45
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
-
variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'custom';
|
|
3
|
+
variant?: 'primary' | 'secondary' | 'white' | 'ghost' | 'danger' | 'accent' | 'custom';
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
href?: string;
|
|
6
6
|
target?: string;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonProps } from './button';
|
|
3
|
+
export interface DropdownButtonItem {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
variant?: 'default' | 'destructive';
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface DropdownButtonProps extends Omit<ButtonProps, 'onClick'> {
|
|
11
|
+
/**
|
|
12
|
+
* The main action to perform when the button is clicked
|
|
13
|
+
*/
|
|
14
|
+
onMainAction?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Array of dropdown menu items
|
|
17
|
+
*/
|
|
18
|
+
items: DropdownButtonItem[];
|
|
19
|
+
/**
|
|
20
|
+
* Whether to show the dropdown arrow in a split button style
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
showSplitButton?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Alignment of the dropdown menu
|
|
26
|
+
* @default 'end'
|
|
27
|
+
*/
|
|
28
|
+
align?: 'start' | 'center' | 'end';
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A button component that combines a primary action with a dropdown menu of additional options.
|
|
32
|
+
*
|
|
33
|
+
* This component follows the split-button pattern found in TinaCMS, where the main button
|
|
34
|
+
* performs a primary action and a small arrow button opens a dropdown menu with additional options.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* // Basic usage with split button
|
|
38
|
+
* <DropdownButton
|
|
39
|
+
* variant="primary"
|
|
40
|
+
* onMainAction={() => console.log('Save to new branch')}
|
|
41
|
+
* items={[
|
|
42
|
+
* { label: 'Save to protected branch', onClick: () => console.log('Protected') },
|
|
43
|
+
* { label: 'Save and publish', onClick: () => console.log('Publish') },
|
|
44
|
+
* ]}
|
|
45
|
+
* >
|
|
46
|
+
* Save to new branch
|
|
47
|
+
* </DropdownButton>
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Dropdown-only button (no main action)
|
|
51
|
+
* <DropdownButton
|
|
52
|
+
* variant="secondary"
|
|
53
|
+
* showSplitButton={false}
|
|
54
|
+
* items={[
|
|
55
|
+
* { label: 'Save to new branch', onClick: () => console.log('New branch') },
|
|
56
|
+
* { label: 'Save to protected branch', onClick: () => console.log('Protected') },
|
|
57
|
+
* ]}
|
|
58
|
+
* >
|
|
59
|
+
* Save options
|
|
60
|
+
* </DropdownButton>
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* // With icons and destructive action
|
|
64
|
+
* <DropdownButton
|
|
65
|
+
* variant="primary"
|
|
66
|
+
* onMainAction={() => console.log('Save')}
|
|
67
|
+
* items={[
|
|
68
|
+
* { label: 'Duplicate', onClick: () => console.log('Duplicate'), icon: <CopyIcon /> },
|
|
69
|
+
* { label: 'Delete', onClick: () => console.log('Delete'), variant: 'destructive', icon: <TrashIcon /> },
|
|
70
|
+
* ]}
|
|
71
|
+
* >
|
|
72
|
+
* Save
|
|
73
|
+
* </DropdownButton>
|
|
74
|
+
*/
|
|
75
|
+
export declare const DropdownButton: React.ForwardRefExoticComponent<DropdownButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export interface CreateClientProps {
|
|
|
20
20
|
export declare const createClient: ({ clientId, isLocalClient, branch, tinaioConfig, schema, apiUrl, tinaGraphQLVersion, }: CreateClientProps) => Client;
|
|
21
21
|
export declare function assertShape<T>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema, errorMessage?: string): asserts value is T;
|
|
22
22
|
export declare function safeAssertShape<T>(value: unknown, yupSchema: (args: typeof yup) => yup.AnySchema): boolean;
|
|
23
|
+
export declare const get: (obj: any, path: any, defaultValue?: any) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-a736baf-20251126000514",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
"license": "Apache-2.0",
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@ariakit/react": "^0.4.15",
|
|
70
|
+
"@dnd-kit/core": "^6.1.0",
|
|
71
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
72
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
70
73
|
"@floating-ui/dom": "^1.6.13",
|
|
71
74
|
"@floating-ui/react-dom": "^2.1.2",
|
|
72
75
|
"@graphql-inspector/core": "^6.2.1",
|
|
@@ -82,22 +85,30 @@
|
|
|
82
85
|
"@radix-ui/react-toolbar": "^1.1.2",
|
|
83
86
|
"@radix-ui/react-tooltip": "^1.2.6",
|
|
84
87
|
"@react-hook/window-size": "^3.1.1",
|
|
85
|
-
"@udecode/
|
|
86
|
-
"@udecode/
|
|
87
|
-
"@udecode/plate
|
|
88
|
-
"@udecode/plate-
|
|
89
|
-
"@udecode/plate-
|
|
90
|
-
"@udecode/plate-
|
|
91
|
-
"@udecode/plate-
|
|
92
|
-
"@udecode/plate-
|
|
93
|
-
"@udecode/plate-
|
|
94
|
-
"@udecode/plate-
|
|
95
|
-
"@udecode/plate-
|
|
96
|
-
"@udecode/plate-
|
|
97
|
-
"@udecode/plate-
|
|
98
|
-
"@udecode/plate-
|
|
99
|
-
"@udecode/plate-
|
|
100
|
-
"@udecode/plate-
|
|
88
|
+
"@udecode/cmdk": "^0.2.1",
|
|
89
|
+
"@udecode/cn": "^48.0.3",
|
|
90
|
+
"@udecode/plate": "^48.0.3",
|
|
91
|
+
"@udecode/plate-autoformat": "^48.0.0",
|
|
92
|
+
"@udecode/plate-basic-marks": "^48.0.0",
|
|
93
|
+
"@udecode/plate-block-quote": "^48",
|
|
94
|
+
"@udecode/plate-break": "^48",
|
|
95
|
+
"@udecode/plate-code-block": "^48.0.0",
|
|
96
|
+
"@udecode/plate-combobox": "^48",
|
|
97
|
+
"@udecode/plate-dnd": "^48.0.0",
|
|
98
|
+
"@udecode/plate-floating": "^48.0.0",
|
|
99
|
+
"@udecode/plate-heading": "^48",
|
|
100
|
+
"@udecode/plate-horizontal-rule": "^48",
|
|
101
|
+
"@udecode/plate-indent-list": "^48.0.0",
|
|
102
|
+
"@udecode/plate-link": "^48.0.0",
|
|
103
|
+
"@udecode/plate-list": "^48.0.0",
|
|
104
|
+
"@udecode/plate-node-id": "^48.0.0",
|
|
105
|
+
"@udecode/plate-reset-node": "^48",
|
|
106
|
+
"@udecode/plate-resizable": "^48",
|
|
107
|
+
"@udecode/plate-selection": "^48.0.0",
|
|
108
|
+
"@udecode/plate-slash-command": "^48.0.0",
|
|
109
|
+
"@udecode/plate-table": "^48.0.0",
|
|
110
|
+
"@udecode/plate-trailing-block": "^48.0.0",
|
|
111
|
+
"add": "^2.0.6",
|
|
101
112
|
"async-lock": "^1.4.1",
|
|
102
113
|
"class-variance-authority": "^0.7.1",
|
|
103
114
|
"clsx": "^2.1.1",
|
|
@@ -105,21 +116,19 @@
|
|
|
105
116
|
"color-string": "^1.9.1",
|
|
106
117
|
"crypto-js": "^4.2.0",
|
|
107
118
|
"date-fns": "2.30.0",
|
|
119
|
+
"es-toolkit": "^1.42.0",
|
|
108
120
|
"final-form": "4.20.10",
|
|
109
121
|
"final-form-arrays": "^3.1.0",
|
|
110
122
|
"final-form-set-field-data": "^1.0.2",
|
|
111
123
|
"graphql": "15.8.0",
|
|
112
124
|
"graphql-tag": "^2.12.6",
|
|
113
125
|
"is-hotkey": "^0.2.0",
|
|
114
|
-
"lodash.get": "^4.4.2",
|
|
115
|
-
"lodash.set": "^4.3.2",
|
|
116
126
|
"lucide-react": "^0.424.0",
|
|
117
127
|
"mermaid": "9.3.0",
|
|
118
128
|
"moment": "2.29.4",
|
|
119
129
|
"monaco-editor": "0.31.0",
|
|
120
130
|
"prism-react-renderer": "^2.4.1",
|
|
121
131
|
"prop-types": "15.7.2",
|
|
122
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
123
132
|
"react-color": "^2.19.3",
|
|
124
133
|
"react-datetime": "^3.3.1",
|
|
125
134
|
"react-dropzone": "14.2.3",
|
|
@@ -127,17 +136,13 @@
|
|
|
127
136
|
"react-icons": "^5.4.0",
|
|
128
137
|
"react-router-dom": "6.3.0",
|
|
129
138
|
"react-use": "^17.6.0",
|
|
130
|
-
"slate": "^0.103.0",
|
|
131
|
-
"slate-history": "^0.100.0",
|
|
132
|
-
"slate-hyperscript": "^0.100.0",
|
|
133
|
-
"slate-react": "^0.107.1",
|
|
134
139
|
"tailwind-merge": "^2.6.0",
|
|
135
140
|
"webfontloader": "1.6.28",
|
|
136
141
|
"yup": "^1.6.1",
|
|
137
142
|
"zod": "^3.24.2",
|
|
138
|
-
"@tinacms/
|
|
139
|
-
"@tinacms/
|
|
140
|
-
"@tinacms/
|
|
143
|
+
"@tinacms/mdx": "0.0.0-a736baf-20251126000514",
|
|
144
|
+
"@tinacms/schema-tools": "0.0.0-a736baf-20251126000514",
|
|
145
|
+
"@tinacms/search": "0.0.0-a736baf-20251126000514"
|
|
141
146
|
},
|
|
142
147
|
"devDependencies": {
|
|
143
148
|
"@graphql-tools/utils": "^10.8.1",
|
|
@@ -148,12 +153,9 @@
|
|
|
148
153
|
"@types/atob": "^2.1.4",
|
|
149
154
|
"@types/codemirror": "^5.60.15",
|
|
150
155
|
"@types/color-string": "^1.5.5",
|
|
151
|
-
"@types/lodash.debounce": "^4.0.9",
|
|
152
|
-
"@types/lodash.get": "^4.4.9",
|
|
153
156
|
"@types/node": "^22.13.1",
|
|
154
157
|
"@types/prop-types": "^15.7.14",
|
|
155
158
|
"@types/react": "^18.3.18",
|
|
156
|
-
"@types/react-beautiful-dnd": "^13.1.8",
|
|
157
159
|
"@types/react-color": "^3.0.13",
|
|
158
160
|
"@types/react-dom": "^18.3.5",
|
|
159
161
|
"@types/yup": "^0.32.0",
|
|
@@ -171,7 +173,7 @@
|
|
|
171
173
|
"typescript": "^5.7.3",
|
|
172
174
|
"vite": "^5.4.14",
|
|
173
175
|
"vitest": "^2.1.9",
|
|
174
|
-
"@tinacms/scripts": "1.
|
|
176
|
+
"@tinacms/scripts": "1.4.1"
|
|
175
177
|
},
|
|
176
178
|
"peerDependencies": {
|
|
177
179
|
"react": ">=16.14.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const CodeBlockElement: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
3
|
-
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
4
|
-
} & Omit<{
|
|
5
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
6
|
-
asChild?: boolean | undefined;
|
|
7
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
8
|
-
ref?: React.Ref<any>;
|
|
9
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
10
|
-
element: import("@udecode/plate-common").TElement;
|
|
11
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const TableCellElement: React.ForwardRefExoticComponent<{
|
|
3
|
-
hideBorder?: boolean;
|
|
4
|
-
isHeader?: boolean;
|
|
5
|
-
} & Omit<Omit<{
|
|
6
|
-
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
7
|
-
} & Omit<{
|
|
8
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
9
|
-
asChild?: boolean | undefined;
|
|
10
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
11
|
-
ref?: React.Ref<any>;
|
|
12
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
13
|
-
element: import("@udecode/plate-common").TElement;
|
|
14
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder" | "isHeader"> & React.RefAttributes<any>>;
|
|
15
|
-
export declare const TableCellHeaderElement: React.ForwardRefExoticComponent<Omit<{
|
|
16
|
-
hideBorder?: boolean;
|
|
17
|
-
isHeader?: boolean;
|
|
18
|
-
} & Omit<Omit<{
|
|
19
|
-
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
20
|
-
} & Omit<{
|
|
21
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
22
|
-
asChild?: boolean | undefined;
|
|
23
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
24
|
-
ref?: React.Ref<any>;
|
|
25
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
26
|
-
element: import("@udecode/plate-common").TElement;
|
|
27
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder" | "isHeader"> & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/components/plate-ui/table-element.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
|
-
export declare const TableBordersDropdownMenuContent: React.ForwardRefExoticComponent<Omit<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export declare const TableFloatingToolbar: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("@radix-ui/react-popover").PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export declare const TableElement: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
|
|
6
|
-
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
7
|
-
} & Omit<{
|
|
8
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
9
|
-
asChild?: boolean | undefined;
|
|
10
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
11
|
-
ref?: React.Ref<any>;
|
|
12
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
13
|
-
element: import("@udecode/plate-common").TElement;
|
|
14
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, never> & React.RefAttributes<any>, "ref"> & React.RefAttributes<unknown>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const TableRowElement: React.ForwardRefExoticComponent<{
|
|
3
|
-
hideBorder?: boolean;
|
|
4
|
-
} & Omit<Omit<{
|
|
5
|
-
elementToAttributes?: (element: import("@udecode/plate-common").TElement) => any;
|
|
6
|
-
} & Omit<{
|
|
7
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
8
|
-
asChild?: boolean | undefined;
|
|
9
|
-
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<any>, "ref"> & {
|
|
10
|
-
ref?: React.Ref<any>;
|
|
11
|
-
} & import("@udecode/plate-common").PlateRenderNodeProps<import("@udecode/plate-common").Value, import("@udecode/plate-common").PlateEditor<import("@udecode/plate-common").Value>> & {
|
|
12
|
-
element: import("@udecode/plate-common").TElement;
|
|
13
|
-
} & Omit<import("slate-react").RenderElementProps, "element"> & React.RefAttributes<HTMLDivElement>, "ref">, "hideBorder"> & React.RefAttributes<any>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* This fixes a bug where you can't delete between two void nodes
|
|
4
|
-
* without deleting the first node.
|
|
5
|
-
*
|
|
6
|
-
* https://github.com/ianstormtaylor/slate/issues/3991#issuecomment-832160304
|
|
7
|
-
*/
|
|
8
|
-
export declare const withCorrectVoidBehavior: (editor: any) => any;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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-link-plugin/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type BaseRange } from 'slate';
|
|
3
|
-
import { createLinkPlugin } from '@udecode/plate-link';
|
|
4
|
-
import { type PlateEditor } from '@udecode/plate-common';
|
|
5
|
-
export { createLinkPlugin };
|
|
6
|
-
type LinkElement = {
|
|
7
|
-
url?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
text: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export declare const wrapOrRewrapLink: (editor: any) => void;
|
|
12
|
-
export declare const LinkForm: (props: any) => React.JSX.Element;
|
|
13
|
-
export declare const unwrapLink: (editor: PlateEditor, selection?: BaseRange) => void;
|
|
14
|
-
export declare const getLinks: (editor: any) => Generator<import("@udecode/plate-common").TNodeEntry<LinkElement>, void, undefined>;
|
|
15
|
-
export declare const isLinkActive: (editor: any) => boolean;
|
package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/custom/mermaid-plugin.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const ELEMENT_MERMAID = "mermaid";
|
|
2
|
-
export declare const createMermaidPlugin: <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>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SoftBreakPlugin } from './types';
|
|
2
|
-
export declare const KEY_SOFT_BREAK = "break";
|
|
3
|
-
/**
|
|
4
|
-
* This code is mostly copied from the plate soft-break plugin
|
|
5
|
-
* [here](https://github.com/udecode/plate/blob/3c0de39a66308a9b718cf9f35623502702ae2af4/packages/editor/break/src/soft-break/index.ts)
|
|
6
|
-
*/
|
|
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,11 +0,0 @@
|
|
|
1
|
-
import type { QueryNodeOptions } from '@udecode/plate-common';
|
|
2
|
-
export interface SoftBreakRule {
|
|
3
|
-
hotkey: string;
|
|
4
|
-
/**
|
|
5
|
-
* Filter the block types where the rule applies.
|
|
6
|
-
*/
|
|
7
|
-
query?: QueryNodeOptions;
|
|
8
|
-
}
|
|
9
|
-
export interface SoftBreakPlugin {
|
|
10
|
-
rules?: SoftBreakRule[];
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type PlateEditor, type TElement } from '@udecode/plate-common';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const CodeBlock: ({ attributes, editor, element, language: restrictLanguage, onChangeCallback, defaultValue, ...props }: {
|
|
4
|
-
attributes: Record<string, unknown>;
|
|
5
|
-
element: TElement;
|
|
6
|
-
editor: PlateEditor;
|
|
7
|
-
language?: string;
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
defaultValue?: unknown;
|
|
10
|
-
onChangeCallback?: (value: string) => void;
|
|
11
|
-
}) => React.JSX.Element;
|