@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/actions/index.js +1 -2
  3. package/dist/cjs/consts.js +3 -0
  4. package/dist/cjs/messages.js +3 -0
  5. package/dist/cjs/react/index.js +1 -2
  6. package/dist/cjs/react/marks/confluence-inline-comment.js +5 -7
  7. package/dist/cjs/react/nodes/TableStickyScrollbar.js +1 -2
  8. package/dist/cjs/react/nodes/decisionList.js +5 -7
  9. package/dist/cjs/react/nodes/emoji.js +6 -9
  10. package/dist/cjs/react/nodes/fallback.js +7 -10
  11. package/dist/cjs/react/nodes/heading-anchor.js +11 -14
  12. package/dist/cjs/react/nodes/media/index.js +8 -11
  13. package/dist/cjs/react/nodes/mediaGroup.js +9 -12
  14. package/dist/cjs/react/nodes/table/sticky.js +7 -9
  15. package/dist/cjs/react/nodes/table.js +27 -32
  16. package/dist/cjs/react/nodes/tableRow.js +8 -11
  17. package/dist/cjs/react/nodes/taskItem.js +6 -9
  18. package/dist/cjs/react/nodes/taskList.js +5 -7
  19. package/dist/cjs/react/utils/element-selection.js +1 -2
  20. package/dist/cjs/react/utils/use-select-all-trap.js +1 -2
  21. package/dist/cjs/render-document.js +3 -0
  22. package/dist/cjs/renderer-context.js +3 -0
  23. package/dist/cjs/text/index.js +1 -2
  24. package/dist/cjs/ui/Expand.js +1 -1
  25. package/dist/cjs/ui/MediaCard.js +9 -12
  26. package/dist/cjs/ui/Renderer/ErrorBoundary.js +6 -9
  27. package/dist/cjs/ui/Renderer/index.js +12 -15
  28. package/dist/cjs/ui/Renderer/style.js +2 -2
  29. package/dist/cjs/ui/Renderer/truncated-wrapper.js +5 -7
  30. package/dist/cjs/ui/SmartCardStorage.js +5 -7
  31. package/dist/cjs/ui/annotations/context.js +8 -11
  32. package/dist/cjs/ui/annotations/draft/dom.js +1 -2
  33. package/dist/cjs/use-feature-flags.js +3 -0
  34. package/dist/cjs/utils.js +3 -0
  35. package/dist/es2019/actions.js +3 -0
  36. package/dist/es2019/consts.js +3 -0
  37. package/dist/es2019/index.js +3 -0
  38. package/dist/es2019/messages.js +3 -0
  39. package/dist/es2019/react/utils/use-select-all-trap.js +1 -2
  40. package/dist/es2019/render-document.js +3 -0
  41. package/dist/es2019/renderer-context.js +3 -0
  42. package/dist/es2019/text-serializer.js +3 -0
  43. package/dist/es2019/ui/Expand.js +1 -1
  44. package/dist/es2019/ui/Renderer/index.js +1 -1
  45. package/dist/es2019/ui/Renderer/style.js +2 -2
  46. package/dist/es2019/use-feature-flags.js +3 -0
  47. package/dist/es2019/utils.js +3 -0
  48. package/dist/esm/actions/index.js +1 -2
  49. package/dist/esm/actions.js +3 -0
  50. package/dist/esm/consts.js +3 -0
  51. package/dist/esm/index.js +3 -0
  52. package/dist/esm/messages.js +3 -0
  53. package/dist/esm/react/index.js +1 -2
  54. package/dist/esm/react/marks/confluence-inline-comment.js +5 -7
  55. package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -2
  56. package/dist/esm/react/nodes/decisionList.js +5 -7
  57. package/dist/esm/react/nodes/emoji.js +6 -9
  58. package/dist/esm/react/nodes/fallback.js +7 -10
  59. package/dist/esm/react/nodes/heading-anchor.js +11 -14
  60. package/dist/esm/react/nodes/media/index.js +8 -11
  61. package/dist/esm/react/nodes/mediaGroup.js +9 -12
  62. package/dist/esm/react/nodes/table/sticky.js +7 -9
  63. package/dist/esm/react/nodes/table.js +27 -32
  64. package/dist/esm/react/nodes/tableRow.js +8 -11
  65. package/dist/esm/react/nodes/taskItem.js +6 -9
  66. package/dist/esm/react/nodes/taskList.js +5 -7
  67. package/dist/esm/react/utils/element-selection.js +1 -2
  68. package/dist/esm/react/utils/use-select-all-trap.js +1 -2
  69. package/dist/esm/render-document.js +3 -0
  70. package/dist/esm/renderer-context.js +3 -0
  71. package/dist/esm/text/index.js +1 -2
  72. package/dist/esm/text-serializer.js +3 -0
  73. package/dist/esm/ui/Expand.js +1 -1
  74. package/dist/esm/ui/MediaCard.js +9 -12
  75. package/dist/esm/ui/Renderer/ErrorBoundary.js +6 -9
  76. package/dist/esm/ui/Renderer/index.js +12 -15
  77. package/dist/esm/ui/Renderer/style.js +2 -2
  78. package/dist/esm/ui/Renderer/truncated-wrapper.js +5 -7
  79. package/dist/esm/ui/SmartCardStorage.js +5 -7
  80. package/dist/esm/ui/annotations/context.js +8 -11
  81. package/dist/esm/ui/annotations/draft/dom.js +1 -2
  82. package/dist/esm/use-feature-flags.js +3 -0
  83. package/dist/esm/utils.js +3 -0
  84. 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 _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
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 = _super.call.apply(_super, [this].concat(args));
24
- _defineProperty(_assertThisInitialized(_this), "state", {
20
+ _this = _callSuper(this, AnnotationsDraftContextWrapper, [].concat(args));
21
+ _defineProperty(_this, "state", {
25
22
  position: null
26
23
  });
27
- _defineProperty(_assertThisInitialized(_this), "applyAnnotationDraftAt", function (nextPosition) {
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(_assertThisInitialized(_this), "clearAnnotationDraft", function () {
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
- _createClass(AnnotationsDraftContextWrapper, [{
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 _ref2 = {}, _defineProperty(_ref2, 'data-annotation-draft-mark', true), _defineProperty(_ref2, 'data-draft-start-at', from), _defineProperty(_ref2, 'data-draft-end-at', to), _ref2;
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);
@@ -1,3 +1,6 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  import { useRendererContext } from './renderer-context';
2
5
  export var useFeatureFlags = function useFeatureFlags() {
3
6
  var _useRendererContext;
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.1",
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.3.0",
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.25.0",
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",