@atlaskit/link-create 4.4.9 → 4.5.1

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,23 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 4.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4f3b60691a4d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f3b60691a4d6) -
8
+ NAVX-1976 cleaning up navx-1483-a11y-close-button-in-modal-updates
9
+
10
+ ## 4.5.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [`2c8e6f2ebadef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c8e6f2ebadef) -
15
+ Removes FG that migrates layering component to use tree structure
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 4.4.9
4
22
 
5
23
  ### Patch Changes
@@ -16,7 +16,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
16
16
  var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
17
17
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
18
18
  packageName: "@atlaskit/link-create" || '',
19
- packageVersion: "4.4.8" || '',
19
+ packageVersion: "4.5.0" || '',
20
20
  component: COMPONENT_NAME,
21
21
  componentName: COMPONENT_NAME
22
22
  };
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntlNext = require("react-intl-next");
10
10
  var _analyticsNext = require("@atlaskit/analytics-next");
11
11
  var _modalDialog = require("@atlaskit/modal-dialog");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _Button = require("../Button");
14
13
  var _ModalDialog = require("../ModalDialog");
15
14
  var _messages = _interopRequireDefault(require("./messages"));
@@ -38,7 +37,7 @@ var ConfirmDismissDialog = exports.ConfirmDismissDialog = function ConfirmDismis
38
37
  onClose: onCancelDismiss,
39
38
  width: "small"
40
39
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
41
- hasCloseButton: (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates')
40
+ hasCloseButton: true
42
41
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, intl.formatMessage(_messages.default.title))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, intl.formatMessage(_messages.default.description)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalFooter, null, /*#__PURE__*/_react.default.createElement(_Button.Button, {
43
42
  actionSubjectId: "cancel",
44
43
  appearance: "subtle",
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.ErrorBoundaryModal = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _constants = require("../../constants");
13
12
  var _errorBoundaryUi = require("../error-boundary-ui");
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -25,7 +24,7 @@ var ErrorBoundaryModal = exports.ErrorBoundaryModal = function ErrorBoundaryModa
25
24
  onClose: onClose,
26
25
  shouldScrollInViewport: true,
27
26
  width: "".concat(_constants.CREATE_FORM_MAX_WIDTH_IN_PX, "px")
28
- }, (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates') && /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
27
+ }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
29
28
  hasCloseButton: true
30
29
  }), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_errorBoundaryUi.ErrorBoundaryUI, null))));
31
30
  };
@@ -11,9 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _reactIntlNext = require("react-intl-next");
14
- var _layering = require("@atlaskit/layering");
15
14
  var _modalDialog = require("@atlaskit/modal-dialog");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
15
  var _compiled = require("@atlaskit/primitives/compiled");
18
16
  var _constants = require("../../common/constants");
19
17
  var _confirmDismissDialog = require("../../common/ui/confirm-dismiss-dialog");
@@ -70,13 +68,13 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
70
68
  }, /*#__PURE__*/_react.default.createElement(_modalHero.ModalHero, {
71
69
  hero: modalHero
72
70
  }), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, {
73
- hasCloseButton: (0, _platformFeatureFlags.fg)('navx-1483-a11y-close-button-in-modal-updates')
71
+ hasCloseButton: true
74
72
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, null, modalTitle || intl.formatMessage(_messages.messages.heading))), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
75
73
  testId: testId
76
74
  }, /*#__PURE__*/_react.default.createElement(_errorBoundary.ErrorBoundary, null, /*#__PURE__*/_react.default.createElement(_linkCreateContent.LinkCreateContent, {
77
75
  plugins: plugins,
78
76
  entityKey: entityKey
79
- })))), (0, _platformFeatureFlags.fg)('layering-tree-graph') && /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
77
+ })))), /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
80
78
  active: showExitWarning,
81
79
  onClose: handleCloseExitWarning,
82
80
  onCancel: onCancel
@@ -85,13 +83,7 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
85
83
  onClose: onComplete,
86
84
  editViewPayload: editViewPayload,
87
85
  activePlugin: activePlugin
88
- }), !(0, _platformFeatureFlags.fg)('layering-tree-graph') && /*#__PURE__*/_react.default.createElement(_layering.Layering, {
89
- isDisabled: false
90
- }, /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
91
- active: showExitWarning,
92
- onClose: handleCloseExitWarning,
93
- onCancel: onCancel
94
- })));
86
+ }));
95
87
  };
96
88
  var LinkCreateModal = function LinkCreateModal(props) {
97
89
  var shouldCallCloseComplete = (0, _react.useRef)(!props.active);
@@ -10,7 +10,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
10
10
  export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
11
11
  export const PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/link-create" || '',
13
- packageVersion: "4.4.8" || '',
13
+ packageVersion: "4.5.0" || '',
14
14
  component: COMPONENT_NAME,
15
15
  componentName: COMPONENT_NAME
16
16
  };
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
3
  import { AnalyticsContext } from '@atlaskit/analytics-next';
4
4
  import { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Button } from '../Button';
7
6
  import { Modal } from '../ModalDialog';
8
7
  import messages from './messages';
@@ -30,7 +29,7 @@ export const ConfirmDismissDialog = ({
30
29
  onClose: onCancelDismiss,
31
30
  width: "small"
32
31
  }, /*#__PURE__*/React.createElement(ModalHeader, {
33
- hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
32
+ hasCloseButton: true
34
33
  }, /*#__PURE__*/React.createElement(ModalTitle, null, intl.formatMessage(messages.title))), /*#__PURE__*/React.createElement(ModalBody, null, intl.formatMessage(messages.description)), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
35
34
  actionSubjectId: "cancel",
36
35
  appearance: "subtle",
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import Modal, { ModalBody, ModalHeader, ModalTransition } from '@atlaskit/modal-dialog';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { CREATE_FORM_MAX_WIDTH_IN_PX } from '../../constants';
5
4
  import { ErrorBoundaryUI } from '../error-boundary-ui';
6
5
 
@@ -18,7 +17,7 @@ export const ErrorBoundaryModal = ({
18
17
  onClose: onClose,
19
18
  shouldScrollInViewport: true,
20
19
  width: `${CREATE_FORM_MAX_WIDTH_IN_PX}px`
21
- }, fg('navx-1483-a11y-close-button-in-modal-updates') && /*#__PURE__*/React.createElement(ModalHeader, {
20
+ }, /*#__PURE__*/React.createElement(ModalHeader, {
22
21
  hasCloseButton: true
23
22
  }), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(ErrorBoundaryUI, null))));
24
23
  };
@@ -1,9 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useLayoutEffect, useRef } from 'react';
3
3
  import { useIntl } from 'react-intl-next';
4
- import { Layering } from '@atlaskit/layering';
5
4
  import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
6
- import { fg } from '@atlaskit/platform-feature-flags';
7
5
  import { Box } from '@atlaskit/primitives/compiled';
8
6
  import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
9
7
  import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
@@ -60,13 +58,13 @@ const LinkCreateWithModal = ({
60
58
  }, /*#__PURE__*/React.createElement(ModalHero, {
61
59
  hero: modalHero
62
60
  }), /*#__PURE__*/React.createElement(ModalHeader, {
63
- hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
61
+ hasCloseButton: true
64
62
  }, /*#__PURE__*/React.createElement(ModalTitle, null, modalTitle || intl.formatMessage(messages.heading))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Box, {
65
63
  testId: testId
66
64
  }, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LinkCreateContent, {
67
65
  plugins: plugins,
68
66
  entityKey: entityKey
69
- })))), fg('layering-tree-graph') && /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
67
+ })))), /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
70
68
  active: showExitWarning,
71
69
  onClose: handleCloseExitWarning,
72
70
  onCancel: onCancel
@@ -75,13 +73,7 @@ const LinkCreateWithModal = ({
75
73
  onClose: onComplete,
76
74
  editViewPayload: editViewPayload,
77
75
  activePlugin: activePlugin
78
- }), !fg('layering-tree-graph') && /*#__PURE__*/React.createElement(Layering, {
79
- isDisabled: false
80
- }, /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
81
- active: showExitWarning,
82
- onClose: handleCloseExitWarning,
83
- onCancel: onCancel
84
- })));
76
+ }));
85
77
  };
86
78
  const LinkCreateModal = props => {
87
79
  const shouldCallCloseComplete = useRef(!props.active);
@@ -10,7 +10,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
10
10
  export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
11
11
  export var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/link-create" || '',
13
- packageVersion: "4.4.8" || '',
13
+ packageVersion: "4.5.0" || '',
14
14
  component: COMPONENT_NAME,
15
15
  componentName: COMPONENT_NAME
16
16
  };
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
3
  import { AnalyticsContext } from '@atlaskit/analytics-next';
4
4
  import { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { Button } from '../Button';
7
6
  import { Modal } from '../ModalDialog';
8
7
  import messages from './messages';
@@ -31,7 +30,7 @@ export var ConfirmDismissDialog = function ConfirmDismissDialog(_ref) {
31
30
  onClose: onCancelDismiss,
32
31
  width: "small"
33
32
  }, /*#__PURE__*/React.createElement(ModalHeader, {
34
- hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
33
+ hasCloseButton: true
35
34
  }, /*#__PURE__*/React.createElement(ModalTitle, null, intl.formatMessage(messages.title))), /*#__PURE__*/React.createElement(ModalBody, null, intl.formatMessage(messages.description)), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
36
35
  actionSubjectId: "cancel",
37
36
  appearance: "subtle",
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import Modal, { ModalBody, ModalHeader, ModalTransition } from '@atlaskit/modal-dialog';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  import { CREATE_FORM_MAX_WIDTH_IN_PX } from '../../constants';
5
4
  import { ErrorBoundaryUI } from '../error-boundary-ui';
6
5
 
@@ -17,7 +16,7 @@ export var ErrorBoundaryModal = function ErrorBoundaryModal(_ref) {
17
16
  onClose: onClose,
18
17
  shouldScrollInViewport: true,
19
18
  width: "".concat(CREATE_FORM_MAX_WIDTH_IN_PX, "px")
20
- }, fg('navx-1483-a11y-close-button-in-modal-updates') && /*#__PURE__*/React.createElement(ModalHeader, {
19
+ }, /*#__PURE__*/React.createElement(ModalHeader, {
21
20
  hasCloseButton: true
22
21
  }), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(ErrorBoundaryUI, null))));
23
22
  };
@@ -3,9 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
4
4
  import React, { useLayoutEffect, useRef } from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
- import { Layering } from '@atlaskit/layering';
7
6
  import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
7
  import { Box } from '@atlaskit/primitives/compiled';
10
8
  import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
11
9
  import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
@@ -61,13 +59,13 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
61
59
  }, /*#__PURE__*/React.createElement(ModalHero, {
62
60
  hero: modalHero
63
61
  }), /*#__PURE__*/React.createElement(ModalHeader, {
64
- hasCloseButton: fg('navx-1483-a11y-close-button-in-modal-updates')
62
+ hasCloseButton: true
65
63
  }, /*#__PURE__*/React.createElement(ModalTitle, null, modalTitle || intl.formatMessage(messages.heading))), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Box, {
66
64
  testId: testId
67
65
  }, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LinkCreateContent, {
68
66
  plugins: plugins,
69
67
  entityKey: entityKey
70
- })))), fg('layering-tree-graph') && /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
68
+ })))), /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
71
69
  active: showExitWarning,
72
70
  onClose: handleCloseExitWarning,
73
71
  onCancel: onCancel
@@ -76,13 +74,7 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
76
74
  onClose: onComplete,
77
75
  editViewPayload: editViewPayload,
78
76
  activePlugin: activePlugin
79
- }), !fg('layering-tree-graph') && /*#__PURE__*/React.createElement(Layering, {
80
- isDisabled: false
81
- }, /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
82
- active: showExitWarning,
83
- onClose: handleCloseExitWarning,
84
- onCancel: onCancel
85
- })));
77
+ }));
86
78
  };
87
79
  var LinkCreateModal = function LinkCreateModal(props) {
88
80
  var shouldCallCloseComplete = useRef(!props.active);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "4.4.9",
3
+ "version": "4.5.1",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,26 +35,26 @@
35
35
  "@atlaskit/afm-i18n-platform-linking-platform-link-create": "2.7.0",
36
36
  "@atlaskit/analytics-next": "^11.1.0",
37
37
  "@atlaskit/atlassian-context": "^0.6.0",
38
- "@atlaskit/button": "^23.4.0",
38
+ "@atlaskit/button": "^23.5.0",
39
39
  "@atlaskit/css": "^0.14.0",
40
40
  "@atlaskit/empty-state": "^10.1.0",
41
- "@atlaskit/form": "^14.0.0",
42
- "@atlaskit/icon": "^28.2.0",
41
+ "@atlaskit/form": "^14.2.0",
42
+ "@atlaskit/icon": "^28.5.0",
43
43
  "@atlaskit/icon-file-type": "^7.0.0",
44
44
  "@atlaskit/icon-object": "^7.2.0",
45
45
  "@atlaskit/intl-messages-provider": "^2.0.0",
46
- "@atlaskit/layering": "^3.0.0",
46
+ "@atlaskit/layering": "^3.1.0",
47
47
  "@atlaskit/link": "^3.2.0",
48
48
  "@atlaskit/linking-common": "^9.7.0",
49
- "@atlaskit/modal-dialog": "^14.3.0",
49
+ "@atlaskit/modal-dialog": "^14.5.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
51
  "@atlaskit/primitives": "^14.15.0",
52
52
  "@atlaskit/select": "^21.3.0",
53
- "@atlaskit/smart-user-picker": "^8.2.0",
53
+ "@atlaskit/smart-user-picker": "^8.3.0",
54
54
  "@atlaskit/spinner": "^19.0.0",
55
55
  "@atlaskit/textfield": "^8.0.0",
56
56
  "@atlaskit/theme": "^21.0.0",
57
- "@atlaskit/tokens": "^6.3.0",
57
+ "@atlaskit/tokens": "^6.4.0",
58
58
  "@babel/runtime": "^7.0.0",
59
59
  "@compiled/react": "^0.18.3",
60
60
  "debounce-promise": "^3.1.2",
@@ -126,12 +126,6 @@
126
126
  },
127
127
  "should-render-to-parent-should-be-true-linking-pla": {
128
128
  "type": "boolean"
129
- },
130
- "layering-tree-graph": {
131
- "type": "boolean"
132
- },
133
- "navx-1483-a11y-close-button-in-modal-updates": {
134
- "type": "boolean"
135
129
  }
136
130
  },
137
131
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/5ebc0bfb-9b6d-4ec0-adbe-e4d5e88ace44"