@atlaskit/inline-edit 15.3.11 → 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,17 @@
1
1
  # @atlaskit/inline-edit
2
2
 
3
+ ## 15.3.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.3.12
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 15.3.11
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /* inline-edit.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* inline-edit.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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.10"
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()) {
@@ -1,4 +1,4 @@
1
- /* inline-editable-textfield.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* inline-editable-textfield.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* buttons.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* buttons.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* read-view.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* read-view.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* inline-edit.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* inline-edit.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./inline-edit.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useRef, useState } from 'react';
@@ -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.10"
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()) {
@@ -1,4 +1,4 @@
1
- /* inline-editable-textfield.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* inline-editable-textfield.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./inline-editable-textfield.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* buttons.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* buttons.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./buttons.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* read-view.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* read-view.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./read-view.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useRef } from 'react';
@@ -1,4 +1,4 @@
1
- /* inline-edit.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* inline-edit.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./inline-edit.compiled.css";
@@ -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.10"
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()) {
@@ -1,4 +1,4 @@
1
- /* inline-editable-textfield.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* inline-editable-textfield.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["errorMessage", "isInvalid"];
@@ -1,4 +1,4 @@
1
- /* buttons.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* buttons.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./buttons.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* read-view.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* read-view.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./read-view.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useRef } from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-edit",
3
- "version": "15.3.11",
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": "^13.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,9 +55,9 @@
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
- "@atlaskit/ds-lib": "^5.0.0",
60
+ "@atlaskit/ds-lib": "^5.1.0",
61
61
  "@atlaskit/heading": "^5.2.0",
62
62
  "@atlaskit/link": "^3.2.0",
63
63
  "@atlaskit/section-message": "^8.7.0",