@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
@@ -5,64 +5,66 @@ import { UserInputType } from './types';
5
5
  var mockScope = {
6
6
  resources: []
7
7
  };
8
- export var mockRules = [{
9
- id: 0,
10
- name: 'Test rule 0 (no inputs)',
11
- ruleScope: mockScope,
12
- userInputs: []
13
- }, {
14
- id: 1,
15
- name: 'Test rule 1 (has inputs)',
16
- ruleScope: mockScope,
17
- userInputs: [{
18
- defaultValue: '',
19
- displayName: 'Test user input',
20
- inputType: UserInputType.TEXT,
21
- required: false,
22
- variableName: 'testUserInput'
23
- }]
24
- }, {
25
- id: 2,
26
- name: 'Test rule 2 (has multiple inputs)',
27
- ruleScope: mockScope,
28
- userInputs: [{
29
- defaultValue: '',
30
- displayName: 'Text user input',
31
- inputType: UserInputType.TEXT,
32
- required: false,
33
- variableName: 'textUserInput'
34
- }, {
35
- defaultValue: '',
36
- displayName: 'Number user input',
37
- inputType: UserInputType.NUMBER,
38
- required: false,
39
- variableName: 'numberUserInput'
8
+ export var mockRules = {
9
+ data: [{
10
+ id: 0,
11
+ name: 'Test rule 0 (no inputs)',
12
+ ruleScope: mockScope,
13
+ userInputs: []
40
14
  }, {
41
- defaultValue: true,
42
- displayName: 'Boolean user input',
43
- inputType: UserInputType.BOOLEAN,
44
- required: false,
45
- variableName: 'booleanUserInput'
15
+ id: 1,
16
+ name: 'Test rule 1 (has inputs)',
17
+ ruleScope: mockScope,
18
+ userInputs: [{
19
+ defaultValue: '',
20
+ displayName: 'Test user input',
21
+ inputType: UserInputType.TEXT,
22
+ required: false,
23
+ variableName: 'testUserInput'
24
+ }]
46
25
  }, {
47
- defaultValue: [''],
48
- displayName: 'Dropdown user input',
49
- inputType: UserInputType.DROPDOWN,
50
- required: false,
51
- variableName: 'dropdownUserInput'
52
- }, {
53
- defaultValue: '',
54
- displayName: 'Paragraph user input',
55
- inputType: UserInputType.PARAGRAPH,
56
- required: false,
57
- variableName: 'paragraphUserInput'
26
+ id: 2,
27
+ name: 'Test rule 2 (has multiple inputs)',
28
+ ruleScope: mockScope,
29
+ userInputs: [{
30
+ defaultValue: '',
31
+ displayName: 'Text user input',
32
+ inputType: UserInputType.TEXT,
33
+ required: false,
34
+ variableName: 'textUserInput'
35
+ }, {
36
+ defaultValue: '',
37
+ displayName: 'Number user input',
38
+ inputType: UserInputType.NUMBER,
39
+ required: false,
40
+ variableName: 'numberUserInput'
41
+ }, {
42
+ defaultValue: true,
43
+ displayName: 'Boolean user input',
44
+ inputType: UserInputType.BOOLEAN,
45
+ required: false,
46
+ variableName: 'booleanUserInput'
47
+ }, {
48
+ defaultValue: [''],
49
+ displayName: 'Dropdown user input',
50
+ inputType: UserInputType.DROPDOWN,
51
+ required: false,
52
+ variableName: 'dropdownUserInput'
53
+ }, {
54
+ defaultValue: '',
55
+ displayName: 'Paragraph user input',
56
+ inputType: UserInputType.PARAGRAPH,
57
+ required: false,
58
+ variableName: 'paragraphUserInput'
59
+ }]
58
60
  }]
59
- }];
60
- export var mockTransformedRules = [_objectSpread(_objectSpread({}, mockRules[0]), {}, {
61
- userInputPrompts: mockRules[0].userInputs
62
- }), _objectSpread(_objectSpread({}, mockRules[1]), {}, {
63
- userInputPrompts: mockRules[1].userInputs
64
- }), _objectSpread(_objectSpread({}, mockRules[2]), {}, {
65
- userInputPrompts: mockRules[2].userInputs
61
+ };
62
+ export var mockTransformedRules = [_objectSpread(_objectSpread({}, mockRules.data[0]), {}, {
63
+ userInputPrompts: mockRules.data[0].userInputs
64
+ }), _objectSpread(_objectSpread({}, mockRules.data[1]), {}, {
65
+ userInputPrompts: mockRules.data[1].userInputs
66
+ }), _objectSpread(_objectSpread({}, mockRules.data[2]), {}, {
67
+ userInputPrompts: mockRules.data[2].userInputs
66
68
  })];
67
69
  export var mockInvocationResponse = {
68
70
  'TEST-1': 'SUCCESS'
@@ -3,8 +3,6 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
- import { getAutomationStack } from './stack-resolver';
7
-
8
6
  /**
9
7
  * This function will extract the cloud ID and product from a product level Site ARI.
10
8
  * ARIs can be found at the following link: {@link https://developer.atlassian.com/platform/atlassian-resource-identifier/resource-owners/registry/#ari-registry}
@@ -47,46 +45,40 @@ export var extractCloudIdAndProductFromSite = function extractCloudIdAndProductF
47
45
  *
48
46
  */
49
47
  export var getSearchUrl = /*#__PURE__*/function () {
50
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(env, site) {
51
- var _extractCloudIdAndPro, product, cloudId, automationStack;
48
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(site) {
49
+ var _extractCloudIdAndPro, product, cloudId;
52
50
  return _regeneratorRuntime.wrap(function _callee$(_context) {
53
51
  while (1) switch (_context.prev = _context.next) {
54
52
  case 0:
55
- _extractCloudIdAndPro = extractCloudIdAndProductFromSite(site), product = _extractCloudIdAndPro.product, cloudId = _extractCloudIdAndPro.cloudId;
56
- _context.next = 3;
57
- return getAutomationStack(env, cloudId);
58
- case 3:
59
- automationStack = _context.sent;
60
- return _context.abrupt("return", "/gateway/api/automation/internal-api/".concat(product, "/").concat(cloudId, "/").concat(automationStack, "/rest/v1/rules/manual/search"));
61
- case 5:
53
+ _extractCloudIdAndPro = extractCloudIdAndProductFromSite(site), product = _extractCloudIdAndPro.product, cloudId = _extractCloudIdAndPro.cloudId; // TODO in the unified API, GET requests as according to Atlassian API standards will destructure the whole query into
54
+ // query parameters as part of the URL. For now, this is considered a POST request instead and thus the query is used
55
+ // later on as the request body.
56
+ return _context.abrupt("return", "/gateway/api/automation/public/".concat(product, "/").concat(cloudId, "/rest/v1/rule/manual/search"));
57
+ case 2:
62
58
  case "end":
63
59
  return _context.stop();
64
60
  }
65
61
  }, _callee);
66
62
  }));
67
- return function getSearchUrl(_x, _x2) {
63
+ return function getSearchUrl(_x) {
68
64
  return _ref.apply(this, arguments);
69
65
  };
70
66
  }();
71
67
  export var getInvocationUrl = /*#__PURE__*/function () {
72
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(env, site, ruleId) {
73
- var _extractCloudIdAndPro2, product, cloudId, automationStack;
68
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(site, ruleId) {
69
+ var _extractCloudIdAndPro2, product, cloudId;
74
70
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
75
71
  while (1) switch (_context2.prev = _context2.next) {
76
72
  case 0:
77
73
  _extractCloudIdAndPro2 = extractCloudIdAndProductFromSite(site), product = _extractCloudIdAndPro2.product, cloudId = _extractCloudIdAndPro2.cloudId;
78
- _context2.next = 3;
79
- return getAutomationStack(env, cloudId);
80
- case 3:
81
- automationStack = _context2.sent;
82
- return _context2.abrupt("return", "/gateway/api/automation/internal-api/".concat(product, "/").concat(cloudId, "/").concat(automationStack, "/rest/v1/rules/manual/invocation/").concat(ruleId));
83
- case 5:
74
+ return _context2.abrupt("return", "/gateway/api/automation/public/".concat(product, "/").concat(cloudId, "/rest/v1/rule/manual/").concat(ruleId, "/invocation"));
75
+ case 2:
84
76
  case "end":
85
77
  return _context2.stop();
86
78
  }
87
79
  }, _callee2);
88
80
  }));
89
- return function getInvocationUrl(_x3, _x4, _x5) {
81
+ return function getInvocationUrl(_x2, _x3) {
90
82
  return _ref2.apply(this, arguments);
91
83
  };
92
84
  }();
@@ -94,30 +86,27 @@ var DEFAULT_HEADER = {
94
86
  'Content-Type': 'application/json'
95
87
  };
96
88
  var _performRequest = /*#__PURE__*/function () {
97
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, method) {
98
- var options,
99
- response,
100
- _args3 = arguments;
89
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, method, options) {
90
+ var response;
101
91
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
102
92
  while (1) switch (_context3.prev = _context3.next) {
103
93
  case 0:
104
- options = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : {
94
+ _context3.next = 2;
95
+ return fetch(url, _objectSpread(_objectSpread({
105
96
  headers: DEFAULT_HEADER
106
- };
107
- _context3.next = 3;
108
- return fetch(url, _objectSpread(_objectSpread({}, options), {}, {
97
+ }, options), {}, {
109
98
  method: method
110
99
  }));
111
- case 3:
100
+ case 2:
112
101
  response = _context3.sent;
113
102
  return _context3.abrupt("return", response.json());
114
- case 5:
103
+ case 4:
115
104
  case "end":
116
105
  return _context3.stop();
117
106
  }
118
107
  }, _callee3);
119
108
  }));
120
- return function _performRequest(_x6, _x7) {
109
+ return function _performRequest(_x4, _x5, _x6) {
121
110
  return _ref3.apply(this, arguments);
122
111
  };
123
112
  }();
@@ -133,7 +122,7 @@ export var performGetRequest = /*#__PURE__*/function () {
133
122
  }
134
123
  }, _callee4);
135
124
  }));
136
- return function performGetRequest(_x8, _x9) {
125
+ return function performGetRequest(_x7, _x8) {
137
126
  return _ref4.apply(this, arguments);
138
127
  };
139
128
  }();
@@ -149,29 +138,7 @@ export var performPostRequest = /*#__PURE__*/function () {
149
138
  }
150
139
  }, _callee5);
151
140
  }));
152
- return function performPostRequest(_x10, _x11) {
141
+ return function performPostRequest(_x9, _x10) {
153
142
  return _ref5.apply(this, arguments);
154
143
  };
155
- }();
156
-
157
- // TODO this will need to be expanded to resolve the correct product URL, too.
158
- // TODO for instance this will need to support Alerts UI URL resolution in the
159
- // TODO short term
160
- export var getBaseAutomationUrl = function getBaseAutomationUrl(_ref6) {
161
- var projectKey = _ref6.projectKey,
162
- projectType = _ref6.projectType,
163
- isSimplified = _ref6.isSimplified;
164
- /**
165
- * Confusing mapping of urls here.
166
- * Classic Projects - always under /automate
167
- * Next Gen Projects - under /automation for all project types except JSD
168
- */
169
- switch (projectType) {
170
- case 'service_desk':
171
- return "/jira/servicedesk/projects/".concat(projectKey, "/settings/automate");
172
- case 'business':
173
- return "/jira/core/projects/".concat(projectKey, "/settings/").concat(isSimplified ? 'automation' : 'automate');
174
- default:
175
- return "/jira/software/".concat(isSimplified ? '' : 'c/', "projects/").concat(projectKey, "/settings/").concat(isSimplified ? 'automation' : 'automate');
176
- }
177
- };
144
+ }();
@@ -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,3 +1,2 @@
1
1
  export { searchManuallyTriggeredRules, invokeManuallyTriggeredRule } from './services';
2
- export { getBaseAutomationUrl } from './common/utils';
3
2
  export { useManualRules, ManualRulesContainer } from './main';
@@ -13,11 +13,10 @@ import UserInputForm from './manual-triggers-form/main';
13
13
  /**
14
14
  * React hook that implements the fetch and invoke actions for manual triggers.
15
15
  * Can be used standalone or in the HOC provided below.
16
- * @param env - The environment to retrieve rules from
17
16
  * @param site - The site to filter on. We map this to just a cloudId to resolve the manual rules API path
18
17
  * @param query - Query object containing filter props (container, object(s))
19
18
  */
20
- export var useManualRules = function useManualRules(env, site, query) {
19
+ export var useManualRules = function useManualRules(site, query) {
21
20
  var _useState = useState(false),
22
21
  _useState2 = _slicedToArray(_useState, 2),
23
22
  initialised = _useState2[0],
@@ -45,7 +44,7 @@ export var useManualRules = function useManualRules(env, site, query) {
45
44
  setInitialised(false);
46
45
  _context.prev = 1;
47
46
  _context.next = 4;
48
- return searchManuallyTriggeredRules(env, site, query);
47
+ return searchManuallyTriggeredRules(site, query);
49
48
  case 4:
50
49
  fetchedRules = _context.sent;
51
50
  setError(null);
@@ -89,11 +88,10 @@ export var useManualRules = function useManualRules(env, site, query) {
89
88
  * should not care about this, only how to trigger invocation and understand
90
89
  * the invocation lifecycle.
91
90
  *
92
- * @param props - environment, cloudId, projectId, children
91
+ * @param props - cloudId, projectId, children
93
92
  */
94
93
  export var ManualRulesContainer = function ManualRulesContainer(props) {
95
- var env = props.env,
96
- site = props.site,
94
+ var site = props.site,
97
95
  query = props.query,
98
96
  children = props.children,
99
97
  onInputsModalOpened = props.onInputsModalOpened,
@@ -103,7 +101,7 @@ export var ManualRulesContainer = function ManualRulesContainer(props) {
103
101
  onRuleInvocationFailure = props.onRuleInvocationFailure,
104
102
  onRuleInvocationLifecycleDone = props.onRuleInvocationLifecycleDone;
105
103
  // Initial data loading state
106
- var _useManualRules = useManualRules(env, site, query),
104
+ var _useManualRules = useManualRules(site, query),
107
105
  _useManualRules2 = _slicedToArray(_useManualRules, 4),
108
106
  triggerFetch = _useManualRules2[0],
109
107
  initialised = _useManualRules2[1],
@@ -169,7 +167,7 @@ export var ManualRulesContainer = function ManualRulesContainer(props) {
169
167
  onRuleInvocationLifecycleStarted(ruleId, objects, userInputs);
170
168
  }
171
169
  _context2.next = 7;
172
- return invokeManuallyTriggeredRule(env, site, ruleId, objects, userInputs);
170
+ return invokeManuallyTriggeredRule(site, ruleId, objects, userInputs);
173
171
  case 7:
174
172
  response = _context2.sent;
175
173
  _failedObjects = getFailedObjects(response);
@@ -7,18 +7,18 @@ import { getInvocationUrl, getSearchUrl, performPostRequest } from './../common/
7
7
 
8
8
  /**
9
9
  * Manual trigger rules API fetch. Fetches a list of manually triggered rules according to the context provided
10
- * in env, and query.
11
- * @param env - The environment to look up rules against
10
+ * in query.
11
+ * @param site - the site ARI to fetch the rules against
12
12
  * @param query - the workspace/container/objects to fetch rules against
13
13
  */
14
14
  export var searchManuallyTriggeredRules = /*#__PURE__*/function () {
15
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(env, site, query) {
15
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(site, query) {
16
16
  var url, response;
17
17
  return _regeneratorRuntime.wrap(function _callee$(_context) {
18
18
  while (1) switch (_context.prev = _context.next) {
19
19
  case 0:
20
20
  _context.next = 2;
21
- return getSearchUrl(env, site);
21
+ return getSearchUrl(site);
22
22
  case 2:
23
23
  url = _context.sent;
24
24
  _context.next = 5;
@@ -27,7 +27,7 @@ export var searchManuallyTriggeredRules = /*#__PURE__*/function () {
27
27
  });
28
28
  case 5:
29
29
  response = _context.sent;
30
- return _context.abrupt("return", response.reduce(function (acc, _ref2) {
30
+ return _context.abrupt("return", response.data.reduce(function (acc, _ref2) {
31
31
  var id = _ref2.id,
32
32
  name = _ref2.name,
33
33
  ruleScope = _ref2.ruleScope,
@@ -45,27 +45,26 @@ export var searchManuallyTriggeredRules = /*#__PURE__*/function () {
45
45
  }
46
46
  }, _callee);
47
47
  }));
48
- return function searchManuallyTriggeredRules(_x, _x2, _x3) {
48
+ return function searchManuallyTriggeredRules(_x, _x2) {
49
49
  return _ref.apply(this, arguments);
50
50
  };
51
51
  }();
52
52
 
53
53
  /**
54
54
  * Invoke a manually triggered rule via the API.
55
- * @param env - the environment to use when invoking the rule
56
55
  * @param cloudId - the site the rule belongs to
57
56
  * @param ruleId - the identifier of the rule you want to invoke
58
57
  * @param objects - the list of objects you wish to create an automation event for.
59
58
  * @param userInputs - the optional user inputs if this manual trigger requires them
60
59
  */
61
60
  export var invokeManuallyTriggeredRule = /*#__PURE__*/function () {
62
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(env, site, ruleId, objects, userInputs) {
61
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(site, ruleId, objects, userInputs) {
63
62
  var url, bodyRaw;
64
63
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
65
64
  while (1) switch (_context2.prev = _context2.next) {
66
65
  case 0:
67
66
  _context2.next = 2;
68
- return getInvocationUrl(env, site, ruleId);
67
+ return getInvocationUrl(site, ruleId);
69
68
  case 2:
70
69
  url = _context2.sent;
71
70
  bodyRaw = {
@@ -83,7 +82,7 @@ export var invokeManuallyTriggeredRule = /*#__PURE__*/function () {
83
82
  }
84
83
  }, _callee2);
85
84
  }));
86
- return function invokeManuallyTriggeredRule(_x4, _x5, _x6, _x7, _x8) {
85
+ return function invokeManuallyTriggeredRule(_x3, _x4, _x5, _x6) {
87
86
  return _ref3.apply(this, arguments);
88
87
  };
89
88
  }();
@@ -7,8 +7,7 @@ import { AutomationModalBody } from './sub-components/body';
7
7
  import { AutomationModalFooter } from './sub-components/footer';
8
8
  import { AutomationModalHeader } from './sub-components/header';
9
9
  export var AutomationModal = function AutomationModal(_ref) {
10
- var environment = _ref.environment,
11
- baseAutomationUrl = _ref.baseAutomationUrl,
10
+ var baseAutomationUrl = _ref.baseAutomationUrl,
12
11
  siteAri = _ref.siteAri,
13
12
  objectAri = _ref.objectAri,
14
13
  canManageAutomation = _ref.canManageAutomation,
@@ -34,7 +33,6 @@ export var AutomationModal = function AutomationModal(_ref) {
34
33
  }).fire();
35
34
  }, [createAnalyticsEvent, analyticsSource]);
36
35
  return /*#__PURE__*/React.createElement(AutomationMenuContextContainer, {
37
- environment: environment,
38
36
  baseAutomationUrl: baseAutomationUrl,
39
37
  objectAri: objectAri,
40
38
  siteAri: siteAri,
@@ -24,8 +24,7 @@ export var useAutomationMenu = function useAutomationMenu() {
24
24
  return context;
25
25
  };
26
26
  export var AutomationMenuContextContainer = function AutomationMenuContextContainer(_ref2) {
27
- var environment = _ref2.environment,
28
- baseAutomationUrl = _ref2.baseAutomationUrl,
27
+ var baseAutomationUrl = _ref2.baseAutomationUrl,
29
28
  analyticsSource = _ref2.analyticsSource,
30
29
  objectAri = _ref2.objectAri,
31
30
  siteAri = _ref2.siteAri,
@@ -37,7 +36,6 @@ export var AutomationMenuContextContainer = function AutomationMenuContextContai
37
36
  onRuleInvocationFailure = _ref2.onRuleInvocationFailure,
38
37
  onRuleInvocationLifecycleDone = _ref2.onRuleInvocationLifecycleDone;
39
38
  return /*#__PURE__*/React.createElement(ManualRulesContainer, {
40
- env: environment,
41
39
  site: siteAri,
42
40
  query: {
43
41
  objects: [objectAri]
@@ -7,7 +7,6 @@ import Action from '../action';
7
7
  import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
8
8
  import { ActionName } from '../../../../../constants';
9
9
  import { messages } from '../../../../../messages';
10
- import { useSmartLinkContext } from '@atlaskit/link-provider';
11
10
  var AutomationModal = /*#__PURE__*/lazy(function () {
12
11
  return import( /* webpackChunkName: "@atlaskit-internal_smart-card-automation-modal" */'./automation-manual-triggers/manual-triggers-modal');
13
12
  });
@@ -18,16 +17,13 @@ var handleAutomationActionClose = function handleAutomationActionClose(setIsModa
18
17
  setIsModalOpen(false);
19
18
  };
20
19
  var AutomationAction = function AutomationAction(props) {
21
- var _ref, _context$actions;
20
+ var _context$actions;
22
21
  var _useState = useState(false),
23
22
  _useState2 = _slicedToArray(_useState, 2),
24
23
  isModalOpen = _useState2[0],
25
24
  setIsModalOpen = _useState2[1];
26
25
  var _useIntl = useIntl(),
27
26
  formatMessage = _useIntl.formatMessage;
28
- var smartLinkContext = useSmartLinkContext();
29
- var connections = smartLinkContext.connections;
30
- var environment = (_ref = connections.client.envKey) !== null && _ref !== void 0 ? _ref : 'prod';
31
27
  var context = useFlexibleUiContext();
32
28
  var automationActionData = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[ActionName.AutomationAction];
33
29
  if (!automationActionData) {
@@ -71,7 +67,6 @@ var AutomationAction = function AutomationAction(props) {
71
67
  React.createElement(Suspense, {
72
68
  fallback: false
73
69
  }, /*#__PURE__*/React.createElement(AutomationModal, {
74
- environment: environment,
75
70
  baseAutomationUrl: baseAutomationUrl,
76
71
  objectAri: objectAri,
77
72
  siteAri: siteAri,
@@ -7,7 +7,9 @@ var UnfollowGlyph = function UnfollowGlyph(props) {
7
7
  height: "16",
8
8
  viewBox: "0 0 16 16",
9
9
  "data-testid": props['data-testid'],
10
- "aria-label": props['aria-label'],
10
+ "aria-label": props['aria-label']
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
12
+ ,
11
13
  className: props.className,
12
14
  role: "presentation",
13
15
  xmlns: "http://www.w3.org/2000/svg"
@@ -123,7 +123,9 @@ var ActionGroup = function ActionGroup(_ref) {
123
123
  return null;
124
124
  }, [appearance, isMoreThenTwoItems, isOpen, onActionItemClick, onOpenChange, renderableActionItems, size, ui === null || ui === void 0 ? void 0 : ui.zIndex, visibleButtonsNum]);
125
125
  return renderableActionItems.length > 0 ? jsx("div", {
126
- css: styles,
126
+ css: styles
127
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
128
+ ,
127
129
  className: "actions-button-group",
128
130
  "data-action-open": isOpen
129
131
  }, jsx(ButtonGroup, null, actionButtons, moreActionDropdown)) : null;
@@ -62,6 +62,7 @@ var TitleBlockErroredView = function TitleBlockErroredView(_ref) {
62
62
  direction: SmartLinkDirection.Horizontal,
63
63
  align: SmartLinkAlignment.Right
64
64
  }, jsx("span", {
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
65
66
  className: hasAction ? 'has-action' : '',
66
67
  css: getMessageStyles(size, hasAction),
67
68
  onClick: onClick,
@@ -30,13 +30,16 @@ export var MotionWrapper = function MotionWrapper(_ref) {
30
30
  style: {
31
31
  height: height,
32
32
  minHeight: minHeight,
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
33
34
  lineHeight: 0,
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
34
36
  overflow: 'hidden',
35
37
  // a fit for purpose state variable to control when the 'visible' styles should be appled
36
38
  opacity: height > 0 ? 1 : 0,
37
39
  // we only want to transition opacity and height when the error message is initially shown
38
40
  // not if its to be shown on mount
39
41
  transitionProperty: showTransition ? transition : 'none',
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
40
43
  transitionDuration: '0.3s'
41
44
  },
42
45
  ref: ref
@@ -48,6 +48,7 @@ var LayeredLink = function LayeredLink(_ref) {
48
48
  url = _ref.url;
49
49
  var onMouseDown = useMouseDownEvent();
50
50
  return jsx("a", {
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
51
52
  className: "layered-link",
52
53
  css: styles,
53
54
  "data-testid": "".concat(testId, "-layered-link"),
@@ -36,7 +36,9 @@ var Lozenge = function Lozenge(_ref) {
36
36
  text: text,
37
37
  zIndex: ui === null || ui === void 0 ? void 0 : ui.zIndex
38
38
  }) : jsx(AtlaskitLozenge, {
39
- appearance: appearance,
39
+ appearance: appearance
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
41
+ ,
40
42
  style: style,
41
43
  testId: "".concat(testId, "-lozenge")
42
44
  }, text);
@@ -48,6 +48,7 @@ var ConnectedAIPrismContainer = function ConnectedAIPrismContainer(_ref) {
48
48
  setShowPrism(status === 'loading');
49
49
  }, [status]);
50
50
  var container = jsx("div", _extends({
51
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
51
52
  className: hoverCardClassName,
52
53
  css: [HoverCardContainer, !isAIEnabled ? popupContainerStyles : undefined],
53
54
  "data-testid": testId
@@ -72,6 +73,7 @@ var ContentContainer = function ContentContainer(_ref2) {
72
73
  }, props), children);
73
74
  }
74
75
  return jsx("div", _extends({
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
75
77
  className: hoverCardClassName,
76
78
  css: HoverCardContainer,
77
79
  "data-testid": testId
@@ -42,7 +42,9 @@ export var Frame = /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  onClick: handleClick,
43
43
  onMouseDown: handleMouseDown,
44
44
  onKeyPress: handleKeyPress,
45
- "data-testid": testId,
45
+ "data-testid": testId
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
47
+ ,
46
48
  className: className,
47
49
  ref: ref,
48
50
  isHovered: isHovered
@@ -42,7 +42,9 @@ export var Shimmer = function Shimmer(_ref) {
42
42
  width: 14,
43
43
  height: 14,
44
44
  borderRadius: 2,
45
- testId: testId,
45
+ testId: testId
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
47
+ ,
46
48
  style: skeletonCustomStyles
47
49
  });
48
50
  };
@@ -67,7 +67,9 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
67
67
  }
68
68
  return /*#__PURE__*/React.createElement(ImageLoader, {
69
69
  src: url,
70
- loaded: /*#__PURE__*/React.createElement(Icon, {
70
+ loaded: /*#__PURE__*/React.createElement(Icon
71
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
72
+ , {
71
73
  className: "smart-link-icon",
72
74
  src: url,
73
75
  "data-testid": "".concat(testId, "-image")
@@ -118,22 +120,30 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
118
120
  rightSide = _this$props2.rightSide,
119
121
  _this$props2$testId = _this$props2.testId,
120
122
  testId = _this$props2$testId === void 0 ? 'inline-card-icon-and-title' : _this$props2$testId;
121
- var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/React.createElement(TitleWrapper, {
123
+ var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/React.createElement(TitleWrapper
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
125
+ , {
122
126
  style: {
123
127
  color: titleTextColor
124
- },
128
+ }
129
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
130
+ ,
125
131
  className: TitleWrapperClassName
126
132
  }, title));
127
- return /*#__PURE__*/React.createElement(IconTitleWrapper, {
128
- style: {
129
- color: titleColor
130
- },
131
- "data-testid": testId
132
- }, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
133
- href: link,
134
- onClick: this.handleClick,
135
- onKeyPress: this.handleKeyPress
136
- }, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearance, null, rightSide) : null);
133
+ return (
134
+ /*#__PURE__*/
135
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
136
+ React.createElement(IconTitleWrapper, {
137
+ style: {
138
+ color: titleColor
139
+ },
140
+ "data-testid": testId
141
+ }, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
142
+ href: link,
143
+ onClick: this.handleClick,
144
+ onKeyPress: this.handleKeyPress
145
+ }, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearance, null, rightSide) : null)
146
+ );
137
147
  }
138
148
  }]);
139
149
  return IconAndTitleLayout;