@odigos/ui-kit 0.0.218 → 0.0.220

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 (109) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/lib/chunks/{index-BPGpDZxy.js → index-BaYVU6Qp.js} +1 -1
  3. package/lib/chunks/ui-components-BRvjo2LR.js +2469 -0
  4. package/lib/components/_v2/autocomplete/index.d.ts +1 -0
  5. package/lib/components/_v2/button/index.d.ts +1 -0
  6. package/lib/components/_v2/cards/section-card/index.d.ts +4 -3
  7. package/lib/components/_v2/drawer/footer/index.d.ts +9 -0
  8. package/lib/components/_v2/drawer/index.d.ts +2 -0
  9. package/lib/components/_v2/hover-actions/index.d.ts +2 -0
  10. package/lib/components/_v2/note/index.d.ts +1 -0
  11. package/lib/components/_v2/radio/index.d.ts +1 -0
  12. package/lib/components/_v2/search/index.d.ts +2 -1
  13. package/lib/components/_v2/segment/index.d.ts +2 -1
  14. package/lib/components/_v2/table/index.d.ts +3 -1
  15. package/lib/components/_v2/table/styled.d.ts +2 -0
  16. package/lib/components/_v2/table/table-rows/index.d.ts +2 -1
  17. package/lib/components/_v2/table/types.d.ts +2 -0
  18. package/lib/components/styled.d.ts +4 -0
  19. package/lib/components/tooltip/index.d.ts +2 -0
  20. package/lib/components/v2.js +1 -1
  21. package/lib/components.js +1 -1
  22. package/lib/constants/index.d.ts +1 -0
  23. package/lib/constants/sampling/index.d.ts +87 -0
  24. package/lib/constants.js +1 -1
  25. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +18 -4
  26. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +7 -2
  27. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +7 -2
  28. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +6 -2
  29. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +2 -4
  30. package/lib/containers/_v2/_forms/create-sampling-rule-form/context.d.ts +34 -0
  31. package/lib/containers/_v2/_forms/create-sampling-rule-form/index.d.ts +3 -0
  32. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/duration-errors.d.ts +1 -1
  33. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/operation.d.ts +1 -1
  34. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/percentage.d.ts +1 -1
  35. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/rule-info.d.ts +1 -1
  36. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/sampling-preview.d.ts +1 -1
  37. package/lib/containers/_v2/_forms/create-sampling-rule-form/styled.d.ts +5 -0
  38. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/types.d.ts +1 -1
  39. package/lib/containers/_v2/_forms/edit-auto-rule-form/context.d.ts +21 -0
  40. package/lib/containers/_v2/_forms/edit-auto-rule-form/index.d.ts +3 -0
  41. package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/context.d.ts +21 -0
  42. package/lib/containers/_v2/_forms/edit-cost-reduction-auto-rule-form/index.d.ts +3 -0
  43. package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/context.d.ts +14 -0
  44. package/lib/containers/_v2/_forms/edit-highly-relevant-auto-rule-form/index.d.ts +3 -0
  45. package/lib/containers/_v2/_forms/index.d.ts +5 -0
  46. package/lib/containers/_v2/_forms/view-sampling-rule-form/context.d.ts +37 -0
  47. package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/footer.d.ts +3 -3
  48. package/lib/containers/_v2/_forms/view-sampling-rule-form/index.d.ts +3 -0
  49. package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/reverse-converters.d.ts +2 -2
  50. package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/operation-details.d.ts +1 -1
  51. package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/percentage.d.ts +1 -1
  52. package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/rule-info.d.ts +1 -1
  53. package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/sampling-preview.d.ts +2 -2
  54. package/lib/containers/_v2/index.d.ts +1 -2
  55. package/lib/containers/_v2/sampling-rules/auto-rule-card/index.d.ts +8 -0
  56. package/lib/containers/_v2/{sampling-rules-list → sampling-rules}/helpers.d.ts +23 -5
  57. package/lib/containers/_v2/sampling-rules/index.d.ts +3 -0
  58. package/lib/containers/_v2/sampling-rules/rules-table/index.d.ts +13 -0
  59. package/lib/containers/_v2/{sampling-rules-list/toolbar.d.ts → sampling-rules/toolbar/index.d.ts} +1 -1
  60. package/lib/containers/_v2/sampling-rules/types.d.ts +72 -0
  61. package/lib/containers/_v2/settings/index.d.ts +2 -0
  62. package/lib/containers/_v2/settings/toolbar/index.d.ts +12 -0
  63. package/lib/containers/source-drawer/profiling/symbol-table.d.ts +6 -0
  64. package/lib/containers/v2.js +152 -340
  65. package/lib/containers.js +124 -170
  66. package/lib/contexts/odigos-context.d.ts +1 -0
  67. package/lib/contexts.js +1 -1
  68. package/lib/functions.js +1 -1
  69. package/lib/hooks/index.d.ts +1 -0
  70. package/lib/hooks/useScrollTo.d.ts +11 -0
  71. package/lib/hooks.js +1 -1
  72. package/lib/snippets/_v2/colored-span/index.d.ts +16 -0
  73. package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -0
  74. package/lib/snippets/_v2/index.d.ts +1 -0
  75. package/lib/snippets/_v2/rich-title/index.d.ts +2 -2
  76. package/lib/snippets/v2.js +15 -17
  77. package/lib/snippets.js +1 -1
  78. package/lib/store.js +1 -1
  79. package/lib/theme.js +1 -1
  80. package/lib/types/common/index.d.ts +0 -1
  81. package/lib/types/config/index.d.ts +3 -2
  82. package/lib/types.js +1 -1
  83. package/lib/visuals.js +1 -1
  84. package/package.json +13 -13
  85. package/lib/chunks/ui-components-CzlBPbLD.js +0 -2459
  86. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/constants.d.ts +0 -26
  87. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/constants.d.ts +0 -10
  88. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/types.d.ts +0 -8
  89. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/constants.d.ts +0 -10
  90. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/types.d.ts +0 -8
  91. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/constants.d.ts +0 -6
  92. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/types.d.ts +0 -6
  93. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/constants.d.ts +0 -19
  94. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/styled.d.ts +0 -4
  95. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/types.d.ts +0 -1
  96. package/lib/containers/_v2/auto-rule-card/constants.d.ts +0 -1
  97. package/lib/containers/_v2/auto-rule-card/helpers.d.ts +0 -19
  98. package/lib/containers/_v2/auto-rule-card/index.d.ts +0 -5
  99. package/lib/containers/_v2/auto-rule-card/types.d.ts +0 -6
  100. package/lib/containers/_v2/sampling-rules-list/constants.d.ts +0 -23
  101. package/lib/containers/_v2/sampling-rules-list/index.d.ts +0 -6
  102. package/lib/containers/_v2/sampling-rules-list/rule-row.d.ts +0 -12
  103. package/lib/containers/_v2/sampling-rules-list/summary-span.d.ts +0 -10
  104. package/lib/containers/_v2/sampling-rules-list/types.d.ts +0 -47
  105. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/converters.d.ts +0 -0
  106. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/form-helpers.d.ts +0 -0
  107. package/lib/containers/_v2/{_drawers/create-sampling-rule-drawer → _forms/create-sampling-rule-form}/sections/source-scope.d.ts +1 -1
  108. /package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/duration-errors.d.ts +0 -0
  109. /package/lib/containers/_v2/{_drawers/view-sampling-rule-drawer → _forms/view-sampling-rule-form}/sections/source-scopes.d.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.220](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.219...ui-kit-v0.0.220) (2026-04-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * add save confirmation modal to settings page ([#791](https://github.com/odigos-io/ui-kit/issues/791)) ([1cc7117](https://github.com/odigos-io/ui-kit/commit/1cc71175341ffc6a8298ecf1d5ecd75790f7f73d))
9
+ * enhance settings page with toolbar, action buttons, and scroll-to area ([#795](https://github.com/odigos-io/ui-kit/issues/795)) ([b11f16a](https://github.com/odigos-io/ui-kit/commit/b11f16a8134ffdfec8c2724fdceeea699a668208))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * badge for "odigos-local-ui-config" should POP (convert to warning) ([#787](https://github.com/odigos-io/ui-kit/issues/787)) ([9f06ab0](https://github.com/odigos-io/ui-kit/commit/9f06ab098606d51303e215de888d0b40344f418d))
15
+ * change values.yaml warning to a note component ([#786](https://github.com/odigos-io/ui-kit/issues/786)) ([a7923cb](https://github.com/odigos-io/ui-kit/commit/a7923cb9d66378065ef089bb7c0b40205c23864e))
16
+ * click to open (needs parent container) in dropdata + input component ([#789](https://github.com/odigos-io/ui-kit/issues/789)) ([633c138](https://github.com/odigos-io/ui-kit/commit/633c1387a316f7e8258e00455ae23c8aa5079c4a))
17
+ * enhance useGenericForm to capture additional keys in diff calculation ([#792](https://github.com/odigos-io/ui-kit/issues/792)) ([266b0aa](https://github.com/odigos-io/ui-kit/commit/266b0aa7aa12a0321f9b46b91e8b7f087ff9b182))
18
+ * fields that are marked as "enterprise" should be hidden from the UI ([#793](https://github.com/odigos-io/ui-kit/issues/793)) ([deaf765](https://github.com/odigos-io/ui-kit/commit/deaf7658586982c40e316d0e1ad64d37c05824eb))
19
+ * for dropdown in settings page, use "Default" variant (no search, no checkboxes) ([#788](https://github.com/odigos-io/ui-kit/issues/788)) ([85e6090](https://github.com/odigos-io/ui-kit/commit/85e6090b543e868971214dfc1477415df152580c))
20
+ * remove "N/A" badges from inputs in settings page ([#784](https://github.com/odigos-io/ui-kit/issues/784)) ([5fd223d](https://github.com/odigos-io/ui-kit/commit/5fd223d87ab8d53e72703976d3fb7558ff078530))
21
+ * remove fields sorting from the settings page ([#785](https://github.com/odigos-io/ui-kit/issues/785)) ([9628625](https://github.com/odigos-io/ui-kit/commit/96286255e6d58cabacea43db110f53f8163092c2))
22
+ * render "add button" only for last input in lists ([#790](https://github.com/odigos-io/ui-kit/issues/790)) ([c6ba9f2](https://github.com/odigos-io/ui-kit/commit/c6ba9f2d8ad20c6302d65400c73a2b9f83777d7d))
23
+
24
+ ## [0.0.219](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.218...ui-kit-v0.0.219) (2026-04-13)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * profiling improvements ([#782](https://github.com/odigos-io/ui-kit/issues/782)) ([44599da](https://github.com/odigos-io/ui-kit/commit/44599da7baf996ec7f198cf80ddd823336f36563))
30
+ * refactor sampling-rules to match figma design, and kit conventions ([#781](https://github.com/odigos-io/ui-kit/issues/781)) ([35aac25](https://github.com/odigos-io/ui-kit/commit/35aac25798600c3847c36624dd4f2ee70adb5762))
31
+
3
32
  ## [0.0.218](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.217...ui-kit-v0.0.218) (2026-04-09)
4
33
 
5
34
 
@@ -1,3 +1,3 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{u as n,B as a,a as r,A as s,g as l,S as c,C as d,b as p,N as m}from"./ui-components-CzlBPbLD.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const g=i.div`
1
+ import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{u as n,B as a,a as r,A as s,g as l,S as c,C as d,b as p,N as m}from"./ui-components-BRvjo2LR.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const g=i.div`
2
2
  padding: 0 12px;
3
3
  `,C=({title:i="YAML",yaml:C,defaultOpen:S,fullHeight:k})=>{const{clickCopy:v,isCopied:A}=n(),[Y,j]=o(S??!1),x=e(()=>C?[{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:a.S,leftIcon:A?u:f,onClick:()=>v(C||""),disabled:A}},{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:a.S,leftIcon:Y?h:y,onClick:()=>j(t=>!t)}}]:[],[C,A,Y]);return t(c,{richTitle:{icon:b,title:i},actions:x,fullHeight:k,children:Y&&t(g,{children:C?t(d,{code:C,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(m,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{C as Y};