@atlaskit/renderer 83.0.0 → 85.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -0
- package/dist/cjs/actions/index.js +3 -3
- package/dist/cjs/actions/matches-utils.js +1 -1
- package/dist/cjs/analytics/enums.js +2 -1
- package/dist/cjs/analytics/events.js +1 -1
- package/dist/cjs/analytics/unsupported-content.js +3 -3
- package/dist/cjs/i18n/index.js +26 -26
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/messages.js +4 -4
- package/dist/cjs/react/index.js +13 -9
- package/dist/cjs/react/marks/annotation.js +3 -3
- package/dist/cjs/react/marks/breakout.js +6 -4
- package/dist/cjs/react/marks/code.js +3 -3
- package/dist/cjs/react/marks/index.js +24 -24
- package/dist/cjs/react/marks/textColor.js +15 -4
- package/dist/cjs/react/nodes/blockCard.js +2 -2
- package/dist/cjs/react/nodes/caption.js +2 -2
- package/dist/cjs/react/nodes/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlockCopyButton.js +2 -2
- package/dist/cjs/react/nodes/copy-text-provider.js +1 -1
- package/dist/cjs/react/nodes/date.js +8 -6
- package/dist/cjs/react/nodes/doc.js +1 -1
- package/dist/cjs/react/nodes/embedCard.js +5 -5
- package/dist/cjs/react/nodes/emoji.js +2 -2
- package/dist/cjs/react/nodes/extension.js +7 -5
- package/dist/cjs/react/nodes/heading-anchor.js +5 -3
- package/dist/cjs/react/nodes/index.js +92 -58
- package/dist/cjs/react/nodes/inlineCard.js +2 -2
- package/dist/cjs/react/nodes/layoutColumn.js +2 -2
- package/dist/cjs/react/nodes/media.js +5 -3
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +2 -2
- package/dist/cjs/react/nodes/mediaSingle/index.js +6 -6
- package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
- package/dist/cjs/react/nodes/mention.js +2 -2
- package/dist/cjs/react/nodes/panel.js +18 -20
- package/dist/cjs/react/nodes/table/colgroup.js +3 -3
- package/dist/cjs/react/nodes/table/sticky.js +5 -5
- package/dist/cjs/react/nodes/table.js +19 -13
- package/dist/cjs/react/nodes/tableCell.js +16 -14
- package/dist/cjs/react/nodes/tableRow.js +6 -4
- package/dist/cjs/react/nodes/task-item-with-providers.js +3 -1
- package/dist/cjs/react/nodes/taskItem.js +3 -3
- package/dist/cjs/react/renderer-node.js +1 -1
- package/dist/cjs/react/utils/links.js +1 -1
- package/dist/cjs/render-document.js +24 -4
- package/dist/cjs/renderer-context.js +1 -1
- package/dist/cjs/steps/index.js +2 -2
- package/dist/cjs/text/nodes/date.js +3 -3
- package/dist/cjs/text/nodes/index.js +1 -1
- package/dist/cjs/ui/Expand.js +11 -11
- package/dist/cjs/ui/ExtensionRenderer.js +8 -4
- package/dist/cjs/ui/MediaCard.js +5 -5
- package/dist/cjs/ui/Renderer/breakout-ssr.js +4 -4
- package/dist/cjs/ui/Renderer/index.js +27 -23
- package/dist/cjs/ui/Renderer/style.js +9 -7
- package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
- package/dist/cjs/ui/SortingIcon.js +9 -9
- package/dist/cjs/ui/active-header-id-provider.js +1 -1
- package/dist/cjs/ui/annotations/context.js +1 -1
- package/dist/cjs/ui/annotations/draft/component.js +3 -3
- package/dist/cjs/ui/annotations/draft/index.js +4 -4
- package/dist/cjs/ui/annotations/draft/text.js +1 -1
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/element/mark.js +4 -4
- package/dist/cjs/ui/annotations/hooks/index.js +8 -8
- package/dist/cjs/ui/annotations/hooks/use-events.js +12 -12
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
- package/dist/cjs/ui/annotations/index.js +5 -5
- package/dist/cjs/utils.js +6 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/analytics/unsupported-content.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/react/index.js +2 -1
- package/dist/es2019/react/marks/breakout.js +2 -1
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/textColor.js +7 -4
- package/dist/es2019/react/nodes/blockCard.js +1 -1
- package/dist/es2019/react/nodes/caption.js +1 -1
- package/dist/es2019/react/nodes/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/date.js +3 -2
- package/dist/es2019/react/nodes/embedCard.js +1 -1
- package/dist/es2019/react/nodes/emoji.js +1 -1
- package/dist/es2019/react/nodes/extension.js +2 -1
- package/dist/es2019/react/nodes/heading-anchor.js +1 -1
- package/dist/es2019/react/nodes/index.js +32 -7
- package/dist/es2019/react/nodes/inlineCard.js +1 -1
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media.js +2 -1
- package/dist/es2019/react/nodes/mediaInline.js +1 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +2 -2
- package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/es2019/react/nodes/mention.js +1 -1
- package/dist/es2019/react/nodes/panel.js +14 -12
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/react/nodes/table.js +4 -1
- package/dist/es2019/react/nodes/tableCell.js +2 -1
- package/dist/es2019/react/nodes/tableRow.js +2 -1
- package/dist/es2019/react/nodes/taskItem.js +1 -1
- package/dist/es2019/render-document.js +20 -2
- package/dist/es2019/text/nodes/date.js +1 -1
- package/dist/es2019/ui/Expand.js +2 -2
- package/dist/es2019/ui/ExtensionRenderer.js +3 -1
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +8 -6
- package/dist/es2019/ui/Renderer/style.js +3 -1
- package/dist/es2019/ui/SortingIcon.js +2 -2
- package/dist/es2019/ui/annotations/draft/component.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/analytics/unsupported-content.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/react/index.js +6 -4
- package/dist/esm/react/marks/annotation.js +2 -2
- package/dist/esm/react/marks/breakout.js +2 -1
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/textColor.js +8 -4
- package/dist/esm/react/nodes/blockCard.js +1 -1
- package/dist/esm/react/nodes/caption.js +1 -1
- package/dist/esm/react/nodes/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/date.js +3 -2
- package/dist/esm/react/nodes/embedCard.js +1 -1
- package/dist/esm/react/nodes/emoji.js +1 -1
- package/dist/esm/react/nodes/extension.js +2 -1
- package/dist/esm/react/nodes/heading-anchor.js +4 -2
- package/dist/esm/react/nodes/index.js +62 -7
- package/dist/esm/react/nodes/inlineCard.js +1 -1
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media.js +2 -1
- package/dist/esm/react/nodes/mediaGroup.js +2 -2
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +2 -2
- package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/esm/react/nodes/mention.js +1 -1
- package/dist/esm/react/nodes/panel.js +14 -12
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table.js +4 -1
- package/dist/esm/react/nodes/tableCell.js +2 -1
- package/dist/esm/react/nodes/tableRow.js +2 -1
- package/dist/esm/react/nodes/task-item-with-providers.js +2 -1
- package/dist/esm/react/nodes/taskItem.js +1 -1
- package/dist/esm/render-document.js +20 -2
- package/dist/esm/text/nodes/date.js +1 -1
- package/dist/esm/ui/Expand.js +2 -2
- package/dist/esm/ui/ExtensionRenderer.js +3 -1
- package/dist/esm/ui/MediaCard.js +3 -3
- package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/esm/ui/Renderer/index.js +10 -8
- package/dist/esm/ui/Renderer/style.js +4 -3
- package/dist/esm/ui/SortingIcon.js +2 -2
- package/dist/esm/ui/annotations/draft/component.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
- package/dist/esm/utils.js +3 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/analytics/enums.d.ts +1 -0
- package/dist/types/analytics/events.d.ts +8 -2
- package/dist/types/analytics/unsupported-content.d.ts +1 -1
- package/dist/types/react/index.d.ts +4 -1
- package/dist/types/react/marks/alignment.d.ts +1 -0
- package/dist/types/react/marks/annotation.d.ts +1 -0
- package/dist/types/react/marks/code.d.ts +6 -6
- package/dist/types/react/marks/data-consumer.d.ts +1 -0
- package/dist/types/react/marks/em.d.ts +1 -0
- package/dist/types/react/marks/fragment.d.ts +1 -0
- package/dist/types/react/marks/indentation.d.ts +1 -0
- package/dist/types/react/marks/link.d.ts +1 -0
- package/dist/types/react/marks/strike.d.ts +1 -0
- package/dist/types/react/marks/strong.d.ts +1 -0
- package/dist/types/react/marks/subsup.d.ts +1 -0
- package/dist/types/react/marks/textColor.d.ts +1 -0
- package/dist/types/react/marks/underline.d.ts +1 -0
- package/dist/types/react/marks/unsupportedMark.d.ts +1 -0
- package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types/react/nodes/blockCard.d.ts +2 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
- package/dist/types/react/nodes/caption.d.ts +1 -0
- package/dist/types/react/nodes/codeBlock.d.ts +11 -3
- package/dist/types/react/nodes/codeBlockCopyButton.d.ts +3 -3
- package/dist/types/react/nodes/date.d.ts +3 -3
- package/dist/types/react/nodes/decisionItem.d.ts +1 -0
- package/dist/types/react/nodes/doc.d.ts +1 -0
- package/dist/types/react/nodes/embedCard.d.ts +2 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +14 -13
- package/dist/types/react/nodes/heading-anchor.d.ts +4 -4
- package/dist/types/react/nodes/heading.d.ts +1 -0
- package/dist/types/react/nodes/index.d.ts +41 -17
- package/dist/types/react/nodes/inlineCard.d.ts +21 -21
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
- package/dist/types/react/nodes/media.d.ts +2 -2
- package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +1 -1
- package/dist/types/react/nodes/mediaSingle/index.d.ts +4 -4
- package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
- package/dist/types/react/nodes/mention.d.ts +2 -1
- package/dist/types/react/nodes/panel.d.ts +3 -1
- package/dist/types/react/nodes/paragraph.d.ts +1 -0
- package/dist/types/react/nodes/placeholder.d.ts +1 -0
- package/dist/types/react/nodes/rule.d.ts +1 -0
- package/dist/types/react/nodes/table/colgroup.d.ts +1 -0
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +22 -21
- package/dist/types/react/nodes/tableCell.d.ts +1 -1
- package/dist/types/react/nodes/tableRow.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -0
- package/dist/types/react/types.d.ts +3 -1
- package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
- package/dist/types/render-document.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +3 -3
- package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
- package/dist/types/ui/MediaCard.d.ts +3 -2
- package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -0
- package/dist/types/ui/SortingIcon.d.ts +2 -1
- package/dist/types/ui/annotations/context.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +6 -1
- package/dist/types/utils.d.ts +3 -1
- package/package.json +20 -20
|
@@ -17,7 +17,7 @@ var _hooks = require("../hooks");
|
|
|
17
17
|
|
|
18
18
|
var _context = require("../context");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _types = require("@atlaskit/editor-common/types");
|
|
21
21
|
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
23
|
|
|
@@ -44,7 +44,7 @@ var MarkElement = function MarkElement(_ref) {
|
|
|
44
44
|
|
|
45
45
|
var eventTarget = props.eventTarget,
|
|
46
46
|
annotationIds = props.annotationIds;
|
|
47
|
-
updateSubscriber.emit(
|
|
47
|
+
updateSubscriber.emit(_types.AnnotationUpdateEvent.ON_ANNOTATION_CLICK, {
|
|
48
48
|
annotationIds: annotationIds,
|
|
49
49
|
eventTarget: eventTarget
|
|
50
50
|
});
|
|
@@ -19,7 +19,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
19
19
|
|
|
20
20
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _styles = require("@atlaskit/editor-common/styles");
|
|
23
23
|
|
|
24
24
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
25
25
|
|
|
@@ -31,11 +31,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
34
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
35
|
|
|
36
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
36
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
37
37
|
|
|
38
|
-
var MarkStyled = _styledComponents.default.mark(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), _adfSchema.AnnotationMarkStates.ACTIVE,
|
|
38
|
+
var MarkStyled = _styledComponents.default.mark(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: inherit;\n background-color: unset;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\n &[data-mark-annotation-state='", "'] {\n ", ";\n\n &:focus,\n &[data-has-focus='true'] {\n ", ";\n }\n }\n"])), _adfSchema.AnnotationMarkStates.ACTIVE, _styles.AnnotationSharedCSSByState.blur, _styles.AnnotationSharedCSSByState.focus);
|
|
39
39
|
|
|
40
40
|
var MarkComponent = function MarkComponent(_ref) {
|
|
41
41
|
var annotationParentIds = _ref.annotationParentIds,
|
|
@@ -3,22 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "useHasFocusEvent", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _useEvents.useHasFocusEvent;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "useAnnotationClickEvent", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
15
9
|
return _useEvents.useAnnotationClickEvent;
|
|
16
10
|
}
|
|
17
11
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "useHasFocusEvent", {
|
|
19
13
|
enumerable: true,
|
|
20
14
|
get: function get() {
|
|
21
|
-
return
|
|
15
|
+
return _useEvents.useHasFocusEvent;
|
|
22
16
|
}
|
|
23
17
|
});
|
|
24
18
|
Object.defineProperty(exports, "useInlineCommentSubscriberContext", {
|
|
@@ -27,6 +21,12 @@ Object.defineProperty(exports, "useInlineCommentSubscriberContext", {
|
|
|
27
21
|
return _useInlineCommentSubscriber.useInlineCommentSubscriberContext;
|
|
28
22
|
}
|
|
29
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "useInlineCommentsFilter", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _useInlineCommentsFilter.useInlineCommentsFilter;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
30
|
|
|
31
31
|
var _useEvents = require("./use-events");
|
|
32
32
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.useHasFocusEvent = exports.useAnnotationStateByTypeEvent = exports.useAnnotationClickEvent = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _types = require("@atlaskit/editor-common/types");
|
|
17
17
|
|
|
18
18
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
19
19
|
|
|
@@ -21,9 +21,9 @@ var _enums = require("../../../analytics/enums");
|
|
|
21
21
|
|
|
22
22
|
var _analyticsListeners = require("@atlaskit/analytics-listeners");
|
|
23
23
|
|
|
24
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
25
|
|
|
26
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
27
|
|
|
28
28
|
var useAnnotationStateByTypeEvent = function useAnnotationStateByTypeEvent(_ref) {
|
|
29
29
|
var type = _ref.type,
|
|
@@ -56,9 +56,9 @@ var useAnnotationStateByTypeEvent = function useAnnotationStateByTypeEvent(_ref)
|
|
|
56
56
|
setStates(_objectSpread(_objectSpread({}, states), nextStates));
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
updateSubscriber.on(
|
|
59
|
+
updateSubscriber.on(_types.AnnotationUpdateEvent.SET_ANNOTATION_STATE, cb);
|
|
60
60
|
return function () {
|
|
61
|
-
updateSubscriber.off(
|
|
61
|
+
updateSubscriber.off(_types.AnnotationUpdateEvent.SET_ANNOTATION_STATE, cb);
|
|
62
62
|
};
|
|
63
63
|
}, [states, type, updateSubscriber]);
|
|
64
64
|
return states;
|
|
@@ -88,11 +88,11 @@ var useHasFocusEvent = function useHasFocusEvent(_ref2) {
|
|
|
88
88
|
setHasFocus(false);
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
updateSubscriber.on(
|
|
92
|
-
updateSubscriber.on(
|
|
91
|
+
updateSubscriber.on(_types.AnnotationUpdateEvent.SET_ANNOTATION_FOCUS, cb);
|
|
92
|
+
updateSubscriber.on(_types.AnnotationUpdateEvent.REMOVE_ANNOTATION_FOCUS, removeFocus);
|
|
93
93
|
return function () {
|
|
94
|
-
updateSubscriber.off(
|
|
95
|
-
updateSubscriber.off(
|
|
94
|
+
updateSubscriber.off(_types.AnnotationUpdateEvent.SET_ANNOTATION_FOCUS, cb);
|
|
95
|
+
updateSubscriber.off(_types.AnnotationUpdateEvent.REMOVE_ANNOTATION_FOCUS, removeFocus);
|
|
96
96
|
};
|
|
97
97
|
}, [id, updateSubscriber]);
|
|
98
98
|
return hasFocus;
|
|
@@ -141,9 +141,9 @@ var useAnnotationClickEvent = function useAnnotationClickEvent(props) {
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
updateSubscriber.on(
|
|
144
|
+
updateSubscriber.on(_types.AnnotationUpdateEvent.ON_ANNOTATION_CLICK, cb);
|
|
145
145
|
return function () {
|
|
146
|
-
updateSubscriber.off(
|
|
146
|
+
updateSubscriber.off(_types.AnnotationUpdateEvent.ON_ANNOTATION_CLICK, cb);
|
|
147
147
|
};
|
|
148
148
|
}, [updateSubscriber, createAnalyticsEvent]);
|
|
149
149
|
return annotationClickEvent;
|
|
@@ -11,15 +11,15 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _types = require("@atlaskit/editor-common/types");
|
|
15
15
|
|
|
16
16
|
var _context = require("../context");
|
|
17
17
|
|
|
18
18
|
var _RendererActionsContext = require("../../RendererActionsContext");
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
23
|
|
|
24
24
|
var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
|
25
25
|
var adfDocument = _ref.adfDocument;
|
|
@@ -51,7 +51,7 @@ var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
|
|
51
51
|
var payload = data.reduce(function (acc, value) {
|
|
52
52
|
return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, value.id, value));
|
|
53
53
|
}, {});
|
|
54
|
-
updateSubscriberInlineComment.emit(
|
|
54
|
+
updateSubscriberInlineComment.emit(_types.AnnotationUpdateEvent.SET_ANNOTATION_STATE, payload);
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
inlineCommentGetState(ids).then(cb);
|
|
@@ -5,19 +5,19 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "AnnotationMark", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _element.MarkElement;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
exports.AnnotationsWrapper = void 0;
|
|
15
|
+
Object.defineProperty(exports, "TextWithAnnotationDraft", {
|
|
15
16
|
enumerable: true,
|
|
16
17
|
get: function get() {
|
|
17
|
-
return
|
|
18
|
+
return _draft.TextWithAnnotationDraft;
|
|
18
19
|
}
|
|
19
20
|
});
|
|
20
|
-
exports.AnnotationsWrapper = void 0;
|
|
21
21
|
|
|
22
22
|
var _react = _interopRequireDefault(require("react"));
|
|
23
23
|
|
package/dist/cjs/utils.js
CHANGED
|
@@ -5,9 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.ADFEncoder = void 0;
|
|
8
9
|
exports.findHorizontalOverflowScrollParent = findHorizontalOverflowScrollParent;
|
|
9
10
|
exports.findInTree = findInTree;
|
|
10
|
-
exports.
|
|
11
|
+
exports.getText = exports.getPlatform = exports.getEventHandler = void 0;
|
|
12
|
+
|
|
13
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
14
|
|
|
12
15
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
16
|
|
|
@@ -21,12 +24,11 @@ function createEncoder(parser, encoder) {
|
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
var ADFEncoder = function ADFEncoder(createTransformerWithSchema) {
|
|
27
|
+
var ADFEncoder = /*#__PURE__*/(0, _createClass2.default)(function ADFEncoder(createTransformerWithSchema) {
|
|
25
28
|
(0, _classCallCheck2.default)(this, ADFEncoder);
|
|
26
29
|
var transformer = createTransformerWithSchema(_adfSchema.defaultSchema);
|
|
27
30
|
this.encode = createEncoder(transformer, new _editorJsonTransformer.JSONTransformer());
|
|
28
|
-
};
|
|
29
|
-
|
|
31
|
+
});
|
|
30
32
|
exports.ADFEncoder = ADFEncoder;
|
|
31
33
|
|
|
32
34
|
var getText = function getText(node) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange } from '@atlaskit/editor-common';
|
|
3
|
+
import { canApplyAnnotationOnRange, getAnnotationIdsFromRange } from '@atlaskit/editor-common/utils';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
5
|
import { RemoveMarkStep } from 'prosemirror-transform';
|
|
6
6
|
import { createAnnotationStep, getPosFromRange } from '../steps';
|
|
@@ -13,6 +13,7 @@ export let ACTION;
|
|
|
13
13
|
ACTION["STARTED"] = "started";
|
|
14
14
|
ACTION["RENDERED"] = "rendered";
|
|
15
15
|
ACTION["CRASHED"] = "unhandledErrorCaught";
|
|
16
|
+
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
16
17
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
17
18
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
18
19
|
ACTION["CLICKED"] = "clicked";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getUnsupportedContentLevelData, getAnalyticsAppearance } from '@atlaskit/editor-common';
|
|
1
|
+
import { getUnsupportedContentLevelData, getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from './enums';
|
|
3
3
|
import { PLATFORM } from './events';
|
|
4
4
|
let rendersMap = {};
|
package/dist/es2019/messages.js
CHANGED
|
@@ -6,7 +6,8 @@ import { isNestedHeaderLinksEnabled } from './utils/links';
|
|
|
6
6
|
import { Doc, DocWithSelectAllTrap, mergeTextNodes, isTextWrapper, isTextNode, toReact } from './nodes';
|
|
7
7
|
import TextWrapperComponent from './nodes/text-wrapper';
|
|
8
8
|
import { toReact as markToReact, isAnnotationMark } from './marks';
|
|
9
|
-
import { getMarksByOrder, isSameMark
|
|
9
|
+
import { getMarksByOrder, isSameMark } from '@atlaskit/editor-common/validator';
|
|
10
|
+
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
10
11
|
import { getText } from '../utils';
|
|
11
12
|
import { findChildrenByType } from 'prosemirror-utils';
|
|
12
13
|
import { insideBreakoutLayout } from './renderer-node';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
3
|
+
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
4
5
|
import { blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
5
6
|
export const Wrapper = styled.div`
|
|
6
7
|
margin: ${blockNodesVerticalMargin} 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { injectIntl } from 'react-intl';
|
|
3
|
+
import { injectIntl } from 'react-intl-next';
|
|
4
4
|
import AkCode from '@atlaskit/code/inline';
|
|
5
5
|
import { codeBidiWarningMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { useFeatureFlags } from '../../use-feature-flags';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
3
|
export default function TextColor(props) {
|
|
4
|
+
const style = useMemo(() => ({
|
|
5
|
+
['--custom-text-color']: props.color
|
|
6
|
+
}), [props.color]);
|
|
4
7
|
return /*#__PURE__*/React.createElement("span", _extends({}, props.dataAttributes, {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
"data-text-custom-color": props.color,
|
|
9
|
+
className: "fabric-text-color-mark",
|
|
10
|
+
style: style
|
|
8
11
|
}), props.children);
|
|
9
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { Card } from '@atlaskit/smart-card';
|
|
4
|
-
import { UnsupportedBlock } from '@atlaskit/editor-common';
|
|
4
|
+
import { UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { getPlatform } from '../../utils';
|
|
6
6
|
import { CardErrorBoundary } from './fallback';
|
|
7
7
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl';
|
|
2
|
+
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { CodeBlock as AkCodeBlock } from '@atlaskit/code';
|
|
5
5
|
import { overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl';
|
|
2
|
+
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
4
|
+
import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { injectIntl } from 'react-intl-next';
|
|
5
6
|
|
|
6
7
|
class Date extends PureComponent {
|
|
7
8
|
render() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo, useContext, useState, useRef } from 'react';
|
|
3
3
|
import { Card, Context as CardContext, EmbedResizeMessageListener } from '@atlaskit/smart-card';
|
|
4
|
-
import { WidthConsumer, mapBreakpointToLayoutMaxWidth, UnsupportedBlock, MediaSingle as UIMediaSingle } from '@atlaskit/editor-common';
|
|
4
|
+
import { WidthConsumer, mapBreakpointToLayoutMaxWidth, UnsupportedBlock, MediaSingle as UIMediaSingle } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH, getAkEditorFullPageMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { getPlatform } from '../../utils';
|
|
7
7
|
import { CardErrorBoundary } from './fallback';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ExtensionRenderer from '../../ui/ExtensionRenderer';
|
|
4
|
-
import {
|
|
4
|
+
import { overflowShadow, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
5
|
+
import { calcBreakoutWidth } from '@atlaskit/editor-common/utils';
|
|
5
6
|
import { RendererCssClassName } from '../../consts';
|
|
6
7
|
export const renderExtension = (content, layout, options = {}, removeOverflow) => {
|
|
7
8
|
const overflowContainerClass = !removeOverflow ? RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER : ''; // by default, we assume the extension is at top level, (direct child of doc node)
|
|
@@ -5,7 +5,7 @@ import styled from 'styled-components';
|
|
|
5
5
|
import { N200, N500, B400 } from '@atlaskit/theme/colors';
|
|
6
6
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
7
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
-
import { injectIntl } from 'react-intl';
|
|
8
|
+
import { injectIntl } from 'react-intl-next';
|
|
9
9
|
import { headingAnchorLinkMessages } from '../../messages';
|
|
10
10
|
export const HeadingAnchorWrapperClassName = 'heading-anchor-wrapper';
|
|
11
11
|
const CopyAnchorWrapperWithRef = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import Loadable from 'react-loadable';
|
|
1
2
|
import Blockquote from './blockquote';
|
|
2
3
|
import BodiedExtension from './bodiedExtension';
|
|
3
4
|
import BulletList from './bulletList';
|
|
4
|
-
import DecisionList from './decisionList';
|
|
5
5
|
import Doc, { DocWithSelectAllTrap } from './doc';
|
|
6
6
|
import Extension from './extension';
|
|
7
7
|
import HardBreak from './hardBreak';
|
|
@@ -10,33 +10,40 @@ import InlineExtension from './inlineExtension';
|
|
|
10
10
|
import LayoutSection from './layoutSection';
|
|
11
11
|
import LayoutColumn from './layoutColumn';
|
|
12
12
|
import ListItem from './listItem';
|
|
13
|
-
import MediaSingle from './mediaSingle';
|
|
14
13
|
import Caption from './caption';
|
|
15
14
|
import OrderedList from './orderedList';
|
|
16
|
-
import Panel from './panel';
|
|
17
15
|
import Paragraph from './paragraph';
|
|
18
16
|
import Placeholder from './placeholder';
|
|
19
17
|
import Rule from './rule';
|
|
20
|
-
import TaskList from './taskList';
|
|
21
18
|
import Table from './table';
|
|
22
19
|
import { TableCell, TableHeader } from './tableCell';
|
|
23
20
|
import TableRow from './tableRow';
|
|
24
21
|
import UnknownBlock from './unknownBlock';
|
|
25
|
-
import
|
|
26
|
-
import EmbedCard from './embedCard';
|
|
27
|
-
import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common';
|
|
22
|
+
import { UnsupportedBlock, UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
28
23
|
const CodeBlock = Loadable({
|
|
29
24
|
loader: () => import(
|
|
30
25
|
/* webpackChunkName: "@atlaskit-internal_renderer-node_CodeBlock" */
|
|
31
26
|
'./codeBlock').then(mod => mod.default),
|
|
32
27
|
loading: () => null
|
|
33
28
|
});
|
|
29
|
+
const TaskList = Loadable({
|
|
30
|
+
loader: () => import(
|
|
31
|
+
/* webpackChunkName: "@atlaskit-internal_renderer-node_TaskList" */
|
|
32
|
+
'./taskList').then(mod => mod.default),
|
|
33
|
+
loading: () => null
|
|
34
|
+
});
|
|
34
35
|
const TaskItem = Loadable({
|
|
35
36
|
loader: () => import(
|
|
36
37
|
/* webpackChunkName: "@atlaskit-internal_renderer-node_TaskItem" */
|
|
37
38
|
'./taskItem').then(mod => mod.default),
|
|
38
39
|
loading: () => null
|
|
39
40
|
});
|
|
41
|
+
const DecisionList = Loadable({
|
|
42
|
+
loader: () => import(
|
|
43
|
+
/* webpackChunkName: "@atlaskit-internal_renderer-node_DecisionList" */
|
|
44
|
+
'./decisionList').then(mod => mod.default),
|
|
45
|
+
loading: () => null
|
|
46
|
+
});
|
|
40
47
|
const DecisionItem = Loadable({
|
|
41
48
|
loader: () => import(
|
|
42
49
|
/* webpackChunkName: "@atlaskit-internal_renderer-node_DecisionItem" */
|
|
@@ -61,6 +68,18 @@ const Emoji = Loadable({
|
|
|
61
68
|
'./emoji').then(mod => mod.default),
|
|
62
69
|
loading: () => null
|
|
63
70
|
});
|
|
71
|
+
const Panel = Loadable({
|
|
72
|
+
loader: () => import(
|
|
73
|
+
/* webpackChunkName: "@atlaskit-internal_renderer-node_Panel" */
|
|
74
|
+
'./panel').then(mod => mod.default),
|
|
75
|
+
loading: () => null
|
|
76
|
+
});
|
|
77
|
+
const EmbedCard = Loadable({
|
|
78
|
+
loader: () => import(
|
|
79
|
+
/* webpackChunkName: "@atlaskit-internal_renderer-node_EmbedCard" */
|
|
80
|
+
'./embedCard').then(mod => mod.default),
|
|
81
|
+
loading: () => null
|
|
82
|
+
});
|
|
64
83
|
const InlineCard = Loadable({
|
|
65
84
|
loader: () => import(
|
|
66
85
|
/* webpackChunkName: "@atlaskit-internal_renderer-node_InlineCard" */
|
|
@@ -91,6 +110,12 @@ const MediaInline = Loadable({
|
|
|
91
110
|
'./mediaInline').then(mod => mod.default),
|
|
92
111
|
loading: () => null
|
|
93
112
|
});
|
|
113
|
+
const MediaSingle = Loadable({
|
|
114
|
+
loader: () => import(
|
|
115
|
+
/* webpackChunkName: "@atlaskit-internal_renderer-node_MediaSingle" */
|
|
116
|
+
'./mediaSingle').then(mod => mod.default),
|
|
117
|
+
loading: () => null
|
|
118
|
+
});
|
|
94
119
|
const Mention = Loadable({
|
|
95
120
|
loader: () => import(
|
|
96
121
|
/* webpackChunkName: "@atlaskit-internal_renderer-node_Mention" */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Card } from '@atlaskit/smart-card';
|
|
4
|
-
import { UnsupportedInline } from '@atlaskit/editor-common';
|
|
4
|
+
import { UnsupportedInline } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { CardErrorBoundary } from './fallback';
|
|
6
6
|
import { withSmartCardStorage } from '../../ui/SmartCardStorage';
|
|
7
7
|
import { getCardClickHandler } from '../utils/getCardClickHandler';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidthProvider, ClearNextSiblingMarginTop } from '@atlaskit/editor-common';
|
|
2
|
+
import { WidthProvider, ClearNextSiblingMarginTop } from '@atlaskit/editor-common/ui';
|
|
3
3
|
export default function LayoutSection(props) {
|
|
4
4
|
return /*#__PURE__*/React.createElement("div", {
|
|
5
5
|
"data-layout-column": true,
|
|
@@ -2,7 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
-
import { WithProviders
|
|
5
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import { MediaLink } from '@atlaskit/editor-common/ui';
|
|
6
7
|
import { MediaCard } from '../../ui/MediaCard';
|
|
7
8
|
import { getEventHandler } from '../../utils';
|
|
8
9
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../analytics/enums';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { MediaInlineCard } from '@atlaskit/media-card';
|
|
3
|
-
import { WithProviders } from '@atlaskit/editor-common';
|
|
3
|
+
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
export const RenderMediaInline = props => {
|
|
5
5
|
const {
|
|
6
6
|
mediaProvider
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { mapBreakpointToLayoutMaxWidth, WidthConsumer } from '@atlaskit/editor-common';
|
|
2
|
+
import { mapBreakpointToLayoutMaxWidth, WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
3
3
|
import { akEditorFullWidthLayoutWidth, getAkEditorFullPageMaxWidth, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { Component, default as React } from 'react';
|
|
5
|
-
import { injectIntl } from 'react-intl';
|
|
5
|
+
import { injectIntl } from 'react-intl-next';
|
|
6
6
|
import { FullPagePadding } from '../../../ui/Renderer/style';
|
|
7
7
|
import { ExtendedUIMediaSingle } from './styles';
|
|
8
8
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|