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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { TinaState } from '../../tina-state';
|
|
3
3
|
declare type FormListItem = TinaState['formLists'][number]['items'][number];
|
|
4
4
|
export interface FormsListProps {
|
|
@@ -13,13 +13,13 @@ declare const FormListItem: ({ item, depth, setActiveFormId, }: {
|
|
|
13
13
|
}>;
|
|
14
14
|
depth: number;
|
|
15
15
|
setActiveFormId: (id: string) => void;
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
17
|
export declare const FormLists: (props: {
|
|
18
18
|
isEditing: boolean;
|
|
19
|
-
}) => JSX.Element;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
20
|
export declare const FormList: (props: {
|
|
21
21
|
isEditing: boolean;
|
|
22
22
|
setActiveFormId: (id: string) => void;
|
|
23
23
|
formList: TinaState['formLists'][number];
|
|
24
|
-
}) => JSX.Element;
|
|
24
|
+
}) => React.JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const LocalWarning: () => JSX.Element;
|
|
3
|
-
export declare const BillingWarning: () => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const LocalWarning: () => React.JSX.Element;
|
|
3
|
+
export declare const BillingWarning: () => React.JSX.Element;
|
|
@@ -38,5 +38,5 @@ interface NavProps {
|
|
|
38
38
|
};
|
|
39
39
|
}>;
|
|
40
40
|
}
|
|
41
|
-
export declare const Nav: ({ isLocalMode, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => JSX.Element;
|
|
41
|
+
export declare const Nav: ({ isLocalMode, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
|
|
42
42
|
export {};
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
export declare const PendingFormsPlaceholder: () => JSX.Element;
|
|
8
|
-
export declare const NoFormsPlaceholder: () => JSX.Element;
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
export declare const PendingFormsPlaceholder: () => React.JSX.Element;
|
|
8
|
+
export declare const NoFormsPlaceholder: () => React.JSX.Element;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Form } from '../../forms';
|
|
2
|
+
import type { Form } from '../../forms';
|
|
3
3
|
export declare const FormsView: ({ children, }: {
|
|
4
4
|
children?: React.ReactChild | React.ReactChild[];
|
|
5
|
-
}) => JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
6
|
export interface MultiformFormHeaderProps {
|
|
7
7
|
activeForm: {
|
|
8
8
|
activeFieldName?: string;
|
|
9
9
|
tinaForm: Form;
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
export declare const MultiformFormHeader: ({ activeForm, }: MultiformFormHeaderProps) => JSX.Element;
|
|
12
|
+
export declare const MultiformFormHeader: ({ activeForm, }: MultiformFormHeaderProps) => React.JSX.Element;
|
|
13
13
|
export interface FormHeaderProps {
|
|
14
14
|
activeForm: {
|
|
15
15
|
activeFieldName?: string;
|
|
16
16
|
tinaForm: Form;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export declare const FormHeader: ({ activeForm }: FormHeaderProps) => JSX.Element;
|
|
19
|
+
export declare const FormHeader: ({ activeForm }: FormHeaderProps) => React.JSX.Element;
|
|
@@ -17,7 +17,7 @@ export interface SidebarProviderProps {
|
|
|
17
17
|
position?: SidebarStateOptions['position'];
|
|
18
18
|
defaultState?: SidebarStateOptions['defaultState'];
|
|
19
19
|
}
|
|
20
|
-
export declare function SidebarProvider({ position, resizingSidebar, setResizingSidebar, defaultWidth, sidebar, }: SidebarProviderProps): JSX.Element;
|
|
20
|
+
export declare function SidebarProvider({ position, resizingSidebar, setResizingSidebar, defaultWidth, sidebar, }: SidebarProviderProps): React.JSX.Element;
|
|
21
21
|
export declare const updateBodyDisplacement: ({ position, displayState, sidebarWidth, resizingSidebar, }: {
|
|
22
22
|
position?: string;
|
|
23
23
|
displayState: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { TinaCMS } from '../../tina-cms';
|
|
3
3
|
export declare const useGetEvents: (cms: TinaCMS, cursor?: string, existingEvents?: {
|
|
4
4
|
message: string;
|
|
@@ -20,12 +20,12 @@ export declare const useGetEvents: (cms: TinaCMS, cursor?: string, existingEvent
|
|
|
20
20
|
};
|
|
21
21
|
export declare const SyncErrorWidget: ({ cms }: {
|
|
22
22
|
cms: any;
|
|
23
|
-
}) => JSX.Element;
|
|
23
|
+
}) => React.JSX.Element;
|
|
24
24
|
export declare const SyncStatusModal: ({ closeEventsModal, cms }: {
|
|
25
25
|
closeEventsModal: any;
|
|
26
26
|
cms: any;
|
|
27
|
-
}) => JSX.Element;
|
|
27
|
+
}) => React.JSX.Element;
|
|
28
28
|
export declare const SyncStatus: ({ cms, setEventsOpen }: {
|
|
29
29
|
cms: any;
|
|
30
30
|
setEventsOpen: any;
|
|
31
|
-
}) => JSX.Element;
|
|
31
|
+
}) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { TinaCMSConfig } from '../tina-cms';
|
|
3
|
-
export declare function withTina(Component: any, config?: TinaCMSConfig): (props: any) => JSX.Element;
|
|
3
|
+
export declare function withTina(Component: any, config?: TinaCMSConfig): (props: any) => React.JSX.Element;
|
|
@@ -11,5 +11,5 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
11
11
|
className?: string;
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export declare const Button: ({ variant, as: Tag, size, busy, disabled, rounded, children, className, ...props }: ButtonProps) => JSX.Element;
|
|
15
|
-
export declare const IconButton: ({ variant, size, busy, disabled, children, className, ...props }: ButtonProps) => JSX.Element;
|
|
14
|
+
export declare const Button: ({ variant, as: Tag, size, busy, disabled, rounded, children, className, ...props }: ButtonProps) => React.JSX.Element;
|
|
15
|
+
export declare const IconButton: ({ variant, size, busy, disabled, children, className, ...props }: ButtonProps) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface ContainerPropse {
|
|
3
3
|
size?: 'medium' | 'large';
|
|
4
4
|
children?: any;
|
|
5
5
|
}
|
|
6
|
-
export declare const Container: ({ children, size, ...props }: ContainerPropse) => JSX.Element;
|
|
6
|
+
export declare const Container: ({ children, size, ...props }: ContainerPropse) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare function classNames(...classes: string[]): string;
|
|
3
3
|
export declare const OverflowMenu: ({ toolbarItems, className }: {
|
|
4
4
|
toolbarItems: any;
|
|
5
5
|
className?: string;
|
|
6
|
-
}) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
package/dist/types/cms.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -29,11 +29,6 @@
|
|
|
29
29
|
"import": "./dist/rich-text/index.mjs",
|
|
30
30
|
"require": "./dist/rich-text/index.js"
|
|
31
31
|
},
|
|
32
|
-
"./dist/dev-tools": {
|
|
33
|
-
"types": "./dist/dev-tools.d.ts",
|
|
34
|
-
"import": "./dist/dev-tools.mjs",
|
|
35
|
-
"require": "./dist/dev-tools.js"
|
|
36
|
-
},
|
|
37
32
|
"./dist/rich-text/prism": {
|
|
38
33
|
"types": "./dist/rich-text/prism.d.ts",
|
|
39
34
|
"import": "./dist/rich-text/prism.mjs",
|
|
@@ -46,12 +41,10 @@
|
|
|
46
41
|
"buildConfig": {
|
|
47
42
|
"entryPoints": [
|
|
48
43
|
"src/index.ts",
|
|
49
|
-
"src/edit-state.tsx",
|
|
50
44
|
"src/rich-text/index.tsx",
|
|
51
45
|
"src/rich-text/prism.tsx",
|
|
52
46
|
"src/react.tsx",
|
|
53
|
-
"src/client.ts"
|
|
54
|
-
"src/dev-tools.tsx"
|
|
47
|
+
"src/client.ts"
|
|
55
48
|
]
|
|
56
49
|
},
|
|
57
50
|
"typings": "dist/index.d.ts",
|
|
@@ -76,8 +69,8 @@
|
|
|
76
69
|
"graphql": "15.8.0",
|
|
77
70
|
"graphql-tag": "^2.11.0",
|
|
78
71
|
"is-hotkey": "^0.2.0",
|
|
72
|
+
"lodash": "^4.17.20",
|
|
79
73
|
"lodash.get": "^4.4.2",
|
|
80
|
-
"lodash.set": "^4.3.2",
|
|
81
74
|
"moment": "2.29.4",
|
|
82
75
|
"monaco-editor": "0.31.0",
|
|
83
76
|
"prism-react-renderer": "^2.3.1",
|
|
@@ -97,18 +90,16 @@
|
|
|
97
90
|
"webfontloader": "1.6.28",
|
|
98
91
|
"yup": "^0.32.0",
|
|
99
92
|
"zod": "^3.14.3",
|
|
100
|
-
"@tinacms/mdx": "1.3.
|
|
101
|
-
"@tinacms/schema-tools": "1.4.
|
|
102
|
-
"@tinacms/search": "1.0.
|
|
103
|
-
"@tinacms/sharedctx": "1.0.3"
|
|
93
|
+
"@tinacms/mdx": "1.3.28",
|
|
94
|
+
"@tinacms/schema-tools": "1.4.19",
|
|
95
|
+
"@tinacms/search": "1.0.23"
|
|
104
96
|
},
|
|
105
97
|
"devDependencies": {
|
|
106
98
|
"@graphql-tools/utils": "^8.6.1",
|
|
107
|
-
"@testing-library/dom": "^
|
|
108
|
-
"@testing-library/jest-dom": "^
|
|
109
|
-
"@testing-library/react": "^
|
|
110
|
-
"@testing-library/
|
|
111
|
-
"@testing-library/user-event": "^12.7.0",
|
|
99
|
+
"@testing-library/dom": "^10.3.1",
|
|
100
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
101
|
+
"@testing-library/react": "^16.0.0",
|
|
102
|
+
"@testing-library/user-event": "^14.5.2",
|
|
112
103
|
"@types/atob": "^2.1.2",
|
|
113
104
|
"@types/codemirror": "^0.0.71",
|
|
114
105
|
"@types/color-string": "^1.5.0",
|
|
@@ -117,10 +108,10 @@
|
|
|
117
108
|
"@types/lodash.get": "^4.4.5",
|
|
118
109
|
"@types/node": "^14.0.13",
|
|
119
110
|
"@types/prop-types": "^15.7.4",
|
|
120
|
-
"@types/react": "^
|
|
111
|
+
"@types/react": "^18.3.3",
|
|
121
112
|
"@types/react-beautiful-dnd": "^11.0.3",
|
|
122
113
|
"@types/react-color": "^3.0.1",
|
|
123
|
-
"@types/react-dom": "^
|
|
114
|
+
"@types/react-dom": "^18.3.0",
|
|
124
115
|
"@types/react-select": "^2.0.11",
|
|
125
116
|
"@types/storybook__react": "^4.0.2",
|
|
126
117
|
"@types/yup": "^0.29.10",
|
|
@@ -128,16 +119,16 @@
|
|
|
128
119
|
"identity-obj-proxy": "^3.0.0",
|
|
129
120
|
"isomorphic-fetch": "^3.0.0",
|
|
130
121
|
"jest-file-snapshot": "^0.5.0",
|
|
131
|
-
"next": "
|
|
132
|
-
"react": "
|
|
133
|
-
"react-dom": "
|
|
122
|
+
"next": "14.2.5",
|
|
123
|
+
"react": "^18.3.1",
|
|
124
|
+
"react-dom": "^18.3.1",
|
|
134
125
|
"react-is": "^17.0.2",
|
|
135
126
|
"tsc-alias": "^1.8.7",
|
|
136
127
|
"tslib": "^2.3.0",
|
|
137
128
|
"typescript": "4.6.4",
|
|
138
129
|
"vite": "^4.3.9",
|
|
139
130
|
"vitest": "^0.32.2",
|
|
140
|
-
"@tinacms/scripts": "1.1.
|
|
131
|
+
"@tinacms/scripts": "1.1.6"
|
|
141
132
|
},
|
|
142
133
|
"peerDependencies": {
|
|
143
134
|
"react": ">=16.14.0",
|
package/dist/dev-tools.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { TinaMarkdownContent } from './rich-text';
|
|
3
|
-
declare type RenderValue = (args: {
|
|
4
|
-
value: unknown;
|
|
5
|
-
keyName: string;
|
|
6
|
-
parentValue: object | object[];
|
|
7
|
-
parentKeyName: string;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
declare type RenderRichText = (args: {
|
|
10
|
-
value: TinaMarkdownContent;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
-
export declare const Explorer: (props: {
|
|
13
|
-
value: object;
|
|
14
|
-
renderValue: RenderValue;
|
|
15
|
-
renderRichText: RenderRichText;
|
|
16
|
-
}) => JSX.Element;
|
|
17
|
-
export declare function Json({ src, withDataTinaFieldState, }: {
|
|
18
|
-
src: object;
|
|
19
|
-
withDataTinaFieldState?: boolean;
|
|
20
|
-
}): JSX.Element;
|
|
21
|
-
export {};
|