@atlaskit/link-picker 3.9.1 → 3.9.3
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 +13 -0
- package/dist/cjs/ui/link-picker/text-input/index.js +4 -12
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/link-picker/text-input/index.js +2 -10
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/link-picker/text-input/index.js +4 -12
- package/dist/esm/ui/main.js +1 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 3.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e178e7edf0f80`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e178e7edf0f80) -
|
|
8
|
+
Clean up jsc_inline_editing_field_refactor FG.
|
|
9
|
+
|
|
10
|
+
## 3.9.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 3.9.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
15
15
|
var _useCallbackRef = require("use-callback-ref");
|
|
16
16
|
var _form = require("@atlaskit/form");
|
|
17
17
|
var _crossCircleSelectClear = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross-circle--select-clear"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _textfield = _interopRequireDefault(require("@atlaskit/textfield"));
|
|
21
20
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -62,17 +61,10 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
|
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
}, [autoFocus]);
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return [handleRef, inputRefProp].filter(Boolean);
|
|
70
|
-
}, [handleRef, inputRefProp]);
|
|
71
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
72
|
-
textfieldRef = (0, _useCallbackRef.useMergeRefs)(refs);
|
|
73
|
-
} else {
|
|
74
|
-
textfieldRef = handleRef;
|
|
75
|
-
}
|
|
64
|
+
var refs = (0, _react.useMemo)(function () {
|
|
65
|
+
return [handleRef, inputRefProp].filter(Boolean);
|
|
66
|
+
}, [handleRef, inputRefProp]);
|
|
67
|
+
var textfieldRef = (0, _useCallbackRef.useMergeRefs)(refs);
|
|
76
68
|
var handleKeydown = (0, _react.useCallback)(function (e) {
|
|
77
69
|
if (typeof onUndo === 'function' && (0, _utils.isUndoEvent)(e)) {
|
|
78
70
|
e.preventDefault();
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -25,7 +25,7 @@ var testIds = exports.testIds = {
|
|
|
25
25
|
};
|
|
26
26
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
27
27
|
packageName: "@atlaskit/link-picker" || '',
|
|
28
|
-
packageVersion: "3.9.
|
|
28
|
+
packageVersion: "3.9.2" || '',
|
|
29
29
|
componentName: _constants.COMPONENT_NAME,
|
|
30
30
|
source: _constants.COMPONENT_NAME
|
|
31
31
|
};
|
|
@@ -6,7 +6,6 @@ import React, { Fragment, useCallback, useMemo, useRef } from 'react';
|
|
|
6
6
|
import { useMergeRefs } from 'use-callback-ref';
|
|
7
7
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
8
8
|
import Selectclear from '@atlaskit/icon/core/migration/cross-circle--select-clear';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import Textfield from '@atlaskit/textfield';
|
|
12
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -52,15 +51,8 @@ export const TextInput = ({
|
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
}, [autoFocus]);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
58
|
-
const refs = useMemo(() => [handleRef, inputRefProp].filter(Boolean), [handleRef, inputRefProp]);
|
|
59
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
60
|
-
textfieldRef = useMergeRefs(refs);
|
|
61
|
-
} else {
|
|
62
|
-
textfieldRef = handleRef;
|
|
63
|
-
}
|
|
54
|
+
const refs = useMemo(() => [handleRef, inputRefProp].filter(Boolean), [handleRef, inputRefProp]);
|
|
55
|
+
const textfieldRef = useMergeRefs(refs);
|
|
64
56
|
const handleKeydown = useCallback(e => {
|
|
65
57
|
if (typeof onUndo === 'function' && isUndoEvent(e)) {
|
|
66
58
|
e.preventDefault();
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -8,7 +8,6 @@ import React, { Fragment, useCallback, useMemo, useRef } from 'react';
|
|
|
8
8
|
import { useMergeRefs } from 'use-callback-ref';
|
|
9
9
|
import { ErrorMessage, Field } from '@atlaskit/form';
|
|
10
10
|
import Selectclear from '@atlaskit/icon/core/migration/cross-circle--select-clear';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import Textfield from '@atlaskit/textfield';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -53,17 +52,10 @@ export var TextInput = function TextInput(_ref) {
|
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
54
|
}, [autoFocus]);
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return [handleRef, inputRefProp].filter(Boolean);
|
|
61
|
-
}, [handleRef, inputRefProp]);
|
|
62
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
63
|
-
textfieldRef = useMergeRefs(refs);
|
|
64
|
-
} else {
|
|
65
|
-
textfieldRef = handleRef;
|
|
66
|
-
}
|
|
55
|
+
var refs = useMemo(function () {
|
|
56
|
+
return [handleRef, inputRefProp].filter(Boolean);
|
|
57
|
+
}, [handleRef, inputRefProp]);
|
|
58
|
+
var textfieldRef = useMergeRefs(refs);
|
|
67
59
|
var handleKeydown = useCallback(function (e) {
|
|
68
60
|
if (typeof onUndo === 'function' && isUndoEvent(e)) {
|
|
69
61
|
e.preventDefault();
|
package/dist/esm/ui/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-picker",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"platform_support_live_doc_icons_in_link_picker": {
|
|
49
49
|
"type": "boolean"
|
|
50
50
|
},
|
|
51
|
-
"jsc_inline_editing_field_refactor": {
|
|
52
|
-
"type": "boolean"
|
|
53
|
-
},
|
|
54
51
|
"dst-a11y__replace-anchor-with-link__linking-platfo": {
|
|
55
52
|
"type": "boolean"
|
|
56
53
|
},
|
|
@@ -69,7 +66,7 @@
|
|
|
69
66
|
"@atlaskit/form": "^12.0.0",
|
|
70
67
|
"@atlaskit/frontend-utilities": "^3.1.0",
|
|
71
68
|
"@atlaskit/heading": "^5.2.0",
|
|
72
|
-
"@atlaskit/icon": "^27.
|
|
69
|
+
"@atlaskit/icon": "^27.9.0",
|
|
73
70
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
74
71
|
"@atlaskit/link": "^3.2.0",
|
|
75
72
|
"@atlaskit/link-provider": "^3.4.0",
|
|
@@ -77,12 +74,12 @@
|
|
|
77
74
|
"@atlaskit/onboarding": "^14.3.0",
|
|
78
75
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
79
76
|
"@atlaskit/primitives": "^14.11.0",
|
|
80
|
-
"@atlaskit/smart-card": "^40.
|
|
77
|
+
"@atlaskit/smart-card": "^40.7.0",
|
|
81
78
|
"@atlaskit/spinner": "^19.0.0",
|
|
82
79
|
"@atlaskit/tabs": "^18.1.0",
|
|
83
80
|
"@atlaskit/textfield": "^8.0.0",
|
|
84
81
|
"@atlaskit/theme": "^19.0.0",
|
|
85
|
-
"@atlaskit/tokens": "^
|
|
82
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
86
83
|
"@atlaskit/tooltip": "^20.4.0",
|
|
87
84
|
"@atlaskit/ufo": "^0.4.0",
|
|
88
85
|
"@atlaskit/visually-hidden": "^3.0.0",
|