@npm-questionpro/wick-ui-lib 1.28.0 → 1.29.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 (33) hide show
  1. package/dist/src/components/calendar/components/dateRangePicker/WuDateRangePicker.d.ts +1 -0
  2. package/dist/src/components/calendar/ui/_nativeSidebar.d.ts +15 -0
  3. package/dist/src/index.d.ts +0 -1
  4. package/dist/style.css +1 -1
  5. package/dist/wick-ui-lib/es/index.js +6493 -7068
  6. package/dist/wick-ui-lib/umd/index.js +16 -15
  7. package/package.json +4 -30
  8. package/dist/src/components/contentEditor/WuContentEditor.d.ts +0 -14
  9. package/dist/src/components/contentEditor/WuContentEditor.test.d.ts +0 -1
  10. package/dist/src/components/contentEditor/extentions/Alignment.d.ts +0 -2
  11. package/dist/src/components/contentEditor/extentions/BgColor.d.ts +0 -1
  12. package/dist/src/components/contentEditor/extentions/Block.d.ts +0 -2
  13. package/dist/src/components/contentEditor/extentions/Blockquote.d.ts +0 -1
  14. package/dist/src/components/contentEditor/extentions/Bold.d.ts +0 -2
  15. package/dist/src/components/contentEditor/extentions/ClearFormat.d.ts +0 -1
  16. package/dist/src/components/contentEditor/extentions/CodeLine.d.ts +0 -1
  17. package/dist/src/components/contentEditor/extentions/EmbedImage.d.ts +0 -2
  18. package/dist/src/components/contentEditor/extentions/EmbedLink.d.ts +0 -2
  19. package/dist/src/components/contentEditor/extentions/EmbedTable.d.ts +0 -1
  20. package/dist/src/components/contentEditor/extentions/Family.d.ts +0 -2
  21. package/dist/src/components/contentEditor/extentions/Italic.d.ts +0 -2
  22. package/dist/src/components/contentEditor/extentions/List.d.ts +0 -2
  23. package/dist/src/components/contentEditor/extentions/Size.d.ts +0 -2
  24. package/dist/src/components/contentEditor/extentions/Strikethrough.d.ts +0 -2
  25. package/dist/src/components/contentEditor/extentions/Subscript.d.ts +0 -1
  26. package/dist/src/components/contentEditor/extentions/Superscript.d.ts +0 -1
  27. package/dist/src/components/contentEditor/extentions/TextColor.d.ts +0 -1
  28. package/dist/src/components/contentEditor/extentions/Underline.d.ts +0 -2
  29. package/dist/src/components/contentEditor/extentions/config.d.ts +0 -2
  30. package/dist/src/components/contentEditor/hooks/useToolbar.d.ts +0 -15
  31. package/dist/src/components/contentEditor/index.d.ts +0 -2
  32. package/dist/src/components/contentEditor/ui/InlineDropdown.d.ts +0 -20
  33. package/dist/src/components/contentEditor/ui/Toolbar.d.ts +0 -30
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.28.0",
4
+ "version": "1.29.0",
5
5
  "description": "A React component library by QuestionPro for building web applications with ease",
6
6
  "keywords": [
7
7
  "react",
@@ -58,27 +58,12 @@
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",
74
61
  "class-variance-authority": "^0.7.1",
75
62
  "clsx": "^2.1.1",
76
63
  "cmdk": "1.0.4",
77
64
  "date-fns": "^4.1.0",
78
65
  "motion": "^12.23.26",
79
- "react": ">= 18 < 20",
80
66
  "react-day-picker": "9.5.1",
81
- "react-dom": ">= 18 < 20",
82
67
  "react-virtuoso": "^4.16.1",
83
68
  "tailwind-merge": "^2.6.0"
84
69
  },
@@ -101,19 +86,6 @@
101
86
  "@radix-ui/react-toggle-group": "^1.1.1",
102
87
  "@radix-ui/react-tooltip": "^1.1.8",
103
88
  "@tanstack/react-table": "^8.20.5",
104
- "@tiptap/extension-code": "^3.13.0",
105
- "@tiptap/extension-image": "^3.13.0",
106
- "@tiptap/extension-link": "^3.12.0",
107
- "@tiptap/extension-list": "^3.13.0",
108
- "@tiptap/extension-subscript": "^3.11.0",
109
- "@tiptap/extension-superscript": "^3.11.0",
110
- "@tiptap/extension-table": "^3.13.0",
111
- "@tiptap/extension-text-align": "^3.11.1",
112
- "@tiptap/extension-text-style": "^3.13.0",
113
- "@tiptap/extension-typography": "^3.11.0",
114
- "@tiptap/pm": "^3.11.0",
115
- "@tiptap/react": "^3.11.0",
116
- "@tiptap/starter-kit": "^3.11.0",
117
89
  "class-variance-authority": "^0.7.1",
118
90
  "clsx": "^2.1.1",
119
91
  "cmdk": "1.0.4",
@@ -138,7 +110,7 @@
138
110
  "@testing-library/react": "^16.3.0",
139
111
  "@testing-library/user-event": "^14.6.1",
140
112
  "@types/node": "^22.19.1",
141
- "@types/react": "^19.2.7",
113
+ "@types/react": "^19.2.14",
142
114
  "@types/react-dom": "^19.2.3",
143
115
  "@types/react-transition-group": "^4.4.12",
144
116
  "@typescript-eslint/eslint-plugin": "^8.48.1",
@@ -160,6 +132,8 @@
160
132
  "postcss": "^8.5.6",
161
133
  "prettier": "^3.7.4",
162
134
  "prettier-plugin-tailwindcss": "^0.6.14",
135
+ "react": "^18.3.1",
136
+ "react-dom": "^18.3.1",
163
137
  "sass-embedded": "^1.93.3",
164
138
  "storybook": "10.1.5",
165
139
  "tailwindcss": "^3.4.18",
@@ -1,14 +0,0 @@
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
- hideToolbar?: boolean;
13
- }
14
- export declare const WuContentEditor: React.FC<IWuContentEditorProps>;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Alignment: React.FC;
@@ -1 +0,0 @@
1
- export declare const BgColor: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Block: React.FC;
@@ -1 +0,0 @@
1
- export declare const Blockquote: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Bold: React.FC;
@@ -1 +0,0 @@
1
- export declare const ClearFormat: React.FC;
@@ -1 +0,0 @@
1
- export declare const CodeLine: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Image: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Link: React.FC;
@@ -1 +0,0 @@
1
- export declare const Table: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const FontFamily: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Italic: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const List: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const FontSize: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Strikethrough: React.FC;
@@ -1 +0,0 @@
1
- export declare const Subscript: React.FC;
@@ -1 +0,0 @@
1
- export declare const Superscript: React.FC;
@@ -1 +0,0 @@
1
- export declare const TextColor: React.FC;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const Underline: React.FC;
@@ -1,2 +0,0 @@
1
- import { Extensions } from '@tiptap/react';
2
- export declare const extensionConfig: Extensions;
@@ -1,15 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- export { WuContentEditor } from './WuContentEditor';
2
- export type { IWuContentEditorProps } from './WuContentEditor';
@@ -1,20 +0,0 @@
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
- }>;
@@ -1,30 +0,0 @@
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 {};