@atlaskit/editor-plugin-synced-block 25.0.7 → 25.0.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,13 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 25.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`72b41803e7b84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72b41803e7b84) -
8
+ Quick insert menu: render lozenges for extension items, restore the New lozenge on Synced block,
9
+ and add a New lozenge, preview image and By Atlassian attribution to Block Template Gallery
10
+
3
11
  ## 25.0.7
4
12
 
5
13
  ### Patch Changes
@@ -14,6 +14,7 @@ var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
14
14
  var _messages = require("@atlaskit/editor-common/quick-insert/messages");
15
15
  var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
16
16
  var _blockSynced = _interopRequireDefault(require("@atlaskit/icon-lab/core/block-synced"));
17
+ var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
17
18
  var _editorCommands = require("../../editor-commands");
18
19
  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); }
19
20
  var SyncedBlockQuickInsertMenuItem = exports.SyncedBlockQuickInsertMenuItem = function SyncedBlockQuickInsertMenuItem(_ref) {
@@ -56,6 +57,9 @@ var SyncedBlockQuickInsertMenuItem = exports.SyncedBlockQuickInsertMenuItem = fu
56
57
  label: ""
57
58
  }),
58
59
  isDisabled: editorDisabled,
60
+ lozenge: /*#__PURE__*/_react.default.createElement(_lozenge.default, {
61
+ appearance: "new"
62
+ }, formatMessage(_blockType.messages.newLozenge)),
59
63
  onSelect: onSelect,
60
64
  preview: preview,
61
65
  title: formatMessage(_blockType.messages.syncedBlockQuickInsertTitle)
@@ -6,6 +6,7 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
6
6
  import { messages as quickInsertMessages } from '@atlaskit/editor-common/quick-insert/messages';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
8
8
  import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
9
+ import Lozenge from '@atlaskit/lozenge/lozenge';
9
10
  import { createSyncedBlock } from '../../editor-commands';
10
11
  export const SyncedBlockQuickInsertMenuItem = ({
11
12
  api,
@@ -49,6 +50,9 @@ export const SyncedBlockQuickInsertMenuItem = ({
49
50
  label: ""
50
51
  }),
51
52
  isDisabled: editorDisabled,
53
+ lozenge: /*#__PURE__*/React.createElement(Lozenge, {
54
+ appearance: "new"
55
+ }, formatMessage(blockTypeMessages.newLozenge)),
52
56
  onSelect: onSelect,
53
57
  preview: preview,
54
58
  title: formatMessage(blockTypeMessages.syncedBlockQuickInsertTitle)
@@ -6,6 +6,7 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
6
6
  import { messages as quickInsertMessages } from '@atlaskit/editor-common/quick-insert/messages';
7
7
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
8
8
  import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
9
+ import Lozenge from '@atlaskit/lozenge/lozenge';
9
10
  import { createSyncedBlock } from '../../editor-commands';
10
11
  export var SyncedBlockQuickInsertMenuItem = function SyncedBlockQuickInsertMenuItem(_ref) {
11
12
  var api = _ref.api,
@@ -47,6 +48,9 @@ export var SyncedBlockQuickInsertMenuItem = function SyncedBlockQuickInsertMenuI
47
48
  label: ""
48
49
  }),
49
50
  isDisabled: editorDisabled,
51
+ lozenge: /*#__PURE__*/React.createElement(Lozenge, {
52
+ appearance: "new"
53
+ }, formatMessage(blockTypeMessages.newLozenge)),
50
54
  onSelect: onSelect,
51
55
  preview: preview,
52
56
  title: formatMessage(blockTypeMessages.syncedBlockQuickInsertTitle)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "25.0.7",
3
+ "version": "25.0.8",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/modal-dialog": "^17.0.0",
52
52
  "@atlaskit/platform-feature-experiments": "^0.3.0",
53
53
  "@atlaskit/platform-feature-flags": "^2.2.0",
54
- "@atlaskit/primitives": "^22.5.0",
54
+ "@atlaskit/primitives": "^22.6.0",
55
55
  "@atlaskit/spinner": "20.4.4",
56
56
  "@atlaskit/tmp-editor-statsig": "^240.0.0",
57
57
  "@atlaskit/tokens": "20.6.0",
@@ -65,7 +65,7 @@
65
65
  "memoize-one": "^6.0.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@atlaskit/editor-common": "^131.3.0",
68
+ "@atlaskit/editor-common": "^131.4.0",
69
69
  "react": "^18.2.0 || ^19.2.0",
70
70
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
71
71
  },