@atlaskit/link-picker 6.7.0 → 6.7.2
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 +43 -0
- package/dist/cjs/ui/link-picker/form-footer/index.js +3 -1
- package/dist/cjs/ui/link-picker/index.js +2 -2
- package/dist/cjs/ui/main.js +1 -1
- package/dist/es2019/ui/link-picker/form-footer/index.js +3 -1
- package/dist/es2019/ui/link-picker/index.js +1 -1
- package/dist/es2019/ui/main.js +1 -1
- package/dist/esm/ui/link-picker/form-footer/index.js +3 -1
- package/dist/esm/ui/link-picker/index.js +1 -1
- package/dist/esm/ui/main.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @atlaskit/link-picker
|
|
2
2
|
|
|
3
|
+
## 6.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6dac09d559c6d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6dac09d559c6d) -
|
|
8
|
+
Remove incorrect footer semantics from LinkPicker form actions behind gate
|
|
9
|
+
`platform_navx_fix_nested_footer_landmark`.
|
|
10
|
+
|
|
11
|
+
## 6.7.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
|
|
16
|
+
Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
|
|
17
|
+
|
|
18
|
+
`uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
|
|
19
|
+
export, so all internal call sites were migrated to named imports:
|
|
20
|
+
|
|
21
|
+
```diff
|
|
22
|
+
-import uuid from 'uuid/v4';
|
|
23
|
+
+import { v4 as uuid } from 'uuid';
|
|
24
|
+
|
|
25
|
+
-import uuid from 'uuid';
|
|
26
|
+
+import { v4 as uuid } from 'uuid';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
With the exception of `@atlassian/integrations` (below), this is an internal implementation change
|
|
30
|
+
only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
|
|
31
|
+
(`uuid@3`'s default export was already `v4`).
|
|
32
|
+
|
|
33
|
+
`@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
|
|
34
|
+
`^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
|
|
35
|
+
`patch` for that package.
|
|
36
|
+
|
|
37
|
+
The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
|
|
38
|
+
and so are intentionally not listed in the frontmatter above:
|
|
39
|
+
- `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
|
|
40
|
+
`npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
|
|
41
|
+
- `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
|
|
42
|
+
- `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
|
|
43
|
+
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
|
|
3
46
|
## 6.7.0
|
|
4
47
|
|
|
5
48
|
### Minor Changes
|
|
@@ -17,6 +17,7 @@ var _reactIntl = require("react-intl");
|
|
|
17
17
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
18
18
|
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
19
19
|
var _add = _interopRequireDefault(require("@atlaskit/icon/core/add"));
|
|
20
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
21
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden/visually-hidden"));
|
|
21
22
|
var _errors = require("../../../common/utils/errors");
|
|
22
23
|
var _linkPickerSubmitButton = require("./link-picker-submit-button");
|
|
@@ -79,7 +80,8 @@ var FormFooter = exports.FormFooter = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
79
80
|
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
80
81
|
}, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
+
var FormFooterElement = (0, _fg.fg)('platform_navx_fix_nested_footer_landmark') ? 'div' : 'footer';
|
|
84
|
+
return /*#__PURE__*/React.createElement(FormFooterElement, (0, _extends2.default)({
|
|
83
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
84
86
|
className: (0, _runtime.ax)(["_1e0c1txw _1bahesu3 _ca0qpxbi", className])
|
|
85
87
|
}, restProps), isSubmitting && /*#__PURE__*/React.createElement(_visuallyHidden.default, {
|
|
@@ -17,7 +17,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _reactIntl = require("react-intl");
|
|
19
19
|
var _useCallbackRef = require("use-callback-ref");
|
|
20
|
-
var _uuid =
|
|
20
|
+
var _uuid = require("uuid");
|
|
21
21
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
22
22
|
var _linkProvider = require("@atlaskit/link-provider");
|
|
23
23
|
var _url2 = require("@atlaskit/linking-common/url");
|
|
@@ -160,7 +160,7 @@ var LinkPicker = exports.LinkPicker = (0, _analytics.withLinkPickerAnalyticsCont
|
|
|
160
160
|
|
|
161
161
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
162
162
|
var submitMessageId = (0, _react.useMemo)(function () {
|
|
163
|
-
return (0, _uuid.
|
|
163
|
+
return (0, _uuid.v4)();
|
|
164
164
|
}, []);
|
|
165
165
|
(0, _react.useLayoutEffect)(function () {
|
|
166
166
|
if (onContentResize) {
|
package/dist/cjs/ui/main.js
CHANGED
|
@@ -26,7 +26,7 @@ var testIds = exports.testIds = {
|
|
|
26
26
|
};
|
|
27
27
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
28
28
|
packageName: "@atlaskit/link-picker" || '',
|
|
29
|
-
packageVersion: "6.7.
|
|
29
|
+
packageVersion: "6.7.1" || '',
|
|
30
30
|
componentName: _constants.COMPONENT_NAME,
|
|
31
31
|
source: _constants.COMPONENT_NAME
|
|
32
32
|
};
|
|
@@ -8,6 +8,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
8
8
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
9
9
|
import Button from '@atlaskit/button/default/button';
|
|
10
10
|
import EditorAddIcon from '@atlaskit/icon/core/add';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
12
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
12
13
|
import { UnauthenticatedError } from '../../../common/utils/errors';
|
|
13
14
|
import { LinkPickerSubmitButton } from './link-picker-submit-button';
|
|
@@ -64,7 +65,8 @@ export const FormFooter = /*#__PURE__*/memo(({
|
|
|
64
65
|
isDisabled: isSubmitting,
|
|
65
66
|
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
66
67
|
}, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
|
|
67
|
-
|
|
68
|
+
const FormFooterElement = fg('platform_navx_fix_nested_footer_landmark') ? 'div' : 'footer';
|
|
69
|
+
return /*#__PURE__*/React.createElement(FormFooterElement, _extends({
|
|
68
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
69
71
|
className: ax(["_1e0c1txw _1bahesu3 _ca0qpxbi", className])
|
|
70
72
|
}, restProps), isSubmitting && /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
@@ -6,7 +6,7 @@ import React, { Fragment, memo, useCallback, useLayoutEffect, useMemo, useReduce
|
|
|
6
6
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
7
7
|
import { useMergeRefs } from 'use-callback-ref';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
|
-
import uuid from 'uuid';
|
|
9
|
+
import { v4 as uuid } from 'uuid';
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
11
|
import { CardClient } from '@atlaskit/link-provider';
|
|
12
12
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
package/dist/es2019/ui/main.js
CHANGED
|
@@ -10,6 +10,7 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
10
10
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
11
11
|
import Button from '@atlaskit/button/default/button';
|
|
12
12
|
import EditorAddIcon from '@atlaskit/icon/core/add';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
14
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
14
15
|
import { UnauthenticatedError } from '../../../common/utils/errors';
|
|
15
16
|
import { LinkPickerSubmitButton } from './link-picker-submit-button';
|
|
@@ -70,7 +71,8 @@ var FormFooter = /*#__PURE__*/memo(function (_ref) {
|
|
|
70
71
|
"aria-labelledby": isSubmitting ? submitMessageId : undefined
|
|
71
72
|
}, typeof pluginAction.label === 'string' ? pluginAction.label : intl.formatMessage(pluginAction.label));
|
|
72
73
|
};
|
|
73
|
-
|
|
74
|
+
var FormFooterElement = fg('platform_navx_fix_nested_footer_landmark') ? 'div' : 'footer';
|
|
75
|
+
return /*#__PURE__*/React.createElement(FormFooterElement, _extends({
|
|
74
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
75
77
|
className: ax(["_1e0c1txw _1bahesu3 _ca0qpxbi", className])
|
|
76
78
|
}, restProps), isSubmitting && /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
@@ -12,7 +12,7 @@ import React, { Fragment, memo, useCallback, useLayoutEffect, useMemo, useReduce
|
|
|
12
12
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
13
13
|
import { useMergeRefs } from 'use-callback-ref';
|
|
14
14
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
|
-
import uuid from 'uuid';
|
|
15
|
+
import { v4 as uuid } from 'uuid';
|
|
16
16
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
17
17
|
import { CardClient } from '@atlaskit/link-provider';
|
|
18
18
|
import { isSafeUrl, normalizeUrl } from '@atlaskit/linking-common/url';
|
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": "6.7.
|
|
3
|
+
"version": "6.7.2",
|
|
4
4
|
"description": "Standalone link picker",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"atlaskit:src": "src/index.ts",
|
|
33
33
|
"platform-feature-flags": {
|
|
34
|
+
"platform_navx_fix_nested_footer_landmark": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
34
37
|
"platform_navx_3298_message_wrapper": {
|
|
35
38
|
"type": "boolean"
|
|
36
39
|
},
|
|
@@ -80,7 +83,7 @@
|
|
|
80
83
|
"react-loosely-lazy": "^1.0.0",
|
|
81
84
|
"use-callback-ref": "^1.2.3",
|
|
82
85
|
"use-debounce": "^3.4.0",
|
|
83
|
-
"uuid": "^
|
|
86
|
+
"uuid": "^11.1.1"
|
|
84
87
|
},
|
|
85
88
|
"peerDependencies": {
|
|
86
89
|
"react": "^18.2.0",
|