@atlaskit/editor-common 84.2.0 → 84.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-jira/tsconfig.json +3 -0
  3. package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -2
  4. package/dist/cjs/mark/commands.js +2 -7
  5. package/dist/cjs/messages/annotation.js +1 -1
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +3 -2
  8. package/dist/cjs/styles/shared/annotation.js +2 -34
  9. package/dist/cjs/styles/shared/smartCard.js +1 -1
  10. package/dist/cjs/ui/DropList/index.js +1 -1
  11. package/dist/cjs/utils/annotation/index.js +10 -18
  12. package/dist/cjs/utils/index.js +5 -1
  13. package/dist/cjs/utils/scroll-gutter.js +3 -0
  14. package/dist/cjs/utils/validator.js +5 -5
  15. package/dist/cjs/whitespace/index.js +18 -0
  16. package/dist/es2019/extensibility/ExtensionNodeWrapper.js +1 -1
  17. package/dist/es2019/mark/commands.js +3 -10
  18. package/dist/es2019/messages/annotation.js +1 -1
  19. package/dist/es2019/monitoring/error.js +1 -1
  20. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +2 -1
  21. package/dist/es2019/styles/shared/annotation.js +3 -35
  22. package/dist/es2019/styles/shared/smartCard.js +2 -2
  23. package/dist/es2019/ui/DropList/index.js +1 -1
  24. package/dist/es2019/utils/annotation/index.js +11 -21
  25. package/dist/es2019/utils/index.js +4 -1
  26. package/dist/es2019/utils/scroll-gutter.js +3 -0
  27. package/dist/es2019/utils/validator.js +6 -6
  28. package/dist/es2019/whitespace/index.js +1 -0
  29. package/dist/esm/extensibility/ExtensionNodeWrapper.js +1 -1
  30. package/dist/esm/mark/commands.js +3 -8
  31. package/dist/esm/messages/annotation.js +1 -1
  32. package/dist/esm/monitoring/error.js +1 -1
  33. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +2 -1
  34. package/dist/esm/styles/shared/annotation.js +3 -35
  35. package/dist/esm/styles/shared/smartCard.js +2 -2
  36. package/dist/esm/ui/DropList/index.js +1 -1
  37. package/dist/esm/utils/annotation/index.js +11 -19
  38. package/dist/esm/utils/index.js +4 -1
  39. package/dist/esm/utils/scroll-gutter.js +3 -0
  40. package/dist/esm/utils/validator.js +6 -6
  41. package/dist/esm/whitespace/index.js +1 -0
  42. package/dist/types/types/annotation/index.d.ts +2 -2
  43. package/dist/types/utils/annotation/index.d.ts +2 -2
  44. package/dist/types/utils/index.d.ts +4 -1
  45. package/dist/types/utils/scroll-gutter.d.ts +3 -0
  46. package/dist/types/whitespace/index.d.ts +1 -0
  47. package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
  48. package/dist/types-ts4.5/utils/annotation/index.d.ts +2 -2
  49. package/dist/types-ts4.5/utils/index.d.ts +4 -1
  50. package/dist/types-ts4.5/utils/scroll-gutter.d.ts +3 -0
  51. package/dist/types-ts4.5/whitespace/index.d.ts +1 -0
  52. package/package.json +3 -5
  53. package/whitespace/package.json +15 -0
  54. /package/dist/cjs/{utils → whitespace}/whitespace.js +0 -0
  55. /package/dist/es2019/{utils → whitespace}/whitespace.js +0 -0
  56. /package/dist/esm/{utils → whitespace}/whitespace.js +0 -0
  57. /package/dist/types/{utils → whitespace}/whitespace.d.ts +0 -0
  58. /package/dist/types-ts4.5/{utils → whitespace}/whitespace.d.ts +0 -0
@@ -27,7 +27,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
27
27
  export { createCompareNodes } from './compareNodes';
28
28
  export { compose } from './compose';
29
29
  export { isTextInput } from './is-text-input';
30
- export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
30
+ /**
31
+ * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
32
+ */
33
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
31
34
  export { shouldForceTracking } from './should-force-tracking';
32
35
  export { getModeFromTheme } from './getModeFromTheme';
33
36
  export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from './get-performance-options';
@@ -1,3 +1,6 @@
1
1
  export const GUTTER_SIZE_IN_PX = 120; // Default gutter size
2
+ /**
3
+ * @deprecated - [ED-23844] only used in Editor Core
4
+ */
2
5
  export const GUTTER_SIZE_MOBILE_IN_PX = 36; // Gutter size for Mobile
3
6
  export const GUTTER_SELECTOR = '#editor-scroll-gutter';
@@ -1,6 +1,6 @@
1
1
  import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
2
2
  import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  export const ADFStages = {
5
5
  FINAL: 'final',
6
6
  STAGE_0: 'stage0'
@@ -236,7 +236,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
236
236
  return {
237
237
  type,
238
238
  attrs,
239
- ...(getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
239
+ ...(fg('editor_inline_comments_on_inline_nodes') ? {
240
240
  marks
241
241
  } : {})
242
242
  };
@@ -249,7 +249,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
249
249
  return {
250
250
  type,
251
251
  attrs,
252
- ...(getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
252
+ ...(fg('editor_inline_comments_on_inline_nodes') ? {
253
253
  marks
254
254
  } : {})
255
255
  };
@@ -262,7 +262,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
262
262
  return {
263
263
  type,
264
264
  attrs,
265
- ...(getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
265
+ ...(fg('editor_inline_comments_on_inline_nodes') ? {
266
266
  marks
267
267
  } : {})
268
268
  };
@@ -286,7 +286,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
286
286
  return {
287
287
  type,
288
288
  attrs,
289
- ...(getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? {
289
+ ...(fg('editor_inline_comments_on_inline_nodes') ? {
290
290
  marks
291
291
  } : {})
292
292
  };
@@ -498,7 +498,7 @@ export const getValidNode = (originalNode, schema = defaultSchema, adfStage = 'f
498
498
  text: mentionText,
499
499
  accessLevel: ''
500
500
  },
501
- ...(getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
501
+ ...(fg('editor_inline_comments_on_inline_nodes') ? {
502
502
  marks
503
503
  } : {})
504
504
  };
@@ -0,0 +1 @@
1
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import classnames from 'classnames';
7
- import { ZERO_WIDTH_SPACE } from '../utils';
7
+ import { ZERO_WIDTH_SPACE } from '../whitespace';
8
8
  var styles = css({
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
10
10
  '&.inline-extension': {
@@ -2,7 +2,7 @@ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
2
2
  // eslint-disable-next-line no-duplicate-imports
3
3
 
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  var SMART_TO_ASCII = {
7
7
  '…': '...',
8
8
  '→': '->',
@@ -130,22 +130,17 @@ export var transformSmartCharsMentionsAndEmojis = function transformSmartCharsMe
130
130
  export var applyMarkOnRange = function applyMarkOnRange(from, to, removeMark, mark, tr) {
131
131
  var schema = tr.doc.type.schema;
132
132
  var code = schema.marks.code;
133
- var inlineCard = schema.nodes.inlineCard;
134
133
  if (mark.type === code) {
135
- getBooleanFF('platform.editor.simplify-inline-cards-in-code-blocks_jw6t1') ? transformNonTextNodesToText(from, to, tr) : transformSmartCharsMentionsAndEmojis(from, to, tr);
134
+ fg('platform.editor.simplify-inline-cards-in-code-blocks_jw6t1') ? transformNonTextNodesToText(from, to, tr) : transformSmartCharsMentionsAndEmojis(from, to, tr);
136
135
  }
137
136
  tr.doc.nodesBetween(tr.mapping.map(from), tr.mapping.map(to), function (node, pos) {
138
- if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
137
+ if (fg('editor_inline_comments_on_inline_nodes')) {
139
138
  if (!node.isText) {
140
139
  var isAllowedInlineNode = ['emoji', 'status', 'date', 'mention', 'inlineCard'].includes(node.type.name);
141
140
  if (!isAllowedInlineNode) {
142
141
  return true;
143
142
  }
144
143
  }
145
- } else if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
146
- if (!node.isText && node.type !== inlineCard) {
147
- return true;
148
- }
149
144
  } else {
150
145
  if (!node.isText) {
151
146
  return true;
@@ -5,7 +5,7 @@ export var annotationMessages = defineMessages({
5
5
  defaultMessage: 'Comment',
6
6
  description: 'Create/add an inline comment based on the users selection'
7
7
  },
8
- // TODO: Remove this message when the platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz FF is removed
8
+ // TODO: Remove this message when the editor_inline_comments_on_inline_nodes FF is removed
9
9
  createCommentInvalid: {
10
10
  id: 'fabric.editor.createCommentInvalid',
11
11
  defaultMessage: 'You can only comment on text and headings',
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "84.2.0";
10
+ var packageVersion = "84.3.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -9,7 +9,8 @@ import React from 'react';
9
9
  import { jsx } from '@emotion/react';
10
10
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
11
11
  import { ErrorBoundary } from '../ui/ErrorBoundary';
12
- import { analyticsEventKey, browser, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, ZERO_WIDTH_SPACE } from '../utils';
12
+ import { analyticsEventKey, browser, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from '../utils';
13
+ import { ZERO_WIDTH_SPACE } from '../whitespace';
13
14
  import { generateUniqueNodeKey } from './generateUniqueNodeKey';
14
15
  export var inlineNodeViewClassname = 'inlineNodeView';
15
16
  function createNodeView(_ref) {
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
7
7
  export var annotationPrefix = 'ak-editor-annotation';
8
8
  export var AnnotationSharedClassNames = {
@@ -19,7 +19,7 @@ export var BlockAnnotationSharedClassNames = {
19
19
  var Yellow100 = 'rgb(255, 247, 214)';
20
20
  var Y200a = 'rgba(255, 196, 0, 0.82)';
21
21
  export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
22
- if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
22
+ if (fg('editor_inline_comments_on_inline_nodes')) {
23
23
  // NOTE: These styles are shared between renderer and editor. Sometimes they
24
24
  // need different selectors and other times they apply the same attributes
25
25
  // in a different way. For example in renderer the focus styles are an
@@ -49,38 +49,6 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
49
49
  borderBottomColor: "var(--ds-border-accent-yellow, ".concat(Y200a, ")")
50
50
  })
51
51
  };
52
- } else if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
53
- return {
54
- focus: css({
55
- background: "var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"),
56
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y300, ")")),
57
- boxShadow: "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"),
58
- cursor: 'pointer',
59
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
60
- '&:has(.card)': {
61
- fontSize: '1.5rem',
62
- lineHeight: '1.2rem',
63
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
64
- '& > *': {
65
- fontSize: '16px'
66
- }
67
- }
68
- }),
69
- blur: css({
70
- background: "var(--ds-background-accent-yellow-subtlest, ".concat(Yellow100, ")"),
71
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, ".concat(Y200a, ")")),
72
- cursor: 'pointer',
73
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
74
- '&:has(.card)': {
75
- fontSize: '1.5rem',
76
- lineHeight: '1.2rem',
77
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
78
- '& > *': {
79
- fontSize: '16px'
80
- }
81
- }
82
- })
83
- };
84
52
  } else {
85
53
  return {
86
54
  focus: css({
@@ -101,7 +69,7 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
101
69
  }
102
70
  };
103
71
  export var annotationSharedStyles = function annotationSharedStyles() {
104
- return getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
72
+ return fg('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
105
73
  css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\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.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\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"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
106
74
  css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\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.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\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"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
107
75
  };
@@ -3,7 +3,7 @@ var _templateObject;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
5
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags';
7
7
  import { N0, N40 } from '@atlaskit/theme/colors';
8
8
  import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
9
9
  import { SmartCardSharedCssClassName } from './smart-card';
@@ -11,4 +11,4 @@ export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-
11
11
  export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
12
12
 
13
13
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
- export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
14
+ export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, ".concat(Y75, ")"), ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, ".concat(Y300, ")"), ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(N60A, ", -1px 2px 3px ").concat(N60A), ")"), ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-200, 8px)", "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "84.2.0";
20
+ var packageVersion = "84.3.0";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,35 +1,27 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { AnnotationTypes } from '@atlaskit/adf-schema';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
4
4
  export var canApplyAnnotationOnRange = function canApplyAnnotationOnRange(rangeSelection, doc, schema) {
5
5
  var from = rangeSelection.from,
6
6
  to = rangeSelection.to;
7
7
  if (isNaN(from + to) || to - from <= 0 || to < 0 || from < 0) {
8
8
  return false;
9
9
  }
10
- var inlineCard = schema.nodes.inlineCard;
11
10
  var foundInvalid = false;
12
11
  doc.nodesBetween(rangeSelection.from, rangeSelection.to, function (node, _pos, parent) {
13
12
  // Special exception for hardBreak nodes
14
13
  if (schema.nodes.hardBreak === node.type) {
15
14
  return false;
16
15
  }
16
+
17
17
  // For block elements or text nodes, we want to check
18
18
  // if annotations are allowed inside this tree
19
19
  // or if we're leaf and not text
20
-
21
- if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
22
- if (getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
23
- var isAllowedInlineNode = ['emoji', 'status', 'date', 'mention', 'inlineCard'].includes(node.type.name);
24
- if (node.isInline && !node.isText && !isAllowedInlineNode || node.isLeaf && !node.isText && !isAllowedInlineNode || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
25
- foundInvalid = true;
26
- return false;
27
- }
28
- } else {
29
- if (node.isInline && !node.isText && node.type !== inlineCard || node.isLeaf && !node.isText && node.type !== inlineCard || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
30
- foundInvalid = true;
31
- return false;
32
- }
20
+ if (fg('editor_inline_comments_on_inline_nodes')) {
21
+ var isAllowedInlineNode = ['emoji', 'status', 'date', 'mention', 'inlineCard'].includes(node.type.name);
22
+ if (node.isInline && !node.isText && !isAllowedInlineNode || node.isLeaf && !node.isText && !isAllowedInlineNode || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
23
+ foundInvalid = true;
24
+ return false;
33
25
  }
34
26
  } else {
35
27
  if (node.isInline && !node.isText || node.isLeaf && !node.isText || node.isText && !(parent !== null && parent !== void 0 && parent.type.allowsMarkType(schema.marks.annotation))) {
@@ -99,7 +91,7 @@ export function containsAnyAnnotations(slice, state) {
99
91
  export function getRangeInlineNodeNames(_ref) {
100
92
  var doc = _ref.doc,
101
93
  pos = _ref.pos;
102
- if (!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
94
+ if (!fg('editor_inline_comments_on_inline_nodes')) {
103
95
  return undefined;
104
96
  }
105
97
  var nodeNames = new Set();
@@ -117,13 +109,13 @@ export function getRangeInlineNodeNames(_ref) {
117
109
  /**
118
110
  * This function returns a list of node types that are wrapped by an annotation mark.
119
111
  *
120
- * The `undefined` will be returned if `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is off.
112
+ * The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
121
113
  *
122
114
  * @todo: Do not forget to remove `undefined` when the
123
- * `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
115
+ * `editor_inline_comments_on_inline_nodes` is removed.
124
116
  */
125
117
  export function getAnnotationInlineNodeTypes(state, annotationId) {
126
- if (!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
118
+ if (!fg('editor_inline_comments_on_inline_nodes')) {
127
119
  return undefined;
128
120
  }
129
121
  var mark = state.schema.marks.annotation.create({
@@ -27,7 +27,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
27
27
  export { createCompareNodes } from './compareNodes';
28
28
  export { compose } from './compose';
29
29
  export { isTextInput } from './is-text-input';
30
- export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
30
+ /**
31
+ * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
32
+ */
33
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
31
34
  export { shouldForceTracking } from './should-force-tracking';
32
35
  export { getModeFromTheme } from './getModeFromTheme';
33
36
  export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from './get-performance-options';
@@ -1,3 +1,6 @@
1
1
  export var GUTTER_SIZE_IN_PX = 120; // Default gutter size
2
+ /**
3
+ * @deprecated - [ED-23844] only used in Editor Core
4
+ */
2
5
  export var GUTTER_SIZE_MOBILE_IN_PX = 36; // Gutter size for Mobile
3
6
  export var GUTTER_SELECTOR = '#editor-scroll-gutter';
@@ -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 { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
6
6
  import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
7
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
8
8
  export var ADFStages = {
9
9
  FINAL: 'final',
10
10
  STAGE_0: 'stage0'
@@ -248,7 +248,7 @@ export var getValidNode = function getValidNode(originalNode) {
248
248
  return _objectSpread({
249
249
  type: type,
250
250
  attrs: attrs
251
- }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
251
+ }, fg('editor_inline_comments_on_inline_nodes') ? {
252
252
  marks: marks
253
253
  } : {});
254
254
  }
@@ -260,7 +260,7 @@ export var getValidNode = function getValidNode(originalNode) {
260
260
  return _objectSpread({
261
261
  type: type,
262
262
  attrs: attrs
263
- }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
263
+ }, fg('editor_inline_comments_on_inline_nodes') ? {
264
264
  marks: marks
265
265
  } : {});
266
266
  }
@@ -272,7 +272,7 @@ export var getValidNode = function getValidNode(originalNode) {
272
272
  return _objectSpread({
273
273
  type: type,
274
274
  attrs: attrs
275
- }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
275
+ }, fg('editor_inline_comments_on_inline_nodes') ? {
276
276
  marks: marks
277
277
  } : {});
278
278
  }
@@ -295,7 +295,7 @@ export var getValidNode = function getValidNode(originalNode) {
295
295
  return _objectSpread({
296
296
  type: type,
297
297
  attrs: attrs
298
- }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? {
298
+ }, fg('editor_inline_comments_on_inline_nodes') ? {
299
299
  marks: marks
300
300
  } : {});
301
301
  }
@@ -502,7 +502,7 @@ export var getValidNode = function getValidNode(originalNode) {
502
502
  text: mentionText,
503
503
  accessLevel: ''
504
504
  }
505
- }, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz') ? {
505
+ }, fg('editor_inline_comments_on_inline_nodes') ? {
506
506
  marks: marks
507
507
  } : {});
508
508
  if (mentionAccess) {
@@ -0,0 +1 @@
1
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
@@ -85,10 +85,10 @@ export type InlineCommentViewComponentProps = {
85
85
  * Return a list of inline node types, which are wrapped by the annotation,
86
86
  * for annotation with given ID.
87
87
  *
88
- * The `undefined` will be returned if `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is off.
88
+ * The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
89
89
  *
90
90
  * @todo: Do not forget to remove `undefined` when the
91
- * `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
91
+ * `editor_inline_comments_on_inline_nodes` is removed.
92
92
  */
93
93
  getInlineNodeTypes: (annotationId: string) => string[] | undefined;
94
94
  };
@@ -21,10 +21,10 @@ export declare function getRangeInlineNodeNames({ doc, pos, }: {
21
21
  /**
22
22
  * This function returns a list of node types that are wrapped by an annotation mark.
23
23
  *
24
- * The `undefined` will be returned if `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is off.
24
+ * The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
25
25
  *
26
26
  * @todo: Do not forget to remove `undefined` when the
27
- * `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
27
+ * `editor_inline_comments_on_inline_nodes` is removed.
28
28
  */
29
29
  export declare function getAnnotationInlineNodeTypes(state: {
30
30
  doc: PMNode;
@@ -35,7 +35,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
35
35
  export { createCompareNodes } from './compareNodes';
36
36
  export { compose } from './compose';
37
37
  export { isTextInput } from './is-text-input';
38
- export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
38
+ /**
39
+ * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
40
+ */
41
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
39
42
  export type { Diff } from './types';
40
43
  export { shouldForceTracking } from './should-force-tracking';
41
44
  export { getModeFromTheme } from './getModeFromTheme';
@@ -1,3 +1,6 @@
1
1
  export declare const GUTTER_SIZE_IN_PX = 120;
2
+ /**
3
+ * @deprecated - [ED-23844] only used in Editor Core
4
+ */
2
5
  export declare const GUTTER_SIZE_MOBILE_IN_PX = 36;
3
6
  export declare const GUTTER_SELECTOR = "#editor-scroll-gutter";
@@ -0,0 +1 @@
1
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
@@ -85,10 +85,10 @@ export type InlineCommentViewComponentProps = {
85
85
  * Return a list of inline node types, which are wrapped by the annotation,
86
86
  * for annotation with given ID.
87
87
  *
88
- * The `undefined` will be returned if `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is off.
88
+ * The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
89
89
  *
90
90
  * @todo: Do not forget to remove `undefined` when the
91
- * `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
91
+ * `editor_inline_comments_on_inline_nodes` is removed.
92
92
  */
93
93
  getInlineNodeTypes: (annotationId: string) => string[] | undefined;
94
94
  };
@@ -21,10 +21,10 @@ export declare function getRangeInlineNodeNames({ doc, pos, }: {
21
21
  /**
22
22
  * This function returns a list of node types that are wrapped by an annotation mark.
23
23
  *
24
- * The `undefined` will be returned if `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is off.
24
+ * The `undefined` will be returned if `editor_inline_comments_on_inline_nodes` is off.
25
25
  *
26
26
  * @todo: Do not forget to remove `undefined` when the
27
- * `platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz` is removed.
27
+ * `editor_inline_comments_on_inline_nodes` is removed.
28
28
  */
29
29
  export declare function getAnnotationInlineNodeTypes(state: {
30
30
  doc: PMNode;
@@ -35,7 +35,10 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
35
35
  export { createCompareNodes } from './compareNodes';
36
36
  export { compose } from './compose';
37
37
  export { isTextInput } from './is-text-input';
38
- export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
38
+ /**
39
+ * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
40
+ */
41
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from '../whitespace';
39
42
  export type { Diff } from './types';
40
43
  export { shouldForceTracking } from './should-force-tracking';
41
44
  export { getModeFromTheme } from './getModeFromTheme';
@@ -1,3 +1,6 @@
1
1
  export declare const GUTTER_SIZE_IN_PX = 120;
2
+ /**
3
+ * @deprecated - [ED-23844] only used in Editor Core
4
+ */
2
5
  export declare const GUTTER_SIZE_MOBILE_IN_PX = 36;
3
6
  export declare const GUTTER_SELECTOR = "#editor-scroll-gutter";
@@ -0,0 +1 @@
1
+ export { ZERO_WIDTH_SPACE, ZERO_WIDTH_JOINER } from './whitespace';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "84.2.0",
3
+ "version": "84.3.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,6 +30,7 @@
30
30
  "runReact18": true
31
31
  },
32
32
  "af:exports": {
33
+ "./whitespace": "./src/whitespace/index.ts",
33
34
  "./event-dispatcher": "./src/event-dispatcher/index.ts",
34
35
  "./extensions": "./src/extensions.ts",
35
36
  "./extensibility": "./src/extensibility/index.ts",
@@ -232,10 +233,7 @@
232
233
  "platform.editor.inline_extension.extended_lcqdn": {
233
234
  "type": "boolean"
234
235
  },
235
- "platform.editor.allow-inline-comments-for-inline-nodes": {
236
- "type": "boolean"
237
- },
238
- "platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz": {
236
+ "editor_inline_comments_on_inline_nodes": {
239
237
  "type": "boolean"
240
238
  },
241
239
  "platform.editor.mbe-update-params-change": {
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/whitespace",
3
+ "main": "../dist/cjs/whitespace/index.js",
4
+ "module": "../dist/esm/whitespace/index.js",
5
+ "module:es2019": "../dist/es2019/whitespace/index.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/whitespace/index.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.4": {
10
+ "*": [
11
+ "../dist/types-ts4.5/whitespace/index.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
File without changes
File without changes
File without changes