@atlaskit/editor-plugin-insert-block 7.0.12 → 7.0.13

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,11 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 7.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 7.0.12
4
10
 
5
11
  ### Patch Changes
@@ -232,7 +238,6 @@
232
238
 
233
239
  - [`286abb4d35eba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/286abb4d35eba) -
234
240
  [ux] [ED-28960] Finish full page primary toolbar migration
235
-
236
241
  - Align with design update (separator, gap, height, icon size)
237
242
  - Add keyboard shortcut to focus toolbar and arrow key navigation
238
243
  - Address accessibility
@@ -356,7 +361,6 @@
356
361
  shared context or singletons.
357
362
 
358
363
  **HOW TO ADJUST:**
359
-
360
364
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
361
365
  any of these editor plugins.
362
366
  - Ensure the version you install matches the version required by the plugins.
@@ -1478,7 +1482,6 @@
1478
1482
 
1479
1483
  - [`193f8c85e1a39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/193f8c85e1a39) -
1480
1484
  [ux] [ED-24635]
1481
-
1482
1485
  - Disable Turn into dropdown options when wrapping is not supported
1483
1486
  - Update expand icon so that it can show disabled status
1484
1487
  - Update Turn into icon to show active status when dropdown is open
@@ -1499,7 +1502,6 @@
1499
1502
  [`705fe39cae267`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/705fe39cae267) -
1500
1503
  [ED-24597] Update to log `platform_editor_basic_text_transformations` exposure event only for
1501
1504
  users meet all of 3 checks:
1502
-
1503
1505
  - Are enrolled to the experiment
1504
1506
  - Have AI disabled
1505
1507
  - Make top level text selection
@@ -1896,7 +1898,6 @@
1896
1898
  ## WHAT?:
1897
1899
 
1898
1900
  Removing feature flags:
1899
-
1900
1901
  - singleLayout
1901
1902
  - newInsertionBehaviour
1902
1903
  - interactiveExpand
@@ -1910,7 +1911,6 @@
1910
1911
  maintenance burden
1911
1912
 
1912
1913
  ## HOW to update your code:
1913
-
1914
1914
  - If you were using the feature flag - the behaviour is now default and you can remove the flags
1915
1915
  - If you were not using the feature flag - the behaviour is now default.
1916
1916
  - If you have opted out of using the feature flag - we have been careful to ensure no-one has
@@ -2207,7 +2207,6 @@
2207
2207
  - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
2208
2208
  [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
2209
2209
  feature flags plugin optional in all plugins including:
2210
-
2211
2210
  - analytics
2212
2211
  - base
2213
2212
  - card
@@ -16,13 +16,14 @@ var _useEmojiPickerPopup = require("./hooks/useEmojiPickerPopup");
16
16
  var _EmojiPickerPopup = require("./popups/EmojiPickerPopup");
17
17
  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); }
18
18
  var EmojiButton = exports.EmojiButton = function EmojiButton(_ref) {
19
- var api = _ref.api,
20
- popupsMountPoint = _ref.popupsMountPoint,
21
- popupsBoundariesElement = _ref.popupsBoundariesElement,
22
- popupsScrollableElement = _ref.popupsScrollableElement;
19
+ var api = _ref.api;
23
20
  var _useIntl = (0, _reactIntlNext.useIntl)(),
24
21
  formatMessage = _useIntl.formatMessage;
25
22
  var emojiButtonRef = (0, _react.useRef)(null);
23
+ var _useToolbarUI = (0, _editorToolbar.useToolbarUI)(),
24
+ popupsMountPoint = _useToolbarUI.popupsMountPoint,
25
+ popupsBoundariesElement = _useToolbarUI.popupsBoundariesElement,
26
+ popupsScrollableElement = _useToolbarUI.popupsScrollableElement;
26
27
  var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['emoji', 'typeAhead'], function (states) {
27
28
  var _states$emojiState, _states$emojiState2, _states$typeAheadStat;
28
29
  return {
@@ -3,20 +3,22 @@ import { useIntl } from 'react-intl-next';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { ToolTipContent, insertEmoji } from '@atlaskit/editor-common/keymaps';
5
5
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
6
- import { ToolbarButton, ToolbarTooltip, EmojiIcon } from '@atlaskit/editor-toolbar';
6
+ import { ToolbarButton, ToolbarTooltip, EmojiIcon, useToolbarUI } from '@atlaskit/editor-toolbar';
7
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
8
  import { useEmojiPickerPopup } from './hooks/useEmojiPickerPopup';
9
9
  import { EmojiPickerPopup } from './popups/EmojiPickerPopup';
10
10
  export const EmojiButton = ({
11
- api,
12
- popupsMountPoint,
13
- popupsBoundariesElement,
14
- popupsScrollableElement
11
+ api
15
12
  }) => {
16
13
  const {
17
14
  formatMessage
18
15
  } = useIntl();
19
16
  const emojiButtonRef = useRef(null);
17
+ const {
18
+ popupsMountPoint,
19
+ popupsBoundariesElement,
20
+ popupsScrollableElement
21
+ } = useToolbarUI();
20
22
  const {
21
23
  emojiProviderSelector,
22
24
  emojiProviderPromise,
@@ -3,18 +3,19 @@ import { useIntl } from 'react-intl-next';
3
3
  import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
4
4
  import { ToolTipContent, insertEmoji } from '@atlaskit/editor-common/keymaps';
5
5
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
6
- import { ToolbarButton, ToolbarTooltip, EmojiIcon } from '@atlaskit/editor-toolbar';
6
+ import { ToolbarButton, ToolbarTooltip, EmojiIcon, useToolbarUI } from '@atlaskit/editor-toolbar';
7
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
8
  import { useEmojiPickerPopup } from './hooks/useEmojiPickerPopup';
9
9
  import { EmojiPickerPopup } from './popups/EmojiPickerPopup';
10
10
  export var EmojiButton = function EmojiButton(_ref) {
11
- var api = _ref.api,
12
- popupsMountPoint = _ref.popupsMountPoint,
13
- popupsBoundariesElement = _ref.popupsBoundariesElement,
14
- popupsScrollableElement = _ref.popupsScrollableElement;
11
+ var api = _ref.api;
15
12
  var _useIntl = useIntl(),
16
13
  formatMessage = _useIntl.formatMessage;
17
14
  var emojiButtonRef = useRef(null);
15
+ var _useToolbarUI = useToolbarUI(),
16
+ popupsMountPoint = _useToolbarUI.popupsMountPoint,
17
+ popupsBoundariesElement = _useToolbarUI.popupsBoundariesElement,
18
+ popupsScrollableElement = _useToolbarUI.popupsScrollableElement;
18
19
  var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['emoji', 'typeAhead'], function (states) {
19
20
  var _states$emojiState, _states$emojiState2, _states$typeAheadStat;
20
21
  return {
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { BaseToolbarButtonProps } from './shared/types';
3
- export declare const EmojiButton: ({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: BaseToolbarButtonProps) => React.JSX.Element | null;
3
+ export declare const EmojiButton: ({ api }: BaseToolbarButtonProps) => React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import type { BaseToolbarButtonProps } from './shared/types';
3
- export declare const EmojiButton: ({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: BaseToolbarButtonProps) => React.JSX.Element | null;
3
+ export declare const EmojiButton: ({ api }: BaseToolbarButtonProps) => React.JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "7.0.12",
3
+ "version": "7.0.13",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/editor-plugin-image-upload": "^6.0.0",
44
44
  "@atlaskit/editor-plugin-layout": "^6.0.0",
45
45
  "@atlaskit/editor-plugin-media": "^8.1.0",
46
- "@atlaskit/editor-plugin-media-insert": "^12.0.0",
46
+ "@atlaskit/editor-plugin-media-insert": "^13.0.0",
47
47
  "@atlaskit/editor-plugin-mentions": "^8.0.0",
48
48
  "@atlaskit/editor-plugin-metrics": "^7.0.0",
49
49
  "@atlaskit/editor-plugin-panel": "^8.0.0",
@@ -67,8 +67,8 @@
67
67
  "@atlaskit/platform-feature-flags": "^1.1.0",
68
68
  "@atlaskit/primitives": "^15.0.0",
69
69
  "@atlaskit/theme": "^21.0.0",
70
- "@atlaskit/tmp-editor-statsig": "^13.10.0",
71
- "@atlaskit/tokens": "^6.5.0",
70
+ "@atlaskit/tmp-editor-statsig": "^13.13.0",
71
+ "@atlaskit/tokens": "^7.0.0",
72
72
  "@atlaskit/tooltip": "^20.5.0",
73
73
  "@babel/runtime": "^7.0.0",
74
74
  "@emotion/react": "^11.7.1",
@@ -78,7 +78,7 @@
78
78
  "react-virtualized": "^9.22.6"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^110.12.0",
81
+ "@atlaskit/editor-common": "^110.13.0",
82
82
  "react": "^18.2.0",
83
83
  "react-dom": "^18.2.0",
84
84
  "react-intl-next": "npm:react-intl@^5.18.1"