|
@@ -253,7 +253,9 @@ export const useSidebarResizeDisabled = (isDisabled?: boolean): SWRResponse<bool
|
|
|
return useStaticSWR('isSidebarResizeDisabled', isDisabled, { fallbackData: false });
|
|
return useStaticSWR('isSidebarResizeDisabled', isDisabled, { fallbackData: false });
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// PageCreateModal
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* PageCreateModal
|
|
|
|
|
+*/
|
|
|
type CreateModalStatus = {
|
|
type CreateModalStatus = {
|
|
|
isOpened: boolean,
|
|
isOpened: boolean,
|
|
|
path?: string,
|
|
path?: string,
|
|
@@ -297,7 +299,9 @@ export const useCreateModalPath = (): SWRResponse<string | null | undefined, Err
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// PageDeleteModal
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* PageDeleteModal
|
|
|
|
|
+*/
|
|
|
export type IPageForPageDeleteModal = {
|
|
export type IPageForPageDeleteModal = {
|
|
|
pageId: string,
|
|
pageId: string,
|
|
|
revisionId?: string,
|
|
revisionId?: string,
|
|
@@ -343,7 +347,9 @@ export const usePageDeleteModalOpened = (): SWRResponse<(DeleteModalOpened | nul
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// PageDuplicateModal
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* PageDuplicateModal
|
|
|
|
|
+*/
|
|
|
export type IPageForPageDuplicateModal = {
|
|
export type IPageForPageDuplicateModal = {
|
|
|
pageId: string,
|
|
pageId: string,
|
|
|
path: string
|
|
path: string
|
|
@@ -372,7 +378,9 @@ export const usePageDuplicateModal = (status?: DuplicateModalStatus): SWRRespons
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
-// PageRenameModal
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* PageRenameModal
|
|
|
|
|
+*/
|
|
|
export type IPageForPageRenameModal = {
|
|
export type IPageForPageRenameModal = {
|
|
|
pageId: string,
|
|
pageId: string,
|
|
|
revisionId: string,
|
|
revisionId: string,
|
|
@@ -406,7 +414,9 @@ export const usePageRenameModal = (status?: RenameModalStatus): SWRResponse<Rena
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// PagePresentationModal
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* PagePresentationModal
|
|
|
|
|
+*/
|
|
|
type PresentationModalStatus = {
|
|
type PresentationModalStatus = {
|
|
|
isOpened: boolean,
|
|
isOpened: boolean,
|
|
|
href?: string
|
|
href?: string
|
|
@@ -432,7 +442,9 @@ export const usePagePresentationModal = (
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* DescendantsPageListModal
|
|
|
|
|
+*/
|
|
|
type DescendantsPageListModalStatus = {
|
|
type DescendantsPageListModalStatus = {
|
|
|
isOpened: boolean,
|
|
isOpened: boolean,
|
|
|
path?: string,
|
|
path?: string,
|
|
@@ -457,7 +469,9 @@ export const useDescendantsPageListModal = (
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+/*
|
|
|
|
|
+* PageAccessoriesModal
|
|
|
|
|
+*/
|
|
|
export const PageAccessoriesModalContents = {
|
|
export const PageAccessoriesModalContents = {
|
|
|
PageHistory: 'PageHistory',
|
|
PageHistory: 'PageHistory',
|
|
|
Attachment: 'Attachment',
|
|
Attachment: 'Attachment',
|