UNPKG

@craftercms/studio-ui

Version:

Services, components, models & utils to build CrafterCMS authoring extensions.

249 lines (247 loc) 15.3 kB
/* * Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import StandardAction from '../../models/StandardAction'; import { FetchContentVersion } from '../../models/Version'; import { FetchDeleteDependenciesResponse } from '../../services/dependencies'; import { LegacyFormDialogStateProps } from '../../components/LegacyFormDialog/utils'; import ContentInstance from '../../models/ContentInstance'; import { ContentTypeFieldValidation, DetailedItem } from '../../models'; export declare const showHistoryDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeHistoryDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const historyDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'HISTORY_DIALOG_CLOSED'>; export declare const historyDialogUpdate: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showViewVersionDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeViewVersionDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const viewVersionDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const fetchContentVersion: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< FetchContentVersion, string >; export declare const fetchContentVersionComplete: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, string>; export declare const fetchContentVersionFailed: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, string>; export declare const showCompareVersionsDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeCompareVersionsDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const compareVersionsDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'COMPARE_VERSIONS_DIALOG_CLOSED'>; export declare const showConfirmDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeConfirmDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const confirmDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CONFIRM_DIALOG_CLOSED'>; export declare const showPublishDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const updatePublishDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closePublishDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const publishDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'PUBLISH_DIALOG_CLOSED'>; export declare const showDeleteDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const updateDeleteDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeDeleteDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const deleteDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'DELETE_DIALOG_CLOSED'>; export declare const fetchDeleteDependencies: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< { paths: string[]; }, string >; export declare const fetchDeleteDependenciesComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< FetchDeleteDependenciesResponse, string >; export declare const fetchDeleteDependenciesFailed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'FETCH_DELETE_DEPENDENCIES_FAILED'>; export declare const showNewContentDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeNewContentDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const newContentDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'NEW_CONTENT_DIALOG_CLOSED'>; export declare const showChangeContentTypeDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeChangeContentTypeDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const changeContentTypeDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CHANGE_CONTENT_TYPE_DIALOG_CLOSED'>; export declare const showDependenciesDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeDependenciesDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const dependenciesDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'DEPENDENCIES_DIALOG_CLOSED'>; export declare const showWorkflowCancellationDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeWorkflowCancellationDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const workflowCancellationDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'WORKFLOW_CANCELLATION_DIALOG_CLOSED'>; export declare const showRejectDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeRejectDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const rejectDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'REJECT_DIALOG_CLOSED'>; export declare const updateRejectDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showEditDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< LegacyFormDialogStateProps, string >; export declare const closeEditDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const editDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const newContentCreationComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const updateEditConfig: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, string>; export declare const showCodeEditorDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeCodeEditorDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const codeEditorDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CODE_EDITOR_DIALOG_CLOSED'>; export declare const updateCodeEditorDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showCreateFolderDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeCreateFolderDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const createFolderDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CREATE_FOLDER_DIALOG_CLOSED'>; export declare const updateCreateFolderDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showCreateFileDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeCreateFileDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const createFileDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CREATE_FILE_DIALOG_CLOSED'>; export declare const updateCreateFileDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showRenameAssetDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeRenameAssetDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const renameAssetDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'RENAME_ASSET_DIALOG_CLOSED'>; export declare const updateRenameAssetDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const fetchRenameAssetDependants: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'FETCH_RENAME_ASSET_DEPENDANTS'>; export declare const fetchRenameAssetDependantsComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< { dependants: DetailedItem[]; }, string >; export declare const fetchRenameAssetDependantsFailed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'FETCH_RENAME_ASSET_DEPENDANTS_FAILED'>; export declare const showCopyDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeCopyDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const copyDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'COPY_DIALOG_CLOSED'>; export declare const updateCopyDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showUploadDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeUploadDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const uploadDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'UPLOAD_DIALOG_CLOSED'>; export declare const showSingleFileUploadDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeSingleFileUploadDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const singleFileUploadDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'SINGLE_FILE_UPLOAD_DIALOG_CLOSED'>; export declare const updateSingleFileUploadDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showPreviewDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const updatePreviewDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closePreviewDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const previewDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'PREVIEW_DIALOG_CLOSED'>; export declare const showEditSiteDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeEditSiteDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const editSiteDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'EDIT_SITE_DIALOG_CLOSED'>; export declare const updateEditSiteDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showPathSelectionDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closePathSelectionDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const pathSelectionDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'PATH_SELECTION_CLOSED'>; export declare const showItemMenu: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeItemMenu: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const itemMenuClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'ITEM_MENU_CLOSED'>; export declare const showItemMegaMenu: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeItemMegaMenu: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const itemMegaMenuClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'ITEM_MEGA_MENU_CLOSED'>; export declare const showLauncher: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeLauncher: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CLOSE_LAUNCHER'>; export declare const showPublishingStatusDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closePublishingStatusDialog: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'HIDE_PUBLISHING_STATUS_DIALOG'>; export declare const showUnlockPublisherDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeUnlockPublisherDialog: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'CLOSE_UNLOCK_PUBLISHER_DIALOG'>; export declare const showWidgetDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const closeWidgetDialog: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< StandardAction<any, any>, string >; export declare const widgetDialogClosed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'WIDGET_DIALOG_CLOSED'>; export declare const updateWidgetDialog: import('@reduxjs/toolkit').ActionCreatorWithNonInferrablePayload<string>; export declare const showKeyboardShortcutsDialog: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'SHOW_KEYBOARD_SHORTCUTS_DIALOG'>; export interface ShowRtePickerActionsPayload { datasources: Record<string, ContentTypeFieldValidation>; model: ContentInstance; type: 'image' | 'media'; rect: DOMRect; } export declare const showRtePickerActions: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< ShowRtePickerActionsPayload, string >; export declare const rtePickerActionResult: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< { path: string; name: string; }, string >;