@atlaskit/renderer 104.0.1 → 105.0.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 (83) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/cjs/actions/index.js +5 -5
  3. package/dist/cjs/analytics/enums.js +1 -66
  4. package/dist/cjs/analytics/unsupported-content.js +7 -7
  5. package/dist/cjs/react/index.js +11 -0
  6. package/dist/cjs/react/marks/alignment.js +1 -1
  7. package/dist/cjs/react/marks/link.js +4 -4
  8. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +2 -3
  9. package/dist/cjs/react/nodes/emoji.js +4 -2
  10. package/dist/cjs/react/nodes/heading.js +5 -5
  11. package/dist/cjs/react/nodes/media.js +5 -5
  12. package/dist/cjs/react/nodes/orderedList.js +30 -2
  13. package/dist/cjs/react/nodes/panel.js +2 -2
  14. package/dist/cjs/react/nodes/tableCell.js +9 -8
  15. package/dist/cjs/react/utils/performance/RenderTracking.js +2 -2
  16. package/dist/cjs/react/utils/use-select-all-trap.js +7 -7
  17. package/dist/cjs/render-document.js +7 -7
  18. package/dist/cjs/text/nodes/orderedList.js +4 -1
  19. package/dist/cjs/ui/Expand.js +4 -4
  20. package/dist/cjs/ui/Renderer/ErrorBoundary.js +3 -3
  21. package/dist/cjs/ui/Renderer/index.js +22 -19
  22. package/dist/cjs/ui/annotations/hooks/use-events.js +5 -5
  23. package/dist/cjs/ui/annotations/selection/mounter.js +17 -17
  24. package/dist/cjs/ui/renderer-props.js +1 -1
  25. package/dist/cjs/version.json +1 -1
  26. package/dist/es2019/actions/index.js +1 -1
  27. package/dist/es2019/analytics/enums.js +1 -60
  28. package/dist/es2019/analytics/unsupported-content.js +1 -1
  29. package/dist/es2019/react/index.js +10 -0
  30. package/dist/es2019/react/marks/alignment.js +1 -1
  31. package/dist/es2019/react/marks/link.js +1 -1
  32. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +5 -4
  33. package/dist/es2019/react/nodes/emoji.js +4 -2
  34. package/dist/es2019/react/nodes/heading.js +1 -1
  35. package/dist/es2019/react/nodes/media.js +1 -1
  36. package/dist/es2019/react/nodes/orderedList.js +26 -2
  37. package/dist/es2019/react/nodes/panel.js +2 -2
  38. package/dist/es2019/react/nodes/tableCell.js +3 -2
  39. package/dist/es2019/react/utils/performance/RenderTracking.js +1 -1
  40. package/dist/es2019/react/utils/use-select-all-trap.js +1 -1
  41. package/dist/es2019/render-document.js +1 -1
  42. package/dist/es2019/text/nodes/orderedList.js +3 -1
  43. package/dist/es2019/ui/Expand.js +1 -1
  44. package/dist/es2019/ui/Renderer/ErrorBoundary.js +1 -1
  45. package/dist/es2019/ui/Renderer/index.js +6 -3
  46. package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
  47. package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
  48. package/dist/es2019/ui/renderer-props.js +1 -1
  49. package/dist/es2019/version.json +1 -1
  50. package/dist/esm/actions/index.js +1 -1
  51. package/dist/esm/analytics/enums.js +1 -60
  52. package/dist/esm/analytics/unsupported-content.js +1 -1
  53. package/dist/esm/react/index.js +11 -0
  54. package/dist/esm/react/marks/alignment.js +1 -1
  55. package/dist/esm/react/marks/link.js +1 -1
  56. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +3 -3
  57. package/dist/esm/react/nodes/emoji.js +4 -2
  58. package/dist/esm/react/nodes/heading.js +1 -1
  59. package/dist/esm/react/nodes/media.js +1 -1
  60. package/dist/esm/react/nodes/orderedList.js +26 -2
  61. package/dist/esm/react/nodes/panel.js +2 -2
  62. package/dist/esm/react/nodes/tableCell.js +3 -2
  63. package/dist/esm/react/utils/performance/RenderTracking.js +1 -1
  64. package/dist/esm/react/utils/use-select-all-trap.js +1 -1
  65. package/dist/esm/render-document.js +1 -1
  66. package/dist/esm/text/nodes/orderedList.js +3 -1
  67. package/dist/esm/ui/Expand.js +1 -1
  68. package/dist/esm/ui/Renderer/ErrorBoundary.js +1 -1
  69. package/dist/esm/ui/Renderer/index.js +6 -3
  70. package/dist/esm/ui/annotations/hooks/use-events.js +1 -1
  71. package/dist/esm/ui/annotations/selection/mounter.js +1 -1
  72. package/dist/esm/ui/renderer-props.js +1 -1
  73. package/dist/esm/version.json +1 -1
  74. package/dist/types/analytics/enums.d.ts +0 -49
  75. package/dist/types/analytics/events.d.ts +2 -1
  76. package/dist/types/react/index.d.ts +4 -0
  77. package/dist/types/react/nodes/emoji.d.ts +2 -0
  78. package/dist/types/react/nodes/orderedList.d.ts +4 -1
  79. package/dist/types/react/utils/performance/RenderTracking.d.ts +1 -1
  80. package/dist/types/renderer-context.d.ts +1 -3
  81. package/dist/types/ui/renderer-props.d.ts +5 -2
  82. package/package.json +16 -15
  83. package/report.api.md +12 -100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "104.0.1",
3
+ "version": "105.0.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,29 +24,30 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^24.0.0",
28
- "@atlaskit/adf-utils": "^17.1.0",
27
+ "@atlaskit/adf-schema": "^25.0.0",
28
+ "@atlaskit/adf-utils": "^18.0.0",
29
29
  "@atlaskit/analytics-listeners": "^8.3.0",
30
30
  "@atlaskit/analytics-namespaced-context": "^6.5.0",
31
31
  "@atlaskit/analytics-next": "^8.2.0",
32
32
  "@atlaskit/button": "^16.5.0",
33
33
  "@atlaskit/code": "^14.4.0",
34
- "@atlaskit/editor-common": "^71.0.0",
34
+ "@atlaskit/editor-common": "^72.0.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.8.0",
36
36
  "@atlaskit/editor-palette": "0.1.0",
37
- "@atlaskit/editor-shared-styles": "^2.2.0",
37
+ "@atlaskit/editor-shared-styles": "^2.3.0",
38
+ "@atlaskit/emoji": "^67.0.0",
38
39
  "@atlaskit/icon": "^21.11.0",
39
- "@atlaskit/media-card": "^74.3.0",
40
- "@atlaskit/media-client": "^19.0.0",
41
- "@atlaskit/media-common": "^2.17.0",
40
+ "@atlaskit/media-card": "^74.4.0",
41
+ "@atlaskit/media-client": "^19.1.0",
42
+ "@atlaskit/media-common": "^2.18.0",
42
43
  "@atlaskit/media-filmstrip": "^46.1.0",
43
44
  "@atlaskit/media-ui": "^22.2.0",
44
- "@atlaskit/media-viewer": "^47.2.0",
45
- "@atlaskit/smart-card": "^23.9.0",
45
+ "@atlaskit/media-viewer": "^47.3.0",
46
+ "@atlaskit/smart-card": "^23.10.0",
46
47
  "@atlaskit/status": "^1.2.0",
47
48
  "@atlaskit/task-decision": "^17.5.0",
48
49
  "@atlaskit/theme": "^12.2.0",
49
- "@atlaskit/tokens": "^0.12.0",
50
+ "@atlaskit/tokens": "^0.13.0",
50
51
  "@atlaskit/tooltip": "^17.6.0",
51
52
  "@babel/runtime": "^7.0.0",
52
53
  "@emotion/react": "^11.7.1",
@@ -61,7 +62,7 @@
61
62
  },
62
63
  "peerDependencies": {
63
64
  "@atlaskit/link-provider": "^1.3.4",
64
- "@atlaskit/media-core": "^34.0.0",
65
+ "@atlaskit/media-core": "^34.0.1",
65
66
  "react": "^16.8.0",
66
67
  "react-dom": "^16.8.0"
67
68
  },
@@ -70,13 +71,13 @@
70
71
  "@atlaskit/avatar": "^21.1.0",
71
72
  "@atlaskit/css-reset": "^6.3.0",
72
73
  "@atlaskit/docs": "*",
73
- "@atlaskit/editor-core": "^176.0.0",
74
- "@atlaskit/editor-test-helpers": "^17.2.0",
74
+ "@atlaskit/editor-core": "^177.0.0",
75
+ "@atlaskit/editor-test-helpers": "^18.0.0",
75
76
  "@atlaskit/link-provider": "^1.3.0",
76
77
  "@atlaskit/logo": "^13.10.0",
77
78
  "@atlaskit/media-core": "^34.0.0",
78
79
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
79
- "@atlaskit/media-test-helpers": "^30.0.0",
80
+ "@atlaskit/media-test-helpers": "^30.1.0",
80
81
  "@atlaskit/mention": "^21.0.0",
81
82
  "@atlaskit/navigation-next": "^9.0.0",
82
83
  "@atlaskit/profilecard": "^18.0.0",
package/report.api.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- API Report Version: 2.2 -->
1
+ <!-- API Report Version: 2.3 -->
2
2
 
3
3
  ## API Report File for "@atlaskit/renderer"
4
4
 
@@ -16,9 +16,15 @@
16
16
  ```ts
17
17
  /// <reference types="react" />
18
18
 
19
+ import { ACTION } from '@atlaskit/editor-common/analytics';
20
+ import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
21
+ import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
19
22
  import type { ADFStage } from '@atlaskit/editor-common/validator';
20
23
  import type { AnnotationProviders } from '@atlaskit/editor-common/types';
21
24
  import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
25
+ import { DocNode } from '@atlaskit/adf-schema';
26
+ import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
27
+ import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
22
28
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
23
29
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
24
30
  import { Fragment } from 'prosemirror-model';
@@ -40,92 +46,6 @@ import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/u
40
46
  import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
41
47
  import type { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
42
48
 
43
- // @public (undocumented)
44
- enum ACTION {
45
- // (undocumented)
46
- CLICKED = 'clicked',
47
- // (undocumented)
48
- CLOSED = 'closed',
49
- // (undocumented)
50
- CRASHED = 'unhandledErrorCaught',
51
- // (undocumented)
52
- CREATE_NOT_ALLOWED = 'createNotAllowed',
53
- // (undocumented)
54
- DELETED = 'deleted',
55
- // (undocumented)
56
- EDITED = 'edited',
57
- // (undocumented)
58
- INSERTED = 'inserted',
59
- // (undocumented)
60
- INVALID_PROSEMIRROR_DOCUMENT = 'invalidProsemirrorDocument',
61
- // (undocumented)
62
- MEDIA_LINK_TRANSFORMED = 'mediaLinkTransformed',
63
- // (undocumented)
64
- OPENED = 'opened',
65
- // (undocumented)
66
- RE_RENDERED = 'reRendered',
67
- // (undocumented)
68
- RENDERED = 'rendered',
69
- // (undocumented)
70
- RENDERER_TTI = 'tti',
71
- // (undocumented)
72
- RESOLVED = 'resolved',
73
- // (undocumented)
74
- SELECT_ALL_CAUGHT = 'selectAllCaught',
75
- // (undocumented)
76
- SELECT_ALL_ESCAPED = 'selectAllEscaped',
77
- // (undocumented)
78
- SORT_COLUMN = 'sortedColumn',
79
- // (undocumented)
80
- SORT_COLUMN_NOT_ALLOWED = 'sortColumnNotAllowed',
81
- // (undocumented)
82
- STARTED = 'started',
83
- // (undocumented)
84
- TOGGLE_EXPAND = 'toggleExpand',
85
- // (undocumented)
86
- UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = 'unsupportedContentLevelsTrackingErrored',
87
- // (undocumented)
88
- UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED = 'unsupportedContentLevelsTrackingSucceeded',
89
- // (undocumented)
90
- VIEWED = 'viewed',
91
- // (undocumented)
92
- VISITED = 'visited',
93
- }
94
-
95
- // @public (undocumented)
96
- enum ACTION_SUBJECT {
97
- // (undocumented)
98
- ANCHOR_LINK = 'anchorLink',
99
- // (undocumented)
100
- ANNOTATION = 'annotation',
101
- // (undocumented)
102
- BUTTON = 'button',
103
- // (undocumented)
104
- EXPAND = 'expand',
105
- // (undocumented)
106
- LINK = 'link',
107
- // (undocumented)
108
- MEDIA = 'media',
109
- // (undocumented)
110
- MEDIA_SINGLE = 'mediaSingle',
111
- // (undocumented)
112
- NESTED_EXPAND = 'nestedExpand',
113
- // (undocumented)
114
- RENDERER = 'renderer',
115
- // (undocumented)
116
- TABLE = 'table',
117
- }
118
-
119
- // @public (undocumented)
120
- enum ACTION_SUBJECT_ID {
121
- // (undocumented)
122
- HEADING_ANCHOR_LINK = 'headingAnchorLink',
123
- // (undocumented)
124
- INLINE_COMMENT = 'inlineComment',
125
- // (undocumented)
126
- LINK = 'link',
127
- }
128
-
129
49
  // @public (undocumented)
130
50
  export class ADFEncoder<T> {
131
51
  constructor(createTransformerWithSchema: TransformerProvider<T>);
@@ -248,18 +168,6 @@ type ComponentCrashErrorAEP = AEP<
248
168
  // @public (undocumented)
249
169
  type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
250
170
 
251
- // @public (undocumented)
252
- enum EVENT_TYPE {
253
- // (undocumented)
254
- OPERATIONAL = 'operational',
255
- // (undocumented)
256
- SCREEN = 'screen',
257
- // (undocumented)
258
- TRACK = 'track',
259
- // (undocumented)
260
- UI = 'ui',
261
- }
262
-
263
171
  // @public (undocumented)
264
172
  type ExpandAEP = AEP<
265
173
  ACTION.TOGGLE_EXPAND,
@@ -419,6 +327,8 @@ interface ReactSerializerInit {
419
327
  // (undocumented)
420
328
  disableHeadingIDs?: boolean;
421
329
  // (undocumented)
330
+ emojiResourceConfig?: EmojiResourceConfig;
331
+ // (undocumented)
422
332
  eventHandlers?: EventHandlers;
423
333
  // (undocumented)
424
334
  extensionHandlers?: ExtensionHandlers;
@@ -520,7 +430,9 @@ export interface RendererProps {
520
430
  // (undocumented)
521
431
  disableHeadingIDs?: boolean;
522
432
  // (undocumented)
523
- document: any;
433
+ document: DocNode;
434
+ // (undocumented)
435
+ emojiResourceConfig?: EmojiResourceConfig;
524
436
  // (undocumented)
525
437
  enableSsrInlineScripts?: boolean;
526
438
  // (undocumented)