@atlaskit/smart-card 27.0.0 → 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/extractors/flexible/extract-state.js +1 -2
  3. package/dist/cjs/messages.js +17 -2
  4. package/dist/cjs/utils/analytics/analytics.js +1 -1
  5. package/dist/cjs/view/BlockCard/components/ActionIcon.js +22 -14
  6. package/dist/cjs/view/BlockCard/components/Content.js +3 -1
  7. package/dist/cjs/view/BlockCard/components/ContentFooter.js +3 -1
  8. package/dist/cjs/view/BlockCard/components/ContentHeader.js +3 -1
  9. package/dist/cjs/view/BlockCard/components/Frame.js +6 -2
  10. package/dist/cjs/view/BlockCard/components/Link.js +3 -1
  11. package/dist/cjs/view/BlockCard/components/Name.js +3 -1
  12. package/dist/cjs/view/BlockCard/components/Provider.js +1 -0
  13. package/dist/cjs/view/BlockCard/views/ErroredView.js +3 -1
  14. package/dist/cjs/view/BlockCard/views/ForbiddenView.js +6 -2
  15. package/dist/cjs/view/BlockCard/views/NotFoundView.js +3 -1
  16. package/dist/cjs/view/BlockCard/views/ResolvedView.js +6 -2
  17. package/dist/cjs/view/BlockCard/views/ResolvingView.js +3 -1
  18. package/dist/cjs/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
  19. package/dist/cjs/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
  20. package/dist/cjs/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
  21. package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +41 -29
  22. package/dist/cjs/view/EmbedCard/components/ImageIcon.js +3 -1
  23. package/dist/cjs/view/EmbedModal/components/link-info/index.js +11 -8
  24. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
  25. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +25 -57
  26. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -20
  27. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -7
  28. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +6 -8
  29. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +9 -10
  30. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -3
  31. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -3
  32. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +1 -6
  33. package/dist/cjs/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
  34. package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
  35. package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
  36. package/dist/cjs/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
  37. package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +1 -0
  38. package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
  39. package/dist/cjs/view/HoverCard/components/ContentContainer.js +2 -0
  40. package/dist/cjs/view/InlineCard/Frame/index.js +3 -1
  41. package/dist/cjs/view/InlineCard/Icon.js +3 -1
  42. package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +23 -13
  43. package/dist/cjs/view/InlineCard/ResolvedView/index.js +3 -1
  44. package/dist/cjs/view/LinkUrl/index.js +1 -1
  45. package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
  46. package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +56 -0
  47. package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +41 -0
  48. package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +31 -0
  49. package/dist/cjs/view/RelatedLinksModal/views/resolved/types.js +1 -0
  50. package/dist/cjs/view/common/Byline.js +3 -1
  51. package/dist/cjs/view/common/Icon.js +3 -1
  52. package/dist/cjs/view/common/MetadataList.js +3 -1
  53. package/dist/es2019/extractors/flexible/extract-state.js +1 -2
  54. package/dist/es2019/messages.js +17 -2
  55. package/dist/es2019/utils/analytics/analytics.js +1 -1
  56. package/dist/es2019/view/BlockCard/components/ActionIcon.js +22 -14
  57. package/dist/es2019/view/BlockCard/components/Content.js +3 -1
  58. package/dist/es2019/view/BlockCard/components/ContentFooter.js +3 -1
  59. package/dist/es2019/view/BlockCard/components/ContentHeader.js +3 -1
  60. package/dist/es2019/view/BlockCard/components/Frame.js +6 -2
  61. package/dist/es2019/view/BlockCard/components/Link.js +3 -1
  62. package/dist/es2019/view/BlockCard/components/Name.js +3 -1
  63. package/dist/es2019/view/BlockCard/components/Provider.js +1 -0
  64. package/dist/es2019/view/BlockCard/views/ErroredView.js +3 -1
  65. package/dist/es2019/view/BlockCard/views/ForbiddenView.js +6 -2
  66. package/dist/es2019/view/BlockCard/views/NotFoundView.js +3 -1
  67. package/dist/es2019/view/BlockCard/views/ResolvedView.js +6 -2
  68. package/dist/es2019/view/BlockCard/views/ResolvingView.js +3 -1
  69. package/dist/es2019/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
  70. package/dist/es2019/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
  71. package/dist/es2019/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
  72. package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +14 -4
  73. package/dist/es2019/view/EmbedCard/components/ImageIcon.js +3 -1
  74. package/dist/es2019/view/EmbedModal/components/link-info/index.js +11 -8
  75. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
  76. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +6 -34
  77. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -2
  78. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -1
  79. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +5 -7
  80. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +7 -8
  81. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +0 -2
  82. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +0 -2
  83. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +1 -8
  84. package/dist/es2019/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
  85. package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
  86. package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
  87. package/dist/es2019/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
  88. package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +1 -0
  89. package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
  90. package/dist/es2019/view/HoverCard/components/ContentContainer.js +2 -0
  91. package/dist/es2019/view/InlineCard/Frame/index.js +3 -1
  92. package/dist/es2019/view/InlineCard/Icon.js +3 -1
  93. package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +23 -13
  94. package/dist/es2019/view/InlineCard/ResolvedView/index.js +3 -1
  95. package/dist/es2019/view/LinkUrl/index.js +1 -1
  96. package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
  97. package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +50 -0
  98. package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +33 -0
  99. package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +23 -0
  100. package/dist/es2019/view/RelatedLinksModal/views/resolved/types.js +0 -0
  101. package/dist/es2019/view/common/Byline.js +3 -1
  102. package/dist/es2019/view/common/Icon.js +3 -1
  103. package/dist/es2019/view/common/MetadataList.js +3 -1
  104. package/dist/esm/extractors/flexible/extract-state.js +1 -2
  105. package/dist/esm/messages.js +17 -2
  106. package/dist/esm/utils/analytics/analytics.js +1 -1
  107. package/dist/esm/view/BlockCard/components/ActionIcon.js +22 -14
  108. package/dist/esm/view/BlockCard/components/Content.js +3 -1
  109. package/dist/esm/view/BlockCard/components/ContentFooter.js +3 -1
  110. package/dist/esm/view/BlockCard/components/ContentHeader.js +3 -1
  111. package/dist/esm/view/BlockCard/components/Frame.js +6 -2
  112. package/dist/esm/view/BlockCard/components/Link.js +3 -1
  113. package/dist/esm/view/BlockCard/components/Name.js +3 -1
  114. package/dist/esm/view/BlockCard/components/Provider.js +1 -0
  115. package/dist/esm/view/BlockCard/views/ErroredView.js +3 -1
  116. package/dist/esm/view/BlockCard/views/ForbiddenView.js +6 -2
  117. package/dist/esm/view/BlockCard/views/NotFoundView.js +3 -1
  118. package/dist/esm/view/BlockCard/views/ResolvedView.js +6 -2
  119. package/dist/esm/view/BlockCard/views/ResolvingView.js +3 -1
  120. package/dist/esm/view/CardWithUrl/component-lazy/LazyIntersectionObserverCard.js +2 -0
  121. package/dist/esm/view/CardWithUrl/component-lazy/LazyLazilyRenderCard.js +3 -1
  122. package/dist/esm/view/CardWithUrl/component-lazy/LoadingCardLink.js +3 -1
  123. package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +41 -29
  124. package/dist/esm/view/EmbedCard/components/ImageIcon.js +3 -1
  125. package/dist/esm/view/EmbedModal/components/link-info/index.js +11 -8
  126. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +57 -55
  127. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.js +24 -57
  128. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.js +1 -2
  129. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.js +0 -1
  130. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.js +6 -8
  131. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.js +9 -10
  132. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -3
  133. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.js +1 -3
  134. package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +1 -6
  135. package/dist/esm/view/FlexibleCard/components/actions/follow-action/unfollow-icon/index.js +3 -1
  136. package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +3 -1
  137. package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +1 -0
  138. package/dist/esm/view/FlexibleCard/components/common/motion-wrapper/index.js +3 -0
  139. package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +1 -0
  140. package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +3 -1
  141. package/dist/esm/view/HoverCard/components/ContentContainer.js +2 -0
  142. package/dist/esm/view/InlineCard/Frame/index.js +3 -1
  143. package/dist/esm/view/InlineCard/Icon.js +3 -1
  144. package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +23 -13
  145. package/dist/esm/view/InlineCard/ResolvedView/index.js +3 -1
  146. package/dist/esm/view/LinkUrl/index.js +1 -1
  147. package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +10 -7
  148. package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +49 -0
  149. package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +34 -0
  150. package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +24 -0
  151. package/dist/esm/view/RelatedLinksModal/views/resolved/types.js +0 -0
  152. package/dist/esm/view/common/Byline.js +3 -1
  153. package/dist/esm/view/common/Icon.js +3 -1
  154. package/dist/esm/view/common/MetadataList.js +3 -1
  155. package/dist/types/messages.d.ts +1 -1
  156. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +7 -5
  157. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +3 -8
  158. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.d.ts +1 -2
  159. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +0 -1
  160. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +3 -5
  161. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.d.ts +5 -6
  162. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -3
  163. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -3
  164. package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +5 -4
  165. package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +5 -0
  166. package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +5 -0
  167. package/dist/types/view/RelatedLinksModal/components/types.d.ts +16 -0
  168. package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +5 -0
  169. package/dist/types/view/RelatedLinksModal/views/resolved/types.d.ts +4 -0
  170. package/dist/types-ts4.5/messages.d.ts +1 -1
  171. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +7 -5
  172. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/api.d.ts +3 -8
  173. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/index.d.ts +1 -2
  174. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/index.d.ts +0 -1
  175. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/main.d.ts +3 -5
  176. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/services/index.d.ts +5 -6
  177. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.d.ts +1 -3
  178. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/main.d.ts +1 -3
  179. package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +5 -4
  180. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +5 -0
  181. package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +5 -0
  182. package/dist/types-ts4.5/view/RelatedLinksModal/components/types.d.ts +16 -0
  183. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +5 -0
  184. package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/types.d.ts +4 -0
  185. package/package.json +3 -6
  186. package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -138
  187. package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -51
  188. package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.js +0 -131
  189. package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.d.ts +0 -3
  190. package/dist/types/view/RelatedLinksModal/types.d.ts +0 -6
  191. package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/utils/stack-resolver.d.ts +0 -3
  192. package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +0 -6
  193. /package/dist/cjs/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
  194. /package/dist/es2019/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
  195. /package/dist/esm/view/RelatedLinksModal/{types.js → components/types.js} +0 -0
@@ -28,7 +28,9 @@ export var InlineCardResolvedView = /*#__PURE__*/function (_React$Component) {
28
28
  var appearance = lozenge.appearance || 'default';
29
29
  return /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, {
30
30
  testId: "inline-card-resolved-view-lozenge",
31
- appearance: appearance,
31
+ appearance: appearance
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
33
+ ,
32
34
  style: lozenge.style,
33
35
  isBold: lozenge.isBold
34
36
  }, lozenge.text));
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "27.0.0",
13
+ packageVersion: "27.2.0",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -1,17 +1,20 @@
1
- import React from 'react';
1
+ /** @jsx jsx */
2
+
3
+ import { jsx } from '@emotion/react';
2
4
  import { FormattedMessage } from 'react-intl-next';
3
5
  import Button from '@atlaskit/button/new';
4
6
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition } from '@atlaskit/modal-dialog';
5
7
  import { messages } from '../../../messages';
6
- var RelatedLinksModal = function RelatedLinksModal(_ref) {
8
+ var RelatedLinksBaseModal = function RelatedLinksBaseModal(_ref) {
7
9
  var onClose = _ref.onClose,
8
10
  showModal = _ref.showModal,
9
11
  children = _ref.children;
10
- return /*#__PURE__*/React.createElement(ModalTransition, null, showModal && /*#__PURE__*/React.createElement(Modal, {
11
- onClose: onClose
12
- }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_modal_title_nonfinal))), /*#__PURE__*/React.createElement(ModalBody, null, children), /*#__PURE__*/React.createElement(ModalFooter, null, /*#__PURE__*/React.createElement(Button, {
12
+ return jsx(ModalTransition, null, showModal && jsx(Modal, {
13
+ onClose: onClose,
14
+ width: "small"
15
+ }, jsx(ModalHeader, null, jsx(ModalTitle, null, jsx(FormattedMessage, messages.related_links_modal_title))), jsx(ModalBody, null, children), jsx(ModalFooter, null, jsx(Button, {
13
16
  appearance: "primary",
14
17
  onClick: onClose
15
- }, /*#__PURE__*/React.createElement(FormattedMessage, messages.close)))));
18
+ }, jsx(FormattedMessage, messages.close)))));
16
19
  };
17
- export default RelatedLinksModal;
20
+ export default RelatedLinksBaseModal;
@@ -0,0 +1,49 @@
1
+ /** @jsx jsx */
2
+ import { css, jsx } from '@emotion/react';
3
+ import { Box, xcss } from '@atlaskit/primitives';
4
+ import { Card, ElementName, SmartLinkPosition, SmartLinkSize, SmartLinkTheme, TitleBlock } from '../../../../index';
5
+ var hoverStyles = xcss({
6
+ ':hover': {
7
+ backgroundColor: 'color.background.input.hovered',
8
+ borderRadius: 'border.radius.100',
9
+ marginInline: 'space.negative.100',
10
+ paddingInline: 'space.100'
11
+ }
12
+ });
13
+ var relatedLinkItemStyles = css({
14
+ paddingTop: "var(--ds-space-100, 8px)",
15
+ paddingBottom: "var(--ds-space-100, 8px)",
16
+ gap: "var(--ds-space-150, 12px)",
17
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
18
+ });
19
+ var RelatedLinkItem = function RelatedLinkItem(_ref) {
20
+ var url = _ref.url,
21
+ testId = _ref.testId;
22
+ var subtitle = [{
23
+ name: ElementName.Provider
24
+ }];
25
+ var ui = {
26
+ hideElevation: true,
27
+ hidePadding: true,
28
+ hideBackground: true,
29
+ theme: SmartLinkTheme.Black,
30
+ clickableContainer: true,
31
+ size: SmartLinkSize.Large
32
+ };
33
+ return jsx(Box, {
34
+ testId: testId,
35
+ xcss: hoverStyles
36
+ }, jsx(Card, {
37
+ appearance: "block",
38
+ ui: ui,
39
+ url: url
40
+ }, jsx(TitleBlock, {
41
+ maxLines: 1,
42
+ hideTitleTooltip: true,
43
+ position: SmartLinkPosition.Center,
44
+ subtitle: subtitle,
45
+ overrideCss: relatedLinkItemStyles,
46
+ anchorTarget: "_blank"
47
+ })));
48
+ };
49
+ export default RelatedLinkItem;
@@ -0,0 +1,34 @@
1
+ /** @jsx jsx */
2
+
3
+ import { jsx } from '@emotion/react';
4
+ import { FormattedMessage } from 'react-intl-next';
5
+ import { Box, Stack, xcss } from '@atlaskit/primitives';
6
+ import RelatedLinkItem from '../related-link-item';
7
+ import { messages } from '../../../../messages';
8
+ var RelatedLinksList = function RelatedLinksList(_ref) {
9
+ var urls = _ref.urls,
10
+ title = _ref.title,
11
+ testId = _ref.testId;
12
+ return jsx(Stack, {
13
+ testId: testId
14
+ }, jsx(Box, {
15
+ paddingBlockStart: "space.050",
16
+ xcss: xcss({
17
+ font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
18
+ textTransform: 'uppercase'
19
+ })
20
+ }, jsx(FormattedMessage, title)), urls.length > 0 && jsx(Box, null, urls.map(function (url, idx) {
21
+ return jsx(Stack, {
22
+ key: "".concat(idx, "-").concat(url)
23
+ }, jsx(RelatedLinkItem, {
24
+ url: url,
25
+ testId: "".concat(testId, "-item-").concat(idx)
26
+ }));
27
+ })), urls.length === 0 && jsx(Box, {
28
+ paddingBlock: "space.100",
29
+ xcss: xcss({
30
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
31
+ })
32
+ }, jsx(FormattedMessage, messages.related_links_not_found)));
33
+ };
34
+ export default RelatedLinksList;
@@ -0,0 +1,24 @@
1
+ /** @jsx jsx */
2
+
3
+ import { jsx } from '@emotion/react';
4
+ import { messages } from '../../../../messages';
5
+ import RelatedLinksList from '../../components/related-links-list';
6
+ import { Stack } from '@atlaskit/primitives';
7
+ var RelatedLinksResolvedView = function RelatedLinksResolvedView(_ref) {
8
+ var _ref$incomingLinks = _ref.incomingLinks,
9
+ incomingLinks = _ref$incomingLinks === void 0 ? [] : _ref$incomingLinks,
10
+ _ref$outgoingLinks = _ref.outgoingLinks,
11
+ outgoingLinks = _ref$outgoingLinks === void 0 ? [] : _ref$outgoingLinks;
12
+ return jsx(Stack, {
13
+ space: "space.150"
14
+ }, jsx(RelatedLinksList, {
15
+ urls: incomingLinks,
16
+ title: messages.related_links_found_in,
17
+ testId: "incoming-related-links-list"
18
+ }), jsx(RelatedLinksList, {
19
+ urls: outgoingLinks,
20
+ title: messages.related_links_includes_links_to,
21
+ testId: "outgoing-related-links-list"
22
+ }));
23
+ };
24
+ export default RelatedLinksResolvedView;
@@ -29,7 +29,9 @@ export var Byline = function Byline(_ref) {
29
29
  // due to HTML its unwrapping behaviour on paste.
30
30
  MozUserSelect: 'none'
31
31
  }),
32
- "data-testid": testId,
32
+ "data-testid": testId
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
34
+ ,
33
35
  className: className
34
36
  }, text || children);
35
37
  };
@@ -56,7 +56,9 @@ export var Icon = function Icon(_ref) {
56
56
  });
57
57
  return jsx("span", {
58
58
  css: getSpanStyles(isFlexibleUi),
59
- "data-testid": testId,
59
+ "data-testid": testId
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
61
+ ,
60
62
  className: blockCardIconImageClassName
61
63
  }, icon || image || placeholder);
62
64
  };
@@ -17,7 +17,9 @@ export var MetadataList = function MetadataList(_ref) {
17
17
  marginRight: '0px'
18
18
  }
19
19
  },
20
- "data-testid": testId,
20
+ "data-testid": testId
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
22
+ ,
21
23
  className: metadataListClassName
22
24
  }, items.map(function (item) {
23
25
  return jsx(Metadata, _extends({
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message' | 'related_links_modal_title_nonfinal' | 'related_links_view_related_urls';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -51,11 +51,13 @@ export type InvokeManualRulePayload = {
51
51
  userInputs?: UserInputs;
52
52
  };
53
53
  export type GetManualRulesResponse = {
54
- id: number;
55
- name: string;
56
- ruleScope: RuleScope;
57
- userInputs: UserInputPrompt[];
58
- }[];
54
+ data: {
55
+ id: number;
56
+ name: string;
57
+ ruleScope: RuleScope;
58
+ userInputs: UserInputPrompt[];
59
+ }[];
60
+ };
59
61
  export type ManualRuleInvoker = (ruleId: number, objects: Ari[]) => void;
60
62
  export type RuleQuery = {
61
63
  objects?: Ari[];
@@ -1,4 +1,4 @@
1
- import type { Ari, Environment, ProjectKey, ProjectType } from '../types';
1
+ import type { Ari } from '../types';
2
2
  /**
3
3
  * This function will extract the cloud ID and product from a product level Site ARI.
4
4
  * ARIs can be found at the following link: {@link https://developer.atlassian.com/platform/atlassian-resource-identifier/resource-owners/registry/#ari-registry}
@@ -20,12 +20,7 @@ export declare const extractCloudIdAndProductFromSite: (site: Ari) => {
20
20
  * model language is used here, even though for the meantime we only concern ourselves with alerts.
21
21
  *
22
22
  */
23
- export declare const getSearchUrl: (env: Environment | null, site: Ari) => Promise<string>;
24
- export declare const getInvocationUrl: (env: Environment | null, site: Ari, ruleId: number) => Promise<string>;
23
+ export declare const getSearchUrl: (site: Ari) => Promise<string>;
24
+ export declare const getInvocationUrl: (site: Ari, ruleId: number) => Promise<string>;
25
25
  export declare const performGetRequest: (url: string, options?: RequestInit) => Promise<any>;
26
26
  export declare const performPostRequest: (url: string, options?: RequestInit) => Promise<any>;
27
- export declare const getBaseAutomationUrl: ({ projectKey, projectType, isSimplified, }: {
28
- isSimplified: boolean;
29
- projectType: ProjectType | undefined;
30
- projectKey: ProjectKey;
31
- }) => string;
@@ -1,2 +1 @@
1
- export { extractCloudIdAndProductFromSite, getSearchUrl, getInvocationUrl, performGetRequest, performPostRequest, getBaseAutomationUrl, } from './api';
2
- export { getAutomationStackFromLocalStorage, getAutomationStack, } from './stack-resolver';
1
+ export { extractCloudIdAndProductFromSite, getSearchUrl, getInvocationUrl, performGetRequest, performPostRequest, } from './api';
@@ -1,4 +1,3 @@
1
1
  export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule, } from './services';
2
- export { getBaseAutomationUrl } from './common/utils';
3
2
  export type { RuleScope, UserInputType, UserInputPrompt, UserInputValue, UserInputs, ManualRule, ManualRulesById, InvocationResult, InvocationResponse, InvokeManualRulePayload, GetManualRulesResponse, ManualRuleInvoker, } from './common/types';
4
3
  export { useManualRules, ManualRulesContainer, type ManualRulesContainerProps, type ManualRulesData, } from './main';
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
- import type { Ari, Environment, ManualRule, ManualRuleInvoker, RuleQuery, UserInputs } from './common/types';
2
+ import type { Ari, ManualRule, ManualRuleInvoker, RuleQuery, UserInputs } from './common/types';
3
3
  /**
4
4
  * React hook that implements the fetch and invoke actions for manual triggers.
5
5
  * Can be used standalone or in the HOC provided below.
6
- * @param env - The environment to retrieve rules from
7
6
  * @param site - The site to filter on. We map this to just a cloudId to resolve the manual rules API path
8
7
  * @param query - Query object containing filter props (container, object(s))
9
8
  */
10
- export declare const useManualRules: (env: Environment | null, site: Ari, query: RuleQuery) => any[];
9
+ export declare const useManualRules: (site: Ari, query: RuleQuery) => any[];
11
10
  export interface ManualRulesData {
12
11
  triggerFetch: () => Promise<void>;
13
12
  initialised: boolean;
@@ -17,7 +16,6 @@ export interface ManualRulesData {
17
16
  invokeRuleOrShowDialog: ManualRuleInvoker;
18
17
  }
19
18
  export interface ManualRulesContainerProps {
20
- env: Environment | null;
21
19
  site: Ari;
22
20
  query: RuleQuery;
23
21
  onInputsModalOpened?: () => void;
@@ -47,6 +45,6 @@ export interface ManualRulesContainerProps {
47
45
  * should not care about this, only how to trigger invocation and understand
48
46
  * the invocation lifecycle.
49
47
  *
50
- * @param props - environment, cloudId, projectId, children
48
+ * @param props - cloudId, projectId, children
51
49
  */
52
50
  export declare const ManualRulesContainer: React.FC<ManualRulesContainerProps>;
@@ -1,17 +1,16 @@
1
- import type { Ari, Environment, InvocationResponse, ManualRulesById, RuleQuery, UserInputs } from './../common/types';
1
+ import type { Ari, InvocationResponse, ManualRulesById, RuleQuery, UserInputs } from './../common/types';
2
2
  /**
3
3
  * Manual trigger rules API fetch. Fetches a list of manually triggered rules according to the context provided
4
- * in env, and query.
5
- * @param env - The environment to look up rules against
4
+ * in query.
5
+ * @param site - the site ARI to fetch the rules against
6
6
  * @param query - the workspace/container/objects to fetch rules against
7
7
  */
8
- export declare const searchManuallyTriggeredRules: (env: Environment | null, site: Ari, query: RuleQuery) => Promise<ManualRulesById>;
8
+ export declare const searchManuallyTriggeredRules: (site: Ari, query: RuleQuery) => Promise<ManualRulesById>;
9
9
  /**
10
10
  * Invoke a manually triggered rule via the API.
11
- * @param env - the environment to use when invoking the rule
12
11
  * @param cloudId - the site the rule belongs to
13
12
  * @param ruleId - the identifier of the rule you want to invoke
14
13
  * @param objects - the list of objects you wish to create an automation event for.
15
14
  * @param userInputs - the optional user inputs if this manual trigger requires them
16
15
  */
17
- export declare const invokeManuallyTriggeredRule: (env: Environment | null, site: Ari, ruleId: number, objects: string[], userInputs?: UserInputs) => Promise<InvocationResponse>;
16
+ export declare const invokeManuallyTriggeredRule: (site: Ari, ruleId: number, objects: string[], userInputs?: UserInputs) => Promise<InvocationResponse>;
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- import type { Environment } from '../manual-triggers-container/common/types';
3
2
  export type AutomationModalProps = {
4
- environment: Environment;
5
3
  baseAutomationUrl: string;
6
4
  objectAri: string;
7
5
  siteAri: string;
@@ -14,4 +12,4 @@ export type AutomationModalProps = {
14
12
  onClose: () => void;
15
13
  onCloseComplete?: () => void;
16
14
  };
17
- export declare const AutomationModal: ({ environment, baseAutomationUrl, siteAri, objectAri, canManageAutomation, onClose, onCloseComplete, modalTitle, modalDescription, emptyStateDescription, emptyStateAdminDescription, analyticsSource, }: AutomationModalProps) => JSX.Element;
15
+ export declare const AutomationModal: ({ baseAutomationUrl, siteAri, objectAri, canManageAutomation, onClose, onCloseComplete, modalTitle, modalDescription, emptyStateDescription, emptyStateAdminDescription, analyticsSource, }: AutomationModalProps) => JSX.Element;
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type ManualRulesData } from '../../manual-triggers-container';
3
- import { type Environment } from '../../manual-triggers-container/common/types';
4
3
  type AutomationMenuContextContainerProps = {
5
- environment: Environment;
6
4
  baseAutomationUrl: string;
7
5
  objectAri: string;
8
6
  siteAri: string;
@@ -24,5 +22,5 @@ export type MenuContext = ManualRulesData & {
24
22
  emptyStateAdminDescription?: React.ReactNode;
25
23
  };
26
24
  export declare const useAutomationMenu: () => MenuContext;
27
- export declare const AutomationMenuContextContainer: ({ environment, baseAutomationUrl, analyticsSource, objectAri, siteAri, canManageAutomation, children, emptyStateDescription, emptyStateAdminDescription, onRuleInvocationSuccess, onRuleInvocationFailure, onRuleInvocationLifecycleDone, }: AutomationMenuContextContainerProps) => JSX.Element;
25
+ export declare const AutomationMenuContextContainer: ({ baseAutomationUrl, analyticsSource, objectAri, siteAri, canManageAutomation, children, emptyStateDescription, emptyStateAdminDescription, onRuleInvocationSuccess, onRuleInvocationFailure, onRuleInvocationLifecycleDone, }: AutomationMenuContextContainerProps) => JSX.Element;
28
26
  export {};
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
2
- import { type RelatedLinksModalProps } from '../types';
3
- declare const RelatedLinksModal: ({ onClose, showModal, children, }: RelatedLinksModalProps) => JSX.Element;
4
- export default RelatedLinksModal;
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { type RelatedLinksBaseModalProps } from './types';
4
+ declare const RelatedLinksBaseModal: ({ onClose, showModal, children, }: RelatedLinksBaseModalProps) => jsx.JSX.Element;
5
+ export default RelatedLinksBaseModal;
@@ -0,0 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { type RelatedLinkItemProp } from '../types';
4
+ declare const RelatedLinkItem: ({ url, testId }: RelatedLinkItemProp) => jsx.JSX.Element;
5
+ export default RelatedLinkItem;
@@ -0,0 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { type RelatedLinksListProp } from '../types';
4
+ declare const RelatedLinksList: ({ urls, title, testId }: RelatedLinksListProp) => jsx.JSX.Element;
5
+ export default RelatedLinksList;
@@ -0,0 +1,16 @@
1
+ import { type MessageDescriptor } from 'react-intl-next';
2
+ import type React from "react";
3
+ export type RelatedLinkItemProp = {
4
+ url: string;
5
+ testId?: string;
6
+ };
7
+ export type RelatedLinksListProp = {
8
+ title: MessageDescriptor;
9
+ urls: string[];
10
+ testId?: string;
11
+ };
12
+ export type RelatedLinksBaseModalProps = {
13
+ onClose: () => void;
14
+ showModal: boolean;
15
+ children: React.ReactNode;
16
+ };
@@ -0,0 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { type RelatedLinksProps } from './types';
4
+ declare const RelatedLinksResolvedView: ({ incomingLinks, outgoingLinks, }: RelatedLinksProps) => jsx.JSX.Element;
5
+ export default RelatedLinksResolvedView;
@@ -0,0 +1,4 @@
1
+ export type RelatedLinksProps = {
2
+ incomingLinks?: string[];
3
+ outgoingLinks?: string[];
4
+ };
@@ -1,6 +1,6 @@
1
1
  import { type MessageDescriptor } from 'react-intl-next';
2
2
  export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_title' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title' | 'direct_access_title' | 'direct_access_description' | 'direct_access' | 'access_exists_description' | 'not_found_description' | 'not_found_title';
3
- export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message' | 'related_links_modal_title_nonfinal' | 'related_links_view_related_urls';
3
+ export type MessageKey = 'assigned_to' | 'ai_summarize' | 'ai_summarized' | 'ai_summarized_abbreviation' | 'ai_summarized_info' | 'ai_summarized_info_short' | 'ai_summarizing' | 'ai_summary_error_generic' | 'ai_summary_error_acceptable_use_violation' | 'ai_summary_error_hipaa_content_detected' | 'ai_summary_error_exceeding_context_length_error' | 'ai_summary_action' | 'ai_summary_action_description' | 'automation_action_title' | 'automation_action_tooltip' | 'automation_action_icon_label' | 'automation_action_confluence_page_modal_title' | 'automation_action_confluence_page_modal_description' | 'copy_summary_action' | 'copy_summary_action_description' | 'copied_summary_action_description' | 'beta' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'copied_url_to_clipboard' | 'could_not_load_link' | 'download' | 'download_description' | 'download_file' | 'follow' | 'follow_project_description' | 'follow_project' | 'follow_goal' | 'follow_goal_description' | 'follow_project_error' | 'follow_goal_error' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_description' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'unfollow_project_description' | 'unfollow_project' | 'unfollow_project_error' | 'unfollow_goal' | 'unfollow_goal_description' | 'unfollow_goal_error' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message' | 'related_links_modal_title' | 'related_links_view_related_urls' | 'related_links_found_in' | 'related_links_includes_links_to' | 'related_links_not_found';
4
4
  type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
@@ -51,11 +51,13 @@ export type InvokeManualRulePayload = {
51
51
  userInputs?: UserInputs;
52
52
  };
53
53
  export type GetManualRulesResponse = {
54
- id: number;
55
- name: string;
56
- ruleScope: RuleScope;
57
- userInputs: UserInputPrompt[];
58
- }[];
54
+ data: {
55
+ id: number;
56
+ name: string;
57
+ ruleScope: RuleScope;
58
+ userInputs: UserInputPrompt[];
59
+ }[];
60
+ };
59
61
  export type ManualRuleInvoker = (ruleId: number, objects: Ari[]) => void;
60
62
  export type RuleQuery = {
61
63
  objects?: Ari[];
@@ -1,4 +1,4 @@
1
- import type { Ari, Environment, ProjectKey, ProjectType } from '../types';
1
+ import type { Ari } from '../types';
2
2
  /**
3
3
  * This function will extract the cloud ID and product from a product level Site ARI.
4
4
  * ARIs can be found at the following link: {@link https://developer.atlassian.com/platform/atlassian-resource-identifier/resource-owners/registry/#ari-registry}
@@ -20,12 +20,7 @@ export declare const extractCloudIdAndProductFromSite: (site: Ari) => {
20
20
  * model language is used here, even though for the meantime we only concern ourselves with alerts.
21
21
  *
22
22
  */
23
- export declare const getSearchUrl: (env: Environment | null, site: Ari) => Promise<string>;
24
- export declare const getInvocationUrl: (env: Environment | null, site: Ari, ruleId: number) => Promise<string>;
23
+ export declare const getSearchUrl: (site: Ari) => Promise<string>;
24
+ export declare const getInvocationUrl: (site: Ari, ruleId: number) => Promise<string>;
25
25
  export declare const performGetRequest: (url: string, options?: RequestInit) => Promise<any>;
26
26
  export declare const performPostRequest: (url: string, options?: RequestInit) => Promise<any>;
27
- export declare const getBaseAutomationUrl: ({ projectKey, projectType, isSimplified, }: {
28
- isSimplified: boolean;
29
- projectType: ProjectType | undefined;
30
- projectKey: ProjectKey;
31
- }) => string;
@@ -1,2 +1 @@
1
- export { extractCloudIdAndProductFromSite, getSearchUrl, getInvocationUrl, performGetRequest, performPostRequest, getBaseAutomationUrl, } from './api';
2
- export { getAutomationStackFromLocalStorage, getAutomationStack, } from './stack-resolver';
1
+ export { extractCloudIdAndProductFromSite, getSearchUrl, getInvocationUrl, performGetRequest, performPostRequest, } from './api';
@@ -1,4 +1,3 @@
1
1
  export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule, } from './services';
2
- export { getBaseAutomationUrl } from './common/utils';
3
2
  export type { RuleScope, UserInputType, UserInputPrompt, UserInputValue, UserInputs, ManualRule, ManualRulesById, InvocationResult, InvocationResponse, InvokeManualRulePayload, GetManualRulesResponse, ManualRuleInvoker, } from './common/types';
4
3
  export { useManualRules, ManualRulesContainer, type ManualRulesContainerProps, type ManualRulesData, } from './main';
@@ -1,13 +1,12 @@
1
1
  import React from 'react';
2
- import type { Ari, Environment, ManualRule, ManualRuleInvoker, RuleQuery, UserInputs } from './common/types';
2
+ import type { Ari, ManualRule, ManualRuleInvoker, RuleQuery, UserInputs } from './common/types';
3
3
  /**
4
4
  * React hook that implements the fetch and invoke actions for manual triggers.
5
5
  * Can be used standalone or in the HOC provided below.
6
- * @param env - The environment to retrieve rules from
7
6
  * @param site - The site to filter on. We map this to just a cloudId to resolve the manual rules API path
8
7
  * @param query - Query object containing filter props (container, object(s))
9
8
  */
10
- export declare const useManualRules: (env: Environment | null, site: Ari, query: RuleQuery) => any[];
9
+ export declare const useManualRules: (site: Ari, query: RuleQuery) => any[];
11
10
  export interface ManualRulesData {
12
11
  triggerFetch: () => Promise<void>;
13
12
  initialised: boolean;
@@ -17,7 +16,6 @@ export interface ManualRulesData {
17
16
  invokeRuleOrShowDialog: ManualRuleInvoker;
18
17
  }
19
18
  export interface ManualRulesContainerProps {
20
- env: Environment | null;
21
19
  site: Ari;
22
20
  query: RuleQuery;
23
21
  onInputsModalOpened?: () => void;
@@ -47,6 +45,6 @@ export interface ManualRulesContainerProps {
47
45
  * should not care about this, only how to trigger invocation and understand
48
46
  * the invocation lifecycle.
49
47
  *
50
- * @param props - environment, cloudId, projectId, children
48
+ * @param props - cloudId, projectId, children
51
49
  */
52
50
  export declare const ManualRulesContainer: React.FC<ManualRulesContainerProps>;
@@ -1,17 +1,16 @@
1
- import type { Ari, Environment, InvocationResponse, ManualRulesById, RuleQuery, UserInputs } from './../common/types';
1
+ import type { Ari, InvocationResponse, ManualRulesById, RuleQuery, UserInputs } from './../common/types';
2
2
  /**
3
3
  * Manual trigger rules API fetch. Fetches a list of manually triggered rules according to the context provided
4
- * in env, and query.
5
- * @param env - The environment to look up rules against
4
+ * in query.
5
+ * @param site - the site ARI to fetch the rules against
6
6
  * @param query - the workspace/container/objects to fetch rules against
7
7
  */
8
- export declare const searchManuallyTriggeredRules: (env: Environment | null, site: Ari, query: RuleQuery) => Promise<ManualRulesById>;
8
+ export declare const searchManuallyTriggeredRules: (site: Ari, query: RuleQuery) => Promise<ManualRulesById>;
9
9
  /**
10
10
  * Invoke a manually triggered rule via the API.
11
- * @param env - the environment to use when invoking the rule
12
11
  * @param cloudId - the site the rule belongs to
13
12
  * @param ruleId - the identifier of the rule you want to invoke
14
13
  * @param objects - the list of objects you wish to create an automation event for.
15
14
  * @param userInputs - the optional user inputs if this manual trigger requires them
16
15
  */
17
- export declare const invokeManuallyTriggeredRule: (env: Environment | null, site: Ari, ruleId: number, objects: string[], userInputs?: UserInputs) => Promise<InvocationResponse>;
16
+ export declare const invokeManuallyTriggeredRule: (site: Ari, ruleId: number, objects: string[], userInputs?: UserInputs) => Promise<InvocationResponse>;
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- import type { Environment } from '../manual-triggers-container/common/types';
3
2
  export type AutomationModalProps = {
4
- environment: Environment;
5
3
  baseAutomationUrl: string;
6
4
  objectAri: string;
7
5
  siteAri: string;
@@ -14,4 +12,4 @@ export type AutomationModalProps = {
14
12
  onClose: () => void;
15
13
  onCloseComplete?: () => void;
16
14
  };
17
- export declare const AutomationModal: ({ environment, baseAutomationUrl, siteAri, objectAri, canManageAutomation, onClose, onCloseComplete, modalTitle, modalDescription, emptyStateDescription, emptyStateAdminDescription, analyticsSource, }: AutomationModalProps) => JSX.Element;
15
+ export declare const AutomationModal: ({ baseAutomationUrl, siteAri, objectAri, canManageAutomation, onClose, onCloseComplete, modalTitle, modalDescription, emptyStateDescription, emptyStateAdminDescription, analyticsSource, }: AutomationModalProps) => JSX.Element;
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { type ManualRulesData } from '../../manual-triggers-container';
3
- import { type Environment } from '../../manual-triggers-container/common/types';
4
3
  type AutomationMenuContextContainerProps = {
5
- environment: Environment;
6
4
  baseAutomationUrl: string;
7
5
  objectAri: string;
8
6
  siteAri: string;
@@ -24,5 +22,5 @@ export type MenuContext = ManualRulesData & {
24
22
  emptyStateAdminDescription?: React.ReactNode;
25
23
  };
26
24
  export declare const useAutomationMenu: () => MenuContext;
27
- export declare const AutomationMenuContextContainer: ({ environment, baseAutomationUrl, analyticsSource, objectAri, siteAri, canManageAutomation, children, emptyStateDescription, emptyStateAdminDescription, onRuleInvocationSuccess, onRuleInvocationFailure, onRuleInvocationLifecycleDone, }: AutomationMenuContextContainerProps) => JSX.Element;
25
+ export declare const AutomationMenuContextContainer: ({ baseAutomationUrl, analyticsSource, objectAri, siteAri, canManageAutomation, children, emptyStateDescription, emptyStateAdminDescription, onRuleInvocationSuccess, onRuleInvocationFailure, onRuleInvocationLifecycleDone, }: AutomationMenuContextContainerProps) => JSX.Element;
28
26
  export {};
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
2
- import { type RelatedLinksModalProps } from '../types';
3
- declare const RelatedLinksModal: ({ onClose, showModal, children, }: RelatedLinksModalProps) => JSX.Element;
4
- export default RelatedLinksModal;
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { type RelatedLinksBaseModalProps } from './types';
4
+ declare const RelatedLinksBaseModal: ({ onClose, showModal, children, }: RelatedLinksBaseModalProps) => jsx.JSX.Element;
5
+ export default RelatedLinksBaseModal;
@@ -0,0 +1,5 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { type RelatedLinkItemProp } from '../types';
4
+ declare const RelatedLinkItem: ({ url, testId }: RelatedLinkItemProp) => jsx.JSX.Element;
5
+ export default RelatedLinkItem;