tinacms 1.5.17 → 1.5.19
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/pages/CollectionListPage.d.ts +1 -1
- package/dist/auth/TinaCloudProvider.d.ts +3 -1
- package/dist/client.js +5 -3
- package/dist/client.mjs +5 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13065 -1820
- package/dist/index.mjs +27835 -16568
- 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/unifiedClient/index.d.ts +0 -3
- package/dist/utils/index.d.ts +1 -0
- package/package.json +60 -14
- package/dist/style.css +0 -1536
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export default class Datetime extends React.Component<any, any, any> {
|
|
2
|
+
static propTypes: {
|
|
3
|
+
value: PropTypes.Requireable<string | Date>;
|
|
4
|
+
initialValue: PropTypes.Requireable<string | Date>;
|
|
5
|
+
initialViewDate: PropTypes.Requireable<string | Date>;
|
|
6
|
+
initialViewMode: PropTypes.Requireable<string>;
|
|
7
|
+
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
+
onNavigate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
+
onBeforeNavigate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
onNavigateBack: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
onNavigateForward: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
updateOnView: PropTypes.Requireable<string>;
|
|
15
|
+
locale: PropTypes.Requireable<string>;
|
|
16
|
+
utc: PropTypes.Requireable<boolean>;
|
|
17
|
+
displayTimeZone: PropTypes.Requireable<string>;
|
|
18
|
+
input: PropTypes.Requireable<boolean>;
|
|
19
|
+
dateFormat: PropTypes.Requireable<string | boolean>;
|
|
20
|
+
timeFormat: PropTypes.Requireable<string | boolean>;
|
|
21
|
+
inputProps: PropTypes.Requireable<object>;
|
|
22
|
+
timeConstraints: PropTypes.Requireable<object>;
|
|
23
|
+
isValidDate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
open: PropTypes.Requireable<boolean>;
|
|
25
|
+
strictParsing: PropTypes.Requireable<boolean>;
|
|
26
|
+
closeOnSelect: PropTypes.Requireable<boolean>;
|
|
27
|
+
closeOnTab: PropTypes.Requireable<boolean>;
|
|
28
|
+
renderView: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
+
renderInput: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
+
renderDay: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
+
renderMonth: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
+
renderYear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
};
|
|
34
|
+
static defaultProps: {
|
|
35
|
+
onOpen: () => void;
|
|
36
|
+
onClose: () => void;
|
|
37
|
+
onCalendarOpen: () => void;
|
|
38
|
+
onCalendarClose: () => void;
|
|
39
|
+
onChange: () => void;
|
|
40
|
+
onNavigate: () => void;
|
|
41
|
+
onBeforeNavigate: (next: any) => any;
|
|
42
|
+
onNavigateBack: () => void;
|
|
43
|
+
onNavigateForward: () => void;
|
|
44
|
+
dateFormat: boolean;
|
|
45
|
+
timeFormat: boolean;
|
|
46
|
+
utc: boolean;
|
|
47
|
+
className: string;
|
|
48
|
+
input: boolean;
|
|
49
|
+
inputProps: {};
|
|
50
|
+
timeConstraints: {};
|
|
51
|
+
isValidDate: () => boolean;
|
|
52
|
+
strictParsing: boolean;
|
|
53
|
+
closeOnSelect: boolean;
|
|
54
|
+
closeOnTab: boolean;
|
|
55
|
+
closeOnClickOutside: boolean;
|
|
56
|
+
renderView: (_: any, renderFunc: any) => any;
|
|
57
|
+
};
|
|
58
|
+
static moment: typeof moment;
|
|
59
|
+
constructor(props: any);
|
|
60
|
+
renderInput(): JSX.Element;
|
|
61
|
+
renderView(): any;
|
|
62
|
+
_renderCalendar: () => JSX.Element;
|
|
63
|
+
getInitialState(): {
|
|
64
|
+
open: boolean;
|
|
65
|
+
currentView: any;
|
|
66
|
+
viewDate: any;
|
|
67
|
+
selectedDate: any;
|
|
68
|
+
inputValue: any;
|
|
69
|
+
};
|
|
70
|
+
getInitialViewDate(selectedDate: any): any;
|
|
71
|
+
getInitialDate(): any;
|
|
72
|
+
getInitialView(): any;
|
|
73
|
+
parseDate(date: any, dateFormat: any): any;
|
|
74
|
+
getClassName(): string;
|
|
75
|
+
isOpen(): any;
|
|
76
|
+
getUpdateOn(dateFormat: any): any;
|
|
77
|
+
getLocaleData(): any;
|
|
78
|
+
getDateFormat(): any;
|
|
79
|
+
getTimeFormat(): any;
|
|
80
|
+
getFormat(type: any): any;
|
|
81
|
+
_showView: (view: any, date: any) => void;
|
|
82
|
+
updateTime(op: any, amount: any, type: any, toSelected: any): void;
|
|
83
|
+
viewToMethod: {
|
|
84
|
+
days: string;
|
|
85
|
+
months: string;
|
|
86
|
+
years: string;
|
|
87
|
+
};
|
|
88
|
+
nextView: {
|
|
89
|
+
days: string;
|
|
90
|
+
months: string;
|
|
91
|
+
years: string;
|
|
92
|
+
};
|
|
93
|
+
_updateDate: (e: any) => void;
|
|
94
|
+
_viewNavigate: (modifier: any, unit: any) => void;
|
|
95
|
+
_setTime: (type: any, value: any) => void;
|
|
96
|
+
_openCalendar: () => void;
|
|
97
|
+
_closeCalendar: () => void;
|
|
98
|
+
_handleClickOutside: () => void;
|
|
99
|
+
localMoment(date: any, format: any, props: any): any;
|
|
100
|
+
checkTZ(): void;
|
|
101
|
+
tzWarning: boolean;
|
|
102
|
+
regenerateDates(): void;
|
|
103
|
+
getSelectedDate(): any;
|
|
104
|
+
getInitialInputValue(selectedDate: any): any;
|
|
105
|
+
getInputValue(): any;
|
|
106
|
+
/**
|
|
107
|
+
* Set the date that is currently shown in the calendar.
|
|
108
|
+
* This is independent from the selected date and it's the one used to navigate through months or days in the calendar.
|
|
109
|
+
* @param dateType date
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
public setViewDate(date: any): void;
|
|
113
|
+
/**
|
|
114
|
+
* Set the view currently shown by the calendar. View modes shipped with react-datetime are 'years', 'months', 'days' and 'time'.
|
|
115
|
+
* @param TYPES.string mode
|
|
116
|
+
*/
|
|
117
|
+
navigate(mode: any): void;
|
|
118
|
+
_onInputFocus: (e: any) => void;
|
|
119
|
+
_onInputChange: (e: any) => void;
|
|
120
|
+
_onInputKeyDown: (e: any) => void;
|
|
121
|
+
_onInputClick: (e: any) => void;
|
|
122
|
+
callHandler(method: any, e: any): boolean;
|
|
123
|
+
}
|
|
124
|
+
import React from "react";
|
|
125
|
+
import PropTypes from "prop-types";
|
|
126
|
+
import moment from "moment";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default function ViewNavigation({ onClickPrev, onClickSwitch, onClickNext, switchContent, switchColSpan, switchProps, }: {
|
|
2
|
+
onClickPrev: any;
|
|
3
|
+
onClickSwitch: any;
|
|
4
|
+
onClickNext: any;
|
|
5
|
+
switchContent: any;
|
|
6
|
+
switchColSpan: any;
|
|
7
|
+
switchProps: any;
|
|
8
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default class DaysView extends React.Component<any, any, any> {
|
|
2
|
+
static defaultProps: {
|
|
3
|
+
isValidDate: () => boolean;
|
|
4
|
+
renderDay: (props: any, date: any) => JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
constructor(props: any, context: any);
|
|
8
|
+
renderNavigation(): JSX.Element;
|
|
9
|
+
renderDayHeaders(): JSX.Element;
|
|
10
|
+
renderDays(): JSX.Element[];
|
|
11
|
+
renderDay(date: any, startOfMonth: any, endOfMonth: any): any;
|
|
12
|
+
renderFooter(): JSX.Element;
|
|
13
|
+
_setDate: (e: any) => void;
|
|
14
|
+
}
|
|
15
|
+
import React from "react";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default class MonthsView extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
constructor(props: any, context: any);
|
|
4
|
+
renderNavigation(): JSX.Element;
|
|
5
|
+
renderMonths(): JSX.Element[];
|
|
6
|
+
renderMonth(month: any): any;
|
|
7
|
+
isDisabledMonth(month: any): boolean;
|
|
8
|
+
getMonthText(month: any): any;
|
|
9
|
+
_updateSelectedMonth: (event: any) => void;
|
|
10
|
+
}
|
|
11
|
+
import React from "react";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default class TimeView extends React.Component<any, any, any> {
|
|
2
|
+
constructor(props: any);
|
|
3
|
+
constraints: {};
|
|
4
|
+
renderCounter(type: any, value: any): JSX.Element;
|
|
5
|
+
renderHeader(): JSX.Element;
|
|
6
|
+
onStartClicking(e: any, action: any, type: any): void;
|
|
7
|
+
timer: NodeJS.Timeout;
|
|
8
|
+
increaseTimer: NodeJS.Timeout;
|
|
9
|
+
mouseUpListener: any;
|
|
10
|
+
toggleDayPart(): void;
|
|
11
|
+
increase(type: any): string;
|
|
12
|
+
decrease(type: any): string;
|
|
13
|
+
getCounters(): string[];
|
|
14
|
+
isAMPM(): boolean;
|
|
15
|
+
getTimeParts(date: any): {
|
|
16
|
+
hours: string;
|
|
17
|
+
minutes: string;
|
|
18
|
+
seconds: string;
|
|
19
|
+
milliseconds: string;
|
|
20
|
+
ampm: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
import React from "react";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default class YearsView extends React.Component<any, any, any> {
|
|
2
|
+
static defaultProps: {
|
|
3
|
+
renderYear: (props: any, year: any) => JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
constructor(props: any);
|
|
6
|
+
constructor(props: any, context: any);
|
|
7
|
+
renderNavigation(): JSX.Element;
|
|
8
|
+
renderYears(): JSX.Element[];
|
|
9
|
+
renderYear(year: any): any;
|
|
10
|
+
getViewYear(): number;
|
|
11
|
+
getSelectedYear(): any;
|
|
12
|
+
disabledYearsCache: {};
|
|
13
|
+
isDisabledYear(year: any): any;
|
|
14
|
+
_updateSelectedYear: (event: any) => void;
|
|
15
|
+
}
|
|
16
|
+
import React from "react";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DismissibleProps {
|
|
3
|
+
/**
|
|
4
|
+
* The function that called in response to a dismissal.
|
|
5
|
+
*/
|
|
6
|
+
onDismiss: Function;
|
|
7
|
+
/**
|
|
8
|
+
* If `true`, pressing `ESC` key will trigger a dismissal. Default: `false`
|
|
9
|
+
*/
|
|
10
|
+
escape?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* When `true` clicking outside of the surrounding area triggers a dismissal. Default: `false`
|
|
13
|
+
*/
|
|
14
|
+
click?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* When `true` there will be no dismissals. Default: `false`
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* An extra Document to add the event listeners too.
|
|
21
|
+
*
|
|
22
|
+
* Used when the dismissible area is inside of an iframe.
|
|
23
|
+
*/
|
|
24
|
+
document?: Document;
|
|
25
|
+
/**
|
|
26
|
+
* Adding this flag allows click events outside of the
|
|
27
|
+
* dismissible area to propagate to their intended target.
|
|
28
|
+
*/
|
|
29
|
+
allowClickPropagation?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const Dismissible: React.FC<DismissibleProps>;
|
|
32
|
+
export declare function useDismissible({ onDismiss, escape, click, disabled, allowClickPropagation, document: customDocument, }: DismissibleProps): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dismissible';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './form-modal';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FullscreenModal: ({ className, style, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: {};
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* @alias [FullscreenModal]
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
11
|
+
export declare const ModalFullscreen: ({ className, style, ...props }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: {};
|
|
15
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PopupModal: ({ className, style, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: {};
|
|
6
|
+
}) => JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* @alias [PopupModal]
|
|
9
|
+
* @deprecated
|
|
10
|
+
*/
|
|
11
|
+
export declare const ModalPopup: ({ className, style, ...props }: {
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: {};
|
|
15
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Plugin } from '../core';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a Screen that should be accessible via the CMS.
|
|
5
|
+
*
|
|
6
|
+
* The purpose of these screens is to give a way to display information
|
|
7
|
+
* about the website that is not suited to inline editing. Example use
|
|
8
|
+
* cases may include:
|
|
9
|
+
*
|
|
10
|
+
* * User Management
|
|
11
|
+
* * CI build status
|
|
12
|
+
* * Website Metadata e.g. SEO
|
|
13
|
+
* * Layout Configuration e.g. Menus
|
|
14
|
+
*/
|
|
15
|
+
export interface ScreenPlugin<ExtraProps = {}> extends Plugin {
|
|
16
|
+
__type: 'screen';
|
|
17
|
+
Component(props: ScreenComponentProps & ExtraProps): React.ReactElement;
|
|
18
|
+
Icon: any;
|
|
19
|
+
layout: 'fullscreen' | 'popup';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The set of props passed to all Screen Components.
|
|
23
|
+
*/
|
|
24
|
+
export interface ScreenComponentProps {
|
|
25
|
+
close(): void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* An options object used to create Screen Plugins.
|
|
29
|
+
*/
|
|
30
|
+
export interface ScreenOptions<ExtraProps = {}> {
|
|
31
|
+
name: string;
|
|
32
|
+
Component: React.FC<ExtraProps & ScreenComponentProps>;
|
|
33
|
+
Icon: any;
|
|
34
|
+
layout?: ScreenPlugin['layout'];
|
|
35
|
+
props?: ExtraProps;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Creates screen plugins.
|
|
39
|
+
*
|
|
40
|
+
* @param options
|
|
41
|
+
*/
|
|
42
|
+
export declare function createScreen<ExtraProps>({ Component, props, ...options }: ScreenOptions<ExtraProps>): ScreenPlugin<ExtraProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TinaState } from '../../tina-state';
|
|
3
|
+
declare type FormListItem = TinaState['formLists'][number]['items'][number];
|
|
4
|
+
export interface FormsListProps {
|
|
5
|
+
formList: FormListItem[];
|
|
6
|
+
setActiveFormId(id: string): void;
|
|
7
|
+
isEditing: Boolean;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const FormListItem: ({ item, depth, setActiveFormId, }: {
|
|
11
|
+
item: Extract<FormListItem, {
|
|
12
|
+
type: 'document';
|
|
13
|
+
}>;
|
|
14
|
+
depth: number;
|
|
15
|
+
setActiveFormId: (id: string) => void;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export declare const FormLists: (props: {
|
|
18
|
+
isEditing: boolean;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
export declare const FormList: (props: {
|
|
21
|
+
isEditing: boolean;
|
|
22
|
+
setActiveFormId: (id: string) => void;
|
|
23
|
+
formList: TinaState['formLists'][number];
|
|
24
|
+
}) => JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ScreenPlugin } from '../../react-screens';
|
|
3
|
+
import { CloudConfigPlugin } from '../../react-cloud-config';
|
|
4
|
+
interface NavProps {
|
|
5
|
+
isLocalMode: boolean;
|
|
6
|
+
children?: any;
|
|
7
|
+
className?: string;
|
|
8
|
+
userName?: string;
|
|
9
|
+
showCollections: boolean;
|
|
10
|
+
collectionsInfo: {
|
|
11
|
+
collections: {
|
|
12
|
+
label?: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
contentCreators?: any;
|
|
17
|
+
screens?: ScreenPlugin[];
|
|
18
|
+
cloudConfigs?: CloudConfigPlugin[];
|
|
19
|
+
sidebarWidth?: number;
|
|
20
|
+
RenderNavSite: React.ComponentType<{
|
|
21
|
+
view: ScreenPlugin;
|
|
22
|
+
}>;
|
|
23
|
+
RenderNavCloud: React.ComponentType<{
|
|
24
|
+
config: CloudConfigPlugin;
|
|
25
|
+
}>;
|
|
26
|
+
RenderNavCollection: React.ComponentType<{
|
|
27
|
+
collection: {
|
|
28
|
+
label: string;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
}
|
|
33
|
+
export declare const Nav: ({ isLocalMode, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, ...props }: NavProps) => JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Form } from '../../forms';
|
|
3
|
+
export declare const FormsView: ({ children, }: {
|
|
4
|
+
children?: React.ReactChild | React.ReactChild[];
|
|
5
|
+
}) => JSX.Element;
|
|
6
|
+
export interface MultiformFormHeaderProps {
|
|
7
|
+
activeForm: {
|
|
8
|
+
activeFieldName?: string;
|
|
9
|
+
tinaForm: Form;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare const MultiformFormHeader: ({ activeForm, }: MultiformFormHeaderProps) => JSX.Element;
|
|
13
|
+
export interface FormHeaderProps {
|
|
14
|
+
activeForm: {
|
|
15
|
+
activeFieldName?: string;
|
|
16
|
+
tinaForm: Form;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const FormHeader: ({ activeForm }: FormHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { SidebarState, SidebarStateOptions } from '../sidebar';
|
|
8
|
+
export declare const SidebarContext: React.Context<any>;
|
|
9
|
+
export declare const minPreviewWidth = 440;
|
|
10
|
+
export declare const minSidebarWidth = 360;
|
|
11
|
+
export declare const navBreakpoint = 1000;
|
|
12
|
+
export interface SidebarProviderProps {
|
|
13
|
+
sidebar: SidebarState;
|
|
14
|
+
resizingSidebar: boolean;
|
|
15
|
+
setResizingSidebar: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
|
+
defaultWidth?: SidebarStateOptions['defaultWidth'];
|
|
17
|
+
position?: SidebarStateOptions['position'];
|
|
18
|
+
defaultState?: SidebarStateOptions['defaultState'];
|
|
19
|
+
}
|
|
20
|
+
export declare function SidebarProvider({ position, resizingSidebar, setResizingSidebar, defaultWidth, sidebar, }: SidebarProviderProps): JSX.Element;
|
|
21
|
+
export declare const updateBodyDisplacement: ({ position, displayState, sidebarWidth, resizingSidebar, }: {
|
|
22
|
+
position?: string;
|
|
23
|
+
displayState: any;
|
|
24
|
+
sidebarWidth: any;
|
|
25
|
+
resizingSidebar: any;
|
|
26
|
+
}) => void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TinaCMS } from '../../tina-cms';
|
|
3
|
+
export declare const useGetEvents: (cms: TinaCMS, cursor?: string, existingEvents?: {
|
|
4
|
+
message: string;
|
|
5
|
+
id: string;
|
|
6
|
+
timestamp: number;
|
|
7
|
+
isError: boolean;
|
|
8
|
+
isGlobal: boolean;
|
|
9
|
+
}[]) => {
|
|
10
|
+
events: {
|
|
11
|
+
message: string;
|
|
12
|
+
id: string;
|
|
13
|
+
timestamp: number;
|
|
14
|
+
isError: boolean;
|
|
15
|
+
isGlobal: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
cursor: string;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
error: Error;
|
|
20
|
+
};
|
|
21
|
+
export declare const SyncErrorWidget: ({ cms }: {
|
|
22
|
+
cms: any;
|
|
23
|
+
}) => JSX.Element;
|
|
24
|
+
export declare const SyncStatusModal: ({ closeEventsModal, cms }: {
|
|
25
|
+
closeEventsModal: any;
|
|
26
|
+
cms: any;
|
|
27
|
+
}) => JSX.Element;
|
|
28
|
+
export declare const SyncStatus: ({ cms, setEventsOpen }: {
|
|
29
|
+
cms: any;
|
|
30
|
+
setEventsOpen: any;
|
|
31
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventBus, Callback } from '../core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface SidebarStateOptions {
|
|
4
|
+
position?: SidebarPosition;
|
|
5
|
+
buttons?: SidebarButtons;
|
|
6
|
+
placeholder?: React.FC;
|
|
7
|
+
defaultWidth?: number;
|
|
8
|
+
defaultState?: DefaultSidebarState;
|
|
9
|
+
renderNav?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
* `buttons` set on the form directly
|
|
14
|
+
* via form config options
|
|
15
|
+
*/
|
|
16
|
+
export interface SidebarButtons {
|
|
17
|
+
save: string;
|
|
18
|
+
reset: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type SidebarPosition = 'displace' | 'overlay';
|
|
21
|
+
export declare type DefaultSidebarState = 'open' | 'closed';
|
|
22
|
+
export declare class SidebarState {
|
|
23
|
+
private events;
|
|
24
|
+
private _isOpen;
|
|
25
|
+
placeholder: React.FC;
|
|
26
|
+
defaultState: DefaultSidebarState;
|
|
27
|
+
position: SidebarPosition;
|
|
28
|
+
renderNav: boolean;
|
|
29
|
+
buttons: SidebarButtons;
|
|
30
|
+
constructor(events: EventBus, options?: SidebarStateOptions);
|
|
31
|
+
get isOpen(): boolean;
|
|
32
|
+
set isOpen(nextValue: boolean);
|
|
33
|
+
subscribe(callback: Callback): () => void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './use-cms';
|
|
2
|
+
export * from './use-form';
|
|
3
|
+
export * from './use-plugin';
|
|
4
|
+
export * from './use-subscribable';
|
|
5
|
+
export * from './use-watch-form-values';
|
|
6
|
+
export * from './with-plugin';
|
|
7
|
+
export * from './with-tina';
|
|
8
|
+
export { useCMSEvent } from '../react-core';
|
|
9
|
+
export type { Plugin } from '../core';
|
|
10
|
+
export type { Form, FormOptions, Field } from '../forms';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormOptions, Form } from '../forms';
|
|
2
|
+
import { WatchableFormValue } from '../react-core';
|
|
3
|
+
export { useLocalForm, useForm } from '../react-core';
|
|
4
|
+
export type { WatchableFormValue } from '../react-core';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated See https://github.com/tinacms/rfcs/blob/master/0006-form-hook-conventions.md
|
|
7
|
+
*/
|
|
8
|
+
export declare function useGlobalForm<FormShape = any>(options: FormOptions<any>, watch?: Partial<WatchableFormValue>): [FormShape, Form | undefined];
|
|
9
|
+
/**
|
|
10
|
+
* Creates and registers ScreenPlugin that renders the given Form.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useFormScreenPlugin(form: Form, icon?: any, layout?: 'fullscreen' | 'popup'): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { usePlugins, usePlugin } from '../react-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSubscribable } from '../react-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useWatchFormValues } from '../react-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withPlugins, withPlugin } from '../react-core';
|