tinacms 1.5.16 → 1.5.18
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/auth/TinaCloudProvider.d.ts +3 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13064 -1819
- package/dist/index.mjs +30566 -0
- package/dist/internalClient/index.d.ts +15 -3
- package/dist/tina-cms.d.ts +0 -3
- package/dist/toolkit/alerts/alerts.d.ts +34 -0
- package/dist/toolkit/alerts/index.d.ts +1 -0
- package/dist/toolkit/browser-storage/browser-storage-client.d.ts +12 -0
- package/dist/toolkit/browser-storage/get-flattened-form-values.d.ts +2 -0
- package/dist/toolkit/browser-storage/index.d.ts +2 -0
- package/dist/toolkit/browser-storage/use-form-browser-cache.d.ts +2 -0
- package/dist/toolkit/components/active-field-indicator.d.ts +2 -0
- package/dist/toolkit/components/media/breadcrumb.d.ts +7 -0
- package/dist/toolkit/components/media/copy-field.d.ts +8 -0
- package/dist/toolkit/components/media/index.d.ts +6 -0
- package/dist/toolkit/components/media/media-item.d.ts +12 -0
- package/dist/toolkit/components/media/media-manager.d.ts +10 -0
- package/dist/toolkit/components/media/modal.d.ts +13 -0
- package/dist/toolkit/components/media/pagination.d.ts +9 -0
- package/dist/toolkit/components/media/utils.d.ts +4 -0
- package/dist/toolkit/components/mutation-signal.d.ts +12 -0
- package/dist/toolkit/components/tina-cms-provider.d.ts +8 -0
- package/dist/toolkit/components/tina-provider.d.ts +14 -0
- package/dist/toolkit/components/tina-ui.d.ts +13 -0
- package/dist/toolkit/core/cms.d.ts +156 -0
- package/dist/toolkit/core/event.d.ts +17 -0
- package/dist/toolkit/core/flags.d.ts +13 -0
- package/dist/toolkit/core/index.d.ts +7 -0
- package/dist/toolkit/core/media-store.default.d.ts +45 -0
- package/dist/toolkit/core/media.d.ts +138 -0
- package/dist/toolkit/core/plugins.d.ts +249 -0
- package/dist/toolkit/core/subscribable.d.ts +72 -0
- package/dist/toolkit/fields/components/button-toggle.d.ts +23 -0
- package/dist/toolkit/fields/components/checkbox-group.d.ts +22 -0
- package/dist/toolkit/fields/components/color-picker/color-formatter.d.ts +20 -0
- package/dist/toolkit/fields/components/color-picker/color-picker.d.ts +11 -0
- package/dist/toolkit/fields/components/color-picker/index.d.ts +1 -0
- package/dist/toolkit/fields/components/image-upload/image-upload.d.ts +23 -0
- package/dist/toolkit/fields/components/image-upload/index.d.ts +1 -0
- package/dist/toolkit/fields/components/index.d.ts +12 -0
- package/dist/toolkit/fields/components/input.d.ts +10 -0
- package/dist/toolkit/fields/components/number-input.d.ts +7 -0
- package/dist/toolkit/fields/components/radio-group.d.ts +21 -0
- package/dist/toolkit/fields/components/reference/index.d.ts +21 -0
- package/dist/toolkit/fields/components/reference/reference-link.d.ts +8 -0
- package/dist/toolkit/fields/components/reference/reference-select.d.ts +11 -0
- package/dist/toolkit/fields/components/select.d.ts +23 -0
- package/dist/toolkit/fields/components/text-field.d.ts +9 -0
- package/dist/toolkit/fields/components/textarea.d.ts +8 -0
- package/dist/toolkit/fields/components/toggle.d.ts +22 -0
- package/dist/toolkit/fields/field-events.d.ts +11 -0
- package/dist/toolkit/fields/index.d.ts +3 -0
- package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector-big.d.ts +9 -0
- package/dist/toolkit/fields/plugins/blocks-field-plugin/block-selector.d.ts +8 -0
- package/dist/toolkit/fields/plugins/blocks-field-plugin/index.d.ts +47 -0
- package/dist/toolkit/fields/plugins/button-toggle-field-plugin.d.ts +6 -0
- package/dist/toolkit/fields/plugins/checkbox-group-field-plugin.d.ts +7 -0
- package/dist/toolkit/fields/plugins/color-field-plugin.d.ts +14 -0
- package/dist/toolkit/fields/plugins/date-field-plugin.d.ts +14 -0
- package/dist/toolkit/fields/plugins/date-format.d.ts +5 -0
- package/dist/toolkit/fields/plugins/field-props.d.ts +6 -0
- package/dist/toolkit/fields/plugins/group-field-plugin.d.ts +36 -0
- package/dist/toolkit/fields/plugins/group-list-field-plugin.d.ts +57 -0
- package/dist/toolkit/fields/plugins/hidden-field-plugin.d.ts +7 -0
- package/dist/toolkit/fields/plugins/image-field-plugin.d.ts +15 -0
- package/dist/toolkit/fields/plugins/index.d.ts +19 -0
- package/dist/toolkit/fields/plugins/list-field-meta.d.ts +32 -0
- package/dist/toolkit/fields/plugins/list-field-plugin.d.ts +44 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/index.d.ts +20 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/error-message.d.ts +38 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/index.d.ts +4 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/monaco/use-debounce.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/editor-context.d.ts +20 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/embed-hooks.d.ts +7 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/hooks/use-resize.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/index.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/nested-form.d.ts +10 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-block.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-lists.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-marks.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-rules.d.ts +1 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/autoformat/autoformat-utils.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/common.d.ts +11 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/formatting.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/index.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/core/with-correct-void-behavior.d.ts +8 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-code-block/index.d.ts +3 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/component.d.ts +9 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-img-plugin/index.d.ts +5 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-invalid-markdown-plugin/index.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-link-plugin/index.d.ts +14 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/component.d.ts +15 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/create-mdx-plugins/index.d.ts +9 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/create-soft-break-plugin.d.ts +7 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/index.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/on-key-down-soft-break.d.ts +5 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/soft-break/types.d.ts +11 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/autocomplete.d.ts +14 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/code-block/index.d.ts +9 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/components.d.ts +140 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/dropdown.d.ts +9 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/helpers.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/icons.d.ts +24 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/floating-toolbar.d.ts +5 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/index.d.ts +10 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/overflow-menu.d.ts +6 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/plugins/ui/toolbar/toolbar-item.d.ts +19 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/insert-empty-block.d.ts +2 -0
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/types.d.ts +9 -0
- package/dist/toolkit/fields/plugins/number-field-plugin.d.ts +15 -0
- package/dist/toolkit/fields/plugins/number-format.d.ts +1 -0
- package/dist/toolkit/fields/plugins/radio-group-field-plugin.d.ts +7 -0
- package/dist/toolkit/fields/plugins/reference-field-plugin.d.ts +9 -0
- package/dist/toolkit/fields/plugins/select-field-plugin.d.ts +9 -0
- package/dist/toolkit/fields/plugins/tags-field-plugin.d.ts +12 -0
- package/dist/toolkit/fields/plugins/text-field-plugin.d.ts +14 -0
- package/dist/toolkit/fields/plugins/text-format.d.ts +1 -0
- package/dist/toolkit/fields/plugins/textarea-field-plugin.d.ts +13 -0
- package/dist/toolkit/fields/plugins/toggle-field-plugin.d.ts +8 -0
- package/dist/toolkit/fields/plugins/wrap-field-with-meta.d.ts +36 -0
- package/dist/toolkit/form-builder/field-plugin.d.ts +14 -0
- package/dist/toolkit/form-builder/fields-builder.d.ts +13 -0
- package/dist/toolkit/form-builder/form-actions.d.ts +11 -0
- package/dist/toolkit/form-builder/form-builder.d.ts +32 -0
- package/dist/toolkit/form-builder/form-legacy.d.ts +8 -0
- package/dist/toolkit/form-builder/form-portal.d.ts +8 -0
- package/dist/toolkit/form-builder/form.d.ts +28 -0
- package/dist/toolkit/form-builder/index.d.ts +10 -0
- package/dist/toolkit/form-builder/loading-dots.d.ts +7 -0
- package/dist/toolkit/form-builder/reset-form.d.ts +10 -0
- package/dist/toolkit/forms/content-creator-plugin.d.ts +13 -0
- package/dist/toolkit/forms/field.d.ts +26 -0
- package/dist/toolkit/forms/form.d.ts +138 -0
- package/dist/toolkit/forms/index.d.ts +4 -0
- package/dist/toolkit/git-client/git-client.d.ts +92 -0
- package/dist/toolkit/git-client/git-file.d.ts +16 -0
- package/dist/toolkit/git-client/git-media-store.d.ts +11 -0
- package/dist/toolkit/git-client/index.d.ts +4 -0
- package/dist/toolkit/git-client/use-git-file.d.ts +2 -0
- package/dist/toolkit/hooks/use-field-reference.d.ts +12 -0
- package/dist/toolkit/hooks/use-local-storage.d.ts +1 -0
- package/dist/toolkit/icons/Add.d.ts +9 -0
- package/dist/toolkit/icons/Alert.d.ts +9 -0
- package/dist/toolkit/icons/AlignCenter.d.ts +9 -0
- package/dist/toolkit/icons/AlignLeft.d.ts +9 -0
- package/dist/toolkit/icons/AlignRight.d.ts +9 -0
- package/dist/toolkit/icons/Bold.d.ts +9 -0
- package/dist/toolkit/icons/ChevronDown.d.ts +9 -0
- package/dist/toolkit/icons/ChevronLeft.d.ts +9 -0
- package/dist/toolkit/icons/ChevronRight.d.ts +9 -0
- package/dist/toolkit/icons/ChevronUp.d.ts +9 -0
- package/dist/toolkit/icons/Circle.d.ts +9 -0
- package/dist/toolkit/icons/CircleCheck.d.ts +9 -0
- package/dist/toolkit/icons/Close.d.ts +9 -0
- package/dist/toolkit/icons/Code.d.ts +9 -0
- package/dist/toolkit/icons/Drag.d.ts +9 -0
- package/dist/toolkit/icons/Duplicate.d.ts +9 -0
- package/dist/toolkit/icons/Edit.d.ts +9 -0
- package/dist/toolkit/icons/EllipsisVertical.d.ts +9 -0
- package/dist/toolkit/icons/Error.d.ts +9 -0
- package/dist/toolkit/icons/Exit.d.ts +9 -0
- package/dist/toolkit/icons/File.d.ts +9 -0
- package/dist/toolkit/icons/Folder.d.ts +9 -0
- package/dist/toolkit/icons/Hamburger.d.ts +9 -0
- package/dist/toolkit/icons/Heading.d.ts +9 -0
- package/dist/toolkit/icons/Info.d.ts +9 -0
- package/dist/toolkit/icons/Italic.d.ts +9 -0
- package/dist/toolkit/icons/LeftArrow.d.ts +9 -0
- package/dist/toolkit/icons/Link.d.ts +9 -0
- package/dist/toolkit/icons/Lock.d.ts +9 -0
- package/dist/toolkit/icons/Markdown.d.ts +9 -0
- package/dist/toolkit/icons/Media.d.ts +9 -0
- package/dist/toolkit/icons/OrderedList.d.ts +9 -0
- package/dist/toolkit/icons/PullRequest.d.ts +9 -0
- package/dist/toolkit/icons/Quote.d.ts +9 -0
- package/dist/toolkit/icons/Redo.d.ts +9 -0
- package/dist/toolkit/icons/Reorder.d.ts +9 -0
- package/dist/toolkit/icons/ReorderRow.d.ts +9 -0
- package/dist/toolkit/icons/Reset.d.ts +9 -0
- package/dist/toolkit/icons/RightArrow.d.ts +9 -0
- package/dist/toolkit/icons/Settings.d.ts +9 -0
- package/dist/toolkit/icons/Strikethrough.d.ts +9 -0
- package/dist/toolkit/icons/Table.d.ts +9 -0
- package/dist/toolkit/icons/Tina.d.ts +9 -0
- package/dist/toolkit/icons/Trash.d.ts +9 -0
- package/dist/toolkit/icons/Underline.d.ts +9 -0
- package/dist/toolkit/icons/Undo.d.ts +9 -0
- package/dist/toolkit/icons/UnorderedList.d.ts +9 -0
- package/dist/toolkit/icons/Upload.d.ts +9 -0
- package/dist/toolkit/icons/Warning.d.ts +9 -0
- package/dist/toolkit/icons/index.d.ts +54 -0
- package/dist/toolkit/index.d.ts +40 -0
- package/dist/toolkit/plugin-branch-switcher/branch-banner.d.ts +2 -0
- package/dist/toolkit/plugin-branch-switcher/branch-button.d.ts +2 -0
- package/dist/toolkit/plugin-branch-switcher/branch-data.d.ts +11 -0
- package/dist/toolkit/plugin-branch-switcher/branch-modal.d.ts +6 -0
- package/dist/toolkit/plugin-branch-switcher/branch-switcher-legacy.d.ts +11 -0
- package/dist/toolkit/plugin-branch-switcher/branch-switcher.d.ts +6 -0
- package/dist/toolkit/plugin-branch-switcher/index.d.ts +6 -0
- package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +14 -0
- package/dist/toolkit/plugin-branch-switcher/types.d.ts +30 -0
- package/dist/toolkit/plugin-fields/index.d.ts +1 -0
- package/dist/toolkit/plugin-fields/markdown.d.ts +11 -0
- package/dist/toolkit/plugin-form-meta/index.d.ts +7 -0
- package/dist/toolkit/plugin-screens/index.d.ts +16 -0
- package/dist/toolkit/plugin-screens/media-manager-screen.d.ts +3 -0
- package/dist/toolkit/react-alerts/alerts.d.ts +6 -0
- package/dist/toolkit/react-alerts/index.d.ts +1 -0
- package/dist/toolkit/react-cloud-config/cloud-config-plugin.d.ts +37 -0
- package/dist/toolkit/react-cloud-config/index.d.ts +2 -0
- package/dist/toolkit/react-cloud-config/use-cloud-config-plugin.d.ts +3 -0
- package/dist/toolkit/react-core/index.d.ts +7 -0
- package/dist/toolkit/react-core/tina-error-boundary.d.ts +21 -0
- package/dist/toolkit/react-core/use-cms-event.d.ts +8 -0
- package/dist/toolkit/react-core/use-cms.d.ts +10 -0
- package/dist/toolkit/react-core/use-form.d.ts +14 -0
- package/dist/toolkit/react-core/use-plugin.d.ts +12 -0
- package/dist/toolkit/react-core/use-subscribable.d.ts +10 -0
- package/dist/toolkit/react-core/use-watch-form-values.d.ts +6 -0
- package/dist/toolkit/react-core/with-plugin.d.ts +18 -0
- package/dist/toolkit/react-datetime/DateTime.d.ts +126 -0
- package/dist/toolkit/react-datetime/parts/ViewNavigation.d.ts +8 -0
- package/dist/toolkit/react-datetime/views/DaysView.d.ts +15 -0
- package/dist/toolkit/react-datetime/views/MonthsView.d.ts +11 -0
- package/dist/toolkit/react-datetime/views/TimeView.d.ts +23 -0
- package/dist/toolkit/react-datetime/views/YearsView.d.ts +16 -0
- package/dist/toolkit/react-dismissible/dismissible.d.ts +32 -0
- package/dist/toolkit/react-dismissible/index.d.ts +1 -0
- package/dist/toolkit/react-forms/form-modal.d.ts +2 -0
- package/dist/toolkit/react-forms/index.d.ts +1 -0
- package/dist/toolkit/react-modals/fullscreen-modal.d.ts +15 -0
- package/dist/toolkit/react-modals/index.d.ts +4 -0
- package/dist/toolkit/react-modals/modal/index.d.ts +5 -0
- package/dist/toolkit/react-modals/modal/modal-actions.d.ts +4 -0
- package/dist/toolkit/react-modals/modal/modal-body.d.ts +6 -0
- package/dist/toolkit/react-modals/modal/modal-header.d.ts +6 -0
- package/dist/toolkit/react-modals/modal/modal-overlay.d.ts +4 -0
- package/dist/toolkit/react-modals/modal/modal.d.ts +3 -0
- package/dist/toolkit/react-modals/modal-provider.d.ts +6 -0
- package/dist/toolkit/react-modals/popup-modal.d.ts +15 -0
- package/dist/toolkit/react-screens/components/screen-plugin-modal.d.ts +7 -0
- package/dist/toolkit/react-screens/index.d.ts +3 -0
- package/dist/toolkit/react-screens/screen-plugin.d.ts +42 -0
- package/dist/toolkit/react-screens/use-screen-plugin.d.ts +3 -0
- package/dist/toolkit/react-sidebar/components/form-list.d.ts +25 -0
- package/dist/toolkit/react-sidebar/components/local-warning.d.ts +3 -0
- package/dist/toolkit/react-sidebar/components/nav.d.ts +34 -0
- package/dist/toolkit/react-sidebar/components/no-forms-placeholder.d.ts +8 -0
- package/dist/toolkit/react-sidebar/components/resize-handle.d.ts +7 -0
- package/dist/toolkit/react-sidebar/components/sidebar-body.d.ts +19 -0
- package/dist/toolkit/react-sidebar/components/sidebar.d.ts +26 -0
- package/dist/toolkit/react-sidebar/components/sync-status.d.ts +31 -0
- package/dist/toolkit/react-sidebar/index.d.ts +5 -0
- package/dist/toolkit/react-sidebar/sidebar.d.ts +34 -0
- package/dist/toolkit/react-tinacms/index.d.ts +10 -0
- package/dist/toolkit/react-tinacms/use-cms.d.ts +3 -0
- package/dist/toolkit/react-tinacms/use-form.d.ts +12 -0
- package/dist/toolkit/react-tinacms/use-plugin.d.ts +1 -0
- package/dist/toolkit/react-tinacms/use-subscribable.d.ts +1 -0
- package/dist/toolkit/react-tinacms/use-watch-form-values.d.ts +1 -0
- package/dist/toolkit/react-tinacms/with-plugin.d.ts +1 -0
- package/dist/toolkit/react-tinacms/with-tina.d.ts +3 -0
- package/dist/toolkit/styles/button.d.ts +15 -0
- package/dist/toolkit/styles/container.d.ts +7 -0
- package/dist/toolkit/styles/font-loader.d.ts +1 -0
- package/dist/toolkit/styles/index.d.ts +4 -0
- package/dist/toolkit/styles/message.d.ts +9 -0
- package/dist/toolkit/styles/overflow-menu.d.ts +6 -0
- package/dist/toolkit/tina-cms.d.ts +41 -0
- package/dist/toolkit/tina-state.d.ts +84 -0
- package/dist/types/cms.d.ts +2 -1
- package/dist/utils/index.d.ts +1 -0
- package/package.json +69 -25
- package/dist/index.es.js +0 -19299
- package/dist/style.css +0 -1536
- /package/dist/{client.es.js → client.mjs} +0 -0
- /package/dist/{dev-tools.es.js → dev-tools.mjs} +0 -0
- /package/dist/{edit-state.es.js → edit-state.mjs} +0 -0
- /package/dist/{react.es.js → react.mjs} +0 -0
- /package/dist/rich-text/{index.es.js → index.mjs} +0 -0
- /package/dist/rich-text/{prism.es.js → prism.mjs} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
export * from './Add';
|
|
7
|
+
export * from './AlignCenter';
|
|
8
|
+
export * from './AlignLeft';
|
|
9
|
+
export * from './AlignRight';
|
|
10
|
+
export * from './Close';
|
|
11
|
+
export * from './EllipsisVertical';
|
|
12
|
+
export * from './Hamburger';
|
|
13
|
+
export * from './Edit';
|
|
14
|
+
export * from './ChevronDown';
|
|
15
|
+
export * from './ChevronUp';
|
|
16
|
+
export * from './ChevronLeft';
|
|
17
|
+
export * from './ChevronRight';
|
|
18
|
+
export * from './Duplicate';
|
|
19
|
+
export * from './Drag';
|
|
20
|
+
export * from './LeftArrow';
|
|
21
|
+
export * from './RightArrow';
|
|
22
|
+
export * from './Bold';
|
|
23
|
+
export * from './Code';
|
|
24
|
+
export * from './Exit';
|
|
25
|
+
export * from './Heading';
|
|
26
|
+
export * from './Italic';
|
|
27
|
+
export * from './Media';
|
|
28
|
+
export * from './OrderedList';
|
|
29
|
+
export * from './Settings';
|
|
30
|
+
export * from './Table';
|
|
31
|
+
export * from './Tina';
|
|
32
|
+
export * from './Trash';
|
|
33
|
+
export * from './UnorderedList';
|
|
34
|
+
export * from './Undo';
|
|
35
|
+
export * from './Redo';
|
|
36
|
+
export * from './Reorder';
|
|
37
|
+
export * from './ReorderRow';
|
|
38
|
+
export * from './Upload';
|
|
39
|
+
export * from './Reset';
|
|
40
|
+
export * from './Link';
|
|
41
|
+
export * from './Lock';
|
|
42
|
+
export * from './Quote';
|
|
43
|
+
export * from './Underline';
|
|
44
|
+
export * from './Strikethrough';
|
|
45
|
+
export * from './Markdown';
|
|
46
|
+
export * from './Alert';
|
|
47
|
+
export * from './Info';
|
|
48
|
+
export * from './Warning';
|
|
49
|
+
export * from './Error';
|
|
50
|
+
export * from './PullRequest';
|
|
51
|
+
export * from './Folder';
|
|
52
|
+
export * from './File';
|
|
53
|
+
export * from './Circle';
|
|
54
|
+
export * from './CircleCheck';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Export @tinacms internal packages
|
|
3
|
+
*/
|
|
4
|
+
export * from './react-modals';
|
|
5
|
+
export type { Media, MediaUploadOptions, MediaStore, MediaListOptions, MediaList, StaticMedia, } from './core';
|
|
6
|
+
export { MdxFieldPluginExtendible } from './fields/plugins/mdx-field-plugin';
|
|
7
|
+
export type { CloudConfigPlugin } from './react-cloud-config';
|
|
8
|
+
export type { Plugin } from './core';
|
|
9
|
+
export { MediaManager, MediaListError, EventBus, DummyMediaStore, TinaMediaStore, } from './core';
|
|
10
|
+
export * from './alerts';
|
|
11
|
+
export * from './styles';
|
|
12
|
+
export { useScreenPlugin } from './react-screens';
|
|
13
|
+
export type { ScreenPlugin } from './react-screens';
|
|
14
|
+
export * from './fields';
|
|
15
|
+
export * from './form-builder';
|
|
16
|
+
export type { ContentCreatorPlugin as AddContentPlugin } from './forms';
|
|
17
|
+
export type { ContentCreatorPlugin } from './forms';
|
|
18
|
+
export type { TinaState } from './tina-state';
|
|
19
|
+
export * from './forms';
|
|
20
|
+
export * from './icons';
|
|
21
|
+
export * from './react-dismissible';
|
|
22
|
+
export { Nav, LocalWarning, BillingWarning, SyncStatus, } from './react-sidebar';
|
|
23
|
+
export { useCMS } from './react-core';
|
|
24
|
+
/**
|
|
25
|
+
* Custom `tinacms` things
|
|
26
|
+
*/
|
|
27
|
+
export { TinaCMS } from './tina-cms';
|
|
28
|
+
export type { TinaCMSConfig } from './tina-cms';
|
|
29
|
+
export { GlobalFormPlugin } from './plugin-screens';
|
|
30
|
+
export { FormMetaPlugin } from './plugin-form-meta';
|
|
31
|
+
export * from './plugin-branch-switcher';
|
|
32
|
+
export { TinaProvider, Tina, } from './components/tina-provider';
|
|
33
|
+
export type { TinaProviderProps, TinaProps } from './components/tina-provider';
|
|
34
|
+
export { TinaCMSProvider } from './components/tina-cms-provider';
|
|
35
|
+
export type { TinaCMSProviderProps } from './components/tina-cms-provider';
|
|
36
|
+
export { TinaUI } from './components/tina-ui';
|
|
37
|
+
export type { TinaUIProps } from './components/tina-ui';
|
|
38
|
+
export { useLocalStorage } from './hooks/use-local-storage';
|
|
39
|
+
export { CursorPaginator } from './components/media/pagination';
|
|
40
|
+
export { DEFAULT_MEDIA_UPLOAD_TYPES } from './components/media';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface BranchContextData {
|
|
3
|
+
currentBranch: string;
|
|
4
|
+
setCurrentBranch: (string: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const BranchDataProvider: ({ currentBranch, setCurrentBranch, children, }: {
|
|
7
|
+
currentBranch: any;
|
|
8
|
+
setCurrentBranch: any;
|
|
9
|
+
children: any;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export declare const useBranchData: () => BranchContextData;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BranchSwitcherProps, Branch } from './types';
|
|
3
|
+
export declare function formatBranchName(str: string): string;
|
|
4
|
+
export declare const BranchSwitcherLegacy: ({ listBranches, createBranch, chooseBranch, }: BranchSwitcherProps) => JSX.Element;
|
|
5
|
+
export declare const getFilteredBranchList: (branchList: Branch[], filter: string, currentBranchName: string) => Branch[];
|
|
6
|
+
export declare const CreateBranch: React.FC<{
|
|
7
|
+
setNewBranchName: (value: any) => void;
|
|
8
|
+
onCreateBranch: (value: string) => void;
|
|
9
|
+
currentBranch: string;
|
|
10
|
+
newBranchName: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BranchSwitcherProps, Branch } from './types';
|
|
3
|
+
export declare function formatBranchName(str: string): string;
|
|
4
|
+
export declare const BranchSwitcher: (props: BranchSwitcherProps) => JSX.Element;
|
|
5
|
+
export declare const EditoralBranchSwitcher: ({ listBranches, createBranch, chooseBranch, setModalTitle, }: BranchSwitcherProps) => JSX.Element;
|
|
6
|
+
export declare const getFilteredBranchList: (branchList: Branch[], search: string, currentBranchName: string, filter?: 'content' | 'all') => Branch[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ScreenPlugin } from '../react-screens';
|
|
3
|
+
import { BranchSwitcherProps } from './types';
|
|
4
|
+
export declare class BranchSwitcherPlugin implements ScreenPlugin {
|
|
5
|
+
__type: "screen";
|
|
6
|
+
Icon: import("react-icons/lib").IconType;
|
|
7
|
+
name: string;
|
|
8
|
+
layout: "popup";
|
|
9
|
+
listBranches: BranchSwitcherProps['listBranches'];
|
|
10
|
+
createBranch: BranchSwitcherProps['createBranch'];
|
|
11
|
+
chooseBranch: BranchSwitcherProps['chooseBranch'];
|
|
12
|
+
constructor(options: BranchSwitcherProps);
|
|
13
|
+
Component: () => JSX.Element;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Branch {
|
|
2
|
+
indexStatus?: {
|
|
3
|
+
status?: 'unknown' | 'complete' | 'failed' | 'inprogress' | 'timeout';
|
|
4
|
+
timestamp?: number;
|
|
5
|
+
};
|
|
6
|
+
name: string;
|
|
7
|
+
protected?: boolean;
|
|
8
|
+
commit?: {
|
|
9
|
+
sha?: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
};
|
|
12
|
+
githubPullRequestUrl?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface BranchSwitcherProps {
|
|
15
|
+
listBranches: () => Promise<Branch[]>;
|
|
16
|
+
chooseBranch: (_branch: string) => void;
|
|
17
|
+
createBranch: ({ baseBranch, branchName, }: {
|
|
18
|
+
baseBranch: string;
|
|
19
|
+
branchName: string;
|
|
20
|
+
}) => Promise<string>;
|
|
21
|
+
setModalTitle?: any;
|
|
22
|
+
}
|
|
23
|
+
export interface BranchChangeEvent {
|
|
24
|
+
type: 'branch:change';
|
|
25
|
+
branchName: string;
|
|
26
|
+
}
|
|
27
|
+
export interface BranchData {
|
|
28
|
+
baseBranch?: string;
|
|
29
|
+
branchName?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BlocksFieldPlugin, ColorFieldPlugin, GroupFieldPlugin, GroupListFieldPlugin, NumberFieldPlugin, SelectFieldPlugin, RadioGroupFieldPlugin, TextFieldPlugin, TextareaFieldPlugin, ToggleFieldPlugin, DateFieldPlugin, CheckboxGroupFieldPlugin, ReferenceFieldPlugin, } from '../fields';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MarkdownFieldPlaceholder: {
|
|
3
|
+
__type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
Component: (props: any) => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export declare const HtmlFieldPlaceholder: {
|
|
8
|
+
__type: string;
|
|
9
|
+
name: string;
|
|
10
|
+
Component: (props: any) => JSX.Element;
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
import { Form } from '../forms';
|
|
7
|
+
import { ScreenPlugin } from '../react-screens';
|
|
8
|
+
export declare class GlobalFormPlugin implements ScreenPlugin {
|
|
9
|
+
form: Form;
|
|
10
|
+
__type: ScreenPlugin['__type'];
|
|
11
|
+
name: ScreenPlugin['name'];
|
|
12
|
+
Component: ScreenPlugin['Component'];
|
|
13
|
+
Icon: ScreenPlugin['Icon'];
|
|
14
|
+
layout: ScreenPlugin['layout'];
|
|
15
|
+
constructor(form: Form, icon?: ScreenPlugin['Icon'], layout?: ScreenPlugin['layout']);
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './alerts';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Plugin } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a Tina Cloud Config that should be accessible via the CMS.
|
|
4
|
+
*
|
|
5
|
+
* The purpose of these configs is to give a way to display & edit information
|
|
6
|
+
* about TIna Cloud Configuration
|
|
7
|
+
* cases may include:
|
|
8
|
+
*
|
|
9
|
+
* * Tina Cloud Project Configuration
|
|
10
|
+
* * User Management
|
|
11
|
+
*/
|
|
12
|
+
export interface CloudConfigPlugin extends Plugin {
|
|
13
|
+
__type: 'cloud-config';
|
|
14
|
+
text?: string;
|
|
15
|
+
Icon: any;
|
|
16
|
+
link: {
|
|
17
|
+
text: string;
|
|
18
|
+
href: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* An options object used to create Cloud Config Plugins.
|
|
23
|
+
*/
|
|
24
|
+
export interface CloudConfigOptions {
|
|
25
|
+
name: string;
|
|
26
|
+
text?: string;
|
|
27
|
+
link: {
|
|
28
|
+
text: string;
|
|
29
|
+
href: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Creates cloud config plugins.
|
|
34
|
+
*
|
|
35
|
+
* @param options
|
|
36
|
+
*/
|
|
37
|
+
export declare function createCloudConfig({ ...options }: CloudConfigOptions): CloudConfigPlugin;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare class TinaErrorBoundary extends React.Component<{
|
|
3
|
+
id: string;
|
|
4
|
+
}, {
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
}> {
|
|
7
|
+
constructor(props: any);
|
|
8
|
+
static getDerivedStateFromError(_error: any): {
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
};
|
|
11
|
+
componentDidCatch(error: any, errorInfo: any): void;
|
|
12
|
+
render(): React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare class CMSRecoveryBoundary extends React.Component<{
|
|
15
|
+
initialCMS: any;
|
|
16
|
+
}, {
|
|
17
|
+
hasError: true;
|
|
18
|
+
}> {
|
|
19
|
+
private initialCMS;
|
|
20
|
+
constructor(props: any);
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Callback, CMSEvent } from '../core';
|
|
3
|
+
export declare function useCMSEvent<E extends CMSEvent = CMSEvent>(event: E['type'] | E['type'][], callback: Callback<E>, deps: React.DependencyList): void;
|
|
4
|
+
export declare const useEventSubscription: typeof useCMSEvent;
|
|
5
|
+
export declare function useEvent<E extends CMSEvent = CMSEvent>(eventType: E['type']): {
|
|
6
|
+
dispatch: (event: Omit<E, 'type'>) => void;
|
|
7
|
+
subscribe: (callback: (event: E) => any) => () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TinaAction, TinaState } from '../tina-state';
|
|
3
|
+
import { TinaCMS } from '../tina-cms';
|
|
4
|
+
export declare const ERROR_MISSING_CMS = "useCMS could not find an instance of CMS";
|
|
5
|
+
export declare const CMSContext: React.Context<{
|
|
6
|
+
cms: TinaCMS;
|
|
7
|
+
dispatch: React.Dispatch<TinaAction>;
|
|
8
|
+
state: TinaState;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function useCMS(): TinaCMS;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormOptions, Form } from '../forms';
|
|
2
|
+
export interface WatchableFormValue {
|
|
3
|
+
values: any;
|
|
4
|
+
label: FormOptions<any>['label'];
|
|
5
|
+
fields: FormOptions<any>['fields'];
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated See https://github.com/tinacms/rfcs/blob/master/0006-form-hook-conventions.md
|
|
9
|
+
*/
|
|
10
|
+
export declare function useLocalForm<FormShape = any>(options: FormOptions<any>, watch?: Partial<WatchableFormValue>): [FormShape, Form];
|
|
11
|
+
/**
|
|
12
|
+
* A hook that creates a form and updates it's watched properties.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useForm<FormShape = any>({ loadInitialValues, ...options }: FormOptions<any>, watch?: Partial<WatchableFormValue>): [FormShape, Form, boolean];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from '../core';
|
|
2
|
+
/**
|
|
3
|
+
* A React Hook for adding Plugins to the CMS.
|
|
4
|
+
*
|
|
5
|
+
* @alias usePlugins
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePlugin: typeof usePlugins;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @alias usePlugin
|
|
11
|
+
*/
|
|
12
|
+
export declare function usePlugins(plugins?: Plugin | Plugin[]): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Subscribable {
|
|
2
|
+
subscribe(callback: any): () => void;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param subscribable An object that can be subscribed to
|
|
7
|
+
* @param cb (Optional) A callback to be executed when an event occurs.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useSubscribable(subscribable: Subscribable, cb?: Function): void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Plugin } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* A Higher-Order-Component for adding Plugins to the CMS.
|
|
5
|
+
*
|
|
6
|
+
* @param Component A React Component
|
|
7
|
+
* @param plugin Plugin
|
|
8
|
+
* @alias withPlugin
|
|
9
|
+
*/
|
|
10
|
+
export declare function withPlugins(Component: any, plugins: Plugin | Plugin[]): (props: any) => JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* A Higher-Order-Component for adding Plugins to the CMS.
|
|
13
|
+
*
|
|
14
|
+
* @param Component A React Component
|
|
15
|
+
* @param plugin Plugin
|
|
16
|
+
* @alias withPlugins
|
|
17
|
+
*/
|
|
18
|
+
export declare const withPlugin: typeof withPlugins;
|