@atlaskit/editor-common 84.2.0 → 84.3.1

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 (70) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/afm-jira/tsconfig.json +3 -0
  3. package/dist/cjs/element-browser/components/CategoryList.js +5 -18
  4. package/dist/cjs/element-browser/components/ElementList/ElementList.js +5 -5
  5. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +20 -31
  6. package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +8 -17
  7. package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -2
  8. package/dist/cjs/mark/commands.js +2 -7
  9. package/dist/cjs/messages/annotation.js +1 -1
  10. package/dist/cjs/monitoring/error.js +1 -1
  11. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +3 -2
  12. package/dist/cjs/styles/shared/annotation.js +2 -34
  13. package/dist/cjs/styles/shared/smartCard.js +1 -1
  14. package/dist/cjs/ui/DropList/index.js +1 -1
  15. package/dist/cjs/utils/annotation/index.js +10 -18
  16. package/dist/cjs/utils/index.js +5 -1
  17. package/dist/cjs/utils/scroll-gutter.js +3 -0
  18. package/dist/cjs/utils/validator.js +5 -5
  19. package/dist/cjs/whitespace/index.js +18 -0
  20. package/dist/es2019/element-browser/components/CategoryList.js +5 -14
  21. package/dist/es2019/element-browser/components/ElementList/ElementList.js +6 -6
  22. package/dist/es2019/element-browser/components/StatelessElementBrowser.js +20 -31
  23. package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +8 -17
  24. package/dist/es2019/extensibility/ExtensionNodeWrapper.js +1 -1
  25. package/dist/es2019/mark/commands.js +3 -10
  26. package/dist/es2019/messages/annotation.js +1 -1
  27. package/dist/es2019/monitoring/error.js +1 -1
  28. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +2 -1
  29. package/dist/es2019/styles/shared/annotation.js +3 -35
  30. package/dist/es2019/styles/shared/smartCard.js +2 -2
  31. package/dist/es2019/ui/DropList/index.js +1 -1
  32. package/dist/es2019/utils/annotation/index.js +11 -21
  33. package/dist/es2019/utils/index.js +4 -1
  34. package/dist/es2019/utils/scroll-gutter.js +3 -0
  35. package/dist/es2019/utils/validator.js +6 -6
  36. package/dist/es2019/whitespace/index.js +1 -0
  37. package/dist/esm/element-browser/components/CategoryList.js +5 -18
  38. package/dist/esm/element-browser/components/ElementList/ElementList.js +6 -6
  39. package/dist/esm/element-browser/components/StatelessElementBrowser.js +20 -31
  40. package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +8 -17
  41. package/dist/esm/extensibility/ExtensionNodeWrapper.js +1 -1
  42. package/dist/esm/mark/commands.js +3 -8
  43. package/dist/esm/messages/annotation.js +1 -1
  44. package/dist/esm/monitoring/error.js +1 -1
  45. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +2 -1
  46. package/dist/esm/styles/shared/annotation.js +3 -35
  47. package/dist/esm/styles/shared/smartCard.js +2 -2
  48. package/dist/esm/ui/DropList/index.js +1 -1
  49. package/dist/esm/utils/annotation/index.js +11 -19
  50. package/dist/esm/utils/index.js +4 -1
  51. package/dist/esm/utils/scroll-gutter.js +3 -0
  52. package/dist/esm/utils/validator.js +6 -6
  53. package/dist/esm/whitespace/index.js +1 -0
  54. package/dist/types/types/annotation/index.d.ts +2 -2
  55. package/dist/types/utils/annotation/index.d.ts +2 -2
  56. package/dist/types/utils/index.d.ts +4 -1
  57. package/dist/types/utils/scroll-gutter.d.ts +3 -0
  58. package/dist/types/whitespace/index.d.ts +1 -0
  59. package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
  60. package/dist/types-ts4.5/utils/annotation/index.d.ts +2 -2
  61. package/dist/types-ts4.5/utils/index.d.ts +4 -1
  62. package/dist/types-ts4.5/utils/scroll-gutter.d.ts +3 -0
  63. package/dist/types-ts4.5/whitespace/index.d.ts +1 -0
  64. package/package.json +3 -8
  65. package/whitespace/package.json +15 -0
  66. /package/dist/cjs/{utils → whitespace}/whitespace.js +0 -0
  67. /package/dist/es2019/{utils → whitespace}/whitespace.js +0 -0
  68. /package/dist/esm/{utils → whitespace}/whitespace.js +0 -0
  69. /package/dist/types/{utils → whitespace}/whitespace.d.ts +0 -0
  70. /package/dist/types-ts4.5/{utils → whitespace}/whitespace.d.ts +0 -0
@@ -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.1",
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,18 +233,12 @@
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": {
242
240
  "type": "boolean"
243
241
  },
244
- "platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1": {
245
- "type": "boolean"
246
- },
247
242
  "platform.editor.simplify-inline-cards-in-code-blocks_jw6t1": {
248
243
  "type": "boolean"
249
244
  },
@@ -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