@atlaskit/editor-plugin-help-dialog 2.1.7 → 2.1.9
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 2.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167027](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167027)
|
|
8
|
+
[`44639aaa2f7ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44639aaa2f7ae) -
|
|
9
|
+
ED-28191 add new description text for resizing shortcut now it applies to more elements behind
|
|
10
|
+
platform_editor_breakout_resizing experiment
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 2.1.8
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 2.1.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.HelpDialogLoader = void 0;
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
10
|
-
function
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
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" != (0, _typeof2.default)(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); }
|
|
12
11
|
var HelpDialogLoader = exports.HelpDialogLoader = (0, _reactLoadable.default)({
|
|
13
12
|
loader: function loader() {
|
|
14
13
|
return Promise.resolve().then(function () {
|
|
@@ -606,8 +606,24 @@ var resizeInformationFormatting = function resizeInformationFormatting(_ref5) {
|
|
|
606
606
|
}
|
|
607
607
|
}];
|
|
608
608
|
};
|
|
609
|
-
var
|
|
609
|
+
var newResizeInformationFormatting = function newResizeInformationFormatting(_ref6) {
|
|
610
610
|
var formatMessage = _ref6.formatMessage;
|
|
611
|
+
return [{
|
|
612
|
+
name: formatMessage(_messages.helpDialogMessages.increaseElementSize),
|
|
613
|
+
type: 'media',
|
|
614
|
+
keymap: function keymap() {
|
|
615
|
+
return _keymaps.increaseMediaSize;
|
|
616
|
+
}
|
|
617
|
+
}, {
|
|
618
|
+
name: formatMessage(_messages.helpDialogMessages.decreaseElementSize),
|
|
619
|
+
type: 'media',
|
|
620
|
+
keymap: function keymap() {
|
|
621
|
+
return _keymaps.decreaseMediaSize;
|
|
622
|
+
}
|
|
623
|
+
}];
|
|
624
|
+
};
|
|
625
|
+
var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref7) {
|
|
626
|
+
var formatMessage = _ref7.formatMessage;
|
|
611
627
|
return [{
|
|
612
628
|
name: formatMessage(_messages.helpDialogMessages.focusTableResizeHandle),
|
|
613
629
|
type: 'navigation',
|
|
@@ -616,8 +632,8 @@ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting
|
|
|
616
632
|
}
|
|
617
633
|
}];
|
|
618
634
|
};
|
|
619
|
-
var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(
|
|
620
|
-
var formatMessage =
|
|
635
|
+
var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref8) {
|
|
636
|
+
var formatMessage = _ref8.formatMessage;
|
|
621
637
|
return [{
|
|
622
638
|
name: formatMessage(_messages.helpDialogMessages.openCellOptions),
|
|
623
639
|
type: 'image',
|
|
@@ -639,8 +655,8 @@ var imageAutoFormat = {
|
|
|
639
655
|
, _messages.helpDialogMessages.altText), "](http://www.image.com)"));
|
|
640
656
|
}
|
|
641
657
|
};
|
|
642
|
-
var quickInsertAutoFormat = function quickInsertAutoFormat(
|
|
643
|
-
var formatMessage =
|
|
658
|
+
var quickInsertAutoFormat = function quickInsertAutoFormat(_ref9) {
|
|
659
|
+
var formatMessage = _ref9.formatMessage;
|
|
644
660
|
return {
|
|
645
661
|
name: formatMessage(_messages.helpDialogMessages.quickInsert),
|
|
646
662
|
type: 'quickInsert',
|
|
@@ -656,5 +672,5 @@ var getSupportedFormatting = exports.getSupportedFormatting = function getSuppor
|
|
|
656
672
|
var supportedBySchema = formatting(intl).filter(function (format) {
|
|
657
673
|
return schema.nodes[format.type] || schema.marks[format.type];
|
|
658
674
|
});
|
|
659
|
-
return [].concat((0, _toConsumableArray2.default)(aiEnabled && (0, _experiments.editorExperiment)('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), (0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)(focusTableResizeHandleFormatting(intl)), (0, _toConsumableArray2.default)(resizeInformationFormatting(intl)), (0, _toConsumableArray2.default)(openCellOptionsFormattingtoFormat(intl)));
|
|
675
|
+
return [].concat((0, _toConsumableArray2.default)(aiEnabled && (0, _experiments.editorExperiment)('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), (0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)(focusTableResizeHandleFormatting(intl)), (0, _toConsumableArray2.default)((0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), (0, _toConsumableArray2.default)(openCellOptionsFormattingtoFormat(intl)));
|
|
660
676
|
};
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -15,8 +15,7 @@ var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
|
15
15
|
var _commands = require("../pm-plugins/commands");
|
|
16
16
|
var _formatting = require("./formatting");
|
|
17
17
|
var _Modal = _interopRequireDefault(require("./Modal"));
|
|
18
|
-
function
|
|
19
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
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); }
|
|
20
19
|
/**
|
|
21
20
|
* @jsxRuntime classic
|
|
22
21
|
* @jsx jsx
|
package/dist/cjs/ui/styles.js
CHANGED
|
@@ -9,8 +9,7 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
10
10
|
var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
11
11
|
var colors = _colors;
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
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); }
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
14
|
|
|
16
15
|
// Ignored via go/ees005
|
|
@@ -469,6 +469,17 @@ const resizeInformationFormatting = ({
|
|
|
469
469
|
type: 'media',
|
|
470
470
|
keymap: () => decreaseMediaSize
|
|
471
471
|
}];
|
|
472
|
+
const newResizeInformationFormatting = ({
|
|
473
|
+
formatMessage
|
|
474
|
+
}) => [{
|
|
475
|
+
name: formatMessage(messages.increaseElementSize),
|
|
476
|
+
type: 'media',
|
|
477
|
+
keymap: () => increaseMediaSize
|
|
478
|
+
}, {
|
|
479
|
+
name: formatMessage(messages.decreaseElementSize),
|
|
480
|
+
type: 'media',
|
|
481
|
+
keymap: () => decreaseMediaSize
|
|
482
|
+
}];
|
|
472
483
|
const focusTableResizeHandleFormatting = ({
|
|
473
484
|
formatMessage
|
|
474
485
|
}) => [{
|
|
@@ -506,5 +517,5 @@ const quickInsertAutoFormat = ({
|
|
|
506
517
|
});
|
|
507
518
|
export const getSupportedFormatting = (schema, intl, imageEnabled, quickInsertEnabled, aiEnabled) => {
|
|
508
519
|
const supportedBySchema = formatting(intl).filter(format => schema.nodes[format.type] || schema.marks[format.type]);
|
|
509
|
-
return [...(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), ...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...resizeInformationFormatting(intl), ...openCellOptionsFormattingtoFormat(intl)];
|
|
520
|
+
return [...(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), ...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...(editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), ...openCellOptionsFormattingtoFormat(intl)];
|
|
510
521
|
};
|
|
@@ -598,8 +598,24 @@ var resizeInformationFormatting = function resizeInformationFormatting(_ref5) {
|
|
|
598
598
|
}
|
|
599
599
|
}];
|
|
600
600
|
};
|
|
601
|
-
var
|
|
601
|
+
var newResizeInformationFormatting = function newResizeInformationFormatting(_ref6) {
|
|
602
602
|
var formatMessage = _ref6.formatMessage;
|
|
603
|
+
return [{
|
|
604
|
+
name: formatMessage(messages.increaseElementSize),
|
|
605
|
+
type: 'media',
|
|
606
|
+
keymap: function keymap() {
|
|
607
|
+
return increaseMediaSize;
|
|
608
|
+
}
|
|
609
|
+
}, {
|
|
610
|
+
name: formatMessage(messages.decreaseElementSize),
|
|
611
|
+
type: 'media',
|
|
612
|
+
keymap: function keymap() {
|
|
613
|
+
return decreaseMediaSize;
|
|
614
|
+
}
|
|
615
|
+
}];
|
|
616
|
+
};
|
|
617
|
+
var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref7) {
|
|
618
|
+
var formatMessage = _ref7.formatMessage;
|
|
603
619
|
return [{
|
|
604
620
|
name: formatMessage(messages.focusTableResizeHandle),
|
|
605
621
|
type: 'navigation',
|
|
@@ -608,8 +624,8 @@ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting
|
|
|
608
624
|
}
|
|
609
625
|
}];
|
|
610
626
|
};
|
|
611
|
-
var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(
|
|
612
|
-
var formatMessage =
|
|
627
|
+
var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref8) {
|
|
628
|
+
var formatMessage = _ref8.formatMessage;
|
|
613
629
|
return [{
|
|
614
630
|
name: formatMessage(messages.openCellOptions),
|
|
615
631
|
type: 'image',
|
|
@@ -631,8 +647,8 @@ var imageAutoFormat = {
|
|
|
631
647
|
, messages.altText), "](http://www.image.com)"));
|
|
632
648
|
}
|
|
633
649
|
};
|
|
634
|
-
var quickInsertAutoFormat = function quickInsertAutoFormat(
|
|
635
|
-
var formatMessage =
|
|
650
|
+
var quickInsertAutoFormat = function quickInsertAutoFormat(_ref9) {
|
|
651
|
+
var formatMessage = _ref9.formatMessage;
|
|
636
652
|
return {
|
|
637
653
|
name: formatMessage(messages.quickInsert),
|
|
638
654
|
type: 'quickInsert',
|
|
@@ -648,5 +664,5 @@ export var getSupportedFormatting = function getSupportedFormatting(schema, intl
|
|
|
648
664
|
var supportedBySchema = formatting(intl).filter(function (format) {
|
|
649
665
|
return schema.nodes[format.type] || schema.marks[format.type];
|
|
650
666
|
});
|
|
651
|
-
return [].concat(_toConsumableArray(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), _toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(resizeInformationFormatting(intl)), _toConsumableArray(openCellOptionsFormattingtoFormat(intl)));
|
|
667
|
+
return [].concat(_toConsumableArray(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), _toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), _toConsumableArray(openCellOptionsFormattingtoFormat(intl)));
|
|
652
668
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^106.
|
|
36
|
+
"@atlaskit/editor-common": "^106.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-quick-insert": "^2.5.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^14.8.0",
|
|
46
46
|
"@atlaskit/theme": "^18.0.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
48
|
-
"@atlaskit/tokens": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^5.13.0",
|
|
48
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
@@ -93,6 +93,9 @@
|
|
|
93
93
|
"platform-feature-flags": {
|
|
94
94
|
"platform_editor_cmd_y_mac_redo_shortcut": {
|
|
95
95
|
"type": "boolean"
|
|
96
|
+
},
|
|
97
|
+
"platform_editor_breakout_resizing_hello_release": {
|
|
98
|
+
"type": "boolean"
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
}
|