@atlaskit/link-picker 1.49.1 → 1.49.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/link-picker
2
2
 
3
+ ## 1.49.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#114253](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114253)
8
+ [`8d063440a1a02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d063440a1a02) -
9
+ Remove the UNSAFE from the UNSAFE_moveSubmitButton prop on the link picker now that it is a
10
+ permanent prop
11
+
3
12
  ## 1.49.1
4
13
 
5
14
  ### Patch Changes
@@ -103,8 +103,8 @@ var LinkPickerNew = exports.LinkPickerNew = (0, _analytics.withLinkPickerAnalyti
103
103
  isSubmitting = _ref$isSubmitting === void 0 ? false : _ref$isSubmitting,
104
104
  _ref$adaptiveHeight = _ref.adaptiveHeight,
105
105
  adaptiveHeight = _ref$adaptiveHeight === void 0 ? false : _ref$adaptiveHeight,
106
- _ref$UNSAFE_moveSubmi = _ref.UNSAFE_moveSubmitButton,
107
- UNSAFE_moveSubmitButton = _ref$UNSAFE_moveSubmi === void 0 ? false : _ref$UNSAFE_moveSubmi;
106
+ _ref$moveSubmitButton = _ref.moveSubmitButton,
107
+ moveSubmitButton = _ref$moveSubmitButton === void 0 ? false : _ref$moveSubmitButton;
108
108
  var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
109
109
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
110
110
  var _useReducer = (0, _react.useReducer)(reducer, _objectSpread(_objectSpread({}, initState), {}, {
@@ -372,7 +372,7 @@ var LinkPickerNew = exports.LinkPickerNew = (0, _analytics.withLinkPickerAnalyti
372
372
  readOnly: isSubmitting,
373
373
  onClear: handleClear,
374
374
  onChange: handleChangeText
375
- }), UNSAFE_moveSubmitButton && /*#__PURE__*/React.createElement(_compiled.Box, {
375
+ }), moveSubmitButton && /*#__PURE__*/React.createElement(_compiled.Box, {
376
376
  xcss: styles.fullWidthSubmitButton
377
377
  }, /*#__PURE__*/React.createElement(_linkPickerSubmitButton.LinkPickerSubmitButton, {
378
378
  isEditing: isEditing,
@@ -418,7 +418,7 @@ var LinkPickerNew = exports.LinkPickerNew = (0, _analytics.withLinkPickerAnalyti
418
418
  action: pluginAction,
419
419
  customSubmitButtonLabel: customSubmitButtonLabel,
420
420
  submitMessageId: submitMessageId,
421
- hideSubmitButton: UNSAFE_moveSubmitButton,
421
+ hideSubmitButton: moveSubmitButton,
422
422
  className: (0, _runtime.ax)([(!queryState || !(plugins !== null && plugins !== void 0 && plugins.length)) && "_19pkpxbi"])
423
423
  }));
424
424
  }));
@@ -111,8 +111,8 @@ var LinkPickerOld = exports.LinkPickerOld = (0, _analytics.withLinkPickerAnalyti
111
111
  isSubmitting = _ref$isSubmitting === void 0 ? false : _ref$isSubmitting,
112
112
  _ref$adaptiveHeight = _ref.adaptiveHeight,
113
113
  adaptiveHeight = _ref$adaptiveHeight === void 0 ? false : _ref$adaptiveHeight,
114
- _ref$UNSAFE_moveSubmi = _ref.UNSAFE_moveSubmitButton,
115
- UNSAFE_moveSubmitButton = _ref$UNSAFE_moveSubmi === void 0 ? false : _ref$UNSAFE_moveSubmi;
114
+ _ref$moveSubmitButton = _ref.moveSubmitButton,
115
+ moveSubmitButton = _ref$moveSubmitButton === void 0 ? false : _ref$moveSubmitButton;
116
116
  var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
117
117
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
118
118
  var _useReducer = (0, _react.useReducer)(reducer, _objectSpread(_objectSpread({}, initState), {}, {
@@ -381,7 +381,7 @@ var LinkPickerOld = exports.LinkPickerOld = (0, _analytics.withLinkPickerAnalyti
381
381
  readOnly: isSubmitting,
382
382
  onClear: handleClear,
383
383
  onChange: handleChangeText
384
- }), UNSAFE_moveSubmitButton && (0, _react2.jsx)(_primitives.Box, {
384
+ }), moveSubmitButton && (0, _react2.jsx)(_primitives.Box, {
385
385
  xcss: FullWidthSubmitButtonStyles
386
386
  }, (0, _react2.jsx)(_linkPickerSubmitButton.LinkPickerSubmitButton, {
387
387
  isEditing: isEditing,
@@ -430,6 +430,6 @@ var LinkPickerOld = exports.LinkPickerOld = (0, _analytics.withLinkPickerAnalyti
430
430
  css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? formFooterMargin : undefined,
431
431
  customSubmitButtonLabel: customSubmitButtonLabel,
432
432
  submitMessageId: submitMessageId,
433
- hideSubmitButton: UNSAFE_moveSubmitButton
433
+ hideSubmitButton: moveSubmitButton
434
434
  }));
435
435
  }));
@@ -28,7 +28,7 @@ var testIds = exports.testIds = {
28
28
  };
29
29
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
30
30
  packageName: "@atlaskit/link-picker" || '',
31
- packageVersion: "1.49.1" || '',
31
+ packageVersion: "1.49.2" || '',
32
32
  componentName: _constants.COMPONENT_NAME,
33
33
  source: _constants.COMPONENT_NAME
34
34
  };
@@ -33,7 +33,7 @@ var testIds = exports.testIds = {
33
33
  };
34
34
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
35
35
  packageName: "@atlaskit/link-picker" || '',
36
- packageVersion: "1.49.1" || '',
36
+ packageVersion: "1.49.2" || '',
37
37
  componentName: _constants.COMPONENT_NAME,
38
38
  source: _constants.COMPONENT_NAME
39
39
  };
@@ -94,7 +94,7 @@ export const LinkPickerNew = withLinkPickerAnalyticsContext( /*#__PURE__*/memo((
94
94
  customMessages,
95
95
  isSubmitting = false,
96
96
  adaptiveHeight = false,
97
- UNSAFE_moveSubmitButton = false
97
+ moveSubmitButton = false
98
98
  }) => {
99
99
  const {
100
100
  createAnalyticsEvent
@@ -366,7 +366,7 @@ export const LinkPickerNew = withLinkPickerAnalyticsContext( /*#__PURE__*/memo((
366
366
  readOnly: isSubmitting,
367
367
  onClear: handleClear,
368
368
  onChange: handleChangeText
369
- }), UNSAFE_moveSubmitButton && /*#__PURE__*/React.createElement(Box, {
369
+ }), moveSubmitButton && /*#__PURE__*/React.createElement(Box, {
370
370
  xcss: styles.fullWidthSubmitButton
371
371
  }, /*#__PURE__*/React.createElement(LinkPickerSubmitButton, {
372
372
  isEditing: isEditing,
@@ -412,7 +412,7 @@ export const LinkPickerNew = withLinkPickerAnalyticsContext( /*#__PURE__*/memo((
412
412
  action: pluginAction,
413
413
  customSubmitButtonLabel: customSubmitButtonLabel,
414
414
  submitMessageId: submitMessageId,
415
- hideSubmitButton: UNSAFE_moveSubmitButton,
415
+ hideSubmitButton: moveSubmitButton,
416
416
  className: ax([(!queryState || !(plugins !== null && plugins !== void 0 && plugins.length)) && "_19pkpxbi"])
417
417
  }));
418
418
  }));
@@ -109,7 +109,7 @@ export const LinkPickerOld = withLinkPickerAnalyticsContext( /*#__PURE__*/memo((
109
109
  customMessages,
110
110
  isSubmitting = false,
111
111
  adaptiveHeight = false,
112
- UNSAFE_moveSubmitButton = false
112
+ moveSubmitButton = false
113
113
  }) => {
114
114
  const {
115
115
  createAnalyticsEvent
@@ -382,7 +382,7 @@ export const LinkPickerOld = withLinkPickerAnalyticsContext( /*#__PURE__*/memo((
382
382
  readOnly: isSubmitting,
383
383
  onClear: handleClear,
384
384
  onChange: handleChangeText
385
- }), UNSAFE_moveSubmitButton && jsx(Box, {
385
+ }), moveSubmitButton && jsx(Box, {
386
386
  xcss: FullWidthSubmitButtonStyles
387
387
  }, jsx(LinkPickerSubmitButton, {
388
388
  isEditing: isEditing,
@@ -431,6 +431,6 @@ export const LinkPickerOld = withLinkPickerAnalyticsContext( /*#__PURE__*/memo((
431
431
  css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? formFooterMargin : undefined,
432
432
  customSubmitButtonLabel: customSubmitButtonLabel,
433
433
  submitMessageId: submitMessageId,
434
- hideSubmitButton: UNSAFE_moveSubmitButton
434
+ hideSubmitButton: moveSubmitButton
435
435
  }));
436
436
  }));
@@ -17,7 +17,7 @@ export const testIds = {
17
17
  };
18
18
  export const PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/link-picker" || '',
20
- packageVersion: "1.49.1" || '',
20
+ packageVersion: "1.49.2" || '',
21
21
  componentName: COMPONENT_NAME,
22
22
  source: COMPONENT_NAME
23
23
  };
@@ -21,7 +21,7 @@ export const testIds = {
21
21
  };
22
22
  export const PACKAGE_DATA = {
23
23
  packageName: "@atlaskit/link-picker" || '',
24
- packageVersion: "1.49.1" || '',
24
+ packageVersion: "1.49.2" || '',
25
25
  componentName: COMPONENT_NAME,
26
26
  source: COMPONENT_NAME
27
27
  };
@@ -93,8 +93,8 @@ export var LinkPickerNew = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(fun
93
93
  isSubmitting = _ref$isSubmitting === void 0 ? false : _ref$isSubmitting,
94
94
  _ref$adaptiveHeight = _ref.adaptiveHeight,
95
95
  adaptiveHeight = _ref$adaptiveHeight === void 0 ? false : _ref$adaptiveHeight,
96
- _ref$UNSAFE_moveSubmi = _ref.UNSAFE_moveSubmitButton,
97
- UNSAFE_moveSubmitButton = _ref$UNSAFE_moveSubmi === void 0 ? false : _ref$UNSAFE_moveSubmi;
96
+ _ref$moveSubmitButton = _ref.moveSubmitButton,
97
+ moveSubmitButton = _ref$moveSubmitButton === void 0 ? false : _ref$moveSubmitButton;
98
98
  var _useAnalyticsEvents = useAnalyticsEvents(),
99
99
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
100
100
  var _useReducer = useReducer(reducer, _objectSpread(_objectSpread({}, initState), {}, {
@@ -362,7 +362,7 @@ export var LinkPickerNew = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(fun
362
362
  readOnly: isSubmitting,
363
363
  onClear: handleClear,
364
364
  onChange: handleChangeText
365
- }), UNSAFE_moveSubmitButton && /*#__PURE__*/React.createElement(Box, {
365
+ }), moveSubmitButton && /*#__PURE__*/React.createElement(Box, {
366
366
  xcss: styles.fullWidthSubmitButton
367
367
  }, /*#__PURE__*/React.createElement(LinkPickerSubmitButton, {
368
368
  isEditing: isEditing,
@@ -408,7 +408,7 @@ export var LinkPickerNew = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(fun
408
408
  action: pluginAction,
409
409
  customSubmitButtonLabel: customSubmitButtonLabel,
410
410
  submitMessageId: submitMessageId,
411
- hideSubmitButton: UNSAFE_moveSubmitButton,
411
+ hideSubmitButton: moveSubmitButton,
412
412
  className: ax([(!queryState || !(plugins !== null && plugins !== void 0 && plugins.length)) && "_19pkpxbi"])
413
413
  }));
414
414
  }));
@@ -108,8 +108,8 @@ export var LinkPickerOld = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(fun
108
108
  isSubmitting = _ref$isSubmitting === void 0 ? false : _ref$isSubmitting,
109
109
  _ref$adaptiveHeight = _ref.adaptiveHeight,
110
110
  adaptiveHeight = _ref$adaptiveHeight === void 0 ? false : _ref$adaptiveHeight,
111
- _ref$UNSAFE_moveSubmi = _ref.UNSAFE_moveSubmitButton,
112
- UNSAFE_moveSubmitButton = _ref$UNSAFE_moveSubmi === void 0 ? false : _ref$UNSAFE_moveSubmi;
111
+ _ref$moveSubmitButton = _ref.moveSubmitButton,
112
+ moveSubmitButton = _ref$moveSubmitButton === void 0 ? false : _ref$moveSubmitButton;
113
113
  var _useAnalyticsEvents = useAnalyticsEvents(),
114
114
  createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
115
115
  var _useReducer = useReducer(reducer, _objectSpread(_objectSpread({}, initState), {}, {
@@ -378,7 +378,7 @@ export var LinkPickerOld = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(fun
378
378
  readOnly: isSubmitting,
379
379
  onClear: handleClear,
380
380
  onChange: handleChangeText
381
- }), UNSAFE_moveSubmitButton && jsx(Box, {
381
+ }), moveSubmitButton && jsx(Box, {
382
382
  xcss: FullWidthSubmitButtonStyles
383
383
  }, jsx(LinkPickerSubmitButton, {
384
384
  isEditing: isEditing,
@@ -427,6 +427,6 @@ export var LinkPickerOld = withLinkPickerAnalyticsContext( /*#__PURE__*/memo(fun
427
427
  css: !queryState || !(plugins !== null && plugins !== void 0 && plugins.length) ? formFooterMargin : undefined,
428
428
  customSubmitButtonLabel: customSubmitButtonLabel,
429
429
  submitMessageId: submitMessageId,
430
- hideSubmitButton: UNSAFE_moveSubmitButton
430
+ hideSubmitButton: moveSubmitButton
431
431
  }));
432
432
  }));
@@ -18,7 +18,7 @@ export var testIds = {
18
18
  };
19
19
  export var PACKAGE_DATA = {
20
20
  packageName: "@atlaskit/link-picker" || '',
21
- packageVersion: "1.49.1" || '',
21
+ packageVersion: "1.49.2" || '',
22
22
  componentName: COMPONENT_NAME,
23
23
  source: COMPONENT_NAME
24
24
  };
@@ -22,7 +22,7 @@ export var testIds = {
22
22
  };
23
23
  export var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/link-picker" || '',
25
- packageVersion: "1.49.1" || '',
25
+ packageVersion: "1.49.2" || '',
26
26
  componentName: COMPONENT_NAME,
27
27
  source: COMPONENT_NAME
28
28
  };
@@ -149,12 +149,8 @@ export interface LinkPickerProps {
149
149
  featureFlags?: Record<string, unknown>;
150
150
  /** Controls showing a "submission in-progres" UX */
151
151
  isSubmitting?: boolean;
152
- /**
153
- * Do not utilize this! This is a temporary prop that is being used for a specific experiment.
154
- * This prop controls where the submit button appears. When true the submit button will move below the input field and be full width
155
- * @internal
156
- * */
157
- UNSAFE_moveSubmitButton?: boolean;
152
+ /** This prop controls where the submit button appears. When true the submit button will move below the input field and be full width */
153
+ moveSubmitButton?: boolean;
158
154
  }
159
155
  type CustomLinkPickerMessages = {
160
156
  /** Label for the link input field */
@@ -152,12 +152,8 @@ export interface LinkPickerProps {
152
152
  featureFlags?: Record<string, unknown>;
153
153
  /** Controls showing a "submission in-progres" UX */
154
154
  isSubmitting?: boolean;
155
- /**
156
- * Do not utilize this! This is a temporary prop that is being used for a specific experiment.
157
- * This prop controls where the submit button appears. When true the submit button will move below the input field and be full width
158
- * @internal
159
- * */
160
- UNSAFE_moveSubmitButton?: boolean;
155
+ /** This prop controls where the submit button appears. When true the submit button will move below the input field and be full width */
156
+ moveSubmitButton?: boolean;
161
157
  }
162
158
  type CustomLinkPickerMessages = {
163
159
  /** Label for the link input field */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-picker",
3
- "version": "1.49.1",
3
+ "version": "1.49.2",
4
4
  "description": "Standalone link picker",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {