@atlaskit/inline-edit 15.3.12 → 15.3.13

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,11 @@
1
1
  # @atlaskit/inline-edit
2
2
 
3
+ ## 15.3.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 15.3.12
4
10
 
5
11
  ### Patch Changes
@@ -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: "0.0.0-development"
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: "0.0.0-development"
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: "0.0.0-development"
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.13",
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,17 +34,17 @@
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": "^6.5.0",
48
48
  "@atlaskit/visually-hidden": "^3.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@compiled/react": "^0.18.3"
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@af/accessibility-testing": "workspace:^",
57
57
  "@af/integration-testing": "workspace:^",
58
- "@atlaskit/datetime-picker": "^17.0.0",
58
+ "@atlaskit/datetime-picker": "^17.1.0",
59
59
  "@atlaskit/docs": "^11.1.0",
60
60
  "@atlaskit/ds-lib": "^5.1.0",
61
61
  "@atlaskit/heading": "^5.2.0",