@fileverse-dev/ddoc 2.5.0-patch-6 → 2.5.0-patch-7
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/{ccip-BfJerJLF.mjs → ccip-BEGiWGv-.mjs} +1 -1
- package/dist/{index-DGXpwyxg.mjs → index-CnBiDTuo.mjs} +1118 -1096
- package/dist/index.es.js +1 -1
- package/dist/package/components/toc/document-outline.d.ts +1 -1
- package/dist/package/components/toc/toc.d.ts +2 -2
- package/dist/package/components/toc/types.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DocumentOutlineProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const DocumentOutline: ({ editor, hasToC, items, setItems, showTOC, setShowTOC, isPreviewMode, }: DocumentOutlineProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DocumentOutline: ({ editor, hasToC, items, setItems, showTOC, setShowTOC, isPreviewMode, orientation, }: DocumentOutlineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToCProps, ToCItemProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const ToCItem: import('react').MemoExoticComponent<({ item, onItemClick, index, }: ToCItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export declare const ToCItem: import('react').MemoExoticComponent<({ item, onItemClick, index, orientation, }: ToCItemProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export declare const ToCEmptyState: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
-
export declare const ToC: import('react').MemoExoticComponent<({ items, editor, setItems }: ToCProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export declare const ToC: import('react').MemoExoticComponent<({ items, editor, setItems, orientation }: ToCProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -12,12 +12,14 @@ export type ToCProps = {
|
|
|
12
12
|
items: ToCItemType[];
|
|
13
13
|
setItems: (items: ToCItemType[] | ((prev: ToCItemType[]) => ToCItemType[])) => void;
|
|
14
14
|
editor: Editor;
|
|
15
|
+
orientation?: 'portrait' | 'landscape';
|
|
15
16
|
};
|
|
16
17
|
export type ToCItemProps = {
|
|
17
18
|
item: ToCItemType;
|
|
18
19
|
onItemClick: (e: React.MouseEvent, id: string) => void;
|
|
19
20
|
onItemRemove: (e: React.MouseEvent, id: string) => void;
|
|
20
21
|
index: number;
|
|
22
|
+
orientation?: 'portrait' | 'landscape';
|
|
21
23
|
};
|
|
22
24
|
export interface DocumentOutlineProps {
|
|
23
25
|
editor: Editor;
|
|
@@ -27,4 +29,5 @@ export interface DocumentOutlineProps {
|
|
|
27
29
|
showTOC: boolean | undefined;
|
|
28
30
|
setShowTOC: React.Dispatch<SetStateAction<boolean>> | undefined;
|
|
29
31
|
isPreviewMode: boolean;
|
|
32
|
+
orientation?: 'portrait' | 'landscape';
|
|
30
33
|
}
|