@atlaskit/editor-plugin-toolbar 3.4.4 → 3.4.5

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,13 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 3.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`54ccde94eb18c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54ccde94eb18c) -
8
+ ED-29459 Clean up platform_editor_toolbar_aifc_toolbar_analytic
9
+ - Updated dependencies
10
+
3
11
  ## 3.4.4
4
12
 
5
13
  ### Patch Changes
@@ -154,13 +154,11 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
154
154
  isOffline: isOffline
155
155
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
156
156
  api: api,
157
- isDisabled: patch6Enabled ? isDisabled : isOffline
158
- // supress type checks for now
159
- ,
160
- fireAnalyticsEvent: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_toolbar_analytic', 'isEnabled', true) ? function (payload) {
157
+ isDisabled: patch6Enabled ? isDisabled : isOffline,
158
+ fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
161
159
  var _api$analytics;
162
160
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.fireAnalyticsEvent(payload);
163
- } : undefined,
161
+ },
164
162
  keyboardNavigation: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_5', 'isEnabled', true) ? keyboardNavigation : undefined
165
163
  }, /*#__PURE__*/_react.default.createElement(_editorToolbarModel.ToolbarModelRenderer, {
166
164
  toolbar: toolbar,
@@ -145,13 +145,11 @@ export const SelectionToolbar = ({
145
145
  isOffline: isOffline
146
146
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
147
147
  api: api,
148
- isDisabled: patch6Enabled ? isDisabled : isOffline
149
- // supress type checks for now
150
- ,
151
- fireAnalyticsEvent: expValEquals('platform_editor_toolbar_aifc_toolbar_analytic', 'isEnabled', true) ? payload => {
148
+ isDisabled: patch6Enabled ? isDisabled : isOffline,
149
+ fireAnalyticsEvent: payload => {
152
150
  var _api$analytics;
153
151
  api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions.fireAnalyticsEvent(payload);
154
- } : undefined,
152
+ },
155
153
  keyboardNavigation: expValEquals('platform_editor_toolbar_aifc_patch_5', 'isEnabled', true) ? keyboardNavigation : undefined
156
154
  }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
157
155
  toolbar: toolbar,
@@ -146,13 +146,11 @@ export var SelectionToolbar = function SelectionToolbar(_ref) {
146
146
  isOffline: isOffline
147
147
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
148
148
  api: api,
149
- isDisabled: patch6Enabled ? isDisabled : isOffline
150
- // supress type checks for now
151
- ,
152
- fireAnalyticsEvent: expValEquals('platform_editor_toolbar_aifc_toolbar_analytic', 'isEnabled', true) ? function (payload) {
149
+ isDisabled: patch6Enabled ? isDisabled : isOffline,
150
+ fireAnalyticsEvent: function fireAnalyticsEvent(payload) {
153
151
  var _api$analytics;
154
152
  api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.fireAnalyticsEvent(payload);
155
- } : undefined,
153
+ },
156
154
  keyboardNavigation: expValEquals('platform_editor_toolbar_aifc_patch_5', 'isEnabled', true) ? keyboardNavigation : undefined
157
155
  }, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
158
156
  toolbar: toolbar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "3.4.4",
3
+ "version": "3.4.5",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,13 +40,13 @@
40
40
  "@atlaskit/editor-toolbar-model": "^0.2.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
42
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
43
- "@atlaskit/tmp-editor-statsig": "^13.22.0",
43
+ "@atlaskit/tmp-editor-statsig": "^13.24.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "bind-event-listener": "^3.0.0",
46
46
  "react-intl-next": "npm:react-intl@^5.18.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^110.19.0",
49
+ "@atlaskit/editor-common": "^110.20.0",
50
50
  "react": "^18.2.0"
51
51
  },
52
52
  "platform-feature-flags": {