@atlaskit/inline-edit 15.3.12 → 15.3.14

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,17 @@
1
1
  # @atlaskit/inline-edit
2
2
 
3
+ ## 15.3.14
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.3.13
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 15.3.12
4
16
 
5
17
  ### Patch Changes
@@ -1025,7 +1037,6 @@
1025
1037
  - [#9749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9749)
1026
1038
  [`d65547e28ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d65547e28ba) - Fixed a
1027
1039
  few UI defects:
1028
-
1029
1040
  - reset line-height to 1 for inline edit container
1030
1041
  - fixed action buttons background color issue
1031
1042
 
@@ -1056,7 +1067,6 @@
1056
1067
  - [#8728](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8728)
1057
1068
  [`0e9764f7384`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e9764f7384) - Added
1058
1069
  codemod-utils as a package dependency, also fixed a few codemod functions
1059
-
1060
1070
  - elevate `InlineEditStateless` as default component as we have merged stateful and stateless
1061
1071
  - make sure named import works for `InlineEditableTextfield`
1062
1072
 
@@ -1076,7 +1086,6 @@
1076
1086
  [`b9987e84f3f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9987e84f3f) - In this
1077
1087
  version we bring significant performance improvements as well as improving the experience of using
1078
1088
  `inline-edit`.
1079
-
1080
1089
  - removed dynamic loading of inline dialog allowing consumers to compose their own experiences
1081
1090
  - merged controlled & uncontrolled inline edit components
1082
1091
  - split `InlineEditableTextfield` to its own entry-point
@@ -1155,7 +1164,6 @@
1155
1164
  General conversion for inline-edit
1156
1165
 
1157
1166
  There is no breaking change in this conversion, only some mechanical changes applied:
1158
-
1159
1167
  - replaced `styled-components` to `emotion`
1160
1168
  - converted class component to function component
1161
1169
  - restructured the folder
@@ -1372,7 +1380,6 @@
1372
1380
 
1373
1381
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1374
1382
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1375
-
1376
1383
  - @atlaskit/docs@8.3.2
1377
1384
  - @atlaskit/visual-regression@0.1.9
1378
1385
  - @atlaskit/analytics-next@6.3.5
@@ -1528,12 +1535,10 @@
1528
1535
  safety. Flow types are no longer provided. No behavioural changes.
1529
1536
 
1530
1537
  **Breaking changes**
1531
-
1532
1538
  - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
1533
1539
  - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
1534
1540
 
1535
1541
  **Breaking changes to TypeScript annotations**
1536
-
1537
1542
  - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
1538
1543
  props as a generic type.
1539
1544
  - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
@@ -1597,7 +1602,6 @@
1597
1602
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
1598
1603
 
1599
1604
  In this PR, we are:
1600
-
1601
1605
  - Re-introducing dist build folders
1602
1606
  - Adding back cjs
1603
1607
  - Replacing es5 by cjs and es2015 by esm
@@ -1690,7 +1694,6 @@
1690
1694
  ## 10.0.0
1691
1695
 
1692
1696
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
1693
-
1694
1697
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
1695
1698
  this package, please ensure you use at least this version of react and react-dom.
1696
1699
 
@@ -1707,19 +1710,16 @@
1707
1710
  ## 9.0.4
1708
1711
 
1709
1712
  - [patch][458331c958](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/458331c958):
1710
-
1711
1713
  - Added index.ts to .npmignore to prevent jest tests resolving that instead of index.js
1712
1714
 
1713
1715
  ## 9.0.3
1714
1716
 
1715
1717
  - [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
1716
-
1717
1718
  - Bump tslib
1718
1719
 
1719
1720
  ## 9.0.2
1720
1721
 
1721
1722
  - [patch][074c382946](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/074c382946):
1722
-
1723
1723
  - Add isRequired prop, remove duplicate defaultProps in code (internal change only) and add
1724
1724
  padding to examples on website to prevent unnecessary scrollbar
1725
1725
 
@@ -1741,7 +1741,6 @@
1741
1741
  ## 9.0.0
1742
1742
 
1743
1743
  - [major][71e2d2cb3c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/71e2d2cb3c):
1744
-
1745
1744
  - **Breaking:** this version is a major overhaul of the package. Check out the
1746
1745
  [upgrade guide in the Atlaskit website](https://atlaskit.atlassian.com/packages/core/inline-edit/docs/upgrade-guide)
1747
1746
  for more information.
@@ -1790,7 +1789,6 @@
1790
1789
  ## 8.0.0
1791
1790
 
1792
1791
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
1793
-
1794
1792
  - Drop ES5 from all the flow modules
1795
1793
 
1796
1794
  ### Dropping CJS support in all @atlaskit packages
@@ -1899,7 +1897,6 @@
1899
1897
  ## 7.1.3
1900
1898
 
1901
1899
  - [patch][a637f5e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a637f5e):
1902
-
1903
1900
  - Refine and fix some flow type errors found by fixing @atlaskit/analytics-next HOCs to allow flow
1904
1901
  to type check properly
1905
1902
 
@@ -28,7 +28,7 @@ var fieldStyles = null;
28
28
  var analyticsAttributes = {
29
29
  componentName: 'inlineEdit',
30
30
  packageName: "@atlaskit/inline-edit",
31
- packageVersion: "15.3.11"
31
+ packageVersion: "15.3.13"
32
32
  };
33
33
  var InnerInlineEdit = function InnerInlineEdit(props) {
34
34
  var _props$startWithEditV = props.startWithEditViewOpen,
@@ -102,6 +102,12 @@ var InnerInlineEdit = function InnerInlineEdit(props) {
102
102
  onCancel();
103
103
  }, [onCancel]);
104
104
  var tryAutoSubmitWhenBlur = (0, _react.useCallback)(function (isFieldInvalid, onSubmit, formRef) {
105
+ // Ignore if the provided ref is a function. This is used to make the
106
+ // typechecking accurate. Inline edit only uses one type of ref, so this
107
+ // will never trigger.
108
+ if (typeof formRef === 'function') {
109
+ return;
110
+ }
105
111
  if (!isFieldInvalid && !wasFocusReceivedSinceLastBlurRef.current && formRef.current) {
106
112
  doNotFocusOnEditButton();
107
113
  if (formRef.current.checkValidity()) {
@@ -15,7 +15,7 @@ const fieldStyles = null;
15
15
  const analyticsAttributes = {
16
16
  componentName: 'inlineEdit',
17
17
  packageName: "@atlaskit/inline-edit",
18
- packageVersion: "15.3.11"
18
+ packageVersion: "15.3.13"
19
19
  };
20
20
  const InnerInlineEdit = props => {
21
21
  const {
@@ -81,6 +81,12 @@ const InnerInlineEdit = props => {
81
81
  onCancel();
82
82
  }, [onCancel]);
83
83
  const tryAutoSubmitWhenBlur = useCallback((isFieldInvalid, onSubmit, formRef) => {
84
+ // Ignore if the provided ref is a function. This is used to make the
85
+ // typechecking accurate. Inline edit only uses one type of ref, so this
86
+ // will never trigger.
87
+ if (typeof formRef === 'function') {
88
+ return;
89
+ }
84
90
  if (!isFieldInvalid && !wasFocusReceivedSinceLastBlurRef.current && formRef.current) {
85
91
  doNotFocusOnEditButton();
86
92
  if (formRef.current.checkValidity()) {
@@ -19,7 +19,7 @@ var fieldStyles = null;
19
19
  var analyticsAttributes = {
20
20
  componentName: 'inlineEdit',
21
21
  packageName: "@atlaskit/inline-edit",
22
- packageVersion: "15.3.11"
22
+ packageVersion: "15.3.13"
23
23
  };
24
24
  var InnerInlineEdit = function InnerInlineEdit(props) {
25
25
  var _props$startWithEditV = props.startWithEditViewOpen,
@@ -93,6 +93,12 @@ var InnerInlineEdit = function InnerInlineEdit(props) {
93
93
  onCancel();
94
94
  }, [onCancel]);
95
95
  var tryAutoSubmitWhenBlur = useCallback(function (isFieldInvalid, onSubmit, formRef) {
96
+ // Ignore if the provided ref is a function. This is used to make the
97
+ // typechecking accurate. Inline edit only uses one type of ref, so this
98
+ // will never trigger.
99
+ if (typeof formRef === 'function') {
100
+ return;
101
+ }
96
102
  if (!isFieldInvalid && !wasFocusReceivedSinceLastBlurRef.current && formRef.current) {
97
103
  doNotFocusOnEditButton();
98
104
  if (formRef.current.checkValidity()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "15.3.12",
3
+ "version": "15.3.14",
4
4
  "description": "An inline edit displays a custom input component that switches between reading and editing on the same page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,20 +34,20 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/analytics-next": "^11.1.0",
37
- "@atlaskit/button": "^23.4.0",
37
+ "@atlaskit/button": "^23.5.0",
38
38
  "@atlaskit/codemod-utils": "^4.2.0",
39
- "@atlaskit/css": "^0.14.0",
40
- "@atlaskit/form": "^14.0.0",
41
- "@atlaskit/icon": "^28.2.0",
39
+ "@atlaskit/css": "^0.15.0",
40
+ "@atlaskit/form": "^14.2.0",
41
+ "@atlaskit/icon": "^28.5.0",
42
42
  "@atlaskit/inline-dialog": "^18.0.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/primitives": "^14.15.0",
44
+ "@atlaskit/primitives": "^15.0.0",
45
45
  "@atlaskit/textfield": "^8.0.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tokens": "^6.3.0",
47
+ "@atlaskit/tokens": "^7.0.0",
48
48
  "@atlaskit/visually-hidden": "^3.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
- "@compiled/react": "^0.18.3"
50
+ "@compiled/react": "^0.18.6"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^18.2.0"
@@ -55,8 +55,8 @@
55
55
  "devDependencies": {
56
56
  "@af/accessibility-testing": "workspace:^",
57
57
  "@af/integration-testing": "workspace:^",
58
- "@atlaskit/datetime-picker": "^17.0.0",
59
- "@atlaskit/docs": "^11.1.0",
58
+ "@atlaskit/datetime-picker": "^17.1.0",
59
+ "@atlaskit/docs": "^11.2.0",
60
60
  "@atlaskit/ds-lib": "^5.1.0",
61
61
  "@atlaskit/heading": "^5.2.0",
62
62
  "@atlaskit/link": "^3.2.0",