@limetech/lime-crm-building-blocks 1.61.2 → 1.62.0

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,10 @@
1
+ ## [1.62.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.61.2...v1.62.0) (2025-01-17)
2
+
3
+ ### Features
4
+
5
+
6
+ * **notification-list:** add optional property `data?: T` to `NotificationItem` interface ([05a4ef3](https://github.com/Lundalogik/lime-crm-building-blocks/commit/05a4ef3802cbc189dcfcb8ea93cd7be0f393cc10))
7
+
1
8
  ## [1.61.2](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.61.1...v1.61.2) (2025-01-17)
2
9
 
3
10
  ### Bug Fixes
@@ -207,7 +207,7 @@ export class NotificationListItem {
207
207
  "mutable": false,
208
208
  "complexType": {
209
209
  "original": "NotificationItem",
210
- "resolved": "NotificationItem",
210
+ "resolved": "NotificationItem<unknown>",
211
211
  "references": {
212
212
  "NotificationItem": {
213
213
  "location": "import",
@@ -240,7 +240,7 @@ export class NotificationListItem {
240
240
  },
241
241
  "complexType": {
242
242
  "original": "NotificationItem",
243
- "resolved": "NotificationItem",
243
+ "resolved": "NotificationItem<unknown>",
244
244
  "references": {
245
245
  "NotificationItem": {
246
246
  "location": "import",
@@ -147,7 +147,7 @@ export class NotificationList {
147
147
  "mutable": false,
148
148
  "complexType": {
149
149
  "original": "NotificationItem[]",
150
- "resolved": "NotificationItem[]",
150
+ "resolved": "NotificationItem<unknown>[]",
151
151
  "references": {
152
152
  "NotificationItem": {
153
153
  "location": "import",
@@ -224,7 +224,7 @@ export class NotificationList {
224
224
  },
225
225
  "complexType": {
226
226
  "original": "NotificationItem",
227
- "resolved": "NotificationItem",
227
+ "resolved": "NotificationItem<unknown>",
228
228
  "references": {
229
229
  "NotificationItem": {
230
230
  "location": "import",
@@ -1,5 +1,5 @@
1
1
  import { BasicLimetypeProps } from '../../../util/basic-limetype-props';
2
- export interface NotificationItem extends BasicLimetypeProps {
2
+ export interface NotificationItem<T = unknown> extends BasicLimetypeProps {
3
3
  /**
4
4
  * When set to `true`, this feed item will be rendered as a "read" item.
5
5
  */
@@ -20,4 +20,9 @@ export interface NotificationItem extends BasicLimetypeProps {
20
20
  * Apply a selected state to the notification item.
21
21
  */
22
22
  selected?: boolean;
23
+ /**
24
+ * Any data the consumer want to store. This is useful for storing data
25
+ * needed when the notification item is clicked, for example.
26
+ */
27
+ data?: T;
23
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-crm-building-blocks",
3
- "version": "1.61.2",
3
+ "version": "1.62.0",
4
4
  "description": "A home for shared components meant for use with Lime CRM",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "devDependencies": {
44
44
  "@eslint/eslintrc": "^3.2.0",
45
45
  "@eslint/js": "^9.18.0",
46
- "@limetech/lime-elements": "^37.79.3",
46
+ "@limetech/lime-elements": "^37.79.4",
47
47
  "@limetech/lime-web-components": "^5.43.0",
48
48
  "@lundalogik/lime-icons8": "^2.31.0",
49
49
  "@lundalogik/limeclient.js": "^1.76.2",