@atlaskit/editor-common 76.22.2 → 76.22.4

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/keymaps/index.js +3 -7
  3. package/dist/cjs/media-inline/MediaInlineImageCard.js +76 -0
  4. package/dist/cjs/media-inline/index.js +19 -0
  5. package/dist/cjs/media-inline/shouldShowInlineImage.js +13 -0
  6. package/dist/cjs/messages/table.js +10 -0
  7. package/dist/cjs/monitoring/error.js +1 -1
  8. package/dist/cjs/styles/shared/smartCard.js +1 -1
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/keymaps/index.js +0 -4
  11. package/dist/es2019/media-inline/MediaInlineImageCard.js +63 -0
  12. package/dist/es2019/media-inline/index.js +2 -0
  13. package/dist/es2019/media-inline/shouldShowInlineImage.js +7 -0
  14. package/dist/es2019/messages/table.js +10 -0
  15. package/dist/es2019/monitoring/error.js +1 -1
  16. package/dist/es2019/styles/shared/smartCard.js +1 -1
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/esm/keymaps/index.js +0 -4
  19. package/dist/esm/media-inline/MediaInlineImageCard.js +69 -0
  20. package/dist/esm/media-inline/index.js +2 -0
  21. package/dist/esm/media-inline/shouldShowInlineImage.js +7 -0
  22. package/dist/esm/messages/table.js +10 -0
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/styles/shared/smartCard.js +1 -1
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/types/keymaps/index.d.ts +0 -4
  27. package/dist/types/media-inline/MediaInlineImageCard.d.ts +9 -0
  28. package/dist/types/media-inline/index.d.ts +2 -0
  29. package/dist/types/media-inline/shouldShowInlineImage.d.ts +1 -0
  30. package/dist/types/messages/table.d.ts +10 -0
  31. package/dist/types-ts4.5/keymaps/index.d.ts +0 -4
  32. package/dist/types-ts4.5/media-inline/MediaInlineImageCard.d.ts +9 -0
  33. package/dist/types-ts4.5/media-inline/index.d.ts +2 -0
  34. package/dist/types-ts4.5/media-inline/shouldShowInlineImage.d.ts +1 -0
  35. package/dist/types-ts4.5/messages/table.d.ts +10 -0
  36. package/media-inline/package.json +15 -0
  37. package/package.json +6 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.22.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43434](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43434) [`3164f6d83de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3164f6d83de) - ED-20979 and ED-20878 scaffolding for inline image component
8
+ - Updated dependencies
9
+
10
+ ## 76.22.3
11
+
12
+ ### Patch Changes
13
+
14
+ - [#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.
15
+ - [#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"
16
+ - [#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.
17
+
3
18
  ## 76.22.2
4
19
 
5
20
  ### 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.decreaseMediaSize = exports.cut = exports.ctrlBackSpace = exports.copy = exports.clearFormatting = void 0;
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 = exports.increaseMediaSize = void 0;
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.quickIncreaseMediaSize = exports.quickDecreaseMediaSize = 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;
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",
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.MediaInlineImageCard = void 0;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
+ var _react = require("react");
10
+ /** @jsx jsx */
11
+
12
+ var MediaInlineImageCard = exports.MediaInlineImageCard = function MediaInlineImageCard(_ref) {
13
+ var mediaClient = _ref.mediaClient,
14
+ identifier = _ref.identifier;
15
+ var _useState = (0, _react.useState)(),
16
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
17
+ fileState = _useState2[0],
18
+ setFileState = _useState2[1];
19
+ var _useState3 = (0, _react.useState)(),
20
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
21
+ subscribeError = _useState4[0],
22
+ setSubscribeError = _useState4[1];
23
+ (0, _react.useEffect)(function () {
24
+ var subscription = mediaClient.file.getFileState(identifier.id, {
25
+ collectionName: identifier.collectionName
26
+ }).subscribe({
27
+ next: function next(fileState) {
28
+ setFileState(fileState);
29
+ setSubscribeError(undefined);
30
+ },
31
+ error: function error(e) {
32
+ setSubscribeError(e);
33
+ }
34
+ });
35
+ return function () {
36
+ subscription.unsubscribe();
37
+ };
38
+ }, [identifier.collectionName, identifier.id, mediaClient.file]);
39
+ if (subscribeError) {
40
+ // TODO:
41
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
42
+ // for error message and analytics
43
+ throw new Error("not yet implemented: MediaInlineImageCard subscribe error view");
44
+ }
45
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
46
+ // TODO:
47
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
48
+ // for error message and analytics
49
+ throw new Error("not yet implemented: MediaInlineImageCard error view");
50
+ }
51
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
52
+ // TODO:
53
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
54
+ // for error message and analytics
55
+ throw new Error("not yet implemented: MediaInlineImageCard failed-processing view");
56
+ }
57
+ // Empty file handling
58
+ if (fileState && !fileState.name) {
59
+ // TODO:
60
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
61
+ // for error message and analytics
62
+ throw new Error("not yet implemented: MediaInlineImageCard empty file name error view");
63
+ }
64
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
65
+ throw new Error("not yet implemented: MediaInlineImageCard uploading view");
66
+ }
67
+ if (!fileState) {
68
+ throw new Error("not yet implemented: MediaInlineImageCard loading view");
69
+ }
70
+
71
+ // TODO
72
+ // use Card from `@atlaskit/media-card` with an inline block wrapper
73
+ // with:
74
+ // selection state and `mediaOptions.allowLazyLoading`
75
+ throw new Error("not yet implemented: MediaInlineImageCard loading view");
76
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "MediaInlineImageCard", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _MediaInlineImageCard.MediaInlineImageCard;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "shouldShowInlineImage", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _shouldShowInlineImage.shouldShowInlineImage;
16
+ }
17
+ });
18
+ var _MediaInlineImageCard = require("./MediaInlineImageCard");
19
+ var _shouldShowInlineImage = require("./shouldShowInlineImage");
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.shouldShowInlineImage = void 0;
7
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
+ var shouldShowInlineImage = exports.shouldShowInlineImage = function shouldShowInlineImage(mediaType) {
9
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.inline-image.base-support')) {
10
+ return mediaType === 'image';
11
+ }
12
+ return false;
13
+ };
@@ -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.2";
19
+ var packageVersion = "76.22.4";
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-100, 3px)", "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);
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.2";
27
+ var packageVersion = "76.22.4";
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',
@@ -0,0 +1,63 @@
1
+ /** @jsx jsx */
2
+
3
+ import { useEffect, useState } from 'react';
4
+ export const MediaInlineImageCard = ({
5
+ mediaClient,
6
+ identifier
7
+ }) => {
8
+ const [fileState, setFileState] = useState();
9
+ const [subscribeError, setSubscribeError] = useState();
10
+ useEffect(() => {
11
+ const subscription = mediaClient.file.getFileState(identifier.id, {
12
+ collectionName: identifier.collectionName
13
+ }).subscribe({
14
+ next: fileState => {
15
+ setFileState(fileState);
16
+ setSubscribeError(undefined);
17
+ },
18
+ error: e => {
19
+ setSubscribeError(e);
20
+ }
21
+ });
22
+ return () => {
23
+ subscription.unsubscribe();
24
+ };
25
+ }, [identifier.collectionName, identifier.id, mediaClient.file]);
26
+ if (subscribeError) {
27
+ // TODO:
28
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
29
+ // for error message and analytics
30
+ throw new Error(`not yet implemented: MediaInlineImageCard subscribe error view`);
31
+ }
32
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
33
+ // TODO:
34
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
35
+ // for error message and analytics
36
+ throw new Error(`not yet implemented: MediaInlineImageCard error view`);
37
+ }
38
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
39
+ // TODO:
40
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
41
+ // for error message and analytics
42
+ throw new Error(`not yet implemented: MediaInlineImageCard failed-processing view`);
43
+ }
44
+ // Empty file handling
45
+ if (fileState && !fileState.name) {
46
+ // TODO:
47
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
48
+ // for error message and analytics
49
+ throw new Error(`not yet implemented: MediaInlineImageCard empty file name error view`);
50
+ }
51
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
52
+ throw new Error(`not yet implemented: MediaInlineImageCard uploading view`);
53
+ }
54
+ if (!fileState) {
55
+ throw new Error(`not yet implemented: MediaInlineImageCard loading view`);
56
+ }
57
+
58
+ // TODO
59
+ // use Card from `@atlaskit/media-card` with an inline block wrapper
60
+ // with:
61
+ // selection state and `mediaOptions.allowLazyLoading`
62
+ throw new Error(`not yet implemented: MediaInlineImageCard loading view`);
63
+ };
@@ -0,0 +1,2 @@
1
+ export { MediaInlineImageCard } from './MediaInlineImageCard';
2
+ export { shouldShowInlineImage } from './shouldShowInlineImage';
@@ -0,0 +1,7 @@
1
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
+ export const shouldShowInlineImage = mediaType => {
3
+ if (getBooleanFF('platform.editor.media.inline-image.base-support')) {
4
+ return mediaType === 'image';
5
+ }
6
+ return false;
7
+ };
@@ -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.2";
3
+ const packageVersion = "76.22.4";
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-100, 3px)"};
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.2";
12
+ const packageVersion = "76.22.4";
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",
@@ -0,0 +1,69 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ /** @jsx jsx */
3
+
4
+ import { useEffect, useState } from 'react';
5
+ export var MediaInlineImageCard = function MediaInlineImageCard(_ref) {
6
+ var mediaClient = _ref.mediaClient,
7
+ identifier = _ref.identifier;
8
+ var _useState = useState(),
9
+ _useState2 = _slicedToArray(_useState, 2),
10
+ fileState = _useState2[0],
11
+ setFileState = _useState2[1];
12
+ var _useState3 = useState(),
13
+ _useState4 = _slicedToArray(_useState3, 2),
14
+ subscribeError = _useState4[0],
15
+ setSubscribeError = _useState4[1];
16
+ useEffect(function () {
17
+ var subscription = mediaClient.file.getFileState(identifier.id, {
18
+ collectionName: identifier.collectionName
19
+ }).subscribe({
20
+ next: function next(fileState) {
21
+ setFileState(fileState);
22
+ setSubscribeError(undefined);
23
+ },
24
+ error: function error(e) {
25
+ setSubscribeError(e);
26
+ }
27
+ });
28
+ return function () {
29
+ subscription.unsubscribe();
30
+ };
31
+ }, [identifier.collectionName, identifier.id, mediaClient.file]);
32
+ if (subscribeError) {
33
+ // TODO:
34
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
35
+ // for error message and analytics
36
+ throw new Error("not yet implemented: MediaInlineImageCard subscribe error view");
37
+ }
38
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'error') {
39
+ // TODO:
40
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
41
+ // for error message and analytics
42
+ throw new Error("not yet implemented: MediaInlineImageCard error view");
43
+ }
44
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'failed-processing') {
45
+ // TODO:
46
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
47
+ // for error message and analytics
48
+ throw new Error("not yet implemented: MediaInlineImageCard failed-processing view");
49
+ }
50
+ // Empty file handling
51
+ if (fileState && !fileState.name) {
52
+ // TODO:
53
+ // referring to packages/media/media-card/src/inline/mediaInlineCard.tsx
54
+ // for error message and analytics
55
+ throw new Error("not yet implemented: MediaInlineImageCard empty file name error view");
56
+ }
57
+ if ((fileState === null || fileState === void 0 ? void 0 : fileState.status) === 'uploading') {
58
+ throw new Error("not yet implemented: MediaInlineImageCard uploading view");
59
+ }
60
+ if (!fileState) {
61
+ throw new Error("not yet implemented: MediaInlineImageCard loading view");
62
+ }
63
+
64
+ // TODO
65
+ // use Card from `@atlaskit/media-card` with an inline block wrapper
66
+ // with:
67
+ // selection state and `mediaOptions.allowLazyLoading`
68
+ throw new Error("not yet implemented: MediaInlineImageCard loading view");
69
+ };
@@ -0,0 +1,2 @@
1
+ export { MediaInlineImageCard } from './MediaInlineImageCard';
2
+ export { shouldShowInlineImage } from './shouldShowInlineImage';
@@ -0,0 +1,7 @@
1
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
2
+ export var shouldShowInlineImage = function shouldShowInlineImage(mediaType) {
3
+ if (getBooleanFF('platform.editor.media.inline-image.base-support')) {
4
+ return mediaType === 'image';
5
+ }
6
+ return false;
7
+ };
@@ -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.2";
9
+ var packageVersion = "76.22.4";
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-100, 3px)", "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);
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.2";
22
+ var packageVersion = "76.22.4";
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;
@@ -0,0 +1,9 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
4
+ export interface MediaInlineImageCardProps {
5
+ identifier: FileIdentifier;
6
+ mediaClient: MediaClient;
7
+ isSelected?: boolean;
8
+ }
9
+ export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
@@ -0,0 +1,2 @@
1
+ export { MediaInlineImageCard } from './MediaInlineImageCard';
2
+ export { shouldShowInlineImage } from './shouldShowInlineImage';
@@ -0,0 +1 @@
1
+ export declare const shouldShowInlineImage: (mediaType: string) => boolean;
@@ -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;
@@ -0,0 +1,9 @@
1
+ /** @jsx jsx */
2
+ import type { FC } from 'react';
3
+ import type { FileIdentifier, MediaClient } from '@atlaskit/media-client';
4
+ export interface MediaInlineImageCardProps {
5
+ identifier: FileIdentifier;
6
+ mediaClient: MediaClient;
7
+ isSelected?: boolean;
8
+ }
9
+ export declare const MediaInlineImageCard: FC<MediaInlineImageCardProps>;
@@ -0,0 +1,2 @@
1
+ export { MediaInlineImageCard } from './MediaInlineImageCard';
2
+ export { shouldShowInlineImage } from './shouldShowInlineImage';
@@ -0,0 +1 @@
1
+ export declare const shouldShowInlineImage: (mediaType: string) => boolean;
@@ -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;
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/media-inline",
3
+ "main": "../dist/cjs/media-inline/index.js",
4
+ "module": "../dist/esm/media-inline/index.js",
5
+ "module:es2019": "../dist/es2019/media-inline/index.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/media-inline/index.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <4.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/media-inline/index.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.22.2",
3
+ "version": "76.22.4",
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/"
@@ -66,6 +66,7 @@
66
66
  "./selection": "./src/selection/index.ts",
67
67
  "./preset": "./src/preset/index.ts",
68
68
  "./hooks": "./src/hooks/index.ts",
69
+ "./media-inline": "./src/media-inline/index.ts",
69
70
  "./media-single": "./src/media-single/index.ts",
70
71
  "./monitoring": "./src/monitoring/index.ts",
71
72
  "./paste": "./src/paste/index.ts",
@@ -119,7 +120,7 @@
119
120
  "@atlaskit/smart-user-picker": "^6.3.0",
120
121
  "@atlaskit/spinner": "^16.0.0",
121
122
  "@atlaskit/task-decision": "^17.9.0",
122
- "@atlaskit/textfield": "^5.6.0",
123
+ "@atlaskit/textfield": "^6.0.0",
123
124
  "@atlaskit/theme": "^12.6.0",
124
125
  "@atlaskit/tokens": "^1.28.0",
125
126
  "@atlaskit/tooltip": "^18.0.0",
@@ -203,6 +204,9 @@
203
204
  "platform.editor.media.extended-resize-experience": {
204
205
  "type": "boolean"
205
206
  },
207
+ "platform.editor.media.inline-image.base-support": {
208
+ "type": "boolean"
209
+ },
206
210
  "platform.linking-platform.datasource-assets_objects": {
207
211
  "type": "boolean"
208
212
  },