@craftercms/studio-ui
Version:
Services, components, models & utils to build CrafterCMS authoring extensions.
49 lines (47 loc) • 2.86 kB
JavaScript
/*
* 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/>.
*/
/*
* 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 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { createAction } from '@reduxjs/toolkit';
export const fetchItemVersions = /*#__PURE__*/ createAction('FETCH_ITEM_VERSIONS');
export const fetchItemVersionsComplete = /*#__PURE__*/ createAction('FETCH_ITEM_VERSIONS_COMPLETE');
export const fetchItemVersionsFailed = /*#__PURE__*/ createAction('FETCH_ITEM_VERSIONS_FAILED');
export const versionsChangePage = /*#__PURE__*/ createAction('VERSIONS_CHANGE_PAGE');
export const versionsChangeLimit = /*#__PURE__*/ createAction('VERSIONS_CHANGE_LIMIT');
export const versionsChangeItem = /*#__PURE__*/ createAction('VERSIONS_CHANGE_ITEM');
export const compareVersion = /*#__PURE__*/ createAction('COMPARE_VERSIONS');
export const compareToPreviousVersion = /*#__PURE__*/ createAction('COMPARE_TO_PREVIOUS_VERSION');
export const resetVersionsState = /*#__PURE__*/ createAction('RESET_VERSIONS_STATE');
export const compareBothVersions = /*#__PURE__*/ createAction('COMPARE_BOTH_VERSIONS');
export const compareBothVersionsComplete = /*#__PURE__*/ createAction('COMPARE_BOTH_VERSIONS_COMPLETE');
export const compareBothVersionsFailed = /*#__PURE__*/ createAction('COMPARE_BOTH_VERSIONS_FAILED');
export const revertContent = /*#__PURE__*/ createAction('REVERT_CONTENT');
export const revertContentComplete = /*#__PURE__*/ createAction('REVERT_CONTENT_COMPLETE');
export const revertContentFailed = /*#__PURE__*/ createAction('REVERT_CONTENT_FAILED');
export const revertToPreviousVersion = /*#__PURE__*/ createAction('REVERT_TO_PREVIOUS_VERSION');