@atlaskit/renderer 112.6.13 → 112.6.15

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 (68) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/react/marks/annotation.js +2 -2
  3. package/dist/cjs/react/nodes/date.js +1 -1
  4. package/dist/cjs/react/nodes/media/index.js +6 -5
  5. package/dist/cjs/react/nodes/taskItem.js +1 -1
  6. package/dist/cjs/react/nodes/text-wrapper.js +2 -2
  7. package/dist/cjs/ui/Renderer/index.js +1 -1
  8. package/dist/cjs/ui/Renderer/style.js +1 -1
  9. package/dist/cjs/ui/annotations/element/index.js +6 -4
  10. package/dist/cjs/ui/annotations/hover/mounter.js +2 -2
  11. package/dist/cjs/ui/annotations/index.js +0 -14
  12. package/dist/cjs/ui/annotations/selection/mounter.js +2 -2
  13. package/dist/cjs/ui/annotations/view/index.js +2 -2
  14. package/dist/cjs/ui/annotations/wrapper.js +4 -4
  15. package/dist/es2019/react/marks/annotation.js +1 -1
  16. package/dist/es2019/react/nodes/date.js +1 -1
  17. package/dist/es2019/react/nodes/media/index.js +2 -1
  18. package/dist/es2019/react/nodes/taskItem.js +1 -1
  19. package/dist/es2019/react/nodes/text-wrapper.js +1 -1
  20. package/dist/es2019/ui/Renderer/index.js +1 -1
  21. package/dist/es2019/ui/Renderer/style.js +53 -22
  22. package/dist/es2019/ui/annotations/element/index.js +3 -1
  23. package/dist/es2019/ui/annotations/hover/mounter.js +1 -1
  24. package/dist/es2019/ui/annotations/index.js +1 -3
  25. package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
  26. package/dist/es2019/ui/annotations/view/index.js +1 -1
  27. package/dist/es2019/ui/annotations/wrapper.js +2 -2
  28. package/dist/esm/react/marks/annotation.js +1 -1
  29. package/dist/esm/react/nodes/date.js +1 -1
  30. package/dist/esm/react/nodes/media/index.js +2 -1
  31. package/dist/esm/react/nodes/taskItem.js +1 -1
  32. package/dist/esm/react/nodes/text-wrapper.js +1 -1
  33. package/dist/esm/ui/Renderer/index.js +1 -1
  34. package/dist/esm/ui/Renderer/style.js +2 -3
  35. package/dist/esm/ui/annotations/element/index.js +3 -1
  36. package/dist/esm/ui/annotations/hover/mounter.js +1 -1
  37. package/dist/esm/ui/annotations/index.js +1 -3
  38. package/dist/esm/ui/annotations/selection/mounter.js +1 -1
  39. package/dist/esm/ui/annotations/view/index.js +1 -1
  40. package/dist/esm/ui/annotations/wrapper.js +2 -2
  41. package/dist/types/ui/annotations/index.d.ts +0 -2
  42. package/dist/types-ts4.5/ui/annotations/index.d.ts +0 -2
  43. package/package.json +8 -5
  44. package/dist/cjs/ui/TaskItemsFormatContext/index.js +0 -24
  45. package/dist/cjs/ui/annotations/draft/index.js +0 -19
  46. package/dist/cjs/ui/annotations/hooks/index.js +0 -32
  47. package/dist/cjs/ui/annotations/hover/index.js +0 -12
  48. package/dist/cjs/ui/annotations/selection/index.js +0 -12
  49. package/dist/es2019/ui/TaskItemsFormatContext/index.js +0 -1
  50. package/dist/es2019/ui/annotations/draft/index.js +0 -2
  51. package/dist/es2019/ui/annotations/hooks/index.js +0 -3
  52. package/dist/es2019/ui/annotations/hover/index.js +0 -1
  53. package/dist/es2019/ui/annotations/selection/index.js +0 -1
  54. package/dist/esm/ui/TaskItemsFormatContext/index.js +0 -1
  55. package/dist/esm/ui/annotations/draft/index.js +0 -2
  56. package/dist/esm/ui/annotations/hooks/index.js +0 -3
  57. package/dist/esm/ui/annotations/hover/index.js +0 -1
  58. package/dist/esm/ui/annotations/selection/index.js +0 -1
  59. package/dist/types/ui/TaskItemsFormatContext/index.d.ts +0 -1
  60. package/dist/types/ui/annotations/draft/index.d.ts +0 -2
  61. package/dist/types/ui/annotations/hooks/index.d.ts +0 -3
  62. package/dist/types/ui/annotations/hover/index.d.ts +0 -1
  63. package/dist/types/ui/annotations/selection/index.d.ts +0 -1
  64. package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +0 -1
  65. package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +0 -2
  66. package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +0 -3
  67. package/dist/types-ts4.5/ui/annotations/hover/index.d.ts +0 -1
  68. package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 112.6.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#174774](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174774)
8
+ [`8e4f117f6abde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e4f117f6abde) -
9
+ [ux] ED-25744 Resolve styling issues with column sort and background color for nested tables
10
+ - Updated dependencies
11
+
12
+ ## 112.6.14
13
+
14
+ ### Patch Changes
15
+
16
+ - [#174633](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174633)
17
+ [`11d98912f520d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/11d98912f520d) -
18
+ Removed internal re-exports
19
+
3
20
  ## 112.6.13
4
21
 
5
22
  ### Patch Changes
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _adfSchema = require("@atlaskit/adf-schema");
12
- var _annotations = require("../../ui/annotations");
12
+ var _element = require("../../ui/annotations/element");
13
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14
14
  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) { (0, _defineProperty2.default)(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; }
15
15
  var isAnnotationMark = exports.isAnnotationMark = function isAnnotationMark(mark) {
@@ -38,7 +38,7 @@ var AnnotationComponent = function AnnotationComponent(_ref) {
38
38
  // when using comment navigation to access comments on mediaInline
39
39
  _react.default.createElement("span", {
40
40
  id: id
41
- }, children) : /*#__PURE__*/_react.default.createElement(_annotations.AnnotationMark, {
41
+ }, children) : /*#__PURE__*/_react.default.createElement(_element.MarkElement, {
42
42
  id: id,
43
43
  dataAttributes: data,
44
44
  annotationParentIds: annotationParentIds,
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
13
  var _utils = require("@atlaskit/editor-common/utils");
14
14
  var _reactIntlNext = require("react-intl-next");
15
- var _TaskItemsFormatContext = require("../../ui/TaskItemsFormatContext");
15
+ var _TaskItemsFormatContext = require("../../ui/TaskItemsFormatContext/TaskItemsFormatContext");
16
16
  var _useInlineAnnotationProps = require("../../ui/annotations/element/useInlineAnnotationProps");
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -34,7 +34,8 @@ var _annotation = _interopRequireDefault(require("../../marks/annotation"));
34
34
  var _context = require("../../../ui/annotations/context");
35
35
  var _mediaSingle = require("@atlaskit/editor-common/media-single");
36
36
  var _reactIntlNext = require("react-intl-next");
37
- var _hooks = require("../../../ui/annotations/hooks");
37
+ var _useInlineCommentsFilter = require("../../../ui/annotations/hooks/use-inline-comments-filter");
38
+ var _useInlineCommentSubscriber = require("../../../ui/annotations/hooks/use-inline-comment-subscriber");
38
39
  var _types = require("@atlaskit/editor-common/types");
39
40
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
40
41
  var _excluded = ["marks", "mediaSingleElement", "isDrafting"],
@@ -151,8 +152,8 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
151
152
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
152
153
  entered = _useState4[0],
153
154
  setEntered = _useState4[1];
154
- var updateSubscriber = (0, _hooks.useInlineCommentSubscriberContext)();
155
- var activeParentIds = (0, _hooks.useInlineCommentsFilter)({
155
+ var updateSubscriber = (0, _useInlineCommentSubscriber.useInlineCommentSubscriberContext)();
156
+ var activeParentIds = (0, _useInlineCommentsFilter.useInlineCommentsFilter)({
156
157
  annotationIds: (_marks$map = marks === null || marks === void 0 ? void 0 : marks.map(function (mark) {
157
158
  return mark.attrs.id;
158
159
  })) !== null && _marks$map !== void 0 ? _marks$map : [''],
@@ -230,8 +231,8 @@ var CommentBadgeNextWrapper = function CommentBadgeNextWrapper(_ref6) {
230
231
  _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
231
232
  entered = _useState8[0],
232
233
  setEntered = _useState8[1];
233
- var updateSubscriber = (0, _hooks.useInlineCommentSubscriberContext)();
234
- var activeParentIds = (0, _hooks.useInlineCommentsFilter)({
234
+ var updateSubscriber = (0, _useInlineCommentSubscriber.useInlineCommentSubscriberContext)();
235
+ var activeParentIds = (0, _useInlineCommentsFilter.useInlineCommentsFilter)({
235
236
  annotationIds: (_marks$map2 = marks === null || marks === void 0 ? void 0 : marks.map(function (mark) {
236
237
  return mark.attrs.id;
237
238
  })) !== null && _marks$map2 !== void 0 ? _marks$map2 : [''],
@@ -18,7 +18,7 @@ var _react = _interopRequireWildcard(require("react"));
18
18
  var _providerFactory = require("@atlaskit/editor-common/provider-factory");
19
19
  var _taskItemWithProviders = _interopRequireDefault(require("./task-item-with-providers"));
20
20
  var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
21
- var _TaskItemsFormatContext = require("../../ui/TaskItemsFormatContext");
21
+ var _TaskItemsFormatContext = require("../../ui/TaskItemsFormatContext/TaskItemsFormatContext");
22
22
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
23
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
24
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _annotations = require("../../ui/annotations");
9
+ var _component = require("../../ui/annotations/draft/component");
10
10
  var TextWrapper = function TextWrapper(props) {
11
11
  var startPos = props.startPos,
12
12
  endPos = props.endPos;
@@ -14,7 +14,7 @@ var TextWrapper = function TextWrapper(props) {
14
14
  if (!children) {
15
15
  return null;
16
16
  }
17
- return /*#__PURE__*/_react.default.createElement(_annotations.TextWithAnnotationDraft, {
17
+ return /*#__PURE__*/_react.default.createElement(_component.TextWithAnnotationDraft, {
18
18
  startPos: startPos,
19
19
  endPos: endPos,
20
20
  textHighlighter: props.textHighlighter,
@@ -65,7 +65,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
65
65
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
66
66
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "112.6.13";
68
+ var packageVersion = "112.6.15";
69
69
  var setAsQueryContainerStyles = (0, _react2.css)({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size',
@@ -85,7 +85,7 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
85
85
  if (allowNestedHeaderLinks) {
86
86
  headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(_headingAnchor.HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
87
87
  }
88
- return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", ";\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\tmargin: 0;\n\t\t\t\t.", " {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\t.", " {\n\t\t\t\t\topacity: 0;\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\t.", " {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, (0, _experiments.editorExperiment)('table-nested-dnd', true) ? "".concat(_styles.tableCellPadding, "px ", "var(--ds-space-250, 20px)") : "".concat(_styles.tableCellPadding, "px"), "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, _consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME, _consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, _table2.SORTABLE_COLUMN_ICON_CLASSNAME);
88
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", ";\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t"])), _consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, _consts.RendererCssClassName.SORTABLE_COLUMN, (0, _experiments.editorExperiment)('table-nested-dnd', true) ? "".concat(_styles.tableCellPadding, "px ", "var(--ds-space-250, 20px)") : "".concat(_styles.tableCellPadding, "px"), "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_renderer_styles') ? "\n\t\t\t\t\t// New styles\n\t\t\t\t\t> .".concat(_consts.RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t> .").concat(_consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, " {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t.").concat(_table2.SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t> .").concat(_consts.RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t> .").concat(_consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t.").concat(_table2.SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t&:hover:not(:has(.").concat(_consts.RendererCssClassName.SORTABLE_COLUMN_WRAPPER, " .").concat(_consts.RendererCssClassName.SORTABLE_COLUMN, ":hover))\n\t\t\t\t\t\t> .").concat(_consts.RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t\t> .").concat(_consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t\t.").concat(_table2.SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t") : "\n\t\t\t\t\t// old styles\n\t\t\t\t\t.".concat(_consts.RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, " {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t.").concat(_table2.SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t.").concat(_consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t.").concat(_table2.SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\t.").concat(_consts.RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t\t.").concat(_table2.SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"));
89
89
  };
90
90
  var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
91
91
  var appearance = _ref3.appearance;
@@ -8,7 +8,9 @@ exports.MarkElement = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _mark = require("./mark");
11
- var _hooks = require("../hooks");
11
+ var _useInlineCommentsFilter = require("../hooks/use-inline-comments-filter");
12
+ var _useInlineCommentSubscriber = require("../hooks/use-inline-comment-subscriber");
13
+ var _useEvents = require("../hooks/use-events");
12
14
  var _context = require("../context");
13
15
  var _types = require("@atlaskit/editor-common/types");
14
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -19,9 +21,9 @@ var MarkElement = exports.MarkElement = function MarkElement(_ref) {
19
21
  dataAttributes = _ref.dataAttributes,
20
22
  id = _ref.id,
21
23
  useBlockLevel = _ref.useBlockLevel;
22
- var updateSubscriber = (0, _hooks.useInlineCommentSubscriberContext)();
24
+ var updateSubscriber = (0, _useInlineCommentSubscriber.useInlineCommentSubscriberContext)();
23
25
  var states = (0, _react.useContext)(_context.InlineCommentsStateContext);
24
- var _useHasFocusEvent = (0, _hooks.useHasFocusEvent)({
26
+ var _useHasFocusEvent = (0, _useEvents.useHasFocusEvent)({
25
27
  id: id,
26
28
  updateSubscriber: updateSubscriber
27
29
  }),
@@ -44,7 +46,7 @@ var MarkElement = exports.MarkElement = function MarkElement(_ref) {
44
46
  eventTarget: eventTarget
45
47
  });
46
48
  }, [updateSubscriber, useBlockLevel]);
47
- var activeParentIds = (0, _hooks.useInlineCommentsFilter)({
49
+ var activeParentIds = (0, _useInlineCommentsFilter.useInlineCommentsFilter)({
48
50
  annotationIds: annotationParentIds,
49
51
  filter: {
50
52
  state: _adfSchema.AnnotationMarkStates.ACTIVE
@@ -9,7 +9,7 @@ exports.Mounter = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _adfSchema = require("@atlaskit/adf-schema");
12
- var _draft = require("../draft");
12
+ var _dom = require("../draft/dom");
13
13
  var _types = require("@atlaskit/analytics-listeners/types");
14
14
  var _analytics = require("@atlaskit/editor-common/analytics");
15
15
  var _RendererActionsContext = require("../../RendererActionsContext");
@@ -91,7 +91,7 @@ var Mounter = exports.Mounter = /*#__PURE__*/_react.default.memo(function (props
91
91
  }
92
92
  window.requestAnimationFrame(function () {
93
93
  if (options.keepNativeSelection) {
94
- (0, _draft.updateWindowSelectionAroundDraft)(documentPosition);
94
+ (0, _dom.updateWindowSelectionAroundDraft)(documentPosition);
95
95
  } else {
96
96
  var sel = window.getSelection();
97
97
  if (sel) {
@@ -4,19 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- Object.defineProperty(exports, "AnnotationMark", {
8
- enumerable: true,
9
- get: function get() {
10
- return _element.MarkElement;
11
- }
12
- });
13
7
  exports.AnnotationsWrapper = exports.AnnotationsPositionContext = void 0;
14
- Object.defineProperty(exports, "TextWithAnnotationDraft", {
15
- enumerable: true,
16
- get: function get() {
17
- return _draft.TextWithAnnotationDraft;
18
- }
19
- });
20
8
  var _react = _interopRequireDefault(require("react"));
21
9
  var _adfSchema = require("@atlaskit/adf-schema");
22
10
  var _view = require("./view");
@@ -27,8 +15,6 @@ var _useEvents = require("./hooks/use-events");
27
15
  var _analyticsNext = require("@atlaskit/analytics-next");
28
16
  var _AnnotationRangeContext = require("./contexts/AnnotationRangeContext");
29
17
  var _AnnotationHoverContext = require("./contexts/AnnotationHoverContext");
30
- var _draft = require("./draft");
31
- var _element = require("./element");
32
18
  var LoadAnnotations = /*#__PURE__*/_react.default.memo(function (_ref) {
33
19
  var adfDocument = _ref.adfDocument,
34
20
  isNestedRender = _ref.isNestedRender,
@@ -10,7 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _adfSchema = require("@atlaskit/adf-schema");
12
12
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _draft = require("../draft");
13
+ var _dom = require("../draft/dom");
14
14
  var _types = require("@atlaskit/analytics-listeners/types");
15
15
  var _analytics = require("@atlaskit/editor-common/analytics");
16
16
  var _getRendererRangeInlineNodeNames = require("../../../actions/get-renderer-range-inline-node-names");
@@ -130,7 +130,7 @@ var SelectionInlineCommentMounter = exports.SelectionInlineCommentMounter = /*#_
130
130
  }
131
131
  window.requestAnimationFrame(function () {
132
132
  if (options.keepNativeSelection) {
133
- (0, _draft.updateWindowSelectionAroundDraft)(documentPosition);
133
+ (0, _dom.updateWindowSelectionAroundDraft)(documentPosition);
134
134
  } else {
135
135
  var sel = window.getSelection();
136
136
  if (sel) {
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.AnnotationView = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _context = require("../context");
10
- var _hooks = require("../hooks");
10
+ var _useEvents = require("../hooks/use-events");
11
11
  var _RendererActionsContext = require("../../../ui/RendererActionsContext");
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -16,7 +16,7 @@ var AnnotationView = exports.AnnotationView = function AnnotationView(props) {
16
16
  var actionContext = (0, _react.useContext)(_RendererActionsContext.RendererContext);
17
17
  var inlineCommentProvider = providers && providers.inlineComment;
18
18
  var updateSubscriber = inlineCommentProvider && inlineCommentProvider.updateSubscriber || null;
19
- var viewComponentProps = (0, _hooks.useAnnotationClickEvent)({
19
+ var viewComponentProps = (0, _useEvents.useAnnotationClickEvent)({
20
20
  updateSubscriber: updateSubscriber,
21
21
  createAnalyticsEvent: props.createAnalyticsEvent,
22
22
  isNestedRender: props.isNestedRender
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.AnnotationsContextWrapper = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _context = require("./context");
10
- var _hover = require("./hover");
11
- var _selection = require("./selection");
10
+ var _rangeValidator = require("./hover/range-validator");
11
+ var _rangeValidator2 = require("./selection/range-validator");
12
12
  var _AnnotationRangeContext = require("./contexts/AnnotationRangeContext");
13
13
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
14
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -37,13 +37,13 @@ var AnnotationsContextWrapper = exports.AnnotationsContextWrapper = function Ann
37
37
  var render = (0, _react.useCallback)(function (_ref) {
38
38
  var applyAnnotationDraftAt = _ref.applyAnnotationDraftAt,
39
39
  clearAnnotationDraft = _ref.clearAnnotationDraft;
40
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children, !!hoverComponent && /*#__PURE__*/_react.default.createElement(_hover.HoverRangeValidator, {
40
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children, !!hoverComponent && /*#__PURE__*/_react.default.createElement(_rangeValidator.RangeValidator, {
41
41
  createAnalyticsEvent: createAnalyticsEvent,
42
42
  rendererRef: rendererRef,
43
43
  component: hoverComponent,
44
44
  applyAnnotationDraftAt: applyAnnotationDraftAt,
45
45
  clearAnnotationDraft: clearAnnotationDraft
46
- }), !!selectionComponent && /*#__PURE__*/_react.default.createElement(_selection.SelectionRangeValidator, {
46
+ }), !!selectionComponent && /*#__PURE__*/_react.default.createElement(_rangeValidator2.SelectionRangeValidator, {
47
47
  createAnalyticsEvent: createAnalyticsEvent,
48
48
  rendererRef: rendererRef,
49
49
  selectionComponent: selectionComponent,
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
3
  import { buildAnnotationMarkDataAttributes } from '@atlaskit/adf-schema';
4
- import { AnnotationMark } from '../../ui/annotations';
4
+ import { MarkElement as AnnotationMark } from '../../ui/annotations/element';
5
5
  export const isAnnotationMark = mark => {
6
6
  return mark && mark.type && mark.type.name === 'annotation';
7
7
  };
@@ -3,7 +3,7 @@ import React, { memo } from 'react';
3
3
  import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
4
4
  import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils';
5
5
  import { injectIntl } from 'react-intl-next';
6
- import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext';
6
+ import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
7
7
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
8
8
  const Date = /*#__PURE__*/memo(function Date(props) {
9
9
  const inlineAnnotationProps = useInlineAnnotationProps(props);
@@ -24,7 +24,8 @@ import AnnotationComponent from '../../marks/annotation';
24
24
  import { AnnotationsDraftContext } from '../../../ui/annotations/context';
25
25
  import { CommentBadge as CommentBadgeComponent, CommentBadgeNext, ExternalImageBadge, MediaBadges } from '@atlaskit/editor-common/media-single';
26
26
  import { injectIntl } from 'react-intl-next';
27
- import { useInlineCommentSubscriberContext, useInlineCommentsFilter } from '../../../ui/annotations/hooks';
27
+ import { useInlineCommentsFilter } from '../../../ui/annotations/hooks/use-inline-comments-filter';
28
+ import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
28
29
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
29
30
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
30
31
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
@@ -3,7 +3,7 @@ import React, { PureComponent } from 'react';
3
3
  import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
4
4
  import TaskItemWithProviders from './task-item-with-providers';
5
5
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
6
- import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext';
6
+ import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
7
7
  export default class TaskItem extends PureComponent {
8
8
  constructor(props) {
9
9
  super(props);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextWithAnnotationDraft } from '../../ui/annotations';
2
+ import { TextWithAnnotationDraft } from '../../ui/annotations/draft/component';
3
3
  const TextWrapper = props => {
4
4
  const {
5
5
  startPos,
@@ -45,7 +45,7 @@ import { countNodes } from './count-nodes';
45
45
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
46
46
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
47
47
  const packageName = "@atlaskit/renderer";
48
- const packageVersion = "112.6.13";
48
+ const packageVersion = "112.6.15";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -6,7 +6,7 @@ import { css } from '@emotion/react';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { fontFamily, fontSize } from '@atlaskit/theme/constants';
8
8
  import * as colors from '@atlaskit/theme/colors';
9
- import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
9
+ import { N60A, Y300, Y75, N40A } from '@atlaskit/theme/colors';
10
10
  import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
11
11
  import { getGlobalTheme } from '@atlaskit/tokens';
12
12
  import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
@@ -14,7 +14,6 @@ import { tableSharedStyle, columnLayoutSharedStyle, columnLayoutResponsiveShared
14
14
  import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
15
15
  import { browser } from '@atlaskit/editor-common/browser';
16
16
  import { editorFontSize, blockNodesVerticalMargin, akEditorTableToolbar, akEditorTableBorder, akEditorTableNumberColumnWidth, gridMediumMaxWidth, akEditorFullWidthLayoutWidth, akEditorStickyHeaderZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
17
- import { N40A } from '@atlaskit/theme/colors';
18
17
  import { RendererCssClassName } from '../../consts';
19
18
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
20
19
  import { getLightWeightCodeBlockStylesForRootRendererStyleSheet } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
@@ -255,30 +254,62 @@ const tableSortableColumnStyle = ({
255
254
  ${headingsCss}
256
255
  }
257
256
 
258
- .${RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER} {
259
- margin: 0;
260
- .${SORTABLE_COLUMN_ICON_CLASSNAME} {
261
- opacity: 1;
262
- transition: opacity 0.2s ease-in-out;
263
- }
264
- }
257
+ ${fg('platform_editor_nested_tables_renderer_styles') ? `
258
+ // New styles
259
+ > .${RendererCssClassName.SORTABLE_COLUMN}
260
+ > .${RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER} {
261
+ margin: 0;
262
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
263
+ opacity: 1;
264
+ transition: opacity 0.2s ease-in-out;
265
+ }
266
+ }
265
267
 
266
- .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
267
- .${SORTABLE_COLUMN_ICON_CLASSNAME} {
268
- opacity: 0;
269
- &:focus {
270
- opacity: 1;
268
+ > .${RendererCssClassName.SORTABLE_COLUMN}
269
+ > .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
270
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
271
+ opacity: 0;
272
+ &:focus {
273
+ opacity: 1;
274
+ }
275
+ }
271
276
  }
272
- }
273
- }
274
277
 
275
- &:hover {
276
- .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
277
- .${SORTABLE_COLUMN_ICON_CLASSNAME} {
278
- opacity: 1;
278
+ &:hover:not(:has(.${RendererCssClassName.SORTABLE_COLUMN_WRAPPER} .${RendererCssClassName.SORTABLE_COLUMN}:hover))
279
+ > .${RendererCssClassName.SORTABLE_COLUMN}
280
+ > .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
281
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
282
+ opacity: 1;
283
+ }
284
+ }
279
285
  }
280
- }
281
- }
286
+ ` : `
287
+ // old styles
288
+ .${RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER} {
289
+ margin: 0;
290
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
291
+ opacity: 1;
292
+ transition: opacity 0.2s ease-in-out;
293
+ }
294
+ }
295
+
296
+ .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
297
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
298
+ opacity: 0;
299
+ &:focus {
300
+ opacity: 1;
301
+ }
302
+ }
303
+ }
304
+
305
+ &:hover {
306
+ .${RendererCssClassName.SORTABLE_COLUMN_NO_ORDER} {
307
+ .${SORTABLE_COLUMN_ICON_CLASSNAME} {
308
+ opacity: 1;
309
+ }
310
+ }
311
+ }
312
+ `}
282
313
  }
283
314
  `;
284
315
  };
@@ -1,7 +1,9 @@
1
1
  import React, { useMemo, useCallback, useContext } from 'react';
2
2
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
3
3
  import { MarkComponent } from './mark';
4
- import { useInlineCommentSubscriberContext, useHasFocusEvent, useInlineCommentsFilter } from '../hooks';
4
+ import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
5
+ import { useInlineCommentSubscriberContext } from '../hooks/use-inline-comment-subscriber';
6
+ import { useHasFocusEvent } from '../hooks/use-events';
5
7
  import { InlineCommentsStateContext } from '../context';
6
8
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
7
9
  const MarkElement = ({
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useState, useContext } from 'react';
2
2
  import { AnnotationTypes } from '@atlaskit/adf-schema';
3
- import { updateWindowSelectionAroundDraft } from '../draft';
3
+ import { updateWindowSelectionAroundDraft } from '../draft/dom';
4
4
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
5
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
6
6
  import { RendererContext as ActionsContext } from '../../RendererActionsContext';
@@ -63,6 +63,4 @@ export const AnnotationsWrapper = props => {
63
63
  isNestedRender: isNestedRender,
64
64
  createAnalyticsEvent: createAnalyticsEvent
65
65
  }), children)))));
66
- };
67
- export { TextWithAnnotationDraft } from './draft';
68
- export { MarkElement as AnnotationMark } from './element';
66
+ };
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useState, useContext, useMemo } from 'react';
2
2
  import { AnnotationTypes } from '@atlaskit/adf-schema';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { updateWindowSelectionAroundDraft } from '../draft';
4
+ import { updateWindowSelectionAroundDraft } from '../draft/dom';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
6
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
7
7
  import { getRendererRangeInlineNodeNames } from '../../../actions/get-renderer-range-inline-node-names';
@@ -1,6 +1,6 @@
1
1
  import React, { useContext, useMemo, useCallback } from 'react';
2
2
  import { ProvidersContext } from '../context';
3
- import { useAnnotationClickEvent } from '../hooks';
3
+ import { useAnnotationClickEvent } from '../hooks/use-events';
4
4
  import { RendererContext } from '../../../ui/RendererActionsContext';
5
5
  const AnnotationView = props => {
6
6
  const providers = useContext(ProvidersContext);
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useContext } from 'react';
2
2
  import { AnnotationsDraftContextWrapper, ProvidersContext } from './context';
3
- import { HoverRangeValidator } from './hover';
4
- import { SelectionRangeValidator } from './selection';
3
+ import { RangeValidator as HoverRangeValidator } from './hover/range-validator';
4
+ import { SelectionRangeValidator } from './selection/range-validator';
5
5
  import { useAnnotationRangeDispatch, useAnnotationRangeState } from './contexts/AnnotationRangeContext';
6
6
  export const AnnotationsContextWrapper = props => {
7
7
  const providers = useContext(ProvidersContext);
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  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; }
5
5
  import React from 'react';
6
6
  import { buildAnnotationMarkDataAttributes } from '@atlaskit/adf-schema';
7
- import { AnnotationMark } from '../../ui/annotations';
7
+ import { MarkElement as AnnotationMark } from '../../ui/annotations/element';
8
8
  export var isAnnotationMark = function isAnnotationMark(mark) {
9
9
  return mark && mark.type && mark.type.name === 'annotation';
10
10
  };
@@ -4,7 +4,7 @@ import React, { memo } from 'react';
4
4
  import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
5
5
  import { isPastDate, timestampToString, timestampToTaskContext } from '@atlaskit/editor-common/utils';
6
6
  import { injectIntl } from 'react-intl-next';
7
- import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext';
7
+ import { useTaskItemsFormatContext } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
8
8
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
9
9
  var Date = /*#__PURE__*/memo(function Date(props) {
10
10
  var inlineAnnotationProps = useInlineAnnotationProps(props);
@@ -40,7 +40,8 @@ import AnnotationComponent from '../../marks/annotation';
40
40
  import { AnnotationsDraftContext } from '../../../ui/annotations/context';
41
41
  import { CommentBadge as CommentBadgeComponent, CommentBadgeNext, ExternalImageBadge, MediaBadges } from '@atlaskit/editor-common/media-single';
42
42
  import { injectIntl } from 'react-intl-next';
43
- import { useInlineCommentSubscriberContext, useInlineCommentsFilter } from '../../../ui/annotations/hooks';
43
+ import { useInlineCommentsFilter } from '../../../ui/annotations/hooks/use-inline-comments-filter';
44
+ import { useInlineCommentSubscriberContext } from '../../../ui/annotations/hooks/use-inline-comment-subscriber';
44
45
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
45
46
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
46
47
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
@@ -12,7 +12,7 @@ import React, { PureComponent } from 'react';
12
12
  import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
13
13
  import TaskItemWithProviders from './task-item-with-providers';
14
14
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
15
- import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext';
15
+ import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
16
16
  var TaskItem = /*#__PURE__*/function (_PureComponent) {
17
17
  _inherits(TaskItem, _PureComponent);
18
18
  var _super = _createSuper(TaskItem);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TextWithAnnotationDraft } from '../../ui/annotations';
2
+ import { TextWithAnnotationDraft } from '../../ui/annotations/draft/component';
3
3
  var TextWrapper = function TextWrapper(props) {
4
4
  var startPos = props.startPos,
5
5
  endPos = props.endPos;
@@ -55,7 +55,7 @@ import { countNodes } from './count-nodes';
55
55
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "112.6.13";
58
+ var packageVersion = "112.6.15";
59
59
  var setAsQueryContainerStyles = css({
60
60
  containerName: 'ak-renderer-wrapper',
61
61
  containerType: 'inline-size',
@@ -8,7 +8,7 @@ import { css } from '@emotion/react';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { fontFamily, fontSize } from '@atlaskit/theme/constants';
10
10
  import * as colors from '@atlaskit/theme/colors';
11
- import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
11
+ import { N60A, Y300, Y75, N40A } from '@atlaskit/theme/colors';
12
12
  import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
13
13
  import { getGlobalTheme } from '@atlaskit/tokens';
14
14
  import { mediaInlineImageStyles } from '@atlaskit/editor-common/media-inline';
@@ -16,7 +16,6 @@ import { tableSharedStyle, columnLayoutSharedStyle, columnLayoutResponsiveShared
16
16
  import { shadowClassNames, shadowObserverClassNames } from '@atlaskit/editor-common/ui';
17
17
  import { browser } from '@atlaskit/editor-common/browser';
18
18
  import { editorFontSize, blockNodesVerticalMargin, akEditorTableToolbar, akEditorTableBorder, akEditorTableNumberColumnWidth, gridMediumMaxWidth, akEditorFullWidthLayoutWidth, akEditorStickyHeaderZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
19
- import { N40A } from '@atlaskit/theme/colors';
20
19
  import { RendererCssClassName } from '../../consts';
21
20
  import { HeadingAnchorWrapperClassName } from '../../react/nodes/heading-anchor';
22
21
  import { getLightWeightCodeBlockStylesForRootRendererStyleSheet } from '../../react/nodes/codeBlock/components/lightWeightCodeBlock';
@@ -76,7 +75,7 @@ var tableSortableColumnStyle = function tableSortableColumnStyle(_ref2) {
76
75
  if (allowNestedHeaderLinks) {
77
76
  headingsCss = "\n /**\n * When the sort button is enabled we want the heading's copy link button\n * to reserve space so that it can prematurely wrap to avoid the button\n * being displayed underneath the sort button (hidden or obscured).\n *\n * The two buttons fight each other since the sort button is displayed\n * on hover of the <th /> and the copy link button is displayed on hover\n * of the heading.\n *\n * Note that this can break the WYSIWYG experience in the case where\n * a heading fills the width of the table cell and the only thing which\n * wraps is the copy link button. This is hopefully a rare fringe case.\n */\n .".concat(HeadingAnchorWrapperClassName, " {\n position: unset;\n }\n > {\n h1, h2, h3, h4, h5, h6 {\n margin-right: 30px;\n }\n }\n ");
78
77
  }
79
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", ";\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\tmargin: 0;\n\t\t\t\t.", " {\n\t\t\t\t\topacity: 1;\n\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\t.", " {\n\t\t\t\t\topacity: 0;\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\t.", " {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, editorExperiment('table-nested-dnd', true) ? "".concat(tableCellPadding, "px ", "var(--ds-space-250, 20px)") : "".concat(tableCellPadding, "px"), "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME, RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, SORTABLE_COLUMN_ICON_CLASSNAME);
78
+ return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\t\t.", " {\n\t\t\tpadding: 0;\n\n\t\t\t.", " {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tpadding: ", ";\n\t\t\t\tborder-width: 1.5px;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\n\t\t\t\t> *:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t@supports selector(:focus-visible) {\n\t\t\t\t\t&:focus {\n\t\t\t\t\t\toutline: unset;\n\t\t\t\t\t}\n\t\t\t\t\t&:focus-visible {\n\t\t\t\t\t\tborder-color: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t", "\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t"])), RendererCssClassName.SORTABLE_COLUMN_WRAPPER, RendererCssClassName.SORTABLE_COLUMN, editorExperiment('table-nested-dnd', true) ? "".concat(tableCellPadding, "px ", "var(--ds-space-250, 20px)") : "".concat(tableCellPadding, "px"), "var(--ds-border-focused, ".concat(colors.B300, ")"), headingsCss, fg('platform_editor_nested_tables_renderer_styles') ? "\n\t\t\t\t\t// New styles\n\t\t\t\t\t> .".concat(RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, " {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t.").concat(SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t.").concat(SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t&:hover:not(:has(.").concat(RendererCssClassName.SORTABLE_COLUMN_WRAPPER, " .").concat(RendererCssClassName.SORTABLE_COLUMN, ":hover))\n\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN, "\n\t\t\t\t\t\t\t> .").concat(RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t\t.").concat(SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t") : "\n\t\t\t\t\t// old styles\n\t\t\t\t\t.".concat(RendererCssClassName.SORTABLE_COLUMN_ICON_WRAPPER, " {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t.").concat(SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\ttransition: opacity 0.2s ease-in-out;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t.").concat(RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t.").concat(SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t&:focus {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t&:hover {\n\t\t\t\t\t\t.").concat(RendererCssClassName.SORTABLE_COLUMN_NO_ORDER, " {\n\t\t\t\t\t\t\t.").concat(SORTABLE_COLUMN_ICON_CLASSNAME, " {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t"));
80
79
  };
81
80
  var fullPageStyles = function fullPageStyles(_ref3, _ref4) {
82
81
  var appearance = _ref3.appearance;
@@ -1,7 +1,9 @@
1
1
  import React, { useMemo, useCallback, useContext } from 'react';
2
2
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
3
3
  import { MarkComponent } from './mark';
4
- import { useInlineCommentSubscriberContext, useHasFocusEvent, useInlineCommentsFilter } from '../hooks';
4
+ import { useInlineCommentsFilter } from '../hooks/use-inline-comments-filter';
5
+ import { useInlineCommentSubscriberContext } from '../hooks/use-inline-comment-subscriber';
6
+ import { useHasFocusEvent } from '../hooks/use-events';
5
7
  import { InlineCommentsStateContext } from '../context';
6
8
  import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
7
9
  var MarkElement = function MarkElement(_ref) {
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useCallback, useState, useContext } from 'react';
3
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
4
- import { updateWindowSelectionAroundDraft } from '../draft';
4
+ import { updateWindowSelectionAroundDraft } from '../draft/dom';
5
5
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
6
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
7
7
  import { RendererContext as ActionsContext } from '../../RendererActionsContext';
@@ -59,6 +59,4 @@ export var AnnotationsWrapper = function AnnotationsWrapper(props) {
59
59
  isNestedRender: isNestedRender,
60
60
  createAnalyticsEvent: createAnalyticsEvent
61
61
  }), children)))));
62
- };
63
- export { TextWithAnnotationDraft } from './draft';
64
- export { MarkElement as AnnotationMark } from './element';
62
+ };
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useCallback, useState, useContext, useMemo } from 'react';
3
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
4
4
  import { fg } from '@atlaskit/platform-feature-flags';
5
- import { updateWindowSelectionAroundDraft } from '../draft';
5
+ import { updateWindowSelectionAroundDraft } from '../draft/dom';
6
6
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
7
7
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
8
8
  import { getRendererRangeInlineNodeNames } from '../../../actions/get-renderer-range-inline-node-names';
@@ -1,6 +1,6 @@
1
1
  import React, { useContext, useMemo, useCallback } from 'react';
2
2
  import { ProvidersContext } from '../context';
3
- import { useAnnotationClickEvent } from '../hooks';
3
+ import { useAnnotationClickEvent } from '../hooks/use-events';
4
4
  import { RendererContext } from '../../../ui/RendererActionsContext';
5
5
  var AnnotationView = function AnnotationView(props) {
6
6
  var providers = useContext(ProvidersContext);
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback, useContext } from 'react';
2
2
  import { AnnotationsDraftContextWrapper, ProvidersContext } from './context';
3
- import { HoverRangeValidator } from './hover';
4
- import { SelectionRangeValidator } from './selection';
3
+ import { RangeValidator as HoverRangeValidator } from './hover/range-validator';
4
+ import { SelectionRangeValidator } from './selection/range-validator';
5
5
  import { useAnnotationRangeDispatch, useAnnotationRangeState } from './contexts/AnnotationRangeContext';
6
6
  export var AnnotationsContextWrapper = function AnnotationsContextWrapper(props) {
7
7
  var providers = useContext(ProvidersContext);
@@ -4,5 +4,3 @@ export declare const AnnotationsPositionContext: React.Context<{
4
4
  startPos: number;
5
5
  }>;
6
6
  export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => JSX.Element;
7
- export { TextWithAnnotationDraft } from './draft';
8
- export { MarkElement as AnnotationMark } from './element';
@@ -4,5 +4,3 @@ export declare const AnnotationsPositionContext: React.Context<{
4
4
  startPos: number;
5
5
  }>;
6
6
  export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => JSX.Element;
7
- export { TextWithAnnotationDraft } from './draft';
8
- export { MarkElement as AnnotationMark } from './element';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "112.6.13",
3
+ "version": "112.6.15",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,14 +29,14 @@
29
29
  "@atlaskit/analytics-next": "^10.1.0",
30
30
  "@atlaskit/button": "^20.3.0",
31
31
  "@atlaskit/code": "^15.6.0",
32
- "@atlaskit/editor-common": "^96.1.0",
32
+ "@atlaskit/editor-common": "^96.3.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",
36
36
  "@atlaskit/editor-shared-styles": "^3.2.0",
37
37
  "@atlaskit/emoji": "^67.11.0",
38
38
  "@atlaskit/feature-gate-js-client": "^4.23.0",
39
- "@atlaskit/icon": "^23.0.0",
39
+ "@atlaskit/icon": "^23.1.0",
40
40
  "@atlaskit/link-datasource": "^3.13.0",
41
41
  "@atlaskit/media-card": "^78.15.0",
42
42
  "@atlaskit/media-client": "^28.5.0",
@@ -46,11 +46,11 @@
46
46
  "@atlaskit/media-ui": "^27.0.0",
47
47
  "@atlaskit/media-viewer": "^49.4.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/smart-card": "^32.5.0",
49
+ "@atlaskit/smart-card": "^32.6.0",
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.22.0",
53
+ "@atlaskit/tmp-editor-statsig": "^2.23.0",
54
54
  "@atlaskit/tokens": "^2.4.0",
55
55
  "@atlaskit/tooltip": "^18.9.0",
56
56
  "@babel/runtime": "^7.0.0",
@@ -158,6 +158,9 @@
158
158
  },
159
159
  "platform_editor_react18_renderer": {
160
160
  "type": "boolean"
161
+ },
162
+ "platform_editor_nested_tables_renderer_styles": {
163
+ "type": "boolean"
161
164
  }
162
165
  },
163
166
  "af:exports": {
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "TaskItemsFormatConsumer", {
7
- enumerable: true,
8
- get: function get() {
9
- return _TaskItemsFormatContext.TaskItemsFormatConsumer;
10
- }
11
- });
12
- Object.defineProperty(exports, "TaskItemsFormatProvider", {
13
- enumerable: true,
14
- get: function get() {
15
- return _TaskItemsFormatContext.TaskItemsFormatProvider;
16
- }
17
- });
18
- Object.defineProperty(exports, "useTaskItemsFormatContext", {
19
- enumerable: true,
20
- get: function get() {
21
- return _TaskItemsFormatContext.useTaskItemsFormatContext;
22
- }
23
- });
24
- var _TaskItemsFormatContext = require("./TaskItemsFormatContext");
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "TextWithAnnotationDraft", {
7
- enumerable: true,
8
- get: function get() {
9
- return _component.TextWithAnnotationDraft;
10
- }
11
- });
12
- Object.defineProperty(exports, "updateWindowSelectionAroundDraft", {
13
- enumerable: true,
14
- get: function get() {
15
- return _dom.updateWindowSelectionAroundDraft;
16
- }
17
- });
18
- var _dom = require("./dom");
19
- var _component = require("./component");
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "useAnnotationClickEvent", {
7
- enumerable: true,
8
- get: function get() {
9
- return _useEvents.useAnnotationClickEvent;
10
- }
11
- });
12
- Object.defineProperty(exports, "useHasFocusEvent", {
13
- enumerable: true,
14
- get: function get() {
15
- return _useEvents.useHasFocusEvent;
16
- }
17
- });
18
- Object.defineProperty(exports, "useInlineCommentSubscriberContext", {
19
- enumerable: true,
20
- get: function get() {
21
- return _useInlineCommentSubscriber.useInlineCommentSubscriberContext;
22
- }
23
- });
24
- Object.defineProperty(exports, "useInlineCommentsFilter", {
25
- enumerable: true,
26
- get: function get() {
27
- return _useInlineCommentsFilter.useInlineCommentsFilter;
28
- }
29
- });
30
- var _useEvents = require("./use-events");
31
- var _useInlineCommentsFilter = require("./use-inline-comments-filter");
32
- var _useInlineCommentSubscriber = require("./use-inline-comment-subscriber");
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "HoverRangeValidator", {
7
- enumerable: true,
8
- get: function get() {
9
- return _rangeValidator.RangeValidator;
10
- }
11
- });
12
- var _rangeValidator = require("./range-validator");
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "SelectionRangeValidator", {
7
- enumerable: true,
8
- get: function get() {
9
- return _rangeValidator.SelectionRangeValidator;
10
- }
11
- });
12
- var _rangeValidator = require("./range-validator");
@@ -1 +0,0 @@
1
- export { TaskItemsFormatProvider, TaskItemsFormatConsumer, useTaskItemsFormatContext } from './TaskItemsFormatContext';
@@ -1,2 +0,0 @@
1
- export { updateWindowSelectionAroundDraft } from './dom';
2
- export { TextWithAnnotationDraft } from './component';
@@ -1,3 +0,0 @@
1
- export { useHasFocusEvent, useAnnotationClickEvent } from './use-events';
2
- export { useInlineCommentsFilter } from './use-inline-comments-filter';
3
- export { useInlineCommentSubscriberContext } from './use-inline-comment-subscriber';
@@ -1 +0,0 @@
1
- export { RangeValidator as HoverRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { SelectionRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { TaskItemsFormatProvider, TaskItemsFormatConsumer, useTaskItemsFormatContext } from './TaskItemsFormatContext';
@@ -1,2 +0,0 @@
1
- export { updateWindowSelectionAroundDraft } from './dom';
2
- export { TextWithAnnotationDraft } from './component';
@@ -1,3 +0,0 @@
1
- export { useHasFocusEvent, useAnnotationClickEvent } from './use-events';
2
- export { useInlineCommentsFilter } from './use-inline-comments-filter';
3
- export { useInlineCommentSubscriberContext } from './use-inline-comment-subscriber';
@@ -1 +0,0 @@
1
- export { RangeValidator as HoverRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { SelectionRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { TaskItemsFormatProvider, TaskItemsFormatConsumer, useTaskItemsFormatContext, } from './TaskItemsFormatContext';
@@ -1,2 +0,0 @@
1
- export { updateWindowSelectionAroundDraft } from './dom';
2
- export { TextWithAnnotationDraft } from './component';
@@ -1,3 +0,0 @@
1
- export { useHasFocusEvent, useAnnotationClickEvent } from './use-events';
2
- export { useInlineCommentsFilter } from './use-inline-comments-filter';
3
- export { useInlineCommentSubscriberContext } from './use-inline-comment-subscriber';
@@ -1 +0,0 @@
1
- export { RangeValidator as HoverRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { SelectionRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { TaskItemsFormatProvider, TaskItemsFormatConsumer, useTaskItemsFormatContext, } from './TaskItemsFormatContext';
@@ -1,2 +0,0 @@
1
- export { updateWindowSelectionAroundDraft } from './dom';
2
- export { TextWithAnnotationDraft } from './component';
@@ -1,3 +0,0 @@
1
- export { useHasFocusEvent, useAnnotationClickEvent } from './use-events';
2
- export { useInlineCommentsFilter } from './use-inline-comments-filter';
3
- export { useInlineCommentSubscriberContext } from './use-inline-comment-subscriber';
@@ -1 +0,0 @@
1
- export { RangeValidator as HoverRangeValidator } from './range-validator';
@@ -1 +0,0 @@
1
- export { SelectionRangeValidator } from './range-validator';