@atlaskit/link-create 1.11.3 → 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,18 @@
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
+
10
+ ## 1.11.4
11
+
12
+ ### Patch Changes
13
+
14
+ - [#60029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60029) [`b9826ea49c47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9826ea49c47) - Update dependencies that were impacted by HOT-106483 to latest.
15
+
3
16
  ## 1.11.3
4
17
 
5
18
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -64,8 +64,8 @@ Object.defineProperty(exports, "useLinkCreateCallback", {
64
64
  return _callbackContext.useLinkCreateCallback;
65
65
  }
66
66
  });
67
- var _finalForm = require("final-form");
68
67
  var _index = _interopRequireWildcard(require("./ui/index"));
69
68
  var _callbackContext = require("./controllers/callback-context");
69
+ var _finalForm = require("final-form");
70
70
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
71
71
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -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.3" || '',
34
+ packageVersion: "1.11.5" || '',
35
35
  component: _constants.COMPONENT_NAME,
36
36
  componentName: _constants.COMPONENT_NAME
37
37
  };
@@ -1,3 +1,3 @@
1
- export { FORM_ERROR } from 'final-form';
2
1
  export { default, TextField, CreateForm, Select, AsyncSelect, CreateFormLoader, FormSpy } from './ui/index';
3
- export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
2
+ export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
3
+ export { FORM_ERROR } from 'final-form';
@@ -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.3" || '',
26
+ packageVersion: "1.11.5" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { FORM_ERROR } from 'final-form';
2
1
  export { default, TextField, CreateForm, Select, AsyncSelect, CreateFormLoader, FormSpy } from './ui/index';
3
- export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
2
+ export { useLinkCreateCallback, LinkCreateCallbackProvider } from './controllers/callback-context';
3
+ export { FORM_ERROR } from 'final-form';
@@ -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.3" || '',
26
+ packageVersion: "1.11.5" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -122,7 +122,7 @@ export interface LinkCreateProps {
122
122
  */
123
123
  triggeredFrom?: string;
124
124
  }
125
- export interface LinkCreateWithModalProps extends LinkCreateProps, Partial<Pick<ModalDialogProps, 'onOpenComplete' | 'onCloseComplete'>> {
125
+ export interface LinkCreateWithModalProps extends LinkCreateProps {
126
126
  /**
127
127
  * This value controls whether the Create Modal should be active or hidden
128
128
  * Default: false
@@ -133,4 +133,14 @@ export interface LinkCreateWithModalProps extends LinkCreateProps, Partial<Pick<
133
133
  * Default: Create new
134
134
  */
135
135
  modalTitle?: string;
136
+ /**
137
+ * Callback function called when the final link create experience dialog has finished closing.
138
+ * @see {@link https://atlassian.design/components/modal-dialog/code#ModalWrapper-onCloseComplete}
139
+ */
140
+ onCloseComplete?: ModalDialogProps['onCloseComplete'];
141
+ /**
142
+ * Callback function called when the link create experience dialog has finished opening.
143
+ * @see {@link https://atlassian.design/components/modal-dialog/code#ModalWrapper-onOpenComplete}
144
+ */
145
+ onOpenComplete?: ModalDialogProps['onOpenComplete'];
136
146
  }
@@ -1,6 +1,6 @@
1
- export { FORM_ERROR } from 'final-form';
2
1
  export type { CreateFormProps } from './ui/index';
3
2
  export type { LinkCreateProps, LinkCreatePlugin, LinkCreateWithModalProps, CreatePayload, EditViewProps, } from './common/types';
4
3
  export { default, TextField, CreateForm, Select, AsyncSelect, CreateFormLoader, FormSpy, } from './ui/index';
5
4
  export { useLinkCreateCallback, LinkCreateCallbackProvider, } from './controllers/callback-context';
6
5
  export type { Validator, ValidatorMap } from './common/types';
6
+ export { FORM_ERROR } from 'final-form';
@@ -122,7 +122,7 @@ export interface LinkCreateProps {
122
122
  */
123
123
  triggeredFrom?: string;
124
124
  }
125
- export interface LinkCreateWithModalProps extends LinkCreateProps, Partial<Pick<ModalDialogProps, 'onOpenComplete' | 'onCloseComplete'>> {
125
+ export interface LinkCreateWithModalProps extends LinkCreateProps {
126
126
  /**
127
127
  * This value controls whether the Create Modal should be active or hidden
128
128
  * Default: false
@@ -133,4 +133,14 @@ export interface LinkCreateWithModalProps extends LinkCreateProps, Partial<Pick<
133
133
  * Default: Create new
134
134
  */
135
135
  modalTitle?: string;
136
+ /**
137
+ * Callback function called when the final link create experience dialog has finished closing.
138
+ * @see {@link https://atlassian.design/components/modal-dialog/code#ModalWrapper-onCloseComplete}
139
+ */
140
+ onCloseComplete?: ModalDialogProps['onCloseComplete'];
141
+ /**
142
+ * Callback function called when the link create experience dialog has finished opening.
143
+ * @see {@link https://atlassian.design/components/modal-dialog/code#ModalWrapper-onOpenComplete}
144
+ */
145
+ onOpenComplete?: ModalDialogProps['onOpenComplete'];
136
146
  }
@@ -1,6 +1,6 @@
1
- export { FORM_ERROR } from 'final-form';
2
1
  export type { CreateFormProps } from './ui/index';
3
2
  export type { LinkCreateProps, LinkCreatePlugin, LinkCreateWithModalProps, CreatePayload, EditViewProps, } from './common/types';
4
3
  export { default, TextField, CreateForm, Select, AsyncSelect, CreateFormLoader, FormSpy, } from './ui/index';
5
4
  export { useLinkCreateCallback, LinkCreateCallbackProvider, } from './controllers/callback-context';
6
5
  export type { Validator, ValidatorMap } from './common/types';
6
+ export { FORM_ERROR } from 'final-form';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.11.3",
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",
@@ -38,16 +38,16 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^9.1.0",
41
- "@atlaskit/button": "^16.17.0",
41
+ "@atlaskit/button": "^16.18.0",
42
42
  "@atlaskit/empty-state": "^7.6.0",
43
- "@atlaskit/form": "^9.0.0",
43
+ "@atlaskit/form": "^9.0.3",
44
44
  "@atlaskit/icon": "^22.0.0",
45
45
  "@atlaskit/intl-messages-provider": "^1.0.0",
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",
50
- "@atlaskit/select": "^17.0.0",
49
+ "@atlaskit/primitives": "^1.14.0",
50
+ "@atlaskit/select": "^17.0.3",
51
51
  "@atlaskit/spinner": "^16.0.0",
52
52
  "@atlaskit/textfield": "^6.0.0",
53
53
  "@atlaskit/tokens": "^1.29.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
  },