@npm-questionpro/wick-ui-lib 1.21.1 → 1.22.0
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/src/components/appHeader/components/WuAppHeaderDropdownWrapper.d.ts +1 -0
- package/dist/src/components/card/index.d.ts +1 -1
- package/dist/src/components/contentEditor/WuContentEditor.d.ts +8 -0
- package/dist/src/components/contentEditor/extentions/config.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/fontFamily.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/fontSize.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/formatAlignment.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/formatClear.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/formatCode.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/formatColor.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/formatList.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/formatScript.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/formatStyle.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/formatText.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/image.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/link.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/table.d.ts +1 -0
- package/dist/src/components/contentEditor/hooks/useToolbar.d.ts +15 -0
- package/dist/src/components/contentEditor/index.d.ts +2 -0
- package/dist/src/components/contentEditor/ui/InlineDropdown.d.ts +20 -0
- package/dist/src/components/contentEditor/ui/Toolbar.d.ts +6 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +5508 -5303
- package/dist/wick-ui-lib/umd/index.js +8 -6
- package/package.json +27 -14
- package/dist/src/components/editor/WuEditor.d.ts +0 -9
- package/dist/src/components/editor/index.d.ts +0 -2
- package/dist/src/components/editor/partials/ImageModal.d.ts +0 -1
- package/dist/src/components/editor/partials/LinkModal.d.ts +0 -9
- package/dist/src/components/editor/partials/Menubar.d.ts +0 -1
- package/dist/src/components/editor/partials/TablePopover.d.ts +0 -1
- package/dist/src/components/editor/partials/config.d.ts +0 -2
- package/dist/src/components/editor/partials/fontFamily.d.ts +0 -1
- package/dist/src/components/editor/partials/helper.d.ts +0 -3
- package/dist/src/components/editor/partials/toolbarItems.d.ts +0 -20
- package/dist/src/components/editor/partials/wuEditorContext.d.ts +0 -13
- /package/dist/src/components/{editor/WuEditor.test.d.ts → contentEditor/WuContentEditor.test.d.ts} +0 -0
|
@@ -5,6 +5,7 @@ interface IWuAppHeaderAccountProps {
|
|
|
5
5
|
Trigger?: React.ReactElement;
|
|
6
6
|
triggerClassName?: string;
|
|
7
7
|
DropdownContent?: React.ReactElement;
|
|
8
|
+
isAllowActiveStyle?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const WuAppHeaderDropdownWrapper: React.FC<IWuAppHeaderAccountProps>;
|
|
10
11
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { WuCard } from './WuCard';
|
|
1
|
+
export { WuCard, WuCardFooter, WuCardHeader } from './WuCard';
|
|
2
2
|
export type { IWuCardProps } from './WuCard';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface IWuContentEditorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
onUpdate?: (content: string) => void;
|
|
5
|
+
customFonts?: string[];
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const WuContentEditor: React.FC<IWuContentEditorProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormatFontSize: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormatClear: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormatCode: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormatColor: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormatScript: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FormatTable: React.FC;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface IToolbarContextProps {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
customFonts?: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const ToolbarContext: React.Context<IToolbarContextProps | null>;
|
|
8
|
+
interface IToolbarProviderProps {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
customFonts?: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const ToolbarProvider: ({ editor, children, customFonts, }: IToolbarProviderProps) => React.JSX.Element;
|
|
14
|
+
export declare const useToolbar: () => IToolbarContextProps;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type IInlineDropdownItemProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
event: () => boolean;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
};
|
|
9
|
+
export type IInlineDropdownProps = {
|
|
10
|
+
id: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
items: IInlineDropdownItemProps[];
|
|
16
|
+
};
|
|
17
|
+
export declare const InlineDropdown: React.FC<{
|
|
18
|
+
action: IInlineDropdownProps;
|
|
19
|
+
defaultValue?: IInlineDropdownItemProps;
|
|
20
|
+
}>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -46,5 +46,5 @@ export * from './components/useTranslation';
|
|
|
46
46
|
export * from './components/virtualScroll';
|
|
47
47
|
export * from './docs/ui/colorSystem.ts';
|
|
48
48
|
export * from './components/drilldown';
|
|
49
|
-
export * from './components/editor';
|
|
50
49
|
export * from './components/stackedCard';
|
|
50
|
+
export * from './components/contentEditor';
|