@atlaskit/editor-plugin-insert-block 7.0.11 → 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 +12 -7
- package/dist/cjs/ui/toolbar-components/EmojiButton.js +5 -4
- package/dist/es2019/ui/toolbar-components/EmojiButton.js +7 -5
- package/dist/esm/ui/toolbar-components/EmojiButton.js +6 -5
- package/dist/types/ui/toolbar-components/EmojiButton.d.ts +1 -1
- package/dist/types-ts4.5/ui/toolbar-components/EmojiButton.d.ts +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 7.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.0.12
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 7.0.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -226,7 +238,6 @@
|
|
|
226
238
|
|
|
227
239
|
- [`286abb4d35eba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/286abb4d35eba) -
|
|
228
240
|
[ux] [ED-28960] Finish full page primary toolbar migration
|
|
229
|
-
|
|
230
241
|
- Align with design update (separator, gap, height, icon size)
|
|
231
242
|
- Add keyboard shortcut to focus toolbar and arrow key navigation
|
|
232
243
|
- Address accessibility
|
|
@@ -350,7 +361,6 @@
|
|
|
350
361
|
shared context or singletons.
|
|
351
362
|
|
|
352
363
|
**HOW TO ADJUST:**
|
|
353
|
-
|
|
354
364
|
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
355
365
|
any of these editor plugins.
|
|
356
366
|
- Ensure the version you install matches the version required by the plugins.
|
|
@@ -1472,7 +1482,6 @@
|
|
|
1472
1482
|
|
|
1473
1483
|
- [`193f8c85e1a39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/193f8c85e1a39) -
|
|
1474
1484
|
[ux] [ED-24635]
|
|
1475
|
-
|
|
1476
1485
|
- Disable Turn into dropdown options when wrapping is not supported
|
|
1477
1486
|
- Update expand icon so that it can show disabled status
|
|
1478
1487
|
- Update Turn into icon to show active status when dropdown is open
|
|
@@ -1493,7 +1502,6 @@
|
|
|
1493
1502
|
[`705fe39cae267`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/705fe39cae267) -
|
|
1494
1503
|
[ED-24597] Update to log `platform_editor_basic_text_transformations` exposure event only for
|
|
1495
1504
|
users meet all of 3 checks:
|
|
1496
|
-
|
|
1497
1505
|
- Are enrolled to the experiment
|
|
1498
1506
|
- Have AI disabled
|
|
1499
1507
|
- Make top level text selection
|
|
@@ -1890,7 +1898,6 @@
|
|
|
1890
1898
|
## WHAT?:
|
|
1891
1899
|
|
|
1892
1900
|
Removing feature flags:
|
|
1893
|
-
|
|
1894
1901
|
- singleLayout
|
|
1895
1902
|
- newInsertionBehaviour
|
|
1896
1903
|
- interactiveExpand
|
|
@@ -1904,7 +1911,6 @@
|
|
|
1904
1911
|
maintenance burden
|
|
1905
1912
|
|
|
1906
1913
|
## HOW to update your code:
|
|
1907
|
-
|
|
1908
1914
|
- If you were using the feature flag - the behaviour is now default and you can remove the flags
|
|
1909
1915
|
- If you were not using the feature flag - the behaviour is now default.
|
|
1910
1916
|
- If you have opted out of using the feature flag - we have been careful to ensure no-one has
|
|
@@ -2201,7 +2207,6 @@
|
|
|
2201
2207
|
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
2202
2208
|
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
2203
2209
|
feature flags plugin optional in all plugins including:
|
|
2204
|
-
|
|
2205
2210
|
- analytics
|
|
2206
2211
|
- base
|
|
2207
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
|
|
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
|
|
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.
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-code-block": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-date": "^8.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-emoji": "^7.
|
|
38
|
+
"@atlaskit/editor-plugin-emoji": "^7.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-expand": "^7.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-extension": "^9.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.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": "^
|
|
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",
|
|
@@ -52,23 +52,23 @@
|
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^6.0.0",
|
|
53
53
|
"@atlaskit/editor-plugin-rule": "^6.0.0",
|
|
54
54
|
"@atlaskit/editor-plugin-status": "^7.0.0",
|
|
55
|
-
"@atlaskit/editor-plugin-table": "^15.
|
|
55
|
+
"@atlaskit/editor-plugin-table": "^15.1.0",
|
|
56
56
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^9.0.0",
|
|
57
|
-
"@atlaskit/editor-plugin-toolbar": "^3.
|
|
57
|
+
"@atlaskit/editor-plugin-toolbar": "^3.3.0",
|
|
58
58
|
"@atlaskit/editor-plugin-type-ahead": "^6.4.0",
|
|
59
59
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
60
60
|
"@atlaskit/editor-shared-styles": "^3.7.0",
|
|
61
61
|
"@atlaskit/editor-toolbar": "^0.15.0",
|
|
62
62
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
63
|
-
"@atlaskit/emoji": "^69.
|
|
63
|
+
"@atlaskit/emoji": "^69.6.0",
|
|
64
64
|
"@atlaskit/heading": "^5.2.0",
|
|
65
65
|
"@atlaskit/icon": "^28.5.0",
|
|
66
66
|
"@atlaskit/icon-lab": "^5.10.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
68
|
-
"@atlaskit/primitives": "^
|
|
68
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
69
69
|
"@atlaskit/theme": "^21.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
71
|
-
"@atlaskit/tokens": "^
|
|
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.
|
|
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"
|