@atlaskit/editor-common 76.22.1 → 76.22.3
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 +14 -0
- package/dist/cjs/keymaps/index.js +3 -7
- package/dist/cjs/messages/table.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/keymaps/index.js +0 -4
- package/dist/es2019/messages/table.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/smartCard.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/keymaps/index.js +0 -4
- package/dist/esm/messages/table.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/keymaps/index.d.ts +0 -4
- package/dist/types/messages/table.d.ts +10 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -4
- package/dist/types-ts4.5/messages/table.d.ts +10 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.22.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43419](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43419) [`27726a80705`](https://bitbucket.org/atlassian/atlassian-frontend/commits/27726a80705) - [ux] Updated borders and added grid lines in datasource tables.
|
|
8
|
+
- [#43436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43436) [`6bf14e25965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bf14e25965) - Revert "Resize media for the keyboard users"
|
|
9
|
+
- [#43176](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43176) [`08ef3d55edb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/08ef3d55edb) - [ux] Updates message shown in the tooltip of insert row/column button for table with drag and drop enabled.
|
|
10
|
+
|
|
11
|
+
## 76.22.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 76.22.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -81,14 +81,14 @@ Object.defineProperty(exports, "UP", {
|
|
|
81
81
|
exports.backspace = exports.altPaste = exports.alignLeft = exports.addRowBefore = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBefore = exports.addColumnAfter = exports.addAltText = void 0;
|
|
82
82
|
exports.bindKeymapWithCommand = bindKeymapWithCommand;
|
|
83
83
|
exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
|
|
84
|
-
exports.find = exports.escape = exports.enter = exports.deleteKey = exports.
|
|
84
|
+
exports.find = exports.escape = exports.enter = exports.deleteKey = exports.cut = exports.ctrlBackSpace = exports.copy = exports.clearFormatting = void 0;
|
|
85
85
|
exports.findKeyMapForBrowser = findKeyMapForBrowser;
|
|
86
86
|
exports.findKeymapByDescription = findKeymapByDescription;
|
|
87
87
|
exports.findShortcutByDescription = findShortcutByDescription;
|
|
88
88
|
exports.findShortcutByKeymap = findShortcutByKeymap;
|
|
89
89
|
exports.forwardDelete = void 0;
|
|
90
90
|
exports.getAriaKeyshortcuts = getAriaKeyshortcuts;
|
|
91
|
-
exports.insertRule = exports.insertNewLine = exports.indentList = exports.indent =
|
|
91
|
+
exports.insertRule = exports.insertNewLine = exports.indentList = exports.indent = void 0;
|
|
92
92
|
exports.isCapsLockOnAndModifyKeyboardEvent = isCapsLockOnAndModifyKeyboardEvent;
|
|
93
93
|
Object.defineProperty(exports, "keymap", {
|
|
94
94
|
enumerable: true,
|
|
@@ -98,7 +98,7 @@ Object.defineProperty(exports, "keymap", {
|
|
|
98
98
|
});
|
|
99
99
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
100
100
|
exports.makeKeymap = makeKeymap;
|
|
101
|
-
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.redo = exports.
|
|
101
|
+
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
|
|
102
102
|
exports.tooltip = tooltip;
|
|
103
103
|
exports.undo = void 0;
|
|
104
104
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -181,10 +181,6 @@ var altPaste = exports.altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
181
181
|
var find = exports.find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
182
182
|
var alignLeft = exports.alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
183
183
|
var toggleTaskItemCheckbox = exports.toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
184
|
-
var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-ArrowRight');
|
|
185
|
-
var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-ArrowLeft');
|
|
186
|
-
var quickIncreaseMediaSize = exports.quickIncreaseMediaSize = makeKeyMapWithCommon('quick increase image size', 'Mod-Shift-ArrowRight');
|
|
187
|
-
var quickDecreaseMediaSize = exports.quickDecreaseMediaSize = makeKeyMapWithCommon('quick increase image size', 'Mod-Shift-ArrowLeft');
|
|
188
184
|
var arrowKeysMap = {
|
|
189
185
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
190
186
|
ARROWLEFT: "\u2190",
|
|
@@ -41,6 +41,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
41
41
|
defaultMessage: 'Insert column right',
|
|
42
42
|
description: 'Inserts a new column to the right of selected column.'
|
|
43
43
|
},
|
|
44
|
+
insertColumnDrag: {
|
|
45
|
+
id: 'fabric.editor.insertColumnDrag',
|
|
46
|
+
defaultMessage: 'Insert column',
|
|
47
|
+
description: 'Inserts a new column to the right of selected column.'
|
|
48
|
+
},
|
|
44
49
|
removeColumns: {
|
|
45
50
|
id: 'fabric.editor.removeColumns',
|
|
46
51
|
defaultMessage: 'Delete {0, plural, one {column} other {columns}}',
|
|
@@ -51,6 +56,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
51
56
|
defaultMessage: 'Insert row below',
|
|
52
57
|
description: 'Inserts a new row below the selected row.'
|
|
53
58
|
},
|
|
59
|
+
insertRowDrag: {
|
|
60
|
+
id: 'fabric.editor.insertRowDrag',
|
|
61
|
+
defaultMessage: 'Insert row',
|
|
62
|
+
description: 'Inserts a new row below the selected row.'
|
|
63
|
+
},
|
|
54
64
|
removeRows: {
|
|
55
65
|
id: 'fabric.editor.removeRows',
|
|
56
66
|
defaultMessage: 'Delete {0, plural, one {row} other {rows}}',
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "76.22.
|
|
19
|
+
var packageVersion = "76.22.3";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -14,4 +14,4 @@ var _smartCard = require("./smart-card");
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
var DATASOURCE_INNER_CONTAINER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
16
16
|
var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
17
|
-
var smartCardStyles = exports.smartCardStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: ", ";\n padding-right: ", ";\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n ", "\n }\n\n &.", "\n .", "\n > div {\n ", "\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n\n .", " {\n cursor: pointer;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n }\n\n &.", " {\n .", " {\n ", "\n }\n }\n\n &.danger {\n .", " {\n box-shadow: 0 0 0 1px\n ", ";\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), _smartCard.SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? '' : "\n &:hover {\n background-color: ".concat("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")"), ";\n }\n "), _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border-radius: ".concat("var(--ds-border-radius-200, 8px)", ";") : '', _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(_colors.N0, ")"), "var(--ds-border-radius-
|
|
17
|
+
var smartCardStyles = exports.smartCardStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: ", ";\n padding-right: ", ";\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n ", "\n }\n\n &.", "\n .", "\n > div {\n ", "\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n\n .", " {\n cursor: pointer;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n }\n\n &.", " {\n .", " {\n ", "\n }\n }\n\n &.danger {\n .", " {\n box-shadow: 0 0 0 1px\n ", ";\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), _smartCard.SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? '' : "\n &:hover {\n background-color: ".concat("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")"), ";\n }\n "), _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border-radius: ".concat("var(--ds-border-radius-200, 8px)", ";") : '', _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.DATASOURCE_CONTAINER, _smartCard.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(_colors.N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(_colors.N40, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _smartCard.SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, _editorSharedStyles.akEditorSelectedNodeClassName, _smartCard.SmartCardSharedCssClassName.LOADER_WRAPPER, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.22.
|
|
27
|
+
var packageVersion = "76.22.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -71,10 +71,6 @@ export const altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
71
71
|
export const find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
72
72
|
export const alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
73
73
|
export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
74
|
-
export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-ArrowRight');
|
|
75
|
-
export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-ArrowLeft');
|
|
76
|
-
export const quickIncreaseMediaSize = makeKeyMapWithCommon('quick increase image size', 'Mod-Shift-ArrowRight');
|
|
77
|
-
export const quickDecreaseMediaSize = makeKeyMapWithCommon('quick increase image size', 'Mod-Shift-ArrowLeft');
|
|
78
74
|
const arrowKeysMap = {
|
|
79
75
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
80
76
|
ARROWLEFT: '\u2190',
|
|
@@ -35,6 +35,11 @@ export const messages = defineMessages({
|
|
|
35
35
|
defaultMessage: 'Insert column right',
|
|
36
36
|
description: 'Inserts a new column to the right of selected column.'
|
|
37
37
|
},
|
|
38
|
+
insertColumnDrag: {
|
|
39
|
+
id: 'fabric.editor.insertColumnDrag',
|
|
40
|
+
defaultMessage: 'Insert column',
|
|
41
|
+
description: 'Inserts a new column to the right of selected column.'
|
|
42
|
+
},
|
|
38
43
|
removeColumns: {
|
|
39
44
|
id: 'fabric.editor.removeColumns',
|
|
40
45
|
defaultMessage: 'Delete {0, plural, one {column} other {columns}}',
|
|
@@ -45,6 +50,11 @@ export const messages = defineMessages({
|
|
|
45
50
|
defaultMessage: 'Insert row below',
|
|
46
51
|
description: 'Inserts a new row below the selected row.'
|
|
47
52
|
},
|
|
53
|
+
insertRowDrag: {
|
|
54
|
+
id: 'fabric.editor.insertRowDrag',
|
|
55
|
+
defaultMessage: 'Insert row',
|
|
56
|
+
description: 'Inserts a new row below the selected row.'
|
|
57
|
+
},
|
|
48
58
|
removeRows: {
|
|
49
59
|
id: 'fabric.editor.removeRows',
|
|
50
60
|
defaultMessage: 'Delete {0, plural, one {row} other {rows}}',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.22.
|
|
3
|
+
const packageVersion = "76.22.3";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -79,7 +79,7 @@ export const smartCardStyles = css`
|
|
|
79
79
|
.${DATASOURCE_INNER_CONTAINER_CLASSNAME} {
|
|
80
80
|
cursor: pointer;
|
|
81
81
|
background-color: ${`var(--ds-background-neutral-subtle, ${N0})`};
|
|
82
|
-
border-radius: ${"var(--ds-border-radius-
|
|
82
|
+
border-radius: ${"var(--ds-border-radius-200, 8px)"};
|
|
83
83
|
border: 1px solid ${`var(--ds-border, ${N40})`};
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.22.
|
|
12
|
+
const packageVersion = "76.22.3";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -74,10 +74,6 @@ export var altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
74
74
|
export var find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
75
75
|
export var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
76
76
|
export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
77
|
-
export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-ArrowRight');
|
|
78
|
-
export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-ArrowLeft');
|
|
79
|
-
export var quickIncreaseMediaSize = makeKeyMapWithCommon('quick increase image size', 'Mod-Shift-ArrowRight');
|
|
80
|
-
export var quickDecreaseMediaSize = makeKeyMapWithCommon('quick increase image size', 'Mod-Shift-ArrowLeft');
|
|
81
77
|
var arrowKeysMap = {
|
|
82
78
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
83
79
|
ARROWLEFT: "\u2190",
|
|
@@ -35,6 +35,11 @@ export var messages = defineMessages({
|
|
|
35
35
|
defaultMessage: 'Insert column right',
|
|
36
36
|
description: 'Inserts a new column to the right of selected column.'
|
|
37
37
|
},
|
|
38
|
+
insertColumnDrag: {
|
|
39
|
+
id: 'fabric.editor.insertColumnDrag',
|
|
40
|
+
defaultMessage: 'Insert column',
|
|
41
|
+
description: 'Inserts a new column to the right of selected column.'
|
|
42
|
+
},
|
|
38
43
|
removeColumns: {
|
|
39
44
|
id: 'fabric.editor.removeColumns',
|
|
40
45
|
defaultMessage: 'Delete {0, plural, one {column} other {columns}}',
|
|
@@ -45,6 +50,11 @@ export var messages = defineMessages({
|
|
|
45
50
|
defaultMessage: 'Insert row below',
|
|
46
51
|
description: 'Inserts a new row below the selected row.'
|
|
47
52
|
},
|
|
53
|
+
insertRowDrag: {
|
|
54
|
+
id: 'fabric.editor.insertRowDrag',
|
|
55
|
+
defaultMessage: 'Insert row',
|
|
56
|
+
description: 'Inserts a new row below the selected row.'
|
|
57
|
+
},
|
|
48
58
|
removeRows: {
|
|
49
59
|
id: 'fabric.editor.removeRows',
|
|
50
60
|
defaultMessage: 'Delete {0, plural, one {row} other {rows}}',
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.22.
|
|
9
|
+
var packageVersion = "76.22.3";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,4 +7,4 @@ import { N0, N20, N40 } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { SmartCardSharedCssClassName } from './smart-card';
|
|
8
8
|
export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
9
9
|
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
10
|
-
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: ", ";\n padding-right: ", ";\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n ", "\n }\n\n &.", "\n .", "\n > div {\n ", "\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n\n .", " {\n cursor: pointer;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n }\n\n &.", " {\n .", " {\n ", "\n }\n }\n\n &.danger {\n .", " {\n box-shadow: 0 0 0 1px\n ", ";\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? '' : "\n &:hover {\n background-color: ".concat("var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"), ";\n }\n "), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border-radius: ".concat("var(--ds-border-radius-200, 8px)", ";") : '', SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-
|
|
10
|
+
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: ", ";\n padding-right: ", ";\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n ", "\n }\n\n &.", "\n .", "\n > div {\n ", "\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n\n .", " {\n cursor: pointer;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n }\n\n &.", " {\n .", " {\n ", "\n }\n }\n\n &.danger {\n .", " {\n box-shadow: 0 0 0 1px\n ", ";\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? '' : "\n &:hover {\n background-color: ".concat("var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"), ";\n }\n "), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), getBooleanFF('platform.linking-platform.smart-card.show-smart-links-refreshed-design') ? "border-radius: ".concat("var(--ds-border-radius-200, 8px)", ";") : '', SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.22.
|
|
22
|
+
var packageVersion = "76.22.3";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -69,10 +69,6 @@ export declare const altPaste: Keymap;
|
|
|
69
69
|
export declare const find: Keymap;
|
|
70
70
|
export declare const alignLeft: Keymap;
|
|
71
71
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
72
|
-
export declare const increaseMediaSize: Keymap;
|
|
73
|
-
export declare const decreaseMediaSize: Keymap;
|
|
74
|
-
export declare const quickIncreaseMediaSize: Keymap;
|
|
75
|
-
export declare const quickDecreaseMediaSize: Keymap;
|
|
76
72
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
77
73
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
78
74
|
description?: string | React.ReactNode;
|
|
@@ -34,6 +34,11 @@ export declare const messages: {
|
|
|
34
34
|
defaultMessage: string;
|
|
35
35
|
description: string;
|
|
36
36
|
};
|
|
37
|
+
insertColumnDrag: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
37
42
|
removeColumns: {
|
|
38
43
|
id: string;
|
|
39
44
|
defaultMessage: string;
|
|
@@ -44,6 +49,11 @@ export declare const messages: {
|
|
|
44
49
|
defaultMessage: string;
|
|
45
50
|
description: string;
|
|
46
51
|
};
|
|
52
|
+
insertRowDrag: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
47
57
|
removeRows: {
|
|
48
58
|
id: string;
|
|
49
59
|
defaultMessage: string;
|
|
@@ -69,10 +69,6 @@ export declare const altPaste: Keymap;
|
|
|
69
69
|
export declare const find: Keymap;
|
|
70
70
|
export declare const alignLeft: Keymap;
|
|
71
71
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
72
|
-
export declare const increaseMediaSize: Keymap;
|
|
73
|
-
export declare const decreaseMediaSize: Keymap;
|
|
74
|
-
export declare const quickIncreaseMediaSize: Keymap;
|
|
75
|
-
export declare const quickDecreaseMediaSize: Keymap;
|
|
76
72
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
77
73
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
78
74
|
description?: string | React.ReactNode;
|
|
@@ -34,6 +34,11 @@ export declare const messages: {
|
|
|
34
34
|
defaultMessage: string;
|
|
35
35
|
description: string;
|
|
36
36
|
};
|
|
37
|
+
insertColumnDrag: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
37
42
|
removeColumns: {
|
|
38
43
|
id: string;
|
|
39
44
|
defaultMessage: string;
|
|
@@ -44,6 +49,11 @@ export declare const messages: {
|
|
|
44
49
|
defaultMessage: string;
|
|
45
50
|
description: string;
|
|
46
51
|
};
|
|
52
|
+
insertRowDrag: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
47
57
|
removeRows: {
|
|
48
58
|
id: string;
|
|
49
59
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.22.
|
|
3
|
+
"version": "76.22.3",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
104
104
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
105
105
|
"@atlaskit/emoji": "^67.6.0",
|
|
106
|
-
"@atlaskit/icon": "^
|
|
106
|
+
"@atlaskit/icon": "^22.0.0",
|
|
107
107
|
"@atlaskit/icon-object": "^6.3.0",
|
|
108
108
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
109
109
|
"@atlaskit/link-datasource": "^1.17.0",
|