@refinitiv-ui/elements 7.15.1 → 7.15.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.15.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.15.1...@refinitiv-ui/elements@7.15.2) (2025-07-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **icon:** throw error once per session if sprite icon fails to load ([#1284](https://github.com/Refinitiv/refinitiv-ui/issues/1284)) ([9ba9464](https://github.com/Refinitiv/refinitiv-ui/commit/9ba94641612ecd305d6f404f9689694c2d052947))
11
+
6
12
  ## [7.15.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.15.0...@refinitiv-ui/elements@7.15.1) (2025-05-27)
7
13
 
8
14
  ### Bug Fixes
package/lib/icon/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { consume } from '@lit-labs/context';
3
- import { BasicElement, css, svg } from '@refinitiv-ui/core';
3
+ import { BasicElement, ErrorThrower, css, svg } from '@refinitiv-ui/core';
4
4
  import { customElement } from '@refinitiv-ui/core/decorators/custom-element.js';
5
5
  import { property } from '@refinitiv-ui/core/decorators/property.js';
6
6
  import { unsafeSVG } from '@refinitiv-ui/core/directives/unsafe-svg.js';
@@ -16,6 +16,7 @@ const EmptyTemplate = svg ``;
16
16
  * As the cache key is an absolute URL, we can assume no clashes will occur.
17
17
  */
18
18
  const iconTemplateCache = new Map();
19
+ const errorThrower = new ErrorThrower();
19
20
  let Icon = class Icon extends BasicElement {
20
21
  /**
21
22
  * Element version number
@@ -143,7 +144,9 @@ let Icon = class Icon extends BasicElement {
143
144
  void this.loadAndRenderIcon(iconProperty);
144
145
  }
145
146
  else {
146
- void this.loadAndRenderSpriteIcon(iconProperty);
147
+ void this.loadAndRenderSpriteIcon(iconProperty).catch((error) => {
148
+ errorThrower.once(String(error));
149
+ });
147
150
  }
148
151
  }
149
152
  /**
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '7.15.1';
1
+ export const VERSION = '7.15.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/elements",
3
- "version": "7.15.1",
3
+ "version": "7.15.2",
4
4
  "description": "Element Framework Elements",
5
5
  "author": "LSEG",
6
6
  "license": "Apache-2.0",
@@ -470,25 +470,25 @@
470
470
  "tslib": "^2.3.1"
471
471
  },
472
472
  "devDependencies": {
473
- "@refinitiv-ui/core": "^7.5.2",
474
- "@refinitiv-ui/demo-block": "^7.2.1",
473
+ "@refinitiv-ui/core": "^7.5.3",
474
+ "@refinitiv-ui/demo-block": "^7.2.2",
475
475
  "@refinitiv-ui/i18n": "^7.1.6",
476
476
  "@refinitiv-ui/phrasebook": "^7.1.2",
477
477
  "@refinitiv-ui/test-helpers": "^7.1.3",
478
- "@refinitiv-ui/translate": "^7.1.10",
478
+ "@refinitiv-ui/translate": "^7.1.11",
479
479
  "@refinitiv-ui/utils": "^7.3.1",
480
480
  "@types/d3-interpolate": "^3.0.1"
481
481
  },
482
482
  "peerDependencies": {
483
483
  "@refinitiv-ui/browser-sparkline": "^1.0.0 || ^2.0.0",
484
- "@refinitiv-ui/core": "^7.5.2",
484
+ "@refinitiv-ui/core": "^7.5.3",
485
485
  "@refinitiv-ui/i18n": "^7.1.6",
486
486
  "@refinitiv-ui/phrasebook": "^7.1.2",
487
- "@refinitiv-ui/translate": "^7.1.10",
487
+ "@refinitiv-ui/translate": "^7.1.11",
488
488
  "@refinitiv-ui/utils": "^7.3.1"
489
489
  },
490
490
  "publishConfig": {
491
491
  "access": "public"
492
492
  },
493
- "gitHead": "cf58003b1881087066c57d1a503b3e9e53df62a1"
493
+ "gitHead": "5a9ac196942ce194a5265cc1470df53c71d98af6"
494
494
  }