@odigos/ui-kit 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (481) hide show
  1. package/.prettierrc +13 -0
  2. package/CHANGELOG.md +26 -0
  3. package/README.md +62 -0
  4. package/lib/components/auto-complete-input/auto-complete-input.stories.d.ts +9 -0
  5. package/lib/components/auto-complete-input/index.d.ts +19 -0
  6. package/lib/components/badge/badge.stories.d.ts +13 -0
  7. package/lib/components/badge/index.d.ts +11 -0
  8. package/lib/components/button/button.stories.d.ts +9 -0
  9. package/lib/components/button/index.d.ts +6 -0
  10. package/lib/components/cancel-warning/cancel-warning.stories.d.ts +9 -0
  11. package/lib/components/cancel-warning/index.d.ts +10 -0
  12. package/lib/components/checkbox/checkbox.stories.d.ts +9 -0
  13. package/lib/components/checkbox/index.d.ts +15 -0
  14. package/lib/components/code/code.stories.d.ts +9 -0
  15. package/lib/components/code/index.d.ts +10 -0
  16. package/lib/components/code/toggle-code-component/index.d.ts +7 -0
  17. package/lib/components/condition-details/condition-details.stories.d.ts +14 -0
  18. package/lib/components/condition-details/index.d.ts +10 -0
  19. package/lib/components/data-card/data-card-fields/index.d.ts +24 -0
  20. package/lib/components/data-card/data-card.stories.d.ts +10 -0
  21. package/lib/components/data-card/index.d.ts +12 -0
  22. package/lib/components/data-tab/data-tab.stories.d.ts +9 -0
  23. package/lib/components/data-tab/index.d.ts +28 -0
  24. package/lib/components/delete-warning/delete-warning.stories.d.ts +9 -0
  25. package/lib/components/delete-warning/index.d.ts +13 -0
  26. package/lib/components/describe-row/describe-row.stories.d.ts +9 -0
  27. package/lib/components/describe-row/index.d.ts +13 -0
  28. package/lib/components/divider/divider.stories.d.ts +9 -0
  29. package/lib/components/divider/index.d.ts +11 -0
  30. package/lib/components/docs-button/docs-button.stories.d.ts +9 -0
  31. package/lib/components/docs-button/index.d.ts +8 -0
  32. package/lib/components/drawer/drawer-footer/index.d.ts +13 -0
  33. package/lib/components/drawer/drawer-header/index.d.ts +22 -0
  34. package/lib/components/drawer/drawer.stories.d.ts +10 -0
  35. package/lib/components/drawer/index.d.ts +15 -0
  36. package/lib/components/dropdown/dropdown.stories.d.ts +9 -0
  37. package/lib/components/dropdown/index.d.ts +21 -0
  38. package/lib/components/extend-arrow/extend-arrow.stories.d.ts +9 -0
  39. package/lib/components/extend-arrow/index.d.ts +8 -0
  40. package/lib/components/fade-loader/fade-loader.stories.d.ts +9 -0
  41. package/lib/components/fade-loader/helpers/animation.d.ts +1 -0
  42. package/lib/components/fade-loader/helpers/unitConverter.d.ts +22 -0
  43. package/lib/components/fade-loader/index.d.ts +10 -0
  44. package/lib/components/field-error/field-error.stories.d.ts +9 -0
  45. package/lib/components/field-error/index.d.ts +5 -0
  46. package/lib/components/field-label/field-label.stories.d.ts +9 -0
  47. package/lib/components/field-label/index.d.ts +9 -0
  48. package/lib/components/header/header.stories.d.ts +9 -0
  49. package/lib/components/header/index.d.ts +8 -0
  50. package/lib/components/icon-button/icon-button.stories.d.ts +9 -0
  51. package/lib/components/icon-button/index.d.ts +10 -0
  52. package/lib/components/icon-group/icon-group.stories.d.ts +14 -0
  53. package/lib/components/icon-group/index.d.ts +11 -0
  54. package/lib/components/icon-title-badge/icon-title-badge.stories.d.ts +9 -0
  55. package/lib/components/icon-title-badge/index.d.ts +10 -0
  56. package/lib/components/icon-wrapped/icon-wrapped.stories.d.ts +10 -0
  57. package/lib/components/icon-wrapped/index.d.ts +11 -0
  58. package/lib/components/icons-nav/icons-nav.stories.d.ts +9 -0
  59. package/lib/components/icons-nav/index.d.ts +17 -0
  60. package/lib/components/image-controlled/image-controlled.stories.d.ts +9 -0
  61. package/lib/components/image-controlled/index.d.ts +8 -0
  62. package/lib/components/index.d.ts +48 -0
  63. package/lib/components/input/index.d.ts +14 -0
  64. package/lib/components/input/input.stories.d.ts +9 -0
  65. package/lib/components/input-list/index.d.ts +13 -0
  66. package/lib/components/input-list/input-list.stories.d.ts +9 -0
  67. package/lib/components/input-table/index.d.ts +20 -0
  68. package/lib/components/input-table/input-table.stories.d.ts +9 -0
  69. package/lib/components/interactive-table/index.d.ts +26 -0
  70. package/lib/components/interactive-table/interactive-table.stories.d.ts +12 -0
  71. package/lib/components/interactive-table/row.d.ts +13 -0
  72. package/lib/components/key-value-input-list/index.d.ts +16 -0
  73. package/lib/components/key-value-input-list/key-value-input-list.stories.d.ts +9 -0
  74. package/lib/components/modal/index.d.ts +14 -0
  75. package/lib/components/modal/modal.stories.d.ts +9 -0
  76. package/lib/components/monitors-checkboxes/index.d.ts +13 -0
  77. package/lib/components/monitors-checkboxes/monitors-checkboxes.stories.d.ts +9 -0
  78. package/lib/components/monitors-icons/index.d.ts +11 -0
  79. package/lib/components/monitors-icons/monitors-icons.stories.d.ts +9 -0
  80. package/lib/components/navigation-buttons/index.d.ts +16 -0
  81. package/lib/components/navigation-buttons/navigation-buttons.stories.d.ts +9 -0
  82. package/lib/components/no-data-found/index.d.ts +7 -0
  83. package/lib/components/no-data-found/no-data-found.stories.d.ts +9 -0
  84. package/lib/components/notification-note/index.d.ts +21 -0
  85. package/lib/components/notification-note/notification-note.stories.d.ts +10 -0
  86. package/lib/components/section-title/index.d.ts +12 -0
  87. package/lib/components/section-title/section-title.stories.d.ts +9 -0
  88. package/lib/components/segment/index.d.ts +15 -0
  89. package/lib/components/segment/segment.stories.d.ts +9 -0
  90. package/lib/components/skeleton-loader/index.d.ts +7 -0
  91. package/lib/components/skeleton-loader/skeleton-loader.stories.d.ts +9 -0
  92. package/lib/components/status/index.d.ts +14 -0
  93. package/lib/components/status/status.stories.d.ts +9 -0
  94. package/lib/components/stepper/index.d.ts +10 -0
  95. package/lib/components/stepper/stepper.stories.d.ts +9 -0
  96. package/lib/components/styled.d.ts +13 -0
  97. package/lib/components/text/index.d.ts +13 -0
  98. package/lib/components/text/text.stories.d.ts +9 -0
  99. package/lib/components/textarea/index.d.ts +8 -0
  100. package/lib/components/textarea/textarea.stories.d.ts +9 -0
  101. package/lib/components/toggle/index.d.ts +11 -0
  102. package/lib/components/toggle/toggle.stories.d.ts +9 -0
  103. package/lib/components/tooltip/index.d.ts +11 -0
  104. package/lib/components/tooltip/tooltip.stories.d.ts +9 -0
  105. package/lib/components/trace-loader/index.d.ts +6 -0
  106. package/lib/components/trace-loader/trace-loader.stories.d.ts +9 -0
  107. package/lib/components/warning-modal/index.d.ts +24 -0
  108. package/lib/components/warning-modal/warning-modal.stories.d.ts +9 -0
  109. package/lib/constants/actions/index.d.ts +2 -0
  110. package/lib/constants/index.d.ts +5 -0
  111. package/lib/constants/instrumentation-rules/index.d.ts +2 -0
  112. package/lib/constants/signals/index.d.ts +2 -0
  113. package/lib/constants/strings/index.d.ts +42 -0
  114. package/lib/constants/tokens/index.d.ts +1 -0
  115. package/lib/containers/action-drawer/action-drawer.stories.d.ts +9 -0
  116. package/lib/containers/action-drawer/build-card.d.ts +9 -0
  117. package/lib/containers/action-drawer/index.d.ts +8 -0
  118. package/lib/containers/action-form/action-form.stories.d.ts +9 -0
  119. package/lib/containers/action-form/custom-fields/add-cluster-info.d.ts +5 -0
  120. package/lib/containers/action-form/custom-fields/delete-attributes.d.ts +5 -0
  121. package/lib/containers/action-form/custom-fields/error-sampler.d.ts +5 -0
  122. package/lib/containers/action-form/custom-fields/index.d.ts +7 -0
  123. package/lib/containers/action-form/custom-fields/k8s-attributes.d.ts +5 -0
  124. package/lib/containers/action-form/custom-fields/latency-sampler.d.ts +5 -0
  125. package/lib/containers/action-form/custom-fields/pii-masking.d.ts +5 -0
  126. package/lib/containers/action-form/custom-fields/probabilistic-sampler.d.ts +5 -0
  127. package/lib/containers/action-form/custom-fields/rename-attributes.d.ts +5 -0
  128. package/lib/containers/action-form/index.d.ts +11 -0
  129. package/lib/containers/action-modal/action-modal.stories.d.ts +9 -0
  130. package/lib/containers/action-modal/index.d.ts +7 -0
  131. package/lib/containers/action-table/action-table.stories.d.ts +9 -0
  132. package/lib/containers/action-table/build-spec-cell.d.ts +3 -0
  133. package/lib/containers/action-table/index.d.ts +7 -0
  134. package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +9 -0
  135. package/lib/containers/await-pipeline/index.d.ts +5 -0
  136. package/lib/containers/compute-platform-select/compute-platform-select.stories.d.ts +9 -0
  137. package/lib/containers/compute-platform-select/index.d.ts +10 -0
  138. package/lib/containers/compute-platforms/compute-platforms.stories.d.ts +9 -0
  139. package/lib/containers/compute-platforms/index.d.ts +8 -0
  140. package/lib/containers/compute-platforms-actions-menu/compute-platforms-actions-menu.stories.d.ts +9 -0
  141. package/lib/containers/compute-platforms-actions-menu/index.d.ts +7 -0
  142. package/lib/containers/data-flow/data-flow.stories.d.ts +9 -0
  143. package/lib/containers/data-flow/edges/labeled-edge.d.ts +10 -0
  144. package/lib/containers/data-flow/flow.d.ts +11 -0
  145. package/lib/containers/data-flow/helpers/build-action-nodes.d.ts +11 -0
  146. package/lib/containers/data-flow/helpers/build-destination-nodes.d.ts +11 -0
  147. package/lib/containers/data-flow/helpers/build-edges.d.ts +11 -0
  148. package/lib/containers/data-flow/helpers/build-rule-nodes.d.ts +11 -0
  149. package/lib/containers/data-flow/helpers/build-source-nodes.d.ts +17 -0
  150. package/lib/containers/data-flow/helpers/get-main-container-language.d.ts +2 -0
  151. package/lib/containers/data-flow/helpers/get-node-positions.d.ts +10 -0
  152. package/lib/containers/data-flow/helpers/node-config.d.ts +6 -0
  153. package/lib/containers/data-flow/index.d.ts +8 -0
  154. package/lib/containers/data-flow/nodes/add-node.d.ts +11 -0
  155. package/lib/containers/data-flow/nodes/base-node.d.ts +21 -0
  156. package/lib/containers/data-flow/nodes/edged-node.d.ts +9 -0
  157. package/lib/containers/data-flow/nodes/frame-node.d.ts +9 -0
  158. package/lib/containers/data-flow/nodes/header-node.d.ts +13 -0
  159. package/lib/containers/data-flow/nodes/scroll-node.d.ts +26 -0
  160. package/lib/containers/data-flow/nodes/skeleton-node.d.ts +8 -0
  161. package/lib/containers/data-flow-actions-menu/add-entity/index.d.ts +5 -0
  162. package/lib/containers/data-flow-actions-menu/data-flow.stories.d.ts +11 -0
  163. package/lib/containers/data-flow-actions-menu/filters/index.d.ts +10 -0
  164. package/lib/containers/data-flow-actions-menu/index.d.ts +10 -0
  165. package/lib/containers/data-flow-actions-menu/search/index.d.ts +5 -0
  166. package/lib/containers/data-flow-actions-menu/search/recent-searches/index.d.ts +2 -0
  167. package/lib/containers/data-flow-actions-menu/search/search-results/builder.d.ts +25 -0
  168. package/lib/containers/data-flow-actions-menu/search/search-results/index.d.ts +7 -0
  169. package/lib/containers/data-flow-actions-menu/selection-button/index.d.ts +17 -0
  170. package/lib/containers/data-flow-actions-menu/styled.d.ts +2 -0
  171. package/lib/containers/destination-drawer/build-card.d.ts +9 -0
  172. package/lib/containers/destination-drawer/destination-drawer.stories.d.ts +9 -0
  173. package/lib/containers/destination-drawer/index.d.ts +13 -0
  174. package/lib/containers/destination-form/destination-form.stories.d.ts +9 -0
  175. package/lib/containers/destination-form/dynamic-fields/index.d.ts +9 -0
  176. package/lib/containers/destination-form/index.d.ts +18 -0
  177. package/lib/containers/destination-form/test-connection/index.d.ts +17 -0
  178. package/lib/containers/destination-modal/choose-destination/destinations-list/index.d.ts +8 -0
  179. package/lib/containers/destination-modal/choose-destination/index.d.ts +11 -0
  180. package/lib/containers/destination-modal/choose-destination/potential-destinations-list/index.d.ts +8 -0
  181. package/lib/containers/destination-modal/destination-modal.stories.d.ts +9 -0
  182. package/lib/containers/destination-modal/index.d.ts +14 -0
  183. package/lib/containers/destination-selection-form/configured-list/index.d.ts +5 -0
  184. package/lib/containers/destination-selection-form/destination-selection-form.stories.d.ts +9 -0
  185. package/lib/containers/destination-selection-form/index.d.ts +16 -0
  186. package/lib/containers/destination-table/destination-table.stories.d.ts +9 -0
  187. package/lib/containers/destination-table/index.d.ts +9 -0
  188. package/lib/containers/dropdowns/connection-status-dropdown/connection-status-dropdown.stories.d.ts +9 -0
  189. package/lib/containers/dropdowns/connection-status-dropdown/index.d.ts +15 -0
  190. package/lib/containers/dropdowns/error-dropdown/error-dropdown.stories.d.ts +9 -0
  191. package/lib/containers/dropdowns/error-dropdown/index.d.ts +14 -0
  192. package/lib/containers/dropdowns/index.d.ts +7 -0
  193. package/lib/containers/dropdowns/kind-dropdown/error-dropdown.stories.d.ts +9 -0
  194. package/lib/containers/dropdowns/kind-dropdown/index.d.ts +13 -0
  195. package/lib/containers/dropdowns/language-dropdown/index.d.ts +13 -0
  196. package/lib/containers/dropdowns/language-dropdown/language-dropdown.stories.d.ts +9 -0
  197. package/lib/containers/dropdowns/monitor-dropdown/index.d.ts +13 -0
  198. package/lib/containers/dropdowns/monitor-dropdown/monitor-dropdown.stories.d.ts +9 -0
  199. package/lib/containers/dropdowns/namespace-dropdown/index.d.ts +16 -0
  200. package/lib/containers/dropdowns/namespace-dropdown/namespace-dropdown.stories.d.ts +9 -0
  201. package/lib/containers/dropdowns/platform-types-dropdown/index.d.ts +15 -0
  202. package/lib/containers/dropdowns/platform-types-dropdown/platform-types-dropdown.stories.d.ts +9 -0
  203. package/lib/containers/index.d.ts +33 -0
  204. package/lib/containers/instrumentation-rule-drawer/build-card.d.ts +9 -0
  205. package/lib/containers/instrumentation-rule-drawer/index.d.ts +8 -0
  206. package/lib/containers/instrumentation-rule-drawer/instrumentation-rule-drawer.stories.d.ts +9 -0
  207. package/lib/containers/instrumentation-rule-form/custom-fields/code-attributes.d.ts +5 -0
  208. package/lib/containers/instrumentation-rule-form/custom-fields/index.d.ts +7 -0
  209. package/lib/containers/instrumentation-rule-form/custom-fields/payload-collection.d.ts +5 -0
  210. package/lib/containers/instrumentation-rule-form/index.d.ts +11 -0
  211. package/lib/containers/instrumentation-rule-form/instrumentation-rule-form.stories.d.ts +9 -0
  212. package/lib/containers/instrumentation-rule-modal/index.d.ts +8 -0
  213. package/lib/containers/instrumentation-rule-modal/instrumentation-rule-modal.stories.d.ts +9 -0
  214. package/lib/containers/instrumentation-rule-table/build-spec-cell.d.ts +3 -0
  215. package/lib/containers/instrumentation-rule-table/index.d.ts +7 -0
  216. package/lib/containers/instrumentation-rule-table/instrumentation-rule-table.stories.d.ts +9 -0
  217. package/lib/containers/multi-source-control/index.d.ts +8 -0
  218. package/lib/containers/multi-source-control/multi-source-control.stories.d.ts +9 -0
  219. package/lib/containers/notification-manager/index.d.ts +5 -0
  220. package/lib/containers/notification-manager/notification-manager.stories.d.ts +9 -0
  221. package/lib/containers/overview-drawer/index.d.ts +20 -0
  222. package/lib/containers/overview-drawer/overview-drawer.stories.d.ts +9 -0
  223. package/lib/containers/side-nav/index.d.ts +16 -0
  224. package/lib/containers/side-nav/side-nav.stories.d.ts +9 -0
  225. package/lib/containers/slack-invite/index.d.ts +5 -0
  226. package/lib/containers/slack-invite/slack-invite.stories.d.ts +9 -0
  227. package/lib/containers/source-drawer/build-card.d.ts +8 -0
  228. package/lib/containers/source-drawer/describe/index.d.ts +14 -0
  229. package/lib/containers/source-drawer/index.d.ts +15 -0
  230. package/lib/containers/source-drawer/source-drawer.stories.d.ts +9 -0
  231. package/lib/containers/source-form/index.d.ts +8 -0
  232. package/lib/containers/source-form/source-form.stories.d.ts +9 -0
  233. package/lib/containers/source-modal/index.d.ts +14 -0
  234. package/lib/containers/source-modal/source-modal.stories.d.ts +9 -0
  235. package/lib/containers/source-selection-form/fast/controls/index.d.ts +7 -0
  236. package/lib/containers/source-selection-form/fast/index.d.ts +7 -0
  237. package/lib/containers/source-selection-form/fast/list/index.d.ts +10 -0
  238. package/lib/containers/source-selection-form/index.d.ts +21 -0
  239. package/lib/containers/source-selection-form/simple/controls/index.d.ts +11 -0
  240. package/lib/containers/source-selection-form/simple/index.d.ts +7 -0
  241. package/lib/containers/source-selection-form/simple/list/index.d.ts +9 -0
  242. package/lib/containers/source-selection-form/source-selection-form.stories.d.ts +9 -0
  243. package/lib/containers/source-table/index.d.ts +9 -0
  244. package/lib/containers/source-table/source-table.stories.d.ts +9 -0
  245. package/lib/containers/system-overview/describe/index.d.ts +11 -0
  246. package/lib/containers/system-overview/index.d.ts +7 -0
  247. package/lib/containers/system-overview/system-overview.stories.d.ts +9 -0
  248. package/lib/containers/system-overview/tokens/expires-at.d.ts +6 -0
  249. package/lib/containers/system-overview/tokens/index.d.ts +8 -0
  250. package/lib/containers/system-overview/tokens/token-actions.d.ts +7 -0
  251. package/lib/containers/table-cell-conditions/index.d.ts +7 -0
  252. package/lib/containers/table-cell-conditions/table-cell-conditions.stories.d.ts +9 -0
  253. package/lib/containers/toast-list/index.d.ts +5 -0
  254. package/lib/containers/toast-list/toast-list.stories.d.ts +9 -0
  255. package/lib/containers/toggle-dark-mode/index.d.ts +5 -0
  256. package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +9 -0
  257. package/lib/data/actions/index.d.ts +2 -0
  258. package/lib/data/describe/index.d.ts +3 -0
  259. package/lib/data/destinations/index.d.ts +4 -0
  260. package/lib/data/index.d.ts +7 -0
  261. package/lib/data/instrumentation-rules/index.d.ts +2 -0
  262. package/lib/data/namespaces/index.d.ts +2 -0
  263. package/lib/data/sources/index.d.ts +18 -0
  264. package/lib/data/tokens/index.d.ts +2 -0
  265. package/lib/functions/capitalize-first-letter/index.d.ts +1 -0
  266. package/lib/functions/clean-object-empty-strings-values/index.d.ts +1 -0
  267. package/lib/functions/compare-condition/index.d.ts +5 -0
  268. package/lib/functions/deep-clone/index.d.ts +1 -0
  269. package/lib/functions/derive-type-from-rule/index.d.ts +2 -0
  270. package/lib/functions/filter-actions/index.d.ts +3 -0
  271. package/lib/functions/filter-destinations/index.d.ts +3 -0
  272. package/lib/functions/filter-sources/index.d.ts +3 -0
  273. package/lib/functions/flatten-object-keys/index.d.ts +32 -0
  274. package/lib/functions/format-bytes/index.d.ts +1 -0
  275. package/lib/functions/get-action-icon/index.d.ts +2 -0
  276. package/lib/functions/get-conditions-booleans/index.d.ts +8 -0
  277. package/lib/functions/get-containers-counts/index.d.ts +2 -0
  278. package/lib/functions/get-containers-icons/index.d.ts +2 -0
  279. package/lib/functions/get-destination-icon/index.d.ts +1 -0
  280. package/lib/functions/get-entity-icon/index.d.ts +2 -0
  281. package/lib/functions/get-entity-id/index.d.ts +2 -0
  282. package/lib/functions/get-entity-label/index.d.ts +5 -0
  283. package/lib/functions/get-id-from-sse-target/index.d.ts +2 -0
  284. package/lib/functions/get-instrumentation-rule-icon/index.d.ts +2 -0
  285. package/lib/functions/get-metric-for-entity/index.d.ts +2 -0
  286. package/lib/functions/get-monitor-icon/index.d.ts +2 -0
  287. package/lib/functions/get-platform-icon/index.d.ts +2 -0
  288. package/lib/functions/get-platform-label/index.d.ts +2 -0
  289. package/lib/functions/get-programming-language-icon/index.d.ts +2 -0
  290. package/lib/functions/get-sse-target-from-id/index.d.ts +2 -0
  291. package/lib/functions/get-status-icon/index.d.ts +2 -0
  292. package/lib/functions/get-value-for-range/index.d.ts +1 -0
  293. package/lib/functions/get-workload-id/index.d.ts +2 -0
  294. package/lib/functions/index.d.ts +40 -0
  295. package/lib/functions/is-emtpy/index.d.ts +1 -0
  296. package/lib/functions/is-over-time/index.d.ts +1 -0
  297. package/lib/functions/is-time-elapsed/index.d.ts +1 -0
  298. package/lib/functions/map-conditions/index.d.ts +2 -0
  299. package/lib/functions/parse-json-string-to-pretty-string/index.d.ts +1 -0
  300. package/lib/functions/remove-empty-values-from-object/index.d.ts +1 -0
  301. package/lib/functions/safe-json-parse/index.d.ts +1 -0
  302. package/lib/functions/safe-json-stringify/index.d.ts +1 -0
  303. package/lib/functions/sleep/index.d.ts +1 -0
  304. package/lib/functions/split-camel-string/index.d.ts +1 -0
  305. package/lib/functions/stringify-non-string-values/index.d.ts +1 -0
  306. package/lib/hooks/index.d.ts +14 -0
  307. package/lib/hooks/useActionFormData.d.ts +12 -0
  308. package/lib/hooks/useClickNode.d.ts +6 -0
  309. package/lib/hooks/useClickNotification.d.ts +7 -0
  310. package/lib/hooks/useContainerSize.d.ts +6 -0
  311. package/lib/hooks/useCopy.d.ts +6 -0
  312. package/lib/hooks/useDestinationFormData.d.ts +21 -0
  313. package/lib/hooks/useGenericForm.d.ts +7 -0
  314. package/lib/hooks/useInstrumentationRuleFormData.d.ts +12 -0
  315. package/lib/hooks/useKeyDown.d.ts +11 -0
  316. package/lib/hooks/useOnClickOutside.d.ts +3 -0
  317. package/lib/hooks/useSourceFormData.d.ts +12 -0
  318. package/lib/hooks/useSourceSelectionFormData.d.ts +34 -0
  319. package/lib/hooks/useTimeAgo.d.ts +3 -0
  320. package/lib/hooks/useTransition.d.ts +14 -0
  321. package/lib/icons/actions/add-cluster-info-icon/add-cluster-info-icon.stories.d.ts +8 -0
  322. package/lib/icons/actions/add-cluster-info-icon/index.d.ts +2 -0
  323. package/lib/icons/actions/delete-attribute-icon/delete-attribute-icon.stories.d.ts +8 -0
  324. package/lib/icons/actions/delete-attribute-icon/index.d.ts +2 -0
  325. package/lib/icons/actions/index.d.ts +5 -0
  326. package/lib/icons/actions/pii-masking-icon/index.d.ts +2 -0
  327. package/lib/icons/actions/pii-masking-icon/pii-masking-icon.stories.d.ts +8 -0
  328. package/lib/icons/actions/rename-attribute-icon/index.d.ts +2 -0
  329. package/lib/icons/actions/rename-attribute-icon/rename-attribute-icon.stories.d.ts +8 -0
  330. package/lib/icons/actions/sampler-icon/index.d.ts +2 -0
  331. package/lib/icons/actions/sampler-icon/sampler-icon.stories.d.ts +8 -0
  332. package/lib/icons/brand/index.d.ts +2 -0
  333. package/lib/icons/brand/odigos-logo/index.d.ts +2 -0
  334. package/lib/icons/brand/odigos-logo/odigos-logo.stories.d.ts +8 -0
  335. package/lib/icons/brand/odigos-logo-text/index.d.ts +2 -0
  336. package/lib/icons/brand/odigos-logo-text/odigos-logo-text.stories.d.ts +8 -0
  337. package/lib/icons/common/arrow-icon/arrow-icon.stories.d.ts +8 -0
  338. package/lib/icons/common/arrow-icon/index.d.ts +2 -0
  339. package/lib/icons/common/code-brackets-icon/code-brackets-icon.stories.d.ts +8 -0
  340. package/lib/icons/common/code-brackets-icon/index.d.ts +2 -0
  341. package/lib/icons/common/code-icon/code-icon.stories.d.ts +8 -0
  342. package/lib/icons/common/code-icon/index.d.ts +2 -0
  343. package/lib/icons/common/command-icon/command-icon.stories.d.ts +8 -0
  344. package/lib/icons/common/command-icon/index.d.ts +2 -0
  345. package/lib/icons/common/copy-icon/copy-icon.stories.d.ts +8 -0
  346. package/lib/icons/common/copy-icon/index.d.ts +2 -0
  347. package/lib/icons/common/edit-icon/edit-icon.stories.d.ts +8 -0
  348. package/lib/icons/common/edit-icon/index.d.ts +2 -0
  349. package/lib/icons/common/extend-arrow-icon/extend-arrow-icon.stories.d.ts +8 -0
  350. package/lib/icons/common/extend-arrow-icon/index.d.ts +2 -0
  351. package/lib/icons/common/filter-icon/filter-icon.stories.d.ts +8 -0
  352. package/lib/icons/common/filter-icon/index.d.ts +2 -0
  353. package/lib/icons/common/folder-icon/folder-icon.stories.d.ts +8 -0
  354. package/lib/icons/common/folder-icon/index.d.ts +2 -0
  355. package/lib/icons/common/index.d.ts +19 -0
  356. package/lib/icons/common/key-icon/index.d.ts +2 -0
  357. package/lib/icons/common/key-icon/key-icon.stories.d.ts +8 -0
  358. package/lib/icons/common/list-icon/index.d.ts +2 -0
  359. package/lib/icons/common/list-icon/list-icon.stories.d.ts +8 -0
  360. package/lib/icons/common/no-data-icon/index.d.ts +2 -0
  361. package/lib/icons/common/no-data-icon/no-data-icon.stories.d.ts +8 -0
  362. package/lib/icons/common/notebook-icon/index.d.ts +2 -0
  363. package/lib/icons/common/notebook-icon/notebook-icon.stories.d.ts +8 -0
  364. package/lib/icons/common/notification-icon/index.d.ts +2 -0
  365. package/lib/icons/common/notification-icon/notification-icon.stories.d.ts +8 -0
  366. package/lib/icons/common/search-icon/index.d.ts +2 -0
  367. package/lib/icons/common/search-icon/search-icon.stories.d.ts +8 -0
  368. package/lib/icons/common/sort-arrows-icon/index.d.ts +2 -0
  369. package/lib/icons/common/sort-arrows-icon/sort-arrows-icon.stories.d.ts +8 -0
  370. package/lib/icons/common/terminal-icon/index.d.ts +2 -0
  371. package/lib/icons/common/terminal-icon/terminal-icon.stories.d.ts +8 -0
  372. package/lib/icons/common/trash-icon/index.d.ts +2 -0
  373. package/lib/icons/common/trash-icon/trash-icon.stories.d.ts +8 -0
  374. package/lib/icons/common/x-icon/index.d.ts +2 -0
  375. package/lib/icons/common/x-icon/x-icon.stories.d.ts +8 -0
  376. package/lib/icons/compute-platform/index.d.ts +2 -0
  377. package/lib/icons/compute-platform/k8s-logo/index.d.ts +2 -0
  378. package/lib/icons/compute-platform/k8s-logo/k8s-logo.stories.d.ts +8 -0
  379. package/lib/icons/compute-platform/vm-logo/index.d.ts +2 -0
  380. package/lib/icons/compute-platform/vm-logo/vm-logo.stories.d.ts +8 -0
  381. package/lib/icons/index.d.ts +11 -0
  382. package/lib/icons/instrumentation-rules/code-attributes-icon/code-attributes-icon.stories.d.ts +8 -0
  383. package/lib/icons/instrumentation-rules/code-attributes-icon/index.d.ts +2 -0
  384. package/lib/icons/instrumentation-rules/index.d.ts +2 -0
  385. package/lib/icons/instrumentation-rules/payload-collection-icon/index.d.ts +2 -0
  386. package/lib/icons/instrumentation-rules/payload-collection-icon/payload-collection-icon.stories.d.ts +8 -0
  387. package/lib/icons/math/index.d.ts +2 -0
  388. package/lib/icons/math/minus-icon/index.d.ts +2 -0
  389. package/lib/icons/math/minus-icon/minus-icon.stories.d.ts +8 -0
  390. package/lib/icons/math/plus-icon/index.d.ts +2 -0
  391. package/lib/icons/math/plus-icon/plus-icon.stories.d.ts +8 -0
  392. package/lib/icons/monitors/index.d.ts +3 -0
  393. package/lib/icons/monitors/logs-icon/index.d.ts +2 -0
  394. package/lib/icons/monitors/logs-icon/logs-icon.stories.d.ts +8 -0
  395. package/lib/icons/monitors/metrics-icon/index.d.ts +2 -0
  396. package/lib/icons/monitors/metrics-icon/metrics-icon.stories.d.ts +8 -0
  397. package/lib/icons/monitors/traces-icon/index.d.ts +2 -0
  398. package/lib/icons/monitors/traces-icon/traces-icon.stories.d.ts +8 -0
  399. package/lib/icons/on-off/eye-closed-icon/eye-closed-icon.stories.d.ts +8 -0
  400. package/lib/icons/on-off/eye-closed-icon/index.d.ts +2 -0
  401. package/lib/icons/on-off/eye-open-icon/eye-open-icon.stories.d.ts +8 -0
  402. package/lib/icons/on-off/eye-open-icon/index.d.ts +2 -0
  403. package/lib/icons/on-off/index.d.ts +6 -0
  404. package/lib/icons/on-off/light-off-icon/index.d.ts +2 -0
  405. package/lib/icons/on-off/light-off-icon/light-off-icon.stories.d.ts +8 -0
  406. package/lib/icons/on-off/light-on-icon/index.d.ts +2 -0
  407. package/lib/icons/on-off/light-on-icon/light-on-icon.stories.d.ts +8 -0
  408. package/lib/icons/on-off/moon-icon/index.d.ts +2 -0
  409. package/lib/icons/on-off/moon-icon/moon-icon.stories.d.ts +8 -0
  410. package/lib/icons/on-off/sun-icon/index.d.ts +2 -0
  411. package/lib/icons/on-off/sun-icon/sun-icon.stories.d.ts +8 -0
  412. package/lib/icons/overview/actions-icon/actions-icon.stories.d.ts +8 -0
  413. package/lib/icons/overview/actions-icon/index.d.ts +2 -0
  414. package/lib/icons/overview/destinations-icon/destinations-icon.stories.d.ts +8 -0
  415. package/lib/icons/overview/destinations-icon/index.d.ts +2 -0
  416. package/lib/icons/overview/index.d.ts +7 -0
  417. package/lib/icons/overview/overview-icon/index.d.ts +2 -0
  418. package/lib/icons/overview/overview-icon/overview-icon.stories.d.ts +8 -0
  419. package/lib/icons/overview/rules-icon/index.d.ts +2 -0
  420. package/lib/icons/overview/rules-icon/rules-icon.stories.d.ts +8 -0
  421. package/lib/icons/overview/service-map-icon/index.d.ts +2 -0
  422. package/lib/icons/overview/service-map-icon/service-map-icon.stories.d.ts +8 -0
  423. package/lib/icons/overview/sources-icon/index.d.ts +2 -0
  424. package/lib/icons/overview/sources-icon/sources-icon.stories.d.ts +8 -0
  425. package/lib/icons/overview/trace-view-icon/index.d.ts +2 -0
  426. package/lib/icons/overview/trace-view-icon/trace-view-icon.stories.d.ts +8 -0
  427. package/lib/icons/social/index.d.ts +1 -0
  428. package/lib/icons/social/slack-logo/index.d.ts +2 -0
  429. package/lib/icons/social/slack-logo/slack-logo.stories.d.ts +8 -0
  430. package/lib/icons/status/check-circled-icon/check-circled-icon.stories.d.ts +8 -0
  431. package/lib/icons/status/check-circled-icon/index.d.ts +2 -0
  432. package/lib/icons/status/check-icon/check-icon.stories.d.ts +8 -0
  433. package/lib/icons/status/check-icon/index.d.ts +2 -0
  434. package/lib/icons/status/cross-circled-icon/cross-circled-icon.stories.d.ts +8 -0
  435. package/lib/icons/status/cross-circled-icon/index.d.ts +2 -0
  436. package/lib/icons/status/cross-icon/cross-icon.stories.d.ts +8 -0
  437. package/lib/icons/status/cross-icon/index.d.ts +2 -0
  438. package/lib/icons/status/error-round-icon/error-round-icon.stories.d.ts +8 -0
  439. package/lib/icons/status/error-round-icon/index.d.ts +2 -0
  440. package/lib/icons/status/error-triangle-icon/error-triangle-icon.stories.d.ts +8 -0
  441. package/lib/icons/status/error-triangle-icon/index.d.ts +2 -0
  442. package/lib/icons/status/index.d.ts +8 -0
  443. package/lib/icons/status/info-icon/index.d.ts +2 -0
  444. package/lib/icons/status/info-icon/info-icon.stories.d.ts +8 -0
  445. package/lib/icons/status/warning-triangle-icon/index.d.ts +2 -0
  446. package/lib/icons/status/warning-triangle-icon/warning-triangle-icon.stories.d.ts +8 -0
  447. package/lib/index.d.ts +9 -0
  448. package/lib/index.esm.js +53989 -0
  449. package/lib/index.esm.js.map +1 -0
  450. package/lib/index.js +54212 -0
  451. package/lib/index.js.map +1 -0
  452. package/lib/store/index.d.ts +10 -0
  453. package/lib/store/useDarkMode.d.ts +17 -0
  454. package/lib/store/useDrawerStore.d.ts +11 -0
  455. package/lib/store/useEntityStore.d.ts +21 -0
  456. package/lib/store/useFilterStore.d.ts +37 -0
  457. package/lib/store/useInstrumentStore.d.ts +13 -0
  458. package/lib/store/useModalStore.d.ts +6 -0
  459. package/lib/store/useNotificationStore.d.ts +12 -0
  460. package/lib/store/usePendingStore.d.ts +14 -0
  461. package/lib/store/useSelectedStore.d.ts +12 -0
  462. package/lib/store/useSetupStore.d.ts +46 -0
  463. package/lib/theme/animations/index.d.ts +22 -0
  464. package/lib/theme/index.d.ts +13 -0
  465. package/lib/theme/opacity/index.d.ts +103 -0
  466. package/lib/theme/palletes/index.d.ts +105 -0
  467. package/lib/theme/provider/index.d.ts +3 -0
  468. package/lib/types/actions/index.d.ts +80 -0
  469. package/lib/types/common/index.d.ts +126 -0
  470. package/lib/types/compute-platform/index.d.ts +7 -0
  471. package/lib/types/data-flow/index.d.ts +18 -0
  472. package/lib/types/describe/index.d.ts +98 -0
  473. package/lib/types/destinations/index.d.ts +80 -0
  474. package/lib/types/index.d.ts +12 -0
  475. package/lib/types/instrumentation-rules/index.d.ts +74 -0
  476. package/lib/types/metrics/index.d.ts +10 -0
  477. package/lib/types/namespaces/index.d.ts +6 -0
  478. package/lib/types/signals/index.d.ts +9 -0
  479. package/lib/types/sources/index.d.ts +33 -0
  480. package/lib/types/tokens/index.d.ts +6 -0
  481. package/package.json +127 -0
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ import { type ToastListProps } from '.';
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.FC<ToastListProps>;
7
+ };
8
+ export default _default;
9
+ export declare const Default: StoryObj<ToastListProps>;
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ interface ToggleDarkModeProps {
3
+ }
4
+ declare const ToggleDarkMode: FC<ToggleDarkModeProps>;
5
+ export { ToggleDarkMode, type ToggleDarkModeProps };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { StoryFn } from '@storybook/react';
3
+ import { type ToggleDarkModeProps } from '.';
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.FC<ToggleDarkModeProps>;
7
+ };
8
+ export default _default;
9
+ export declare const Default: StoryFn<ToggleDarkModeProps>;
@@ -0,0 +1,2 @@
1
+ import { type Action } from '@/types';
2
+ export declare const MOCK_ACTIONS: Action[];
@@ -0,0 +1,3 @@
1
+ import type { DescribeOdigos, DescribeSource } from '@/types';
2
+ export declare const MOCK_DESCRIBE_ODIGOS: DescribeOdigos;
3
+ export declare const MOCK_DESCRIBE_SOURCE: DescribeSource;
@@ -0,0 +1,4 @@
1
+ import { type Destination, DestinationOption, DestinationCategories } from '@/types';
2
+ export declare const MOCK_DESTINATIONS: Destination[];
3
+ export declare const MOCK_POTENTIAL_DESTINATIONS: DestinationOption[];
4
+ export declare const MOCK_DESTINATION_CATEGORIES: DestinationCategories;
@@ -0,0 +1,7 @@
1
+ export * from './actions';
2
+ export * from './describe';
3
+ export * from './destinations';
4
+ export * from './instrumentation-rules';
5
+ export * from './namespaces';
6
+ export * from './sources';
7
+ export * from './tokens';
@@ -0,0 +1,2 @@
1
+ import { type InstrumentationRule } from '@/types';
2
+ export declare const MOCK_INSTRUMENTATION_RULES: InstrumentationRule[];
@@ -0,0 +1,2 @@
1
+ import { type Namespace } from '@/types';
2
+ export declare const MOCK_NAMESPACES: Namespace[];
@@ -0,0 +1,18 @@
1
+ import { K8S_RESOURCE_KIND, PROGRAMMING_LANGUAGES, type Source } from '@/types';
2
+ export declare const MOCK_SOURCES: Source[];
3
+ export declare const MOCK_SOURCE_JAEGER: {
4
+ namespace: string;
5
+ name: string;
6
+ kind: K8S_RESOURCE_KIND;
7
+ selected: boolean;
8
+ otelServiceName: string;
9
+ containers: {
10
+ containerName: string;
11
+ language: PROGRAMMING_LANGUAGES;
12
+ runtimeVersion: string;
13
+ instrumented: boolean;
14
+ instrumentationMessage: string;
15
+ otelDistroName: string;
16
+ }[];
17
+ conditions: never[];
18
+ };
@@ -0,0 +1,2 @@
1
+ import { TokenPayload } from '@/types';
2
+ export declare const MOCK_TOKENS: TokenPayload[];
@@ -0,0 +1 @@
1
+ export declare const capitalizeFirstLetter: (string: string) => string;
@@ -0,0 +1 @@
1
+ export declare const cleanObjectEmptyStringsValues: (obj: Record<string, any>) => Record<string, any>;
@@ -0,0 +1,5 @@
1
+ export type Comparison = '===' | '==' | '!==' | '!=' | '>' | '<' | '>=' | '<=';
2
+ export declare const compareCondition: (renderCondition: [string, Comparison, string] | ["true" | "false"], fields: {
3
+ name: string;
4
+ value: any;
5
+ }[]) => boolean;
@@ -0,0 +1 @@
1
+ export declare const deepClone: <T = any>(item: T) => T;
@@ -0,0 +1,2 @@
1
+ import { INSTRUMENTATION_RULE_TYPE } from '@/types';
2
+ export declare const deriveTypeFromRule: (rule: Record<string, any>) => INSTRUMENTATION_RULE_TYPE;
@@ -0,0 +1,3 @@
1
+ import type { Action } from '@/types';
2
+ import type { FiltersState } from '@/store';
3
+ export declare const filterActions: (actions: Action[], filters: FiltersState) => Action[];
@@ -0,0 +1,3 @@
1
+ import type { FiltersState } from '@/store';
2
+ import type { Destination } from '@/types';
3
+ export declare const filterDestinations: (destinations: Destination[], filters: FiltersState) => Destination[];
@@ -0,0 +1,3 @@
1
+ import type { FiltersState } from '@/store';
2
+ import { type Source } from '@/types';
3
+ export declare const filterSources: (sources: Source[], filters: FiltersState) => Source[];
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Recursively flattens a nested object into a single-level object where each key
3
+ * represents the path to its corresponding value in the original object. Keys for nested
4
+ * properties are concatenated using a dot (`.`) as a separator, while array elements
5
+ * include their index in square brackets (`[]`).
6
+ *
7
+ * @param {Record<string, any>} obj - The input object to be flattened.
8
+ * @param {string} [prefix=''] - The current prefix for the keys, used for recursion.
9
+ * @param {Record<string, any>} [result={}] - The accumulator object that stores the flattened result.
10
+ * @returns {Record<string, any>} A new object where all nested properties are flattened into
11
+ * a single level with their paths as keys.
12
+ *
13
+ * @example
14
+ * const input = {
15
+ * name: {
16
+ * name: 'Name',
17
+ * value: 'load-generator',
18
+ * status: null,
19
+ * explain: '...',
20
+ * },
21
+ * };
22
+ *
23
+ * const output = flattenObjectKeys(input);
24
+ * Output:
25
+ * {
26
+ * 'name.name': 'Name',
27
+ * 'name.value': 'load-generator',
28
+ * 'name.status': null,
29
+ * 'name.explain': '...',
30
+ * }
31
+ */
32
+ export declare const flattenObjectKeys: (obj: Record<string, any>, prefix?: string, result?: Record<string, any>) => Record<string, any>;
@@ -0,0 +1 @@
1
+ export declare const formatBytes: (bytes?: number) => string;
@@ -0,0 +1,2 @@
1
+ import { ACTION_TYPE, type SVG } from '@/types';
2
+ export declare const getActionIcon: (type: ACTION_TYPE | "sampler" | "attributes") => SVG;
@@ -0,0 +1,8 @@
1
+ import { NOTIFICATION_TYPE, type Condition } from '@/types';
2
+ export declare const getConditionsBooleans: (conditions: Condition[]) => {
3
+ hasErrors: boolean;
4
+ hasWarnings: boolean;
5
+ hasDisableds: boolean;
6
+ hasLoadings: boolean;
7
+ priorotizedStatus: NOTIFICATION_TYPE | undefined;
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { Source } from '@/types';
2
+ export declare const getContainersInstrumentedCount: (containers: Source["containers"]) => string;
@@ -0,0 +1,2 @@
1
+ import type { Source } from '@/types';
2
+ export declare const getContainersIcons: (containers: Source["containers"]) => string[];
@@ -0,0 +1 @@
1
+ export declare const getDestinationIcon: (destinationType: string) => string;
@@ -0,0 +1,2 @@
1
+ import { ENTITY_TYPES, type SVG } from '@/types';
2
+ export declare const getEntityIcon: (type: ENTITY_TYPES) => SVG;
@@ -0,0 +1,2 @@
1
+ import type { WorkloadId } from '@/types';
2
+ export declare const getEntityId: (item: Record<string, any>) => string | WorkloadId | undefined;
@@ -0,0 +1,5 @@
1
+ import { ENTITY_TYPES } from '@/types';
2
+ export declare const getEntityLabel: (entity: Record<string, any>, entityType: ENTITY_TYPES, options?: {
3
+ extended?: boolean;
4
+ prioritizeDisplayName?: boolean;
5
+ }) => string;
@@ -0,0 +1,2 @@
1
+ import { ENTITY_TYPES, type WorkloadId } from '@/types';
2
+ export declare const getIdFromSseTarget: (target: string, type: ENTITY_TYPES) => string | WorkloadId;
@@ -0,0 +1,2 @@
1
+ import { INSTRUMENTATION_RULE_TYPE, type SVG } from '@/types';
2
+ export declare const getInstrumentationRuleIcon: (type: INSTRUMENTATION_RULE_TYPE) => SVG;
@@ -0,0 +1,2 @@
1
+ import { ENTITY_TYPES, type Metric, type Metrics, type WorkloadId } from '@/types';
2
+ export declare const getMetricForEntity: (metrics: Metrics, entityType: ENTITY_TYPES.SOURCE | ENTITY_TYPES.DESTINATION, entityId: string | WorkloadId) => Metric;
@@ -0,0 +1,2 @@
1
+ import { SIGNAL_TYPE, type SVG } from '@/types';
2
+ export declare const getMonitorIcon: (type: SIGNAL_TYPE) => SVG;
@@ -0,0 +1,2 @@
1
+ import { PLATFORM_TYPE, type SVG } from '@/types';
2
+ export declare const getPlatformIcon: (type: PLATFORM_TYPE) => SVG;
@@ -0,0 +1,2 @@
1
+ import { PLATFORM_TYPE } from '@/types';
2
+ export declare const getPlatformLabel: (type: PLATFORM_TYPE) => string;
@@ -0,0 +1,2 @@
1
+ import { PROGRAMMING_LANGUAGES } from '@/types';
2
+ export declare const getProgrammingLanguageIcon: (language: PROGRAMMING_LANGUAGES) => string;
@@ -0,0 +1,2 @@
1
+ import { ENTITY_TYPES, type WorkloadId } from '@/types';
2
+ export declare const getSseTargetFromId: (id: string | WorkloadId, type: ENTITY_TYPES) => string;
@@ -0,0 +1,2 @@
1
+ import { NOTIFICATION_TYPE, type SVG } from '@/types';
2
+ export declare const getStatusIcon: (type: NOTIFICATION_TYPE, theme: Record<"text", Record<NOTIFICATION_TYPE, string>>) => SVG;
@@ -0,0 +1 @@
1
+ export declare const getValueForRange: (current: number, matrix: [number, number | null, any][]) => any;
@@ -0,0 +1,2 @@
1
+ import type { Source, WorkloadId } from '@/types';
2
+ export declare const getWorkloadId: ({ namespace, name, kind }: Source) => WorkloadId;
@@ -0,0 +1,40 @@
1
+ export * from './capitalize-first-letter';
2
+ export * from './clean-object-empty-strings-values';
3
+ export * from './compare-condition';
4
+ export * from './deep-clone';
5
+ export * from './derive-type-from-rule';
6
+ export * from './filter-actions';
7
+ export * from './filter-destinations';
8
+ export * from './filter-sources';
9
+ export * from './flatten-object-keys';
10
+ export * from './format-bytes';
11
+ export * from './get-action-icon';
12
+ export * from './get-conditions-booleans';
13
+ export * from './get-containers-counts';
14
+ export * from './get-containers-icons';
15
+ export * from './get-destination-icon';
16
+ export * from './get-entity-icon';
17
+ export * from './get-entity-id';
18
+ export * from './get-entity-label';
19
+ export * from './get-id-from-sse-target';
20
+ export * from './get-instrumentation-rule-icon';
21
+ export * from './get-metric-for-entity';
22
+ export * from './get-monitor-icon';
23
+ export * from './get-platform-icon';
24
+ export * from './get-platform-label';
25
+ export * from './get-programming-language-icon';
26
+ export * from './get-sse-target-from-id';
27
+ export * from './get-status-icon';
28
+ export * from './get-value-for-range';
29
+ export * from './get-workload-id';
30
+ export * from './is-emtpy';
31
+ export * from './is-over-time';
32
+ export * from './is-time-elapsed';
33
+ export * from './map-conditions';
34
+ export * from './parse-json-string-to-pretty-string';
35
+ export * from './remove-empty-values-from-object';
36
+ export * from './safe-json-parse';
37
+ export * from './safe-json-stringify';
38
+ export * from './sleep';
39
+ export * from './split-camel-string';
40
+ export * from './stringify-non-string-values';
@@ -0,0 +1 @@
1
+ export declare const isEmpty: (val: any) => boolean;
@@ -0,0 +1 @@
1
+ export declare const isOverTime: (originDate: Date | string | number, difference?: number) => boolean;
@@ -0,0 +1 @@
1
+ export declare const isTimeElapsed: (originDate: Date | string | number, difference?: number) => boolean;
@@ -0,0 +1,2 @@
1
+ import type { Condition } from '@/types';
2
+ export declare const mapConditions: (conditions: Condition[]) => Condition[];
@@ -0,0 +1 @@
1
+ export declare const parseJsonStringToPrettyString: (value: string) => string;
@@ -0,0 +1 @@
1
+ export declare const removeEmptyValuesFromObject: (obj: Record<string, any>) => Record<string, any>;
@@ -0,0 +1 @@
1
+ export declare function safeJsonParse<T>(val: string | Record<any, any> | undefined, fallback: T): T;
@@ -0,0 +1 @@
1
+ export declare const safeJsonStringify: (obj?: Record<any, any>, indent?: number) => string;
@@ -0,0 +1 @@
1
+ export declare const sleep: (ms?: number) => Promise<unknown>;
@@ -0,0 +1 @@
1
+ export declare const splitCamelString: (str: string) => string;
@@ -0,0 +1 @@
1
+ export declare const stringifyNonStringValues: (obj: Record<string, any>) => Record<string, string>;
@@ -0,0 +1,14 @@
1
+ export * from './useActionFormData';
2
+ export * from './useClickNode';
3
+ export * from './useClickNotification';
4
+ export * from './useContainerSize';
5
+ export * from './useCopy';
6
+ export * from './useDestinationFormData';
7
+ export * from './useGenericForm';
8
+ export * from './useInstrumentationRuleFormData';
9
+ export * from './useKeyDown';
10
+ export * from './useOnClickOutside';
11
+ export * from './useSourceFormData';
12
+ export * from './useSourceSelectionFormData';
13
+ export * from './useTimeAgo';
14
+ export * from './useTransition';
@@ -0,0 +1,12 @@
1
+ import { type Action, type ActionFormData } from '@/types';
2
+ export declare const useActionFormData: () => {
3
+ formData: ActionFormData;
4
+ formErrors: Partial<Record<keyof ActionFormData, string>>;
5
+ handleFormChange: (key?: string | undefined, val?: any, obj?: ActionFormData | undefined) => void;
6
+ resetFormData: () => void;
7
+ validateForm: (params?: {
8
+ withAlert?: boolean;
9
+ alertTitle?: string;
10
+ }) => boolean;
11
+ loadFormWithDrawerItem: ({ type, spec }: Action) => void;
12
+ };
@@ -0,0 +1,6 @@
1
+ import type { MouseEvent } from 'react';
2
+ import type { Node } from '@xyflow/react';
3
+ declare const useClickNode: () => {
4
+ onClickNode: (event: MouseEvent, object: Node) => void;
5
+ };
6
+ export { useClickNode };
@@ -0,0 +1,7 @@
1
+ import { type Notification } from '@/types';
2
+ declare const useClickNotification: () => {
3
+ onClickNotification: (notif: Pick<Notification, "id" | "crdType" | "target">, options?: {
4
+ dismissToast?: boolean;
5
+ }) => void;
6
+ };
7
+ export { useClickNotification };
@@ -0,0 +1,6 @@
1
+ declare const useContainerSize: () => {
2
+ containerRef: import("react").RefObject<HTMLDivElement | null>;
3
+ containerWidth: number;
4
+ containerHeight: number;
5
+ };
6
+ export { useContainerSize };
@@ -0,0 +1,6 @@
1
+ declare const useCopy: () => {
2
+ isCopied: boolean;
3
+ copiedIndex: number;
4
+ clickCopy: (str: string, idx?: number) => void;
5
+ };
6
+ export { useCopy };
@@ -0,0 +1,21 @@
1
+ import { type Destination, type DestinationCategories, type DestinationDynamicField, type DestinationFormData, type DestinationYamlProperties } from '@/types';
2
+ interface Params {
3
+ supportedSignals?: Destination['destinationType']['supportedSignals'];
4
+ preLoadedFields?: string | DestinationCategories[0]['items'][0]['fields'];
5
+ }
6
+ export declare const useDestinationFormData: (params?: Params) => {
7
+ formData: DestinationFormData;
8
+ formErrors: Partial<Record<keyof DestinationFormData, string>>;
9
+ handleFormChange: (key?: string | undefined, val?: any, obj?: DestinationFormData | undefined) => void;
10
+ resetFormData: () => void;
11
+ validateForm: (params?: {
12
+ withAlert?: boolean;
13
+ alertTitle?: string;
14
+ }) => boolean;
15
+ loadFormWithDrawerItem: ({ destinationType: { type }, name, exportedSignals, fields }: Destination) => void;
16
+ yamlFields: DestinationYamlProperties[];
17
+ setYamlFields: import("react").Dispatch<import("react").SetStateAction<DestinationYamlProperties[]>>;
18
+ dynamicFields: DestinationDynamicField[];
19
+ setDynamicFields: import("react").Dispatch<import("react").SetStateAction<DestinationDynamicField[]>>;
20
+ };
21
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const useGenericForm: <Form extends Record<string, any>>(initialFormData: Form) => {
2
+ formData: Form;
3
+ formErrors: Partial<Record<keyof Form, string>>;
4
+ handleFormChange: (key?: keyof Form | string, val?: any, obj?: Form) => void;
5
+ handleErrorChange: (key?: keyof Form | string, val?: string, obj?: Partial<Record<keyof Form, string>>) => void;
6
+ resetFormData: () => void;
7
+ };
@@ -0,0 +1,12 @@
1
+ import { type InstrumentationRule, type InstrumentationRuleFormData } from '@/types';
2
+ export declare const useInstrumentationRuleFormData: () => {
3
+ formData: InstrumentationRuleFormData;
4
+ formErrors: Partial<Record<"ruleName" | "notes" | "disabled" | "workloads" | "instrumentationLibraries" | "payloadCollection" | "codeAttributes", string>>;
5
+ handleFormChange: (key?: string | undefined, val?: any, obj?: InstrumentationRuleFormData | undefined) => void;
6
+ resetFormData: () => void;
7
+ validateForm: (params?: {
8
+ withAlert?: boolean;
9
+ alertTitle?: string;
10
+ }) => boolean;
11
+ loadFormWithDrawerItem: ({ ruleName, notes, disabled, payloadCollection, codeAttributes }: InstrumentationRule) => void;
12
+ };
@@ -0,0 +1,11 @@
1
+ type Key = 'Backspace' | 'Tab' | 'Enter' | 'Shift' | 'Control' | 'Alt' | 'Pause' | 'CapsLock' | 'Escape' | 'Space' | 'PageUp' | 'PageDown' | 'End' | 'Home' | 'ArrowLeft' | 'ArrowUp' | 'ArrowRight' | 'ArrowDown' | 'PrintScreen' | 'Insert' | 'Delete' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | 'Meta' | 'ContextMenu' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'NumLock' | 'ScrollLock' | 'AudioVolumeMute' | 'AudioVolumeDown' | 'AudioVolumeUp' | 'MediaTrackNext' | 'MediaTrackPrevious' | 'MediaStop' | 'MediaPlayPause' | 'LaunchMail' | 'LaunchApp1' | 'LaunchApp2' | 'Unidentified';
2
+ interface KeyDownOptions {
3
+ active: boolean;
4
+ key: Key;
5
+ withAltKey?: boolean;
6
+ withCtrlKey?: boolean;
7
+ withShiftKey?: boolean;
8
+ withMetaKey?: boolean;
9
+ }
10
+ declare const useKeyDown: ({ active, key, withAltKey, withCtrlKey, withShiftKey, withMetaKey }: KeyDownOptions, callback: (e: KeyboardEvent) => void) => null;
11
+ export { useKeyDown };
@@ -0,0 +1,3 @@
1
+ import { type RefObject } from 'react';
2
+ declare const useOnClickOutside: (ref: RefObject<HTMLElement | null>, handler: () => void) => void;
3
+ export { useOnClickOutside };
@@ -0,0 +1,12 @@
1
+ import { type Source, type SourceFormData } from '@/types';
2
+ export declare const useSourceFormData: () => {
3
+ formData: SourceFormData;
4
+ formErrors: Partial<Record<"otelServiceName", string>>;
5
+ handleFormChange: (key?: string | undefined, val?: any, obj?: SourceFormData | undefined) => void;
6
+ resetFormData: () => void;
7
+ validateForm: (params?: {
8
+ withAlert?: boolean;
9
+ alertTitle?: string;
10
+ }) => boolean;
11
+ loadFormWithDrawerItem: ({ otelServiceName, name }: Source) => void;
12
+ };
@@ -0,0 +1,34 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import type { Namespace } from '@/types';
3
+ import { type AvailableSourcesByNamespace, type NamespaceSelectionFormData, type SourceSelectionFormData } from '@/store';
4
+ type SelectedNamespace = string;
5
+ type SelectedSource = AvailableSourcesByNamespace[0][0];
6
+ interface UseSourceFormDataParams {
7
+ namespaces: Namespace[];
8
+ namespace?: Namespace;
9
+ selectedNamespace: SelectedNamespace;
10
+ onSelectNamespace: (ns: SelectedNamespace) => void;
11
+ }
12
+ export interface UseSourceSelectionFormData {
13
+ recordedInitialSources: AvailableSourcesByNamespace;
14
+ filterNamespaces: (options?: {
15
+ cancelSearch?: boolean;
16
+ }) => [SelectedNamespace, SelectedSource[]][];
17
+ filterSources: (namespace?: SelectedNamespace, options?: {
18
+ cancelSearch?: boolean;
19
+ cancelSelected?: boolean;
20
+ }) => SelectedSource[];
21
+ getApiSourcesPayload: () => SourceSelectionFormData;
22
+ getApiFutureAppsPayload: () => NamespaceSelectionFormData;
23
+ selectedSources: AvailableSourcesByNamespace;
24
+ onSelectSource: (source: SelectedSource, namespace?: SelectedNamespace) => void;
25
+ selectedFutureApps: NamespaceSelectionFormData;
26
+ onSelectFutureApps: (bool: boolean, namespace?: SelectedNamespace) => void;
27
+ onSelectAll: (bool: boolean, namespace?: SelectedNamespace, selectionsByNamespace?: AvailableSourcesByNamespace) => void;
28
+ searchText: string;
29
+ setSearchText: Dispatch<SetStateAction<string>>;
30
+ showSelectedOnly: boolean;
31
+ setShowSelectedOnly: Dispatch<SetStateAction<boolean>>;
32
+ }
33
+ export declare const useSourceSelectionFormData: (params?: UseSourceFormDataParams) => UseSourceSelectionFormData;
34
+ export {};
@@ -0,0 +1,3 @@
1
+ import TimeAgo from 'javascript-time-ago';
2
+ declare const useTimeAgo: () => TimeAgo;
3
+ export { useTimeAgo };
@@ -0,0 +1,14 @@
1
+ import React, { type DetailedHTMLProps, type HTMLAttributes, type PropsWithChildren } from 'react';
2
+ import type { IStyledComponentBase, Substitute, Keyframes } from 'styled-components/dist/types';
3
+ interface HookProps {
4
+ container: IStyledComponentBase<'web', Substitute<DetailedHTMLProps<HTMLAttributes<any>, any>, any>> & string;
5
+ animateIn: Keyframes;
6
+ animateOut?: Keyframes;
7
+ duration?: number;
8
+ }
9
+ type TransitionProps = PropsWithChildren<{
10
+ enter: boolean;
11
+ [key: string]: any;
12
+ }>;
13
+ declare const useTransition: ({ container, animateIn, animateOut, duration }: HookProps) => ({ children, enter, ...props }: TransitionProps) => React.JSX.Element | null;
14
+ export { useTransition };
@@ -0,0 +1,8 @@
1
+ import type { SVG } from '@/types';
2
+ import type { StoryFn } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: SVG;
6
+ };
7
+ export default _default;
8
+ export declare const Default: StoryFn<SVG>;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const AddClusterInfoIcon: SVG;
@@ -0,0 +1,8 @@
1
+ import type { SVG } from '@/types';
2
+ import type { StoryFn } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: SVG;
6
+ };
7
+ export default _default;
8
+ export declare const Default: StoryFn<SVG>;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const DeleteAttributeIcon: SVG;
@@ -0,0 +1,5 @@
1
+ export * from './add-cluster-info-icon/index';
2
+ export * from './delete-attribute-icon/index';
3
+ export * from './pii-masking-icon/index';
4
+ export * from './rename-attribute-icon/index';
5
+ export * from './sampler-icon/index';
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const PiiMaskingIcon: SVG;
@@ -0,0 +1,8 @@
1
+ import type { SVG } from '@/types';
2
+ import type { StoryFn } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: SVG;
6
+ };
7
+ export default _default;
8
+ export declare const Default: StoryFn<SVG>;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const RenameAttributeIcon: SVG;
@@ -0,0 +1,8 @@
1
+ import type { SVG } from '@/types';
2
+ import type { StoryFn } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: SVG;
6
+ };
7
+ export default _default;
8
+ export declare const Default: StoryFn<SVG>;
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const SamplerIcon: SVG;
@@ -0,0 +1,8 @@
1
+ import type { SVG } from '@/types';
2
+ import type { StoryFn } from '@storybook/react';
3
+ declare const _default: {
4
+ title: string;
5
+ component: SVG;
6
+ };
7
+ export default _default;
8
+ export declare const Default: StoryFn<SVG>;
@@ -0,0 +1,2 @@
1
+ export * from './odigos-logo/index';
2
+ export * from './odigos-logo-text/index';
@@ -0,0 +1,2 @@
1
+ import type { SVG } from '@/types';
2
+ export declare const OdigosLogo: SVG;