@atlaskit/renderer 92.0.1 → 93.0.2

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 (125) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/cjs/analytics/enums.js +1 -0
  3. package/dist/cjs/i18n/en.js +28 -0
  4. package/dist/cjs/i18n/en_GB.js +28 -0
  5. package/dist/cjs/i18n/pl.js +7 -1
  6. package/dist/cjs/i18n/pt_BR.js +1 -1
  7. package/dist/cjs/react/marks/alignment.js +11 -12
  8. package/dist/cjs/react/marks/breakout.js +7 -9
  9. package/dist/cjs/react/marks/link.js +13 -6
  10. package/dist/cjs/react/nodes/codeBlock.js +1 -1
  11. package/dist/cjs/react/nodes/codeBlockCopyButton.js +13 -11
  12. package/dist/cjs/react/nodes/embedCard.js +25 -33
  13. package/dist/cjs/react/nodes/heading-anchor.js +7 -6
  14. package/dist/cjs/react/nodes/mediaSingle/index.js +15 -4
  15. package/dist/cjs/react/nodes/mediaSingle/styles.js +7 -10
  16. package/dist/cjs/react/nodes/panel.js +36 -20
  17. package/dist/cjs/react/nodes/table/sticky.js +51 -54
  18. package/dist/cjs/react/nodes/table.js +2 -10
  19. package/dist/cjs/react/utils/performance/RenderTracking.js +52 -0
  20. package/dist/cjs/render-document.js +2 -2
  21. package/dist/cjs/text/index.js +2 -2
  22. package/dist/cjs/ui/Expand.js +40 -20
  23. package/dist/cjs/ui/MediaCard.js +4 -14
  24. package/dist/cjs/ui/Renderer/click-to-edit.js +4 -4
  25. package/dist/cjs/ui/Renderer/index.js +39 -50
  26. package/dist/cjs/ui/Renderer/style.js +58 -63
  27. package/dist/cjs/ui/Renderer/truncated-wrapper.js +19 -21
  28. package/dist/cjs/ui/SortingIcon.js +8 -9
  29. package/dist/cjs/ui/renderer-props.js +1 -3
  30. package/dist/cjs/utils.js +2 -2
  31. package/dist/cjs/version.json +1 -1
  32. package/dist/es2019/analytics/enums.js +1 -0
  33. package/dist/es2019/i18n/en.js +20 -0
  34. package/dist/es2019/i18n/en_GB.js +20 -0
  35. package/dist/es2019/i18n/pl.js +7 -1
  36. package/dist/es2019/i18n/pt_BR.js +1 -1
  37. package/dist/es2019/react/marks/alignment.js +15 -7
  38. package/dist/es2019/react/marks/breakout.js +6 -5
  39. package/dist/es2019/react/marks/link.js +8 -5
  40. package/dist/es2019/react/nodes/codeBlock.js +1 -1
  41. package/dist/es2019/react/nodes/codeBlockCopyButton.js +12 -9
  42. package/dist/es2019/react/nodes/embedCard.js +16 -16
  43. package/dist/es2019/react/nodes/heading-anchor.js +9 -6
  44. package/dist/es2019/react/nodes/mediaSingle/index.js +10 -6
  45. package/dist/es2019/react/nodes/mediaSingle/styles.js +6 -7
  46. package/dist/es2019/react/nodes/panel.js +38 -18
  47. package/dist/es2019/react/nodes/table/sticky.js +48 -41
  48. package/dist/es2019/react/nodes/table.js +2 -5
  49. package/dist/es2019/react/utils/performance/RenderTracking.js +37 -0
  50. package/dist/es2019/render-document.js +1 -1
  51. package/dist/es2019/text/index.js +1 -1
  52. package/dist/es2019/ui/Expand.js +52 -28
  53. package/dist/es2019/ui/MediaCard.js +3 -6
  54. package/dist/es2019/ui/Renderer/click-to-edit.js +1 -1
  55. package/dist/es2019/ui/Renderer/index.js +38 -43
  56. package/dist/es2019/ui/Renderer/style.js +363 -337
  57. package/dist/es2019/ui/Renderer/truncated-wrapper.js +26 -15
  58. package/dist/es2019/ui/SortingIcon.js +9 -7
  59. package/dist/es2019/ui/renderer-props.js +1 -1
  60. package/dist/es2019/utils.js +1 -1
  61. package/dist/es2019/version.json +1 -1
  62. package/dist/esm/analytics/enums.js +1 -0
  63. package/dist/esm/i18n/en.js +20 -0
  64. package/dist/esm/i18n/en_GB.js +20 -0
  65. package/dist/esm/i18n/pl.js +7 -1
  66. package/dist/esm/i18n/pt_BR.js +1 -1
  67. package/dist/esm/react/marks/alignment.js +13 -6
  68. package/dist/esm/react/marks/breakout.js +6 -5
  69. package/dist/esm/react/marks/link.js +7 -5
  70. package/dist/esm/react/nodes/codeBlock.js +1 -1
  71. package/dist/esm/react/nodes/codeBlockCopyButton.js +10 -7
  72. package/dist/esm/react/nodes/embedCard.js +19 -19
  73. package/dist/esm/react/nodes/heading-anchor.js +8 -6
  74. package/dist/esm/react/nodes/mediaSingle/index.js +11 -6
  75. package/dist/esm/react/nodes/mediaSingle/styles.js +5 -7
  76. package/dist/esm/react/nodes/panel.js +34 -17
  77. package/dist/esm/react/nodes/table/sticky.js +53 -52
  78. package/dist/esm/react/nodes/table.js +2 -8
  79. package/dist/esm/react/utils/performance/RenderTracking.js +39 -0
  80. package/dist/esm/render-document.js +1 -1
  81. package/dist/esm/text/index.js +1 -1
  82. package/dist/esm/ui/Expand.js +45 -21
  83. package/dist/esm/ui/MediaCard.js +3 -9
  84. package/dist/esm/ui/Renderer/click-to-edit.js +1 -1
  85. package/dist/esm/ui/Renderer/index.js +39 -47
  86. package/dist/esm/ui/Renderer/style.js +56 -57
  87. package/dist/esm/ui/Renderer/truncated-wrapper.js +20 -14
  88. package/dist/esm/ui/SortingIcon.js +9 -7
  89. package/dist/esm/ui/renderer-props.js +1 -1
  90. package/dist/esm/utils.js +1 -1
  91. package/dist/esm/version.json +1 -1
  92. package/dist/types/actions/index.d.ts +1 -4
  93. package/dist/types/analytics/enums.d.ts +1 -0
  94. package/dist/types/analytics/events.d.ts +7 -2
  95. package/dist/types/i18n/en.d.ts +20 -0
  96. package/dist/types/i18n/en_GB.d.ts +20 -0
  97. package/dist/types/i18n/pl.d.ts +6 -0
  98. package/dist/types/react/marks/alignment.d.ts +2 -2
  99. package/dist/types/react/marks/breakout.d.ts +4 -3
  100. package/dist/types/react/marks/link.d.ts +2 -2
  101. package/dist/types/react/nodes/copy-text-provider.d.ts +1 -1
  102. package/dist/types/react/nodes/embedCard.d.ts +3 -2
  103. package/dist/types/react/nodes/extension.d.ts +2 -2
  104. package/dist/types/react/nodes/fallback.d.ts +1 -1
  105. package/dist/types/react/nodes/heading-anchor.d.ts +1 -0
  106. package/dist/types/react/nodes/index.d.ts +20 -38
  107. package/dist/types/react/nodes/inlineCard.d.ts +20 -20
  108. package/dist/types/react/nodes/media.d.ts +1 -1
  109. package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
  110. package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -0
  111. package/dist/types/react/nodes/mediaSingle/styles.d.ts +2 -3
  112. package/dist/types/react/nodes/panel.d.ts +3 -1
  113. package/dist/types/react/nodes/table/sticky.d.ts +4 -2
  114. package/dist/types/react/nodes/table.d.ts +80 -80
  115. package/dist/types/react/utils/performance/RenderTracking.d.ts +15 -0
  116. package/dist/types/ui/Expand.d.ts +2 -2
  117. package/dist/types/ui/MediaCard.d.ts +2 -4
  118. package/dist/types/ui/Renderer/index.d.ts +0 -25
  119. package/dist/types/ui/Renderer/style.d.ts +1 -4
  120. package/dist/types/ui/Renderer/truncated-wrapper.d.ts +3 -1
  121. package/dist/types/ui/SmartCardStorage.d.ts +21 -20
  122. package/dist/types/ui/SortingIcon.d.ts +8 -6
  123. package/dist/types/ui/renderer-props.d.ts +14 -2
  124. package/dist/types/utils.d.ts +1 -1
  125. package/package.json +23 -25
@@ -54,36 +54,36 @@ export declare class TableProcessor extends React.Component<TableProps & Overflo
54
54
  private addNumberColumnIndexes;
55
55
  }
56
56
  declare const _default: {
57
- new (props: Readonly<Pick<{
57
+ new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
58
58
  renderWidth?: number | undefined;
59
- } & Pick<SharedTableProps & {
60
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
59
+ } & Omit<SharedTableProps & {
60
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
61
61
  tableNode?: PMNode<any> | undefined;
62
62
  rendererAppearance?: RendererAppearance;
63
63
  allowColumnSorting?: boolean | undefined;
64
64
  stickyHeaders?: StickyHeaderConfig | undefined;
65
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>): {
65
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>): {
66
66
  render(): JSX.Element;
67
67
  context: any;
68
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<{
68
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
69
69
  renderWidth?: number | undefined;
70
- } & Pick<SharedTableProps & {
71
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
70
+ } & Omit<SharedTableProps & {
71
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
72
72
  tableNode?: PMNode<any> | undefined;
73
73
  rendererAppearance?: RendererAppearance;
74
74
  allowColumnSorting?: boolean | undefined;
75
75
  stickyHeaders?: StickyHeaderConfig | undefined;
76
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
76
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
77
77
  forceUpdate(callBack?: (() => void) | undefined): void;
78
- readonly props: Readonly<Pick<{
78
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
79
79
  renderWidth?: number | undefined;
80
- } & Pick<SharedTableProps & {
81
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
80
+ } & Omit<SharedTableProps & {
81
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
82
82
  tableNode?: PMNode<any> | undefined;
83
83
  rendererAppearance?: RendererAppearance;
84
84
  allowColumnSorting?: boolean | undefined;
85
85
  stickyHeaders?: StickyHeaderConfig | undefined;
86
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">> & Readonly<{
86
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>> & Readonly<{
87
87
  children?: React.ReactNode;
88
88
  }>;
89
89
  state: Readonly<{}>;
@@ -91,104 +91,104 @@ declare const _default: {
91
91
  [key: string]: React.ReactInstance;
92
92
  };
93
93
  componentDidMount?(): void;
94
- shouldComponentUpdate?(nextProps: Readonly<Pick<{
94
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
95
95
  renderWidth?: number | undefined;
96
- } & Pick<SharedTableProps & {
97
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
96
+ } & Omit<SharedTableProps & {
97
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
98
98
  tableNode?: PMNode<any> | undefined;
99
99
  rendererAppearance?: RendererAppearance;
100
100
  allowColumnSorting?: boolean | undefined;
101
101
  stickyHeaders?: StickyHeaderConfig | undefined;
102
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextState: Readonly<{}>, nextContext: any): boolean;
102
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
103
103
  componentWillUnmount?(): void;
104
104
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
105
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<{
105
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
106
106
  renderWidth?: number | undefined;
107
- } & Pick<SharedTableProps & {
108
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
107
+ } & Omit<SharedTableProps & {
108
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
109
109
  tableNode?: PMNode<any> | undefined;
110
110
  rendererAppearance?: RendererAppearance;
111
111
  allowColumnSorting?: boolean | undefined;
112
112
  stickyHeaders?: StickyHeaderConfig | undefined;
113
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, prevState: Readonly<{}>): any;
114
- componentDidUpdate?(prevProps: Readonly<Pick<{
113
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
114
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
115
115
  renderWidth?: number | undefined;
116
- } & Pick<SharedTableProps & {
117
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
116
+ } & Omit<SharedTableProps & {
117
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
118
118
  tableNode?: PMNode<any> | undefined;
119
119
  rendererAppearance?: RendererAppearance;
120
120
  allowColumnSorting?: boolean | undefined;
121
121
  stickyHeaders?: StickyHeaderConfig | undefined;
122
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, prevState: Readonly<{}>, snapshot?: any): void;
122
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
123
123
  componentWillMount?(): void;
124
124
  UNSAFE_componentWillMount?(): void;
125
- componentWillReceiveProps?(nextProps: Readonly<Pick<{
125
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
126
126
  renderWidth?: number | undefined;
127
- } & Pick<SharedTableProps & {
128
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
127
+ } & Omit<SharedTableProps & {
128
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
129
129
  tableNode?: PMNode<any> | undefined;
130
130
  rendererAppearance?: RendererAppearance;
131
131
  allowColumnSorting?: boolean | undefined;
132
132
  stickyHeaders?: StickyHeaderConfig | undefined;
133
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextContext: any): void;
134
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<{
133
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
134
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
135
135
  renderWidth?: number | undefined;
136
- } & Pick<SharedTableProps & {
137
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
136
+ } & Omit<SharedTableProps & {
137
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
138
138
  tableNode?: PMNode<any> | undefined;
139
139
  rendererAppearance?: RendererAppearance;
140
140
  allowColumnSorting?: boolean | undefined;
141
141
  stickyHeaders?: StickyHeaderConfig | undefined;
142
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextContext: any): void;
143
- componentWillUpdate?(nextProps: Readonly<Pick<{
142
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
143
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
144
144
  renderWidth?: number | undefined;
145
- } & Pick<SharedTableProps & {
146
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
145
+ } & Omit<SharedTableProps & {
146
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
147
147
  tableNode?: PMNode<any> | undefined;
148
148
  rendererAppearance?: RendererAppearance;
149
149
  allowColumnSorting?: boolean | undefined;
150
150
  stickyHeaders?: StickyHeaderConfig | undefined;
151
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextState: Readonly<{}>, nextContext: any): void;
152
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<{
151
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
152
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
153
153
  renderWidth?: number | undefined;
154
- } & Pick<SharedTableProps & {
155
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
154
+ } & Omit<SharedTableProps & {
155
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
156
156
  tableNode?: PMNode<any> | undefined;
157
157
  rendererAppearance?: RendererAppearance;
158
158
  allowColumnSorting?: boolean | undefined;
159
159
  stickyHeaders?: StickyHeaderConfig | undefined;
160
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextState: Readonly<{}>, nextContext: any): void;
160
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
161
161
  };
162
- new (props: Pick<{
162
+ new (props: import("@atlaskit/editor-common/utils").Diff<{
163
163
  renderWidth?: number | undefined;
164
- } & Pick<SharedTableProps & {
165
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
164
+ } & Omit<SharedTableProps & {
165
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
166
166
  tableNode?: PMNode<any> | undefined;
167
167
  rendererAppearance?: RendererAppearance;
168
168
  allowColumnSorting?: boolean | undefined;
169
169
  stickyHeaders?: StickyHeaderConfig | undefined;
170
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, context?: any): {
170
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>, context?: any): {
171
171
  render(): JSX.Element;
172
172
  context: any;
173
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<{
173
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
174
174
  renderWidth?: number | undefined;
175
- } & Pick<SharedTableProps & {
176
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
175
+ } & Omit<SharedTableProps & {
176
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
177
177
  tableNode?: PMNode<any> | undefined;
178
178
  rendererAppearance?: RendererAppearance;
179
179
  allowColumnSorting?: boolean | undefined;
180
180
  stickyHeaders?: StickyHeaderConfig | undefined;
181
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
181
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
182
182
  forceUpdate(callBack?: (() => void) | undefined): void;
183
- readonly props: Readonly<Pick<{
183
+ readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
184
184
  renderWidth?: number | undefined;
185
- } & Pick<SharedTableProps & {
186
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
185
+ } & Omit<SharedTableProps & {
186
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
187
187
  tableNode?: PMNode<any> | undefined;
188
188
  rendererAppearance?: RendererAppearance;
189
189
  allowColumnSorting?: boolean | undefined;
190
190
  stickyHeaders?: StickyHeaderConfig | undefined;
191
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">> & Readonly<{
191
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>> & Readonly<{
192
192
  children?: React.ReactNode;
193
193
  }>;
194
194
  state: Readonly<{}>;
@@ -196,73 +196,73 @@ declare const _default: {
196
196
  [key: string]: React.ReactInstance;
197
197
  };
198
198
  componentDidMount?(): void;
199
- shouldComponentUpdate?(nextProps: Readonly<Pick<{
199
+ shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
200
200
  renderWidth?: number | undefined;
201
- } & Pick<SharedTableProps & {
202
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
201
+ } & Omit<SharedTableProps & {
202
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
203
203
  tableNode?: PMNode<any> | undefined;
204
204
  rendererAppearance?: RendererAppearance;
205
205
  allowColumnSorting?: boolean | undefined;
206
206
  stickyHeaders?: StickyHeaderConfig | undefined;
207
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextState: Readonly<{}>, nextContext: any): boolean;
207
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
208
208
  componentWillUnmount?(): void;
209
209
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
210
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<{
210
+ getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
211
211
  renderWidth?: number | undefined;
212
- } & Pick<SharedTableProps & {
213
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
212
+ } & Omit<SharedTableProps & {
213
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
214
214
  tableNode?: PMNode<any> | undefined;
215
215
  rendererAppearance?: RendererAppearance;
216
216
  allowColumnSorting?: boolean | undefined;
217
217
  stickyHeaders?: StickyHeaderConfig | undefined;
218
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, prevState: Readonly<{}>): any;
219
- componentDidUpdate?(prevProps: Readonly<Pick<{
218
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
219
+ componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
220
220
  renderWidth?: number | undefined;
221
- } & Pick<SharedTableProps & {
222
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
221
+ } & Omit<SharedTableProps & {
222
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
223
223
  tableNode?: PMNode<any> | undefined;
224
224
  rendererAppearance?: RendererAppearance;
225
225
  allowColumnSorting?: boolean | undefined;
226
226
  stickyHeaders?: StickyHeaderConfig | undefined;
227
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, prevState: Readonly<{}>, snapshot?: any): void;
227
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
228
228
  componentWillMount?(): void;
229
229
  UNSAFE_componentWillMount?(): void;
230
- componentWillReceiveProps?(nextProps: Readonly<Pick<{
230
+ componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
231
231
  renderWidth?: number | undefined;
232
- } & Pick<SharedTableProps & {
233
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
232
+ } & Omit<SharedTableProps & {
233
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
234
234
  tableNode?: PMNode<any> | undefined;
235
235
  rendererAppearance?: RendererAppearance;
236
236
  allowColumnSorting?: boolean | undefined;
237
237
  stickyHeaders?: StickyHeaderConfig | undefined;
238
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextContext: any): void;
239
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<{
238
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
239
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
240
240
  renderWidth?: number | undefined;
241
- } & Pick<SharedTableProps & {
242
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
241
+ } & Omit<SharedTableProps & {
242
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
243
243
  tableNode?: PMNode<any> | undefined;
244
244
  rendererAppearance?: RendererAppearance;
245
245
  allowColumnSorting?: boolean | undefined;
246
246
  stickyHeaders?: StickyHeaderConfig | undefined;
247
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextContext: any): void;
248
- componentWillUpdate?(nextProps: Readonly<Pick<{
247
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
248
+ componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
249
249
  renderWidth?: number | undefined;
250
- } & Pick<SharedTableProps & {
251
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
250
+ } & Omit<SharedTableProps & {
251
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
252
252
  tableNode?: PMNode<any> | undefined;
253
253
  rendererAppearance?: RendererAppearance;
254
254
  allowColumnSorting?: boolean | undefined;
255
255
  stickyHeaders?: StickyHeaderConfig | undefined;
256
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextState: Readonly<{}>, nextContext: any): void;
257
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<{
256
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
257
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
258
258
  renderWidth?: number | undefined;
259
- } & Pick<SharedTableProps & {
260
- children: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
259
+ } & Omit<SharedTableProps & {
260
+ children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
261
261
  tableNode?: PMNode<any> | undefined;
262
262
  rendererAppearance?: RendererAppearance;
263
263
  allowColumnSorting?: boolean | undefined;
264
264
  stickyHeaders?: StickyHeaderConfig | undefined;
265
- } & WithSmartCardStorageProps, "children" | "layout" | "allowColumnSorting" | "smartCardStorage" | "allowDynamicTextSizing" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">, "children" | "layout" | "allowColumnSorting" | "allowDynamicTextSizing" | "renderWidth" | "columnWidths" | "isNumberColumnEnabled" | "tableNode" | "rendererAppearance" | "stickyHeaders">>, nextState: Readonly<{}>, nextContext: any): void;
265
+ } & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
266
266
  };
267
267
  contextType?: React.Context<any> | undefined;
268
268
  };
@@ -0,0 +1,15 @@
1
+ import type { AnalyticsEventPayload } from '../../../analytics/events';
2
+ import { ACTION_SUBJECT, ACTION } from '../../../analytics/enums';
3
+ export declare type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
4
+ declare type RenderActions = ACTION.RE_RENDERED;
5
+ declare type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
6
+ export declare type RenderTrackingProps<ComponentProps> = {
7
+ componentProps: ComponentProps;
8
+ action: RenderActions;
9
+ actionSubject: RenderActionSubjects;
10
+ handleAnalyticsEvent: FireAnalyticsCallback;
11
+ propsToIgnore?: Array<keyof ComponentProps>;
12
+ useShallow?: boolean;
13
+ };
14
+ export declare function RenderTracking<Props>(props: RenderTrackingProps<Props>): null;
15
+ export {};
@@ -2,12 +2,12 @@
2
2
  import React from 'react';
3
3
  import { AnalyticsEventPayload } from '../analytics/events';
4
4
  import { WrappedComponentProps } from 'react-intl-next';
5
- export interface StyleProps {
5
+ export declare type StyleProps = {
6
6
  expanded?: boolean;
7
7
  focused?: boolean;
8
8
  'data-node-type'?: 'expand' | 'nestedExpand';
9
9
  'data-title'?: string;
10
- }
10
+ };
11
11
  export interface ExpandProps {
12
12
  title: string;
13
13
  nodeType: 'expand' | 'nestedExpand';
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
3
2
  import { ADFEntity } from '@atlaskit/adf-utils';
4
3
  import { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
5
4
  import { MediaClientConfig } from '@atlaskit/media-core';
@@ -65,14 +64,13 @@ export declare class MediaCardInternal extends Component<MediaCardProps, State>
65
64
  private getOnCardClickCallback;
66
65
  render(): JSX.Element | null;
67
66
  }
68
- export declare const CardWrapper: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
69
67
  export declare const getClipboardAttrs: ({ id, alt, collection, contextIdentifierProvider, originalDimensions, fileState, }: {
70
68
  id: string;
71
69
  alt?: string | undefined;
72
70
  collection?: string | undefined;
73
71
  contextIdentifierProvider?: ContextIdentifierProvider | undefined;
74
72
  originalDimensions?: NumericalCardDimensions | undefined;
75
- fileState?: import("@atlaskit/media-client").UploadingFileState | import("@atlaskit/media-client").ProcessingFileState | import("@atlaskit/media-client").ProcessedFileState | import("@atlaskit/media-client").ErrorFileState | import("@atlaskit/media-client").ProcessingFailedState | undefined;
73
+ fileState?: FileState | undefined;
76
74
  }) => {
77
75
  [key: string]: string | number | undefined;
78
76
  };
@@ -1,8 +1,5 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
1
  import { jsx } from '@emotion/react';
4
2
  import { PureComponent } from 'react';
5
- import { RendererAppearance } from './types';
6
3
  import { RendererProps } from '../renderer-props';
7
4
  export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
8
5
  export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
@@ -31,27 +28,5 @@ export declare class Renderer extends PureComponent<RendererProps> {
31
28
  render(): jsx.JSX.Element;
32
29
  componentWillUnmount(): void;
33
30
  }
34
- declare type RendererWrapperProps = {
35
- appearance: RendererAppearance;
36
- dynamicTextSizing: boolean;
37
- innerRef?: React.RefObject<HTMLDivElement>;
38
- allowColumnSorting?: boolean;
39
- allowCopyToClipboard?: boolean;
40
- allowPlaceholderText?: boolean;
41
- allowCustomPanels?: boolean;
42
- allowNestedHeaderLinks: boolean;
43
- onClick?: (event: React.MouseEvent) => void;
44
- onMouseDown?: (event: React.MouseEvent) => void;
45
- } & {
46
- children?: React.ReactNode;
47
- };
48
- /**
49
- * When the product doesn't provide a IframeWidthObserverFallbackWrapper,
50
- * we will give one to the renderer,
51
- *
52
- * so if we have more than one `WidthProvider` on the content,
53
- * only one iframe will be created on the older browsers.
54
- */
55
- export declare function RendererWrapper(props: RendererWrapperProps): jsx.JSX.Element;
56
31
  declare const RendererWithAnnotationSelection: (props: RendererProps) => jsx.JSX.Element;
57
32
  export default RendererWithAnnotationSelection;
@@ -1,10 +1,8 @@
1
- import { HTMLAttributes } from 'react';
2
1
  import { Theme } from '@emotion/react';
3
2
  import { RendererAppearance } from './types';
4
3
  export declare const FullPagePadding = 32;
5
4
  export declare type RendererWrapperProps = {
6
5
  appearance?: RendererAppearance;
7
- theme?: any;
8
6
  allowNestedHeaderLinks: boolean;
9
7
  allowColumnSorting: boolean;
10
8
  };
@@ -13,5 +11,4 @@ export declare const headingSizes: {
13
11
  [key: string]: number;
14
12
  };
15
13
  };
16
- export declare const rendererStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
17
- export declare const DeprecatedWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & RendererWrapperProps & HTMLAttributes<{}>, any, import("react").ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & RendererWrapperProps & HTMLAttributes<{}>>;
14
+ export declare const rendererStyles: (wrapperProps: RendererWrapperProps) => (theme: Theme) => import("@emotion/react").SerializedStyles;
@@ -1,3 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
1
3
  import { Component } from 'react';
2
4
  export interface TruncatedWrapperProps {
3
5
  height?: number;
@@ -6,5 +8,5 @@ export interface TruncatedWrapperProps {
6
8
  }
7
9
  export declare class TruncatedWrapper extends Component<TruncatedWrapperProps, {}> {
8
10
  constructor(props: TruncatedWrapperProps);
9
- render(): JSX.Element;
11
+ render(): jsx.JSX.Element;
10
12
  }
@@ -1,16 +1,17 @@
1
1
  import React from 'react';
2
+ import type { Diff } from '@atlaskit/editor-common/utils';
2
3
  export interface WithSmartCardStorageProps {
3
4
  smartCardStorage: Map<string, string>;
4
5
  }
5
6
  export declare const Context: React.Context<Map<string, string>>;
6
7
  export declare const Provider: React.FunctionComponent;
7
8
  export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props>) => {
8
- new (props: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>): {
9
+ new (props: Readonly<Diff<Props, WithSmartCardStorageProps>>): {
9
10
  render(): JSX.Element;
10
11
  context: any;
11
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
12
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
12
13
  forceUpdate(callBack?: (() => void) | undefined): void;
13
- readonly props: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>> & Readonly<{
14
+ readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
14
15
  children?: React.ReactNode;
15
16
  }>;
16
17
  state: Readonly<{}>;
@@ -18,24 +19,24 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
18
19
  [key: string]: React.ReactInstance;
19
20
  };
20
21
  componentDidMount?(): void;
21
- shouldComponentUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextState: Readonly<{}>, nextContext: any): boolean;
22
+ shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
22
23
  componentWillUnmount?(): void;
23
24
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
24
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, prevState: Readonly<{}>): any;
25
- componentDidUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, prevState: Readonly<{}>, snapshot?: any): void;
25
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
26
+ componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
26
27
  componentWillMount?(): void;
27
28
  UNSAFE_componentWillMount?(): void;
28
- componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextContext: any): void;
29
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextContext: any): void;
30
- componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextState: Readonly<{}>, nextContext: any): void;
31
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextState: Readonly<{}>, nextContext: any): void;
29
+ componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
30
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
31
+ componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
32
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
32
33
  };
33
- new (props: Pick<Props, Exclude<keyof Props, "smartCardStorage">>, context?: any): {
34
+ new (props: Diff<Props, WithSmartCardStorageProps>, context?: any): {
34
35
  render(): JSX.Element;
35
36
  context: any;
36
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
37
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
37
38
  forceUpdate(callBack?: (() => void) | undefined): void;
38
- readonly props: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>> & Readonly<{
39
+ readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
39
40
  children?: React.ReactNode;
40
41
  }>;
41
42
  state: Readonly<{}>;
@@ -43,17 +44,17 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
43
44
  [key: string]: React.ReactInstance;
44
45
  };
45
46
  componentDidMount?(): void;
46
- shouldComponentUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextState: Readonly<{}>, nextContext: any): boolean;
47
+ shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
47
48
  componentWillUnmount?(): void;
48
49
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
49
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, prevState: Readonly<{}>): any;
50
- componentDidUpdate?(prevProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, prevState: Readonly<{}>, snapshot?: any): void;
50
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
51
+ componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
51
52
  componentWillMount?(): void;
52
53
  UNSAFE_componentWillMount?(): void;
53
- componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextContext: any): void;
54
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextContext: any): void;
55
- componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextState: Readonly<{}>, nextContext: any): void;
56
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props, Exclude<keyof Props, "smartCardStorage">>>, nextState: Readonly<{}>, nextContext: any): void;
54
+ componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
55
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
56
+ componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
57
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
57
58
  };
58
59
  contextType?: React.Context<any> | undefined;
59
60
  };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { SortOrder } from '@atlaskit/editor-common/types';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
4
  export declare const TableSortIconDataUrl: string;
@@ -8,11 +8,13 @@ export declare enum StatusClassNames {
8
8
  NO_ORDER = "sorting-icon-svg__no_order",
9
9
  SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
10
10
  }
11
- declare type Props = {
11
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
12
12
  isSortingAllowed: boolean;
13
- sortOrdered?: SortOrder;
14
- } & WrappedComponentProps;
15
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
16
- WrappedComponent: React.ComponentType<Props>;
13
+ sortOrdered?: SortOrder | undefined;
14
+ } & WrappedComponentProps<"intl">>> & {
15
+ WrappedComponent: import("react").ComponentType<{
16
+ isSortingAllowed: boolean;
17
+ sortOrdered?: SortOrder | undefined;
18
+ } & WrappedComponentProps<"intl">>;
17
19
  };
18
20
  export default _default;