@atlaskit/editor-plugin-help-dialog 1.7.0 → 1.8.0
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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 1.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#133191](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/133191)
|
|
8
|
+
[`78a1927084934`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/78a1927084934) -
|
|
9
|
+
[ux] Remove icon migration feature gate and migrate new icons on primary toolbar
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.7.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.7.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -14,8 +14,6 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
14
14
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
15
15
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
16
16
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/question-circle"));
|
|
17
|
-
var _questionCircle2 = _interopRequireDefault(require("@atlaskit/icon/glyph/question-circle"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
17
|
var _commands = require("./commands");
|
|
20
18
|
var _pluginKey = require("./plugin-key");
|
|
21
19
|
var _HelpDialogLoader = require("./ui/HelpDialogLoader");
|
|
@@ -78,11 +76,9 @@ var helpDialogPlugin = exports.helpDialogPlugin = function helpDialogPlugin(_ref
|
|
|
78
76
|
priority: 4000,
|
|
79
77
|
keyshortcut: (0, _keymaps.tooltip)(_keymaps.openHelp),
|
|
80
78
|
icon: function icon() {
|
|
81
|
-
return
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
82
80
|
label: "",
|
|
83
81
|
color: "currentColor"
|
|
84
|
-
}) : /*#__PURE__*/_react.default.createElement(_questionCircle2.default, {
|
|
85
|
-
label: ""
|
|
86
82
|
});
|
|
87
83
|
},
|
|
88
84
|
action: function action(insert) {
|
|
@@ -11,8 +11,6 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
13
13
|
var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
|
|
14
|
-
var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
14
|
var _styles = require("./styles");
|
|
17
15
|
/**
|
|
18
16
|
* @jsxRuntime classic
|
|
@@ -35,13 +33,10 @@ var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref) {
|
|
|
35
33
|
onClick: onClose,
|
|
36
34
|
title: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
|
|
37
35
|
spacing: "compact",
|
|
38
|
-
iconBefore: (0,
|
|
36
|
+
iconBefore: (0, _react.jsx)(_closeCross.default, {
|
|
39
37
|
label: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
|
|
40
38
|
color: "currentColor",
|
|
41
39
|
spacing: "spacious"
|
|
42
|
-
}) : (0, _react.jsx)(_cross.default, {
|
|
43
|
-
label: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
|
|
44
|
-
size: "medium"
|
|
45
40
|
})
|
|
46
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
42
|
,
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -5,8 +5,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
5
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
6
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
7
7
|
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
8
|
-
import { default as QuestionCircleIconLegacy } from '@atlaskit/icon/glyph/question-circle';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
8
|
import { openHelpCommand } from './commands';
|
|
11
9
|
import { pluginKey } from './plugin-key';
|
|
12
10
|
import { HelpDialogLoader } from './ui/HelpDialogLoader';
|
|
@@ -65,11 +63,9 @@ export const helpDialogPlugin = ({
|
|
|
65
63
|
keywords: ['?'],
|
|
66
64
|
priority: 4000,
|
|
67
65
|
keyshortcut: tooltip(openHelp),
|
|
68
|
-
icon: () =>
|
|
66
|
+
icon: () => /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
69
67
|
label: "",
|
|
70
68
|
color: "currentColor"
|
|
71
|
-
}) : /*#__PURE__*/React.createElement(QuestionCircleIconLegacy, {
|
|
72
|
-
label: ""
|
|
73
69
|
}),
|
|
74
70
|
action(insert) {
|
|
75
71
|
var _api$analytics2;
|
|
@@ -9,8 +9,6 @@ import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages
|
|
|
9
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
10
10
|
import Heading from '@atlaskit/heading';
|
|
11
11
|
import CloseIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
12
|
-
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
12
|
import { header, toolbarButton } from './styles';
|
|
15
13
|
const ModalHeader = injectIntl(({
|
|
16
14
|
intl: {
|
|
@@ -30,13 +28,10 @@ const ModalHeader = injectIntl(({
|
|
|
30
28
|
onClick: onClose,
|
|
31
29
|
title: formatMessage(messages.closeHelpDialog),
|
|
32
30
|
spacing: "compact",
|
|
33
|
-
iconBefore:
|
|
31
|
+
iconBefore: jsx(CloseIcon, {
|
|
34
32
|
label: formatMessage(messages.closeHelpDialog),
|
|
35
33
|
color: "currentColor",
|
|
36
34
|
spacing: "spacious"
|
|
37
|
-
}) : jsx(CrossIcon, {
|
|
38
|
-
label: formatMessage(messages.closeHelpDialog),
|
|
39
|
-
size: "medium"
|
|
40
35
|
})
|
|
41
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
37
|
,
|
package/dist/esm/plugin.js
CHANGED
|
@@ -8,8 +8,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
9
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
10
10
|
import QuestionCircleIcon from '@atlaskit/icon/core/migration/question-circle';
|
|
11
|
-
import { default as QuestionCircleIconLegacy } from '@atlaskit/icon/glyph/question-circle';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
11
|
import { openHelpCommand } from './commands';
|
|
14
12
|
import { pluginKey } from './plugin-key';
|
|
15
13
|
import { HelpDialogLoader } from './ui/HelpDialogLoader';
|
|
@@ -70,11 +68,9 @@ export var helpDialogPlugin = function helpDialogPlugin(_ref) {
|
|
|
70
68
|
priority: 4000,
|
|
71
69
|
keyshortcut: tooltip(openHelp),
|
|
72
70
|
icon: function icon() {
|
|
73
|
-
return
|
|
71
|
+
return /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
74
72
|
label: "",
|
|
75
73
|
color: "currentColor"
|
|
76
|
-
}) : /*#__PURE__*/React.createElement(QuestionCircleIconLegacy, {
|
|
77
|
-
label: ""
|
|
78
74
|
});
|
|
79
75
|
},
|
|
80
76
|
action: function action(insert) {
|
|
@@ -9,8 +9,6 @@ import { helpDialogMessages as messages } from '@atlaskit/editor-common/messages
|
|
|
9
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
10
10
|
import Heading from '@atlaskit/heading';
|
|
11
11
|
import CloseIcon from '@atlaskit/icon/core/migration/close--cross';
|
|
12
|
-
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
12
|
import { header, toolbarButton } from './styles';
|
|
15
13
|
var ModalHeader = injectIntl(function (_ref) {
|
|
16
14
|
var formatMessage = _ref.intl.formatMessage,
|
|
@@ -27,13 +25,10 @@ var ModalHeader = injectIntl(function (_ref) {
|
|
|
27
25
|
onClick: onClose,
|
|
28
26
|
title: formatMessage(messages.closeHelpDialog),
|
|
29
27
|
spacing: "compact",
|
|
30
|
-
iconBefore:
|
|
28
|
+
iconBefore: jsx(CloseIcon, {
|
|
31
29
|
label: formatMessage(messages.closeHelpDialog),
|
|
32
30
|
color: "currentColor",
|
|
33
31
|
spacing: "spacious"
|
|
34
|
-
}) : jsx(CrossIcon, {
|
|
35
|
-
label: formatMessage(messages.closeHelpDialog),
|
|
36
|
-
size: "medium"
|
|
37
32
|
})
|
|
38
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
34
|
,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
35
|
+
"@atlaskit/editor-common": "^88.1.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
37
37
|
"@atlaskit/editor-plugin-quick-insert": "^1.3.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
40
40
|
"@atlaskit/heading": "^2.4.0",
|
|
41
|
-
"@atlaskit/icon": "^22.
|
|
41
|
+
"@atlaskit/icon": "^22.14.0",
|
|
42
42
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
44
|
"@atlaskit/primitives": "^12.0.0",
|
|
45
45
|
"@atlaskit/theme": "^13.0.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.59.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
@@ -88,9 +88,6 @@
|
|
|
88
88
|
"platform-feature-flags": {
|
|
89
89
|
"platform_editor_a11y_table_context_menu": {
|
|
90
90
|
"type": "boolean"
|
|
91
|
-
},
|
|
92
|
-
"platform_editor_migration_icon_and_typography": {
|
|
93
|
-
"type": "boolean"
|
|
94
91
|
}
|
|
95
92
|
}
|
|
96
93
|
}
|