@atlaskit/editor-plugin-hyperlink 4.2.6 → 4.2.8

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,20 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 4.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#126126](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126126)
14
+ [`468f52001a847`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/468f52001a847) -
15
+ Tidy up contextual formatting toolbar experiment and switch to `platform_editor_controls` flag
16
+ - Updated dependencies
17
+
3
18
  ## 4.2.6
4
19
 
5
20
  ### Patch Changes
@@ -193,16 +193,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
193
193
  selectionToolbar: function selectionToolbar(state, _ref5) {
194
194
  var _api$selectionToolbar;
195
195
  var formatMessage = _ref5.formatMessage;
196
- if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
197
- exposure: true
198
- })) {
199
- return undefined;
200
- }
201
- if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
202
- exposure: true
203
- }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
204
- exposure: true
205
- }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
196
+ if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
206
197
  exposure: true
207
198
  })) {
208
199
  var toolbarButton = function toolbarButton() {
@@ -174,16 +174,7 @@ export const hyperlinkPlugin = ({
174
174
  formatMessage
175
175
  }) => {
176
176
  var _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
177
- if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === 'top' && editorExperiment('platform_editor_controls', 'variant1', {
178
- exposure: true
179
- })) {
180
- return undefined;
181
- }
182
- if (editorExperiment('contextual_formatting_toolbar', true, {
183
- exposure: true
184
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
185
- exposure: true
186
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
177
+ if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
187
178
  exposure: true
188
179
  })) {
189
180
  const toolbarButton = () => {
@@ -186,16 +186,7 @@ export var hyperlinkPlugin = function hyperlinkPlugin(_ref) {
186
186
  selectionToolbar: function selectionToolbar(state, _ref5) {
187
187
  var _api$selectionToolbar;
188
188
  var formatMessage = _ref5.formatMessage;
189
- if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'top' && editorExperiment('platform_editor_controls', 'variant1', {
190
- exposure: true
191
- })) {
192
- return undefined;
193
- }
194
- if (editorExperiment('contextual_formatting_toolbar', true, {
195
- exposure: true
196
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
197
- exposure: true
198
- }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
189
+ if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
199
190
  exposure: true
200
191
  })) {
201
192
  var toolbarButton = function toolbarButton() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "4.2.6",
3
+ "version": "4.2.8",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,9 +35,9 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/analytics-next": "^11.0.0",
38
- "@atlaskit/editor-common": "^102.4.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.1.0",
40
- "@atlaskit/editor-plugin-card": "^5.2.0",
38
+ "@atlaskit/editor-common": "^102.8.0",
39
+ "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
+ "@atlaskit/editor-plugin-card": "^5.3.0",
41
41
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
42
42
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
43
43
  "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/icon": "^25.0.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
49
- "@atlaskit/tmp-editor-statsig": "^3.6.0",
49
+ "@atlaskit/tmp-editor-statsig": "^4.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
52
52
  "uuid": "^3.1.0"