@devtron-labs/devtron-fe-common-lib 0.0.63 → 0.0.64

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 (471) hide show
  1. package/dist/Common/AddCDButton/AddCDButton.d.ts +3 -3
  2. package/dist/Common/AddCDButton/index.d.ts +2 -2
  3. package/dist/Common/AddCDButton/types.d.ts +26 -26
  4. package/dist/Common/AddCDButton/utils.d.ts +2 -2
  5. package/dist/Common/Api.d.ts +14 -14
  6. package/dist/Common/AppStatus/AppStatus.d.ts +3 -3
  7. package/dist/Common/AppStatus/constants.d.ts +51 -51
  8. package/dist/Common/AppStatus/index.d.ts +1 -1
  9. package/dist/Common/AppStatus/types.d.ts +12 -12
  10. package/dist/Common/AppStatus/utils.d.ts +1 -1
  11. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +5 -5
  12. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +17 -17
  13. package/dist/Common/BreadCrumb/Types.d.ts +28 -28
  14. package/dist/Common/CIPipeline.Types.d.ts +265 -265
  15. package/dist/Common/ChartVersionAndTypeSelector.d.ts +3 -4
  16. package/dist/Common/Checkbox.d.ts +5 -5
  17. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +10 -10
  18. package/dist/Common/ClipboardButton/types.d.ts +8 -8
  19. package/dist/Common/CodeEditor/CodeEditor.d.ts +47 -0
  20. package/dist/Common/Common.service.d.ts +20 -20
  21. package/dist/Common/Constants.d.ts +96 -90
  22. package/dist/Common/CustomInput/CustomInput.d.ts +2 -3
  23. package/dist/Common/CustomInput/Types.d.ts +31 -31
  24. package/dist/Common/CustomInput/index.d.ts +2 -2
  25. package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +4 -4
  26. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +2 -3
  27. package/dist/Common/CustomTagSelector/TagDetails.d.ts +2 -3
  28. package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +2 -3
  29. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +2 -3
  30. package/dist/Common/CustomTagSelector/TagSelector.utils.d.ts +12 -12
  31. package/dist/Common/CustomTagSelector/Types.d.ts +68 -68
  32. package/dist/Common/CustomTagSelector/ValidationRules.d.ts +10 -10
  33. package/dist/Common/CustomTagSelector/index.d.ts +6 -6
  34. package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +17 -17
  35. package/dist/Common/DebouncedSearch/Types.d.ts +14 -14
  36. package/dist/Common/DebouncedSearch/Utils.d.ts +1 -1
  37. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +3 -4
  38. package/dist/Common/DeleteComponentModal/types.d.ts +15 -15
  39. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +2 -3
  40. package/dist/Common/DevtronProgressing/index.d.ts +1 -1
  41. package/dist/Common/DevtronProgressing/types.d.ts +4 -4
  42. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +8 -9
  43. package/dist/Common/Dialogs/DeleteDialog.d.ts +5 -5
  44. package/dist/Common/Dialogs/DialogForm.d.ts +14 -14
  45. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +3 -3
  46. package/dist/Common/Dialogs/Types.d.ts +45 -45
  47. package/dist/Common/Dialogs/index.d.ts +4 -4
  48. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -3
  49. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -9
  50. package/dist/Common/DraggableWrapper/index.d.ts +3 -3
  51. package/dist/Common/DraggableWrapper/types.d.ts +23 -23
  52. package/dist/Common/Drawer/Drawer.d.ts +14 -16
  53. package/dist/Common/EmptyState/GenericEmptyState.d.ts +3 -5
  54. package/dist/Common/Error.d.ts +17 -17
  55. package/dist/Common/ErrorScreenNotFound.d.ts +2 -3
  56. package/dist/Common/Grid/Grid.d.ts +3 -3
  57. package/dist/Common/Grid/types.d.ts +10 -10
  58. package/dist/Common/Helper.d.ts +68 -67
  59. package/dist/Common/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -1
  60. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +6 -6
  61. package/dist/Common/Hooks/UseSuperAdmin/types.d.ts +3 -3
  62. package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -4
  63. package/dist/Common/Hooks/index.d.ts +4 -4
  64. package/dist/Common/Hooks/useUrlFilters/constants.d.ts +8 -8
  65. package/dist/Common/Hooks/useUrlFilters/index.d.ts +2 -2
  66. package/dist/Common/Hooks/useUrlFilters/types.d.ts +6 -6
  67. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +32 -32
  68. package/dist/Common/ImageTags.Types.d.ts +40 -40
  69. package/dist/Common/ImageTags.d.ts +3 -4
  70. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +3 -5
  71. package/dist/Common/Modals/Modal.d.ts +3 -3
  72. package/dist/Common/Modals/OpaqueModal.d.ts +12 -12
  73. package/dist/Common/Modals/VisibleModal.d.ts +15 -15
  74. package/dist/Common/Modals/VisibleModal2.d.ts +12 -12
  75. package/dist/Common/MultiSelectCustomization.d.ts +37 -37
  76. package/dist/Common/Pagination/PageSizeSelector.d.ts +3 -4
  77. package/dist/Common/Pagination/Pagination.d.ts +3 -5
  78. package/dist/Common/Pagination/constants.d.ts +5 -5
  79. package/dist/Common/Pagination/index.d.ts +1 -1
  80. package/dist/Common/Pagination/types.d.ts +51 -51
  81. package/dist/Common/Pagination/utils.d.ts +6 -6
  82. package/dist/Common/Policy.Types.d.ts +56 -56
  83. package/dist/Common/PopupMenu.d.ts +7 -8
  84. package/dist/Common/Progressing.d.ts +3 -4
  85. package/dist/Common/RJSF/Form.d.ts +2 -4
  86. package/dist/Common/RJSF/common/FieldRow.d.ts +5 -6
  87. package/dist/Common/RJSF/common/types.d.ts +8 -8
  88. package/dist/Common/RJSF/config.d.ts +4 -4
  89. package/dist/Common/RJSF/constants.d.ts +7 -7
  90. package/dist/Common/RJSF/index.d.ts +3 -3
  91. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +2 -3
  92. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +2 -3
  93. package/dist/Common/RJSF/templates/BaseInput.d.ts +2 -3
  94. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +2 -3
  95. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +2 -3
  96. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +2 -3
  97. package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -3
  98. package/dist/Common/RJSF/templates/Description.d.ts +2 -3
  99. package/dist/Common/RJSF/templates/Field.d.ts +2 -3
  100. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +2 -3
  101. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +2 -3
  102. package/dist/Common/RJSF/templates/TitleField.d.ts +2 -3
  103. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +2 -3
  104. package/dist/Common/RJSF/templates/index.d.ts +10 -10
  105. package/dist/Common/RJSF/types.d.ts +3 -3
  106. package/dist/Common/RJSF/utils.d.ts +25 -26
  107. package/dist/Common/RJSF/widgets/Checkbox.d.ts +2 -3
  108. package/dist/Common/RJSF/widgets/Select.d.ts +2 -3
  109. package/dist/Common/RJSF/widgets/index.d.ts +2 -2
  110. package/dist/Common/RadioGroup/RadioGroup.d.ts +16 -17
  111. package/dist/Common/RadioGroup.d.ts +8 -8
  112. package/dist/Common/Reload.d.ts +3 -3
  113. package/dist/Common/ResizableTextarea.d.ts +3 -3
  114. package/dist/Common/SearchBar/SearchBar.component.d.ts +37 -39
  115. package/dist/Common/SearchBar/index.d.ts +2 -2
  116. package/dist/Common/SearchBar/types.d.ts +35 -35
  117. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +3 -4
  118. package/dist/Common/Select/Select.d.ts +4 -0
  119. package/dist/Common/Select/types.d.ts +29 -0
  120. package/dist/Common/ServerError.d.ts +15 -15
  121. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +17 -18
  122. package/dist/Common/SortableTableHeaderCell/index.d.ts +2 -2
  123. package/dist/Common/SortableTableHeaderCell/types.d.ts +25 -25
  124. package/dist/Common/TippyCustomized.d.ts +2 -4
  125. package/dist/Common/ToastBody.d.ts +23 -23
  126. package/dist/Common/Toggle/Toggle.d.ts +12 -14
  127. package/dist/Common/Types.d.ts +704 -704
  128. package/dist/Common/index.d.ts +51 -51
  129. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +15 -15
  130. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -1
  131. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +4 -4
  132. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +4 -4
  133. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +7 -7
  134. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +4 -4
  135. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +4 -4
  136. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +3 -4
  137. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +4 -4
  138. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +50 -50
  139. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +7 -7
  140. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +6 -6
  141. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +286 -286
  142. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +12 -12
  143. package/dist/Pages/GlobalConfigurations/index.d.ts +2 -2
  144. package/dist/Pages/index.d.ts +1 -1
  145. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +3 -4
  146. package/dist/Shared/Components/APIResponseHandler/constants.d.ts +4 -4
  147. package/dist/Shared/Components/APIResponseHandler/index.d.ts +2 -2
  148. package/dist/Shared/Components/APIResponseHandler/types.d.ts +37 -37
  149. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +3 -4
  150. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +3 -4
  151. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +3 -4
  152. package/dist/Shared/Components/BulkSelection/constants.d.ts +10 -10
  153. package/dist/Shared/Components/BulkSelection/index.d.ts +4 -4
  154. package/dist/Shared/Components/BulkSelection/types.d.ts +54 -54
  155. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -1
  156. package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -12
  157. package/dist/Shared/Components/index.d.ts +3 -3
  158. package/dist/Shared/Helpers.d.ts +16 -16
  159. package/dist/Shared/index.d.ts +3 -3
  160. package/dist/Shared/validations.d.ts +8 -8
  161. package/dist/abap-9f67f57a.js +1314 -0
  162. package/dist/apex-ff62e532.js +315 -0
  163. package/dist/assets/editor.worker-d26000ef.js +9 -0
  164. package/dist/assets/index.css +1 -0
  165. package/dist/assets/json.worker-f23a4654.js +40 -0
  166. package/dist/assets/yaml.worker-35ea3f9a.js +467 -0
  167. package/dist/azcli-31e64a7f.js +74 -0
  168. package/dist/bat-0ffe897e.js +95 -0
  169. package/dist/bicep-3414a2b1.js +108 -0
  170. package/dist/cameligo-df1f3f25.js +168 -0
  171. package/dist/clojure-65b0f010.js +754 -0
  172. package/dist/coffee-437f0fba.js +228 -0
  173. package/dist/cpp-66843dd5.js +390 -0
  174. package/dist/csharp-621d9a49.js +320 -0
  175. package/dist/csp-de0d5244.js +57 -0
  176. package/dist/css-7cd5ed4c.js +186 -0
  177. package/dist/cssMode-0eb181b8.js +1446 -0
  178. package/dist/cypher-70ad96fe.js +262 -0
  179. package/dist/dart-33ae3739.js +270 -0
  180. package/dist/dockerfile-f2274a50.js +132 -0
  181. package/dist/ecl-3b8294a3.js +454 -0
  182. package/dist/elixir-b9dcc73a.js +489 -0
  183. package/dist/flow9-bdde8316.js +141 -0
  184. package/dist/freemarker2-4361569f.js +643 -0
  185. package/dist/fsharp-eac2e449.js +210 -0
  186. package/dist/go-d12ed8d4.js +208 -0
  187. package/dist/graphql-c7356b69.js +141 -0
  188. package/dist/handlebars-babdfc67.js +391 -0
  189. package/dist/hcl-e883a0d4.js +177 -0
  190. package/dist/html-23b49eab.js +281 -0
  191. package/dist/htmlMode-f37a1616.js +1456 -0
  192. package/dist/index-3a430320.js +127405 -0
  193. package/dist/index.d.ts +9 -3
  194. package/dist/index.js +216 -30407
  195. package/dist/ini-425ab711.js +68 -0
  196. package/dist/java-2bc0fd68.js +221 -0
  197. package/dist/javascript-3597fa14.js +75 -0
  198. package/dist/jsonMode-b97d1b5f.js +1867 -0
  199. package/dist/julia-1c932615.js +496 -0
  200. package/dist/kotlin-1ab839c8.js +245 -0
  201. package/dist/less-6fe856f5.js +168 -0
  202. package/dist/lexon-4955ac52.js +151 -0
  203. package/dist/liquid-9778cbb4.js +238 -0
  204. package/dist/lua-3cca0047.js +157 -0
  205. package/dist/m3-132e9cb6.js +210 -0
  206. package/dist/markdown-ea59a0c1.js +202 -0
  207. package/dist/mips-19811f4b.js +194 -0
  208. package/dist/msdax-69954a10.js +377 -0
  209. package/dist/mysql-82088e5d.js +876 -0
  210. package/dist/objective-c-1976eccc.js +188 -0
  211. package/dist/pascal-8ef177cb.js +245 -0
  212. package/dist/pascaligo-bc517b9e.js +158 -0
  213. package/dist/perl-8b93582c.js +599 -0
  214. package/dist/pgsql-00c11a6d.js +847 -0
  215. package/dist/php-4c8c276f.js +471 -0
  216. package/dist/pla-e9b4ffb1.js +131 -0
  217. package/dist/postiats-2071af8c.js +544 -0
  218. package/dist/powerquery-8e388ceb.js +890 -0
  219. package/dist/powershell-e35db398.js +233 -0
  220. package/dist/protobuf-a24b9176.js +422 -0
  221. package/dist/pug-2c94d9b8.js +393 -0
  222. package/dist/python-e4dba3c0.js +259 -0
  223. package/dist/qsharp-d730d7fe.js +282 -0
  224. package/dist/r-be193556.js +245 -0
  225. package/dist/razor-242f0a8f.js +512 -0
  226. package/dist/redis-9690c6ac.js +298 -0
  227. package/dist/redshift-6bdcdeaa.js +806 -0
  228. package/dist/restructuredtext-a08c1d20.js +162 -0
  229. package/dist/ruby-2247692b.js +444 -0
  230. package/dist/rust-1dffb4d5.js +337 -0
  231. package/dist/sb-136598e9.js +110 -0
  232. package/dist/scala-b1100fed.js +353 -0
  233. package/dist/scheme-038c8094.js +114 -0
  234. package/dist/scss-700d1b52.js +244 -0
  235. package/dist/shell-86c16e0f.js +224 -0
  236. package/dist/solidity-c05fdf3c.js +1351 -0
  237. package/dist/sophia-cd645d71.js +190 -0
  238. package/dist/sparql-01d9ec9c.js +193 -0
  239. package/dist/sql-4c33df41.js +818 -0
  240. package/dist/st-52cf1408.js +414 -0
  241. package/dist/swift-13c792ba.js +315 -0
  242. package/dist/systemverilog-0bd8b730.js +556 -0
  243. package/dist/tcl-463d7c75.js +232 -0
  244. package/dist/tsMode-bf606946.js +811 -0
  245. package/dist/twig-0d98f5ec.js +323 -0
  246. package/dist/typescript-9ed04bdd.js +328 -0
  247. package/dist/vb-3a2b0a51.js +364 -0
  248. package/dist/wgsl-b2ddb3e4.js +420 -0
  249. package/dist/xml-825eaa31.js +95 -0
  250. package/dist/yaml-c9fb7842.js +184 -0
  251. package/package.json +34 -23
  252. package/.eslintignore +0 -96
  253. package/.eslintrc.js +0 -109
  254. package/.github/pull_request_template.md +0 -25
  255. package/.github/workflows/ci.yml +0 -31
  256. package/.github/workflows/release-package.yml +0 -48
  257. package/.husky/pre-commit +0 -5
  258. package/.lintstagedrc +0 -3
  259. package/.nvmrc +0 -1
  260. package/.prettierrc.js +0 -7
  261. package/dist/Common/EmptyState/EmptyState.d.ts +0 -25
  262. package/rollup.config.js +0 -31
  263. package/src/Assets/Icon/ic-add.svg +0 -3
  264. package/src/Assets/Icon/ic-appstatus-cancelled.svg +0 -6
  265. package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +0 -5
  266. package/src/Assets/Icon/ic-arrow-up-down.svg +0 -3
  267. package/src/Assets/Icon/ic-check-all.svg +0 -5
  268. package/src/Assets/Icon/ic-check-square.svg +0 -4
  269. package/src/Assets/Icon/ic-check.svg +0 -5
  270. package/src/Assets/Icon/ic-chevron-down.svg +0 -5
  271. package/src/Assets/Icon/ic-close.svg +0 -9
  272. package/src/Assets/Icon/ic-copy.svg +0 -3
  273. package/src/Assets/Icon/ic-cpu.svg +0 -4
  274. package/src/Assets/Icon/ic-cross.svg +0 -3
  275. package/src/Assets/Icon/ic-drag.svg +0 -8
  276. package/src/Assets/Icon/ic-enter.svg +0 -3
  277. package/src/Assets/Icon/ic-error-cross.svg +0 -8
  278. package/src/Assets/Icon/ic-error-exclamation.svg +0 -6
  279. package/src/Assets/Icon/ic-error-medium.svg +0 -6
  280. package/src/Assets/Icon/ic-help-outline.svg +0 -3
  281. package/src/Assets/Icon/ic-help.svg +0 -3
  282. package/src/Assets/Icon/ic-info-filled.svg +0 -7
  283. package/src/Assets/Icon/ic-info-outlined.svg +0 -13
  284. package/src/Assets/Icon/ic-memory.svg +0 -3
  285. package/src/Assets/Icon/ic-minus.svg +0 -3
  286. package/src/Assets/Icon/ic-pencil.svg +0 -3
  287. package/src/Assets/Icon/ic-progressing.svg +0 -6
  288. package/src/Assets/Icon/ic-rotate-devtron.svg +0 -103
  289. package/src/Assets/Icon/ic-search.svg +0 -6
  290. package/src/Assets/Icon/ic-sort-arrow-down.svg +0 -3
  291. package/src/Assets/Icon/ic-timer.svg +0 -3
  292. package/src/Assets/Icon/ic-warning.svg +0 -7
  293. package/src/Assets/Icon/inject-tag.svg +0 -5
  294. package/src/Assets/Img/app-not-deployed.png +0 -0
  295. package/src/Assets/Img/delete-medium.svg +0 -15
  296. package/src/Assets/Img/ic-empty-error@2x.png +0 -0
  297. package/src/Assets/Img/ic-loading-failure.png +0 -0
  298. package/src/Assets/Img/ic-not-authorized.svg +0 -62
  299. package/src/Common/AddCDButton/AddCDButton.tsx +0 -68
  300. package/src/Common/AddCDButton/index.ts +0 -2
  301. package/src/Common/AddCDButton/types.ts +0 -38
  302. package/src/Common/AddCDButton/utils.tsx +0 -35
  303. package/src/Common/Api.ts +0 -251
  304. package/src/Common/AppStatus/AppStatus.tsx +0 -64
  305. package/src/Common/AppStatus/constants.ts +0 -53
  306. package/src/Common/AppStatus/index.ts +0 -1
  307. package/src/Common/AppStatus/types.ts +0 -12
  308. package/src/Common/AppStatus/utils.ts +0 -14
  309. package/src/Common/BreadCrumb/BreadCrumb.tsx +0 -105
  310. package/src/Common/BreadCrumb/BreadcrumbStore.tsx +0 -25
  311. package/src/Common/BreadCrumb/Types.ts +0 -29
  312. package/src/Common/CIPipeline.Types.ts +0 -277
  313. package/src/Common/ChartVersionAndTypeSelector.tsx +0 -78
  314. package/src/Common/Checkbox.tsx +0 -37
  315. package/src/Common/ClipboardButton/ClipboardButton.tsx +0 -61
  316. package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +0 -43
  317. package/src/Common/ClipboardButton/types.ts +0 -7
  318. package/src/Common/Common.service.ts +0 -315
  319. package/src/Common/Constants.ts +0 -271
  320. package/src/Common/CustomInput/CustomInput.tsx +0 -135
  321. package/src/Common/CustomInput/Types.ts +0 -32
  322. package/src/Common/CustomInput/index.ts +0 -2
  323. package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +0 -46
  324. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +0 -84
  325. package/src/Common/CustomTagSelector/TagDetails.tsx +0 -76
  326. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +0 -61
  327. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +0 -198
  328. package/src/Common/CustomTagSelector/TagSelector.utils.ts +0 -71
  329. package/src/Common/CustomTagSelector/Types.ts +0 -72
  330. package/src/Common/CustomTagSelector/ValidationRules.ts +0 -58
  331. package/src/Common/CustomTagSelector/index.ts +0 -6
  332. package/src/Common/DebouncedSearch/DebouncedSearch.tsx +0 -78
  333. package/src/Common/DebouncedSearch/Types.ts +0 -13
  334. package/src/Common/DebouncedSearch/Utils.ts +0 -19
  335. package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +0 -61
  336. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +0 -95
  337. package/src/Common/DeleteComponentModal/types.ts +0 -15
  338. package/src/Common/DevtronProgressing/DevtronProgressing.tsx +0 -11
  339. package/src/Common/DevtronProgressing/index.ts +0 -1
  340. package/src/Common/DevtronProgressing/types.ts +0 -4
  341. package/src/Common/Dialogs/ConfirmationDialog.tsx +0 -34
  342. package/src/Common/Dialogs/DeleteDialog.tsx +0 -69
  343. package/src/Common/Dialogs/DialogForm.tsx +0 -86
  344. package/src/Common/Dialogs/ForceDeleteDialog.tsx +0 -19
  345. package/src/Common/Dialogs/Types.ts +0 -47
  346. package/src/Common/Dialogs/index.ts +0 -4
  347. package/src/Common/DraggableWrapper/DraggableButton.tsx +0 -14
  348. package/src/Common/DraggableWrapper/DraggableWrapper.tsx +0 -118
  349. package/src/Common/DraggableWrapper/index.ts +0 -3
  350. package/src/Common/DraggableWrapper/types.ts +0 -27
  351. package/src/Common/Drawer/Drawer.scss +0 -40
  352. package/src/Common/Drawer/Drawer.tsx +0 -49
  353. package/src/Common/EmptyState/EmptyState.tsx +0 -42
  354. package/src/Common/EmptyState/GenericEmptyState.tsx +0 -81
  355. package/src/Common/EmptyState/emptyState.scss +0 -74
  356. package/src/Common/Error.tsx +0 -61
  357. package/src/Common/ErrorScreenNotFound.tsx +0 -31
  358. package/src/Common/Grid/Grid.tsx +0 -44
  359. package/src/Common/Grid/types.ts +0 -11
  360. package/src/Common/Helper.tsx +0 -590
  361. package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +0 -15
  362. package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +0 -24
  363. package/src/Common/Hooks/UseSuperAdmin/types.ts +0 -3
  364. package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +0 -31
  365. package/src/Common/Hooks/index.ts +0 -4
  366. package/src/Common/Hooks/useUrlFilters/constants.ts +0 -9
  367. package/src/Common/Hooks/useUrlFilters/index.ts +0 -2
  368. package/src/Common/Hooks/useUrlFilters/types.ts +0 -6
  369. package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +0 -121
  370. package/src/Common/ImageTags.Types.ts +0 -44
  371. package/src/Common/ImageTags.tsx +0 -586
  372. package/src/Common/InfoColorBar/InfoColourbar.tsx +0 -80
  373. package/src/Common/InfoColorBar/infoColourBar.scss +0 -28
  374. package/src/Common/Modals/Modal.tsx +0 -68
  375. package/src/Common/Modals/OpaqueModal.tsx +0 -36
  376. package/src/Common/Modals/VisibleModal.tsx +0 -55
  377. package/src/Common/Modals/VisibleModal2.tsx +0 -35
  378. package/src/Common/MultiSelectCustomization.tsx +0 -148
  379. package/src/Common/Pagination/PageSizeSelector.tsx +0 -78
  380. package/src/Common/Pagination/Pagination.tsx +0 -127
  381. package/src/Common/Pagination/constants.ts +0 -6
  382. package/src/Common/Pagination/index.tsx +0 -3
  383. package/src/Common/Pagination/pagination.scss +0 -123
  384. package/src/Common/Pagination/types.ts +0 -55
  385. package/src/Common/Pagination/utils.tsx +0 -24
  386. package/src/Common/Policy.Types.ts +0 -63
  387. package/src/Common/PopupMenu.tsx +0 -199
  388. package/src/Common/Progressing.tsx +0 -53
  389. package/src/Common/RJSF/Form.tsx +0 -29
  390. package/src/Common/RJSF/common/FieldRow.tsx +0 -35
  391. package/src/Common/RJSF/common/types.ts +0 -9
  392. package/src/Common/RJSF/config.ts +0 -37
  393. package/src/Common/RJSF/constants.ts +0 -10
  394. package/src/Common/RJSF/index.ts +0 -3
  395. package/src/Common/RJSF/rjsfForm.scss +0 -18
  396. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +0 -31
  397. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -78
  398. package/src/Common/RJSF/templates/BaseInput.tsx +0 -16
  399. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -18
  400. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -10
  401. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +0 -18
  402. package/src/Common/RJSF/templates/ButtonTemplates/index.ts +0 -3
  403. package/src/Common/RJSF/templates/Description.tsx +0 -12
  404. package/src/Common/RJSF/templates/Field.tsx +0 -30
  405. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +0 -25
  406. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +0 -105
  407. package/src/Common/RJSF/templates/TitleField.tsx +0 -9
  408. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -51
  409. package/src/Common/RJSF/templates/index.ts +0 -10
  410. package/src/Common/RJSF/types.ts +0 -4
  411. package/src/Common/RJSF/utils.ts +0 -125
  412. package/src/Common/RJSF/widgets/Checkbox.tsx +0 -44
  413. package/src/Common/RJSF/widgets/Select.tsx +0 -77
  414. package/src/Common/RJSF/widgets/index.ts +0 -2
  415. package/src/Common/RadioGroup/RadioGroup.tsx +0 -105
  416. package/src/Common/RadioGroup/radioGroup.scss +0 -46
  417. package/src/Common/RadioGroup.tsx +0 -53
  418. package/src/Common/Reload.tsx +0 -23
  419. package/src/Common/ResizableTextarea.tsx +0 -73
  420. package/src/Common/SearchBar/SearchBar.component.tsx +0 -131
  421. package/src/Common/SearchBar/index.ts +0 -2
  422. package/src/Common/SearchBar/searchBar.scss +0 -31
  423. package/src/Common/SearchBar/types.ts +0 -34
  424. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +0 -55
  425. package/src/Common/Security/scanVulnerabilities.css +0 -69
  426. package/src/Common/ServerError.ts +0 -31
  427. package/src/Common/SortableTableHeaderCell/SortableTableHeaderCell.tsx +0 -44
  428. package/src/Common/SortableTableHeaderCell/index.ts +0 -2
  429. package/src/Common/SortableTableHeaderCell/types.ts +0 -26
  430. package/src/Common/TippyCustomized.tsx +0 -172
  431. package/src/Common/ToastBody.tsx +0 -62
  432. package/src/Common/Toggle/Toggle.scss +0 -78
  433. package/src/Common/Toggle/Toggle.tsx +0 -50
  434. package/src/Common/Types.ts +0 -778
  435. package/src/Common/index.ts +0 -51
  436. package/src/Pages/GlobalConfigurations/Authorization/constants.ts +0 -16
  437. package/src/Pages/GlobalConfigurations/Authorization/index.ts +0 -1
  438. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.tsx +0 -127
  439. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.tsx +0 -44
  440. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.tsx +0 -106
  441. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.tsx +0 -55
  442. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.tsx +0 -32
  443. package/src/Pages/GlobalConfigurations/BuildInfra/Descriptor.tsx +0 -45
  444. package/src/Pages/GlobalConfigurations/BuildInfra/Footer.tsx +0 -56
  445. package/src/Pages/GlobalConfigurations/BuildInfra/Readme.md +0 -4
  446. package/src/Pages/GlobalConfigurations/BuildInfra/constants.tsx +0 -138
  447. package/src/Pages/GlobalConfigurations/BuildInfra/index.ts +0 -7
  448. package/src/Pages/GlobalConfigurations/BuildInfra/services.tsx +0 -167
  449. package/src/Pages/GlobalConfigurations/BuildInfra/types.tsx +0 -339
  450. package/src/Pages/GlobalConfigurations/BuildInfra/utils.tsx +0 -506
  451. package/src/Pages/GlobalConfigurations/index.ts +0 -2
  452. package/src/Pages/index.ts +0 -1
  453. package/src/Shared/Components/APIResponseHandler/APIResponseHandler.tsx +0 -41
  454. package/src/Shared/Components/APIResponseHandler/constants.tsx +0 -5
  455. package/src/Shared/Components/APIResponseHandler/index.ts +0 -2
  456. package/src/Shared/Components/APIResponseHandler/types.tsx +0 -39
  457. package/src/Shared/Components/BulkSelection/BulkSelection.tsx +0 -77
  458. package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -33
  459. package/src/Shared/Components/BulkSelection/BulkSelectionProvider.tsx +0 -171
  460. package/src/Shared/Components/BulkSelection/constants.tsx +0 -14
  461. package/src/Shared/Components/BulkSelection/index.ts +0 -4
  462. package/src/Shared/Components/BulkSelection/types.tsx +0 -65
  463. package/src/Shared/Components/ReactSelect/index.ts +0 -1
  464. package/src/Shared/Components/ReactSelect/utils.tsx +0 -97
  465. package/src/Shared/Components/index.ts +0 -3
  466. package/src/Shared/Helpers.tsx +0 -29
  467. package/src/Shared/index.ts +0 -3
  468. package/src/Shared/validations.tsx +0 -130
  469. package/src/custom.d.ts +0 -13
  470. package/src/index.ts +0 -3
  471. package/tsconfig.json +0 -40
@@ -1,7 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32">
2
- <g fill="none" fill-rule="evenodd">
3
- <path d="M0 0h32v32H0z"/>
4
- <path fill="#06C" d="M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667z"/>
5
- <path fill="#FFF" d="M16 14.667c.736 0 1.333.597 1.333 1.333v5.333a1.333 1.333 0 1 1-2.666 0V16c0-.736.597-1.333 1.333-1.333zm0-5.334A1.333 1.333 0 1 1 16 12a1.333 1.333 0 0 1 0-2.667z"/>
6
- </g>
7
- </svg>
@@ -1,13 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
2
- <g fill="none" fill-rule="evenodd">
3
- <g fill="#06C">
4
- <g>
5
- <g>
6
- <g>
7
- <path d="M10 1.667c4.6 0 8.333 3.733 8.333 8.333S14.6 18.333 10 18.333 1.667 14.6 1.667 10 5.4 1.667 10 1.667zm0 1.666C6.32 3.333 3.333 6.32 3.333 10c0 3.68 2.987 6.667 6.667 6.667 3.68 0 6.667-2.987 6.667-6.667 0-3.68-2.987-6.667-6.667-6.667zm0 5.834c.46 0 .833.373.833.833v3.333c0 .46-.373.834-.833.834-.46 0-.833-.373-.833-.834V10c0-.46.373-.833.833-.833zm0-3.334c.46 0 .833.373.833.834 0 .46-.373.833-.833.833-.46 0-.833-.373-.833-.833 0-.46.373-.834.833-.834z" transform="translate(-315.000000, -313.000000) translate(303.000000, 256.000000) translate(4.000000, 49.000000) translate(8.000000, 8.000000)"/>
8
- </g>
9
- </g>
10
- </g>
11
- </g>
12
- </g>
13
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
2
- <path d="M16.25 8.125H18.125M16.25 11.875H18.125M1.875 8.125H3.75M1.875 11.875H3.75M11.875 16.25V18.125M8.125 16.25V18.125M11.875 1.875V3.75M8.125 1.875V3.75M7.8125 7.8125H12.1875V12.1875H7.8125V7.8125ZM4.375 3.75H15.625C15.9702 3.75 16.25 4.02982 16.25 4.375V15.625C16.25 15.9702 15.9702 16.25 15.625 16.25H4.375C4.02982 16.25 3.75 15.9702 3.75 15.625V4.375C3.75 4.02982 4.02982 3.75 4.375 3.75Z" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
2
- <path fill="#959BA1" class="fill-color" fill-rule="evenodd" d="M10.5 7.583h-7c-.322 0-.583-.26-.583-.583 0-.322.26-.583.583-.583h7c.322 0 .583.26.583.583 0 .322-.26.583-.583.583z"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M10.625 4.99991L15 9.37491M7.5 16.8749H3.75C3.58424 16.8749 3.42527 16.8091 3.30806 16.6918C3.19085 16.5746 3.125 16.4157 3.125 16.2499V12.7588C3.125 12.6767 3.14117 12.5954 3.17258 12.5196C3.20398 12.4438 3.25002 12.3749 3.30806 12.3168L12.6831 2.94185C12.8003 2.82464 12.9592 2.75879 13.125 2.75879C13.2908 2.75879 13.4497 2.82464 13.5669 2.94185L17.0581 6.43296C17.1753 6.55017 17.2411 6.70915 17.2411 6.87491C17.2411 7.04067 17.1753 7.19964 17.0581 7.31685L7.5 16.8749Z" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,6 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" >
2
- <g fill="none" fillRule="evenodd" strokeLinecap="round">
3
- <animateTransform attributeName="transform" attributeType="XML" dur="0.5s" from="0 12 12" repeatCount="indefinite" to="360 12 12" type="rotate" />
4
- <path fill="#06C" fillRule="nonzero" d="M12 2.5A9.5 9.5 0 1 1 2.5 12a1.5 1.5 0 0 1 3 0A6.5 6.5 0 1 0 12 5.5a1.5 1.5 0 0 1 0-3z" />
5
- </g>
6
- </svg>
@@ -1,103 +0,0 @@
1
-
2
- <svg width="80" height="80" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <style>
4
- .svg__loader_group-top {
5
- animation: top-shape 1.2s infinite;
6
- transform-origin: center center;
7
- }
8
- .svg__loader_group-bottom {
9
- animation: bottom-shape 1.2s infinite;
10
- transform-origin: center center;
11
- }
12
-
13
- .svg__loader_shapepath-top {
14
- animation: path-fill 1.2s infinite;
15
- }
16
- .svg__loader_shapepath-bottom {
17
- animation: path-fill 1.2s infinite;
18
- }
19
-
20
- .svg__loader_rotating-group {
21
- animation: rotate-group 1.2s infinite reverse;
22
- transform-origin: center center;
23
- }
24
-
25
- @keyframes path-fill {
26
- 0% {
27
- fill: #3989D9;
28
- }
29
- 30% {
30
- fill: #3989D9;
31
- }
32
- 45% {
33
- fill: #ABCFF3;
34
- }
35
- 100% {
36
- fill: #3989D9;
37
- }
38
- }
39
-
40
- @keyframes top-shape {
41
- 0% {
42
- transform: translateX(0px) translateY(0px) rotate(0deg);
43
- transform-origin: center center;
44
- }
45
- 30% {
46
- transform: translateX(0px) translateY(0px) rotate(10deg);
47
- transform-origin: center center;
48
- }
49
- 45% {
50
- transform: translateX(-6px) translateY(-6px) rotate(15deg);
51
- transform-origin: center center;
52
- }
53
-
54
- 100% {
55
- transform: translateX(0px) translateY(0px) rotate(0deg);
56
- transform-origin: center center;
57
- }
58
- }
59
-
60
- @keyframes bottom-shape {
61
- 0% {
62
- transform: translateX(0px) translateY(0px) rotate(0deg);
63
- transform-origin: center center;
64
- }
65
- 30% {
66
- transform: translateX(0px) translateY(0px) rotate(10deg);
67
- transform-origin: center center;
68
- }
69
- 45% {
70
- transform: translateX(6px) translateY(6px) rotate(15deg);
71
- transform-origin: center center;
72
- }
73
-
74
- 100% {
75
- transform: translateX(0px) translateY(0px) rotate(0deg);
76
- transform-origin: center center;
77
- }
78
- }
79
-
80
- @keyframes rotate-group {
81
- 0% {
82
- transform: rotate(0deg);
83
- }
84
- 44% {
85
- transform: rotate(0deg);
86
- }
87
- 100% {
88
- transform: rotate(360deg);
89
- animation-timing-function: ease-in-out;
90
- }
91
- }
92
- </style>
93
- <rect width="100" height="100" rx="20" fill="#E5F2FF"/>
94
- <g class="svg__loader_rotating-group">
95
-
96
- <g class="svg__loader_group-top">
97
- <path class="svg__loader_shapepath-top" d="M59.8584 21.95L38.6084 21.875C36.8042 21.8667 35.1292 22.8125 34.1792 24.3667L19.4625 48.5167C18.9899 49.293 18.7427 50.1855 18.7486 51.0943C18.7545 52.0031 19.0132 52.8924 19.4958 53.6625L30.9125 71.8792C31.2183 72.533 31.7308 73.0679 32.3709 73.4015C33.011 73.7351 33.7431 73.8488 34.4542 73.725C35.141 73.5973 35.7703 73.2572 36.2533 72.7525C36.7362 72.2478 37.0485 71.6042 37.1459 70.9125C37.2338 70.2725 37.143 69.6207 36.8834 69.0292L36.8334 68.9458C36.7375 68.7458 36.6167 68.5583 36.4875 68.3833L35.1958 66.3083L28.3458 55.3583C27.9912 54.8612 27.7883 54.2719 27.7617 53.6618C27.735 53.0517 27.8858 52.447 28.1958 51.9208C30.175 48.5958 34.5125 41.5042 35.4875 40.3458C35.854 40.0077 36.2862 39.7489 36.7572 39.5854C37.2282 39.4219 37.7279 39.3574 38.225 39.3958L43.6208 39.8125C43.8939 39.8472 44.1535 39.951 44.3752 40.1142C44.5969 40.2773 44.7733 40.4943 44.8876 40.7447C45.0019 40.9951 45.0504 41.2705 45.0286 41.5448C45.0067 41.8192 44.9151 42.0834 44.7625 42.3125L42.5125 45.7917C42.3947 45.9427 42.2915 46.1045 42.2042 46.275V46.2792C41.8913 46.8936 41.8029 47.5981 41.9542 48.2708C42.0838 48.8505 42.391 49.3753 42.833 49.7721C43.275 50.1689 43.8298 50.4179 44.4201 50.4844C45.0103 50.5509 45.6066 50.4316 46.1259 50.1431C46.6451 49.8546 47.0614 49.4113 47.3167 48.875L62.0625 26.225C63.2084 24.4667 62.0709 22.0625 60 21.9542C59.9528 21.9515 59.9056 21.9501 59.8584 21.95Z" fill="#3989D9"/>
98
- </g>
99
- <g class="svg__loader_group-bottom">
100
- <path class="svg__loader_shapepath-bottom" d="M65.4458 26.2375C66.1567 26.1108 66.8896 26.2217 67.5313 26.553C68.1729 26.8844 68.6876 27.4178 68.9958 28.0709L80.4875 46.2334C81.4833 47.7959 81.5041 49.7959 80.55 51.3792L65.9375 75.5917C65.4801 76.3555 64.8332 76.9882 64.0594 77.4284C63.2855 77.8686 62.4111 78.1014 61.5208 78.1042L40.2708 78.125C40.2236 78.1263 40.1764 78.1263 40.1291 78.125C38.0583 78.025 36.9125 75.625 38.0458 73.8625L52.6916 51.1459C52.9442 50.6078 53.3584 50.162 53.8765 49.8707C54.3946 49.5794 54.9907 49.4571 55.5816 49.5209C56.1725 49.5847 56.7288 49.8313 57.1728 50.2265C57.6168 50.6216 57.9264 51.1455 58.0583 51.725C58.2135 52.3963 58.1295 53.1007 57.8208 53.7167C57.7327 53.8889 57.628 54.0564 57.5083 54.2084L55.2791 57.6959C55.1264 57.9255 55.035 58.1904 55.0135 58.4654C54.9921 58.7403 55.0413 59.0162 55.1566 59.2667C55.2718 59.5173 55.4493 59.7342 55.672 59.8968C55.8947 60.0595 56.1554 60.1624 56.4291 60.1959L61.8291 60.5875C62.3261 60.6226 62.8249 60.5548 63.2944 60.3885C63.764 60.2222 64.1942 59.9609 64.5583 59.6209C65.1 58.975 66.6666 56.4959 68.2916 53.8417L69.2666 52.2459C70.2333 50.6542 71.1458 49.1209 71.8041 48.0125C72.1109 47.4853 72.2584 46.8805 72.2288 46.2712C72.1992 45.6619 71.9938 45.0743 71.6375 44.5792L71.6583 44.5667L64.7375 33.6584L63.4416 31.5875C63.3053 31.4122 63.1866 31.2238 63.0875 31.025L63.0375 30.95C62.7742 30.3581 62.6805 29.7046 62.7666 29.0625C62.8608 28.3703 63.1702 27.7251 63.6509 27.2182C64.1317 26.7113 64.7595 26.3682 65.4458 26.2375Z" fill="#3989D9"/>
101
- </g>
102
- </g>
103
- </svg>
@@ -1,6 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
- <g fill="none" fill-rule="evenodd">
3
- <path d="M0 0h24v24H0z"/>
4
- <path fill="#959BA1" d="M10 2a8 8 0 0 1 6.32 12.905l5.044 5.045a1 1 0 1 1-1.414 1.414l-5.045-5.043A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z"/>
5
- </g>
6
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3.5 7.50009L6.00004 10.0001M6.00004 10.0001L8.5 7.50054M6.00004 10.0001V2" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
2
- <path d="M10 11.0415L13.0936 7.94791M8.125 1.6665H11.875M16.875 11.0415C16.875 14.8385 13.797 17.9165 10 17.9165C6.20304 17.9165 3.125 14.8385 3.125 11.0415C3.125 7.24455 6.20304 4.1665 10 4.1665C13.797 4.1665 16.875 7.24455 16.875 11.0415Z" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,7 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
2
- <g fill="none" fill-rule="evenodd">
3
- <path d="M0 0h32v32H0z"/>
4
- <path fill="#FFCB5D" d="M18.315 5.052L29.72 25.01A2.667 2.667 0 0 1 27.405 29H4.595a2.667 2.667 0 0 1-2.315-3.99L13.685 5.052a2.667 2.667 0 0 1 4.63 0z"/>
5
- <path fill="#FFF" d="M16 22.667a1.333 1.333 0 1 1 0 2.666 1.333 1.333 0 0 1 0-2.666zM16 12c.736 0 1.333.597 1.333 1.333v6.334a1.333 1.333 0 1 1-2.666 0v-6.334c0-.736.597-1.333 1.333-1.333z"/>
6
- </g>
7
- </svg>
@@ -1,5 +0,0 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M10 10H3.33333" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <circle cx="9.99992" cy="9.99967" r="1.66667" fill="#596168"/>
4
- <path d="M4.41455 6.40325L9.76177 3.39544C9.83454 3.35451 9.91661 3.33301 10.0001 3.33301C10.0836 3.33301 10.1657 3.35451 10.2384 3.39544L15.5856 6.40325C15.6608 6.44554 15.7234 6.50706 15.7669 6.58152C15.8105 6.65598 15.8334 6.74068 15.8334 6.82693V12.8208C15.8334 12.9071 15.8105 12.9918 15.7669 13.0662C15.7234 13.1407 15.6608 13.2022 15.5856 13.2445L10.2384 16.2523C10.1657 16.2933 10.0836 16.3148 10.0001 16.3148C9.91661 16.3148 9.83454 16.2933 9.76177 16.2523L4.41455 13.2445" stroke="#596168" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
Binary file
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
3
- <g fill="none" fill-rule="evenodd">
4
- <path d="M0 0h48v48H0z"/>
5
- <g fill="#FFEBEB" stroke="#F33E3E" stroke-linejoin="round" stroke-width="2">
6
- <path d="M7 24h24v17a4 4 0 0 1-4 4H11a4 4 0 0 1-4-4V24z"/>
7
- <path stroke-linecap="round" d="M19 29.5v10M24 29.5v10M14 29.5v10"/>
8
- </g>
9
- <path stroke="#F33E3E" stroke-dasharray="17,3" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M42 10a3 3 0 0 1 0 6H31M38 23a3 3 0 0 0-3-3h-8"/>
10
- <g stroke="#F33E3E" stroke-linejoin="round" stroke-width="2" transform="rotate(-10 36.29 -8.86)">
11
- <rect width="30" height="5" y="6" fill="#FFEBEB" rx="1"/>
12
- <path d="M11 0h8a2 2 0 0 1 2 2v4H9V2a2 2 0 0 1 2-2z"/>
13
- </g>
14
- </g>
15
- </svg>
@@ -1,62 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="250" height="200" viewBox="0 0 250 200">
2
- <defs>
3
- <linearGradient id="ho9etwod5c" x1="55.01%" x2="40.976%" y1="0%" y2="100%">
4
- <stop offset="0%" stop-color="#2A318C"/>
5
- <stop offset="100%" stop-color="#1D225F"/>
6
- </linearGradient>
7
- <linearGradient id="mdhg2gjypd" x1="50%" x2="50%" y1="0%" y2="100%">
8
- <stop offset="0%" stop-color="#EEE"/>
9
- <stop offset="100%" stop-color="#D6D7D8"/>
10
- </linearGradient>
11
- <linearGradient id="xe2mx0bk0e" x1="0%" x2="100%" y1="18%" y2="82%">
12
- <stop offset="0%" stop-color="#E8B73F"/>
13
- <stop offset="100%" stop-color="#CF9F36"/>
14
- </linearGradient>
15
- <path id="88gkjk6cca" d="M0 0H250V200H0z"/>
16
- </defs>
17
- <g fill="none" fill-rule="evenodd">
18
- <g>
19
- <g transform="translate(-590 -308) translate(590 308)">
20
- <mask id="pitr2853ub" fill="#fff">
21
- <use xlink:href="#88gkjk6cca"/>
22
- </mask>
23
- <g mask="url(#pitr2853ub)">
24
- <g>
25
- <path fill="#FFF" fill-rule="nonzero" d="M47.646 0c2.598 0 5.717 1.017 7.994 2.74 2.276 1.722 3.845 3.02 4.55 5.097.465 1.372.252 3.282-.641 5.728l.008-.072c-.013.145-.039.269-.071.387.574-1.048 1.638-1.624 2.576-1.283 1.07.39 1.5 1.803 1.013 3.14-.487 1.337-1.723 2.144-2.794 1.754-.536-.195-.91-.646-1.09-1.216.023.975.09 2.117.203 3.427l-2.317.161c-2.223 2.412-4.574 3.48-7.055 3.207-.6-.067-1.158-.18-1.675-.339-.588 1.007-1.177 2.688-1.766 5.043l-.064.031.005-.043c-.585 5.627-1.014 11.07-1.287 16.327l.001-.108c-.013.958-.003 1.853.028 2.684l.109-1.533c2.141 1.735 4.344 2.776 6.608 3.123 2.263.348 5.76-.128 10.49-1.426 2.808-.962 5.555-2.299 8.243-4.011H63.94l16.84-20.83h2.756c0-1.439 1.165-2.604 2.604-2.604 1.378 0 2.506 1.07 2.597 2.425l.006.178h1.736c0-1.438 1.166-2.603 2.604-2.603 1.378 0 2.506 1.07 2.598 2.425l.006.178h5.284L89.832 35.292c.097-.07.17-.106.212-.106.692 0 .692 5.306-.057 7.152-.289.865-4.73 5.71-9.864 10.844-2.78 2.78-6.605 6.366-11.477 10.759l2.511 11.858c-.568 1.157-2.01 1.928-4.324 2.314-5.208.579-10.415-1.736-16.78-1.736-1.852 0-3.142.343-4.269.744.841 8.545 2.264 16.398 4.269 23.558-1.157 1.157-1.946 1.682-2.808 2.052-1.015.394-2.305.789-3.009.86.776 2.429 1.318 4.584 1.627 6.464.38 2.322 2.518 22.156 6.411 59.5h-.044l2.037 1.697c2.308 1.962 12.796 7.547 14.132 8.307.891.506 2.067 1.794 3.526 3.864-16.575-.025-27.78-.05-33.613-.075l.053.075C12.788 183.385 0 183.346 0 183.308c0-.116 1.154-3.288 2.538-7.095l2.44-6.658H1.761c-.4-1.385-.792-3.254-1.175-5.606-.75-4.788-.18-7.96 3.05-14.536 3.23-6.518 4.866-10.072 4.866-13.764.058-5.768 1.222-11.316 4.28-17.315 2.364-4.73 3.495-5.086 3.725-7.97l.367-5.421c-2.382-.231-5.928-.988-8.045-1.693l-4.21-1.385-.116-4.326C4.214 85.6 5.08 76.89 7.79 65.757 11.482 50.47 22.096 34.84 34.959 25.668c3.055-2.203 4.272-3.049 5.093-2.807.79-.548 1.483-1.096 2.077-1.645-1.685-.52-3.275-1.222-4.77-2.105-2.311-1.366-4.444-3.194-6.398-5.483.397-.834.904-1.524 1.522-2.07.671-.592 1.935-1.108 3.169-1.822l-.065.021-1.204.401c-1.26.424-1.956.713-2.396 1.032-.829.601-1.259 1.275-1.312 2.032l-.005.191-.579.007c-.012-1.039.516-1.943 1.557-2.699.427-.31 1.013-.573 1.983-.916l1.755-.59.612-.213c.593-.213 1.063-.401 1.438-.584 1.296-1.399 2.17-3.971 4.089-5.678C43.642.855 45.048 0 47.646 0zM27.999 144.476l-.189.512c-2.603 7.055-5.679 15.219-9.228 24.493l2.126 1.771c2.307 1.962 12.795 7.547 14.132 8.307l.035.021c.364-1.006.782-2.154 1.223-3.367l2.44-6.658h-4.242c-1.444-2.617-2.166-4.456-2.166-5.517 0-1.59.913-3.77.913-6.068 0-1.393-1.68-5.89-5.044-13.494zM78.827 42.819l-1.242-.001c-2.375 2.17-3.972 3.706-4.791 4.61-.72.793-2.112 2.23-4.176 4.309 3.033-1.194 5.06-2.078 6.083-2.65 1.5-.865 2.077-1.673 3.807-5.307.082-.163.192-.506.319-.961zm7.313-22.857c-1.119 0-2.026.907-2.026 2.025h4.05c0-1.118-.906-2.025-2.024-2.025zm6.943 0c-1.119 0-2.025.907-2.025 2.025h4.05c0-1.118-.907-2.025-2.025-2.025zm-33.27-5.413c-.388 1.066-.065 2.132.666 2.398.73.266 1.664-.343 2.052-1.408.388-1.065.064-2.132-.667-2.398-.73-.266-1.664.343-2.052 1.408z" transform="translate(29 8)"/>
26
- <path fill="#80AEF2" fill-rule="nonzero" d="M36.56 183.308c0-.116 1.153-3.288 2.538-7.095l2.538-6.922 6.46-.173 6.403-.173 2.768 2.307c2.308 1.962 12.796 7.547 14.132 8.307.891.506 2.067 1.794 3.526 3.864-25.577-.038-38.365-.077-38.365-.115z" transform="translate(29 8)"/>
27
- <path fill="#94BBF8" fill-rule="nonzero" d="M3 183.308c0-.116 1.154-3.288 2.538-7.095l2.538-6.922 6.46-.173 6.403-.173 2.769 2.307c2.307 1.962 12.795 7.547 14.132 8.307.89.506 2.066 1.794 3.525 3.864C15.788 183.385 3 183.346 3 183.308z" transform="translate(29 8)"/>
28
- <path fill="#1D225F" fill-rule="nonzero" d="M46.655 101.836c1.09 3.158 1.826 5.898 2.208 8.22.38 2.321 2.518 22.155 6.411 59.5H37.296c-1.444-2.618-2.166-4.457-2.166-5.518 0-1.59.913-3.77.913-6.068 0-1.532-2.034-6.823-6.104-15.871l3.931-39.349 12.785-.914z" transform="translate(29 8)"/>
29
- <path fill="url(#ho9etwod5c)" d="M21.554 169.555H4.76c-.4-1.385-.792-3.254-1.175-5.606-.75-4.788-.18-7.96 3.05-14.536 3.23-6.518 4.866-10.072 4.866-13.764.058-5.768 1.222-11.316 4.28-17.315 2.364-4.73 3.495-5.086 3.725-7.97l.42-6.202h21.078c.512 1.433.696 4.075.55 7.925-.145 3.85-6.812 23.006-20.001 57.468z" transform="translate(29 8)"/>
30
- <g fill-rule="nonzero">
31
- <path fill="#98BDF9" d="M0 24.302L16.84 3.472 37.031 3.472 19.592 24.302z" transform="translate(29 8) translate(66.94 18.516)"/>
32
- <path fill="#2174DB" d="M22.2.868c1.378 0 2.506 1.07 2.597 2.425l.006.179h-.578c0-1.119-.907-2.025-2.025-2.025-1.119 0-2.025.906-2.025 2.025 0 1.062.818 1.934 1.859 2.018l.166.007v.578c-1.438 0-2.604-1.165-2.604-2.603 0-1.438 1.166-2.604 2.604-2.604zM29.143.868c1.378 0 2.506 1.07 2.598 2.425l.006.179h-.579c0-1.119-.906-2.025-2.025-2.025-1.118 0-2.025.906-2.025 2.025 0 1.062.818 1.934 1.859 2.018l.166.007v.578c-1.438 0-2.604-1.165-2.604-2.603 0-1.438 1.166-2.604 2.604-2.604z" transform="translate(29 8) translate(66.94 18.516)"/>
33
- </g>
34
- <path fill="#F3A29D" fill-rule="nonzero" d="M65.472 46.829c2.807-.962 5.554-2.299 8.242-4.011h6.871c-2.375 2.17-3.972 3.706-4.791 4.61-.82.903-2.509 2.638-5.068 5.205-1.091 5.781-2.254 8.21-3.487 7.285-1.85-1.386-7.939-10.897-1.767-13.09z" transform="translate(29 8)"/>
35
- <path fill="#FAB6AF" fill-rule="nonzero" d="M69.254 52.654c4.363-1.668 7.179-2.857 8.447-3.567 1.5-.865 2.077-1.673 3.807-5.307.23-.461.692-2.365 1.096-4.153.923-4.557 2.423-4.326 2.538.346.058 1.27.346 2.423.692 2.538.288.116 1.961-1.5 3.634-3.576 1.673-2.077 3.288-3.75 3.576-3.75.692 0 .692 5.307-.057 7.153-.289.865-4.73 5.71-9.864 10.844-3.422 3.423-8.431 8.068-15.026 13.937l1.157-14.465z" transform="translate(29 8)"/>
36
- <path fill="#F3A29D" fill-rule="nonzero" d="M49.581 27.774c.772-3.086 1.543-5.015 2.315-5.787-1.157-1.157-2.315-2.314-4.63-3.471-.77 1.543-2.314 3.086-4.628 4.629 0 2.314.771 3.857 2.314 4.629 1.543.771 3.086.771 4.63 0z" transform="translate(29 8)"/>
37
- <g>
38
- <path fill="url(#mdhg2gjypd)" fill-rule="nonzero" d="M12.858 82.16c-2.365-.174-6.23-.981-8.48-1.731l-4.21-1.385-.115-4.326c-.289-11.94.577-20.65 3.288-31.782C7.032 27.65 17.646 12.019 30.509 2.847c4.96-3.576 5.076-3.576 6.518-1.153.634 1.153 1.96 2.307 2.884 2.653l2.161.594c-3.046 29.324-1.87 53.63 3.531 72.917-1.157 1.158-1.946 1.682-2.808 2.052-1.039.403-2.365.807-3.057.865-.693.058-3 .519-5.25 1.038-4.21.923-13.382 1.096-21.63.346z" transform="translate(29 8) translate(7.45 22.82)"/>
39
- <path fill="#D6D7D8" d="M58.022 24.008l1.767 11.311-19.972 2.645 1.106-15.653c2.141 1.735 4.344 2.776 6.608 3.123 2.263.348 5.76-.128 10.49-1.426z" transform="translate(29 8) translate(7.45 22.82)"/>
40
- <path fill="#E9E9E9" fill-rule="nonzero" d="M61.804 29.833l4.903 23.145c-.568 1.157-2.01 1.929-4.324 2.314-5.208.579-10.415-1.736-16.78-1.736-6.365 0-6.09 4.05-15.348.58-6.172-2.315-8.68-12.73-7.523-31.246l18.054-1.73c-.078 5.782.655 9.252 2.198 10.409 1.512 1.134 7.569.601 18.17-1.6l.65-.136z" transform="translate(29 8) translate(7.45 22.82)"/>
41
- </g>
42
- <g>
43
- <path fill="#FAB6AF" fill-rule="nonzero" d="M29.082 7.444c1.07 1.52 1.488 3.536 1.253 6.049-.062.656-.376.883-.376 2.052 0 1.12.07 2.506.212 4.157l-2.317.161c-2.222 2.412-4.574 3.48-7.055 3.207-2.48-.275-4.251-1.343-5.31-3.207-2.18-4.023-1.621-7.444 1.675-10.262 3.296-2.818 7.269-3.537 11.918-2.157z" transform="translate(29 8) translate(32.223)"/>
44
- <path fill="#E94A47" d="M18.423 0c2.598 0 5.717 1.017 7.994 2.74 2.277 1.722 3.845 3.02 4.55 5.097.47 1.384.248 3.314-.664 5.791.13-2.345-.048-3.647-.533-3.906-.67 1.653-1.595 1.987-2.703 2.787-.62.448-2.791.518-4.917.897-2.628 1.722-4.303 3.33-4.867 4.86-.448 1.218-.402 2.608.148 4.177l.126.339-.54.21c-.714-1.833-.81-3.478-.277-4.925.522-1.417 1.85-2.838 3.894-4.321-1.09.307-2.051.754-2.634 1.449-1.279 1.526-2.028 3.765-2.246 6.716-2.766-.5-5.305-1.433-7.617-2.8-2.312-1.366-4.445-3.194-6.398-5.483.396-.834.904-1.524 1.521-2.07.671-.592 1.935-1.108 3.169-1.822l-.065.021-1.204.401c-1.26.424-1.956.713-2.395 1.032-.83.601-1.26 1.275-1.313 2.032l-.005.191-.579.007c-.012-1.039.516-1.943 1.557-2.699.427-.31 1.013-.573 1.983-.916l1.756-.59.61-.213c.594-.213 1.064-.401 1.439-.584 1.296-1.399 2.17-3.971 4.09-5.678C14.418.855 15.825 0 18.422 0z" transform="translate(29 8) translate(32.223)"/>
45
- <g fill="#222768" fill-rule="nonzero">
46
- <path d="M1.025 3.16C1.622 1.52 3.194.563 4.56 1.06c1.061.386 1.653 1.524 1.586 2.781.36-.092.688-.137.988-.137l.208.008c.254.02.466.056.636.114.511-1.271 1.708-2.023 2.749-1.644 1.07.39 1.5 1.802 1.013 3.14-.487 1.337-1.723 2.143-2.794 1.754-.953-.347-1.397-1.504-1.14-2.697-.103-.038-.274-.072-.508-.09-.334-.025-.737.029-1.209.165l-.03.01c-.036.159-.083.318-.14.477-.597 1.64-2.17 2.597-3.536 2.1C1.017 6.543.428 4.8 1.025 3.16zm9.504-.434c-.73-.266-1.664.343-2.052 1.408-.388 1.065-.064 2.132.667 2.398.73.266 1.664-.343 2.052-1.408.387-1.066.064-2.132-.667-2.398zM4.362 1.604c-1.036-.378-2.297.39-2.793 1.754-.496 1.363-.024 2.762 1.012 3.14 1.036.376 2.298-.392 2.794-1.755s.023-2.762-1.013-3.14z" transform="translate(29 8) translate(32.223) translate(22.112 10.415)"/>
47
- </g>
48
- </g>
49
- </g>
50
- </g>
51
- <g mask="url(#pitr2853ub)">
52
- <g>
53
- <path fill="#FFF" d="M30 0c12.15 0 22 9.85 22 22v11h8v48H0V33h8V22C8 9.973 17.654.198 29.637.004zm0 7.934c-7.755 0-14.067 6.309-14.067 14.067V33h28.133V22c0-7.652-6.14-13.896-13.752-14.063z" transform="translate(134 61)"/>
54
- <path fill="#D6D7D8" d="M55 34.3V22C55 9.85 45.15 0 33 0S11 9.85 11 22v12.3m7.933 0V22c0-7.757 6.312-14.066 14.068-14.066 7.756 0 14.065 6.31 14.065 14.067v12.298" transform="translate(134 61)"/>
55
- <path fill="url(#xe2mx0bk0e)" d="M3 33H63V81H3z" transform="translate(134 61)"/>
56
- <path fill="#3E3D4C" fill-rule="nonzero" d="M39 56c0-3.314-2.686-6-6-6s-6 2.686-6 6c0 2.282 1.275 4.267 3.15 5.281l-.965 7.386h7.63l-.965-7.386C37.726 60.267 39 58.282 39 56z" transform="translate(134 61)"/>
57
- </g>
58
- </g>
59
- </g>
60
- </g>
61
- </g>
62
- </svg>
@@ -1,68 +0,0 @@
1
- import React from 'react'
2
- import Tippy from '@tippyjs/react'
3
- import { AddCDButtonProps, TooltipContentProps } from './types'
4
- import { AddCDPositions } from '../Types'
5
-
6
- function TooltipContent({ tooltipContent }: TooltipContentProps) {
7
- if (tooltipContent) {
8
- return (
9
- <div className="dc__white-space-pre-wrap">
10
- <p className="m-0 cn-0 fs-12 fw-6 lh-18">Click to add</p>
11
-
12
- {tooltipContent}
13
- </div>
14
- )
15
- }
16
-
17
- return <div className="dc__white-space-pre-wrap">Click to add here</div>
18
- }
19
-
20
- export default function AddCDButton({
21
- position,
22
- addCDButtons,
23
- endNode,
24
- startNode,
25
- handleAddCD,
26
- tooltipContent,
27
- }: Readonly<AddCDButtonProps>) {
28
- const referenceNode = position === AddCDPositions.RIGHT ? endNode : startNode
29
- const handleAddCDClick = () => {
30
- handleAddCD(position)
31
- }
32
-
33
- if (addCDButtons?.includes(position)) {
34
- return (
35
- <Tippy
36
- placement="top"
37
- content={<TooltipContent tooltipContent={tooltipContent} />}
38
- className="default-tt"
39
- arrow={false}
40
- >
41
- <svg
42
- x={referenceNode.x + (position === AddCDPositions.RIGHT ? -20 - 5 : referenceNode.width + 5)}
43
- // Here 10 is the height of the button / 2
44
- y={referenceNode.y + referenceNode.height / 2 - 10}
45
- width="20"
46
- height="20"
47
- viewBox="0 0 20 20"
48
- fill="none"
49
- xmlns="http://www.w3.org/2000/svg"
50
- data-testid={`add-cd-to-${position}`}
51
- onClick={handleAddCDClick}
52
- className="dc__outline-none-imp"
53
- >
54
- <rect width="20" height="20" rx="10" fill="#664BEE" className="add-cd-edge-btn" />
55
- <path
56
- d="M6.5 10H13.5M10 6.5V13.5"
57
- stroke="white"
58
- strokeWidth="1.5"
59
- strokeLinecap="round"
60
- strokeLinejoin="round"
61
- />
62
- </svg>
63
- </Tippy>
64
- )
65
- }
66
-
67
- return null
68
- }
@@ -1,2 +0,0 @@
1
- export { default as AddCDButton } from './AddCDButton'
2
- export { handleAddCD } from './utils'
@@ -1,38 +0,0 @@
1
- import { AddCDPositions, AddPipelineType, EdgeEndNodeType, EdgeNodeType, Point } from '../Types'
2
-
3
- export interface AddCDButtonProps {
4
- position: AddCDPositions
5
- addCDButtons: AddCDPositions[]
6
- endNode: Point & EdgeEndNodeType
7
- startNode: Point & EdgeNodeType
8
- handleAddCD: (position: AddCDPositions) => void
9
- tooltipContent?: string
10
- }
11
-
12
- export interface HandleAddCD {
13
- position: AddCDPositions
14
- handleCDSelect: (
15
- workflowId: number | string,
16
- ciPipelineId: number | string,
17
- parentPipelineType: string,
18
- parentPipelineId: number | string,
19
- isWebhookCD?: boolean,
20
- childPipelineId?: number | string,
21
- addType?: AddPipelineType,
22
- ) => void
23
- startNode: EdgeNodeType
24
- endNode: EdgeEndNodeType
25
- workflowId: number | string
26
- ciPipelineId: number | string
27
- isWebhookCD: boolean
28
- isParallelEdge: boolean
29
- }
30
-
31
- export interface GetPipelineType {
32
- isWebhookCD: boolean
33
- startNode: EdgeNodeType
34
- }
35
-
36
- export interface TooltipContentProps {
37
- tooltipContent?: string
38
- }
@@ -1,35 +0,0 @@
1
- import { AddCDPositions, AddPipelineType, PipelineType, WorkflowNodeType } from '../Types'
2
- import { HandleAddCD, GetPipelineType } from './types'
3
-
4
- const getPipelineType = ({ isWebhookCD, startNode }: GetPipelineType) => {
5
- if (isWebhookCD) {
6
- return PipelineType.WEBHOOK
7
- }
8
-
9
- if (startNode.type === WorkflowNodeType.CI) {
10
- return PipelineType.CI_PIPELINE
11
- }
12
-
13
- return PipelineType.CD_PIPELINE
14
- }
15
-
16
- export const handleAddCD = ({
17
- position,
18
- handleCDSelect,
19
- startNode,
20
- endNode,
21
- workflowId,
22
- ciPipelineId,
23
- isWebhookCD,
24
- isParallelEdge,
25
- }: HandleAddCD) => {
26
- if (!handleCDSelect) {
27
- return
28
- }
29
- const pipelineType = getPipelineType({ isWebhookCD, startNode })
30
- const addPipelineType =
31
- isParallelEdge && position === AddCDPositions.RIGHT ? AddPipelineType.PARALLEL : AddPipelineType.SEQUENTIAL
32
- const endNodeId = !isParallelEdge && position === AddCDPositions.RIGHT ? endNode.id : null
33
-
34
- handleCDSelect(workflowId, ciPipelineId, pipelineType, startNode.id, isWebhookCD, endNodeId, addPipelineType)
35
- }