@atlaskit/renderer 107.3.2 → 107.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/actions/index.js +3 -4
  3. package/dist/cjs/analytics/enums.js +16 -16
  4. package/dist/cjs/analytics/events.js +12 -12
  5. package/dist/cjs/i18n/cs.js +1 -0
  6. package/dist/cjs/i18n/da.js +1 -0
  7. package/dist/cjs/i18n/de.js +1 -0
  8. package/dist/cjs/i18n/en.js +1 -0
  9. package/dist/cjs/i18n/en_GB.js +1 -0
  10. package/dist/cjs/i18n/en_ZZ.js +5 -4
  11. package/dist/cjs/i18n/es.js +1 -0
  12. package/dist/cjs/i18n/fi.js +1 -0
  13. package/dist/cjs/i18n/fr.js +1 -0
  14. package/dist/cjs/i18n/hu.js +1 -0
  15. package/dist/cjs/i18n/it.js +1 -0
  16. package/dist/cjs/i18n/ja.js +1 -0
  17. package/dist/cjs/i18n/ko.js +1 -0
  18. package/dist/cjs/i18n/nb.js +1 -0
  19. package/dist/cjs/i18n/nl.js +1 -0
  20. package/dist/cjs/i18n/pl.js +1 -0
  21. package/dist/cjs/i18n/pt_BR.js +1 -0
  22. package/dist/cjs/i18n/ru.js +1 -0
  23. package/dist/cjs/i18n/sv.js +1 -0
  24. package/dist/cjs/i18n/th.js +1 -0
  25. package/dist/cjs/i18n/tr.js +1 -0
  26. package/dist/cjs/i18n/uk.js +1 -0
  27. package/dist/cjs/i18n/vi.js +1 -0
  28. package/dist/cjs/i18n/zh.js +1 -0
  29. package/dist/cjs/i18n/zh_TW.js +1 -0
  30. package/dist/cjs/react/hooks/use-in-viewport.js +1 -1
  31. package/dist/cjs/react/hooks/use-observed-width.js +1 -1
  32. package/dist/cjs/react/index.js +8 -9
  33. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +12 -13
  34. package/dist/cjs/react/nodes/heading-anchor.js +21 -24
  35. package/dist/cjs/react/nodes/index.js +38 -19
  36. package/dist/cjs/react/nodes/mediaInline.js +17 -19
  37. package/dist/cjs/react/nodes/table/sticky.js +1 -1
  38. package/dist/cjs/react/nodes/table.js +3 -3
  39. package/dist/cjs/react/nodes/task-item-with-providers.js +34 -36
  40. package/dist/cjs/ui/MediaCard.js +82 -87
  41. package/dist/cjs/ui/Renderer/index.js +5 -6
  42. package/dist/cjs/ui/Renderer/style.js +7 -4
  43. package/dist/cjs/ui/SortingIcon.js +4 -4
  44. package/dist/cjs/ui/annotations/types.js +4 -4
  45. package/dist/cjs/version.json +1 -1
  46. package/dist/es2019/actions/index.js +3 -4
  47. package/dist/es2019/analytics/enums.js +12 -12
  48. package/dist/es2019/analytics/events.js +9 -9
  49. package/dist/es2019/i18n/cs.js +1 -0
  50. package/dist/es2019/i18n/da.js +1 -0
  51. package/dist/es2019/i18n/de.js +1 -0
  52. package/dist/es2019/i18n/en.js +1 -0
  53. package/dist/es2019/i18n/en_GB.js +1 -0
  54. package/dist/es2019/i18n/en_ZZ.js +5 -4
  55. package/dist/es2019/i18n/es.js +1 -0
  56. package/dist/es2019/i18n/fi.js +1 -0
  57. package/dist/es2019/i18n/fr.js +1 -0
  58. package/dist/es2019/i18n/hu.js +1 -0
  59. package/dist/es2019/i18n/it.js +1 -0
  60. package/dist/es2019/i18n/ja.js +1 -0
  61. package/dist/es2019/i18n/ko.js +1 -0
  62. package/dist/es2019/i18n/nb.js +1 -0
  63. package/dist/es2019/i18n/nl.js +1 -0
  64. package/dist/es2019/i18n/pl.js +1 -0
  65. package/dist/es2019/i18n/pt_BR.js +1 -0
  66. package/dist/es2019/i18n/ru.js +1 -0
  67. package/dist/es2019/i18n/sv.js +1 -0
  68. package/dist/es2019/i18n/th.js +1 -0
  69. package/dist/es2019/i18n/tr.js +1 -0
  70. package/dist/es2019/i18n/uk.js +1 -0
  71. package/dist/es2019/i18n/vi.js +1 -0
  72. package/dist/es2019/i18n/zh.js +1 -0
  73. package/dist/es2019/i18n/zh_TW.js +1 -0
  74. package/dist/es2019/react/index.js +8 -9
  75. package/dist/es2019/react/nodes/table/sticky.js +3 -0
  76. package/dist/es2019/react/nodes/table.js +3 -4
  77. package/dist/es2019/ui/MediaCard.js +6 -8
  78. package/dist/es2019/ui/Renderer/index.js +5 -6
  79. package/dist/es2019/ui/Renderer/style.js +7 -4
  80. package/dist/es2019/ui/SortingIcon.js +3 -3
  81. package/dist/es2019/ui/annotations/types.js +3 -3
  82. package/dist/es2019/version.json +1 -1
  83. package/dist/esm/actions/index.js +3 -4
  84. package/dist/esm/analytics/enums.js +12 -12
  85. package/dist/esm/analytics/events.js +9 -9
  86. package/dist/esm/i18n/cs.js +1 -0
  87. package/dist/esm/i18n/da.js +1 -0
  88. package/dist/esm/i18n/de.js +1 -0
  89. package/dist/esm/i18n/en.js +1 -0
  90. package/dist/esm/i18n/en_GB.js +1 -0
  91. package/dist/esm/i18n/en_ZZ.js +5 -4
  92. package/dist/esm/i18n/es.js +1 -0
  93. package/dist/esm/i18n/fi.js +1 -0
  94. package/dist/esm/i18n/fr.js +1 -0
  95. package/dist/esm/i18n/hu.js +1 -0
  96. package/dist/esm/i18n/it.js +1 -0
  97. package/dist/esm/i18n/ja.js +1 -0
  98. package/dist/esm/i18n/ko.js +1 -0
  99. package/dist/esm/i18n/nb.js +1 -0
  100. package/dist/esm/i18n/nl.js +1 -0
  101. package/dist/esm/i18n/pl.js +1 -0
  102. package/dist/esm/i18n/pt_BR.js +1 -0
  103. package/dist/esm/i18n/ru.js +1 -0
  104. package/dist/esm/i18n/sv.js +1 -0
  105. package/dist/esm/i18n/th.js +1 -0
  106. package/dist/esm/i18n/tr.js +1 -0
  107. package/dist/esm/i18n/uk.js +1 -0
  108. package/dist/esm/i18n/vi.js +1 -0
  109. package/dist/esm/i18n/zh.js +1 -0
  110. package/dist/esm/i18n/zh_TW.js +1 -0
  111. package/dist/esm/react/hooks/use-in-viewport.js +1 -1
  112. package/dist/esm/react/hooks/use-observed-width.js +1 -1
  113. package/dist/esm/react/index.js +8 -9
  114. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +10 -13
  115. package/dist/esm/react/nodes/heading-anchor.js +21 -24
  116. package/dist/esm/react/nodes/mediaInline.js +17 -20
  117. package/dist/esm/react/nodes/table/sticky.js +1 -1
  118. package/dist/esm/react/nodes/table.js +3 -3
  119. package/dist/esm/react/nodes/task-item-with-providers.js +34 -37
  120. package/dist/esm/ui/MediaCard.js +82 -88
  121. package/dist/esm/ui/Renderer/index.js +5 -6
  122. package/dist/esm/ui/Renderer/style.js +8 -5
  123. package/dist/esm/ui/SortingIcon.js +3 -3
  124. package/dist/esm/ui/annotations/types.js +3 -3
  125. package/dist/esm/version.json +1 -1
  126. package/dist/types/i18n/en_ZZ.d.ts +2 -2
  127. package/package.json +12 -12
  128. package/report.api.md +1 -1
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -24,17 +24,16 @@ function mergeMarks(marksAndNodes) {
24
24
  }, []);
25
25
  }
26
26
  export default class ReactSerializer {
27
- /**
28
- * The reason we have this extra array here is because we need to generate the same unique
29
- * heading id for 2 different nodes: headers and expands (check the implementation of
30
- * `getUniqueHeadingId` for more info).
31
- *
32
- * We will eventually need to refactor the current approach to generate unique ids
33
- * for headers under this ticket -> https://product-fabric.atlassian.net/browse/ED-9668
34
- */
35
-
36
27
  constructor(init) {
37
28
  _defineProperty(this, "headingIds", []);
29
+ /**
30
+ * The reason we have this extra array here is because we need to generate the same unique
31
+ * heading id for 2 different nodes: headers and expands (check the implementation of
32
+ * `getUniqueHeadingId` for more info).
33
+ *
34
+ * We will eventually need to refactor the current approach to generate unique ids
35
+ * for headers under this ticket -> https://product-fabric.atlassian.net/browse/ED-9668
36
+ */
38
37
  _defineProperty(this, "expandHeadingIds", []);
39
38
  _defineProperty(this, "allowCopyToClipboard", false);
40
39
  _defineProperty(this, "allowWrapCodeBlock", false);
@@ -32,6 +32,9 @@ const fixedTableDivStaticStyles = (top, width) => css`
32
32
  > table {
33
33
  margin-top: 0;
34
34
  margin-bottom: 0;
35
+ tr {
36
+ background: ${"var(--ds-surface, white)"};
37
+ }
35
38
  }
36
39
 
37
40
  border-top: ${tableStickyPadding}px solid
@@ -90,6 +90,7 @@ export class TableContainer extends React.Component {
90
90
  });
91
91
  _defineProperty(this, "tableRef", /*#__PURE__*/React.createRef());
92
92
  _defineProperty(this, "stickyHeaderRef", /*#__PURE__*/React.createRef());
93
+ // used for sync scroll + copying wrapper width to sticky header
93
94
  _defineProperty(this, "stickyWrapperRef", /*#__PURE__*/React.createRef());
94
95
  _defineProperty(this, "wrapperRef", /*#__PURE__*/React.createRef());
95
96
  _defineProperty(this, "overflowParent", null);
@@ -153,7 +154,7 @@ export class TableContainer extends React.Component {
153
154
  return child;
154
155
  });
155
156
  });
156
- } // used for sync scroll + copying wrapper width to sticky header
157
+ }
157
158
  componentDidMount() {
158
159
  if (this.props.stickyHeaders) {
159
160
  this.overflowParent = OverflowParent.fromElement(this.tableRef.current);
@@ -260,6 +261,7 @@ export class TableProcessor extends React.Component {
260
261
  _defineProperty(this, "state", {
261
262
  tableOrderStatus: undefined
262
263
  });
264
+ // adds sortable + re-orders children
263
265
  _defineProperty(this, "addSortableColumn", childrenArray => {
264
266
  const {
265
267
  tableNode,
@@ -306,10 +308,7 @@ export class TableProcessor extends React.Component {
306
308
  const orderedChildren = compose(this.addNumberColumnIndexes, this.addSortableColumn)(childrenArray);
307
309
  return /*#__PURE__*/React.createElement(TableContainer, this.props, orderedChildren);
308
310
  }
309
-
310
- // adds sortable + re-orders children
311
311
  }
312
-
313
312
  const TableWithShadows = overflowShadow(TableProcessor, {
314
313
  overflowSelector: `.${TableSharedCssClassName.TABLE_NODE_WRAPPER}`,
315
314
  useShadowObserver: true
@@ -62,6 +62,12 @@ export class MediaCardInternal extends Component {
62
62
  dimensions: cardDimensions
63
63
  });
64
64
  });
65
+ /**
66
+ * We want to call provided `eventHandlers.media.onClick` when it's provided,
67
+ * but we also don't want to call it when it's a video and inline video player is enabled.
68
+ * This is due to consumers normally process this onClick call by opening media viewer and
69
+ * we don't want that to happened described above text.
70
+ */
65
71
  _defineProperty(this, "getOnCardClickCallback", isInlinePlayer => {
66
72
  const {
67
73
  eventHandlers
@@ -179,14 +185,6 @@ export class MediaCardInternal extends Component {
179
185
  ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode
180
186
  });
181
187
  }
182
-
183
- /**
184
- * We want to call provided `eventHandlers.media.onClick` when it's provided,
185
- * but we also don't want to call it when it's a video and inline video player is enabled.
186
- * This is due to consumers normally process this onClick call by opening media viewer and
187
- * we don't want that to happened described above text.
188
- */
189
-
190
188
  render() {
191
189
  const {
192
190
  contextIdentifierProvider,
@@ -35,15 +35,14 @@ import { RenderTracking } from '../../react/utils/performance/RenderTracking';
35
35
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
36
36
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
37
37
  const packageName = "@atlaskit/renderer";
38
- const packageVersion = "107.3.2";
38
+ const packageVersion = "107.3.4";
39
39
  export class Renderer extends PureComponent {
40
- /**
41
- * This is used in measuring the Renderer Mount time and is then
42
- * deleted once that measurement occurs.
43
- */
44
-
45
40
  constructor(props) {
46
41
  super(props);
42
+ /**
43
+ * This is used in measuring the Renderer Mount time and is then
44
+ * deleted once that measurement occurs.
45
+ */
47
46
  _defineProperty(this, "renderedMeasurementDistortedDurationMonitor", getDistortedDurationMonitor());
48
47
  _defineProperty(this, "featureFlags", memoizeOne(featureFlags => {
49
48
  const normalizedFeatureFlags = normalizeFeatureFlags(featureFlags, {
@@ -1,6 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { themed } from '@atlaskit/theme/components';
3
- import { gridSize, fontFamily, fontSize, borderRadius } from '@atlaskit/theme/constants';
3
+ import { gridSize, fontFamily, fontSize } from '@atlaskit/theme/constants';
4
4
  import * as colors from '@atlaskit/theme/colors';
5
5
  import { headingSizes as headingSizesImport } from '@atlaskit/theme/typography';
6
6
  import { tableSharedStyle, columnLayoutSharedStyle, blockquoteSharedStyles, headingsSharedStyles, ruleSharedStyles, whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, mediaSingleSharedStyle, TableSharedCssClassName, tableMarginTop, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, richMediaClassName, tasksAndDecisionsStyles, smartCardSharedStyles, tableCellPadding, textColorStyles, codeBlockInListSafariFix } from '@atlaskit/editor-common/styles';
@@ -367,7 +367,10 @@ export const rendererStyles = wrapperProps => theme => {
367
367
  }
368
368
 
369
369
  & span[data-placeholder] {
370
- color: ${colors.placeholderText(themeProps)};
370
+ color: ${themed({
371
+ light: `var(--ds-text-subtlest, ${colors.N200})`,
372
+ dark: `var(--ds-text-subtlest, ${colors.DN200})`
373
+ })(themeProps)};
371
374
  }
372
375
 
373
376
  ${whitespaceSharedStyles};
@@ -398,7 +401,7 @@ export const rendererStyles = wrapperProps => theme => {
398
401
  light: `var(--ds-background-neutral, ${colors.N30A})`,
399
402
  dark: `var(--ds-background-neutral, ${colors.DN70})`
400
403
  })(themeProps)};
401
- border-radius: ${borderRadius()}px;
404
+ border-radius: ${"var(--ds-radius-100, 3px)"};
402
405
  color: ${themed({
403
406
  light: `var(--ds-text, ${colors.N800})`,
404
407
  dark: `var(--ds-text, ${colors.DN600})`
@@ -637,7 +640,7 @@ export const rendererStyles = wrapperProps => theme => {
637
640
 
638
641
  grid-template-columns: minmax(0, 1fr);
639
642
  position: relative;
640
- border-radius: ${borderRadius()}px;
643
+ border-radius: ${"var(--ds-radius-100, 3px)"};
641
644
 
642
645
  /*
643
646
  * The overall renderer has word-wrap: break; which causes issues with
@@ -7,13 +7,13 @@ import { SortOrder } from '@atlaskit/editor-common/types';
7
7
  import { sortingIconMessages } from '../messages';
8
8
  import { injectIntl } from 'react-intl-next';
9
9
  import { RendererCssClassName } from '../consts';
10
- export let StatusClassNames;
11
- (function (StatusClassNames) {
10
+ export let StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
12
11
  StatusClassNames["ASC"] = "sorting-icon-svg__asc";
13
12
  StatusClassNames["DESC"] = "sorting-icon-svg__desc";
14
13
  StatusClassNames["NO_ORDER"] = "sorting-icon-svg__no_order";
15
14
  StatusClassNames["SORTING_NOT_ALLOWED"] = "sorting-icon-svg__not-allowed";
16
- })(StatusClassNames || (StatusClassNames = {}));
15
+ return StatusClassNames;
16
+ }({});
17
17
  const buttonStyles = css`
18
18
  position: absolute;
19
19
  display: flex;
@@ -1,7 +1,7 @@
1
- export let InsertDraftPosition;
2
- (function (InsertDraftPosition) {
1
+ export let InsertDraftPosition = /*#__PURE__*/function (InsertDraftPosition) {
3
2
  InsertDraftPosition["AROUND_TEXT"] = "AROUND_TEXT";
4
3
  InsertDraftPosition["START"] = "START";
5
4
  InsertDraftPosition["END"] = "END";
6
5
  InsertDraftPosition["INSIDE"] = "INSIDE";
7
- })(InsertDraftPosition || (InsertDraftPosition = {}));
6
+ return InsertDraftPosition;
7
+ }({});
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "107.3.2",
3
+ "version": "107.3.4",
4
4
  "sideEffects": false
5
5
  }
@@ -10,15 +10,14 @@ import { createAnnotationStep, getPosFromRange } from '../steps';
10
10
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
11
11
  import { getIndexMatch } from './matches-utils';
12
12
  var RendererActions = /*#__PURE__*/function () {
13
- // This is our psuedo feature flag for now
14
- // This module can only be used when wrapped with
15
- // the <RendererContext> component for now.
16
-
17
13
  // Any kind of refence is allowed
18
14
 
19
15
  function RendererActions() {
20
16
  var initFromContext = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
21
17
  _classCallCheck(this, RendererActions);
18
+ // This is our psuedo feature flag for now
19
+ // This module can only be used when wrapped with
20
+ // the <RendererContext> component for now.
22
21
  _defineProperty(this, "initFromContext", false);
23
22
  this.initFromContext = initFromContext;
24
23
  this.transformer = new JSONTransformer();
@@ -1,12 +1,11 @@
1
- export var EVENT_TYPE;
2
- (function (EVENT_TYPE) {
1
+ export var EVENT_TYPE = /*#__PURE__*/function (EVENT_TYPE) {
3
2
  EVENT_TYPE["OPERATIONAL"] = "operational";
4
3
  EVENT_TYPE["SCREEN"] = "screen";
5
4
  EVENT_TYPE["TRACK"] = "track";
6
5
  EVENT_TYPE["UI"] = "ui";
7
- })(EVENT_TYPE || (EVENT_TYPE = {}));
8
- export var ACTION;
9
- (function (ACTION) {
6
+ return EVENT_TYPE;
7
+ }({});
8
+ export var ACTION = /*#__PURE__*/function (ACTION) {
10
9
  ACTION["STARTED"] = "started";
11
10
  ACTION["RENDERED"] = "rendered";
12
11
  ACTION["RE_RENDERED"] = "reRendered";
@@ -31,9 +30,9 @@ export var ACTION;
31
30
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
32
31
  ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
33
32
  ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
34
- })(ACTION || (ACTION = {}));
35
- export var ACTION_SUBJECT;
36
- (function (ACTION_SUBJECT) {
33
+ return ACTION;
34
+ }({});
35
+ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
37
36
  ACTION_SUBJECT["RENDERER"] = "renderer";
38
37
  ACTION_SUBJECT["BUTTON"] = "button";
39
38
  ACTION_SUBJECT["ANCHOR_LINK"] = "anchorLink";
@@ -44,12 +43,13 @@ export var ACTION_SUBJECT;
44
43
  ACTION_SUBJECT["LINK"] = "link";
45
44
  ACTION_SUBJECT["ANNOTATION"] = "annotation";
46
45
  ACTION_SUBJECT["MEDIA"] = "media";
47
- })(ACTION_SUBJECT || (ACTION_SUBJECT = {}));
48
- export var ACTION_SUBJECT_ID;
49
- (function (ACTION_SUBJECT_ID) {
46
+ return ACTION_SUBJECT;
47
+ }({});
48
+ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
50
49
  ACTION_SUBJECT_ID["HEADING_ANCHOR_LINK"] = "headingAnchorLink";
51
50
  ACTION_SUBJECT_ID["LINK"] = "link";
52
51
  ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
53
52
  ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
54
53
  ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
55
- })(ACTION_SUBJECT_ID || (ACTION_SUBJECT_ID = {}));
54
+ return ACTION_SUBJECT_ID;
55
+ }({});
@@ -1,17 +1,17 @@
1
- export var PLATFORM;
2
- (function (PLATFORM) {
1
+ export var PLATFORM = /*#__PURE__*/function (PLATFORM) {
3
2
  PLATFORM["NATIVE"] = "mobileNative";
4
3
  PLATFORM["HYBRID"] = "mobileHybrid";
5
4
  PLATFORM["WEB"] = "web";
6
- })(PLATFORM || (PLATFORM = {}));
7
- export var MODE;
8
- (function (MODE) {
5
+ return PLATFORM;
6
+ }({});
7
+ export var MODE = /*#__PURE__*/function (MODE) {
9
8
  MODE["RENDERER"] = "renderer";
10
9
  MODE["EDITOR"] = "editor";
11
- })(MODE || (MODE = {}));
12
- export var RESOLVE_METHOD;
13
- (function (RESOLVE_METHOD) {
10
+ return MODE;
11
+ }({});
12
+ export var RESOLVE_METHOD = /*#__PURE__*/function (RESOLVE_METHOD) {
14
13
  RESOLVE_METHOD["COMPONENT"] = "component";
15
14
  RESOLVE_METHOD["CONSUMER"] = "consumer";
16
15
  RESOLVE_METHOD["ORPHANED"] = "orphaned";
17
- })(RESOLVE_METHOD || (RESOLVE_METHOD = {}));
16
+ return RESOLVE_METHOD;
17
+ }({});
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,15 +7,15 @@
6
7
  */
7
8
  //
8
9
  export default {
9
- 'fabric.editor.codeBlockCopyButton.copiedToClipboard': '⁣⁢Copied!⁡⁡؜؜⁠؜⁡‌⁡‍‍⁣⁤',
10
- 'fabric.editor.codeBlockCopyButton.copyToClipboard': '⁣⁢Copy⁠‍؜‍⁠‍‌؜؜‍⁠⁡⁠⁠‍⁠⁣⁤',
11
10
  'fabric.editor.headingLink.ascOrderLabel': '⁣⁢Sort column Z to A؜‍‍‌‌⁠؜‍‍⁣⁤',
12
11
  'fabric.editor.headingLink.ascSortingLabel': '⁣⁢ascending⁡؜⁠⁠‍‍⁠‍⁡⁡⁡⁣⁤',
13
12
  'fabric.editor.headingLink.copied': '⁣⁢Copied!؜‍؜؜⁠‌؜⁣⁤',
14
13
  'fabric.editor.headingLink.copyAnchorLink': '⁣⁢Copy link to heading؜‍⁠؜⁡⁡⁠‍‍⁠‍⁡⁠‌⁡‍‍⁠⁣⁤',
15
14
  'fabric.editor.headingLink.copyAriaLabel': '⁣⁢Copy‍‍‍؜‍؜؜⁡‍⁡‍‍‍⁣⁤',
16
- 'fabric.editor.headingLink.descOrderLabel': "⁣⁢⚠️ You can't sort a table with merged cell⁠⁠‍⁠⁡؜⁡⁣⁤",
15
+ 'fabric.editor.headingLink.descOrderLabel': '⁣⁢Clear sorting؜‌؜⁠⁠‌⁠‌؜‌‌⁣⁤',
16
+ 'fabric.editor.headingLink.descSortingLabel': '⁣⁢descending؜‌⁡‌⁡⁠⁡⁠‍‌⁡⁡⁡؜⁣⁤',
17
17
  'fabric.editor.headingLink.failedToCopy': '⁣⁢Copy failed⁠⁠‌⁠‌‍‌⁣⁤',
18
+ 'fabric.editor.headingLink.invalidLabel': "⁣⁢⚠️ You can't sort a table with merged cells؜‌⁡⁡؜‌‌⁡⁣⁤",
18
19
  'fabric.editor.headingLink.noOrderLabel': '⁣⁢Sort column A to Z‌⁠؜؜⁡⁡‍‍‍‌⁠⁣⁤',
19
- 'fabric.editor.headingLink.noneSortingLabel': '⁣⁢descending⁠؜⁠‌‍‌؜⁡؜⁣⁤'
20
+ 'fabric.editor.headingLink.noneSortingLabel': '⁣⁢none⁡؜⁡⁡؜⁠⁠⁣⁤'
20
21
  };
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  import { useEffect, useRef, useState } from 'react';
6
6
  export var useInViewport = function useInViewport() {
7
7
  var trackingRef = useRef(null);
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
3
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  import React from 'react';
6
6
  var resizeObserver;
7
7
  var nodeToCallback = new WeakMap();
@@ -31,19 +31,18 @@ function mergeMarks(marksAndNodes) {
31
31
  }, []);
32
32
  }
33
33
  var ReactSerializer = /*#__PURE__*/function () {
34
- /**
35
- * The reason we have this extra array here is because we need to generate the same unique
36
- * heading id for 2 different nodes: headers and expands (check the implementation of
37
- * `getUniqueHeadingId` for more info).
38
- *
39
- * We will eventually need to refactor the current approach to generate unique ids
40
- * for headers under this ticket -> https://product-fabric.atlassian.net/browse/ED-9668
41
- */
42
-
43
34
  function ReactSerializer(init) {
44
35
  var _this = this;
45
36
  _classCallCheck(this, ReactSerializer);
46
37
  _defineProperty(this, "headingIds", []);
38
+ /**
39
+ * The reason we have this extra array here is because we need to generate the same unique
40
+ * heading id for 2 different nodes: headers and expands (check the implementation of
41
+ * `getUniqueHeadingId` for more info).
42
+ *
43
+ * We will eventually need to refactor the current approach to generate unique ids
44
+ * for headers under this ticket -> https://product-fabric.atlassian.net/browse/ED-9668
45
+ */
47
46
  _defineProperty(this, "expandHeadingIds", []);
48
47
  _defineProperty(this, "allowCopyToClipboard", false);
49
48
  _defineProperty(this, "allowWrapCodeBlock", false);