@atlaskit/renderer 112.7.1 → 112.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/actions/index.js +1 -2
- package/dist/cjs/consts.js +3 -0
- package/dist/cjs/messages.js +3 -0
- package/dist/cjs/react/index.js +1 -2
- package/dist/cjs/react/marks/confluence-inline-comment.js +5 -7
- package/dist/cjs/react/nodes/TableStickyScrollbar.js +1 -2
- package/dist/cjs/react/nodes/decisionList.js +5 -7
- package/dist/cjs/react/nodes/emoji.js +6 -9
- package/dist/cjs/react/nodes/fallback.js +7 -10
- package/dist/cjs/react/nodes/heading-anchor.js +11 -14
- package/dist/cjs/react/nodes/media/index.js +8 -11
- package/dist/cjs/react/nodes/mediaGroup.js +9 -12
- package/dist/cjs/react/nodes/table/sticky.js +7 -9
- package/dist/cjs/react/nodes/table.js +27 -32
- package/dist/cjs/react/nodes/tableRow.js +8 -11
- package/dist/cjs/react/nodes/taskItem.js +6 -9
- package/dist/cjs/react/nodes/taskList.js +5 -7
- package/dist/cjs/react/utils/element-selection.js +1 -2
- package/dist/cjs/react/utils/use-select-all-trap.js +1 -2
- package/dist/cjs/render-document.js +3 -0
- package/dist/cjs/renderer-context.js +3 -0
- package/dist/cjs/text/index.js +1 -2
- package/dist/cjs/ui/Expand.js +1 -1
- package/dist/cjs/ui/MediaCard.js +9 -12
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +6 -9
- package/dist/cjs/ui/Renderer/index.js +12 -15
- package/dist/cjs/ui/Renderer/style.js +2 -2
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +5 -7
- package/dist/cjs/ui/SmartCardStorage.js +5 -7
- package/dist/cjs/ui/annotations/context.js +8 -11
- package/dist/cjs/ui/annotations/draft/dom.js +1 -2
- package/dist/cjs/use-feature-flags.js +3 -0
- package/dist/cjs/utils.js +3 -0
- package/dist/es2019/actions.js +3 -0
- package/dist/es2019/consts.js +3 -0
- package/dist/es2019/index.js +3 -0
- package/dist/es2019/messages.js +3 -0
- package/dist/es2019/react/utils/use-select-all-trap.js +1 -2
- package/dist/es2019/render-document.js +3 -0
- package/dist/es2019/renderer-context.js +3 -0
- package/dist/es2019/text-serializer.js +3 -0
- package/dist/es2019/ui/Expand.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +2 -2
- package/dist/es2019/use-feature-flags.js +3 -0
- package/dist/es2019/utils.js +3 -0
- package/dist/esm/actions/index.js +1 -2
- package/dist/esm/actions.js +3 -0
- package/dist/esm/consts.js +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/messages.js +3 -0
- package/dist/esm/react/index.js +1 -2
- package/dist/esm/react/marks/confluence-inline-comment.js +5 -7
- package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -2
- package/dist/esm/react/nodes/decisionList.js +5 -7
- package/dist/esm/react/nodes/emoji.js +6 -9
- package/dist/esm/react/nodes/fallback.js +7 -10
- package/dist/esm/react/nodes/heading-anchor.js +11 -14
- package/dist/esm/react/nodes/media/index.js +8 -11
- package/dist/esm/react/nodes/mediaGroup.js +9 -12
- package/dist/esm/react/nodes/table/sticky.js +7 -9
- package/dist/esm/react/nodes/table.js +27 -32
- package/dist/esm/react/nodes/tableRow.js +8 -11
- package/dist/esm/react/nodes/taskItem.js +6 -9
- package/dist/esm/react/nodes/taskList.js +5 -7
- package/dist/esm/react/utils/element-selection.js +1 -2
- package/dist/esm/react/utils/use-select-all-trap.js +1 -2
- package/dist/esm/render-document.js +3 -0
- package/dist/esm/renderer-context.js +3 -0
- package/dist/esm/text/index.js +1 -2
- package/dist/esm/text-serializer.js +3 -0
- package/dist/esm/ui/Expand.js +1 -1
- package/dist/esm/ui/MediaCard.js +9 -12
- package/dist/esm/ui/Renderer/ErrorBoundary.js +6 -9
- package/dist/esm/ui/Renderer/index.js +12 -15
- package/dist/esm/ui/Renderer/style.js +2 -2
- package/dist/esm/ui/Renderer/truncated-wrapper.js +5 -7
- package/dist/esm/ui/SmartCardStorage.js +5 -7
- package/dist/esm/ui/annotations/context.js +8 -11
- package/dist/esm/ui/annotations/draft/dom.js +1 -2
- package/dist/esm/use-feature-flags.js +3 -0
- package/dist/esm/utils.js +3 -0
- package/package.json +3 -3
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
import React, { createContext } from 'react';
|
|
11
10
|
export var AnnotationsDraftContext = /*#__PURE__*/createContext(null);
|
|
12
11
|
export var ProvidersContext = /*#__PURE__*/createContext(null);
|
|
13
12
|
export var InlineCommentsStateContext = /*#__PURE__*/createContext({});
|
|
14
13
|
export var AnnotationsDraftContextWrapper = /*#__PURE__*/function (_React$Component) {
|
|
15
|
-
_inherits(AnnotationsDraftContextWrapper, _React$Component);
|
|
16
|
-
var _super = _createSuper(AnnotationsDraftContextWrapper);
|
|
17
14
|
function AnnotationsDraftContextWrapper() {
|
|
18
15
|
var _this;
|
|
19
16
|
_classCallCheck(this, AnnotationsDraftContextWrapper);
|
|
20
17
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21
18
|
args[_key] = arguments[_key];
|
|
22
19
|
}
|
|
23
|
-
_this =
|
|
24
|
-
_defineProperty(
|
|
20
|
+
_this = _callSuper(this, AnnotationsDraftContextWrapper, [].concat(args));
|
|
21
|
+
_defineProperty(_this, "state", {
|
|
25
22
|
position: null
|
|
26
23
|
});
|
|
27
|
-
_defineProperty(
|
|
24
|
+
_defineProperty(_this, "applyAnnotationDraftAt", function (nextPosition) {
|
|
28
25
|
var setDraftRange = _this.props.setDraftRange;
|
|
29
26
|
|
|
30
27
|
// Set the draft range to preserve it downstream
|
|
@@ -36,7 +33,7 @@ export var AnnotationsDraftContextWrapper = /*#__PURE__*/function (_React$Compon
|
|
|
36
33
|
position: nextPosition
|
|
37
34
|
});
|
|
38
35
|
});
|
|
39
|
-
_defineProperty(
|
|
36
|
+
_defineProperty(_this, "clearAnnotationDraft", function () {
|
|
40
37
|
var clearDraftRange = _this.props.clearDraftRange;
|
|
41
38
|
|
|
42
39
|
// Clear the draft range
|
|
@@ -49,7 +46,8 @@ export var AnnotationsDraftContextWrapper = /*#__PURE__*/function (_React$Compon
|
|
|
49
46
|
});
|
|
50
47
|
return _this;
|
|
51
48
|
}
|
|
52
|
-
|
|
49
|
+
_inherits(AnnotationsDraftContextWrapper, _React$Component);
|
|
50
|
+
return _createClass(AnnotationsDraftContextWrapper, [{
|
|
53
51
|
key: "render",
|
|
54
52
|
value: function render() {
|
|
55
53
|
var children = this.props.children;
|
|
@@ -64,5 +62,4 @@ export var AnnotationsDraftContextWrapper = /*#__PURE__*/function (_React$Compon
|
|
|
64
62
|
}));
|
|
65
63
|
}
|
|
66
64
|
}]);
|
|
67
|
-
return AnnotationsDraftContextWrapper;
|
|
68
65
|
}(React.Component);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
export var dataAttributes = function dataAttributes(_ref) {
|
|
4
|
-
var _ref2;
|
|
5
4
|
var from = _ref.from,
|
|
6
5
|
to = _ref.to;
|
|
7
|
-
return
|
|
6
|
+
return _defineProperty(_defineProperty(_defineProperty({}, 'data-annotation-draft-mark', true), 'data-draft-start-at', from), 'data-draft-end-at', to);
|
|
8
7
|
};
|
|
9
8
|
var buildDataAttributesQuery = function buildDataAttributesQuery(pos) {
|
|
10
9
|
var a = dataAttributes(pos);
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
|
+
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
4
|
+
// Entry file in package.json
|
|
5
|
+
|
|
3
6
|
import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
|
|
4
7
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
5
8
|
function createEncoder(parser, encoder) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "112.7.
|
|
3
|
+
"version": "112.7.3",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
30
30
|
"@atlaskit/button": "^20.3.0",
|
|
31
31
|
"@atlaskit/code": "^15.6.0",
|
|
32
|
-
"@atlaskit/editor-common": "^96.
|
|
32
|
+
"@atlaskit/editor-common": "^96.5.0",
|
|
33
33
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.3",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/status": "^1.8.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.11.0",
|
|
52
52
|
"@atlaskit/theme": "^14.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^2.26.0",
|
|
54
54
|
"@atlaskit/tokens": "^2.4.0",
|
|
55
55
|
"@atlaskit/tooltip": "^19.0.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|