@devtron-labs/devtron-fe-common-lib 1.22.8-beta-8 → 1.22.8-beta-10

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 (372) hide show
  1. package/dist/{@code-editor-DJ1n-oj-.js → @code-editor-rEqJGIcw.js} +10115 -9652
  2. package/dist/@common-rjsf-C0hoYq5-.js +604 -0
  3. package/dist/{@framer-motion-CQJaLnQR.js → @framer-motion-Bi7d_Mil.js} +203 -203
  4. package/dist/{@moment-DMLRxgRE.js → @moment-CGWt8tF2.js} +532 -501
  5. package/dist/@react-dates-CR-uCH60.js +7634 -0
  6. package/dist/{@react-select-D9YraDtb.js → @react-select-C5q5RdNV.js} +3 -3
  7. package/dist/{@react-virtualized-sticky-tree-CcQpKMGh.js → @react-virtualized-sticky-tree-LXSXNrbc.js} +1 -1
  8. package/dist/@vendor-CtCMPfdc.js +81580 -0
  9. package/dist/Common/API/QueryClientProvider.d.ts +1 -1
  10. package/dist/Common/API/reactQueryHooks.d.ts +3 -2
  11. package/dist/Common/AddCDButton/AddCDButton.d.ts +1 -1
  12. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +3 -3
  13. package/dist/Common/BreadCrumb/NestedBreadCrumb.d.ts +1 -1
  14. package/dist/Common/ChartVersionAndTypeSelector.d.ts +1 -1
  15. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +1 -1
  16. package/dist/Common/ClipboardButton/types.d.ts +3 -0
  17. package/dist/Common/Common.service.d.ts +12 -1
  18. package/dist/Common/Constants.d.ts +6 -0
  19. package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +1 -1
  20. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
  21. package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
  22. package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +1 -1
  23. package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +1 -1
  24. package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +1 -1
  25. package/dist/Common/DevtronCopyright.d.ts +1 -1
  26. package/dist/Common/Dialogs/DialogForm.d.ts +6 -6
  27. package/dist/Common/DraggableWrapper/DraggableButton.d.ts +1 -1
  28. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
  29. package/dist/Common/Drawer/Drawer.d.ts +1 -1
  30. package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +1 -1
  31. package/dist/Common/ErrorPage.d.ts +1 -1
  32. package/dist/Common/ErrorScreenManager.d.ts +1 -1
  33. package/dist/Common/ErrorScreenNotAuthorized.d.ts +1 -1
  34. package/dist/Common/GenericDescription/GenericDescription.d.ts +1 -1
  35. package/dist/Common/GenericDescription/constant.d.ts +0 -40
  36. package/dist/Common/GenericDescription/types.d.ts +6 -0
  37. package/dist/Common/GenericDescription/utils.d.ts +1 -0
  38. package/dist/Common/Grid/Grid.d.ts +1 -1
  39. package/dist/Common/Helper.d.ts +4 -4
  40. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
  41. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  42. package/dist/Common/ImageTags.d.ts +2 -2
  43. package/dist/Common/InteractiveCellText/InteractiveCellText.d.ts +1 -1
  44. package/dist/Common/Markdown/MarkDown.d.ts +1 -1
  45. package/dist/Common/Markdown/constant.d.ts +28 -0
  46. package/dist/Common/Modals/Modal.d.ts +1 -1
  47. package/dist/Common/Modals/VisibleModal.d.ts +4 -4
  48. package/dist/Common/Modals/VisibleModal2.d.ts +4 -4
  49. package/dist/Common/MultiSelectCustomization.d.ts +7 -7
  50. package/dist/Common/Pagination/PageSizeSelector.d.ts +1 -1
  51. package/dist/Common/Pagination/Pagination.d.ts +1 -1
  52. package/dist/Common/PopupMenu.d.ts +2 -2
  53. package/dist/Common/RJSF/Form.d.ts +1 -1
  54. package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
  55. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +2 -2
  56. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +1 -1
  57. package/dist/Common/RJSF/templates/BaseInput.d.ts +1 -1
  58. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  59. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +1 -1
  60. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +1 -1
  61. package/dist/Common/RJSF/templates/Field.d.ts +1 -1
  62. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +1 -1
  63. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -1
  64. package/dist/Common/RJSF/templates/TitleField.d.ts +2 -3
  65. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +1 -1
  66. package/dist/Common/RJSF/utils.d.ts +1 -1
  67. package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
  68. package/dist/Common/RJSF/widgets/Select.d.ts +1 -1
  69. package/dist/Common/RadioGroup.d.ts +1 -1
  70. package/dist/Common/RadioGroupItem.d.ts +1 -1
  71. package/dist/Common/Reload.d.ts +1 -1
  72. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  73. package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
  74. package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
  75. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
  76. package/dist/Common/SortableTableHeaderCell/types.d.ts +4 -0
  77. package/dist/Common/TippyCustomized.d.ts +1 -1
  78. package/dist/Common/Tooltip/ShortcutKeyComboTooltipContent.d.ts +1 -1
  79. package/dist/Common/Tooltip/Tooltip.d.ts +1 -1
  80. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +1 -1
  81. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +1 -1
  82. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
  83. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/FileConfigTippy.d.ts +1 -1
  84. package/dist/Pages/Applications/DevtronApps/Details/CIPipeline/components/SystemVariableIcon.d.ts +1 -1
  85. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  86. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupsTable.component.d.ts +1 -1
  87. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  88. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +1 -1
  89. package/dist/Pages/ResourceBrowser/ClusterMap/ClusterMap.d.ts +1 -1
  90. package/dist/Pages/ResourceBrowser/ForceDeleteOption.d.ts +1 -1
  91. package/dist/Pages/ResourceBrowser/NodeDrainOptions.d.ts +1 -1
  92. package/dist/Pages/ResourceBrowser/constants.d.ts +1 -1
  93. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -1
  94. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/ApplicationManagementIcon/utils.d.ts +1 -1
  95. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -1
  96. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -1
  97. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -1
  98. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -1
  99. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -1
  100. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +1 -1
  101. package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +2 -2
  102. package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +2 -2
  103. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/SecurityCenterIcon.d.ts +1 -1
  104. package/dist/Pages-Devtron-2.0/SecurityCenter/Shared/SecurityCenterIcon/utils.d.ts +1 -1
  105. package/dist/Pages-Devtron-2.0/Shared/Overview/components.d.ts +4 -4
  106. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -1
  107. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  108. package/dist/Shared/Components/AboutDevtron/AboutDevtronBody.d.ts +1 -1
  109. package/dist/Shared/Components/AboutDevtron/AboutDevtronDialog.d.ts +1 -1
  110. package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -1
  111. package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +1 -1
  112. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +28 -38
  113. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  114. package/dist/Shared/Components/AnimatedDeployButton/AnimatedDeployButton.d.ts +1 -1
  115. package/dist/Shared/Components/AnimatedTimer/AnimatedTimer.component.d.ts +1 -1
  116. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +1 -1
  117. package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +1 -1
  118. package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +1 -1
  119. package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +1 -1
  120. package/dist/Shared/Components/AppStatusModal/types.d.ts +4 -1
  121. package/dist/Shared/Components/ArtifactInfoModal/ArtifactInfoModal.component.d.ts +1 -1
  122. package/dist/Shared/Components/Badge/Badge.d.ts +1 -1
  123. package/dist/Shared/Components/BulkOperations/BulkOperations.component.d.ts +1 -1
  124. package/dist/Shared/Components/BulkOperations/BulkOperationsResultModal.d.ts +1 -1
  125. package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
  126. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +1 -1
  127. package/dist/Shared/Components/Button/Button.component.d.ts +69 -69
  128. package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +1 -1
  129. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
  130. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +2 -2
  131. package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +1 -1
  132. package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +1 -1
  133. package/dist/Shared/Components/CICDHistory/ConflictedResourcesTable.d.ts +1 -1
  134. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +1 -1
  135. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
  136. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  137. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  138. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +2 -2
  139. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +1 -1
  140. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
  141. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
  142. package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -1
  143. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
  144. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
  145. package/dist/Shared/Components/CICDHistory/ResourceConflictDeployDialog.d.ts +1 -1
  146. package/dist/Shared/Components/CICDHistory/ResourceConflictDetailsModal.d.ts +1 -1
  147. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
  148. package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +1 -1
  149. package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +1 -1
  150. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  151. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
  152. package/dist/Shared/Components/CICDHistory/utils.d.ts +2 -2
  153. package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +1 -1
  154. package/dist/Shared/Components/CMCS/helpers.d.ts +1 -1
  155. package/dist/Shared/Components/Card/Card.component.d.ts +1 -1
  156. package/dist/Shared/Components/Charts/Chart.component.d.ts +1 -1
  157. package/dist/Shared/Components/Charts/types.d.ts +0 -2
  158. package/dist/Shared/Components/Charts/utils.d.ts +1 -1
  159. package/dist/Shared/Components/Chip/Chip.component.d.ts +1 -1
  160. package/dist/Shared/Components/ClusterStatusIcon/ClusterStatusIcon.d.ts +1 -1
  161. package/dist/Shared/Components/CodeEditor/CodeEditor.components.d.ts +6 -6
  162. package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +7 -7
  163. package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
  164. package/dist/Shared/Components/CodeEditor/Extensions/DiffMinimap.d.ts +1 -1
  165. package/dist/Shared/Components/CodeEditor/utils.d.ts +1 -1
  166. package/dist/Shared/Components/Collapse/Collapse.d.ts +1 -1
  167. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +1 -1
  168. package/dist/Shared/Components/CommitChipCell/CommitChipCell.d.ts +1 -1
  169. package/dist/Shared/Components/Confetti/Confetti.component.d.ts +1 -1
  170. package/dist/Shared/Components/ConfirmationModal/CannotDeleteModal.d.ts +1 -1
  171. package/dist/Shared/Components/ConfirmationModal/ConfirmationModal.d.ts +1 -1
  172. package/dist/Shared/Components/ConfirmationModal/ConfirmationModalContext.d.ts +1 -1
  173. package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +1 -1
  174. package/dist/Shared/Components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
  175. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +1 -1
  176. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  177. package/dist/Shared/Components/CustomInput/PasswordField.d.ts +1 -1
  178. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  179. package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +1 -1
  180. package/dist/Shared/Components/DatePicker/DayPickerRangeController.d.ts +2 -0
  181. package/dist/Shared/Components/DatePicker/MonthlySelect.d.ts +1 -1
  182. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +11 -0
  183. package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +1 -1
  184. package/dist/Shared/Components/DatePicker/constants.d.ts +112 -2
  185. package/dist/Shared/Components/DatePicker/index.d.ts +2 -0
  186. package/dist/Shared/Components/DatePicker/types.d.ts +29 -34
  187. package/dist/Shared/Components/DatePicker/utils.d.ts +1 -1
  188. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
  189. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
  190. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
  191. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
  192. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +1 -1
  193. package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +1 -1
  194. package/dist/Shared/Components/DocLink/DocLink.d.ts +1 -1
  195. package/dist/Shared/Components/DocLink/constants.d.ts +0 -1
  196. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
  197. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +1 -1
  198. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
  199. package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +1 -1
  200. package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +1 -1
  201. package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +1 -1
  202. package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
  203. package/dist/Shared/Components/Error/utils.d.ts +1 -1
  204. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +1 -1
  205. package/dist/Shared/Components/ExportToCsv/ExportToCsv.d.ts +1 -1
  206. package/dist/Shared/Components/ExportToCsv/ExportToCsvDialog.d.ts +1 -1
  207. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
  208. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  209. package/dist/Shared/Components/FileUpload/FileUpload.d.ts +1 -1
  210. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  211. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +1 -1
  212. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  213. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +1 -1
  214. package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +1 -1
  215. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +1 -1
  216. package/dist/Shared/Components/FormFieldWrapper/FormFieldInfo.d.ts +1 -1
  217. package/dist/Shared/Components/FormFieldWrapper/FormFieldLabel.d.ts +1 -1
  218. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  219. package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +1 -1
  220. package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +1 -1
  221. package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +1 -1
  222. package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +4 -4
  223. package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +1 -1
  224. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  225. package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +1 -1
  226. package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +1 -1
  227. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +1 -1
  228. package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
  229. package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +1 -1
  230. package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +1 -1
  231. package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +1 -1
  232. package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +1 -1
  233. package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +1 -1
  234. package/dist/Shared/Components/GraphVisualizer/constants.d.ts +3 -3
  235. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
  236. package/dist/Shared/Components/Header/HelpButton.d.ts +1 -1
  237. package/dist/Shared/Components/Header/IframePromoButton.d.ts +1 -1
  238. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  239. package/dist/Shared/Components/Header/ProfileMenu.d.ts +1 -1
  240. package/dist/Shared/Components/Icon/Icon.d.ts +19 -1
  241. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  242. package/dist/Shared/Components/IframeContainer/IframeContainer.component.d.ts +1 -1
  243. package/dist/Shared/Components/IframeContainer/IframeElement.d.ts +1 -1
  244. package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -1
  245. package/dist/Shared/Components/Illustration/IllustrationBase.d.ts +1 -1
  246. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +1 -1
  247. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +1 -1
  248. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +1 -1
  249. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +1 -1
  250. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
  251. package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
  252. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +1 -1
  253. package/dist/Shared/Components/InfoBlock/InfoBlock.component.d.ts +1 -1
  254. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  255. package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +1 -1
  256. package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +1 -1
  257. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  258. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +1 -1
  259. package/dist/Shared/Components/License/ActivateLicenseDialog.d.ts +1 -1
  260. package/dist/Shared/Components/License/DevtronLicenseCard.d.ts +1 -1
  261. package/dist/Shared/Components/License/License.components.d.ts +3 -3
  262. package/dist/Shared/Components/LoadingCard.d.ts +1 -1
  263. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +1 -1
  264. package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +1 -1
  265. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  266. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
  267. package/dist/Shared/Components/NumbersCount/NumbersCount.component.d.ts +1 -1
  268. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +1 -1
  269. package/dist/Shared/Components/Plugin/PluginCard.d.ts +1 -1
  270. package/dist/Shared/Components/Plugin/PluginCardSkeletonList.d.ts +1 -1
  271. package/dist/Shared/Components/Plugin/PluginImageContainer.d.ts +1 -1
  272. package/dist/Shared/Components/Plugin/PluginList.d.ts +1 -1
  273. package/dist/Shared/Components/Plugin/PluginListContainer.d.ts +1 -1
  274. package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
  275. package/dist/Shared/Components/Plugin/PluginTagsContainer.d.ts +1 -1
  276. package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
  277. package/dist/Shared/Components/Popover/utils.d.ts +1 -1
  278. package/dist/Shared/Components/ProgressBar/ProgressBar.component.d.ts +1 -1
  279. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
  280. package/dist/Shared/Components/QRCode.d.ts +1 -1
  281. package/dist/Shared/Components/ReactSelect/constants.d.ts +1 -1
  282. package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -4
  283. package/dist/Shared/Components/RegistryIcon/RegistryIcon.d.ts +1 -1
  284. package/dist/Shared/Components/SSOProviderIcon/SSOProviderIcon.d.ts +1 -1
  285. package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +1 -1
  286. package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityDetailsCards.d.ts +1 -1
  287. package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +1 -1
  288. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +97 -5
  289. package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +1 -1
  290. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
  291. package/dist/Shared/Components/Security/SeverityChip.d.ts +1 -1
  292. package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
  293. package/dist/Shared/Components/SelectPicker/FilterSelectPicker.d.ts +1 -1
  294. package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.d.ts +1 -1
  295. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  296. package/dist/Shared/Components/SelectPicker/SelectPickerTextArea.component.d.ts +1 -1
  297. package/dist/Shared/Components/SelectPicker/common.d.ts +12 -12
  298. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +1 -1
  299. package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +1 -1
  300. package/dist/Shared/Components/StatusComponent/AppStatus.d.ts +1 -1
  301. package/dist/Shared/Components/StatusComponent/DeploymentStatus.d.ts +1 -1
  302. package/dist/Shared/Components/StatusComponent/StatusComponent.d.ts +1 -1
  303. package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
  304. package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +1 -1
  305. package/dist/Shared/Components/TabGroup/TabGroup.component.d.ts +1 -1
  306. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +4 -4
  307. package/dist/Shared/Components/Table/BulkSelectionActionWidget.d.ts +1 -1
  308. package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
  309. package/dist/Shared/Components/Table/Table.component.d.ts +1 -1
  310. package/dist/Shared/Components/Table/TableContent.d.ts +1 -1
  311. package/dist/Shared/Components/Table/constants.d.ts +1 -0
  312. package/dist/Shared/Components/Table/types.d.ts +27 -7
  313. package/dist/Shared/Components/Table/utils.d.ts +1 -1
  314. package/dist/Shared/Components/TagsKeyValueTable/TagsContainer.d.ts +1 -1
  315. package/dist/Shared/Components/TargetPlatforms/TargetPlatformBadgeList.d.ts +1 -1
  316. package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
  317. package/dist/Shared/Components/TempAppWindow/TempAppWindow.d.ts +1 -1
  318. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  319. package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
  320. package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
  321. package/dist/Shared/Components/TrailingItem/TrailingItem.component.d.ts +1 -1
  322. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  323. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  324. package/dist/Shared/Components/Typewriter/BlinkingCursor.d.ts +1 -1
  325. package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +1 -1
  326. package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +1 -1
  327. package/dist/Shared/Components/UserIdentifier/UserIdentifier.d.ts +1 -1
  328. package/dist/Shared/Components/VirtualizedList/VirtualizedList.component.d.ts +1 -1
  329. package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
  330. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
  331. package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +3 -3
  332. package/dist/Shared/Helpers.d.ts +3 -3
  333. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +1 -0
  334. package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +1 -1
  335. package/dist/Shared/Providers/MainContextProvider/MainContextProvider.d.ts +1 -1
  336. package/dist/Shared/Providers/MainContextProvider/index.d.ts +1 -1
  337. package/dist/Shared/Providers/MainContextProvider/types.d.ts +45 -4
  338. package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +1 -1
  339. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +3 -3
  340. package/dist/Shared/Services/ToastManager/ToastContent.d.ts +2 -2
  341. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +1 -1
  342. package/dist/Shared/Services/types.d.ts +1 -0
  343. package/dist/Shared/Store/IndexStore.d.ts +1 -1
  344. package/dist/Shared/types.d.ts +2 -174
  345. package/dist/Shared/validations.d.ts +1 -0
  346. package/dist/assets/@code-editor.css +1 -1
  347. package/dist/assets/@react-dates.css +1 -0
  348. package/dist/assets/@vendor.css +1 -1
  349. package/dist/assets/ic-bell.d2aa01ec.svg +3 -0
  350. package/dist/assets/ic-bulb.3906a732.svg +7 -0
  351. package/dist/assets/ic-calender-blank.963e3423.svg +19 -0
  352. package/dist/assets/ic-close-circle.b39dd87d.svg +3 -0
  353. package/dist/assets/ic-comment.cc141b33.svg +3 -0
  354. package/dist/assets/ic-dot-circle.5ce1fccf.svg +3 -0
  355. package/dist/assets/ic-medium-megaphone.a069bf1d.svg +5 -0
  356. package/dist/assets/ic-new-chat.f7c90f8e.svg +5 -0
  357. package/dist/assets/ic-piggybank.3a4839d7.svg +3 -0
  358. package/dist/assets/ic-priority-high-fill.53755d8f.svg +3 -0
  359. package/dist/assets/ic-priority-low-fill.79e781ae.svg +4 -0
  360. package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +10 -0
  361. package/dist/assets/ic-red-bulb.25e01bfc.svg +9 -0
  362. package/dist/assets/ic-ses.7797b214.svg +6 -0
  363. package/dist/assets/ic-slack.3c916573.svg +10 -0
  364. package/dist/assets/ic-smtp.f6f45abc.svg +7 -0
  365. package/dist/assets/ic-thumb-down-fill.e3cb6362.svg +3 -0
  366. package/dist/assets/ic-thumb-up-fill.ddf7c8eb.svg +3 -0
  367. package/dist/assets/ic-webhook-config.d0dd47eb.svg +5 -0
  368. package/dist/index.d.ts +173 -1
  369. package/dist/index.js +969 -953
  370. package/package.json +20 -13
  371. package/dist/@common-rjsf-vUb-HzVA.js +0 -592
  372. package/dist/@vendor-BPy92aLm.js +0 -135781
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.22.8-beta-8",
3
+ "version": "1.22.8-beta-10",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -42,13 +42,16 @@
42
42
  "@sentry/browser": "^7.119.1",
43
43
  "@tanstack/eslint-plugin-query": "<5",
44
44
  "@tanstack/react-query-devtools": "<5",
45
+ "@testing-library/jest-dom": "^5.16.2",
46
+ "@testing-library/react": "^12.1.4",
45
47
  "@tippyjs/react": "^4.2.0",
46
48
  "@typeform/embed-react": "2.20.0",
47
49
  "@types/dompurify": "^3.0.5",
48
50
  "@types/json-schema": "^7.0.15",
49
- "@types/react": "^18.3.27",
51
+ "@types/react": "17.0.39",
50
52
  "@types/react-csv": "^1.1.10",
51
- "@types/react-dom": "^18.3.7",
53
+ "@types/react-dates": "^21.8.6",
54
+ "@types/react-dom": "17.0.13",
52
55
  "@types/react-router-dom": "^5.3.3",
53
56
  "@typescript-eslint/eslint-plugin": "8.3.0",
54
57
  "@typescript-eslint/parser": "8.3.0",
@@ -81,12 +84,16 @@
81
84
  "vite-tsconfig-paths": "5.0.1"
82
85
  },
83
86
  "peerDependencies": {
87
+ "@rjsf/core": "^5.13.3",
88
+ "@rjsf/utils": "^5.13.3",
89
+ "@rjsf/validator-ajv8": "^5.13.3",
84
90
  "@typeform/embed-react": "2.20.0",
85
91
  "dompurify": "^3.2.4",
86
92
  "patch-package": "^8.0.0",
87
- "react": "^18.3.1",
88
- "react-dom": "^18.3.1",
93
+ "react": "^17.0.2",
94
+ "react-dom": "^17.0.2",
89
95
  "react-ga4": "^1.4.1",
96
+ "react-mde": "^11.5.0",
90
97
  "react-router-dom": "^5.3.0",
91
98
  "react-select": "5.8.0",
92
99
  "rxjs": "^7.8.1",
@@ -105,17 +112,13 @@
105
112
  "@lezer/highlight": "1.2.1",
106
113
  "@replit/codemirror-indentation-markers": "6.5.3",
107
114
  "@replit/codemirror-vscode-keymap": "6.0.2",
108
- "@rjsf/core": "^6.2.4",
109
- "@rjsf/utils": "^6.2.4",
110
- "@rjsf/validator-ajv8": "^6.2.4",
111
115
  "@tanstack/react-query": "<5",
112
116
  "@uiw/codemirror-extensions-hyper-link": "4.23.10",
113
117
  "@uiw/codemirror-theme-github": "4.23.7",
114
118
  "@uiw/react-codemirror": "4.23.7",
115
- "@uiw/react-md-editor": "^4.0.11",
116
119
  "@xyflow/react": "12.4.2",
117
120
  "ansi_up": "^5.2.1",
118
- "chart.js": "4.5.0",
121
+ "chart.js": "^4.5.0",
119
122
  "codemirror-json-schema": "0.8.0",
120
123
  "cronstrue": "^3.9.0",
121
124
  "dayjs": "^1.11.13",
@@ -128,7 +131,7 @@
128
131
  "qrcode.react": "^4.2.0",
129
132
  "react-canvas-confetti": "^2.0.7",
130
133
  "react-csv": "^2.2.2",
131
- "react-day-picker": "9.4.3",
134
+ "react-dates": "^21.8.0",
132
135
  "react-draggable": "^4.4.5",
133
136
  "react-international-phone": "^4.5.0",
134
137
  "react-virtualized-sticky-tree": "^3.0.0-beta18",
@@ -137,12 +140,16 @@
137
140
  },
138
141
  "overrides": {
139
142
  "cross-spawn": "^7.0.5",
143
+ "react-dates": {
144
+ "react": "^17.0.2",
145
+ "react-dom": "^17.0.2"
146
+ },
140
147
  "vite-plugin-svgr": {
141
148
  "vite": "6.3.5"
142
149
  },
143
150
  "react-virtualized-sticky-tree": {
144
- "react": "^18.3.1",
145
- "react-dom": "^18.3.1"
151
+ "react": "^17.0.2",
152
+ "react-dom": "^17.0.2"
146
153
  }
147
154
  }
148
155
  }
@@ -1,592 +0,0 @@
1
- import { j as n, bd as $, be as W, bf as J, bg as K, bh as B, bi as V, aP as v, bj as q, bk as Y, aR as G, aQ as z, bl as Q, bm as X, b as Z, bn as ee } from "./@vendor-BPy92aLm.js";
2
- import te, { useState as ne, useEffect as se, forwardRef as ae, useMemo as E } from "react";
3
- import { T as O, j as w, c as T, b as N, S as re, i as oe, g as le, a as ie, d as R, e as ce } from "./@code-editor-DJ1n-oj-.js";
4
- import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
5
- import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
6
- import { ReactComponent as me } from "./assets/ic-cross.01e03666.svg";
7
- import './assets/@common-rjsf.css';const F = {
8
- SELECT: "Please select an option",
9
- INPUT: "Please enter an input",
10
- OBJECT_KEY: "Please enter a value for the key"
11
- }, pe = "Key not available", Me = {
12
- "ui:submitButtonOptions": {
13
- norender: !0
14
- }
15
- }, L = "rjsf-form-select-portal-target", fe = ({
16
- children: e,
17
- disabled: t,
18
- hasToolbar: a,
19
- hasRemove: s,
20
- onRemoveItem: r,
21
- readonly: i,
22
- registry: o,
23
- uiSchema: l
24
- }) => {
25
- const { RemoveButton: c } = o.templates.ButtonTemplates;
26
- return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
27
- e,
28
- /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: a && s && /* @__PURE__ */ n.jsx(
29
- c,
30
- {
31
- disabled: t || i,
32
- onClick: r,
33
- uiSchema: l,
34
- registry: o
35
- }
36
- ) })
37
- ] });
38
- }, S = ({
39
- showLabel: e,
40
- label: t,
41
- required: a,
42
- children: s,
43
- id: r,
44
- rawDescription: i,
45
- shouldAlignCenter: o = !0
46
- }) => /* @__PURE__ */ n.jsxs(
47
- "div",
48
- {
49
- className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${o ? "" : "rjsf-form-template__field--align-top"}` : "",
50
- children: [
51
- e && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
52
- /* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!i, content: i, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${i ? "dc__underline-dotted" : ""}`, children: t || pe }) }),
53
- a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
54
- ] }),
55
- s
56
- ]
57
- }
58
- ), A = ({ label: e, canAdd: t, onAddClick: a, disabled: s, readonly: r, uiSchema: i, registry: o }) => {
59
- const {
60
- ButtonTemplates: { AddButton: l }
61
- } = o.templates;
62
- return t && /* @__PURE__ */ n.jsx(
63
- l,
64
- {
65
- label: e,
66
- onClick: a,
67
- disabled: s || r,
68
- uiSchema: i,
69
- registry: o
70
- }
71
- );
72
- }, he = ({
73
- canAdd: e,
74
- className: t,
75
- disabled: a,
76
- fieldPathId: s,
77
- uiSchema: r,
78
- items: i,
79
- onAddClick: o,
80
- readonly: l,
81
- registry: c,
82
- required: d,
83
- title: p
84
- }) => {
85
- const u = $(r).title || p;
86
- return /* @__PURE__ */ n.jsx("fieldset", { className: t, id: s.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
87
- i,
88
- /* @__PURE__ */ n.jsx(
89
- A,
90
- {
91
- label: u,
92
- canAdd: e,
93
- onAddClick: o,
94
- disabled: a,
95
- readonly: l,
96
- uiSchema: r,
97
- registry: c
98
- }
99
- )
100
- ] }) : /* @__PURE__ */ n.jsx(S, { label: u, required: d, showLabel: !0, id: s.$id, children: /* @__PURE__ */ n.jsx(
101
- A,
102
- {
103
- label: u,
104
- canAdd: e,
105
- onAddClick: o,
106
- disabled: a,
107
- readonly: l,
108
- uiSchema: r,
109
- registry: c
110
- }
111
- ) }) });
112
- }, {
113
- templates: { BaseInputTemplate: _e }
114
- } = W(), xe = ({ placeholder: e, ...t }) => {
115
- const { schema: a } = t;
116
- return /* @__PURE__ */ n.jsx(
117
- _e,
118
- {
119
- placeholder: a.placeholder || e || F.INPUT,
120
- ...t,
121
- className: "form__input cn-9 fs-13 lh-20 fw-4"
122
- }
123
- );
124
- }, U = ({
125
- label: e,
126
- icon: t,
127
- iconType: a,
128
- registry: s,
129
- uiSchema: r,
130
- ...i
131
- }) => {
132
- const o = `Add ${e}`;
133
- return /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-start", children: /* @__PURE__ */ n.jsxs(
134
- "button",
135
- {
136
- ...i,
137
- type: "button",
138
- className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor dc__mxw-250",
139
- title: "Add",
140
- children: [
141
- /* @__PURE__ */ n.jsx(de, { className: "icon-dim-16 fcb-5" }),
142
- /* @__PURE__ */ n.jsx(O, { placement: "right", content: o, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: o }) })
143
- ]
144
- }
145
- ) });
146
- }, je = ({ icon: e, iconType: t, registry: a, uiSchema: s, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(me, { className: "icon-dim-16 fcn-6" }) }), be = ({ uiSchema: e }) => {
147
- const { submitText: t, norender: a, props: s = {} } = J(e);
148
- return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...s, className: `cta ${s.className || ""}`, children: t }) });
149
- }, P = ({
150
- id: e,
151
- title: t,
152
- required: a,
153
- description: s
154
- }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: e, children: [
155
- /* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!s, content: s, children: /* @__PURE__ */ n.jsx("span", { className: `${s ? "dc__underline-dotted" : ""}`, children: t }) }),
156
- a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
157
- ] }), ge = (e) => {
158
- const {
159
- id: t,
160
- label: a,
161
- children: s,
162
- errors: r,
163
- hidden: i,
164
- required: o,
165
- displayLabel: l,
166
- registry: c,
167
- uiSchema: d,
168
- classNames: p,
169
- schema: m,
170
- rawDescription: u
171
- } = e, f = $(d), h = K(
172
- "WrapIfAdditionalTemplate",
173
- c,
174
- f
175
- ), x = B in m, _ = (l || m.type === "boolean") && !x, j = m.type === "array";
176
- return i ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: s }) : (
177
- // NOTE: need to override the margins of default rjsf css
178
- /* @__PURE__ */ n.jsxs("div", { className: `${p} mb-0`, children: [
179
- j && /* @__PURE__ */ n.jsx(
180
- P,
181
- {
182
- id: t,
183
- title: a,
184
- required: o,
185
- registry: c,
186
- uiSchema: d,
187
- schema: m,
188
- description: u
189
- }
190
- ),
191
- /* @__PURE__ */ n.jsx(
192
- S,
193
- {
194
- label: a,
195
- showLabel: _,
196
- id: t,
197
- required: o,
198
- rawDescription: u,
199
- children: /* @__PURE__ */ n.jsx(h, { ...e, children: s })
200
- }
201
- ),
202
- r
203
- ] })
204
- );
205
- }, ye = ({ errors: e = [], fieldPathId: t }) => {
206
- const a = V(t);
207
- return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: e.filter((s) => !!s).map((s, r) => /* @__PURE__ */ n.jsxs(te.Fragment, { children: [
208
- /* @__PURE__ */ n.jsx("span", {}),
209
- /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
210
- /* @__PURE__ */ n.jsx(ue, { className: "form__icon form__icon--error" }),
211
- s
212
- ] })
213
- ] }, r)) });
214
- }, ve = (e, t) => {
215
- switch (e) {
216
- case Y.NewStringDefault:
217
- return "";
218
- default:
219
- return q(e, t);
220
- }
221
- }, We = (e) => {
222
- try {
223
- const t = new URL(e).origin === window.location.origin;
224
- return {
225
- href: e,
226
- target: t ? "_self" : "_blank",
227
- rel: t ? void 0 : "external noreferrer",
228
- url: e
229
- };
230
- } catch {
231
- return {
232
- href: e,
233
- target: "_blank",
234
- url: `${e} (Invalid URL)`
235
- };
236
- }
237
- }, Je = (e) => {
238
- const t = typeof e;
239
- switch (t) {
240
- case "boolean":
241
- case "string":
242
- case "number":
243
- return t;
244
- case "object":
245
- return Array.isArray(e) ? "array" : e === null ? "null" : t;
246
- default:
247
- return "null";
248
- }
249
- }, y = (e) => {
250
- if (!e)
251
- return "";
252
- const t = e.trim(), s = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
253
- return /(\/(([^/~])|(~[01]))*)/g.test(s) ? s : "";
254
- }, I = {
255
- value: !1,
256
- path: ""
257
- }, Te = (e) => {
258
- if (!e)
259
- return null;
260
- const t = structuredClone(e);
261
- return typeof t == "string" ? {
262
- value: !0,
263
- path: y(t)
264
- } : typeof t != "object" ? structuredClone(I) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
265
- value: t.condition,
266
- path: y(t.value)
267
- } : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
268
- value: t.value,
269
- path: y(t.path)
270
- } : structuredClone(I);
271
- }, k = (e, t, a) => {
272
- e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([s, r]) => {
273
- k(r, `${t}/${s}`, a);
274
- }), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (a[t] = y(e.updatePath ?? t)));
275
- }, Se = (e) => {
276
- const t = {};
277
- return k(e, "", t), t;
278
- }, H = (e, t, a) => {
279
- if (t >= a.length)
280
- return e;
281
- const s = a[t];
282
- if (t === a.length - 1) {
283
- const r = structuredClone(e);
284
- return delete r[s], r;
285
- }
286
- if (e[s] && (e[s] = H(e[s], t + 1, a)), Object.keys(e[s] ?? {}).length === 0) {
287
- const r = structuredClone(e);
288
- return delete r[s], r;
289
- }
290
- return e;
291
- }, we = (e, t) => {
292
- if (!e || typeof e != "object" || Array.isArray(e))
293
- throw new Error("Invalid object");
294
- if (!t || !t.startsWith("/"))
295
- throw new Error("Invalid path");
296
- const a = t.split("/").slice(1);
297
- return H(e, 0, a);
298
- }, D = ({
299
- formState: e,
300
- formData: t,
301
- schemaPathToUpdatePathMap: a
302
- }) => {
303
- let s = structuredClone(e);
304
- return s && (Object.entries(a).forEach(([r, i]) => {
305
- if (r === i || !i)
306
- return;
307
- const o = v({
308
- json: t,
309
- path: T(r),
310
- resultType: "value",
311
- wrap: !1
312
- });
313
- o === void 0 ? s = we(s, r) : s = w([N(r, o), s]);
314
- const l = v({
315
- json: e,
316
- path: T(r),
317
- resultType: "value",
318
- wrap: !1
319
- });
320
- l !== void 0 && (s = w([N(i, l), s]));
321
- }), t && s ? G(t, z(t, s), !1, !1).newDocument : s);
322
- }, Ne = ({ formData: e, schemaPathToUpdatePathMap: t }) => w([
323
- ...Object.entries(t).map(([a, s]) => {
324
- if (a === s || !s)
325
- return {};
326
- const r = v({
327
- json: e,
328
- path: T(s),
329
- resultType: "value",
330
- wrap: !1
331
- });
332
- return r === void 0 ? {} : N(a, r);
333
- }),
334
- structuredClone(e)
335
- ]), Oe = ({
336
- disabled: e,
337
- formData: t,
338
- fieldPathId: a,
339
- onAddProperty: s,
340
- properties: r,
341
- readonly: i,
342
- registry: o,
343
- required: l,
344
- schema: c,
345
- title: d,
346
- uiSchema: p
347
- }) => {
348
- const m = !!c.additionalProperties, u = X(c, p, t) && /* @__PURE__ */ n.jsx(
349
- U,
350
- {
351
- label: d,
352
- className: "object-property-expand",
353
- onClick: s,
354
- disabled: e || i,
355
- uiSchema: p,
356
- registry: o
357
- }
358
- ), f = r.filter((h) => {
359
- const x = c.properties?.[h.name]?.hidden;
360
- if (!x)
361
- return !0;
362
- try {
363
- const _ = Te(x);
364
- if (!_.path)
365
- throw new Error("Empty path property of hidden descriptor field");
366
- const j = v({
367
- path: T(_.path),
368
- json: o.formContext,
369
- resultType: "value",
370
- wrap: !1
371
- });
372
- return !(j === void 0 || Z(_.value, j));
373
- } catch {
374
- return !0;
375
- }
376
- }).map((h) => h.content);
377
- return m ? r.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
378
- /* @__PURE__ */ n.jsx(
379
- S,
380
- {
381
- label: d,
382
- required: l,
383
- showLabel: !0,
384
- id: a.$id,
385
- shouldAlignCenter: !1,
386
- children: /* @__PURE__ */ n.jsx("div", { children: f })
387
- }
388
- ),
389
- u
390
- ] }) : /* @__PURE__ */ n.jsx(S, { label: d, required: l, showLabel: !0, id: a.$id, children: u }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
391
- f,
392
- u
393
- ] });
394
- }, Fe = (e) => {
395
- const { fieldPathId: t, registry: a, required: s, schema: r, title: i, uiSchema: o, description: l } = e, c = !!r.additionalProperties, d = i && !c;
396
- return /* @__PURE__ */ n.jsxs("fieldset", { id: t.$id, children: [
397
- d && /* @__PURE__ */ n.jsx(
398
- P,
399
- {
400
- id: Q(t),
401
- title: i,
402
- required: s,
403
- schema: r,
404
- uiSchema: o,
405
- registry: a,
406
- description: l
407
- }
408
- ),
409
- /* @__PURE__ */ n.jsx(
410
- "div",
411
- {
412
- className: `${r.properties && !c && t.$id !== "root" ? "dc__border-left pl-12" : ""} ${t.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
413
- children: /* @__PURE__ */ n.jsx(Oe, { ...e })
414
- }
415
- )
416
- ] });
417
- }, Pe = ({
418
- id: e,
419
- disabled: t,
420
- label: a,
421
- onKeyRename: s,
422
- onRemoveProperty: r,
423
- readonly: i,
424
- schema: o,
425
- children: l,
426
- uiSchema: c,
427
- registry: d
428
- }) => {
429
- const { templates: p } = d, { RemoveButton: m } = p.ButtonTemplates, u = B in o;
430
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: u ? /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
431
- /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
432
- "input",
433
- {
434
- type: "text",
435
- className: "form__input cn-9 fs-13 lh-20 fw-4",
436
- id: `${e}-key`,
437
- onBlur: (f) => s(f.target.value),
438
- placeholder: F.OBJECT_KEY,
439
- defaultValue: a
440
- }
441
- ) }),
442
- /* @__PURE__ */ n.jsx("div", { children: l }),
443
- /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: /* @__PURE__ */ n.jsx(
444
- m,
445
- {
446
- disabled: t || i,
447
- onClick: r,
448
- uiSchema: c,
449
- registry: d
450
- }
451
- ) })
452
- ] }) : l });
453
- }, Ce = ({
454
- id: e,
455
- onChange: t,
456
- value: a,
457
- disabled: s,
458
- readonly: r,
459
- autofocus: i
460
- }) => {
461
- const o = oe(a) ? !1 : a, l = () => {
462
- t(!o);
463
- };
464
- return /* @__PURE__ */ n.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
465
- /* @__PURE__ */ n.jsx(
466
- re,
467
- {
468
- name: e,
469
- ariaLabel: e,
470
- onChange: l,
471
- isChecked: o,
472
- autoFocus: i,
473
- isDisabled: s || r
474
- }
475
- ),
476
- /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize", children: o.toString() })
477
- ] });
478
- }, Ee = (e) => {
479
- const {
480
- id: t,
481
- multiple: a = !1,
482
- options: s,
483
- value: r,
484
- disabled: i,
485
- readonly: o,
486
- autofocus: l = !1,
487
- onChange: c,
488
- onBlur: d,
489
- onFocus: p,
490
- placeholder: m,
491
- schema: u
492
- } = e, { enumOptions: f = [] } = s, h = a ? [] : null, x = (b) => {
493
- c(a ? b.map((g) => g.value) : b.value);
494
- }, [_, j] = ne();
495
- se(() => {
496
- j(le(8));
497
- }, []);
498
- const C = (b) => a ? f.filter((g) => b.some((M) => R(M, g.value))) : f.find((g) => R(b, g.value));
499
- return /* @__PURE__ */ n.jsx(
500
- ie,
501
- {
502
- inputId: `devtron-rjsf-select__${t}`,
503
- name: t,
504
- isMulti: a,
505
- value: typeof r > "u" ? h : C(r),
506
- autoFocus: l,
507
- onChange: x,
508
- options: f,
509
- onBlur: () => d(t, r),
510
- onFocus: () => p(t, r),
511
- placeholder: u.placeholder || m || F.SELECT,
512
- isDisabled: i || o,
513
- menuPortalTarget: document.getElementById(L),
514
- menuPosition: "fixed"
515
- },
516
- _
517
- );
518
- }, Re = {
519
- CheckboxWidget: Ce,
520
- SelectWidget: Ee
521
- }, Ae = {
522
- ArrayFieldItemTemplate: fe,
523
- ArrayFieldTemplate: he,
524
- BaseInputTemplate: xe,
525
- ButtonTemplates: { AddButton: U, RemoveButton: je, SubmitButton: be },
526
- FieldTemplate: ge,
527
- FieldErrorTemplate: ye,
528
- ObjectFieldTemplate: Fe,
529
- TitleFieldTemplate: P,
530
- WrapIfAdditionalTemplate: Pe
531
- }, Ie = ee, De = ce, Ke = ae((e, t) => {
532
- const { schemaPathToUpdatePathMap: a, isUpdatePathKeywordPresent: s } = E(() => {
533
- const l = Se(e.schema);
534
- return {
535
- schemaPathToUpdatePathMap: l,
536
- isUpdatePathKeywordPresent: Object.entries(l).some(([c, d]) => c !== d)
537
- };
538
- }, [e.schema]), r = E(() => s ? Ne({ formData: e.formData ?? {}, schemaPathToUpdatePathMap: a }) : e.formData, [e.formData, a, s]), i = (l) => {
539
- if (!e.onChange)
540
- return;
541
- const c = D({
542
- formState: l.formData,
543
- formData: e.formData,
544
- schemaPathToUpdatePathMap: a
545
- });
546
- e.onChange({ ...l, formData: c });
547
- }, o = (l, c) => {
548
- if (!e.onSubmit)
549
- return;
550
- const d = D({
551
- formState: l.formData,
552
- formData: e.formData,
553
- schemaPathToUpdatePathMap: a
554
- });
555
- e.onSubmit?.({ ...l, formData: d }, c);
556
- };
557
- return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
558
- /* @__PURE__ */ n.jsx(
559
- Ie,
560
- {
561
- noHtml5Validate: !0,
562
- showErrorList: !1,
563
- autoComplete: "off",
564
- ...e,
565
- formData: r,
566
- ...s ? {
567
- onChange: i,
568
- onSubmit: o
569
- } : {},
570
- className: `rjsf-form-template__container ${e.className || ""}`,
571
- validator: De,
572
- templates: {
573
- ...Ae,
574
- ...e.templates
575
- },
576
- formContext: r,
577
- widgets: { ...Re, ...e.widgets },
578
- translateString: ve,
579
- ref: t
580
- }
581
- ),
582
- /* @__PURE__ */ n.jsx("div", { id: L })
583
- ] });
584
- });
585
- export {
586
- Me as H,
587
- Ke as R,
588
- We as a,
589
- Se as b,
590
- y as c,
591
- Je as g
592
- };