@atlaskit/media-ui 26.2.6 → 27.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/browser/package.json +3 -1
  3. package/classNames/package.json +3 -1
  4. package/codeViewer/package.json +3 -1
  5. package/dist/cjs/MediaInlineCard/Frame/styled-compiled.compiled.css +21 -0
  6. package/dist/cjs/MediaInlineCard/Frame/styled-compiled.js +51 -0
  7. package/dist/cjs/MediaInlineCard/Frame/styled-emotion.js +54 -0
  8. package/dist/cjs/MediaInlineCard/Frame/styled.js +7 -47
  9. package/dist/cjs/MediaInlineCard/Icon-compiled.compiled.css +10 -0
  10. package/dist/cjs/MediaInlineCard/Icon-compiled.js +45 -0
  11. package/dist/cjs/MediaInlineCard/Icon-emotion.js +35 -0
  12. package/dist/cjs/MediaInlineCard/Icon.js +10 -28
  13. package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled-compiled.compiled.css +33 -0
  14. package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled-compiled.js +122 -0
  15. package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled-emotion.js +97 -0
  16. package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled.js +38 -87
  17. package/dist/cjs/MediaInlineCard/LoadingView/styled-compiled.compiled.css +4 -0
  18. package/dist/cjs/MediaInlineCard/LoadingView/styled-compiled.js +25 -0
  19. package/dist/cjs/MediaInlineCard/LoadingView/styled-emotion.js +16 -0
  20. package/dist/cjs/MediaInlineCard/LoadingView/styled.js +7 -9
  21. package/dist/cjs/MediaInlineCard/styled-compiled.compiled.css +1 -0
  22. package/dist/cjs/MediaInlineCard/styled-compiled.js +29 -0
  23. package/dist/cjs/MediaInlineCard/styled-emotion.js +15 -0
  24. package/dist/cjs/MediaInlineCard/styled.js +7 -8
  25. package/dist/cjs/customMediaPlayer/index-compiled.compiled.css +10 -0
  26. package/dist/cjs/customMediaPlayer/index-compiled.js +667 -0
  27. package/dist/cjs/customMediaPlayer/index-emotion.js +678 -0
  28. package/dist/cjs/customMediaPlayer/index.js +10 -671
  29. package/dist/cjs/customMediaPlayer/playPauseBlanket-compiled.compiled.css +3 -0
  30. package/dist/cjs/customMediaPlayer/playPauseBlanket-compiled.js +22 -0
  31. package/dist/cjs/customMediaPlayer/playPauseBlanket-emotion.js +17 -0
  32. package/dist/cjs/customMediaPlayer/playPauseBlanket.js +7 -10
  33. package/dist/cjs/customMediaPlayer/styled-compiled.compiled.css +96 -0
  34. package/dist/cjs/customMediaPlayer/styled-compiled.js +186 -0
  35. package/dist/cjs/customMediaPlayer/styled-emotion.js +186 -0
  36. package/dist/cjs/customMediaPlayer/styled.js +53 -179
  37. package/dist/cjs/customMediaPlayer/timeRange.js +66 -23
  38. package/dist/cjs/customMediaPlayer/volumeRange.js +23 -2
  39. package/dist/cjs/ellipsify-compiled.compiled.css +1 -0
  40. package/dist/cjs/ellipsify-compiled.js +74 -0
  41. package/dist/cjs/ellipsify-emotion.js +81 -0
  42. package/dist/cjs/ellipsify.js +6 -72
  43. package/dist/cjs/inactivityDetector/inactivityDetector.js +2 -1
  44. package/dist/cjs/inactivityDetector/styled-compiled.compiled.css +14 -0
  45. package/dist/cjs/inactivityDetector/styled-compiled.js +31 -0
  46. package/dist/cjs/inactivityDetector/styled-emotion.js +19 -0
  47. package/dist/cjs/inactivityDetector/styled.js +15 -12
  48. package/dist/cjs/index.js +1 -1
  49. package/dist/cjs/media-type-icon-compiled.compiled.css +2 -0
  50. package/dist/cjs/media-type-icon-compiled.js +86 -0
  51. package/dist/cjs/media-type-icon-emotion.js +89 -0
  52. package/dist/cjs/media-type-icon.js +13 -63
  53. package/dist/cjs/mime-type-icon.compiled.css +2 -0
  54. package/dist/cjs/mime-type-icon.js +23 -5
  55. package/dist/cjs/modalSpinner-compiled.compiled.css +10 -0
  56. package/dist/cjs/modalSpinner-compiled.js +39 -0
  57. package/dist/cjs/modalSpinner-emotion.js +53 -0
  58. package/dist/cjs/modalSpinner.js +21 -42
  59. package/dist/cjs/truncateText-compiled.compiled.css +7 -0
  60. package/dist/cjs/truncateText-compiled.js +99 -0
  61. package/dist/cjs/truncateText-emotion.js +59 -0
  62. package/dist/cjs/truncateText.js +17 -63
  63. package/dist/es2019/MediaInlineCard/Frame/styled-compiled.compiled.css +21 -0
  64. package/dist/es2019/MediaInlineCard/Frame/styled-compiled.js +31 -0
  65. package/dist/es2019/MediaInlineCard/Frame/styled-emotion.js +54 -0
  66. package/dist/es2019/MediaInlineCard/Frame/styled.js +5 -54
  67. package/dist/es2019/MediaInlineCard/Icon-compiled.compiled.css +10 -0
  68. package/dist/es2019/MediaInlineCard/Icon-compiled.js +30 -0
  69. package/dist/es2019/MediaInlineCard/Icon-emotion.js +27 -0
  70. package/dist/es2019/MediaInlineCard/Icon.js +8 -27
  71. package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled-compiled.compiled.css +33 -0
  72. package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled-compiled.js +89 -0
  73. package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled-emotion.js +118 -0
  74. package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled.js +13 -118
  75. package/dist/es2019/MediaInlineCard/LoadingView/styled-compiled.compiled.css +4 -0
  76. package/dist/es2019/MediaInlineCard/LoadingView/styled-compiled.js +12 -0
  77. package/dist/es2019/MediaInlineCard/LoadingView/styled-emotion.js +9 -0
  78. package/dist/es2019/MediaInlineCard/LoadingView/styled.js +5 -9
  79. package/dist/es2019/MediaInlineCard/styled-compiled.compiled.css +1 -0
  80. package/dist/es2019/MediaInlineCard/styled-compiled.js +13 -0
  81. package/dist/es2019/MediaInlineCard/styled-emotion.js +8 -0
  82. package/dist/es2019/MediaInlineCard/styled.js +5 -8
  83. package/dist/es2019/customMediaPlayer/index-compiled.compiled.css +10 -0
  84. package/dist/es2019/customMediaPlayer/index-compiled.js +666 -0
  85. package/dist/es2019/customMediaPlayer/index-emotion.js +677 -0
  86. package/dist/es2019/customMediaPlayer/index.js +6 -678
  87. package/dist/es2019/customMediaPlayer/playPauseBlanket-compiled.compiled.css +3 -0
  88. package/dist/es2019/customMediaPlayer/playPauseBlanket-compiled.js +12 -0
  89. package/dist/es2019/customMediaPlayer/playPauseBlanket-emotion.js +10 -0
  90. package/dist/es2019/customMediaPlayer/playPauseBlanket.js +5 -10
  91. package/dist/es2019/customMediaPlayer/styled-compiled.compiled.css +96 -0
  92. package/dist/es2019/customMediaPlayer/styled-compiled.js +147 -0
  93. package/dist/es2019/customMediaPlayer/styled-emotion.js +265 -0
  94. package/dist/es2019/customMediaPlayer/styled.js +29 -264
  95. package/dist/es2019/customMediaPlayer/timeRange.js +55 -22
  96. package/dist/es2019/customMediaPlayer/volumeRange.js +23 -2
  97. package/dist/es2019/ellipsify-compiled.compiled.css +1 -0
  98. package/dist/es2019/ellipsify-compiled.js +62 -0
  99. package/dist/es2019/ellipsify-emotion.js +66 -0
  100. package/dist/es2019/ellipsify.js +5 -65
  101. package/dist/es2019/inactivityDetector/inactivityDetector.js +2 -1
  102. package/dist/es2019/inactivityDetector/styled-compiled.compiled.css +14 -0
  103. package/dist/es2019/inactivityDetector/styled-compiled.js +20 -0
  104. package/dist/es2019/inactivityDetector/styled-emotion.js +26 -0
  105. package/dist/es2019/inactivityDetector/styled.js +10 -26
  106. package/dist/es2019/index.js +1 -1
  107. package/dist/es2019/media-type-icon-compiled.compiled.css +2 -0
  108. package/dist/es2019/media-type-icon-compiled.js +63 -0
  109. package/dist/es2019/media-type-icon-emotion.js +66 -0
  110. package/dist/es2019/media-type-icon.js +6 -62
  111. package/dist/es2019/mime-type-icon.compiled.css +2 -0
  112. package/dist/es2019/mime-type-icon.js +19 -4
  113. package/dist/es2019/modalSpinner-compiled.compiled.css +10 -0
  114. package/dist/es2019/modalSpinner-compiled.js +28 -0
  115. package/dist/es2019/modalSpinner-emotion.js +44 -0
  116. package/dist/es2019/modalSpinner.js +6 -41
  117. package/dist/es2019/truncateText-compiled.compiled.css +7 -0
  118. package/dist/es2019/truncateText-compiled.js +88 -0
  119. package/dist/es2019/truncateText-emotion.js +61 -0
  120. package/dist/es2019/truncateText.js +7 -73
  121. package/dist/esm/MediaInlineCard/Frame/styled-compiled.compiled.css +21 -0
  122. package/dist/esm/MediaInlineCard/Frame/styled-compiled.js +41 -0
  123. package/dist/esm/MediaInlineCard/Frame/styled-emotion.js +46 -0
  124. package/dist/esm/MediaInlineCard/Frame/styled.js +7 -46
  125. package/dist/esm/MediaInlineCard/Icon-compiled.compiled.css +10 -0
  126. package/dist/esm/MediaInlineCard/Icon-compiled.js +35 -0
  127. package/dist/esm/MediaInlineCard/Icon-emotion.js +27 -0
  128. package/dist/esm/MediaInlineCard/Icon.js +12 -27
  129. package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled-compiled.compiled.css +33 -0
  130. package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled-compiled.js +112 -0
  131. package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled-emotion.js +89 -0
  132. package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled.js +29 -89
  133. package/dist/esm/MediaInlineCard/LoadingView/styled-compiled.compiled.css +4 -0
  134. package/dist/esm/MediaInlineCard/LoadingView/styled-compiled.js +15 -0
  135. package/dist/esm/MediaInlineCard/LoadingView/styled-emotion.js +9 -0
  136. package/dist/esm/MediaInlineCard/LoadingView/styled.js +7 -9
  137. package/dist/esm/MediaInlineCard/styled-compiled.compiled.css +1 -0
  138. package/dist/esm/MediaInlineCard/styled-compiled.js +19 -0
  139. package/dist/esm/MediaInlineCard/styled-emotion.js +8 -0
  140. package/dist/esm/MediaInlineCard/styled.js +7 -8
  141. package/dist/esm/customMediaPlayer/index-compiled.compiled.css +10 -0
  142. package/dist/esm/customMediaPlayer/index-compiled.js +660 -0
  143. package/dist/esm/customMediaPlayer/index-emotion.js +671 -0
  144. package/dist/esm/customMediaPlayer/index.js +8 -670
  145. package/dist/esm/customMediaPlayer/playPauseBlanket-compiled.compiled.css +3 -0
  146. package/dist/esm/customMediaPlayer/playPauseBlanket-compiled.js +15 -0
  147. package/dist/esm/customMediaPlayer/playPauseBlanket-emotion.js +10 -0
  148. package/dist/esm/customMediaPlayer/playPauseBlanket.js +7 -10
  149. package/dist/esm/customMediaPlayer/styled-compiled.compiled.css +96 -0
  150. package/dist/esm/customMediaPlayer/styled-compiled.js +177 -0
  151. package/dist/esm/customMediaPlayer/styled-emotion.js +178 -0
  152. package/dist/esm/customMediaPlayer/styled.js +49 -177
  153. package/dist/esm/customMediaPlayer/timeRange.js +66 -23
  154. package/dist/esm/customMediaPlayer/volumeRange.js +23 -2
  155. package/dist/esm/ellipsify-compiled.compiled.css +1 -0
  156. package/dist/esm/ellipsify-compiled.js +65 -0
  157. package/dist/esm/ellipsify-emotion.js +70 -0
  158. package/dist/esm/ellipsify.js +6 -68
  159. package/dist/esm/inactivityDetector/inactivityDetector.js +2 -1
  160. package/dist/esm/inactivityDetector/styled-compiled.compiled.css +14 -0
  161. package/dist/esm/inactivityDetector/styled-compiled.js +21 -0
  162. package/dist/esm/inactivityDetector/styled-emotion.js +13 -0
  163. package/dist/esm/inactivityDetector/styled.js +12 -13
  164. package/dist/esm/index.js +1 -1
  165. package/dist/esm/media-type-icon-compiled.compiled.css +2 -0
  166. package/dist/esm/media-type-icon-compiled.js +79 -0
  167. package/dist/esm/media-type-icon-emotion.js +83 -0
  168. package/dist/esm/media-type-icon.js +6 -62
  169. package/dist/esm/mime-type-icon.compiled.css +2 -0
  170. package/dist/esm/mime-type-icon.js +19 -4
  171. package/dist/esm/modalSpinner-compiled.compiled.css +10 -0
  172. package/dist/esm/modalSpinner-compiled.js +29 -0
  173. package/dist/esm/modalSpinner-emotion.js +45 -0
  174. package/dist/esm/modalSpinner.js +7 -41
  175. package/dist/esm/truncateText-compiled.compiled.css +7 -0
  176. package/dist/esm/truncateText-compiled.js +89 -0
  177. package/dist/esm/truncateText-emotion.js +53 -0
  178. package/dist/esm/truncateText.js +12 -64
  179. package/dist/types/MediaInlineCard/Frame/styled-compiled.d.ts +5 -0
  180. package/dist/types/MediaInlineCard/Frame/styled-emotion.d.ts +6 -0
  181. package/dist/types/MediaInlineCard/Frame/styled.d.ts +4 -8
  182. package/dist/types/MediaInlineCard/Icon-compiled.d.ts +3 -0
  183. package/dist/types/MediaInlineCard/Icon-emotion.d.ts +9 -0
  184. package/dist/types/MediaInlineCard/Icon.d.ts +3 -9
  185. package/dist/types/MediaInlineCard/IconAndTitleLayout/styled-compiled.d.ts +9 -0
  186. package/dist/types/MediaInlineCard/IconAndTitleLayout/styled-emotion.d.ts +35 -0
  187. package/dist/types/MediaInlineCard/IconAndTitleLayout/styled.d.ts +10 -35
  188. package/dist/types/MediaInlineCard/LoadingView/styled-compiled.d.ts +2 -0
  189. package/dist/types/MediaInlineCard/LoadingView/styled-emotion.d.ts +9 -0
  190. package/dist/types/MediaInlineCard/LoadingView/styled.d.ts +2 -9
  191. package/dist/types/MediaInlineCard/styled-compiled.d.ts +2 -0
  192. package/dist/types/MediaInlineCard/styled-emotion.d.ts +5 -0
  193. package/dist/types/MediaInlineCard/styled.d.ts +2 -5
  194. package/dist/types/customMediaPlayer/index-compiled.d.ts +76 -0
  195. package/dist/types/customMediaPlayer/index-emotion.d.ts +52 -0
  196. package/dist/types/customMediaPlayer/index.d.ts +5 -75
  197. package/dist/types/customMediaPlayer/playPauseBlanket-compiled.d.ts +6 -0
  198. package/dist/types/customMediaPlayer/playPauseBlanket-emotion.d.ts +5 -0
  199. package/dist/types/customMediaPlayer/playPauseBlanket.d.ts +2 -5
  200. package/dist/types/customMediaPlayer/styled-compiled.d.ts +35 -0
  201. package/dist/types/customMediaPlayer/styled-emotion.d.ts +69 -0
  202. package/dist/types/customMediaPlayer/styled.d.ts +16 -74
  203. package/dist/types/customMediaPlayer/timeRange.d.ts +2 -0
  204. package/dist/types/ellipsify-compiled.d.ts +10 -0
  205. package/dist/types/ellipsify-emotion.d.ts +7 -0
  206. package/dist/types/ellipsify.d.ts +4 -12
  207. package/dist/types/inactivityDetector/styled-compiled.d.ts +5 -0
  208. package/dist/types/inactivityDetector/styled-emotion.d.ts +6 -0
  209. package/dist/types/inactivityDetector/styled.d.ts +4 -8
  210. package/dist/types/index.d.ts +3 -3
  211. package/dist/types/media-type-icon-compiled.d.ts +19 -0
  212. package/dist/types/media-type-icon-emotion.d.ts +12 -0
  213. package/dist/types/media-type-icon.d.ts +3 -17
  214. package/dist/types/modalSpinner-compiled.d.ts +7 -0
  215. package/dist/types/modalSpinner-emotion.d.ts +15 -0
  216. package/dist/types/modalSpinner.d.ts +4 -15
  217. package/dist/types/truncateText-compiled.d.ts +20 -0
  218. package/dist/types/truncateText-emotion.d.ts +11 -0
  219. package/dist/types/truncateText.d.ts +7 -22
  220. package/dist/types-ts4.5/MediaInlineCard/Frame/styled-compiled.d.ts +5 -0
  221. package/dist/types-ts4.5/MediaInlineCard/Frame/styled-emotion.d.ts +6 -0
  222. package/dist/types-ts4.5/MediaInlineCard/Frame/styled.d.ts +4 -8
  223. package/dist/types-ts4.5/MediaInlineCard/Icon-compiled.d.ts +3 -0
  224. package/dist/types-ts4.5/MediaInlineCard/Icon-emotion.d.ts +9 -0
  225. package/dist/types-ts4.5/MediaInlineCard/Icon.d.ts +3 -9
  226. package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled-compiled.d.ts +9 -0
  227. package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled-emotion.d.ts +35 -0
  228. package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled.d.ts +10 -35
  229. package/dist/types-ts4.5/MediaInlineCard/LoadingView/styled-compiled.d.ts +2 -0
  230. package/dist/types-ts4.5/MediaInlineCard/LoadingView/styled-emotion.d.ts +9 -0
  231. package/dist/types-ts4.5/MediaInlineCard/LoadingView/styled.d.ts +2 -9
  232. package/dist/types-ts4.5/MediaInlineCard/styled-compiled.d.ts +2 -0
  233. package/dist/types-ts4.5/MediaInlineCard/styled-emotion.d.ts +5 -0
  234. package/dist/types-ts4.5/MediaInlineCard/styled.d.ts +2 -5
  235. package/dist/types-ts4.5/customMediaPlayer/index-compiled.d.ts +76 -0
  236. package/dist/types-ts4.5/customMediaPlayer/index-emotion.d.ts +52 -0
  237. package/dist/types-ts4.5/customMediaPlayer/index.d.ts +5 -75
  238. package/dist/types-ts4.5/customMediaPlayer/playPauseBlanket-compiled.d.ts +6 -0
  239. package/dist/types-ts4.5/customMediaPlayer/playPauseBlanket-emotion.d.ts +5 -0
  240. package/dist/types-ts4.5/customMediaPlayer/playPauseBlanket.d.ts +2 -5
  241. package/dist/types-ts4.5/customMediaPlayer/styled-compiled.d.ts +35 -0
  242. package/dist/types-ts4.5/customMediaPlayer/styled-emotion.d.ts +69 -0
  243. package/dist/types-ts4.5/customMediaPlayer/styled.d.ts +16 -74
  244. package/dist/types-ts4.5/customMediaPlayer/timeRange.d.ts +2 -0
  245. package/dist/types-ts4.5/ellipsify-compiled.d.ts +10 -0
  246. package/dist/types-ts4.5/ellipsify-emotion.d.ts +7 -0
  247. package/dist/types-ts4.5/ellipsify.d.ts +4 -12
  248. package/dist/types-ts4.5/inactivityDetector/styled-compiled.d.ts +5 -0
  249. package/dist/types-ts4.5/inactivityDetector/styled-emotion.d.ts +6 -0
  250. package/dist/types-ts4.5/inactivityDetector/styled.d.ts +4 -8
  251. package/dist/types-ts4.5/index.d.ts +3 -3
  252. package/dist/types-ts4.5/media-type-icon-compiled.d.ts +19 -0
  253. package/dist/types-ts4.5/media-type-icon-emotion.d.ts +12 -0
  254. package/dist/types-ts4.5/media-type-icon.d.ts +3 -17
  255. package/dist/types-ts4.5/modalSpinner-compiled.d.ts +7 -0
  256. package/dist/types-ts4.5/modalSpinner-emotion.d.ts +15 -0
  257. package/dist/types-ts4.5/modalSpinner.d.ts +4 -15
  258. package/dist/types-ts4.5/truncateText-compiled.d.ts +20 -0
  259. package/dist/types-ts4.5/truncateText-emotion.d.ts +11 -0
  260. package/dist/types-ts4.5/truncateText.d.ts +7 -22
  261. package/errorIcon/package.json +3 -1
  262. package/formatDate/package.json +3 -1
  263. package/locales/package.json +3 -1
  264. package/media-type-icon/package.json +3 -1
  265. package/messages/package.json +3 -1
  266. package/mime-type-icon/package.json +3 -1
  267. package/modalSpinner/package.json +3 -1
  268. package/package.json +15 -5
  269. package/truncateText/package.json +3 -1
  270. package/types/package.json +3 -1
  271. package/util/package.json +3 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/media-ui
2
2
 
3
+ ## 27.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 27.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#169432](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/169432)
14
+ [`d3cd99e113f4c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d3cd99e113f4c) -
15
+ Migrates Media UI to Compiled CSS behind a feature flag.
16
+
3
17
  ## 26.2.6
4
18
 
5
19
  ### Patch Changes
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/browser.js",
4
4
  "module": "../dist/esm/browser.js",
5
5
  "module:es2019": "../dist/es2019/browser.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/browser.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/classNames.js",
4
4
  "module": "../dist/esm/classNames.js",
5
5
  "module:es2019": "../dist/es2019/classNames.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/classNames.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/codeViewer.js",
4
4
  "module": "../dist/esm/codeViewer.js",
5
5
  "module:es2019": "../dist/es2019/codeViewer.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/codeViewer.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -0,0 +1,21 @@
1
+
2
+ ._1yt4ood9{padding:var(--_6un1n5)}
3
+ ._2rko1sit{border-radius:var(--ds-border-radius,3px)}
4
+ ._v56415x0{transition:all .1s ease-in-out}
5
+ ._1h6d1j28{border-color:transparent}._12ji1r31{outline-color:currentColor}
6
+ ._12y31o36{outline-width:medium}
7
+ ._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
8
+ ._16qs1qst{box-shadow:var(--_7nesqg)}
9
+ ._1e0c1nu9{display:inline}
10
+ ._1hmsglyw, ._c2waglyw:active, ._4fprglyw:focus, ._1bnxglyw:hover{text-decoration-line:none}
11
+ ._1qu2glyw{outline-style:none}
12
+ ._1rkwglyw{-moz-user-select:none}
13
+ ._4bfu18uv, ._1nrm18uv:active, ._1a3b18uv:focus, ._9oik18uv:hover{text-decoration-color:initial}
14
+ ._80omtlke{cursor:pointer}
15
+ ._ajmmnqa1, ._1iohnqa1:active, ._5goinqa1:focus, ._jf4cnqa1:hover{text-decoration-style:solid}
16
+ ._bfhkfpvg{background-color:var(--_9tzd1j)}
17
+ ._syazovqm{color:var(--_5xk3r4)}
18
+ ._uizt1kdv{-webkit-user-select:text;-ms-user-select:text;user-select:text}
19
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
20
+ ._vwz47vkz{line-height:1pc}
21
+ ._irr3l5fl:hover{background-color:var(--_138ec4y)}
@@ -0,0 +1,51 @@
1
+ /* styled-compiled.tsx generated by @compiled/babel-plugin v0.32.2 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.Wrapper = void 0;
10
+ require("./styled-compiled.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+ var _colors = require("@atlaskit/theme/colors");
16
+ var _excluded = ["isSelected", "children"];
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ var selectedStyles = null;
20
+ var notSelectedStyles = null;
21
+ var wrapperStyles = null;
22
+
23
+ /*
24
+ Media Inline cards should have the following layout:
25
+ -----------------
26
+ | icon | title |
27
+ -----------------
28
+ The aim is to ensure (1) all children are
29
+ in line with each other, (2) are vertically
30
+ centered.
31
+ */
32
+ // NB: `padding` consistent with @mentions.
33
+ // NB: `display: inline` required for `box-decoration-break` to work.
34
+ // NB: `box-decoration-break` required for retaining properties (border-radius) on wrap.
35
+ var Wrapper = exports.Wrapper = function Wrapper(_ref) {
36
+ var isSelected = _ref.isSelected,
37
+ children = _ref.children,
38
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
39
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({
40
+ "data-testid": "frame-wrapper"
41
+ }, props, {
42
+ className: (0, _runtime.ax)(["_vwz47vkz _1yt4ood9 _16d9qvcn _1e0c1nu9 _2rko1sit _syazovqm _bfhkfpvg _v56415x0 _1rkwglyw _80omtlke _irr3l5fl", isSelected && "_80omtlke _16qs1qst _12ji1r31 _1qu2glyw _12y31o36 _uiztglyw _1h6d1j28 _4bfu18uv _1nrm18uv _1a3b18uv _9oik18uv _1hmsglyw _c2waglyw _4fprglyw _1bnxglyw _ajmmnqa1 _1iohnqa1 _5goinqa1 _jf4cnqa1", !isSelected && "_uizt1kdv"]),
43
+ style: {
44
+ "--_6un1n5": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-025, 2px)", " ", "var(--ds-space-050, 4px)")),
45
+ "--_5xk3r4": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N900, ")")),
46
+ "--_9tzd1j": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N30A, ")")),
47
+ "--_138ec4y": (0, _runtime.ix)("var(--ds-background-neutral-hovered, ".concat(_colors.N40A, ")")),
48
+ "--_7nesqg": (0, _runtime.ix)("0 0 0 1px ".concat("var(--ds-border-selected, ".concat(_colors.B300, ")")))
49
+ }
50
+ }), children);
51
+ };
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Wrapper = void 0;
8
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
+ var _colors = require("@atlaskit/theme/colors");
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+
12
+ var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 1px ".concat("var(--ds-border-selected, ".concat(_colors.B300, ")"), ";\n outline: none;\n user-select: none;\n border-color: transparent;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n");
13
+ var isSelected = function isSelected(_ref) {
14
+ var isSelected = _ref.isSelected;
15
+ if (isSelected) {
16
+ return selected;
17
+ } else {
18
+ return 'user-select: text';
19
+ }
20
+ };
21
+
22
+ /*
23
+ Media Inline cards should have the following layout:
24
+ -----------------
25
+ | icon | title |
26
+ -----------------
27
+ The aim is to ensure (1) all children are
28
+ in line with each other, (2) are vertically
29
+ centered.
30
+ */
31
+ // NB: `padding` consistent with @mentions.
32
+ // NB: `display: inline` required for `box-decoration-break` to work.
33
+ // NB: `box-decoration-break` required for retaining properties (border-radius) on wrap.
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
+ var Wrapper = exports.Wrapper = _styled.default.span({
36
+ lineHeight: '16px',
37
+ padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-025, 2px)", " ", "var(--ds-space-050, 4px)"),
38
+ boxDecorationBreak: 'clone',
39
+ display: 'inline',
40
+ borderRadius: "var(--ds-border-radius, 3px)",
41
+ color: "var(--ds-text, ".concat(_colors.N900, ")"),
42
+ backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N30A, ")")
43
+ },
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
45
+ function (props) {
46
+ return isSelected(props);
47
+ }, {
48
+ transition: '0.1s all ease-in-out',
49
+ MozUserSelect: 'none',
50
+ cursor: 'pointer',
51
+ '&:hover': {
52
+ backgroundColor: "var(--ds-background-neutral-hovered, ".concat(_colors.N40A, ")")
53
+ }
54
+ });
@@ -5,50 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.Wrapper = void 0;
8
- var _styled = _interopRequireDefault(require("@emotion/styled"));
9
- var _colors = require("@atlaskit/theme/colors");
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
-
12
- var selected = "\n cursor: pointer;\n box-shadow: 0 0 0 1px ".concat("var(--ds-border-selected, ".concat(_colors.B300, ")"), ";\n outline: none;\n user-select: none;\n border-color: transparent;\n &, :hover, :focus, :active {\n text-decoration: none;\n }\n");
13
- var isSelected = function isSelected(_ref) {
14
- var isSelected = _ref.isSelected;
15
- if (isSelected) {
16
- return selected;
17
- } else {
18
- return 'user-select: text';
19
- }
20
- };
21
-
22
- /*
23
- Media Inline cards should have the following layout:
24
- -----------------
25
- | icon | title |
26
- -----------------
27
- The aim is to ensure (1) all children are
28
- in line with each other, (2) are vertically
29
- centered.
30
- */
31
- // NB: `padding` consistent with @mentions.
32
- // NB: `display: inline` required for `box-decoration-break` to work.
33
- // NB: `box-decoration-break` required for retaining properties (border-radius) on wrap.
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
35
- var Wrapper = exports.Wrapper = _styled.default.span({
36
- lineHeight: '16px',
37
- padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-025, 2px)", " ", "var(--ds-space-050, 4px)"),
38
- boxDecorationBreak: 'clone',
39
- display: 'inline',
40
- borderRadius: "var(--ds-border-radius, 3px)",
41
- color: "var(--ds-text, ".concat(_colors.N900, ")"),
42
- backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N30A, ")")
43
- },
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
45
- function (props) {
46
- return isSelected(props);
47
- }, {
48
- transition: '0.1s all ease-in-out',
49
- MozUserSelect: 'none',
50
- cursor: 'pointer',
51
- '&:hover': {
52
- backgroundColor: "var(--ds-background-neutral-hovered, ".concat(_colors.N40A, ")")
53
- }
54
- });
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _styledEmotion = require("./styled-emotion");
10
+ var _styledCompiled = require("./styled-compiled");
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
+ var Wrapper = exports.Wrapper = function Wrapper(props) {
13
+ return (0, _platformFeatureFlags.fg)('platform_media_compiled') ? /*#__PURE__*/_react.default.createElement(_styledCompiled.Wrapper, props) : /*#__PURE__*/_react.default.createElement(_styledEmotion.Wrapper, props);
14
+ };
@@ -0,0 +1,10 @@
1
+
2
+ ._2rkoyh40{border-radius:2px}._154i1ssb{top:50%}
3
+ ._1bsbdlk8{width:14px}
4
+ ._1ltv1ssb{left:50%}
5
+ ._2hwx1b66{margin-right:var(--ds-space-050,4px)}
6
+ ._2hwx1i6y{margin-right:var(--ds-space-negative-025,-2px)}
7
+ ._4t3idlk8{height:14px}
8
+ ._kqswstnw{position:absolute}
9
+ ._t9ec1ooe{transform:translate(-50%,-50%)}
10
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
@@ -0,0 +1,45 @@
1
+ /* Icon-compiled.tsx generated by @compiled/babel-plugin v0.32.2 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.Icon = exports.AKIconWrapper = void 0;
10
+ require("./Icon-compiled.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+ var _excluded = ["alt"],
16
+ _excluded2 = ["children"];
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ // TODO: Figure out a more scalable/responsive solution
20
+ // for vertical alignment.
21
+ // Current rationale: vertically positioned at the top of
22
+ // the smart card container (when set to 0). Offset this
23
+ // to position it with appropriate whitespace from the top.
24
+ var iconStyles = null;
25
+ var Icon = exports.Icon = function Icon(_ref) {
26
+ var alt = _ref.alt,
27
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
+ return /*#__PURE__*/React.createElement("img", (0, _extends2.default)({
29
+ alt: alt || ''
30
+ }, props, {
31
+ className: (0, _runtime.ax)(["_4t3idlk8 _1bsbdlk8 _2hwx1b66 _2rkoyh40 _uiztglyw _kqswstnw _154i1ssb _1ltv1ssb _t9ec1ooe"])
32
+ }));
33
+ };
34
+
35
+ // Used for 'untrue' icons which claim to be 16x16 but
36
+ // are less than that in height/width.
37
+ // TODO: Replace this override with proper AtlasKit solution.
38
+ var akIconWrapperStyles = null;
39
+ var AKIconWrapper = exports.AKIconWrapper = function AKIconWrapper(_ref2) {
40
+ var children = _ref2.children,
41
+ props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
42
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
43
+ className: (0, _runtime.ax)(["_2hwx1i6y"])
44
+ }), children);
45
+ };
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Icon = exports.AKIconWrapper = void 0;
8
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
+
11
+ // TODO: Figure out a more scalable/responsive solution
12
+ // for vertical alignment.
13
+ // Current rationale: vertically positioned at the top of
14
+ // the smart card container (when set to 0). Offset this
15
+ // to position it with appropriate whitespace from the top.
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
17
+ var Icon = exports.Icon = _styled.default.img({
18
+ height: '14px',
19
+ width: '14px',
20
+ marginRight: "var(--ds-space-050, 4px)",
21
+ borderRadius: '2px',
22
+ userSelect: 'none',
23
+ position: 'absolute',
24
+ top: '50%',
25
+ left: '50%',
26
+ transform: 'translate(-50%, -50%)'
27
+ });
28
+
29
+ // Used for 'untrue' icons which claim to be 16x16 but
30
+ // are less than that in height/width.
31
+ // TODO: Replace this override with proper AtlasKit solution.
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
+ var AKIconWrapper = exports.AKIconWrapper = _styled.default.span({
34
+ marginRight: "var(--ds-space-negative-025, -2px)"
35
+ });
@@ -5,31 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.Icon = exports.AKIconWrapper = void 0;
8
- var _styled = _interopRequireDefault(require("@emotion/styled"));
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
-
11
- // TODO: Figure out a more scalable/responsive solution
12
- // for vertical alignment.
13
- // Current rationale: vertically positioned at the top of
14
- // the smart card container (when set to 0). Offset this
15
- // to position it with appropriate whitespace from the top.
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
17
- var Icon = exports.Icon = _styled.default.img({
18
- height: '14px',
19
- width: '14px',
20
- marginRight: "var(--ds-space-050, 4px)",
21
- borderRadius: '2px',
22
- userSelect: 'none',
23
- position: 'absolute',
24
- top: '50%',
25
- left: '50%',
26
- transform: 'translate(-50%, -50%)'
27
- });
28
-
29
- // Used for 'untrue' icons which claim to be 16x16 but
30
- // are less than that in height/width.
31
- // TODO: Replace this override with proper AtlasKit solution.
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
- var AKIconWrapper = exports.AKIconWrapper = _styled.default.span({
34
- marginRight: "var(--ds-space-negative-025, -2px)"
35
- });
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _IconEmotion = require("./Icon-emotion");
10
+ var _IconCompiled = require("./Icon-compiled");
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
+ var Icon = exports.Icon = function Icon(props) {
13
+ return (0, _platformFeatureFlags.fg)('platform_media_compiled') ? /*#__PURE__*/_react.default.createElement(_IconCompiled.Icon, props) : /*#__PURE__*/_react.default.createElement(_IconEmotion.Icon, props);
14
+ };
15
+ var AKIconWrapper = exports.AKIconWrapper = function AKIconWrapper(props) {
16
+ return (0, _platformFeatureFlags.fg)('platform_media_compiled') ? /*#__PURE__*/_react.default.createElement(_IconCompiled.AKIconWrapper, props) : /*#__PURE__*/_react.default.createElement(_IconEmotion.AKIconWrapper, props);
17
+ };
@@ -0,0 +1,33 @@
1
+
2
+ ._1esr1qcg>span{padding:var(--_1yxkslj)}._15x0stnw>*>span>svg{position:absolute}
3
+ ._17047vkz>*>span{height:1pc}
4
+ ._18lx1ooe>span>svg{transform:translate(-50%,-50%)}
5
+ ._18u0v77o{margin-left:var(--ds-space-025,2px)}
6
+ ._1bsbdlk8{width:14px}
7
+ ._1e0c1o8l{display:inline-block}
8
+ ._1f027vkz>span{height:1pc}
9
+ ._1fqgstnw>span>svg{position:absolute}
10
+ ._1gx11ssb>span>svg{left:50%}
11
+ ._1kd9idpf>*>span{top:0}
12
+ ._1msp1b66>span{margin-left:var(--ds-space-050,4px)}
13
+ ._1nmz9jpi{word-break:break-all}
14
+ ._1tr81ssb>*>span>svg{left:50%}
15
+ ._1yg7idpf>*>span{left:0}
16
+ ._2hwx1b66{margin-right:var(--ds-space-050,4px)}
17
+ ._2hwxv77o{margin-right:var(--ds-space-025,2px)}
18
+ ._3g5ridpf>span{left:0}
19
+ ._4d7tstnw>span{position:absolute}
20
+ ._4t3i1osq{height:100%}
21
+ ._d1gw1ssb>span>svg{top:50%}
22
+ ._iibfdlk8>*>span{width:14px}
23
+ ._k9fw1ssb>*>span>svg{top:50%}
24
+ ._kqswh2mm{position:relative}
25
+ ._lacastnw>*>span{position:absolute}
26
+ ._nbgxdlk8>span{width:14px}
27
+ ._o5721jtm{white-space:pre-wrap}
28
+ ._o5fvidpf>span{top:0}
29
+ ._q3v31ooe>*>span>svg{transform:translate(-50%,-50%)}
30
+ ._s7n4t94y{vertical-align:1px}
31
+ ._tzy4idpf{opacity:0}
32
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
33
+ ._z6uadlk8>span{line-height:14px}
@@ -0,0 +1,122 @@
1
+ /* styled-compiled.tsx generated by @compiled/babel-plugin v0.32.2 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.LozengeBlockWrapper = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconEmptyWrapper = exports.EmojiWrapper = void 0;
10
+ require("./styled-compiled.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
+ var _excluded = ["children"],
16
+ _excluded2 = ["children"],
17
+ _excluded3 = ["children"],
18
+ _excluded4 = ["children"],
19
+ _excluded5 = ["children"],
20
+ _excluded6 = ["children"],
21
+ _excluded7 = ["children"],
22
+ _excluded8 = ["children"];
23
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
24
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
+
27
+ // TODO: remove this override behaviour for @atlaskit/icon-object
28
+ var iconObjectOverrideStyles = null;
29
+
30
+ // TODO: remove this override behaviour for @atlaskit/icon
31
+ var iconOverrideStyles = null;
32
+ var iconWrapperStyles = null;
33
+
34
+ // Wraps all icons represented in Inline Links. Icons have three sources/types:
35
+ // - JSON-LD: from the generator.icon property coming back from ORS.
36
+ // - @atlaskit/icon: for lock icons, unauthorized, etc.
37
+ // - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
38
+ // NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
39
+ // NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
40
+ var IconWrapper = exports.IconWrapper = function IconWrapper(_ref) {
41
+ var children = _ref.children,
42
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
43
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
44
+ className: (0, _runtime.ax)(["_uiztglyw", "_1f027vkz _nbgxdlk8 _4d7tstnw _o5fvidpf _3g5ridpf _z6uadlk8 _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", "_17047vkz _iibfdlk8 _lacastnw _1kd9idpf _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe"])
45
+ }), children);
46
+ };
47
+ var emojiWrapperStyles = null;
48
+
49
+ // Wraps all emoji in Inline Links similar to icon
50
+ var EmojiWrapper = exports.EmojiWrapper = function EmojiWrapper(_ref2) {
51
+ var children = _ref2.children,
52
+ props = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
53
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
54
+ className: (0, _runtime.ax)(["_1e0c1o8l _2hwxv77o _uiztglyw", "_1f027vkz _nbgxdlk8 _4d7tstnw _o5fvidpf _3g5ridpf _z6uadlk8 _1fqgstnw _d1gw1ssb _1gx11ssb _18lx1ooe", "_17047vkz _iibfdlk8 _lacastnw _1kd9idpf _1yg7idpf _15x0stnw _k9fw1ssb _1tr81ssb _q3v31ooe"])
55
+ }), children);
56
+ };
57
+ var iconTitleWrapperStyles = null;
58
+
59
+ // The main 'wrapping' element, title of the content.
60
+ // NB: `white-space` adds little whitespace before wrapping.
61
+ // NB: `word-break` line breaks as soon as an overflow takes place.
62
+ var IconTitleWrapper = exports.IconTitleWrapper = function IconTitleWrapper(_ref3) {
63
+ var children = _ref3.children,
64
+ props = (0, _objectWithoutProperties2.default)(_ref3, _excluded3);
65
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
66
+ className: (0, _runtime.ax)(["_o5721jtm _1nmz9jpi"])
67
+ }), children);
68
+ };
69
+ var lozengeWrapperStyles = null;
70
+
71
+ // TODO: Replace overrides with proper AtlasKit solution.
72
+ var LozengeWrapper = exports.LozengeWrapper = function LozengeWrapper(_ref4) {
73
+ var children = _ref4.children,
74
+ props = (0, _objectWithoutProperties2.default)(_ref4, _excluded4);
75
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
76
+ className: (0, _runtime.ax)(["_1e0c1o8l _s7n4t94y _1msp1b66 _1esr1qcg"]),
77
+ style: {
78
+ "--_1yxkslj": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0"))
79
+ }
80
+ }), children);
81
+ };
82
+ var lozengeBlockWrapperStyles = null;
83
+
84
+ // TODO: Replace overrides with proper AtlasKit solution.
85
+ var LozengeBlockWrapper = exports.LozengeBlockWrapper = function LozengeBlockWrapper(_ref5) {
86
+ var children = _ref5.children,
87
+ props = (0, _objectWithoutProperties2.default)(_ref5, _excluded5);
88
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
89
+ className: (0, _runtime.ax)(["_1msp1b66 _1esr1qcg"]),
90
+ style: {
91
+ "--_1yxkslj": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0"))
92
+ }
93
+ }), children);
94
+ };
95
+ var rightIconPositionWrapperStyles = null;
96
+ var RightIconPositionWrapper = exports.RightIconPositionWrapper = function RightIconPositionWrapper(_ref6) {
97
+ var children = _ref6.children,
98
+ props = (0, _objectWithoutProperties2.default)(_ref6, _excluded6);
99
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
100
+ className: (0, _runtime.ax)(["_18u0v77o _2hwx1b66 _kqswh2mm _1e0c1o8l"])
101
+ }), children);
102
+ };
103
+ var iconPositionWrapperStyles = null;
104
+
105
+ // The following components are used to absolutely position icons in the vertical center.
106
+ // - IconPositionWrapper: the `relative` parent which has no height in itself.
107
+ // - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
108
+ var IconPositionWrapper = exports.IconPositionWrapper = function IconPositionWrapper(_ref7) {
109
+ var children = _ref7.children,
110
+ props = (0, _objectWithoutProperties2.default)(_ref7, _excluded7);
111
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
112
+ className: (0, _runtime.ax)(["_2hwx1b66 _kqswh2mm _1e0c1o8l"])
113
+ }), children);
114
+ };
115
+ var iconEmptyWrapperStyles = null;
116
+ var IconEmptyWrapper = exports.IconEmptyWrapper = function IconEmptyWrapper(_ref8) {
117
+ var children = _ref8.children,
118
+ props = (0, _objectWithoutProperties2.default)(_ref8, _excluded8);
119
+ return /*#__PURE__*/React.createElement("span", (0, _extends2.default)({}, props, {
120
+ className: (0, _runtime.ax)(["_1bsbdlk8 _4t3i1osq _1e0c1o8l _tzy4idpf"])
121
+ }), children);
122
+ };
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.LozengeBlockWrapper = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconOverrides = exports.IconObjectOverrides = exports.IconEmptyWrapper = exports.EmojiWrapper = void 0;
8
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
+
11
+ // TODO: remove this override behaviour for @atlaskit/icon-object
12
+ var IconObjectOverrides = exports.IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
13
+ // TODO: remove this override behaviour for @atlaskit/icon
14
+ var IconOverrides = exports.IconOverrides = "\n & > * > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
15
+
16
+ // Wraps all icons represented in Inline Links. Icons have three sources/types:
17
+ // - JSON-LD: from the generator.icon property coming back from ORS.
18
+ // - @atlaskit/icon: for lock icons, unauthorized, etc.
19
+ // - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
20
+ // NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
21
+ // NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
23
+ var IconWrapper = exports.IconWrapper = _styled.default.span({
24
+ userSelect: 'none'
25
+ },
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
27
+ IconOverrides,
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
+ IconObjectOverrides);
30
+
31
+ // Wraps all emoji in Inline Links similar to icon
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
+ var EmojiWrapper = exports.EmojiWrapper = _styled.default.span({
34
+ display: 'inline-block',
35
+ marginRight: "var(--ds-space-025, 2px)",
36
+ userSelect: 'none'
37
+ },
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
39
+ IconOverrides,
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
41
+ IconObjectOverrides);
42
+
43
+ // The main 'wrapping' element, title of the content.
44
+ // NB: `white-space` adds little whitespace before wrapping.
45
+ // NB: `word-break` line breaks as soon as an overflow takes place.
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
47
+ var IconTitleWrapper = exports.IconTitleWrapper = _styled.default.span({
48
+ whiteSpace: 'pre-wrap',
49
+ wordBreak: 'break-all'
50
+ });
51
+
52
+ // TODO: Replace overrides with proper AtlasKit solution.
53
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
54
+ var LozengeWrapper = exports.LozengeWrapper = _styled.default.span({
55
+ display: 'inline-block',
56
+ verticalAlign: '1px',
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
58
+ '& > span': {
59
+ marginLeft: "var(--ds-space-050, 4px)",
60
+ padding: "var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0")
61
+ }
62
+ });
63
+ // TODO: Replace overrides with proper AtlasKit solution.
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
65
+ var LozengeBlockWrapper = exports.LozengeBlockWrapper = _styled.default.span({
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
67
+ '& > span': {
68
+ marginLeft: "var(--ds-space-050, 4px)",
69
+ padding: "var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)", " 0")
70
+ }
71
+ });
72
+
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
74
+ var RightIconPositionWrapper = exports.RightIconPositionWrapper = _styled.default.span({
75
+ marginLeft: "var(--ds-space-025, 2px)",
76
+ marginRight: "var(--ds-space-050, 4px)",
77
+ position: 'relative',
78
+ display: 'inline-block'
79
+ });
80
+
81
+ // The following components are used to absolutely position icons in the vertical center.
82
+ // - IconPositionWrapper: the `relative` parent which has no height in itself.
83
+ // - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
85
+ var IconPositionWrapper = exports.IconPositionWrapper = _styled.default.span({
86
+ marginRight: "var(--ds-space-050, 4px)",
87
+ position: 'relative',
88
+ display: 'inline-block'
89
+ });
90
+
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
92
+ var IconEmptyWrapper = exports.IconEmptyWrapper = _styled.default.span({
93
+ width: '14px',
94
+ height: '100%',
95
+ display: 'inline-block',
96
+ opacity: 0
97
+ });