@refinitiv-ui/elements 6.20.0 → 6.20.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
@@ -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
+ ## [6.20.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.20.0...@refinitiv-ui/elements@6.20.1) (2025-07-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **icon:** throw error once per session if sprite icon fails to load ([#1285](https://github.com/Refinitiv/refinitiv-ui/issues/1285)) ([db9d54a](https://github.com/Refinitiv/refinitiv-ui/commit/db9d54a4aab9d8278c3446fa463c66ce08ddb420))
11
+
6
12
  # [6.20.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.19.0...@refinitiv-ui/elements@6.20.0) (2025-04-28)
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, DeprecationNotice, css, svg } from '@refinitiv-ui/core';
3
+ import { BasicElement, DeprecationNotice, 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';
@@ -19,6 +19,7 @@ const EmptyTemplate = svg ``;
19
19
  * As the cache key is an absolute URL, we can assume no clashes will occur.
20
20
  */
21
21
  export const iconTemplateCache = new Map();
22
+ const errorThrower = new ErrorThrower();
22
23
  let Icon = class Icon extends BasicElement {
23
24
  /**
24
25
  * Element version number
@@ -179,7 +180,9 @@ let Icon = class Icon extends BasicElement {
179
180
  void this.loadAndRenderIcon(iconProperty);
180
181
  }
181
182
  else {
182
- void this.loadAndRenderSpriteIcon(iconProperty);
183
+ void this.loadAndRenderSpriteIcon(iconProperty).catch((error) => {
184
+ errorThrower.once(String(error));
185
+ });
183
186
  }
184
187
  }
185
188
  /**
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.20.0';
1
+ export const VERSION = '6.20.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/elements",
3
- "version": "6.20.0",
3
+ "version": "6.20.1",
4
4
  "description": "Element Framework Elements",
5
5
  "author": "LSEG",
6
6
  "license": "Apache-2.0",
@@ -350,25 +350,25 @@
350
350
  "tslib": "^2.3.1"
351
351
  },
352
352
  "devDependencies": {
353
- "@refinitiv-ui/core": "^6.6.1",
354
- "@refinitiv-ui/demo-block": "^6.1.30",
353
+ "@refinitiv-ui/core": "^6.6.2",
354
+ "@refinitiv-ui/demo-block": "^6.1.31",
355
355
  "@refinitiv-ui/i18n": "^6.0.22",
356
356
  "@refinitiv-ui/phrasebook": "^6.3.9",
357
357
  "@refinitiv-ui/test-helpers": "^6.1.0",
358
- "@refinitiv-ui/translate": "^6.0.36",
358
+ "@refinitiv-ui/translate": "^6.0.37",
359
359
  "@refinitiv-ui/utils": "^6.4.0",
360
360
  "@types/d3-interpolate": "^3.0.1"
361
361
  },
362
362
  "peerDependencies": {
363
363
  "@refinitiv-ui/browser-sparkline": "^1.0.0 || ^2.0.0",
364
- "@refinitiv-ui/core": "^6.6.1",
364
+ "@refinitiv-ui/core": "^6.6.2",
365
365
  "@refinitiv-ui/i18n": "^6.0.22",
366
366
  "@refinitiv-ui/phrasebook": "^6.3.9",
367
- "@refinitiv-ui/translate": "^6.0.36",
367
+ "@refinitiv-ui/translate": "^6.0.37",
368
368
  "@refinitiv-ui/utils": "^6.4.0"
369
369
  },
370
370
  "publishConfig": {
371
371
  "access": "public"
372
372
  },
373
- "gitHead": "745dad9236176349f3bf134aecbdda8eed681c32"
373
+ "gitHead": "ffbf4a93c4fe5f583dace149901da15cedc87bec"
374
374
  }