@atlaskit/editor-plugin-hyperlink 8.0.7 → 8.0.9

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,21 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 8.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
8
+ Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
9
+ for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
10
+ to new toolbar experience
11
+ - Updated dependencies
12
+
13
+ ## 8.0.8
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 8.0.7
4
20
 
5
21
  ### Patch Changes
@@ -51,9 +51,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
51
51
  options = _ref$config === void 0 ? {} : _ref$config,
52
52
  api = _ref.api;
53
53
  var primaryToolbarComponent;
54
- var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
55
- exposure: true
56
- });
54
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
57
55
  if (isToolbarAIFCEnabled) {
58
56
  var _api$toolbar;
59
57
  api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 || _api$toolbar.actions.registerComponents((0, _toolbarComponents.getToolbarComponents)(api));
@@ -121,6 +121,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
121
121
  if (options.disableFloatingToolbar) {
122
122
  return;
123
123
  }
124
+ var isToolbarAIFCEnabled = Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar);
124
125
  var linkState = _main.stateKey.getState(state);
125
126
  var activeLinkMark = linkState === null || linkState === void 0 ? void 0 : linkState.activeLinkMark;
126
127
 
@@ -292,7 +293,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
292
293
  view.focus();
293
294
  }
294
295
  });
295
- return (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true) ? /*#__PURE__*/_react.default.createElement(_userIntent.UserIntentPopupWrapper, {
296
+ return isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(_userIntent.UserIntentPopupWrapper, {
296
297
  api: pluginInjectionApi
297
298
  }, Toolbar) : Toolbar;
298
299
  }
@@ -41,9 +41,7 @@ export const hyperlinkPlugin = ({
41
41
  api
42
42
  }) => {
43
43
  let primaryToolbarComponent;
44
- const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
45
- exposure: true
46
- });
44
+ const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
47
45
  if (isToolbarAIFCEnabled) {
48
46
  var _api$toolbar;
49
47
  api === null || api === void 0 ? void 0 : (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 ? void 0 : _api$toolbar.actions.registerComponents(getToolbarComponents(api));
@@ -106,6 +106,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
106
106
  if (options.disableFloatingToolbar) {
107
107
  return;
108
108
  }
109
+ const isToolbarAIFCEnabled = Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar);
109
110
  const linkState = stateKey.getState(state);
110
111
  const activeLinkMark = linkState === null || linkState === void 0 ? void 0 : linkState.activeLinkMark;
111
112
 
@@ -271,7 +272,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
271
272
  view.focus();
272
273
  }
273
274
  });
274
- return editorExperiment('platform_editor_toolbar_aifc', true) ? /*#__PURE__*/React.createElement(UserIntentPopupWrapper, {
275
+ return isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(UserIntentPopupWrapper, {
275
276
  api: pluginInjectionApi
276
277
  }, Toolbar) : Toolbar;
277
278
  }
@@ -44,9 +44,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
44
44
  options = _ref$config === void 0 ? {} : _ref$config,
45
45
  api = _ref.api;
46
46
  var primaryToolbarComponent;
47
- var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
48
- exposure: true
49
- });
47
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
50
48
  if (isToolbarAIFCEnabled) {
51
49
  var _api$toolbar;
52
50
  api === null || api === void 0 || (_api$toolbar = api.toolbar) === null || _api$toolbar === void 0 || _api$toolbar.actions.registerComponents(getToolbarComponents(api));
@@ -112,6 +112,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
112
112
  if (options.disableFloatingToolbar) {
113
113
  return;
114
114
  }
115
+ var isToolbarAIFCEnabled = Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.toolbar);
115
116
  var linkState = stateKey.getState(state);
116
117
  var activeLinkMark = linkState === null || linkState === void 0 ? void 0 : linkState.activeLinkMark;
117
118
 
@@ -283,7 +284,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
283
284
  view.focus();
284
285
  }
285
286
  });
286
- return editorExperiment('platform_editor_toolbar_aifc', true) ? /*#__PURE__*/React.createElement(UserIntentPopupWrapper, {
287
+ return isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(UserIntentPopupWrapper, {
287
288
  api: pluginInjectionApi
288
289
  }, Toolbar) : Toolbar;
289
290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "8.0.7",
3
+ "version": "8.0.9",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,26 +32,26 @@
32
32
  "@atlaskit/adf-schema": "^51.2.0",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^6.1.0",
35
- "@atlaskit/editor-plugin-card": "^11.2.0",
35
+ "@atlaskit/editor-plugin-card": "^11.3.0",
36
36
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
37
37
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
38
38
  "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
39
39
  "@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
40
- "@atlaskit/editor-plugin-toolbar": "^3.1.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^3.2.0",
41
41
  "@atlaskit/editor-plugin-user-intent": "^4.0.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
- "@atlaskit/editor-toolbar": "^0.14.0",
43
+ "@atlaskit/editor-toolbar": "^0.15.0",
44
44
  "@atlaskit/editor-toolbar-model": "^0.2.0",
45
- "@atlaskit/icon": "^28.4.0",
45
+ "@atlaskit/icon": "^28.5.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/prosemirror-input-rules": "^3.4.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.2.0",
47
+ "@atlaskit/prosemirror-input-rules": "^3.5.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.10.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "uuid": "^3.1.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^110.4.0",
54
+ "@atlaskit/editor-common": "^110.10.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0",
57
57
  "react-intl-next": "npm:react-intl@^5.18.1"