@atlaskit/media-card 80.8.13 → 81.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 (179) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/actions/package.json +1 -8
  3. package/card/classnames/package.json +1 -8
  4. package/cardConstants/package.json +1 -8
  5. package/cardDimensions/package.json +1 -8
  6. package/cardError/package.json +1 -8
  7. package/cardLoader/package.json +1 -8
  8. package/cardLoading/package.json +1 -8
  9. package/cardPlaceholder/package.json +1 -8
  10. package/cardSync/package.json +1 -8
  11. package/classnames/package.json +1 -8
  12. package/dateOverrideContext/package.json +1 -8
  13. package/dist/cjs/card/card.js +1 -1
  14. package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
  15. package/dist/cjs/inline/loader.js +1 -1
  16. package/dist/cjs/utils/ufoExperiences.js +1 -1
  17. package/dist/es2019/card/card.js +1 -1
  18. package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
  19. package/dist/es2019/inline/loader.js +1 -1
  20. package/dist/es2019/utils/ufoExperiences.js +1 -1
  21. package/dist/esm/card/card.js +1 -1
  22. package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
  23. package/dist/esm/inline/loader.js +1 -1
  24. package/dist/esm/utils/ufoExperiences.js +1 -1
  25. package/errors/package.json +1 -8
  26. package/inlinePlayerWrapperStyles/package.json +1 -8
  27. package/loader/package.json +1 -8
  28. package/mediaInlineCardAnalytics/package.json +1 -8
  29. package/package.json +37 -45
  30. package/types/package.json +1 -8
  31. package/dist/types-ts4.5/card/actions.d.ts +0 -15
  32. package/dist/types-ts4.5/card/ai-generating-overlay/AIGeneratingOverlay.d.ts +0 -12
  33. package/dist/types-ts4.5/card/ai-generating-overlay/index.d.ts +0 -2
  34. package/dist/types-ts4.5/card/card.d.ts +0 -7
  35. package/dist/types-ts4.5/card/cardAnalytics.d.ts +0 -10
  36. package/dist/types-ts4.5/card/cardConstants.d.ts +0 -1
  37. package/dist/types-ts4.5/card/cardLoader.d.ts +0 -7
  38. package/dist/types-ts4.5/card/cardSync.d.ts +0 -5
  39. package/dist/types-ts4.5/card/cardView.d.ts +0 -68
  40. package/dist/types-ts4.5/card/cardWithMediaClient.d.ts +0 -3
  41. package/dist/types-ts4.5/card/classnames.d.ts +0 -2
  42. package/dist/types-ts4.5/card/externalImageCard.d.ts +0 -12
  43. package/dist/types-ts4.5/card/fileCard.d.ts +0 -81
  44. package/dist/types-ts4.5/card/getCardStatus.d.ts +0 -4
  45. package/dist/types-ts4.5/card/index.d.ts +0 -2
  46. package/dist/types-ts4.5/card/inlinePlayer.d.ts +0 -24
  47. package/dist/types-ts4.5/card/inlinePlayerLazy.d.ts +0 -3
  48. package/dist/types-ts4.5/card/inlinePlayerWrapper-compiled.d.ts +0 -5
  49. package/dist/types-ts4.5/card/inlinePlayerWrapper.d.ts +0 -3
  50. package/dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts +0 -7
  51. package/dist/types-ts4.5/card/media-card-analytics-error-boundary.d.ts +0 -14
  52. package/dist/types-ts4.5/card/performance.d.ts +0 -1
  53. package/dist/types-ts4.5/card/svgView/helpers.d.ts +0 -2
  54. package/dist/types-ts4.5/card/svgView/index.d.ts +0 -1
  55. package/dist/types-ts4.5/card/svgView/svgImage-compiled.d.ts +0 -2
  56. package/dist/types-ts4.5/card/svgView/svgView.d.ts +0 -3
  57. package/dist/types-ts4.5/card/svgView/svgViewV2.d.ts +0 -7
  58. package/dist/types-ts4.5/card/svgView/types.d.ts +0 -12
  59. package/dist/types-ts4.5/card/types.d.ts +0 -20
  60. package/dist/types-ts4.5/card/ui/actionsBar/actionsBar.d.ts +0 -5
  61. package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper-compiled.d.ts +0 -5
  62. package/dist/types-ts4.5/card/ui/actionsBar/actionsBarWrapper.d.ts +0 -3
  63. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton-compiled.d.ts +0 -7
  64. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionButton.d.ts +0 -3
  65. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionIconButton.d.ts +0 -15
  66. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsDropdownMenu.d.ts +0 -12
  67. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/cardActionsView.d.ts +0 -17
  68. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/index.d.ts +0 -7
  69. package/dist/types-ts4.5/card/ui/actionsBar/cardActions/styles.d.ts +0 -21
  70. package/dist/types-ts4.5/card/ui/actionsBar/styles.d.ts +0 -7
  71. package/dist/types-ts4.5/card/ui/actionsBar/types.d.ts +0 -11
  72. package/dist/types-ts4.5/card/ui/aiBorder/aiBorder.d.ts +0 -3
  73. package/dist/types-ts4.5/card/ui/blanket/blanket-compiled.d.ts +0 -9
  74. package/dist/types-ts4.5/card/ui/blanket/blanket.d.ts +0 -5
  75. package/dist/types-ts4.5/card/ui/blanket/styles.d.ts +0 -7
  76. package/dist/types-ts4.5/card/ui/common.d.ts +0 -23
  77. package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper-compiled.d.ts +0 -2
  78. package/dist/types-ts4.5/card/ui/iconMessage/iconMessageWrapper.d.ts +0 -3
  79. package/dist/types-ts4.5/card/ui/iconMessage/index.d.ts +0 -8
  80. package/dist/types-ts4.5/card/ui/iconMessage/types.d.ts +0 -18
  81. package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper-compiled.d.ts +0 -7
  82. package/dist/types-ts4.5/card/ui/iconWrapper/iconWrapper.d.ts +0 -3
  83. package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +0 -8
  84. package/dist/types-ts4.5/card/ui/iconWrapper/types.d.ts +0 -6
  85. package/dist/types-ts4.5/card/ui/imageRenderer/helpers.d.ts +0 -3
  86. package/dist/types-ts4.5/card/ui/imageRenderer/imageRenderer.d.ts +0 -3
  87. package/dist/types-ts4.5/card/ui/imageRenderer/imageRendererV2.d.ts +0 -2
  88. package/dist/types-ts4.5/card/ui/imageRenderer/index.d.ts +0 -3
  89. package/dist/types-ts4.5/card/ui/imageRenderer/resizeModeToMediaImageProps.d.ts +0 -5
  90. package/dist/types-ts4.5/card/ui/imageRenderer/types.d.ts +0 -18
  91. package/dist/types-ts4.5/card/ui/imageRenderer/wrapper.d.ts +0 -4
  92. package/dist/types-ts4.5/card/ui/loadingBar/loadingBar.d.ts +0 -11
  93. package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -12
  94. package/dist/types-ts4.5/card/ui/playButton/playButton.d.ts +0 -2
  95. package/dist/types-ts4.5/card/ui/playButton/playButtonBackground-compiled.d.ts +0 -1
  96. package/dist/types-ts4.5/card/ui/playButton/playButtonBackground.d.ts +0 -6
  97. package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper-compiled.d.ts +0 -1
  98. package/dist/types-ts4.5/card/ui/playButton/playButtonWrapper.d.ts +0 -2
  99. package/dist/types-ts4.5/card/ui/playButton/styles.d.ts +0 -6
  100. package/dist/types-ts4.5/card/ui/progressBar/progressBar.d.ts +0 -11
  101. package/dist/types-ts4.5/card/ui/progressBar/styledBar-compiled.d.ts +0 -13
  102. package/dist/types-ts4.5/card/ui/progressBar/styledBar.d.ts +0 -3
  103. package/dist/types-ts4.5/card/ui/progressBar/styles.d.ts +0 -8
  104. package/dist/types-ts4.5/card/ui/progressBar/types.d.ts +0 -8
  105. package/dist/types-ts4.5/card/ui/styles.d.ts +0 -12
  106. package/dist/types-ts4.5/card/ui/tickBox/styles.d.ts +0 -2
  107. package/dist/types-ts4.5/card/ui/tickBox/tickBox.d.ts +0 -3
  108. package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper-compiled.d.ts +0 -5
  109. package/dist/types-ts4.5/card/ui/tickBox/tickBoxWrapper.d.ts +0 -6
  110. package/dist/types-ts4.5/card/ui/tickBox/types.d.ts +0 -4
  111. package/dist/types-ts4.5/card/ui/titleBox/failedTitleBox.d.ts +0 -3
  112. package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +0 -24
  113. package/dist/types-ts4.5/card/ui/titleBox/titleBox.d.ts +0 -6
  114. package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents-compiled.d.ts +0 -15
  115. package/dist/types-ts4.5/card/ui/titleBox/titleBoxComponents.d.ts +0 -7
  116. package/dist/types-ts4.5/card/ui/titleBox/types.d.ts +0 -34
  117. package/dist/types-ts4.5/card/ui/unhandledErrorCard/contentLoadingErrorMessage.d.ts +0 -6
  118. package/dist/types-ts4.5/card/ui/unhandledErrorCard/index.d.ts +0 -3
  119. package/dist/types-ts4.5/card/ui/unhandledErrorCard/types.d.ts +0 -5
  120. package/dist/types-ts4.5/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.d.ts +0 -9
  121. package/dist/types-ts4.5/card/ui/wrapper/imageContainer-compiled.d.ts +0 -14
  122. package/dist/types-ts4.5/card/ui/wrapper/imageContainer.d.ts +0 -15
  123. package/dist/types-ts4.5/card/ui/wrapper/index.d.ts +0 -2
  124. package/dist/types-ts4.5/card/ui/wrapper/styles.d.ts +0 -6
  125. package/dist/types-ts4.5/card/ui/wrapper/types.d.ts +0 -25
  126. package/dist/types-ts4.5/card/ui/wrapper/wrapper-compiled.d.ts +0 -7
  127. package/dist/types-ts4.5/card/ui/wrapper/wrapper.d.ts +0 -3
  128. package/dist/types-ts4.5/card/useBreakpoint.d.ts +0 -3
  129. package/dist/types-ts4.5/classnames.d.ts +0 -4
  130. package/dist/types-ts4.5/dateOverrideContext.d.ts +0 -7
  131. package/dist/types-ts4.5/errors.d.ts +0 -42
  132. package/dist/types-ts4.5/index.d.ts +0 -17
  133. package/dist/types-ts4.5/inline/index.d.ts +0 -2
  134. package/dist/types-ts4.5/inline/loader.d.ts +0 -26
  135. package/dist/types-ts4.5/inline/mediaInlineAnalyticsErrorBoundary.d.ts +0 -12
  136. package/dist/types-ts4.5/inline/mediaInlineCard.d.ts +0 -31
  137. package/dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts +0 -10
  138. package/dist/types-ts4.5/types.d.ts +0 -143
  139. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +0 -159
  140. package/dist/types-ts4.5/utils/analytics/index.d.ts +0 -2
  141. package/dist/types-ts4.5/utils/cardDimensions.d.ts +0 -14
  142. package/dist/types-ts4.5/utils/containsPixelUnit.d.ts +0 -1
  143. package/dist/types-ts4.5/utils/dimensionComparer.d.ts +0 -3
  144. package/dist/types-ts4.5/utils/document.d.ts +0 -2
  145. package/dist/types-ts4.5/utils/generateUniqueId.d.ts +0 -1
  146. package/dist/types-ts4.5/utils/getCSSUnitValue.d.ts +0 -1
  147. package/dist/types-ts4.5/utils/getDataURIDimension.d.ts +0 -26
  148. package/dist/types-ts4.5/utils/getElementDimension.d.ts +0 -2
  149. package/dist/types-ts4.5/utils/getMediaCardCursor.d.ts +0 -6
  150. package/dist/types-ts4.5/utils/globalScope/getSSRData.d.ts +0 -3
  151. package/dist/types-ts4.5/utils/globalScope/globalScope.d.ts +0 -17
  152. package/dist/types-ts4.5/utils/globalScope/index.d.ts +0 -4
  153. package/dist/types-ts4.5/utils/globalScope/types.d.ts +0 -8
  154. package/dist/types-ts4.5/utils/index.d.ts +0 -6
  155. package/dist/types-ts4.5/utils/isNetworkError.d.ts +0 -2
  156. package/dist/types-ts4.5/utils/isRetina.d.ts +0 -1
  157. package/dist/types-ts4.5/utils/isValidPercentageUnit.d.ts +0 -1
  158. package/dist/types-ts4.5/utils/lightCards/cardError.d.ts +0 -7
  159. package/dist/types-ts4.5/utils/lightCards/cardLoading.d.ts +0 -3
  160. package/dist/types-ts4.5/utils/lightCards/cardPlaceholder.d.ts +0 -6
  161. package/dist/types-ts4.5/utils/lightCards/errorIcon/index.d.ts +0 -9
  162. package/dist/types-ts4.5/utils/lightCards/errorIcon/styles.d.ts +0 -2
  163. package/dist/types-ts4.5/utils/lightCards/getDimensionsWithDefault.d.ts +0 -2
  164. package/dist/types-ts4.5/utils/lightCards/lightCardWrappers.d.ts +0 -7
  165. package/dist/types-ts4.5/utils/lightCards/styles.d.ts +0 -3
  166. package/dist/types-ts4.5/utils/lightCards/types.d.ts +0 -13
  167. package/dist/types-ts4.5/utils/mediaPerformanceObserver/durationMetrics.d.ts +0 -44
  168. package/dist/types-ts4.5/utils/mediaPerformanceObserver/mediaPerformanceObserver.d.ts +0 -13
  169. package/dist/types-ts4.5/utils/mediaPerformanceObserver/types.d.ts +0 -8
  170. package/dist/types-ts4.5/utils/mediaPerformanceObserver/ufo.d.ts +0 -2
  171. package/dist/types-ts4.5/utils/metadata.d.ts +0 -2
  172. package/dist/types-ts4.5/utils/mockIntersectionObserver.d.ts +0 -20
  173. package/dist/types-ts4.5/utils/printScript.d.ts +0 -2
  174. package/dist/types-ts4.5/utils/ufoExperiences.d.ts +0 -98
  175. package/dist/types-ts4.5/utils/useCurrentValueRef.d.ts +0 -2
  176. package/dist/types-ts4.5/utils/usePrevious.d.ts +0 -1
  177. package/dist/types-ts4.5/utils/videoIsPlayable.d.ts +0 -2
  178. package/dist/types-ts4.5/utils/videoSnapshot.d.ts +0 -1
  179. package/dist/types-ts4.5/utils/viewportDetector.d.ts +0 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # @atlaskit/media-card
2
2
 
3
+ ## 81.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 80.8.14
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 80.8.13
4
36
 
5
37
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/card/actions.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/card/actions.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/card/actions.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../../dist/types/card/classnames.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../../dist/types-ts4.5/card/classnames.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../../dist/types/card/classnames.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/card/cardConstants.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/card/cardConstants.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/card/cardConstants.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/utils/cardDimensions.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/utils/cardDimensions.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/utils/cardDimensions.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/utils/lightCards/cardError.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/utils/lightCards/cardError.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/utils/lightCards/cardError.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/card/cardLoader.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/card/cardLoader.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/card/cardLoader.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/utils/lightCards/cardLoading.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/utils/lightCards/cardLoading.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/utils/lightCards/cardLoading.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/utils/lightCards/cardPlaceholder.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/utils/lightCards/cardPlaceholder.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/utils/lightCards/cardPlaceholder.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/card/cardSync.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/card/cardSync.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/card/cardSync.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/classnames.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/classnames.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/classnames.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/dateOverrideContext.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/dateOverrideContext.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/dateOverrideContext.d.ts"
17
10
  }
@@ -20,7 +20,7 @@ var _label = _interopRequireDefault(require("@atlaskit/react-ufo/label"));
20
20
  var _excluded = ["identifier"];
21
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
22
  var packageName = "@atlaskit/media-card";
23
- var packageVersion = "80.8.12";
23
+ var packageVersion = "80.8.14";
24
24
  var CardBase = exports.CardBase = function CardBase(_ref) {
25
25
  var identifier = _ref.identifier,
26
26
  otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
@@ -87,7 +87,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
87
87
  }(_react.default.Component);
88
88
  (0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
89
89
  var packageName = "@atlaskit/media-card";
90
- var packageVersion = "80.8.12";
90
+ var packageVersion = "80.8.14";
91
91
 
92
92
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
93
93
  var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
@@ -116,7 +116,7 @@ var MediaInlineCardLoader = exports.default = /*#__PURE__*/function (_React$Pure
116
116
  ErrorBoundary = _this$state.ErrorBoundary;
117
117
  var analyticsContext = {
118
118
  packageVersion: "@atlaskit/media-card",
119
- packageName: "80.8.12",
119
+ packageName: "80.8.14",
120
120
  componentName: 'mediaInlineCard',
121
121
  component: 'mediaInlineCard'
122
122
  };
@@ -19,7 +19,7 @@ var _globalScope = require("./globalScope/globalScope");
19
19
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
20
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
21
  var packageName = "@atlaskit/media-card";
22
- var packageVersion = "80.8.12";
22
+ var packageVersion = "80.8.14";
23
23
  var SAMPLE_RATE = 0.05;
24
24
 
25
25
  /**
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
9
9
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import UFOLabel from '@atlaskit/react-ufo/label';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "80.8.12";
12
+ const packageVersion = "80.8.14";
13
13
  export const CardBase = ({
14
14
  identifier,
15
15
  ...otherProps
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
66
66
  }
67
67
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
68
68
  const packageName = "@atlaskit/media-card";
69
- const packageVersion = "80.8.12";
69
+ const packageVersion = "80.8.14";
70
70
 
71
71
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
72
72
  const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
37
37
  } = this.state;
38
38
  const analyticsContext = {
39
39
  packageVersion: "@atlaskit/media-card",
40
- packageName: "80.8.12",
40
+ packageName: "80.8.14",
41
41
  componentName: 'mediaInlineCard',
42
42
  component: 'mediaInlineCard'
43
43
  };
@@ -9,7 +9,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
9
9
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
10
10
  import { getMediaGlobalScope } from './globalScope/globalScope';
11
11
  const packageName = "@atlaskit/media-card";
12
- const packageVersion = "80.8.12";
12
+ const packageVersion = "80.8.14";
13
13
  const SAMPLE_RATE = 0.05;
14
14
 
15
15
  /**
@@ -11,7 +11,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
11
11
  import { useAnalyticsEvents } from '@atlaskit/analytics-next';
12
12
  import UFOLabel from '@atlaskit/react-ufo/label';
13
13
  var packageName = "@atlaskit/media-card";
14
- var packageVersion = "80.8.12";
14
+ var packageVersion = "80.8.14";
15
15
  export var CardBase = function CardBase(_ref) {
16
16
  var identifier = _ref.identifier,
17
17
  otherProps = _objectWithoutProperties(_ref, _excluded);
@@ -80,7 +80,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
80
80
  }(React.Component);
81
81
  _defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
82
82
  var packageName = "@atlaskit/media-card";
83
- var packageVersion = "80.8.12";
83
+ var packageVersion = "80.8.14";
84
84
 
85
85
  // @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
86
86
  var MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
@@ -101,7 +101,7 @@ var MediaInlineCardLoader = /*#__PURE__*/function (_React$PureComponent) {
101
101
  ErrorBoundary = _this$state.ErrorBoundary;
102
102
  var analyticsContext = {
103
103
  packageVersion: "@atlaskit/media-card",
104
- packageName: "80.8.12",
104
+ packageName: "80.8.14",
105
105
  componentName: 'mediaInlineCard',
106
106
  component: 'mediaInlineCard'
107
107
  };
@@ -13,7 +13,7 @@ import { getMediaEnvironment, getMediaRegion } from '@atlaskit/media-client';
13
13
  import { getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
14
14
  import { getMediaGlobalScope } from './globalScope/globalScope';
15
15
  var packageName = "@atlaskit/media-card";
16
- var packageVersion = "80.8.12";
16
+ var packageVersion = "80.8.14";
17
17
  var SAMPLE_RATE = 0.05;
18
18
 
19
19
  /**
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/errors.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/errors.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/errors.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/card/inlinePlayerWrapperStyles.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/card/inlinePlayerWrapperStyles.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/card/inlinePlayerWrapperStyles.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/inline/loader.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/inline/loader.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/inline/loader.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/inline/mediaInlineCardAnalytics.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/inline/mediaInlineCardAnalytics.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/inline/mediaInlineCardAnalytics.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-card",
3
- "version": "80.8.13",
3
+ "version": "81.0.0",
4
4
  "description": "Includes all media card related components, CardView, CardViewSmall, Card...",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,14 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": [
24
16
  "*.compiled.css"
25
17
  ],
@@ -38,31 +30,31 @@
38
30
  }
39
31
  },
40
32
  "dependencies": {
41
- "@atlaskit/analytics-next": "^11.3.0",
42
- "@atlaskit/dropdown-menu": "^16.10.0",
43
- "@atlaskit/editor-shared-styles": "^3.11.0",
44
- "@atlaskit/icon": "^35.4.0",
45
- "@atlaskit/interaction-context": "^3.1.0",
46
- "@atlaskit/link": "^3.4.0",
47
- "@atlaskit/media-client": "^36.3.0",
48
- "@atlaskit/media-client-react": "^5.2.0",
49
- "@atlaskit/media-common": "^13.3.0",
50
- "@atlaskit/media-file-preview": "^0.18.0",
51
- "@atlaskit/media-state": "^2.2.0",
52
- "@atlaskit/media-svg": "^2.3.0",
53
- "@atlaskit/media-ui": "^29.3.0",
54
- "@atlaskit/media-viewer": "^53.2.0",
55
- "@atlaskit/platform-feature-flags": "^1.1.0",
56
- "@atlaskit/primitives": "^19.0.0",
57
- "@atlaskit/progress-bar": "^4.2.0",
58
- "@atlaskit/react-ufo": "^6.7.0",
59
- "@atlaskit/spinner": "^19.1.0",
60
- "@atlaskit/theme": "^25.0.0",
61
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
62
- "@atlaskit/tokens": "^13.4.0",
63
- "@atlaskit/tooltip": "^22.6.0",
64
- "@atlaskit/ufo": "^0.5.0",
65
- "@atlaskit/visually-hidden": "^3.1.0",
33
+ "@atlaskit/analytics-next": "^12.0.0",
34
+ "@atlaskit/dropdown-menu": "^17.0.0",
35
+ "@atlaskit/editor-shared-styles": "^4.0.0",
36
+ "@atlaskit/icon": "^36.0.0",
37
+ "@atlaskit/interaction-context": "^4.0.0",
38
+ "@atlaskit/link": "^4.0.0",
39
+ "@atlaskit/media-client": "^37.0.0",
40
+ "@atlaskit/media-client-react": "^6.0.0",
41
+ "@atlaskit/media-common": "^14.0.0",
42
+ "@atlaskit/media-file-preview": "^1.0.0",
43
+ "@atlaskit/media-state": "^3.0.0",
44
+ "@atlaskit/media-svg": "^3.0.0",
45
+ "@atlaskit/media-ui": "^30.0.0",
46
+ "@atlaskit/media-viewer": "^54.0.0",
47
+ "@atlaskit/platform-feature-flags": "^2.0.0",
48
+ "@atlaskit/primitives": "^20.0.0",
49
+ "@atlaskit/progress-bar": "^5.0.0",
50
+ "@atlaskit/react-ufo": "^7.0.0",
51
+ "@atlaskit/spinner": "^20.0.0",
52
+ "@atlaskit/theme": "^26.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^104.0.0",
54
+ "@atlaskit/tokens": "^14.0.0",
55
+ "@atlaskit/tooltip": "^23.0.0",
56
+ "@atlaskit/ufo": "^1.0.0",
57
+ "@atlaskit/visually-hidden": "^4.0.0",
66
58
  "@babel/runtime": "^7.0.0",
67
59
  "@compiled/react": "^0.20.0",
68
60
  "classnames": "^2.2.5",
@@ -79,18 +71,18 @@
79
71
  },
80
72
  "devDependencies": {
81
73
  "@af/integration-testing": "workspace:^",
82
- "@atlaskit/analytics-listeners": "^10.1.0",
83
- "@atlaskit/analytics-namespaced-context": "^7.3.0",
84
- "@atlaskit/form": "^15.5.0",
85
- "@atlaskit/inline-message": "^15.6.0",
86
- "@atlaskit/media-core": "^37.1.0",
87
- "@atlaskit/media-picker": "^71.4.0",
88
- "@atlaskit/media-test-data": "^3.3.0",
89
- "@atlaskit/media-test-helpers": "^41.2.0",
90
- "@atlaskit/radio": "^8.6.0",
91
- "@atlaskit/range": "^10.1.0",
74
+ "@atlaskit/analytics-listeners": "^11.0.0",
75
+ "@atlaskit/analytics-namespaced-context": "^8.0.0",
76
+ "@atlaskit/form": "^16.0.0",
77
+ "@atlaskit/inline-message": "^16.0.0",
78
+ "@atlaskit/media-core": "^38.0.0",
79
+ "@atlaskit/media-picker": "^72.0.0",
80
+ "@atlaskit/media-test-data": "^4.0.0",
81
+ "@atlaskit/media-test-helpers": "^42.0.0",
82
+ "@atlaskit/radio": "^9.0.0",
83
+ "@atlaskit/range": "^11.0.0",
92
84
  "@atlaskit/ssr": "workspace:^",
93
- "@atlaskit/toggle": "^16.1.0",
85
+ "@atlaskit/toggle": "^17.0.0",
94
86
  "@atlassian/a11y-jest-testing": "^0.12.0",
95
87
  "@atlassian/feature-flags-test-utils": "^1.1.0",
96
88
  "@atlassian/react-compiler-gating": "workspace:^",
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/types.d.ts"
17
10
  }
@@ -1,15 +0,0 @@
1
- import { type FileItem, type FileDetails } from '@atlaskit/media-client';
2
- import { type ReactNode } from 'react';
3
- import { type MessageDescriptor } from 'react-intl';
4
- export interface CardAction {
5
- label?: string;
6
- handler: CardEventHandler;
7
- icon?: ReactNode;
8
- isDisabled?: boolean;
9
- tooltip?: string;
10
- }
11
- export type CardEventHandler = (item?: FileItem, event?: Event) => void;
12
- export declare function attachDetailsToActions(actions: Array<CardAction>, details: FileDetails): Array<CardAction>;
13
- type FormatMessageFn = (descriptor: MessageDescriptor) => string;
14
- export declare const createDownloadAction: (baseAction: CardAction, formatMessage: FormatMessageFn) => CardAction;
15
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /** AI loading overlay rendered over a media node: blanket + sliding rainbow bar. */
6
- export type AIGeneratingOverlayProps = {
7
- /** Accessible label for the progress bar (translated). */
8
- label: string;
9
- /** Optional test id for the overlay root element. Defaults to `'ai-generating-overlay'`. */
10
- testId?: string;
11
- };
12
- export declare function AIGeneratingOverlay({ label, testId }: AIGeneratingOverlayProps): JSX.Element;
@@ -1,2 +0,0 @@
1
- export { AIGeneratingOverlay } from './AIGeneratingOverlay';
2
- export type { AIGeneratingOverlayProps } from './AIGeneratingOverlay';
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl';
3
- import { type CardProps } from '../types';
4
- export type CardBaseProps = CardProps & Partial<WrappedComponentProps>;
5
- export declare const CardBase: ({ identifier, ...otherProps }: CardBaseProps & WrappedComponentProps) => React.JSX.Element;
6
- export declare const CardWithPerformanceObserver: (props: CardBaseProps & WrappedComponentProps) => React.JSX.Element;
7
- export declare const Card: React.ComponentType<CardBaseProps>;
@@ -1,10 +0,0 @@
1
- import { type FileAttributes, type MediaTraceContext, type PerformanceAttributes } from '@atlaskit/media-common';
2
- import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
- import { type SSRStatus } from '../utils/analytics';
4
- import { type CardStatus } from '../types';
5
- import { MediaCardError } from '../errors';
6
- import { type ProcessingFailReason } from '@atlaskit/media-state';
7
- export declare const fireOperationalEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, status: CardStatus, fileAttributes: FileAttributes, performanceAttributes: PerformanceAttributes, ssrReliability: SSRStatus, error: MediaCardError | undefined, traceContext: MediaTraceContext, metadataTraceContext?: MediaTraceContext, processingFailReason?: ProcessingFailReason) => void;
8
- export declare const fireNonCriticalErrorEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, cardStatus: CardStatus, fileAttributes: FileAttributes, ssrReliability: SSRStatus, error: MediaCardError | undefined, traceContext: MediaTraceContext, metadataTraceContext?: MediaTraceContext) => void;
9
- export declare const fireDownloadSucceededEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, traceContext: MediaTraceContext, metadataTraceContext?: MediaTraceContext) => void;
10
- export declare const fireDownloadFailedEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent, fileAttributes: FileAttributes, error: MediaCardError | undefined, traceContext: MediaTraceContext, metadataTraceContext?: MediaTraceContext) => void;
@@ -1 +0,0 @@
1
- export declare const newFileExperienceClassName = "new-file-experience-wrapper";
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { type CardWithMediaClientConfigProps } from './types';
3
- declare const CardLoader: {
4
- (props: CardWithMediaClientConfigProps): React.JSX.Element;
5
- preload(): void;
6
- };
7
- export default CardLoader;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { type CardWithMediaClientConfigProps } from './types';
3
- type CardSyncComponent = React.FC<CardWithMediaClientConfigProps>;
4
- declare const CardSync: CardSyncComponent;
5
- export default CardSync;