@npm-questionpro/wick-ui-lib 1.21.0 → 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.
Files changed (38) hide show
  1. package/dist/src/components/appHeader/components/WuAppHeaderDropdownWrapper.d.ts +1 -0
  2. package/dist/src/components/card/index.d.ts +1 -1
  3. package/dist/src/components/contentEditor/WuContentEditor.d.ts +8 -0
  4. package/dist/src/components/contentEditor/extentions/config.d.ts +2 -0
  5. package/dist/src/components/contentEditor/extentions/fontFamily.d.ts +2 -0
  6. package/dist/src/components/contentEditor/extentions/fontSize.d.ts +1 -0
  7. package/dist/src/components/contentEditor/extentions/formatAlignment.d.ts +2 -0
  8. package/dist/src/components/contentEditor/extentions/formatClear.d.ts +1 -0
  9. package/dist/src/components/contentEditor/extentions/formatCode.d.ts +1 -0
  10. package/dist/src/components/contentEditor/extentions/formatColor.d.ts +1 -0
  11. package/dist/src/components/contentEditor/extentions/formatList.d.ts +2 -0
  12. package/dist/src/components/contentEditor/extentions/formatScript.d.ts +1 -0
  13. package/dist/src/components/contentEditor/extentions/formatStyle.d.ts +2 -0
  14. package/dist/src/components/contentEditor/extentions/formatText.d.ts +2 -0
  15. package/dist/src/components/contentEditor/extentions/image.d.ts +2 -0
  16. package/dist/src/components/contentEditor/extentions/link.d.ts +2 -0
  17. package/dist/src/components/contentEditor/extentions/table.d.ts +1 -0
  18. package/dist/src/components/contentEditor/hooks/useToolbar.d.ts +15 -0
  19. package/dist/src/components/contentEditor/index.d.ts +2 -0
  20. package/dist/src/components/contentEditor/ui/InlineDropdown.d.ts +20 -0
  21. package/dist/src/components/contentEditor/ui/Toolbar.d.ts +6 -0
  22. package/dist/src/index.d.ts +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/wick-ui-lib/es/index.js +5510 -5305
  25. package/dist/wick-ui-lib/umd/index.js +8 -6
  26. package/package.json +27 -14
  27. package/dist/src/components/editor/WuEditor.d.ts +0 -9
  28. package/dist/src/components/editor/index.d.ts +0 -2
  29. package/dist/src/components/editor/partials/ImageModal.d.ts +0 -1
  30. package/dist/src/components/editor/partials/LinkModal.d.ts +0 -9
  31. package/dist/src/components/editor/partials/Menubar.d.ts +0 -1
  32. package/dist/src/components/editor/partials/TablePopover.d.ts +0 -1
  33. package/dist/src/components/editor/partials/config.d.ts +0 -2
  34. package/dist/src/components/editor/partials/fontFamily.d.ts +0 -1
  35. package/dist/src/components/editor/partials/helper.d.ts +0 -3
  36. package/dist/src/components/editor/partials/toolbarItems.d.ts +0 -20
  37. package/dist/src/components/editor/partials/wuEditorContext.d.ts +0 -13
  38. /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,2 @@
1
+ import { Extensions } from '@tiptap/react';
2
+ export declare const extensionConfig: Extensions;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatFontFamily: React.FC;
@@ -0,0 +1 @@
1
+ export declare const FormatFontSize: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatAlignment: 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,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatList: React.FC;
@@ -0,0 +1 @@
1
+ export declare const FormatScript: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatStyle: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatText: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatImage: React.FC;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const FormatLink: 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,2 @@
1
+ export { WuContentEditor } from './WuContentEditor';
2
+ export type { IWuContentEditorProps } from './WuContentEditor';
@@ -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,6 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export interface IToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ editor: Editor;
4
+ customFonts?: string[];
5
+ }
6
+ export declare const Toolbar: React.FC<IToolbarProps>;
@@ -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';