@fileverse-dev/ddoc 2.0.2-patch-9 → 2.0.3-patch-1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +24472 -23143
- package/dist/package/utils/getTemplateContent.d.ts +3 -0
- package/dist/package/utils/template-utils.d.ts +5 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,3 +1,4 @@
|
|
1
|
+
import { JSONContent } from '@tiptap/react';
|
1
2
|
import { LucideIconProps } from '@fileverse/ui';
|
2
3
|
|
3
4
|
type IconType = LucideIconProps['name'] | string;
|
@@ -5,9 +6,10 @@ type TemplateButtonProps = {
|
|
5
6
|
label: string;
|
6
7
|
icon: IconType;
|
7
8
|
onClick: () => void;
|
9
|
+
content: JSONContent | null;
|
8
10
|
}[];
|
9
11
|
declare const renderIcon: (icon: IconType, className?: string) => import("react/jsx-runtime").JSX.Element | null;
|
10
|
-
declare const createTemplateButtons: (addTemplate: (template:
|
11
|
-
declare const createMoreTemplates: (addTemplate: (template:
|
12
|
-
declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number,
|
12
|
+
declare const createTemplateButtons: (addTemplate: (template: JSONContent) => void) => TemplateButtonProps;
|
13
|
+
declare const createMoreTemplates: (addTemplate: (template: JSONContent) => void) => TemplateButtonProps;
|
14
|
+
declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, toggleAllTemplates: () => void, isExpanded: boolean) => import("react/jsx-runtime").JSX.Element;
|
13
15
|
export { renderIcon, createTemplateButtons, createMoreTemplates, renderTemplateButtons };
|