@limetech/lime-crm-building-blocks 1.116.6 → 1.117.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
  4. package/dist/cjs/limebb-info-tile.cjs.entry.js +1 -1
  5. package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +1 -1
  6. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +2 -2
  7. package/dist/cjs/limebb-text-editor.cjs.entry.js +8 -7
  8. package/dist/collection/components/dashboard-widget/dashboard-widget.js +9 -3
  9. package/dist/collection/components/info-tile/info-tile.js +11 -4
  10. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +1 -1
  11. package/dist/collection/components/summary-popover/summary-popover.js +10 -4
  12. package/dist/collection/components/text-editor/uploader/building-blocks-upload-handler.js +8 -7
  13. package/dist/collection/index.js +1 -0
  14. package/dist/components/index.js +1 -1
  15. package/dist/components/lime-query-filter-comparison.js +1 -1
  16. package/dist/components/limebb-dashboard-widget.js +1 -1
  17. package/dist/components/limebb-info-tile.js +1 -1
  18. package/dist/components/limebb-text-editor.js +1 -1
  19. package/dist/components/summary-popover.js +1 -1
  20. package/dist/esm/index.js +1 -1
  21. package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
  22. package/dist/esm/limebb-info-tile.entry.js +1 -1
  23. package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +1 -1
  24. package/dist/esm/limebb-navigation-button_2.entry.js +2 -2
  25. package/dist/esm/limebb-text-editor.entry.js +8 -7
  26. package/dist/lime-crm-building-blocks/index.esm.js +1 -0
  27. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  28. package/dist/lime-crm-building-blocks/{p-626421bf.entry.js → p-18fc1a06.entry.js} +1 -1
  29. package/dist/lime-crm-building-blocks/{p-c6bbcbee.entry.js → p-943c8589.entry.js} +1 -1
  30. package/dist/lime-crm-building-blocks/{p-12aadae6.entry.js → p-a48a6ff8.entry.js} +1 -1
  31. package/dist/lime-crm-building-blocks/p-d13b6d30.entry.js +1 -0
  32. package/dist/lime-crm-building-blocks/{p-62981791.entry.js → p-ffb847d0.entry.js} +1 -1
  33. package/dist/types/components/dashboard-widget/dashboard-widget.d.ts +2 -2
  34. package/dist/types/components/info-tile/info-tile.d.ts +2 -1
  35. package/dist/types/components/summary-popover/summary-popover.d.ts +2 -2
  36. package/dist/types/components/text-editor/uploader/building-blocks-upload-handler.d.ts +6 -5
  37. package/dist/types/components.d.ts +11 -11
  38. package/dist/types/index.d.ts +1 -0
  39. package/dist/types/util/basic-limetype-props.d.ts +4 -4
  40. package/package.json +3 -3
  41. package/dist/lime-crm-building-blocks/p-b36ad4e8.entry.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.117.1](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.117.0...v1.117.1) (2026-04-29)
2
+
3
+ ### Bug Fixes
4
+
5
+
6
+ * **text-editor:** use download URL for image uploads ([147c12e](https://github.com/Lundalogik/lime-crm-building-blocks/commit/147c12ee6d1169104cc74d277134461b5c296bd2))
7
+
8
+ ## [1.117.0](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.116.6...v1.117.0) (2026-04-28)
9
+
10
+ ### Features
11
+
12
+
13
+ * add auto completion of icons and colors ([09dd9ba](https://github.com/Lundalogik/lime-crm-building-blocks/commit/09dd9ba469a147ac8042889d4291808870741339)), closes [Lundalogik/crm-client#622](https://github.com/Lundalogik/crm-client/issues/622)
14
+
1
15
  ## [1.116.6](https://github.com/Lundalogik/lime-crm-building-blocks/compare/v1.116.5...v1.116.6) (2026-04-28)
2
16
 
3
17
  ### Bug Fixes
@@ -1,2 +1,4 @@
1
1
  'use strict';
2
2
 
3
+ require('@lundalogik/lime-icons8');
4
+
@@ -18,7 +18,7 @@ const DashboardComponent = class {
18
18
  };
19
19
  }
20
20
  render() {
21
- return [this.renderHeader(), index.h("slot", { key: '577beec51a062e26a3ae6db58b92abeed9f79d38', name: "content" })];
21
+ return [this.renderHeader(), index.h("slot", { key: '3c5a1725b0cf3887074d0be4b1b7086126447d3b', name: "content" })];
22
22
  }
23
23
  };
24
24
  DashboardComponent.style = dashboardWidgetCss();
@@ -434,7 +434,7 @@ const InfoTile = class {
434
434
  const errorProps = Object.assign(Object.assign({}, baseProps), { icon: 'error', prefix: 'ERROR', loading: true, label: this.getLabel(filter) });
435
435
  const normalProps = Object.assign(Object.assign({}, baseProps), { label: this.getLabel(filter), link: this.getLink(filter), loading: this.loading, value: value === null || value === void 0 ? void 0 : value.value.trim() });
436
436
  const props = !filter || this.error ? errorProps : normalProps;
437
- return (index.h("limel-info-tile", Object.assign({ key: 'ed37d3978ead3c591dc1e357b0583c6c2e5350a1', class: { error: !filter || this.error } }, props)));
437
+ return (index.h("limel-info-tile", Object.assign({ key: '32681215bf0c15888f2b9b7a603bbf43118dab5a', class: { error: !filter || this.error } }, props)));
438
438
  }
439
439
  getFormattedValue() {
440
440
  if (!this.value && this.value !== 0) {
@@ -107,7 +107,7 @@ const LimeQueryFilterComparisonComponent = class {
107
107
  };
108
108
  }
109
109
  render() {
110
- return (index.h(index.Host, { key: '4c020edf07382214dcd7cf26063ff59128d2eb48' }, this.renderHeader(), index.h("div", { key: '1dcf3c47a0d3ea03c9946ff18a545e39a34812e5', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), index.h("limel-icon-button", { key: 'd5b33a46ee71b6a8a72145947c02ae701d754a47', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
110
+ return (index.h(index.Host, { key: '3160ae006c1badea05d6f687aa269a26a7064178' }, this.renderHeader(), index.h("div", { key: 'cdd9a5579a261ec29451a98a247f9e079cadd853', class: "expression-container" }, this.renderPropertySelector(), this.renderOperator(), this.renderValueInput(), index.h("limel-icon-button", { key: 'a18e2851403fcaf7189464bc9cd558684b67ecf3', class: "remove", icon: "trash", label: "Remove condition", onClick: this.removeExpression }))));
111
111
  }
112
112
  renderHeader() {
113
113
  if (!this.label) {
@@ -122,9 +122,9 @@ const SummaryPopover = class {
122
122
  top: '0.125rem',
123
123
  right: '0.125rem',
124
124
  };
125
- return (index.h("limel-popover", { key: 'b9bad8373099e793163edc600482b410818dc3b9', style: {
125
+ return (index.h("limel-popover", { key: 'e4c9b983fcb6653614a4e32fb2e4645d4cad0051', style: {
126
126
  '--limebb-summary-popover-timeout': `${this.triggerDelay}ms`,
127
- }, open: this.isPopoverOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, index.h("div", { key: 'aff69e23c39f6c31ecb57e2252a28fa43080c998', slot: "trigger", onMouseEnter: this.openPopoverWithDelay, onMouseLeave: this.resetTimeout, onFocusin: this.openPopoverWithDelay }, index.h("slot", { key: '66a7b262857bbd45a4a8672214377afcaddd53a2', name: "trigger" }), index.h("div", { key: 'e365776fcd661de5419b8df55202dc054f1f234b', class: "opening-countdown-indicator" })), this.renderCard(closeButtonStyle)));
127
+ }, open: this.isPopoverOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, index.h("div", { key: '9d5508336d005dd37eb481895172c20603a1372c', slot: "trigger", onMouseEnter: this.openPopoverWithDelay, onMouseLeave: this.resetTimeout, onFocusin: this.openPopoverWithDelay }, index.h("slot", { key: '387149baa61ff006740ed57685eb06ed00817420', name: "trigger" }), index.h("div", { key: 'f20353d74f8c92eb02f74489826ff6d25629f7db', class: "opening-countdown-indicator" })), this.renderCard(closeButtonStyle)));
128
128
  }
129
129
  renderCard(closeButtonStyle) {
130
130
  return (index.h("limel-card", { style: {
@@ -1074,20 +1074,21 @@ class UploadHandler {
1074
1074
  return uploadedFile;
1075
1075
  }
1076
1076
  /**
1077
- * Extracts a file ID from a image source string.
1077
+ * Extracts a file ID from an image source string.
1078
1078
  *
1079
- * This function parses a URL to find a file ID that appears before
1080
- * '/contents/' at the end of the URL.
1079
+ * Matches a file ID that appears before '/download/' (current URL
1080
+ * format) or '/contents/' (legacy URL format, kept for historical
1081
+ * HTML stored before the switch to '/download/').
1081
1082
  *
1082
1083
  * @param src - The URL string to parse
1083
1084
  * @returns The extracted file ID or undefined if no match is found
1084
1085
  *
1085
1086
  * @example
1086
1087
  * // Returns 123
1087
- * parseFileIdFromSrc('/api/file/123/contents/');
1088
+ * parseFileIdFromSrc('/api/file/123/download/');
1088
1089
  *
1089
1090
  * @example
1090
- * // Returns 456
1091
+ * // Returns 456 (legacy URL)
1091
1092
  * parseFileIdFromSrc('https://example.com/limepkg-email/api/v1/file/456/contents/');
1092
1093
  *
1093
1094
  * @example
@@ -1096,7 +1097,7 @@ class UploadHandler {
1096
1097
  */
1097
1098
  parseFileIdFromSrc(src) {
1098
1099
  if (src) {
1099
- const regex = /\/(\d+)\/contents\/?$/;
1100
+ const regex = /\/(\d+)\/(?:download|contents)\/?$/;
1100
1101
  const matches = regex.exec(src);
1101
1102
  if (matches && matches[1]) {
1102
1103
  return Number(matches[1]);
@@ -1145,7 +1146,7 @@ class UploadHandler {
1145
1146
  imageUpload.contentType = response.contentType;
1146
1147
  imageUpload.size = response.size;
1147
1148
  imageUpload.state = 'done';
1148
- imageUpload.href = (_a = response._links) === null || _a === void 0 ? void 0 : _a.contents.href;
1149
+ imageUpload.href = (_a = response._links) === null || _a === void 0 ? void 0 : _a.download.href;
1149
1150
  return imageUpload;
1150
1151
  }
1151
1152
  get http() {