@atlaskit/textarea 5.7.2 → 5.8.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/CHANGELOG.md +20 -0
- package/dist/cjs/text-area.js +1 -1
- package/dist/es2019/text-area.js +1 -1
- package/dist/esm/text-area.js +1 -1
- package/dist/types/text-area.d.ts +1 -1
- package/dist/types-ts4.5/text-area.d.ts +1 -1
- package/package.json +9 -10
- package/__perf__/default.tsx +0 -5
- package/__perf__/examples.tsx +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/textarea
|
|
2
2
|
|
|
3
|
+
## 5.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 5.7.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#103999](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103999)
|
|
20
|
+
[`9f62ecec4d422`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f62ecec4d422) -
|
|
21
|
+
Update dependencies.
|
|
22
|
+
|
|
3
23
|
## 5.7.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/text-area.js
CHANGED
|
@@ -25,7 +25,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
26
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
27
|
var packageName = "@atlaskit/textarea";
|
|
28
|
-
var packageVersion = "5.
|
|
28
|
+
var packageVersion = "5.8.0";
|
|
29
29
|
var analyticsParams = {
|
|
30
30
|
componentName: 'textArea',
|
|
31
31
|
packageName: packageName,
|
package/dist/es2019/text-area.js
CHANGED
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
11
11
|
import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
|
|
12
12
|
const packageName = "@atlaskit/textarea";
|
|
13
|
-
const packageVersion = "5.
|
|
13
|
+
const packageVersion = "5.8.0";
|
|
14
14
|
const analyticsParams = {
|
|
15
15
|
componentName: 'textArea',
|
|
16
16
|
packageName,
|
package/dist/esm/text-area.js
CHANGED
|
@@ -16,7 +16,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
16
16
|
import { usePlatformLeafEventHandler } from '@atlaskit/analytics-next';
|
|
17
17
|
import { borderWidth, dynamicStyles, getBaseStyles } from './styles';
|
|
18
18
|
var packageName = "@atlaskit/textarea";
|
|
19
|
-
var packageVersion = "5.
|
|
19
|
+
var packageVersion = "5.8.0";
|
|
20
20
|
var analyticsParams = {
|
|
21
21
|
componentName: 'textArea',
|
|
22
22
|
packageName: packageName,
|
|
@@ -13,5 +13,5 @@ import { type TextAreaProps } from './types';
|
|
|
13
13
|
* - [Code](https://atlassian.design/components/textarea/code)
|
|
14
14
|
* - [Usage](https://atlassian.design/components/textarea/usage)
|
|
15
15
|
*/
|
|
16
|
-
declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
16
|
+
declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>>;
|
|
17
17
|
export default TextArea;
|
|
@@ -13,5 +13,5 @@ import { type TextAreaProps } from './types';
|
|
|
13
13
|
* - [Code](https://atlassian.design/components/textarea/code)
|
|
14
14
|
* - [Usage](https://atlassian.design/components/textarea/usage)
|
|
15
15
|
*/
|
|
16
|
-
declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<
|
|
16
|
+
declare const TextArea: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>>;
|
|
17
17
|
export default TextArea;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/textarea",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "A text area lets users enter long form text which spans over multiple lines.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"./types": "./src/types.tsx"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/analytics-next": "^10.
|
|
44
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
|
-
"@atlaskit/primitives": "^13.
|
|
47
|
-
"@atlaskit/theme": "^14.
|
|
48
|
-
"@atlaskit/tokens": "^3.
|
|
46
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
47
|
+
"@atlaskit/theme": "^14.1.0",
|
|
48
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1"
|
|
51
51
|
},
|
|
@@ -56,18 +56,17 @@
|
|
|
56
56
|
"@af/accessibility-testing": "*",
|
|
57
57
|
"@af/integration-testing": "*",
|
|
58
58
|
"@af/visual-regression": "*",
|
|
59
|
-
"@atlaskit/ds-lib": "^3.
|
|
59
|
+
"@atlaskit/ds-lib": "^3.5.0",
|
|
60
60
|
"@atlaskit/ssr": "*",
|
|
61
61
|
"@atlaskit/visual-regression": "*",
|
|
62
62
|
"@atlassian/feature-flags-test-utils": "*",
|
|
63
63
|
"@testing-library/dom": "^10.1.0",
|
|
64
|
-
"@testing-library/react": "^
|
|
64
|
+
"@testing-library/react": "^13.4.0",
|
|
65
65
|
"jest-in-case": "^1.0.2",
|
|
66
66
|
"jscodeshift": "^0.13.0",
|
|
67
|
-
"react-dom": "^
|
|
67
|
+
"react-dom": "^18.2.0",
|
|
68
68
|
"storybook-addon-performance": "^0.17.3",
|
|
69
|
-
"typescript": "~5.4.2"
|
|
70
|
-
"wait-for-expect": "^1.2.0"
|
|
69
|
+
"typescript": "~5.4.2"
|
|
71
70
|
},
|
|
72
71
|
"keywords": [
|
|
73
72
|
"atlaskit",
|
package/__perf__/default.tsx
DELETED
package/__perf__/examples.tsx
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { fireEvent } from '@testing-library/dom';
|
|
4
|
-
import { type InteractionTaskArgs, type PublicInteractionTask } from 'storybook-addon-performance';
|
|
5
|
-
|
|
6
|
-
import Textarea from '../src';
|
|
7
|
-
|
|
8
|
-
const testId = 'text-area-test-id';
|
|
9
|
-
|
|
10
|
-
const getLastTextArea = (container: HTMLElement) => {
|
|
11
|
-
const textAreas = container.querySelectorAll(`[data-testId="${testId}"]`);
|
|
12
|
-
return textAreas[textAreas.length - 1];
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const textArea = () => {
|
|
16
|
-
return <Textarea placeholder="example textarea" testId={testId} />;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const interactionTasks: PublicInteractionTask[] = [
|
|
20
|
-
{
|
|
21
|
-
name: 'Focus',
|
|
22
|
-
description: 'Render textarea and make input focus',
|
|
23
|
-
run: async ({ container }: InteractionTaskArgs): Promise<void> => {
|
|
24
|
-
const textArea = getLastTextArea(container);
|
|
25
|
-
fireEvent.focus(textArea);
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'Blur',
|
|
30
|
-
description: 'Render textarea and make input blur',
|
|
31
|
-
run: async ({ container }: InteractionTaskArgs): Promise<void> => {
|
|
32
|
-
const textArea = getLastTextArea(container);
|
|
33
|
-
fireEvent.blur(textArea);
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
name: 'OnChange',
|
|
38
|
-
description: 'Render textarea and make input change',
|
|
39
|
-
run: async ({ container }: InteractionTaskArgs): Promise<void> => {
|
|
40
|
-
const textArea = getLastTextArea(container);
|
|
41
|
-
fireEvent.change(textArea, { target: { value: 'foo' } });
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
textArea.story = {
|
|
47
|
-
name: 'TextArea',
|
|
48
|
-
parameters: {
|
|
49
|
-
performance: {
|
|
50
|
-
interactions: interactionTasks,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export default textArea;
|