@limetech/lime-elements 37.74.0 → 37.75.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## [37.75.1](https://github.com/Lundalogik/lime-elements/compare/v37.75.0...v37.75.1) (2024-12-09)
2
+
3
+
4
+ ### Reverts
5
+
6
+
7
+ * Revert "chore(deps-dev): bump react and react-dom" ([8725389](https://github.com/Lundalogik/lime-elements/commit/87253893b37c72e76496ef39305b3436c966a432))
8
+
9
+ ## [37.75.0](https://github.com/Lundalogik/lime-elements/compare/v37.74.0...v37.75.0) (2024-12-06)
10
+
11
+
12
+ ### Features
13
+
14
+
15
+ * **menu:** make it easier to distinguish menu choices in analytics software like Heap ([010c5d8](https://github.com/Lundalogik/lime-elements/commit/010c5d82a66acd7989cbafef17707283b59a6efa))
16
+ This change adds the value of the menu item's `text` property
17
+ under the attribute `data-text`, to make it possible to distinguish
18
+ which menu option was selected, in analytics apps like Heap.
19
+ Note that if you are putting any kind of sensitive data in the
20
+ `text` property of menu items, and you are using a service for
21
+ analysing user behaviour, such data could be sent to your analytics
22
+ service, which may be a violation of GDPR and other regulations.
23
+ If including such data in the menu item is absolutely necessary,
24
+ we recommend including it in the menu item's `data-secondary-text`
25
+ property instead.
26
+
1
27
  ## [37.74.0](https://github.com/Lundalogik/lime-elements/compare/v37.73.0...v37.74.0) (2024-12-04)
2
28
 
3
29
 
@@ -4520,7 +4520,7 @@ class MenuListRenderer {
4520
4520
  if (index$1 === this.applyTabIndexToItemAtIndex) {
4521
4521
  attributes.tabindex = '0';
4522
4522
  }
4523
- return (index.h("li", Object.assign({ class: classNames, role: "menuitem", "aria-disabled": item.disabled ? 'true' : 'false', "aria-selected": item.selected ? 'true' : 'false', "data-index": index$1 }, attributes),
4523
+ return (index.h("li", Object.assign({ class: classNames, role: "menuitem", "aria-disabled": item.disabled ? 'true' : 'false', "aria-selected": item.selected ? 'true' : 'false', "data-index": index$1, "data-text": item.text }, attributes),
4524
4524
  this.renderIcon(this.config, item),
4525
4525
  this.renderText(item),
4526
4526
  this.renderSubMenuIcon(item),