* Implemented code splitting of some files for SAML integration * Implemented code splitting of some more files for SAML integration * updated redirect url component * fixed an import statement * fixed a unit test * updated restart banner tooltip logic * updated an import statement
69 lines
2.0 KiB
TypeScript
69 lines
2.0 KiB
TypeScript
import {
|
|
appLevelWebsocketWriteEvent,
|
|
pageLevelWebsocketWriteEvent,
|
|
} from "./websocketActions";
|
|
import { ReduxActionTypes } from "@appsmith/constants/ReduxActionConstants";
|
|
import { PAGE_LEVEL_SOCKET_EVENTS } from "sagas/WebsocketSagas/socketEvents";
|
|
|
|
// App Editors presence Socket actions
|
|
export const collabStartEditingAppEvent = (appId: string) =>
|
|
appLevelWebsocketWriteEvent({
|
|
type: PAGE_LEVEL_SOCKET_EVENTS.START_EDITING_APP,
|
|
payload: appId,
|
|
});
|
|
|
|
export const collabStopEditingAppEvent = (appId: string) =>
|
|
appLevelWebsocketWriteEvent({
|
|
type: PAGE_LEVEL_SOCKET_EVENTS.STOP_EDITING_APP,
|
|
payload: appId,
|
|
});
|
|
|
|
// App Editor presence Redux actions
|
|
export const collabSetAppEditors = (payload: any) => ({
|
|
type: ReduxActionTypes.APP_COLLAB_LIST_EDITORS,
|
|
payload,
|
|
});
|
|
|
|
export const collabResetAppEditors = () => ({
|
|
type: ReduxActionTypes.APP_COLLAB_RESET_EDITORS,
|
|
});
|
|
|
|
// Pointer Sharing Socket Events
|
|
export const collabStartSharingPointerEvent = (pageId: string) =>
|
|
pageLevelWebsocketWriteEvent({
|
|
type: PAGE_LEVEL_SOCKET_EVENTS.START_EDITING_APP,
|
|
payload: pageId,
|
|
});
|
|
|
|
export const collabStopSharingPointerEvent = (pageId?: string) =>
|
|
pageLevelWebsocketWriteEvent({
|
|
type: PAGE_LEVEL_SOCKET_EVENTS.STOP_EDITING_APP,
|
|
payload: pageId,
|
|
});
|
|
|
|
export const collabShareUserPointerEvent = (payload: any) =>
|
|
pageLevelWebsocketWriteEvent({
|
|
type: PAGE_LEVEL_SOCKET_EVENTS.SHARE_USER_POINTER,
|
|
payload,
|
|
});
|
|
|
|
// Pointer Sharing Redux actions
|
|
export const collabSetEditorsPointersData = (payload: any) => ({
|
|
type: ReduxActionTypes.APP_COLLAB_SET_EDITORS_POINTER_DATA,
|
|
payload,
|
|
});
|
|
|
|
export const collabUnsetEditorsPointersData = (payload: any) => ({
|
|
type: ReduxActionTypes.APP_COLLAB_UNSET_EDITORS_POINTER_DATA,
|
|
payload,
|
|
});
|
|
|
|
export const collabResetEditorsPointersData = () => ({
|
|
type: ReduxActionTypes.APP_COLLAB_RESET_EDITORS_POINTER_DATA,
|
|
});
|
|
|
|
export const collabConcurrentPageEditorsData = (payload: any) => ({
|
|
type: ReduxActionTypes.APP_COLLAB_SET_CONCURRENT_PAGE_EDITORS,
|
|
payload,
|
|
});
|