@atlaskit/renderer 82.0.0 → 84.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 (139) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/cjs/actions/matches-utils.js +1 -1
  3. package/dist/cjs/analytics/enums.js +1 -1
  4. package/dist/cjs/analytics/events.js +1 -1
  5. package/dist/cjs/i18n/index.js +26 -26
  6. package/dist/cjs/index.js +8 -8
  7. package/dist/cjs/messages.js +4 -4
  8. package/dist/cjs/react/index.js +32 -12
  9. package/dist/cjs/react/marks/annotation.js +1 -1
  10. package/dist/cjs/react/marks/breakout.js +1 -1
  11. package/dist/cjs/react/marks/code.js +26 -4
  12. package/dist/cjs/react/marks/fragment.js +21 -0
  13. package/dist/cjs/react/marks/index.js +28 -19
  14. package/dist/cjs/react/nodes/codeBlock.js +17 -3
  15. package/dist/cjs/react/nodes/codeBlockCopyButton.js +2 -2
  16. package/dist/cjs/react/nodes/copy-text-provider.js +1 -1
  17. package/dist/cjs/react/nodes/date.js +2 -2
  18. package/dist/cjs/react/nodes/doc.js +1 -1
  19. package/dist/cjs/react/nodes/extension.js +1 -1
  20. package/dist/cjs/react/nodes/heading-anchor.js +2 -2
  21. package/dist/cjs/react/nodes/heading.js +2 -4
  22. package/dist/cjs/react/nodes/index.js +31 -22
  23. package/dist/cjs/react/nodes/media.js +4 -2
  24. package/dist/cjs/react/nodes/mediaSingle/index.js +3 -3
  25. package/dist/cjs/react/nodes/panel.js +4 -6
  26. package/dist/cjs/react/nodes/table/colgroup.js +1 -1
  27. package/dist/cjs/react/nodes/table/sticky.js +1 -1
  28. package/dist/cjs/react/nodes/tableCell.js +1 -1
  29. package/dist/cjs/react/nodes/text-wrapper.js +5 -6
  30. package/dist/cjs/react/renderer-node.js +1 -1
  31. package/dist/cjs/react/utils/links.js +1 -1
  32. package/dist/cjs/renderer-context.js +1 -1
  33. package/dist/cjs/steps/index.js +2 -2
  34. package/dist/cjs/text/nodes/index.js +1 -1
  35. package/dist/cjs/ui/Expand.js +2 -2
  36. package/dist/cjs/ui/MediaCard.js +12 -6
  37. package/dist/cjs/ui/Renderer/breakout-ssr.js +1 -1
  38. package/dist/cjs/ui/Renderer/index.js +11 -11
  39. package/dist/cjs/ui/Renderer/style.js +2 -2
  40. package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
  41. package/dist/cjs/ui/SortingIcon.js +2 -2
  42. package/dist/cjs/ui/active-header-id-provider.js +1 -1
  43. package/dist/cjs/ui/annotations/context.js +1 -1
  44. package/dist/cjs/ui/annotations/draft/component.js +7 -7
  45. package/dist/cjs/ui/annotations/draft/index.js +4 -4
  46. package/dist/cjs/ui/annotations/draft/text.js +1 -1
  47. package/dist/cjs/ui/annotations/hooks/index.js +8 -8
  48. package/dist/cjs/ui/annotations/hooks/use-events.js +4 -2
  49. package/dist/cjs/ui/annotations/index.js +5 -5
  50. package/dist/cjs/utils.js +2 -1
  51. package/dist/cjs/version.json +1 -1
  52. package/dist/es2019/messages.js +1 -1
  53. package/dist/es2019/react/index.js +29 -8
  54. package/dist/es2019/react/marks/code.js +15 -3
  55. package/dist/es2019/react/marks/fragment.js +10 -0
  56. package/dist/es2019/react/marks/index.js +4 -2
  57. package/dist/es2019/react/nodes/codeBlock.js +13 -3
  58. package/dist/es2019/react/nodes/codeBlockCopyButton.js +1 -1
  59. package/dist/es2019/react/nodes/date.js +1 -1
  60. package/dist/es2019/react/nodes/heading-anchor.js +1 -1
  61. package/dist/es2019/react/nodes/heading.js +2 -3
  62. package/dist/es2019/react/nodes/media.js +4 -2
  63. package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
  64. package/dist/es2019/react/nodes/panel.js +5 -6
  65. package/dist/es2019/react/nodes/text-wrapper.js +7 -6
  66. package/dist/es2019/ui/Expand.js +1 -1
  67. package/dist/es2019/ui/MediaCard.js +11 -5
  68. package/dist/es2019/ui/Renderer/index.js +10 -10
  69. package/dist/es2019/ui/Renderer/style.js +1 -1
  70. package/dist/es2019/ui/SortingIcon.js +1 -1
  71. package/dist/es2019/ui/annotations/draft/component.js +6 -6
  72. package/dist/es2019/ui/annotations/hooks/use-events.js +3 -1
  73. package/dist/es2019/version.json +1 -1
  74. package/dist/esm/messages.js +1 -1
  75. package/dist/esm/react/index.js +31 -12
  76. package/dist/esm/react/marks/code.js +15 -3
  77. package/dist/esm/react/marks/fragment.js +10 -0
  78. package/dist/esm/react/marks/index.js +4 -2
  79. package/dist/esm/react/nodes/codeBlock.js +13 -3
  80. package/dist/esm/react/nodes/codeBlockCopyButton.js +1 -1
  81. package/dist/esm/react/nodes/date.js +1 -1
  82. package/dist/esm/react/nodes/heading-anchor.js +1 -1
  83. package/dist/esm/react/nodes/heading.js +2 -3
  84. package/dist/esm/react/nodes/media.js +4 -2
  85. package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
  86. package/dist/esm/react/nodes/panel.js +5 -6
  87. package/dist/esm/react/nodes/text-wrapper.js +7 -6
  88. package/dist/esm/ui/Expand.js +1 -1
  89. package/dist/esm/ui/MediaCard.js +11 -5
  90. package/dist/esm/ui/Renderer/index.js +10 -10
  91. package/dist/esm/ui/Renderer/style.js +1 -1
  92. package/dist/esm/ui/SortingIcon.js +1 -1
  93. package/dist/esm/ui/annotations/draft/component.js +6 -6
  94. package/dist/esm/ui/annotations/hooks/use-events.js +3 -1
  95. package/dist/esm/version.json +1 -1
  96. package/dist/types/index.d.ts +1 -0
  97. package/dist/types/react/index.d.ts +1 -0
  98. package/dist/types/react/marks/alignment.d.ts +1 -0
  99. package/dist/types/react/marks/annotation.d.ts +1 -0
  100. package/dist/types/react/marks/code.d.ts +15 -1
  101. package/dist/types/react/marks/data-consumer.d.ts +1 -0
  102. package/dist/types/react/marks/em.d.ts +1 -0
  103. package/dist/types/react/marks/fragment.d.ts +4 -0
  104. package/dist/types/react/marks/indentation.d.ts +1 -0
  105. package/dist/types/react/marks/index.d.ts +2 -1
  106. package/dist/types/react/marks/link.d.ts +1 -0
  107. package/dist/types/react/marks/strike.d.ts +1 -0
  108. package/dist/types/react/marks/strong.d.ts +1 -0
  109. package/dist/types/react/marks/subsup.d.ts +1 -0
  110. package/dist/types/react/marks/textColor.d.ts +1 -0
  111. package/dist/types/react/marks/underline.d.ts +1 -0
  112. package/dist/types/react/marks/unsupportedMark.d.ts +1 -0
  113. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -0
  114. package/dist/types/react/nodes/blockCard.d.ts +1 -0
  115. package/dist/types/react/nodes/caption.d.ts +1 -0
  116. package/dist/types/react/nodes/codeBlock.d.ts +12 -3
  117. package/dist/types/react/nodes/codeBlockCopyButton.d.ts +3 -3
  118. package/dist/types/react/nodes/date.d.ts +3 -3
  119. package/dist/types/react/nodes/decisionItem.d.ts +1 -0
  120. package/dist/types/react/nodes/doc.d.ts +1 -0
  121. package/dist/types/react/nodes/embedCard.d.ts +1 -0
  122. package/dist/types/react/nodes/heading-anchor.d.ts +4 -4
  123. package/dist/types/react/nodes/heading.d.ts +1 -0
  124. package/dist/types/react/nodes/index.d.ts +8 -8
  125. package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
  126. package/dist/types/react/nodes/paragraph.d.ts +1 -0
  127. package/dist/types/react/nodes/placeholder.d.ts +1 -0
  128. package/dist/types/react/nodes/rule.d.ts +1 -0
  129. package/dist/types/react/nodes/table/colgroup.d.ts +1 -0
  130. package/dist/types/react/nodes/text-wrapper.d.ts +3 -3
  131. package/dist/types/renderer-context.d.ts +3 -1
  132. package/dist/types/types/mediaOptions.d.ts +7 -1
  133. package/dist/types/ui/Expand.d.ts +3 -3
  134. package/dist/types/ui/MediaCard.d.ts +2 -0
  135. package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -0
  136. package/dist/types/ui/SortingIcon.d.ts +1 -0
  137. package/dist/types/ui/annotations/draft/component.d.ts +1 -1
  138. package/dist/types/ui/renderer-props.d.ts +1 -1
  139. package/package.json +23 -23
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Inline Script that updates breakout node width on client side,
3
4
  * before main JavaScript bundle is ready.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SortOrder } from '@atlaskit/editor-common';
2
3
  export declare const TableSortIconDataUrl: string;
3
4
  export declare enum StatusClassNames {
@@ -13,7 +13,7 @@ export declare const applyAnnotationOnText: ({ texts, shouldApplyAnnotationAt, d
13
13
  declare type Props = {
14
14
  startPos: number;
15
15
  endPos: number;
16
- text: string;
16
+ children: string;
17
17
  };
18
18
  export declare const TextWithAnnotationDraft: React.FC<Props>;
19
19
  export {};
@@ -38,7 +38,7 @@ export interface RendererProps {
38
38
  innerRef?: React.RefObject<HTMLDivElement>;
39
39
  useSpecBasedValidator?: boolean;
40
40
  allowCopyToClipboard?: boolean;
41
- UNSAFE_allowCustomPanels?: boolean;
41
+ allowCustomPanels?: boolean;
42
42
  analyticsEventSeverityTracking?: {
43
43
  enabled: boolean;
44
44
  severityNormalThreshold: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "82.0.0",
3
+ "version": "84.0.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,23 +24,23 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^19.3.0",
28
- "@atlaskit/adf-utils": "^14.3.0",
27
+ "@atlaskit/adf-schema": "^20.0.0",
28
+ "@atlaskit/adf-utils": "^14.4.0",
29
29
  "@atlaskit/analytics-listeners": "^8.0.0",
30
30
  "@atlaskit/analytics-namespaced-context": "^6.3.0",
31
31
  "@atlaskit/analytics-next": "^8.2.0",
32
32
  "@atlaskit/button": "^16.1.0",
33
- "@atlaskit/code": "^14.1.0",
34
- "@atlaskit/editor-common": "^60.2.0",
35
- "@atlaskit/editor-json-transformer": "^8.6.0",
33
+ "@atlaskit/code": "^14.3.0",
34
+ "@atlaskit/editor-common": "^62.0.0",
35
+ "@atlaskit/editor-json-transformer": "^8.7.0",
36
36
  "@atlaskit/editor-shared-styles": "^1.6.0",
37
37
  "@atlaskit/icon": "^21.9.0",
38
- "@atlaskit/media-card": "^72.0.0",
38
+ "@atlaskit/media-card": "^73.0.0",
39
39
  "@atlaskit/media-client": "^14.3.0",
40
- "@atlaskit/media-common": "^2.9.0",
40
+ "@atlaskit/media-common": "^2.10.0",
41
41
  "@atlaskit/media-filmstrip": "^42.1.0",
42
- "@atlaskit/media-viewer": "^45.8.0",
43
- "@atlaskit/status": "^0.11.0",
42
+ "@atlaskit/media-viewer": "^46.0.0",
43
+ "@atlaskit/status": "^1.0.0",
44
44
  "@atlaskit/task-decision": "^17.2.0",
45
45
  "@atlaskit/theme": "^12.0.0",
46
46
  "@atlaskit/tooltip": "^17.5.0",
@@ -48,17 +48,17 @@
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "lodash": "^4.17.15",
50
50
  "memoize-one": "^6.0.0",
51
- "prosemirror-model": "1.11.0",
52
- "prosemirror-transform": "1.2.8",
51
+ "prosemirror-model": "1.14.3",
52
+ "prosemirror-transform": "1.3.2",
53
53
  "prosemirror-utils": "^1.0.0-0",
54
54
  "react-intl": "^2.6.0",
55
+ "react-intl-next": "npm:react-intl@^5.18.1",
55
56
  "react-loadable": "^5.1.0",
56
- "url-parse": "^1.4.5",
57
57
  "uuid": "^3.1.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@atlaskit/media-core": "^32.2.0",
61
- "@atlaskit/smart-card": "^16.2.0",
61
+ "@atlaskit/smart-card": "^17.0.0",
62
62
  "react": "^16.8.0",
63
63
  "react-dom": "^16.8.0",
64
64
  "styled-components": "^3.2.6"
@@ -67,22 +67,22 @@
67
67
  "@atlaskit/analytics-gas-types": "^5.0.5",
68
68
  "@atlaskit/avatar": "^20.5.0",
69
69
  "@atlaskit/build-utils": "^2.6.2",
70
- "@atlaskit/css-reset": "^6.2.0",
70
+ "@atlaskit/css-reset": "^6.3.0",
71
71
  "@atlaskit/docs": "*",
72
- "@atlaskit/editor-core": "^151.0.0",
73
- "@atlaskit/editor-test-helpers": "^15.5.0",
74
- "@atlaskit/field-range": "^9.0.0",
72
+ "@atlaskit/editor-core": "^153.0.0",
73
+ "@atlaskit/editor-test-helpers": "^16.0.0",
75
74
  "@atlaskit/logo": "^13.5.0",
76
75
  "@atlaskit/media-core": "^32.2.0",
77
76
  "@atlaskit/media-integration-test-helpers": "^2.5.0",
78
- "@atlaskit/media-test-helpers": "^28.8.0",
77
+ "@atlaskit/media-test-helpers": "^29.0.0",
79
78
  "@atlaskit/mention": "^19.7.0",
80
79
  "@atlaskit/navigation-next": "^9.0.0",
81
- "@atlaskit/profilecard": "^15.8.0",
80
+ "@atlaskit/profilecard": "^16.0.0",
82
81
  "@atlaskit/radio": "^5.3.0",
83
- "@atlaskit/smart-card": "^16.2.0",
84
- "@atlaskit/ssr": "^0.2.0",
85
- "@atlaskit/util-data-test": "^16.0.0",
82
+ "@atlaskit/range": "^5.0.11",
83
+ "@atlaskit/smart-card": "^17.0.0",
84
+ "@atlaskit/ssr": "*",
85
+ "@atlaskit/util-data-test": "^17.0.0",
86
86
  "@atlaskit/visual-regression": "*",
87
87
  "@atlaskit/webdriver-runner": "*",
88
88
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",