@atlaskit/editor-plugin-extension 5.2.2 → 5.2.4

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,25 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 5.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139216](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139216)
8
+ [`e8f596d2b1910`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8f596d2b1910) -
9
+ [ux] Cleaned up platform_editor_controls_patch_1 FG
10
+ - Updated dependencies
11
+
12
+ ## 5.2.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [#139492](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139492)
17
+ [`27030518ad18e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/27030518ad18e) -
18
+ The SmartUserPicker currently calls the teams v3 api which has been deprecated since December,
19
+ resulting in 404 api calls. This change has updated the api from v3 to v4 so that api calls can be
20
+ made and data successfull retrieved.
21
+ - Updated dependencies
22
+
3
23
  ## 5.2.2
4
24
 
5
25
  ### Patch Changes
@@ -311,12 +311,12 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
311
311
  }
312
312
  var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
313
313
  var _hoverDecoration, _hoverDecoration2, _hoverDecoration3, _hoverDecoration4;
314
- return (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_1') ? {
314
+ return {
315
315
  onMouseEnter: (_hoverDecoration = hoverDecoration) === null || _hoverDecoration === void 0 ? void 0 : _hoverDecoration(nodeType, true, className),
316
316
  onMouseLeave: (_hoverDecoration2 = hoverDecoration) === null || _hoverDecoration2 === void 0 ? void 0 : _hoverDecoration2(nodeType, false, className),
317
317
  onFocus: (_hoverDecoration3 = hoverDecoration) === null || _hoverDecoration3 === void 0 ? void 0 : _hoverDecoration3(nodeType, true, className),
318
318
  onBlur: (_hoverDecoration4 = hoverDecoration) === null || _hoverDecoration4 === void 0 ? void 0 : _hoverDecoration4(nodeType, false, className)
319
- } : undefined;
319
+ };
320
320
  };
321
321
  return {
322
322
  title: 'Extension floating controls',
@@ -114,7 +114,8 @@ function SafeSmartUserPicker(_ref) {
114
114
  _context.next = 2;
115
115
  return (0, _smartUserPicker.hydrateDefaultValues)(undefined,
116
116
  // no need to override baseUrl
117
- makeCompat(safeValue), productKey);
117
+ makeCompat(safeValue), productKey, undefined // no need to override siteId
118
+ );
118
119
  case 2:
119
120
  hydrated = _context.sent;
120
121
  if (!(cancel || !isOptionData(hydrated))) {
@@ -307,12 +307,12 @@ export const getToolbarConfig = ({
307
307
  }
308
308
  const hoverDecorationProps = (nodeType, className) => {
309
309
  var _hoverDecoration, _hoverDecoration2, _hoverDecoration3, _hoverDecoration4;
310
- return fg('platform_editor_controls_patch_1') ? {
310
+ return {
311
311
  onMouseEnter: (_hoverDecoration = hoverDecoration) === null || _hoverDecoration === void 0 ? void 0 : _hoverDecoration(nodeType, true, className),
312
312
  onMouseLeave: (_hoverDecoration2 = hoverDecoration) === null || _hoverDecoration2 === void 0 ? void 0 : _hoverDecoration2(nodeType, false, className),
313
313
  onFocus: (_hoverDecoration3 = hoverDecoration) === null || _hoverDecoration3 === void 0 ? void 0 : _hoverDecoration3(nodeType, true, className),
314
314
  onBlur: (_hoverDecoration4 = hoverDecoration) === null || _hoverDecoration4 === void 0 ? void 0 : _hoverDecoration4(nodeType, false, className)
315
- } : undefined;
315
+ };
316
316
  };
317
317
  return {
318
318
  title: 'Extension floating controls',
@@ -79,7 +79,8 @@ function SafeSmartUserPicker({
79
79
  async function hydrate() {
80
80
  const hydrated = await hydrateDefaultValues(undefined,
81
81
  // no need to override baseUrl
82
- makeCompat(safeValue), productKey);
82
+ makeCompat(safeValue), productKey, undefined // no need to override siteId
83
+ );
83
84
  if (cancel || !isOptionData(hydrated)) {
84
85
  return;
85
86
  }
@@ -305,12 +305,12 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
305
305
  }
306
306
  var hoverDecorationProps = function hoverDecorationProps(nodeType, className) {
307
307
  var _hoverDecoration, _hoverDecoration2, _hoverDecoration3, _hoverDecoration4;
308
- return fg('platform_editor_controls_patch_1') ? {
308
+ return {
309
309
  onMouseEnter: (_hoverDecoration = hoverDecoration) === null || _hoverDecoration === void 0 ? void 0 : _hoverDecoration(nodeType, true, className),
310
310
  onMouseLeave: (_hoverDecoration2 = hoverDecoration) === null || _hoverDecoration2 === void 0 ? void 0 : _hoverDecoration2(nodeType, false, className),
311
311
  onFocus: (_hoverDecoration3 = hoverDecoration) === null || _hoverDecoration3 === void 0 ? void 0 : _hoverDecoration3(nodeType, true, className),
312
312
  onBlur: (_hoverDecoration4 = hoverDecoration) === null || _hoverDecoration4 === void 0 ? void 0 : _hoverDecoration4(nodeType, false, className)
313
- } : undefined;
313
+ };
314
314
  };
315
315
  return {
316
316
  title: 'Extension floating controls',
@@ -104,7 +104,8 @@ function SafeSmartUserPicker(_ref) {
104
104
  _context.next = 2;
105
105
  return hydrateDefaultValues(undefined,
106
106
  // no need to override baseUrl
107
- makeCompat(safeValue), productKey);
107
+ makeCompat(safeValue), productKey, undefined // no need to override siteId
108
+ );
108
109
  case 2:
109
110
  hydrated = _context.sent;
110
111
  if (!(cancel || !isOptionData(hydrated))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "5.2.2",
3
+ "version": "5.2.4",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,26 +32,26 @@
32
32
  "@atlaskit/button": "^23.0.0",
33
33
  "@atlaskit/checkbox": "^17.0.0",
34
34
  "@atlaskit/datetime-picker": "^17.0.0",
35
- "@atlaskit/editor-common": "^103.0.0",
35
+ "@atlaskit/editor-common": "^103.4.0",
36
36
  "@atlaskit/editor-json-transformer": "^8.24.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
38
- "@atlaskit/editor-plugin-context-identifier": "^2.0.0",
38
+ "@atlaskit/editor-plugin-context-identifier": "^2.1.0",
39
39
  "@atlaskit/editor-plugin-context-panel": "^4.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
- "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
41
+ "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
42
42
  "@atlaskit/editor-plugin-width": "^3.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
44
  "@atlaskit/editor-shared-styles": "^3.4.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
46
  "@atlaskit/empty-state": "^9.0.0",
47
47
  "@atlaskit/form": "^12.0.0",
48
- "@atlaskit/heading": "^5.1.0",
48
+ "@atlaskit/heading": "^5.2.0",
49
49
  "@atlaskit/icon": "^25.5.0",
50
50
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
- "@atlaskit/primitives": "^14.3.0",
51
+ "@atlaskit/primitives": "^14.4.0",
52
52
  "@atlaskit/radio": "^8.0.0",
53
53
  "@atlaskit/section-message": "^8.2.0",
54
- "@atlaskit/select": "^20.1.0",
54
+ "@atlaskit/select": "^20.3.0",
55
55
  "@atlaskit/smart-user-picker": "^8.0.0",
56
56
  "@atlaskit/spinner": "^18.0.0",
57
57
  "@atlaskit/tabs": "^18.0.0",
@@ -121,9 +121,6 @@
121
121
  "platform_editor_extension_deprecation_status": {
122
122
  "type": "boolean"
123
123
  },
124
- "platform_editor_controls_patch_1": {
125
- "type": "boolean"
126
- },
127
124
  "platform_editor_controls_patch_2": {
128
125
  "type": "boolean"
129
126
  }