@toptal/picasso-rich-text-editor 17.2.5-alpha-MP-669-remove-more-default-props-4a0a71c8c.0 → 17.2.5
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.
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { ButtonHandlerType, FormatType, SelectOnChangeHandler } from './types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
id: string;
|
|
5
|
-
format
|
|
5
|
+
format?: FormatType;
|
|
6
6
|
testIds?: {
|
|
7
7
|
headerSelect?: string;
|
|
8
8
|
boldButton?: string;
|
|
@@ -12,11 +12,11 @@ declare type Props = {
|
|
|
12
12
|
linkButton?: string;
|
|
13
13
|
emojiButton?: string;
|
|
14
14
|
};
|
|
15
|
-
onBoldClick
|
|
16
|
-
onItalicClick
|
|
17
|
-
onHeaderChange
|
|
18
|
-
onUnorderedClick
|
|
19
|
-
onOrderedClick
|
|
15
|
+
onBoldClick?: ButtonHandlerType;
|
|
16
|
+
onItalicClick?: ButtonHandlerType;
|
|
17
|
+
onHeaderChange?: SelectOnChangeHandler;
|
|
18
|
+
onUnorderedClick?: ButtonHandlerType;
|
|
19
|
+
onOrderedClick?: ButtonHandlerType;
|
|
20
20
|
};
|
|
21
21
|
export declare const ALLOWED_HEADER_TYPE = "3";
|
|
22
22
|
export declare const RichTextEditorToolbar: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextEditorToolbar.d.ts","sourceRoot":"","sources":["../../../src/RichTextEditorToolbar/RichTextEditorToolbar.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAEhB,aAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"RichTextEditorToolbar.d.ts","sourceRoot":"","sources":["../../../src/RichTextEditorToolbar/RichTextEditorToolbar.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAEhB,aAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,mBAAmB,CAAC,EAAE,MAAM,CAAA;QAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAA;IACD,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC,gBAAgB,CAAC,EAAE,iBAAiB,CAAA;IACpC,cAAc,CAAC,EAAE,iBAAiB,CAAA;CACnC,CAAA;AAMD,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAEtC,eAAO,MAAM,qBAAqB,8EAmGjC,CAAA;AAID,eAAe,qBAAqB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toptal/picasso-rich-text-editor",
|
|
3
|
-
"version": "17.2.5
|
|
3
|
+
"version": "17.2.5",
|
|
4
4
|
"description": "Picasso rich text editor",
|
|
5
5
|
"author": "Toptal",
|
|
6
6
|
"homepage": "https://github.com/toptal/picasso/tree/master/packages/picasso-rich-text-editor#readme",
|
|
@@ -29,33 +29,33 @@
|
|
|
29
29
|
"@lexical/text": "0.11.2",
|
|
30
30
|
"@lexical/utils": "0.11.2",
|
|
31
31
|
"@material-ui/core": "4.12.4",
|
|
32
|
-
"@toptal/picasso-shared": "^15.0.
|
|
32
|
+
"@toptal/picasso-shared": "^15.0.0",
|
|
33
33
|
"react": ">=16.12.0 < 19.0.0",
|
|
34
34
|
"react-dom": ">=16.12.0 < 19.0.0",
|
|
35
35
|
"typescript": "~4.7.0",
|
|
36
|
-
"@toptal/picasso-tailwind-merge": "2.0.
|
|
37
|
-
"@toptal/picasso-tailwind": "
|
|
36
|
+
"@toptal/picasso-tailwind-merge": "^2.0.0",
|
|
37
|
+
"@toptal/picasso-tailwind": ">=2.7"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@emoji-mart/data": "^1.2.1",
|
|
41
41
|
"@emoji-mart/react": "^1.1.1",
|
|
42
42
|
"@lexical/html": "0.11.2",
|
|
43
43
|
"@lexical/react": "0.11.2",
|
|
44
|
-
"@toptal/picasso-container": "3.1.
|
|
45
|
-
"@toptal/picasso-button": "4.0.25
|
|
46
|
-
"@toptal/picasso-icons": "1.13.
|
|
47
|
-
"@toptal/picasso-file-input": "4.0.24
|
|
48
|
-
"@toptal/picasso-image": "3.0.4
|
|
49
|
-
"@toptal/picasso-outlined-input": "4.1.4
|
|
50
|
-
"@toptal/picasso-list": "5.0.13
|
|
51
|
-
"@toptal/picasso-link": "3.0.7
|
|
52
|
-
"@toptal/picasso-select": "4.1.4
|
|
53
|
-
"@toptal/picasso-input-adornment": "3.0.
|
|
54
|
-
"@toptal/picasso-typography": "4.0.
|
|
55
|
-
"@toptal/picasso-modal": "3.2.4
|
|
56
|
-
"@toptal/picasso-form": "6.3.4
|
|
57
|
-
"@toptal/picasso-input": "4.1.4
|
|
58
|
-
"@toptal/picasso-utils": "3.1.
|
|
44
|
+
"@toptal/picasso-container": "3.1.2",
|
|
45
|
+
"@toptal/picasso-button": "4.0.25",
|
|
46
|
+
"@toptal/picasso-icons": "1.13.0",
|
|
47
|
+
"@toptal/picasso-file-input": "4.0.24",
|
|
48
|
+
"@toptal/picasso-image": "3.0.4",
|
|
49
|
+
"@toptal/picasso-outlined-input": "4.1.4",
|
|
50
|
+
"@toptal/picasso-list": "5.0.13",
|
|
51
|
+
"@toptal/picasso-link": "3.0.7",
|
|
52
|
+
"@toptal/picasso-select": "4.1.4",
|
|
53
|
+
"@toptal/picasso-input-adornment": "3.0.11",
|
|
54
|
+
"@toptal/picasso-typography": "4.0.4",
|
|
55
|
+
"@toptal/picasso-modal": "3.2.4",
|
|
56
|
+
"@toptal/picasso-form": "6.3.4",
|
|
57
|
+
"@toptal/picasso-input": "4.1.4",
|
|
58
|
+
"@toptal/picasso-utils": "3.1.0",
|
|
59
59
|
"classnames": "^2.5.1",
|
|
60
60
|
"emoji-mart": "^5.5.2",
|
|
61
61
|
"hast-to-hyperscript": "^9.0.1",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@material-ui/core": "4.12.4",
|
|
70
70
|
"@testing-library/react-hooks": "^8.0.1",
|
|
71
|
-
"@toptal/picasso-test-utils": "1.1.
|
|
72
|
-
"@toptal/picasso-tailwind-merge": "2.0.
|
|
71
|
+
"@toptal/picasso-test-utils": "1.1.1",
|
|
72
|
+
"@toptal/picasso-tailwind-merge": "2.0.3",
|
|
73
73
|
"@types/classnames": "^2.3.1"
|
|
74
74
|
},
|
|
75
75
|
"sideEffects": false,
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
|
|
24
24
|
type Props = {
|
|
25
25
|
id: string
|
|
26
|
-
format
|
|
26
|
+
format?: FormatType
|
|
27
27
|
testIds?: {
|
|
28
28
|
headerSelect?: string
|
|
29
29
|
boldButton?: string
|
|
@@ -33,11 +33,11 @@ type Props = {
|
|
|
33
33
|
linkButton?: string
|
|
34
34
|
emojiButton?: string
|
|
35
35
|
}
|
|
36
|
-
onBoldClick
|
|
37
|
-
onItalicClick
|
|
38
|
-
onHeaderChange
|
|
39
|
-
onUnorderedClick
|
|
40
|
-
onOrderedClick
|
|
36
|
+
onBoldClick?: ButtonHandlerType
|
|
37
|
+
onItalicClick?: ButtonHandlerType
|
|
38
|
+
onHeaderChange?: SelectOnChangeHandler
|
|
39
|
+
onUnorderedClick?: ButtonHandlerType
|
|
40
|
+
onOrderedClick?: ButtonHandlerType
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
const useStyles = makeStyles<Theme, Props>(styles, {
|