@atlaskit/link-create 4.1.7 → 4.1.8

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,14 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 4.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#172990](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172990)
8
+ [`72746250a3966`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72746250a3966) -
9
+ Implemented tree graph for ADS Layering and removed old FG
10
+ - Updated dependencies
11
+
3
12
  ## 4.1.7
4
13
 
5
14
  ### 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.1.6" || '',
19
+ packageVersion: "4.1.7" || '',
20
20
  component: COMPONENT_NAME,
21
21
  componentName: COMPONENT_NAME
22
22
  };
@@ -13,6 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
13
13
  var _reactIntlNext = require("react-intl-next");
14
14
  var _layering = require("@atlaskit/layering");
15
15
  var _modalDialog = require("@atlaskit/modal-dialog");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _compiled = require("@atlaskit/primitives/compiled");
17
18
  var _constants = require("../../common/constants");
18
19
  var _confirmDismissDialog = require("../../common/ui/confirm-dismiss-dialog");
@@ -73,12 +74,16 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
73
74
  }, /*#__PURE__*/_react.default.createElement(_errorBoundary.ErrorBoundary, null, /*#__PURE__*/_react.default.createElement(_linkCreateContent.LinkCreateContent, {
74
75
  plugins: plugins,
75
76
  entityKey: entityKey
76
- })))))), onComplete && /*#__PURE__*/_react.default.createElement(_editModal.EditModal, {
77
+ })))), (0, _platformFeatureFlags.fg)('layering-tree-graph') && /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
78
+ active: showExitWarning,
79
+ onClose: handleCloseExitWarning,
80
+ onCancel: onCancel
81
+ }))), onComplete && /*#__PURE__*/_react.default.createElement(_editModal.EditModal, {
77
82
  onCloseComplete: onCloseComplete,
78
83
  onClose: onComplete,
79
84
  editViewPayload: editViewPayload,
80
85
  activePlugin: activePlugin
81
- }), /*#__PURE__*/_react.default.createElement(_layering.Layering, {
86
+ }), !(0, _platformFeatureFlags.fg)('layering-tree-graph') && /*#__PURE__*/_react.default.createElement(_layering.Layering, {
82
87
  isDisabled: false
83
88
  }, /*#__PURE__*/_react.default.createElement(_confirmDismissDialog.ConfirmDismissDialog, {
84
89
  active: showExitWarning,
@@ -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.1.6" || '',
13
+ packageVersion: "4.1.7" || '',
14
14
  component: COMPONENT_NAME,
15
15
  componentName: COMPONENT_NAME
16
16
  };
@@ -3,6 +3,7 @@ import React, { useLayoutEffect, useRef } from 'react';
3
3
  import { useIntl } from 'react-intl-next';
4
4
  import { Layering } from '@atlaskit/layering';
5
5
  import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { Box } from '@atlaskit/primitives/compiled';
7
8
  import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
8
9
  import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
@@ -63,12 +64,16 @@ const LinkCreateWithModal = ({
63
64
  }, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LinkCreateContent, {
64
65
  plugins: plugins,
65
66
  entityKey: entityKey
66
- })))))), onComplete && /*#__PURE__*/React.createElement(EditModal, {
67
+ })))), fg('layering-tree-graph') && /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
68
+ active: showExitWarning,
69
+ onClose: handleCloseExitWarning,
70
+ onCancel: onCancel
71
+ }))), onComplete && /*#__PURE__*/React.createElement(EditModal, {
67
72
  onCloseComplete: onCloseComplete,
68
73
  onClose: onComplete,
69
74
  editViewPayload: editViewPayload,
70
75
  activePlugin: activePlugin
71
- }), /*#__PURE__*/React.createElement(Layering, {
76
+ }), !fg('layering-tree-graph') && /*#__PURE__*/React.createElement(Layering, {
72
77
  isDisabled: false
73
78
  }, /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
74
79
  active: showExitWarning,
@@ -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.1.6" || '',
13
+ packageVersion: "4.1.7" || '',
14
14
  component: COMPONENT_NAME,
15
15
  componentName: COMPONENT_NAME
16
16
  };
@@ -5,6 +5,7 @@ import React, { useLayoutEffect, useRef } from 'react';
5
5
  import { useIntl } from 'react-intl-next';
6
6
  import { Layering } from '@atlaskit/layering';
7
7
  import { ModalBody, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { Box } from '@atlaskit/primitives/compiled';
9
10
  import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
10
11
  import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog';
@@ -64,12 +65,16 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref) {
64
65
  }, /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(LinkCreateContent, {
65
66
  plugins: plugins,
66
67
  entityKey: entityKey
67
- })))))), onComplete && /*#__PURE__*/React.createElement(EditModal, {
68
+ })))), fg('layering-tree-graph') && /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
69
+ active: showExitWarning,
70
+ onClose: handleCloseExitWarning,
71
+ onCancel: onCancel
72
+ }))), onComplete && /*#__PURE__*/React.createElement(EditModal, {
68
73
  onCloseComplete: onCloseComplete,
69
74
  onClose: onComplete,
70
75
  editViewPayload: editViewPayload,
71
76
  activePlugin: activePlugin
72
- }), /*#__PURE__*/React.createElement(Layering, {
77
+ }), !fg('layering-tree-graph') && /*#__PURE__*/React.createElement(Layering, {
73
78
  isDisabled: false
74
79
  }, /*#__PURE__*/React.createElement(ConfirmDismissDialog, {
75
80
  active: showExitWarning,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -133,6 +133,9 @@
133
133
  },
134
134
  "should-render-to-parent-should-be-true-linking-pla": {
135
135
  "type": "boolean"
136
+ },
137
+ "layering-tree-graph": {
138
+ "type": "boolean"
136
139
  }
137
140
  },
138
141
  "compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/5ebc0bfb-9b6d-4ec0-adbe-e4d5e88ace44"