@atlaskit/smart-card 40.13.0 → 40.13.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 (247) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/i18n/en.js +5 -0
  3. package/dist/cjs/i18n/en_GB.js +5 -0
  4. package/dist/cjs/i18n/en_ZZ.js +5 -0
  5. package/dist/cjs/utils/analytics/analytics.js +1 -1
  6. package/dist/cjs/view/BlockCard/index.js +3 -0
  7. package/dist/cjs/view/BlockCard/views/utils/index.js +1 -1
  8. package/dist/cjs/view/EmbedCard/index.js +3 -0
  9. package/dist/cjs/view/InlineCard/index.js +3 -0
  10. package/dist/cjs/view/LinkUrl/index.js +1 -1
  11. package/dist/es2019/i18n/en.js +5 -0
  12. package/dist/es2019/i18n/en_GB.js +5 -0
  13. package/dist/es2019/i18n/en_ZZ.js +5 -0
  14. package/dist/es2019/utils/analytics/analytics.js +1 -1
  15. package/dist/es2019/view/BlockCard/index.js +2 -0
  16. package/dist/es2019/view/BlockCard/views/utils/index.js +1 -1
  17. package/dist/es2019/view/EmbedCard/index.js +2 -0
  18. package/dist/es2019/view/InlineCard/index.js +2 -0
  19. package/dist/es2019/view/LinkUrl/index.js +1 -1
  20. package/dist/esm/i18n/en.js +5 -0
  21. package/dist/esm/i18n/en_GB.js +5 -0
  22. package/dist/esm/i18n/en_ZZ.js +5 -0
  23. package/dist/esm/utils/analytics/analytics.js +1 -1
  24. package/dist/esm/view/BlockCard/index.js +2 -0
  25. package/dist/esm/view/BlockCard/views/utils/index.js +1 -1
  26. package/dist/esm/view/EmbedCard/index.js +2 -0
  27. package/dist/esm/view/InlineCard/index.js +2 -0
  28. package/dist/esm/view/LinkUrl/index.js +1 -1
  29. package/dist/types/extractors/action/extract-invoke-preview-action.d.ts +5 -5
  30. package/dist/types/extractors/common/actions/types.d.ts +2 -2
  31. package/dist/types/extractors/common/context/extractAccessContext.d.ts +2 -2
  32. package/dist/types/extractors/common/icon/extractIcon.d.ts +4 -4
  33. package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +6 -6
  34. package/dist/types/extractors/common/lozenge/extractTaskType.d.ts +1 -1
  35. package/dist/types/extractors/common/lozenge/types.d.ts +1 -1
  36. package/dist/types/extractors/flexible/actions/index.d.ts +6 -6
  37. package/dist/types/extractors/flexible/extract-state.d.ts +2 -2
  38. package/dist/types/extractors/index.d.ts +3 -3
  39. package/dist/types/i18n/en.d.ts +5 -0
  40. package/dist/types/i18n/en_GB.d.ts +5 -0
  41. package/dist/types/i18n/en_ZZ.d.ts +5 -0
  42. package/dist/types/model/invoke-opts.d.ts +2 -2
  43. package/dist/types/ssr.d.ts +1 -1
  44. package/dist/types/state/flexible-ui-context/types.d.ts +105 -105
  45. package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +38 -38
  46. package/dist/types/state/hooks/use-ai-summary-config/types.d.ts +1 -1
  47. package/dist/types/state/hooks/use-invoke/types.d.ts +1 -1
  48. package/dist/types/state/hooks/useSmartLink.d.ts +2 -2
  49. package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +14 -14
  50. package/dist/types/state/modal/types.d.ts +4 -4
  51. package/dist/types/types.d.ts +2 -2
  52. package/dist/types/utils/analytics/LinkAnalyticsContext.d.ts +2 -2
  53. package/dist/types/utils/analytics/SmartLinkAnalyticsContext.d.ts +3 -3
  54. package/dist/types/utils/analytics/types.d.ts +6 -6
  55. package/dist/types/view/BlockCard/types.d.ts +11 -11
  56. package/dist/types/view/BlockCard/views/utils/index.d.ts +1 -1
  57. package/dist/types/view/Card/types.d.ts +19 -19
  58. package/dist/types/view/CardWithUrl/types.d.ts +22 -22
  59. package/dist/types/view/EmbedCard/components/ErrorFrame.d.ts +4 -4
  60. package/dist/types/view/EmbedCard/components/ExpandedFrame.d.ts +22 -22
  61. package/dist/types/view/EmbedCard/components/Frame.d.ts +2 -2
  62. package/dist/types/view/EmbedCard/components/IFrame.d.ts +1 -1
  63. package/dist/types/view/EmbedCard/components/IframeDwellTracker.d.ts +1 -1
  64. package/dist/types/view/EmbedCard/components/ImageIcon.d.ts +2 -2
  65. package/dist/types/view/EmbedCard/components/styled.d.ts +7 -7
  66. package/dist/types/view/EmbedCard/types.d.ts +13 -13
  67. package/dist/types/view/EmbedCard/useEmbedResolvePostMessageListener.d.ts +1 -1
  68. package/dist/types/view/EmbedCard/views/ErroredView.d.ts +2 -2
  69. package/dist/types/view/EmbedCard/views/ResolvedView.d.ts +20 -20
  70. package/dist/types/view/EmbedCard/views/forbidden-view/types.d.ts +1 -1
  71. package/dist/types/view/EmbedCard/views/not-found-view/types.d.ts +1 -1
  72. package/dist/types/view/EmbedModal/components/embed-content/types.d.ts +1 -1
  73. package/dist/types/view/EmbedModal/components/link-info/types.d.ts +1 -1
  74. package/dist/types/view/EmbedModal/types.d.ts +2 -2
  75. package/dist/types/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
  76. package/dist/types/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +1 -1
  77. package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
  78. package/dist/types/view/FlexibleCard/components/actions/action/types.d.ts +40 -40
  79. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +2 -2
  80. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +1 -1
  81. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +10 -10
  82. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.d.ts +2 -2
  83. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +6 -6
  84. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +8 -8
  85. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
  86. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +1 -1
  87. package/dist/types/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
  88. package/dist/types/view/FlexibleCard/components/actions/custom-unresolved-action/index.d.ts +2 -2
  89. package/dist/types/view/FlexibleCard/components/actions/unresolved-action/index.d.ts +1 -1
  90. package/dist/types/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
  91. package/dist/types/view/FlexibleCard/components/blocks/action-group/types.d.ts +13 -13
  92. package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +11 -11
  93. package/dist/types/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -4
  94. package/dist/types/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +1 -1
  95. package/dist/types/view/FlexibleCard/components/blocks/preview-block/types.d.ts +4 -4
  96. package/dist/types/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -8
  97. package/dist/types/view/FlexibleCard/components/blocks/title-block/types.d.ts +35 -35
  98. package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +45 -45
  99. package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +1 -1
  100. package/dist/types/view/FlexibleCard/components/common/image-icon/types.d.ts +5 -5
  101. package/dist/types/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +4 -4
  102. package/dist/types/view/FlexibleCard/components/container/hover-card-control/types.d.ts +2 -2
  103. package/dist/types/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +8 -8
  104. package/dist/types/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +12 -12
  105. package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +8 -8
  106. package/dist/types/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +19 -19
  107. package/dist/types/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +10 -10
  108. package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/types.d.ts +4 -4
  109. package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/types.d.ts +1 -1
  110. package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +9 -9
  111. package/dist/types/view/FlexibleCard/components/elements/index.d.ts +4 -4
  112. package/dist/types/view/FlexibleCard/components/elements/media-element/index.d.ts +6 -6
  113. package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +1 -1
  114. package/dist/types/view/FlexibleCard/components/elements/preview-element/index.d.ts +4 -4
  115. package/dist/types/view/FlexibleCard/types.d.ts +41 -41
  116. package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +3 -3
  117. package/dist/types/view/HoverCard/types.d.ts +26 -26
  118. package/dist/types/view/InlineCard/ErroredView/index.d.ts +7 -7
  119. package/dist/types/view/InlineCard/ForbiddenView/index.d.ts +10 -10
  120. package/dist/types/view/InlineCard/Frame/index.d.ts +6 -6
  121. package/dist/types/view/InlineCard/Frame/styled.d.ts +3 -3
  122. package/dist/types/view/InlineCard/IconAndTitleLayout/index.d.ts +8 -8
  123. package/dist/types/view/InlineCard/ResolvedView/index.d.ts +15 -15
  124. package/dist/types/view/InlineCard/ResolvingView/index.d.ts +6 -6
  125. package/dist/types/view/InlineCard/UnauthorisedView/index.d.ts +14 -14
  126. package/dist/types/view/InlineCard/types.d.ts +11 -11
  127. package/dist/types/view/LinkUrl/types.d.ts +2 -2
  128. package/dist/types/view/RelatedLinksModal/components/EmptyState.d.ts +2 -2
  129. package/dist/types/view/RelatedLinksModal/components/types.d.ts +10 -10
  130. package/dist/types/view/RelatedLinksModal/types.d.ts +5 -5
  131. package/dist/types/view/common/Icon.d.ts +3 -3
  132. package/dist/types/view/common/UnauthorisedViewContent.d.ts +5 -5
  133. package/dist/types/view/common/ai-prism/ai-glowing-border/types.d.ts +7 -7
  134. package/dist/types/view/common/ai-prism/types.d.ts +1 -1
  135. package/dist/types/view/common/ai-summary/types.d.ts +6 -6
  136. package/dist/types/view/common/render-svg.d.ts +2 -2
  137. package/dist/types/view/types.d.ts +6 -6
  138. package/dist/types-ts4.5/extractors/action/extract-invoke-preview-action.d.ts +5 -5
  139. package/dist/types-ts4.5/extractors/common/actions/types.d.ts +2 -2
  140. package/dist/types-ts4.5/extractors/common/context/extractAccessContext.d.ts +2 -2
  141. package/dist/types-ts4.5/extractors/common/icon/extractIcon.d.ts +4 -4
  142. package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +6 -6
  143. package/dist/types-ts4.5/extractors/common/lozenge/extractTaskType.d.ts +1 -1
  144. package/dist/types-ts4.5/extractors/common/lozenge/types.d.ts +1 -1
  145. package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +6 -6
  146. package/dist/types-ts4.5/extractors/flexible/extract-state.d.ts +2 -2
  147. package/dist/types-ts4.5/extractors/index.d.ts +3 -3
  148. package/dist/types-ts4.5/i18n/en.d.ts +5 -0
  149. package/dist/types-ts4.5/i18n/en_GB.d.ts +5 -0
  150. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +5 -0
  151. package/dist/types-ts4.5/model/invoke-opts.d.ts +2 -2
  152. package/dist/types-ts4.5/ssr.d.ts +1 -1
  153. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +105 -105
  154. package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +38 -38
  155. package/dist/types-ts4.5/state/hooks/use-ai-summary-config/types.d.ts +1 -1
  156. package/dist/types-ts4.5/state/hooks/use-invoke/types.d.ts +1 -1
  157. package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +2 -2
  158. package/dist/types-ts4.5/state/hooks-external/useSmartLinkActions.d.ts +14 -14
  159. package/dist/types-ts4.5/state/modal/types.d.ts +4 -4
  160. package/dist/types-ts4.5/types.d.ts +2 -2
  161. package/dist/types-ts4.5/utils/analytics/LinkAnalyticsContext.d.ts +2 -2
  162. package/dist/types-ts4.5/utils/analytics/SmartLinkAnalyticsContext.d.ts +3 -3
  163. package/dist/types-ts4.5/utils/analytics/types.d.ts +6 -6
  164. package/dist/types-ts4.5/view/BlockCard/types.d.ts +11 -11
  165. package/dist/types-ts4.5/view/BlockCard/views/utils/index.d.ts +1 -1
  166. package/dist/types-ts4.5/view/Card/types.d.ts +19 -19
  167. package/dist/types-ts4.5/view/CardWithUrl/types.d.ts +22 -22
  168. package/dist/types-ts4.5/view/EmbedCard/components/ErrorFrame.d.ts +4 -4
  169. package/dist/types-ts4.5/view/EmbedCard/components/ExpandedFrame.d.ts +22 -22
  170. package/dist/types-ts4.5/view/EmbedCard/components/Frame.d.ts +2 -2
  171. package/dist/types-ts4.5/view/EmbedCard/components/IFrame.d.ts +1 -1
  172. package/dist/types-ts4.5/view/EmbedCard/components/IframeDwellTracker.d.ts +1 -1
  173. package/dist/types-ts4.5/view/EmbedCard/components/ImageIcon.d.ts +2 -2
  174. package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +7 -7
  175. package/dist/types-ts4.5/view/EmbedCard/types.d.ts +13 -13
  176. package/dist/types-ts4.5/view/EmbedCard/useEmbedResolvePostMessageListener.d.ts +1 -1
  177. package/dist/types-ts4.5/view/EmbedCard/views/ErroredView.d.ts +2 -2
  178. package/dist/types-ts4.5/view/EmbedCard/views/ResolvedView.d.ts +20 -20
  179. package/dist/types-ts4.5/view/EmbedCard/views/forbidden-view/types.d.ts +1 -1
  180. package/dist/types-ts4.5/view/EmbedCard/views/not-found-view/types.d.ts +1 -1
  181. package/dist/types-ts4.5/view/EmbedModal/components/embed-content/types.d.ts +1 -1
  182. package/dist/types-ts4.5/view/EmbedModal/components/link-info/types.d.ts +1 -1
  183. package/dist/types-ts4.5/view/EmbedModal/types.d.ts +2 -2
  184. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-button/types.d.ts +3 -3
  185. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-icon/types.d.ts +1 -1
  186. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/types.d.ts +1 -1
  187. package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/types.d.ts +40 -40
  188. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +2 -2
  189. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +1 -1
  190. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +10 -10
  191. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.d.ts +2 -2
  192. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +6 -6
  193. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +8 -8
  194. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/footer/main.d.ts +1 -1
  195. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.d.ts +1 -1
  196. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/utils/index.d.ts +1 -1
  197. package/dist/types-ts4.5/view/FlexibleCard/components/actions/custom-unresolved-action/index.d.ts +2 -2
  198. package/dist/types-ts4.5/view/FlexibleCard/components/actions/unresolved-action/index.d.ts +1 -1
  199. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/action-group-item/index.d.ts +2 -2
  200. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/action-group/types.d.ts +13 -13
  201. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/types.d.ts +11 -11
  202. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/footer-block/types.d.ts +4 -4
  203. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/metadata-block/types.d.ts +1 -1
  204. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/types.d.ts +4 -4
  205. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/snippet-block/types.d.ts +8 -8
  206. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/types.d.ts +35 -35
  207. package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +45 -45
  208. package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +1 -1
  209. package/dist/types-ts4.5/view/FlexibleCard/components/common/image-icon/types.d.ts +5 -5
  210. package/dist/types-ts4.5/view/FlexibleCard/components/common/loading-skeleton/types.d.ts +4 -4
  211. package/dist/types-ts4.5/view/FlexibleCard/components/container/hover-card-control/types.d.ts +2 -2
  212. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.d.ts +8 -8
  213. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-badge-element/index.d.ts +12 -12
  214. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +8 -8
  215. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +19 -19
  216. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +10 -10
  217. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/types.d.ts +4 -4
  218. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/types.d.ts +1 -1
  219. package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +9 -9
  220. package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +4 -4
  221. package/dist/types-ts4.5/view/FlexibleCard/components/elements/media-element/index.d.ts +6 -6
  222. package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +1 -1
  223. package/dist/types-ts4.5/view/FlexibleCard/components/elements/preview-element/index.d.ts +4 -4
  224. package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +41 -41
  225. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +3 -3
  226. package/dist/types-ts4.5/view/HoverCard/types.d.ts +26 -26
  227. package/dist/types-ts4.5/view/InlineCard/ErroredView/index.d.ts +7 -7
  228. package/dist/types-ts4.5/view/InlineCard/ForbiddenView/index.d.ts +10 -10
  229. package/dist/types-ts4.5/view/InlineCard/Frame/index.d.ts +6 -6
  230. package/dist/types-ts4.5/view/InlineCard/Frame/styled.d.ts +3 -3
  231. package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/index.d.ts +8 -8
  232. package/dist/types-ts4.5/view/InlineCard/ResolvedView/index.d.ts +15 -15
  233. package/dist/types-ts4.5/view/InlineCard/ResolvingView/index.d.ts +6 -6
  234. package/dist/types-ts4.5/view/InlineCard/UnauthorisedView/index.d.ts +14 -14
  235. package/dist/types-ts4.5/view/InlineCard/types.d.ts +11 -11
  236. package/dist/types-ts4.5/view/LinkUrl/types.d.ts +2 -2
  237. package/dist/types-ts4.5/view/RelatedLinksModal/components/EmptyState.d.ts +2 -2
  238. package/dist/types-ts4.5/view/RelatedLinksModal/components/types.d.ts +10 -10
  239. package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +5 -5
  240. package/dist/types-ts4.5/view/common/Icon.d.ts +3 -3
  241. package/dist/types-ts4.5/view/common/UnauthorisedViewContent.d.ts +5 -5
  242. package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/types.d.ts +7 -7
  243. package/dist/types-ts4.5/view/common/ai-prism/types.d.ts +1 -1
  244. package/dist/types-ts4.5/view/common/ai-summary/types.d.ts +6 -6
  245. package/dist/types-ts4.5/view/common/render-svg.d.ts +2 -2
  246. package/dist/types-ts4.5/view/types.d.ts +6 -6
  247. package/package.json +5 -6
@@ -2,6 +2,6 @@ import type { RequestAccessContextProps } from '../../../types';
2
2
  import type { ContextViewModel } from '../../types';
3
3
  import type { UnresolvedViewCardProps } from '../unresolved-view/types';
4
4
  export type NotFoundViewProps = UnresolvedViewCardProps & {
5
- context?: ContextViewModel;
6
5
  accessContext?: RequestAccessContextProps;
6
+ context?: ContextViewModel;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export type EmbedProps = {
2
+ ariaLabel?: string;
2
3
  isTrusted: boolean;
3
4
  name: string;
4
5
  src?: string;
5
6
  testId?: string;
6
- ariaLabel?: string;
7
7
  };
@@ -1,10 +1,10 @@
1
1
  import { type IconProps } from '../../../common/Icon';
2
2
  export type LinkInfoProps = {
3
3
  icon?: IconProps;
4
- providerName?: string;
5
4
  onDownloadButtonClick?: () => void;
6
5
  onResizeButtonClick?: () => void;
7
6
  onViewButtonClick?: () => void;
7
+ providerName?: string;
8
8
  size?: string;
9
9
  testId?: string;
10
10
  title?: string;
@@ -13,11 +13,11 @@ export type EmbedModalContext = {
13
13
  };
14
14
  export type EmbedModalProps = {
15
15
  fireEvent?: FireEventFunction;
16
+ iframeName: string;
16
17
  invokeDownloadAction?: InvokeClientActionProps;
17
18
  invokeViewAction?: InvokeClientActionProps;
18
- iframeName: string;
19
- isTrusted?: boolean;
20
19
  isSupportTheming?: boolean;
20
+ isTrusted?: boolean;
21
21
  linkIcon?: Icon;
22
22
  onClose: (context: EmbedModalContext) => void;
23
23
  onOpen?: (context: EmbedModalContext) => void;
@@ -2,11 +2,11 @@ import { type ReactElement } from 'react';
2
2
  import { type SmartLinkSize } from '../../../../../../constants';
3
3
  import { type ActionProps } from '../types';
4
4
  export type ActionButtonProps = ActionProps & {
5
+ ariaLabel?: string;
6
+ href?: string;
5
7
  iconAfter?: ReactElement;
6
8
  iconBefore?: ReactElement;
9
+ isDisabled?: boolean;
7
10
  isLoading?: boolean;
8
11
  size: SmartLinkSize;
9
- isDisabled?: boolean;
10
- href?: string;
11
- ariaLabel?: string;
12
12
  };
@@ -2,8 +2,8 @@ import type { ReactChild } from 'react';
2
2
  import type { SmartLinkSize } from '../../../../../../constants';
3
3
  export type ActionIconProps = {
4
4
  asStackItemIcon?: boolean;
5
- size?: SmartLinkSize;
6
5
  icon?: ReactChild;
7
6
  isDisabled?: boolean;
7
+ size?: SmartLinkSize;
8
8
  testId?: string;
9
9
  };
@@ -3,8 +3,8 @@ import type { Space } from '@atlaskit/primitives/compiled';
3
3
  import type { SmartLinkSize } from '../../../../../../constants';
4
4
  import type { ActionProps } from '../types';
5
5
  export type ActionStackItemProps = ActionProps & {
6
+ hideTooltipOnMouseDown?: boolean;
6
7
  size: SmartLinkSize;
7
8
  space?: Space;
8
9
  tooltipOnHide?: (analyticsEvent: UIAnalyticsEvent) => any;
9
- hideTooltipOnMouseDown?: boolean;
10
10
  };
@@ -10,30 +10,43 @@ export type ActionMessage = {
10
10
  title: ReactNode;
11
11
  };
12
12
  export type ActionProps = {
13
+ /**
14
+ * Determines the appearance of the action. Corresponds to the Atlaskit action appearance.
15
+ */
16
+ appearance?: Appearance;
17
+ /**
18
+ * Additional text properties for accessibility of actions
19
+ */
20
+ ariaLabel?: string;
13
21
  /**
14
22
  * Determines the appearance of the action.
15
23
  */
16
24
  as?: 'button' | 'dropdown-item' | 'stack-item';
17
25
  /**
18
- * Determines the size of the Action. Corresponds to an Action appearance.
26
+ * @deprecated Use 'as' instead
27
+ * Used to determine whether the Action is in a Dropdown.
19
28
  */
20
- size?: SmartLinkSize;
29
+ asDropDownItem?: boolean;
30
+ /**
31
+ * For compiled css
32
+ */
33
+ className?: string;
21
34
  /**
22
35
  * Determines the text content of the Action.
23
36
  */
24
37
  content?: ReactNode;
25
38
  /**
26
- * Determines the appearance of the action. Corresponds to the Atlaskit action appearance.
39
+ * Determines if the tooltip should be hidden
27
40
  */
28
- appearance?: Appearance;
41
+ hideTooltip?: boolean;
29
42
  /**
30
- * Determines the onClick behaviour of the Action.
43
+ * Determines the hideTooltipOnMouseDown behaviour of the Tooltip
31
44
  */
32
- onClick: () => any;
45
+ hideTooltipOnMouseDown?: boolean;
33
46
  /**
34
- * Error callback - each action is to provide its own implementation.
47
+ * Allows the use of hyperlinks as buttons via the atlaskit component
35
48
  */
36
- onError?: (error: ActionMessage) => void;
49
+ href?: string;
37
50
  /**
38
51
  * Determines the icon rendered within the Action.
39
52
  */
@@ -42,40 +55,36 @@ export type ActionProps = {
42
55
  * Determines where the icon should be rendered if text is provided.
43
56
  */
44
57
  iconPosition?: 'before' | 'after';
58
+ /**
59
+ * Determines whether the button displays as disabled.
60
+ */
61
+ isDisabled?: boolean;
45
62
  /**
46
63
  * Conditionally show a spinner over the top of a button or disable a dropdown item
47
64
  * while server action is executing.
48
65
  */
49
66
  isLoading?: boolean;
50
67
  /**
51
- * Determines the tooltip message when hovering over the Action.
52
- */
53
- tooltipMessage?: ReactNode;
54
- /**
55
- * Determines the onHide behaviour of the Tooltip
56
- */
57
- tooltipOnHide?: (analyticsEvent: UIAnalyticsEvent) => any;
58
- /**
59
- * Determines the hideTooltipOnMouseDown behaviour of the Tooltip
60
- */
61
- hideTooltipOnMouseDown?: boolean;
62
- /**
63
- * Determines if the tooltip should be hidden
68
+ * Determines the onClick behaviour of the Action.
64
69
  */
65
- hideTooltip?: boolean;
70
+ onClick: () => any;
66
71
  /**
67
- * @deprecated Use 'as' instead
68
- * Used to determine whether the Action is in a Dropdown.
72
+ * Error callback - each action is to provide its own implementation.
69
73
  */
70
- asDropDownItem?: boolean;
74
+ onError?: (error: ActionMessage) => void;
75
+ onLoadingChange?: (isLoading: boolean) => void;
71
76
  /**
72
- * For compiled css
77
+ * Determines the size of the Action. Corresponds to an Action appearance.
73
78
  */
74
- className?: string;
79
+ size?: SmartLinkSize;
75
80
  /**
76
81
  * Used to add space along the inline axis in ActionStackItem.
77
82
  */
78
83
  spaceInline?: Space;
84
+ /**
85
+ * For dynamic styles
86
+ */
87
+ style?: React.CSSProperties;
79
88
  /**
80
89
  * A `testId` prop is provided for specified elements, which is a unique
81
90
  * string that appears as a data attribute `data-testid` in the rendered code,
@@ -83,26 +92,17 @@ export type ActionProps = {
83
92
  */
84
93
  testId?: string;
85
94
  /**
86
- * Determines whether the button displays as disabled.
87
- */
88
- isDisabled?: boolean;
89
- /**
90
- * For dynamic styles
91
- */
92
- style?: React.CSSProperties;
93
- /**
94
- * Allows the use of hyperlinks as buttons via the atlaskit component
95
+ * Determines the tooltip message when hovering over the Action.
95
96
  */
96
- href?: string;
97
+ tooltipMessage?: ReactNode;
97
98
  /**
98
- * Additional text properties for accessibility of actions
99
+ * Determines the onHide behaviour of the Tooltip
99
100
  */
100
- ariaLabel?: string;
101
+ tooltipOnHide?: (analyticsEvent: UIAnalyticsEvent) => any;
101
102
  /**
102
103
  * Optional wrapper component to wrap the action
103
104
  * E.g., Feature discovery pulse
104
105
  * Cleanup on https://product-fabric.atlassian.net/browse/EDM-9649
105
106
  */
106
107
  wrapper?: React.ElementType;
107
- onLoadingChange?: (isLoading: boolean) => void;
108
108
  };
@@ -23,8 +23,8 @@ export type UserInputBooleanPrompt = UserInputPromptBase<boolean, UserInputType.
23
23
  export type UserInputSelectPrompt = UserInputPromptBase<string[], UserInputType.DROPDOWN>;
24
24
  export type UserInputPrompt = UserInputTextPrompt | UserInputNumberPrompt | UserInputBooleanPrompt | UserInputSelectPrompt | UserInputParagraphPrompt;
25
25
  type UserInputValueBase<Value, Type extends UserInputType> = {
26
- value: Value;
27
26
  inputType: Type;
27
+ value: Value;
28
28
  };
29
29
  export type UserInputBooleanValue = UserInputValueBase<boolean, UserInputType.BOOLEAN>;
30
30
  export type UserInputNumberValue = UserInputValueBase<number, UserInputType.NUMBER>;
@@ -63,8 +63,8 @@ export type RuleQuery = {
63
63
  objects?: Ari[];
64
64
  };
65
65
  export type SelectedRule = {
66
- rule: ManualRule;
67
66
  objects: Ari[];
67
+ rule: ManualRule;
68
68
  };
69
69
  export type SelectorOption = {
70
70
  label: string;
@@ -5,8 +5,8 @@ import type { Ari } from '../types';
5
5
  * @param site The Site ARI where the manual trigger rule is executed. Should be a product level Site ARI.
6
6
  */
7
7
  export declare const extractCloudIdAndProductFromSite: (site: Ari) => {
8
- product: string;
9
8
  cloudId: string;
9
+ product: string;
10
10
  };
11
11
  /***
12
12
  * TODO remove when unified public API is available.
@@ -8,26 +8,26 @@ import type { Ari, ManualRule, ManualRuleInvoker, RuleQuery, UserInputs } from '
8
8
  */
9
9
  export declare const useManualRules: (site: Ari, query: RuleQuery) => any[];
10
10
  export interface ManualRulesData {
11
- triggerFetch: () => Promise<void>;
12
- initialised: boolean;
13
11
  error: any;
14
- rules: ManualRule[];
15
- invokingRuleId: number | null;
12
+ initialised: boolean;
16
13
  invokeRuleOrShowDialog: ManualRuleInvoker;
14
+ invokingRuleId: number | null;
15
+ rules: ManualRule[];
16
+ triggerFetch: () => Promise<void>;
17
17
  }
18
18
  export interface ManualRulesContainerProps {
19
- site: Ari;
20
- query: RuleQuery;
21
- onInputsModalOpened?: () => void;
19
+ children: (data: ManualRulesData) => React.ReactElement;
22
20
  onInputsModalClosed?: () => void;
21
+ onInputsModalOpened?: () => void;
22
+ onRuleInvocationFailure?: (ruleId: number, successfulObjectIds: string[], failedObjects: string[]) => void;
23
23
  /********
24
24
  * Lifecycle handlers
25
25
  */
26
+ onRuleInvocationLifecycleDone?: (ruleId: number, objectIds: string[]) => void;
26
27
  onRuleInvocationLifecycleStarted?: (ruleId: number, objectIds: string[], inputs: UserInputs | undefined) => void;
27
28
  onRuleInvocationSuccess?: (ruleId: number, objectIds: string[]) => void;
28
- onRuleInvocationFailure?: (ruleId: number, successfulObjectIds: string[], failedObjects: string[]) => void;
29
- onRuleInvocationLifecycleDone?: (ruleId: number, objectIds: string[]) => void;
30
- children: (data: ManualRulesData) => React.ReactElement;
29
+ query: RuleQuery;
30
+ site: Ari;
31
31
  }
32
32
  /**
33
33
  *
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { type Ari, type SelectedRule, type UserInputs } from '../common/types';
3
3
  export interface UserInputProps {
4
- selectedRule: SelectedRule;
5
4
  clearSelectedRule: () => any;
6
5
  invokeRule: (ruleId: number, objects: Ari[], userInputs?: UserInputs) => Promise<void>;
7
- onInputsModalOpened?: () => void;
8
6
  onInputsModalClosed?: () => void;
7
+ onInputsModalOpened?: () => void;
8
+ selectedRule: SelectedRule;
9
9
  }
10
10
  declare const UserInputForm: (props: UserInputProps) => React.JSX.Element;
11
11
  export default UserInputForm;
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  export type AutomationModalProps = {
3
+ analyticsSource: string;
3
4
  baseAutomationUrl: string;
4
- objectAri: string;
5
- siteAri: string;
6
5
  canManageAutomation: boolean;
7
- analyticsSource: string;
8
- modalTitle: React.ReactNode;
9
- modalDescription?: React.ReactNode;
10
- emptyStateDescription?: React.ReactNode;
11
6
  emptyStateAdminDescription?: React.ReactNode;
7
+ emptyStateDescription?: React.ReactNode;
8
+ modalDescription?: React.ReactNode;
9
+ modalTitle: React.ReactNode;
10
+ objectAri: string;
12
11
  onClose: () => void;
13
12
  onCloseComplete?: () => void;
13
+ siteAri: string;
14
14
  };
15
15
  export declare const AutomationModal: ({ baseAutomationUrl, siteAri, objectAri, canManageAutomation, onClose, onCloseComplete, modalTitle, modalDescription, emptyStateDescription, emptyStateAdminDescription, analyticsSource, }: AutomationModalProps) => React.JSX.Element;
@@ -1,27 +1,27 @@
1
1
  import React from 'react';
2
2
  import { type ManualRulesData } from '../../manual-triggers-container';
3
3
  type AutomationMenuContextContainerProps = {
4
+ analyticsSource: string;
4
5
  baseAutomationUrl: string;
5
- objectAri: string;
6
- siteAri: string;
7
6
  canManageAutomation: boolean;
8
- analyticsSource: string;
9
7
  children: () => React.ReactElement;
10
- emptyStateDescription?: React.ReactNode;
11
8
  emptyStateAdminDescription?: React.ReactNode;
12
- onRuleInvocationSuccess?: () => void;
9
+ emptyStateDescription?: React.ReactNode;
10
+ objectAri: string;
13
11
  onRuleInvocationFailure?: () => void;
14
12
  onRuleInvocationLifecycleDone?: () => void;
13
+ onRuleInvocationSuccess?: () => void;
14
+ siteAri: string;
15
15
  };
16
16
  export type RuleExecutionState = 'SUCCEED' | 'FAILURE' | 'NONE';
17
17
  export type MenuContext = Omit<ManualRulesData, 'error'> & {
18
- fetchError: any;
19
18
  analyticsSource: string;
20
- objectAri: string;
21
19
  baseAutomationUrl: string;
22
20
  canManageAutomation: boolean;
23
- emptyStateDescription?: React.ReactNode;
24
21
  emptyStateAdminDescription?: React.ReactNode;
22
+ emptyStateDescription?: React.ReactNode;
23
+ fetchError: any;
24
+ objectAri: string;
25
25
  ruleExecutionState: RuleExecutionState;
26
26
  };
27
27
  export declare const useAutomationMenu: () => MenuContext;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { ManualRule } from '../../../manual-triggers-container/common/types';
3
3
  type AutomationModalFooterProps = {
4
- selectedRule: ManualRule | undefined;
5
4
  onClose: () => void;
5
+ selectedRule: ManualRule | undefined;
6
6
  };
7
7
  export declare const AutomationModalFooter: ({ selectedRule, onClose }: AutomationModalFooterProps) => React.JSX.Element | null;
8
8
  export {};
@@ -1,6 +1,6 @@
1
1
  type AutomationModalHeaderProps = {
2
- modalTitle?: React.ReactNode;
3
2
  modalDescription?: React.ReactNode;
3
+ modalTitle?: React.ReactNode;
4
4
  };
5
5
  export declare const AutomationModalHeader: ({ modalTitle, modalDescription, }: AutomationModalHeaderProps) => JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  type ModalContent = {
3
- modalTitle: MessageDescriptor;
4
3
  modalDescription: MessageDescriptor;
4
+ modalTitle: MessageDescriptor;
5
5
  };
6
6
  export declare const getModalContent: (product: string, resourceType: string) => ModalContent | undefined;
7
7
  export {};
@@ -6,11 +6,11 @@ export type AccessType = 'DIRECT_ACCESS' | 'REQUEST_ACCESS' | 'PENDING_REQUEST_E
6
6
  export type CustomStatusComponents = Partial<Record<NonNullable<AccessType> | 'FALLBACK', MessageDescriptor>>;
7
7
  type ErrorStatus = Extract<SmartLinkStatus, SmartLinkStatus.Forbidden | SmartLinkStatus.Unauthorized>;
8
8
  type CustomUnresolvedActionProps = Prettify<{
9
- testId?: string;
10
- onlyShowIfAction?: boolean;
11
9
  Container?: React.ComponentType<{
12
10
  children: React.ReactNode;
13
11
  }>;
12
+ onlyShowIfAction?: boolean;
13
+ testId?: string;
14
14
  } & Partial<Record<ErrorStatus, CustomStatusComponents>>>;
15
15
  declare const CustomUnresolvedAction: ({ testId, onlyShowIfAction, Container, ...props }: CustomUnresolvedActionProps) => JSX.Element | null;
16
16
  export default CustomUnresolvedAction;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const UnresolvedAction: ({ testId, hasPadding, }: {
3
- testId?: string;
4
3
  hasPadding?: boolean;
4
+ testId?: string;
5
5
  }) => React.JSX.Element | null;
6
6
  export default UnresolvedAction;
@@ -3,10 +3,10 @@ import { type Appearance } from '@atlaskit/button';
3
3
  import { type SmartLinkSize } from '../../../../../../constants';
4
4
  import { type ActionItem } from '../../types';
5
5
  declare const ActionGroupItem: ({ item, size, appearance, asDropDownItems, onActionItemClick, }: {
6
- item: ActionItem;
7
- size: SmartLinkSize;
8
6
  appearance?: Appearance;
9
7
  asDropDownItems?: boolean;
8
+ item: ActionItem;
10
9
  onActionItemClick?: () => void;
10
+ size: SmartLinkSize;
11
11
  }) => React.JSX.Element | null;
12
12
  export default ActionGroupItem;
@@ -3,35 +3,35 @@ import { type SmartLinkDirection, type SmartLinkSize } from '../../../../../cons
3
3
  import { type ActionItem } from '../types';
4
4
  export type ActionGroupProps = {
5
5
  /**
6
- * Determines the actions within the Action Group.
7
- */
8
- items: ActionItem[];
9
- /**
10
- * Determines the default size of the actions within the Action Group.
6
+ * Determines the default appearance of the Action Group.
11
7
  */
12
- size?: SmartLinkSize;
8
+ appearance?: Appearance;
13
9
  /**
14
10
  * Determines the direction that the actions are rendered. Can be vertical
15
11
  * or horizontal.
16
12
  */
17
13
  direction?: SmartLinkDirection;
18
14
  /**
19
- * Determines the default appearance of the Action Group.
20
- */
21
- appearance?: Appearance;
22
- /**
23
- * Determines the maximum number of singular actions that should be rendered
24
- * before collapsing all actions into a Dropdown.
15
+ * Determines the actions within the Action Group.
25
16
  */
26
- visibleButtonsNum?: number;
17
+ items: ActionItem[];
27
18
  /**
28
19
  * Called when the action dropdown menu (if present) is open/closed.
29
20
  */
30
21
  onDropdownOpenChange?: (isOpen: boolean) => void;
22
+ /**
23
+ * Determines the default size of the actions within the Action Group.
24
+ */
25
+ size?: SmartLinkSize;
31
26
  /**
32
27
  * A `testId` prop is provided for specified elements, which is a unique
33
28
  * string that appears as a data attribute `data-testid` in the rendered code,
34
29
  * serving as a hook for automated tests
35
30
  */
36
31
  testId?: string;
32
+ /**
33
+ * Determines the maximum number of singular actions that should be rendered
34
+ * before collapsing all actions into a Dropdown.
35
+ */
36
+ visibleButtonsNum?: number;
37
37
  };
@@ -5,30 +5,30 @@ export type ElementGroupProps = PropsWithChildren<{
5
5
  * Determines the alignment of the Elements within. Can be left or right aligned.
6
6
  */
7
7
  align?: SmartLinkAlignment;
8
+ /**
9
+ * For compiled css
10
+ */
11
+ className?: string;
8
12
  /**
9
13
  * Determines the direction that the Elements are rendered. Can be Vertical or Horizontal.
10
14
  */
11
15
  direction?: SmartLinkDirection;
12
16
  /**
13
- * Determines the default size of the Elements in the group.
17
+ * Determines the position of the elements within. Can be top or center position.
14
18
  */
15
- size?: SmartLinkSize;
19
+ position?: SmartLinkPosition;
16
20
  /**
17
- * Determines whether the container size will fit to the content or expand to the available width or the parent component.
18
- * Similar to flex's flex-grow concept.
21
+ * Determines the default size of the Elements in the group.
19
22
  */
20
- width?: SmartLinkWidth;
23
+ size?: SmartLinkSize;
21
24
  /**
22
25
  * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid`
23
26
  * in the rendered code, serving as a hook for automated tests
24
27
  */
25
28
  testId?: string;
26
29
  /**
27
- * Determines the position of the elements within. Can be top or center position.
28
- */
29
- position?: SmartLinkPosition;
30
- /**
31
- * For compiled css
30
+ * Determines whether the container size will fit to the content or expand to the available width or the parent component.
31
+ * Similar to flex's flex-grow concept.
32
32
  */
33
- className?: string;
33
+ width?: SmartLinkWidth;
34
34
  }>;
@@ -8,15 +8,15 @@ export type FooterBlockProps = {
8
8
  */
9
9
  actions?: ActionItem[];
10
10
  /**
11
- * Function to be called when footer action dropdown open state is changed.
11
+ * Allows rendering of the footer regardless of whether the block has resolved
12
12
  */
13
- onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
13
+ alwaysShow?: boolean;
14
14
  /**
15
15
  * Allows hiding of the resources provider
16
16
  */
17
17
  hideProvider?: boolean;
18
18
  /**
19
- * Allows rendering of the footer regardless of whether the block has resolved
19
+ * Function to be called when footer action dropdown open state is changed.
20
20
  */
21
- alwaysShow?: boolean;
21
+ onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
22
22
  } & BlockProps;
@@ -1,5 +1,6 @@
1
1
  import { type BlockProps, type ElementItem } from '../types';
2
2
  export type MetadataBlockProps = {
3
+ className?: string;
3
4
  /**
4
5
  * Determines the number of lines the metadata should span across.
5
6
  * Default is 2. Maximum is 2.
@@ -23,5 +24,4 @@ export type MetadataBlockProps = {
23
24
  * @see ElementItem
24
25
  */
25
26
  secondary?: ElementItem[];
26
- className?: string;
27
27
  } & BlockProps;
@@ -11,14 +11,14 @@ export type PreviewBlockProps = {
11
11
  * @internal
12
12
  */
13
13
  onError?: () => void;
14
+ /**
15
+ * An image URL to render. This will replace the default image from smart link data.
16
+ */
17
+ overrideUrl?: string;
14
18
  /**
15
19
  * The placement of the preview block in relation of its container.
16
20
  * This makes the preview block leave flex layout to absolute positioning
17
21
  * to the left/right of the container.
18
22
  */
19
23
  placement?: MediaPlacement;
20
- /**
21
- * An image URL to render. This will replace the default image from smart link data.
22
- */
23
- overrideUrl?: string;
24
24
  } & BlockProps;
@@ -1,20 +1,20 @@
1
1
  import { type BlockProps } from '../types';
2
2
  export type SnippetBlockProps = {
3
+ /**
4
+ * The snippet block is rendered hidden at times, this just informs the component and the snippet renderer
5
+ */
6
+ isHidden?: boolean;
3
7
  /**
4
8
  * Determines the maximum lines the text within the snippet block should
5
9
  * spread over. Default is 3. Maximum is 3.
6
10
  */
7
11
  maxLines?: number;
8
- /**
9
- * The text to display. Overrides the default link description.
10
- */
11
- text?: string;
12
- /**
13
- * The snippet block is rendered hidden at times, this just informs the component and the snippet renderer
14
- */
15
- isHidden?: boolean;
16
12
  /**
17
13
  * Whether to show the footer of the snippet block.
18
14
  */
19
15
  showFooter?: boolean;
16
+ /**
17
+ * The text to display. Overrides the default link description.
18
+ */
19
+ text?: string;
20
20
  } & BlockProps;