@atlaskit/editor-plugin-selection-toolbar 7.0.1 → 7.0.3

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,19 @@
1
1
  # @atlaskit/editor-plugin-selection-toolbar
2
2
 
3
+ ## 7.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`76ffc91d514f3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76ffc91d514f3) -
14
+ Changed packages over to using the generic AIFC FG rather then an experiment
15
+ - Updated dependencies
16
+
3
17
  ## 7.0.1
4
18
 
5
19
  ### Patch Changes
@@ -183,7 +183,7 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
183
183
 
184
184
  var editorViewModePlugin = api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState();
185
185
  var isViewModeEnabled = (editorViewModePlugin === null || editorViewModePlugin === void 0 ? void 0 : editorViewModePlugin.mode) === 'view';
186
- if ((0, _experiments.editorExperiment)('platform_editor_ai_aifc', true)) {
186
+ if ((0, _platformFeatureFlags.fg)('aifc_create_enabled')) {
187
187
  var target = event.target;
188
188
  var isRovoChangeToneButton = (target === null || target === void 0 ? void 0 : target.tagName) === 'BUTTON' && _hasNestedSpanWithText(target, 'Change tone') || target.getAttribute('aria-label') === 'Change tone' || target.innerHTML === 'Change tone';
189
189
  var isRovoTranslateButton = (target === null || target === void 0 ? void 0 : target.tagName) === 'BUTTON' && _hasNestedSpanWithText(target, 'Translate options') || target.getAttribute('aria-label') === 'Translate options' || target.innerHTML === 'Translate options';
@@ -181,7 +181,7 @@ export const selectionToolbarPlugin = ({
181
181
 
182
182
  const editorViewModePlugin = api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState();
183
183
  const isViewModeEnabled = (editorViewModePlugin === null || editorViewModePlugin === void 0 ? void 0 : editorViewModePlugin.mode) === 'view';
184
- if (editorExperiment('platform_editor_ai_aifc', true)) {
184
+ if (fg('aifc_create_enabled')) {
185
185
  const target = event.target;
186
186
  const isRovoChangeToneButton = (target === null || target === void 0 ? void 0 : target.tagName) === 'BUTTON' && hasNestedSpanWithText(target, 'Change tone') || target.getAttribute('aria-label') === 'Change tone' || target.innerHTML === 'Change tone';
187
187
  const isRovoTranslateButton = (target === null || target === void 0 ? void 0 : target.tagName) === 'BUTTON' && hasNestedSpanWithText(target, 'Translate options') || target.getAttribute('aria-label') === 'Translate options' || target.innerHTML === 'Translate options';
@@ -176,7 +176,7 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(_ref) {
176
176
 
177
177
  var editorViewModePlugin = api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState();
178
178
  var isViewModeEnabled = (editorViewModePlugin === null || editorViewModePlugin === void 0 ? void 0 : editorViewModePlugin.mode) === 'view';
179
- if (editorExperiment('platform_editor_ai_aifc', true)) {
179
+ if (fg('aifc_create_enabled')) {
180
180
  var target = event.target;
181
181
  var isRovoChangeToneButton = (target === null || target === void 0 ? void 0 : target.tagName) === 'BUTTON' && _hasNestedSpanWithText(target, 'Change tone') || target.getAttribute('aria-label') === 'Change tone' || target.innerHTML === 'Change tone';
182
182
  var isRovoTranslateButton = (target === null || target === void 0 ? void 0 : target.tagName) === 'BUTTON' && _hasNestedSpanWithText(target, 'Translate options') || target.getAttribute('aria-label') === 'Translate options' || target.innerHTML === 'Translate options';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-toolbar",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,8 +30,8 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/css": "^0.14.0",
33
- "@atlaskit/editor-plugin-analytics": "^6.0.0",
34
- "@atlaskit/editor-plugin-block-controls": "^7.1.0",
33
+ "@atlaskit/editor-plugin-analytics": "^6.1.0",
34
+ "@atlaskit/editor-plugin-block-controls": "^7.2.0",
35
35
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
36
36
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
37
37
  "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
@@ -42,17 +42,17 @@
42
42
  "@atlaskit/editor-toolbar": "^0.10.0",
43
43
  "@atlaskit/editor-toolbar-model": "^0.2.0",
44
44
  "@atlaskit/icon": "^28.3.0",
45
- "@atlaskit/icon-lab": "^5.7.0",
45
+ "@atlaskit/icon-lab": "^5.8.0",
46
46
  "@atlaskit/menu": "^8.4.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
49
- "@atlaskit/tmp-editor-statsig": "^12.32.0",
50
- "@atlaskit/tokens": "^6.3.0",
49
+ "@atlaskit/tmp-editor-statsig": "^13.0.0",
50
+ "@atlaskit/tokens": "^6.4.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "bind-event-listener": "^3.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^110.1.0",
55
+ "@atlaskit/editor-common": "^110.4.0",
56
56
  "react": "^18.2.0",
57
57
  "react-dom": "^18.2.0",
58
58
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -101,6 +101,9 @@
101
101
  },
102
102
  "platform_editor_use_preferences_plugin": {
103
103
  "type": "boolean"
104
+ },
105
+ "aifc_create_enabled": {
106
+ "type": "boolean"
104
107
  }
105
108
  }
106
109
  }