@atlaskit/link-create 1.11.4 → 1.11.5

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,12 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 1.11.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#59772](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59772) [`64c93d86d9fa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/64c93d86d9fa) - Cleans up FF: platform.linking-platform.link-create.confirm-dismiss-dialog permanently enabling the exit warning dialog
8
+ - Updated dependencies
9
+
3
10
  ## 1.11.4
4
11
 
5
12
  ### Patch Changes
@@ -94,11 +94,9 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref2) {
94
94
  showExitWarning = _useState2[0],
95
95
  setShowExitWarning = _useState2[1];
96
96
  var handleCancel = (0, _react.useCallback)(function () {
97
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.confirm-dismiss-dialog')) {
98
- if (getShouldShowWarning() && !showExitWarning) {
99
- setShowExitWarning(true);
100
- return;
101
- }
97
+ if (getShouldShowWarning() && !showExitWarning) {
98
+ setShowExitWarning(true);
99
+ return;
102
100
  }
103
101
  onCancel === null || onCancel === void 0 || onCancel();
104
102
  }, [onCancel, getShouldShowWarning, showExitWarning]);
@@ -125,7 +123,7 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref2) {
125
123
  })))))), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.enable-edit') && onComplete && (0, _react2.jsx)(_editModal.EditModal, {
126
124
  onCloseComplete: onCloseComplete,
127
125
  onClose: onComplete
128
- }), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.confirm-dismiss-dialog') && (0, _react2.jsx)(_confirmDismissDialog.ConfirmDismissDialog, {
126
+ }), (0, _react2.jsx)(_confirmDismissDialog.ConfirmDismissDialog, {
129
127
  active: showExitWarning,
130
128
  onClose: handleCloseExitWarning
131
129
  }));
@@ -31,7 +31,7 @@ var LinkCreateWithAnalyticsContext = (0, _analytics.withLinkCreateAnalyticsConte
31
31
  }));
32
32
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
33
33
  packageName: "@atlaskit/link-create" || '',
34
- packageVersion: "1.11.4" || '',
34
+ packageVersion: "1.11.5" || '',
35
35
  component: _constants.COMPONENT_NAME,
36
36
  componentName: _constants.COMPONENT_NAME
37
37
  };
@@ -65,11 +65,9 @@ const LinkCreateWithModal = ({
65
65
  } = useExitWarningModal();
66
66
  const [showExitWarning, setShowExitWarning] = useState(false);
67
67
  const handleCancel = useCallback(() => {
68
- if (getBooleanFF('platform.linking-platform.link-create.confirm-dismiss-dialog')) {
69
- if (getShouldShowWarning() && !showExitWarning) {
70
- setShowExitWarning(true);
71
- return;
72
- }
68
+ if (getShouldShowWarning() && !showExitWarning) {
69
+ setShowExitWarning(true);
70
+ return;
73
71
  }
74
72
  onCancel === null || onCancel === void 0 ? void 0 : onCancel();
75
73
  }, [onCancel, getShouldShowWarning, showExitWarning]);
@@ -94,7 +92,7 @@ const LinkCreateWithModal = ({
94
92
  })))))), getBooleanFF('platform.linking-platform.link-create.enable-edit') && onComplete && jsx(EditModal, {
95
93
  onCloseComplete: onCloseComplete,
96
94
  onClose: onComplete
97
- }), getBooleanFF('platform.linking-platform.link-create.confirm-dismiss-dialog') && jsx(ConfirmDismissDialog, {
95
+ }), jsx(ConfirmDismissDialog, {
98
96
  active: showExitWarning,
99
97
  onClose: handleCloseExitWarning
100
98
  }));
@@ -23,7 +23,7 @@ const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE
23
23
  }));
24
24
  export const PACKAGE_DATA = {
25
25
  packageName: "@atlaskit/link-create" || '',
26
- packageVersion: "1.11.4" || '',
26
+ packageVersion: "1.11.5" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -86,11 +86,9 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref2) {
86
86
  showExitWarning = _useState2[0],
87
87
  setShowExitWarning = _useState2[1];
88
88
  var handleCancel = useCallback(function () {
89
- if (getBooleanFF('platform.linking-platform.link-create.confirm-dismiss-dialog')) {
90
- if (getShouldShowWarning() && !showExitWarning) {
91
- setShowExitWarning(true);
92
- return;
93
- }
89
+ if (getShouldShowWarning() && !showExitWarning) {
90
+ setShowExitWarning(true);
91
+ return;
94
92
  }
95
93
  onCancel === null || onCancel === void 0 || onCancel();
96
94
  }, [onCancel, getShouldShowWarning, showExitWarning]);
@@ -117,7 +115,7 @@ var LinkCreateWithModal = function LinkCreateWithModal(_ref2) {
117
115
  })))))), getBooleanFF('platform.linking-platform.link-create.enable-edit') && onComplete && jsx(EditModal, {
118
116
  onCloseComplete: onCloseComplete,
119
117
  onClose: onComplete
120
- }), getBooleanFF('platform.linking-platform.link-create.confirm-dismiss-dialog') && jsx(ConfirmDismissDialog, {
118
+ }), jsx(ConfirmDismissDialog, {
121
119
  active: showExitWarning,
122
120
  onClose: handleCloseExitWarning
123
121
  }));
@@ -23,7 +23,7 @@ var LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__
23
23
  }));
24
24
  export var PACKAGE_DATA = {
25
25
  packageName: "@atlaskit/link-create" || '',
26
- packageVersion: "1.11.4" || '',
26
+ packageVersion: "1.11.5" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/linking-common": "^4.21.0",
47
47
  "@atlaskit/modal-dialog": "^12.10.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.2.1",
49
- "@atlaskit/primitives": "^1.13.0",
49
+ "@atlaskit/primitives": "^1.14.0",
50
50
  "@atlaskit/select": "^17.0.3",
51
51
  "@atlaskit/spinner": "^16.0.0",
52
52
  "@atlaskit/textfield": "^6.0.0",
@@ -120,9 +120,6 @@
120
120
  "platform.linking-platform.link-create.enable-edit": {
121
121
  "type": "boolean"
122
122
  },
123
- "platform.linking-platform.link-create.confirm-dismiss-dialog": {
124
- "type": "boolean"
125
- },
126
123
  "platform.linking-platform.link-create.enable-sentry-client": {
127
124
  "type": "boolean"
128
125
  },