@atlaskit/editor-plugin-help-dialog 8.0.31 → 8.0.33
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 +15 -0
- package/dist/cjs/ui/ModalContent.js +1 -1
- package/dist/cjs/ui/formatting.js +1 -1
- package/dist/cjs/ui/utils.js +1 -2
- package/dist/es2019/ui/ModalContent.js +2 -2
- package/dist/es2019/ui/formatting.js +2 -2
- package/dist/es2019/ui/utils.js +2 -3
- package/dist/esm/ui/ModalContent.js +2 -2
- package/dist/esm/ui/formatting.js +2 -2
- package/dist/esm/ui/utils.js +2 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 8.0.33
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
8
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
9
|
+
rolled out
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 8.0.32
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 8.0.31
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -28,7 +28,7 @@ var _utils = require("./utils");
|
|
|
28
28
|
var ModalContent = exports.ModalContent = function ModalContent(_ref) {
|
|
29
29
|
var formatting = _ref.formatting,
|
|
30
30
|
onClose = _ref.onClose;
|
|
31
|
-
var browser = (0,
|
|
31
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
32
32
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
33
33
|
var isA11yFixEnabled = (0, _expValEquals.expValEquals)('platform_editor_a11y_eslint_fix', 'isEnabled', true);
|
|
34
34
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_ModalHeader.default, {
|
|
@@ -403,7 +403,7 @@ var quickInsertAskAI = function quickInsertAskAI(_ref3) {
|
|
|
403
403
|
};
|
|
404
404
|
var otherFormatting = function otherFormatting(_ref4) {
|
|
405
405
|
var formatMessage = _ref4.formatMessage;
|
|
406
|
-
var browser = (0,
|
|
406
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
407
407
|
return [{
|
|
408
408
|
name: formatMessage(_messages.toolbarMessages.clearFormatting),
|
|
409
409
|
type: 'clearFormatting',
|
package/dist/cjs/ui/utils.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.shortcutNamesWithoutKeymap = exports.getComponentFromKeymap = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
9
9
|
var _primitives = require("@atlaskit/primitives");
|
|
10
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
10
|
var _styles = require("./styles");
|
|
12
11
|
/**
|
|
13
12
|
* @jsxRuntime classic
|
|
@@ -45,7 +44,7 @@ var codeSm = (0, _primitives.xcss)({
|
|
|
45
44
|
textAlign: 'center'
|
|
46
45
|
});
|
|
47
46
|
var getKeyParts = function getKeyParts(keymap) {
|
|
48
|
-
var browser = (0,
|
|
47
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
49
48
|
var shortcut = keymap[browser.mac ? 'mac' : 'windows'];
|
|
50
49
|
if (browser.mac) {
|
|
51
50
|
shortcut = shortcut.replace('Alt', 'Opt');
|
|
@@ -8,7 +8,7 @@ import { Fragment } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
11
|
-
import {
|
|
11
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
12
12
|
import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import Heading from '@atlaskit/heading';
|
|
14
14
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -21,7 +21,7 @@ export const ModalContent = ({
|
|
|
21
21
|
formatting,
|
|
22
22
|
onClose
|
|
23
23
|
}) => {
|
|
24
|
-
const browser =
|
|
24
|
+
const browser = getBrowserInfo();
|
|
25
25
|
const intl = useIntl();
|
|
26
26
|
const isA11yFixEnabled = expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true);
|
|
27
27
|
return jsx(Fragment, null, jsx(ModalHeader, {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
|
-
import {
|
|
8
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
9
9
|
import { addInlineComment, addLink, alignCenter, alignLeft, alignRight, askAIQuickInsert, clearFormatting, decreaseMediaSize, focusTableResizer, focusToContextMenuTrigger, increaseMediaSize, insertRule, moveColumnLeft, moveColumnRight, moveRowDown, moveRowUp, navToEditorToolbar, navToFloatingToolbar, pastePlainText, redoAlt, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleSmallText, toggleHighlightPalette, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
|
|
10
10
|
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, tableMessages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -299,7 +299,7 @@ const quickInsertAskAI = ({
|
|
|
299
299
|
const otherFormatting = ({
|
|
300
300
|
formatMessage
|
|
301
301
|
}) => {
|
|
302
|
-
const browser =
|
|
302
|
+
const browser = getBrowserInfo();
|
|
303
303
|
return [{
|
|
304
304
|
name: formatMessage(toolbarMessages.clearFormatting),
|
|
305
305
|
type: 'clearFormatting',
|
package/dist/es2019/ui/utils.js
CHANGED
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
7
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { componentFromKeymapWrapperStyles } from './styles';
|
|
12
11
|
const codeLg = xcss({
|
|
13
12
|
borderRadius: 'radius.small',
|
|
@@ -37,7 +36,7 @@ const codeSm = xcss({
|
|
|
37
36
|
textAlign: 'center'
|
|
38
37
|
});
|
|
39
38
|
const getKeyParts = keymap => {
|
|
40
|
-
const browser =
|
|
39
|
+
const browser = getBrowserInfo();
|
|
41
40
|
let shortcut = keymap[browser.mac ? 'mac' : 'windows'];
|
|
42
41
|
if (browser.mac) {
|
|
43
42
|
shortcut = shortcut.replace('Alt', 'Opt');
|
|
@@ -8,7 +8,7 @@ import { Fragment } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
11
|
-
import {
|
|
11
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
12
12
|
import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import Heading from '@atlaskit/heading';
|
|
14
14
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
@@ -20,7 +20,7 @@ import { getComponentFromKeymap, shortcutNamesWithoutKeymap } from './utils';
|
|
|
20
20
|
export var ModalContent = function ModalContent(_ref) {
|
|
21
21
|
var formatting = _ref.formatting,
|
|
22
22
|
onClose = _ref.onClose;
|
|
23
|
-
var browser =
|
|
23
|
+
var browser = getBrowserInfo();
|
|
24
24
|
var intl = useIntl();
|
|
25
25
|
var isA11yFixEnabled = expValEquals('platform_editor_a11y_eslint_fix', 'isEnabled', true);
|
|
26
26
|
return jsx(Fragment, null, jsx(ModalHeader, {
|
|
@@ -6,7 +6,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
|
-
import {
|
|
9
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { addInlineComment, addLink, alignCenter, alignLeft, alignRight, askAIQuickInsert, clearFormatting, decreaseMediaSize, focusTableResizer, focusToContextMenuTrigger, increaseMediaSize, insertRule, moveColumnLeft, moveColumnRight, moveRowDown, moveRowUp, navToEditorToolbar, navToFloatingToolbar, pastePlainText, redoAlt, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleSmallText, toggleHighlightPalette, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
|
|
11
11
|
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, tableMessages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -394,7 +394,7 @@ var quickInsertAskAI = function quickInsertAskAI(_ref3) {
|
|
|
394
394
|
};
|
|
395
395
|
var otherFormatting = function otherFormatting(_ref4) {
|
|
396
396
|
var formatMessage = _ref4.formatMessage;
|
|
397
|
-
var browser =
|
|
397
|
+
var browser = getBrowserInfo();
|
|
398
398
|
return [{
|
|
399
399
|
name: formatMessage(toolbarMessages.clearFormatting),
|
|
400
400
|
type: 'clearFormatting',
|
package/dist/esm/ui/utils.js
CHANGED
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
7
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { componentFromKeymapWrapperStyles } from './styles';
|
|
12
11
|
var codeLg = xcss({
|
|
13
12
|
borderRadius: 'radius.small',
|
|
@@ -37,7 +36,7 @@ var codeSm = xcss({
|
|
|
37
36
|
textAlign: 'center'
|
|
38
37
|
});
|
|
39
38
|
var getKeyParts = function getKeyParts(keymap) {
|
|
40
|
-
var browser =
|
|
39
|
+
var browser = getBrowserInfo();
|
|
41
40
|
var shortcut = keymap[browser.mac ? 'mac' : 'windows'];
|
|
42
41
|
if (browser.mac) {
|
|
43
42
|
shortcut = shortcut.replace('Alt', 'Opt');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.33",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
35
35
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
36
36
|
"@atlaskit/heading": "^5.4.0",
|
|
37
|
-
"@atlaskit/icon": "^34.
|
|
37
|
+
"@atlaskit/icon": "^34.1.0",
|
|
38
38
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/primitives": "^19.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^62.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^13.0.0",
|
|
43
43
|
"@atlaskit/tooltip": "^21.1.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@testing-library/react": "^16.3.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^112.
|
|
53
|
+
"@atlaskit/editor-common": "^112.21.0",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"techstack": {
|