@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.
- 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 +5510 -5305
- 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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm-questionpro/wick-ui-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.22.0",
|
|
5
5
|
"description": "A React component library by QuestionPro for building web applications with ease",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@base-ui
|
|
40
|
+
"@base-ui/react": "^1.0.0",
|
|
41
41
|
"@floating-ui/react": "^0.27.16",
|
|
42
42
|
"@npm-questionpro/wick-ui-icon": "^8.0.2",
|
|
43
43
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
@@ -58,6 +58,19 @@
|
|
|
58
58
|
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
59
59
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
60
60
|
"@tanstack/react-table": "^8.21.3",
|
|
61
|
+
"@tiptap/extension-code": "^3.13.0",
|
|
62
|
+
"@tiptap/extension-image": "^3.13.0",
|
|
63
|
+
"@tiptap/extension-link": "^3.12.0",
|
|
64
|
+
"@tiptap/extension-list": "^3.13.0",
|
|
65
|
+
"@tiptap/extension-subscript": "^3.11.0",
|
|
66
|
+
"@tiptap/extension-superscript": "^3.11.0",
|
|
67
|
+
"@tiptap/extension-table": "^3.13.0",
|
|
68
|
+
"@tiptap/extension-text-align": "^3.11.1",
|
|
69
|
+
"@tiptap/extension-text-style": "^3.13.0",
|
|
70
|
+
"@tiptap/extension-typography": "^3.11.0",
|
|
71
|
+
"@tiptap/pm": "^3.11.0",
|
|
72
|
+
"@tiptap/react": "^3.11.0",
|
|
73
|
+
"@tiptap/starter-kit": "^3.11.0",
|
|
61
74
|
"class-variance-authority": "^0.7.1",
|
|
62
75
|
"clsx": "^2.1.1",
|
|
63
76
|
"cmdk": "1.0.4",
|
|
@@ -70,7 +83,7 @@
|
|
|
70
83
|
"tailwind-merge": "^2.6.0"
|
|
71
84
|
},
|
|
72
85
|
"peerDependencies": {
|
|
73
|
-
"@base-ui
|
|
86
|
+
"@base-ui/react": "^1.0.0",
|
|
74
87
|
"@npm-questionpro/wick-ui-icon": ">= 8.0.2",
|
|
75
88
|
"@radix-ui/react-avatar": "^1.1.2",
|
|
76
89
|
"@radix-ui/react-checkbox": "^1.1.3",
|
|
@@ -88,16 +101,6 @@
|
|
|
88
101
|
"@radix-ui/react-toggle-group": "^1.1.1",
|
|
89
102
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
90
103
|
"@tanstack/react-table": "^8.20.5",
|
|
91
|
-
"class-variance-authority": "^0.7.1",
|
|
92
|
-
"clsx": "^2.1.1",
|
|
93
|
-
"cmdk": "1.0.4",
|
|
94
|
-
"date-fns": "^4.1.0",
|
|
95
|
-
"react": ">= 18 < 20",
|
|
96
|
-
"react-day-picker": "9.5.1",
|
|
97
|
-
"react-dom": ">= 18 < 20",
|
|
98
|
-
"react-transition-group": "^4.4.5",
|
|
99
|
-
"react-virtuoso": "^4.12.3",
|
|
100
|
-
"tailwind-merge": "^2.6.0",
|
|
101
104
|
"@tiptap/extension-code": "^3.13.0",
|
|
102
105
|
"@tiptap/extension-image": "^3.13.0",
|
|
103
106
|
"@tiptap/extension-link": "^3.12.0",
|
|
@@ -110,7 +113,17 @@
|
|
|
110
113
|
"@tiptap/extension-typography": "^3.11.0",
|
|
111
114
|
"@tiptap/pm": "^3.11.0",
|
|
112
115
|
"@tiptap/react": "^3.11.0",
|
|
113
|
-
"@tiptap/starter-kit": "^3.11.0"
|
|
116
|
+
"@tiptap/starter-kit": "^3.11.0",
|
|
117
|
+
"class-variance-authority": "^0.7.1",
|
|
118
|
+
"clsx": "^2.1.1",
|
|
119
|
+
"cmdk": "1.0.4",
|
|
120
|
+
"date-fns": "^4.1.0",
|
|
121
|
+
"react": ">= 18 < 20",
|
|
122
|
+
"react-day-picker": "9.5.1",
|
|
123
|
+
"react-dom": ">= 18 < 20",
|
|
124
|
+
"react-transition-group": "^4.4.5",
|
|
125
|
+
"react-virtuoso": "^4.12.3",
|
|
126
|
+
"tailwind-merge": "^2.6.0"
|
|
114
127
|
},
|
|
115
128
|
"devDependencies": {
|
|
116
129
|
"@eslint/js": "^9.39.1",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Extensions } from '@tiptap/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
export interface IWuEditorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
extensions?: Extensions[];
|
|
6
|
-
onChange?: (content: string) => void;
|
|
7
|
-
content?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const WuEditor: React.FC<IWuEditorProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ImageModal: React.FC;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface ILinkModalProps {
|
|
2
|
-
open: boolean;
|
|
3
|
-
onOpenChange: (open: boolean) => void;
|
|
4
|
-
onSubmit: (url: string | null, text?: string) => void;
|
|
5
|
-
initialText?: string;
|
|
6
|
-
initialUrl?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const LinkModal: React.FC<ILinkModalProps>;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Menubar: React.FC;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const TablePopover: React.FC;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FontFamilySelector: React.FC;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IWuIcons } from '../../typography';
|
|
2
|
-
import { Editor } from '@tiptap/react';
|
|
3
|
-
import { IOpenLinkModalFn } from './helper';
|
|
4
|
-
export type IMenuBarButton = {
|
|
5
|
-
id: string;
|
|
6
|
-
icon: IWuIcons;
|
|
7
|
-
event: (() => boolean) | ((e: string) => boolean);
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
tooltip?: string;
|
|
10
|
-
className?: string;
|
|
11
|
-
break?: boolean;
|
|
12
|
-
type?: 'button' | 'dropdown' | 'color' | 'custom';
|
|
13
|
-
items?: {
|
|
14
|
-
id: string;
|
|
15
|
-
icon: IWuIcons;
|
|
16
|
-
event: () => void;
|
|
17
|
-
}[];
|
|
18
|
-
customComponent?: React.JSX.Element;
|
|
19
|
-
};
|
|
20
|
-
export declare const ToolbarActionList: (editor: Editor, openLinkModal?: IOpenLinkModalFn) => IMenuBarButton[];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/react';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { IOpenLinkModalFn } from './helper';
|
|
4
|
-
interface IWuEditorContext {
|
|
5
|
-
editor: Editor | null;
|
|
6
|
-
openLinkModal: IOpenLinkModalFn;
|
|
7
|
-
}
|
|
8
|
-
export declare const useWuEditor: () => IWuEditorContext;
|
|
9
|
-
export declare const WuEditorProvider: React.FC<{
|
|
10
|
-
editor: Editor | null;
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
/package/dist/src/components/{editor/WuEditor.test.d.ts → contentEditor/WuContentEditor.test.d.ts}
RENAMED
|
File without changes
|