@atlaskit/editor-plugin-hyperlink 8.0.8 → 8.1.0

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,26 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 8.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5167552fe1a93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5167552fe1a93) -
8
+ [EDITOR-2339] Bump @atlaskit/adf-schema to 51.3.0
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 8.0.9
15
+
16
+ ### Patch Changes
17
+
18
+ - [`ef001bf65d48f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef001bf65d48f) -
19
+ Remove usage of `platform_editor_toolbar_aifc` inside editor packages - instead rely on checking
20
+ for new toolbar plugin option, make `enableNewToolbarExperience` mandatory for consumers to opt in
21
+ to new toolbar experience
22
+ - Updated dependencies
23
+
3
24
  ## 8.0.8
4
25
 
5
26
  ### Patch Changes
@@ -213,7 +234,6 @@
213
234
 
214
235
  - [`286abb4d35eba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/286abb4d35eba) -
215
236
  [ux] [ED-28960] Finish full page primary toolbar migration
216
-
217
237
  - Align with design update (separator, gap, height, icon size)
218
238
  - Add keyboard shortcut to focus toolbar and arrow key navigation
219
239
  - Address accessibility
@@ -258,7 +278,6 @@
258
278
 
259
279
  - [`3145f278b1f7a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3145f278b1f7a) -
260
280
  [ux] [ED-28473] minor UI updates for editor-toolbar
261
-
262
281
  - Use ADS ButtonGroup for ToolbarButtonGroup
263
282
  - Remove groupLocation prop and use CSS instead
264
283
  - Use DropdownItemGroup for ToolbarDropdownItemSection and expand props for section separator and
@@ -400,7 +419,6 @@
400
419
  shared context or singletons.
401
420
 
402
421
  **HOW TO ADJUST:**
403
-
404
422
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
405
423
  any of these editor plugins.
406
424
  - Ensure the version you install matches the version required by the plugins.
@@ -2121,7 +2139,6 @@
2121
2139
 
2122
2140
  These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
2123
2141
  `@atlaskit/editor-common/types`:
2124
-
2125
2142
  - InputRuleWrapper
2126
2143
  - InputRuleHandler
2127
2144
  - OnHandlerApply
@@ -2131,7 +2148,6 @@
2131
2148
  need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
2132
2149
 
2133
2150
  `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
2134
-
2135
2151
  - createPlugin
2136
2152
  - createInputRulePlugin
2137
2153
 
@@ -2292,7 +2308,6 @@
2292
2308
  - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
2293
2309
  [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
2294
2310
  feature flags plugin optional in all plugins including:
2295
-
2296
2311
  - analytics
2297
2312
  - base
2298
2313
  - card
@@ -2551,7 +2566,6 @@
2551
2566
  - [#37010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37010)
2552
2567
  [`8e084d87da5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e084d87da5) - Remove
2553
2568
  deprecated hyperlink commands and plugin key including:
2554
-
2555
2569
  - isTextAtPos
2556
2570
  - isLinkAtPos
2557
2571
  - insertLink
@@ -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.8",
3
+ "version": "8.1.0",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,15 +29,15 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.2.0",
32
+ "@atlaskit/adf-schema": "^51.3.0",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
- "@atlaskit/editor-plugin-analytics": "^6.1.0",
35
- "@atlaskit/editor-plugin-card": "^11.3.0",
34
+ "@atlaskit/editor-plugin-analytics": "^6.2.0",
35
+ "@atlaskit/editor-plugin-card": "^11.4.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.2.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^3.3.0",
41
41
  "@atlaskit/editor-plugin-user-intent": "^4.0.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/editor-toolbar": "^0.15.0",
@@ -45,13 +45,13 @@
45
45
  "@atlaskit/icon": "^28.5.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
47
  "@atlaskit/prosemirror-input-rules": "^3.5.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.8.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.13.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.10.0",
54
+ "@atlaskit/editor-common": "^110.14.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"