@atlaskit/editor-core 237.0.3 → 237.0.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,20 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 237.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 237.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`60b0351aac27d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/60b0351aac27d) -
14
+ Show the coloured Skill tag as the Skill row and hover preview title in the slash command menu
15
+ behind platform_editor_slash_command.
16
+ - Updated dependencies
17
+
3
18
  ## 237.0.3
4
19
 
5
20
  ### Patch Changes
@@ -9,12 +9,11 @@ var _react = _interopRequireWildcard(require("react"));
9
9
  var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
10
10
  var _skillTag = require("@atlaskit/editor-common/quick-insert/skill-tag");
11
11
  var _useQuickInsertContext = require("@atlaskit/editor-common/quick-insert/use-quick-insert-context");
12
- var _inline = require("@atlaskit/primitives/compiled/inline");
13
- var _text = require("@atlaskit/primitives/compiled/text");
14
12
  var _executeExtensionQuickInsertItem = require("./executeExtensionQuickInsertItem");
15
13
  var _ExtensionQuickInsertIcon = require("./ExtensionQuickInsertIcon");
16
14
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
15
  var QuickInsertSkillMenuItem = exports.QuickInsertSkillMenuItem = function QuickInsertSkillMenuItem(_ref) {
16
+ var _item$parameters;
18
17
  var apiRef = _ref.apiRef,
19
18
  createAnalyticsEvent = _ref.createAnalyticsEvent,
20
19
  editorActions = _ref.editorActions,
@@ -49,6 +48,7 @@ var QuickInsertSkillMenuItem = exports.QuickInsertSkillMenuItem = function Quick
49
48
  label: ""
50
49
  }),
51
50
  isDisabled: isOffline,
51
+ lozenge: item.lozenge,
52
52
  onSelect: onSelect,
53
53
  preview: item.preview,
54
54
  previewIcon: /*#__PURE__*/_react.default.createElement(_ExtensionQuickInsertIcon.ExtensionQuickInsertIcon, {
@@ -59,14 +59,10 @@ var QuickInsertSkillMenuItem = exports.QuickInsertSkillMenuItem = function Quick
59
59
  }),
60
60
  shouldClampPreview: false,
61
61
  title: item.title,
62
- titleContent: /*#__PURE__*/_react.default.createElement(_inline.Inline, {
63
- alignBlock: "center",
64
- space: "space.100"
65
- }, item.moduleKey ? /*#__PURE__*/_react.default.createElement(_skillTag.SkillTag, {
62
+ titleContent: item.moduleKey ? /*#__PURE__*/_react.default.createElement(_skillTag.SkillTag, {
63
+ color: (_item$parameters = item.parameters) === null || _item$parameters === void 0 ? void 0 : _item$parameters.color,
66
64
  isDisabled: isOffline,
67
65
  slug: item.moduleKey
68
- }) : /*#__PURE__*/_react.default.createElement(_text.Text, {
69
- color: isOffline ? 'color.text.disabled' : 'color.text'
70
- }, item.title), item.lozenge)
66
+ }) : undefined
71
67
  });
72
68
  };
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "237.0.2";
9
+ var version = exports.version = "237.0.4";
@@ -2,8 +2,6 @@ import React, { useCallback } from 'react';
2
2
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
3
3
  import { SkillTag } from '@atlaskit/editor-common/quick-insert/skill-tag';
4
4
  import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
5
- import { Inline } from '@atlaskit/primitives/compiled/inline';
6
- import { Text } from '@atlaskit/primitives/compiled/text';
7
5
  import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
8
6
  import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
9
7
  export const QuickInsertSkillMenuItem = ({
@@ -13,6 +11,7 @@ export const QuickInsertSkillMenuItem = ({
13
11
  item,
14
12
  onInsert
15
13
  }) => {
14
+ var _item$parameters;
16
15
  const {
17
16
  editorView,
18
17
  isOffline
@@ -44,6 +43,7 @@ export const QuickInsertSkillMenuItem = ({
44
43
  label: ""
45
44
  }),
46
45
  isDisabled: isOffline,
46
+ lozenge: item.lozenge,
47
47
  onSelect: onSelect,
48
48
  preview: item.preview,
49
49
  previewIcon: /*#__PURE__*/React.createElement(ExtensionQuickInsertIcon, {
@@ -54,14 +54,10 @@ export const QuickInsertSkillMenuItem = ({
54
54
  }),
55
55
  shouldClampPreview: false,
56
56
  title: item.title,
57
- titleContent: /*#__PURE__*/React.createElement(Inline, {
58
- alignBlock: "center",
59
- space: "space.100"
60
- }, item.moduleKey ? /*#__PURE__*/React.createElement(SkillTag, {
57
+ titleContent: item.moduleKey ? /*#__PURE__*/React.createElement(SkillTag, {
58
+ color: (_item$parameters = item.parameters) === null || _item$parameters === void 0 ? void 0 : _item$parameters.color,
61
59
  isDisabled: isOffline,
62
60
  slug: item.moduleKey
63
- }) : /*#__PURE__*/React.createElement(Text, {
64
- color: isOffline ? 'color.text.disabled' : 'color.text'
65
- }, item.title), item.lozenge)
61
+ }) : undefined
66
62
  });
67
63
  };
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "237.0.2";
3
+ export const version = "237.0.4";
@@ -2,11 +2,10 @@ import React, { useCallback } from 'react';
2
2
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
3
3
  import { SkillTag } from '@atlaskit/editor-common/quick-insert/skill-tag';
4
4
  import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
5
- import { Inline } from '@atlaskit/primitives/compiled/inline';
6
- import { Text } from '@atlaskit/primitives/compiled/text';
7
5
  import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
8
6
  import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
9
7
  export var QuickInsertSkillMenuItem = function QuickInsertSkillMenuItem(_ref) {
8
+ var _item$parameters;
10
9
  var apiRef = _ref.apiRef,
11
10
  createAnalyticsEvent = _ref.createAnalyticsEvent,
12
11
  editorActions = _ref.editorActions,
@@ -41,6 +40,7 @@ export var QuickInsertSkillMenuItem = function QuickInsertSkillMenuItem(_ref) {
41
40
  label: ""
42
41
  }),
43
42
  isDisabled: isOffline,
43
+ lozenge: item.lozenge,
44
44
  onSelect: onSelect,
45
45
  preview: item.preview,
46
46
  previewIcon: /*#__PURE__*/React.createElement(ExtensionQuickInsertIcon, {
@@ -51,14 +51,10 @@ export var QuickInsertSkillMenuItem = function QuickInsertSkillMenuItem(_ref) {
51
51
  }),
52
52
  shouldClampPreview: false,
53
53
  title: item.title,
54
- titleContent: /*#__PURE__*/React.createElement(Inline, {
55
- alignBlock: "center",
56
- space: "space.100"
57
- }, item.moduleKey ? /*#__PURE__*/React.createElement(SkillTag, {
54
+ titleContent: item.moduleKey ? /*#__PURE__*/React.createElement(SkillTag, {
55
+ color: (_item$parameters = item.parameters) === null || _item$parameters === void 0 ? void 0 : _item$parameters.color,
58
56
  isDisabled: isOffline,
59
57
  slug: item.moduleKey
60
- }) : /*#__PURE__*/React.createElement(Text, {
61
- color: isOffline ? 'color.text.disabled' : 'color.text'
62
- }, item.title), item.lozenge)
58
+ }) : undefined
63
59
  });
64
60
  };
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "237.0.2";
3
+ export var version = "237.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "237.0.3",
3
+ "version": "237.0.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -77,8 +77,8 @@
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^8.1.0",
79
79
  "@atlaskit/task-decision": "^21.12.0",
80
- "@atlaskit/tmp-editor-statsig": "^238.0.0",
81
- "@atlaskit/tokens": "^20.5.0",
80
+ "@atlaskit/tmp-editor-statsig": "^240.0.0",
81
+ "@atlaskit/tokens": "^20.6.0",
82
82
  "@atlaskit/tooltip": "^24.4.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
84
84
  "@babel/runtime": "^7.0.0",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^131.1.0",
99
+ "@atlaskit/editor-common": "^131.2.0",
100
100
  "@atlaskit/link-provider": "^6.0.0",
101
101
  "@atlaskit/media-core": "^39.0.0",
102
102
  "react": "^18.2.0 || ^19.2.0",