@toptal/picasso-rich-text-editor 16.0.2-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.6 → 17.0.1

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.
@@ -15,11 +15,6 @@ export interface Props extends BaseProps {
15
15
  disabled?: boolean;
16
16
  /** unique identifier */
17
17
  id: string;
18
- /**
19
- * @deprecated [FX-4715] Use the `status` prop instead to support success and error states
20
- * Indicate whether `RichTextEditor` is in error state
21
- */
22
- error?: boolean;
23
18
  /** Indicate `RichTextEditor` is in `error` or `default` state */
24
19
  status?: Extract<OutlinedInputStatus, 'error' | 'default'>;
25
20
  /** Used inside Form with combination of Label to enable forHtml functionality */
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.d.ts","sourceRoot":"","sources":["../../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAIvD,OAAO,KAAoD,MAAM,OAAO,CAAA;AAExE,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,kBAAkB,EACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,iEAAiE;IACjE,MA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,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACpE,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,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;KAC3B,CAAA;IACD,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,YAAY,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAA;CAClD;AAMD,eAAO,MAAM,cAAc,8EAqG1B,CAAA;AAaD,eAAe,cAAc,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { makeStyles } from '@material-ui/core/styles';
2
2
  import { InputMultilineAdornment } from '@toptal/picasso-input-adornment';
3
3
  import { useHasMultilineCounter } from '@toptal/picasso-shared';
4
- import { noop, usePropDeprecationWarning } from '@toptal/picasso-utils';
4
+ import { noop } from '@toptal/picasso-utils';
5
5
  import cx from 'classnames';
6
6
  import React, { forwardRef, useCallback, useRef, useState } from 'react';
7
7
  import LexicalEditor from '../LexicalEditor';
@@ -14,13 +14,6 @@ export const RichTextEditor = forwardRef(function RichTextEditor(props, ref) {
14
14
  const { 'data-testid': dataTestId, plugins, autoFocus = false, className, defaultValue, disabled, id, onChange = noop, onFocus = noop, onBlur = noop, placeholder, minLength, maxLength, minLengthMessage, maxLengthMessage, style, status, testIds, hiddenInputId, setHasMultilineCounter, name, highlight, customEmojis, } = props;
15
15
  const classes = useStyles();
16
16
  const wrapperRef = useRef(null);
17
- // TODO: [FX-4715]
18
- usePropDeprecationWarning({
19
- props,
20
- name: 'error',
21
- componentName: 'RichTextEditor',
22
- description: 'Use the `status` prop instead. `error` is deprecated and will be removed in the next major release.',
23
- });
24
17
  // Possibly use useRef for synchronous updates but no re-rendering effect
25
18
  const [hasFocus, setFocus] = useState(false);
26
19
  const handleFocus = useCallback(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../../src/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,IAAI,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAOxE,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,MAAM,MAAM,UAAU,CAAA;AAyE7B,MAAM,SAAS,GAAG,UAAU,CAAQ,MAAM,EAAE;IAC1C,IAAI,EAAE,gBAAgB;CACvB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CACtC,SAAS,cAAc,CAAC,KAAK,EAAE,GAAG;IAChC,MAAM,EACJ,aAAa,EAAE,UAAU,EACzB,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,EAAE,EACF,QAAQ,GAAG,IAAI,EACf,OAAO,GAAG,IAAI,EACd,MAAM,GAAG,IAAI,EACb,WAAW,EACX,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,M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E,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,WAAW,EACxB,kBAAkB,EAAE,oBAAoB,EACxC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,GAC5B,CACE;QACL,cAAc,IAAI,CACjB,oBAAC,uBAAuB,IAAC,KAAK,EAAE,YAAY,IACzC,cAAc,CACS,CAC3B,CACA,CACJ,CAAA;AACH,CAAC,CACF,CAAA;AAED,cAAc,CAAC,YAAY,GAAG;IAC5B,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,SAAS;CAClB,CAAA;AAED,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAA;AAE7C,eAAe,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/picasso-rich-text-editor",
3
- "version": "16.0.2-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.6+d506eff5b",
3
+ "version": "17.0.1",
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",
@@ -30,32 +30,32 @@
30
30
  "@lexical/utils": "0.11.2",
31
31
  "@material-ui/core": "4.12.4",
32
32
  "@toptal/picasso-shared": "^15.0.0",
33
- "@toptal/picasso-tailwind": ">=2.7",
34
- "@toptal/picasso-tailwind-merge": "^2.0.0",
35
33
  "react": ">=16.12.0 < 19.0.0",
36
34
  "react-dom": ">=16.12.0 < 19.0.0",
37
- "typescript": "~4.7.0"
35
+ "typescript": "~4.7.0",
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-button": "4.0.2-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.21+d506eff5b",
45
- "@toptal/picasso-container": "3.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
46
- "@toptal/picasso-file-input": "3.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.8+d506eff5b",
47
- "@toptal/picasso-form": "5.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
48
- "@toptal/picasso-icons": "1.6.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.101+d506eff5b",
49
- "@toptal/picasso-image": "3.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
50
- "@toptal/picasso-input": "3.0.15-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.21+d506eff5b",
51
- "@toptal/picasso-input-adornment": "3.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
52
- "@toptal/picasso-link": "3.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
53
- "@toptal/picasso-list": "5.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.6+d506eff5b",
54
- "@toptal/picasso-modal": "3.0.13-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.21+d506eff5b",
55
- "@toptal/picasso-outlined-input": "3.0.2-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.21+d506eff5b",
56
- "@toptal/picasso-select": "3.0.4-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.21+d506eff5b",
57
- "@toptal/picasso-typography": "4.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
58
- "@toptal/picasso-utils": "1.0.4-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.194+d506eff5b",
44
+ "@toptal/picasso-container": "3.1.0",
45
+ "@toptal/picasso-button": "4.0.3",
46
+ "@toptal/picasso-icons": "1.6.1",
47
+ "@toptal/picasso-file-input": "4.0.1",
48
+ "@toptal/picasso-image": "3.0.1",
49
+ "@toptal/picasso-outlined-input": "4.0.1",
50
+ "@toptal/picasso-list": "5.0.2",
51
+ "@toptal/picasso-link": "3.0.1",
52
+ "@toptal/picasso-select": "4.0.1",
53
+ "@toptal/picasso-input-adornment": "3.0.2",
54
+ "@toptal/picasso-typography": "4.0.1",
55
+ "@toptal/picasso-modal": "3.0.14",
56
+ "@toptal/picasso-form": "6.0.1",
57
+ "@toptal/picasso-input": "4.0.1",
58
+ "@toptal/picasso-utils": "2.0.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-tailwind-merge": "2.0.1-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.32+d506eff5b",
72
- "@toptal/picasso-test-utils": "1.1.2-alpha-fx-5837-disable-autocomplete-in-tag-selector-d506eff5b.194+d506eff5b",
71
+ "@toptal/picasso-test-utils": "1.1.1",
72
+ "@toptal/picasso-tailwind-merge": "2.0.1",
73
73
  "@types/classnames": "^2.3.1"
74
74
  },
75
75
  "sideEffects": false,
@@ -84,6 +84,5 @@
84
84
  "src",
85
85
  "eager.js",
86
86
  "eager.d.ts"
87
- ],
88
- "gitHead": "d506eff5bfac7ece9fc580b464c5e374002efcb5"
87
+ ]
89
88
  }
@@ -4,7 +4,7 @@ import type { Status as OutlinedInputStatus } from '@toptal/picasso-outlined-inp
4
4
  import { InputMultilineAdornment } from '@toptal/picasso-input-adornment'
5
5
  import type { BaseProps } from '@toptal/picasso-shared'
6
6
  import { useHasMultilineCounter } from '@toptal/picasso-shared'
7
- import { noop, usePropDeprecationWarning } from '@toptal/picasso-utils'
7
+ import { noop } from '@toptal/picasso-utils'
8
8
  import cx from 'classnames'
9
9
  import React, { forwardRef, useCallback, useRef, useState } from 'react'
10
10
 
@@ -30,11 +30,6 @@ export interface Props extends BaseProps {
30
30
  disabled?: boolean
31
31
  /** unique identifier */
32
32
  id: string
33
- /**
34
- * @deprecated [FX-4715] Use the `status` prop instead to support success and error states
35
- * Indicate whether `RichTextEditor` is in error state
36
- */
37
- error?: boolean
38
33
  /** Indicate `RichTextEditor` is in `error` or `default` state */
39
34
  status?: Extract<OutlinedInputStatus, 'error' | 'default'>
40
35
  /** Used inside Form with combination of Label to enable forHtml functionality */
@@ -124,15 +119,6 @@ export const RichTextEditor = forwardRef<HTMLDivElement, Props>(
124
119
  const classes = useStyles()
125
120
  const wrapperRef = useRef<HTMLDivElement | null>(null)
126
121
 
127
- // TODO: [FX-4715]
128
- usePropDeprecationWarning({
129
- props,
130
- name: 'error',
131
- componentName: 'RichTextEditor',
132
- description:
133
- 'Use the `status` prop instead. `error` is deprecated and will be removed in the next major release.',
134
- })
135
-
136
122
  // Possibly use useRef for synchronous updates but no re-rendering effect
137
123
  const [hasFocus, setFocus] = useState(false)
138
124
 
package/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021-2022 Toptal, LLC
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the “Software”), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.