@atlaskit/textfield 6.7.1 → 6.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/textfield
2
2
 
3
+ ## 6.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
+ ## 6.7.2
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
  ## 6.7.1
4
24
 
5
25
  ### Patch Changes
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
27
27
  var analyticsParams = {
28
28
  componentName: 'textField',
29
29
  packageName: "@atlaskit/textfield",
30
- packageVersion: "6.7.1"
30
+ packageVersion: "6.8.0"
31
31
  };
32
32
 
33
33
  /**
@@ -12,7 +12,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
12
12
  const analyticsParams = {
13
13
  componentName: 'textField',
14
14
  packageName: "@atlaskit/textfield",
15
- packageVersion: "6.7.1"
15
+ packageVersion: "6.8.0"
16
16
  };
17
17
 
18
18
  /**
@@ -18,7 +18,7 @@ import { containerStyles as getContainerStyles, inputStyles as getInputStyles }
18
18
  var analyticsParams = {
19
19
  componentName: 'textField',
20
20
  packageName: "@atlaskit/textfield",
21
- packageVersion: "6.7.1"
21
+ packageVersion: "6.8.0"
22
22
  };
23
23
 
24
24
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/textfield",
3
- "version": "6.7.1",
3
+ "version": "6.8.0",
4
4
  "description": "A text field is an input that allows a user to write or edit text.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,11 +25,11 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/analytics-next": "^10.2.0",
28
+ "@atlaskit/analytics-next": "^10.3.0",
29
29
  "@atlaskit/platform-feature-flags": "^0.3.0",
30
- "@atlaskit/primitives": "^13.3.0",
31
- "@atlaskit/theme": "^14.0.0",
32
- "@atlaskit/tokens": "^3.0.0",
30
+ "@atlaskit/primitives": "^13.4.0",
31
+ "@atlaskit/theme": "^14.1.0",
32
+ "@atlaskit/tokens": "^3.3.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "@emotion/react": "^11.7.1"
35
35
  },
@@ -41,17 +41,16 @@
41
41
  "@af/integration-testing": "*",
42
42
  "@af/visual-regression": "*",
43
43
  "@atlaskit/codemod-utils": "^4.2.3",
44
- "@atlaskit/ds-lib": "^3.3.0",
44
+ "@atlaskit/ds-lib": "^3.5.0",
45
45
  "@atlaskit/ssr": "*",
46
46
  "@atlaskit/visual-regression": "*",
47
47
  "@atlassian/feature-flags-test-utils": "*",
48
48
  "@testing-library/dom": "^10.1.0",
49
- "@testing-library/react": "^12.1.5",
49
+ "@testing-library/react": "^13.4.0",
50
50
  "jscodeshift": "^0.13.0",
51
- "react-dom": "^16.8.0",
51
+ "react-dom": "^18.2.0",
52
52
  "storybook-addon-performance": "^0.17.3",
53
- "typescript": "~5.4.2",
54
- "wait-for-expect": "^1.2.0"
53
+ "typescript": "~5.4.2"
55
54
  },
56
55
  "keywords": [
57
56
  "atlaskit",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
-
3
- import Textfield from '../src';
4
-
5
- export default () => <Textfield name="basic" />;
@@ -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 Texfield from '../src';
7
-
8
- const testId = 'text-field-test-id';
9
-
10
- const getLastTexfield = (container: HTMLElement) => {
11
- const textField = container.querySelectorAll(`[data-testId="${testId}"]`);
12
- return textField[textField.length - 1];
13
- };
14
-
15
- const textField = () => {
16
- return <Texfield placeholder="new texfield" testId={testId} width="large" />;
17
- };
18
-
19
- const interactionTasks: PublicInteractionTask[] = [
20
- {
21
- name: 'Focus',
22
- description: 'Render texfield and make input focus',
23
- run: async ({ container }: InteractionTaskArgs): Promise<void> => {
24
- const texfield = getLastTexfield(container);
25
- fireEvent.focus(texfield);
26
- },
27
- },
28
- {
29
- name: 'Blur',
30
- description: 'Render texfield and make input blur',
31
- run: async ({ container }: InteractionTaskArgs): Promise<void> => {
32
- const texfield = getLastTexfield(container);
33
- fireEvent.blur(texfield);
34
- },
35
- },
36
- {
37
- name: 'OnChange',
38
- description: 'Render texfield and make input change',
39
- run: async ({ container }: InteractionTaskArgs): Promise<void> => {
40
- const texfield = getLastTexfield(container);
41
- fireEvent.change(texfield, { target: { value: 'foo' } });
42
- },
43
- },
44
- ];
45
-
46
- textField.story = {
47
- name: 'texfield',
48
- parameters: {
49
- performance: {
50
- interactions: interactionTasks,
51
- },
52
- },
53
- };
54
-
55
- export default textField;