@npm-questionpro/wick-ui-lib 1.21.1 → 1.24.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 +13 -0
- package/dist/src/components/contentEditor/extentions/Alignment.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/BgColor.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/Block.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/Blockquote.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/Bold.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/ClearFormat.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/CodeLine.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/EmbedImage.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/EmbedLink.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/EmbedTable.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/Family.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/Italic.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/List.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/Size.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/Strikethrough.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/Subscript.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/Superscript.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/TextColor.d.ts +1 -0
- package/dist/src/components/contentEditor/extentions/Underline.d.ts +2 -0
- package/dist/src/components/contentEditor/extentions/config.d.ts +2 -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 +30 -0
- package/dist/src/components/drilldown/WuDrilldown.d.ts +22 -12
- package/dist/src/components/drilldown/WuDrilldownTitles.d.ts +12 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/wick-ui-lib/es/index.js +9439 -5524
- package/dist/wick-ui-lib/umd/index.js +17 -7
- package/package.json +28 -15
- 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,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IToolbarExtensionKey } from './ui/Toolbar';
|
|
3
|
+
export interface IWuContentEditorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onUpdate?: (content: string) => void;
|
|
6
|
+
customFonts?: string[];
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
toolbarPosition?: 'top' | 'bottom';
|
|
9
|
+
classNames?: Record<string, string>;
|
|
10
|
+
customToolbarChildren?: React.ReactNode;
|
|
11
|
+
toolbarItems?: IToolbarExtensionKey[];
|
|
12
|
+
}
|
|
13
|
+
export declare const WuContentEditor: React.FC<IWuContentEditorProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BgColor: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Blockquote: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ClearFormat: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CodeLine: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Table: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Subscript: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Superscript: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TextColor: 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
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
declare const TOOLBAR_EXTENSIONS: {
|
|
3
|
+
block: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
fontFamily: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
fontSize: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
bold: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
italic: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
underline: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
strike: import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
color: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
list: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
alignment: import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
image: import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
link: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
table: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
blockquote: import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
superscript: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
subscript: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
codeline: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
clear: import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
'|': import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
|
23
|
+
export type IToolbarExtensionKey = keyof typeof TOOLBAR_EXTENSIONS;
|
|
24
|
+
export interface IToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
25
|
+
editor: Editor;
|
|
26
|
+
customFonts?: string[];
|
|
27
|
+
items?: IToolbarExtensionKey[];
|
|
28
|
+
}
|
|
29
|
+
export declare const Toolbar: React.FC<IToolbarProps>;
|
|
30
|
+
export {};
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
export
|
|
2
|
+
export interface IWuDrilldownTitle {
|
|
3
|
+
id: `LEVEL_${number}`;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IWuDrilldownContext {
|
|
7
|
+
goNext: (id: `LEVEL_${number}`, data?: IWuDrilldownTitle) => void;
|
|
8
|
+
goBack: (id: `LEVEL_${number}`, data?: IWuDrilldownTitle) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface IWuDrilldownItem {
|
|
11
|
+
component: React.ReactNode | ((ctx: IWuDrilldownContext) => React.ReactNode);
|
|
12
|
+
}
|
|
13
|
+
export type IWuDrilldownAnimationVariant = 'default' | 'slideRight' | 'slideLeft' | 'fadeZoom';
|
|
14
|
+
export interface IWuDrilldownProps {
|
|
15
|
+
items: Record<`LEVEL_${number}`, IWuDrilldownItem>;
|
|
16
|
+
initial: `LEVEL_${number}`;
|
|
17
|
+
baseTitle?: IWuDrilldownTitle;
|
|
18
|
+
mode?: 'popLayout' | 'wait' | undefined;
|
|
19
|
+
headerClasses?: string;
|
|
20
|
+
offsetHeight?: number;
|
|
21
|
+
variant?: IWuDrilldownAnimationVariant;
|
|
22
|
+
}
|
|
23
|
+
export declare const WuDrilldown: React.FC<IWuDrilldownProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IWuDrilldownTitle } from './WuDrilldown';
|
|
3
|
+
interface IProps {
|
|
4
|
+
titles: IWuDrilldownTitle[];
|
|
5
|
+
currentLevel: `LEVEL_${number}`;
|
|
6
|
+
initial: `LEVEL_${number}`;
|
|
7
|
+
handleTitleClick: (e: React.MouseEvent<HTMLHeadingElement, MouseEvent>, levelId?: `LEVEL_${number}`) => void;
|
|
8
|
+
headerClasses?: string;
|
|
9
|
+
offsetHeight?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const WuDrilldownTitles: React.FC<IProps>;
|
|
12
|
+
export {};
|
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';
|