@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.
@@ -0,0 +1,3 @@
1
+ import { JSONContent } from '@tiptap/react';
2
+
3
+ export declare const getTemplateContent: (templateQuery: string) => JSONContent | null;
@@ -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: string) => void) => TemplateButtonProps;
11
- declare const createMoreTemplates: (addTemplate: (template: string) => void) => TemplateButtonProps;
12
- declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, expandAllTemplates: () => void) => import("react/jsx-runtime").JSX.Element;
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 };