@atlaskit/editor-plugin-loom 6.0.2 → 6.0.4

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-loom
2
2
 
3
+ ## 6.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
8
+ Update menu item icon size to small, tweak paddings and font styles
9
+ - Updated dependencies
10
+
11
+ ## 6.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
16
+ replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
17
+ - Updated dependencies
18
+
3
19
  ## 6.0.2
4
20
 
5
21
  ### Patch Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.loomPlugin = void 0;
7
7
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
8
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
9
10
  var _commands = require("./pm-plugins/commands");
10
11
  var _main = require("./pm-plugins/main");
11
12
  var _PrimaryToolbarButton = require("./ui/PrimaryToolbarButton");
@@ -16,7 +17,9 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
16
17
  var config = _ref.config,
17
18
  api = _ref.api;
18
19
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
19
- var isNewToolbarEnabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
20
+ var isNewToolbarEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
21
+ exposure: true
22
+ }) && (0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
20
23
 
21
24
  // Workaround since we want to insert a loom via the `hyperlink` plugin for now.
22
25
  // The hyperlink plugin (and the card plugin) are deeply tied into using the Prosemirror Command
@@ -86,6 +86,7 @@ var MenuItemComponent = /*#__PURE__*/_react.default.forwardRef(function (_ref4,
86
86
  formatMessage = _useIntl.formatMessage;
87
87
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
88
88
  elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.LoomIcon, {
89
+ size: "small",
89
90
  label: ""
90
91
  }),
91
92
  isDisabled: disabled,
@@ -1,5 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { insertLoom, recordVideo, setupLoom } from './pm-plugins/commands';
4
5
  import { createPlugin, loomPluginKey } from './pm-plugins/main';
5
6
  import { loomPrimaryToolbarComponent } from './ui/PrimaryToolbarButton';
@@ -11,7 +12,9 @@ export const loomPlugin = ({
11
12
  }) => {
12
13
  var _api$analytics;
13
14
  const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
14
- const isNewToolbarEnabled = expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
15
+ const isNewToolbarEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
16
+ exposure: true
17
+ }) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
15
18
 
16
19
  // Workaround since we want to insert a loom via the `hyperlink` plugin for now.
17
20
  // The hyperlink plugin (and the card plugin) are deeply tied into using the Prosemirror Command
@@ -80,6 +80,7 @@ const MenuItemComponent = /*#__PURE__*/React.forwardRef(({
80
80
  } = useIntl();
81
81
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
82
82
  elemBefore: /*#__PURE__*/React.createElement(LoomIcon, {
83
+ size: "small",
83
84
  label: ""
84
85
  }),
85
86
  isDisabled: disabled,
@@ -1,5 +1,6 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { insertLoom as _insertLoom, recordVideo, setupLoom } from './pm-plugins/commands';
4
5
  import { createPlugin, loomPluginKey } from './pm-plugins/main';
5
6
  import { loomPrimaryToolbarComponent } from './ui/PrimaryToolbarButton';
@@ -10,7 +11,9 @@ export var loomPlugin = function loomPlugin(_ref) {
10
11
  var config = _ref.config,
11
12
  api = _ref.api;
12
13
  var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
13
- var isNewToolbarEnabled = expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
14
+ var isNewToolbarEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
15
+ exposure: true
16
+ }) && expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true);
14
17
 
15
18
  // Workaround since we want to insert a loom via the `hyperlink` plugin for now.
16
19
  // The hyperlink plugin (and the card plugin) are deeply tied into using the Prosemirror Command
@@ -78,6 +78,7 @@ var MenuItemComponent = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
78
78
  formatMessage = _useIntl.formatMessage;
79
79
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
80
80
  elemBefore: /*#__PURE__*/React.createElement(LoomIcon, {
81
+ size: "small",
81
82
  label: ""
82
83
  }),
83
84
  isDisabled: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/editor-toolbar": "^0.8.0",
44
44
  "@atlaskit/icon": "^28.1.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^12.4.0",
46
+ "@atlaskit/tmp-editor-statsig": "^12.5.0",
47
47
  "@atlaskit/tokens": "^6.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "@loomhq/record-sdk": "^2.36.18"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^108.2.0",
53
+ "@atlaskit/editor-common": "^108.5.0",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1"