@refinitiv-ui/elements 7.10.10-next.0 → 7.10.10

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.10.10](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.10.9...@refinitiv-ui/elements@7.10.10) (2024-04-30)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **icon, flag, utils:** resolve performance issue when rendering a lot of icons ([#1147](https://github.com/Refinitiv/refinitiv-ui/issues/1147)) ([d590e31](https://github.com/Refinitiv/refinitiv-ui/commit/d590e31af3946e69b004dd7a930fffbfae9ac702))
11
+
6
12
  ## [7.10.9](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@7.10.8...@refinitiv-ui/elements@7.10.9) (2024-04-01)
7
13
 
8
14
  ### Bug Fixes
package/lib/flag/index.js CHANGED
@@ -131,7 +131,7 @@ let Flag = class Flag extends BasicElement {
131
131
  * @returns {void}
132
132
  */
133
133
  setPrefix() {
134
- if (!FlagLoader.isPrefixSet) {
134
+ if (FlagLoader.isPrefixPending) {
135
135
  const CDNPrefix = this.getComputedVariable('--cdn-prefix').replace(/^('|")|('|")$/g, '');
136
136
  FlagLoader.setCdnPrefix(CDNPrefix);
137
137
  }
package/lib/icon/index.js CHANGED
@@ -139,7 +139,7 @@ let Icon = class Icon extends BasicElement {
139
139
  if (this.iconMap) {
140
140
  void this.loadAndRenderIcon(this.iconMap);
141
141
  }
142
- else if (isUrl(iconProperty) || IconLoader.isPrefixSet) {
142
+ else if (isUrl(iconProperty) || IconLoader.isPrefixResolved) {
143
143
  void this.loadAndRenderIcon(iconProperty);
144
144
  }
145
145
  else {
@@ -181,11 +181,12 @@ let Icon = class Icon extends BasicElement {
181
181
  * @returns {void}
182
182
  */
183
183
  setPrefix() {
184
- if (!IconLoader.isPrefixSet) {
184
+ // This prefix for individual icons allows supporting custom prefix of self-managed icons.
185
+ if (IconLoader.isPrefixPending) {
185
186
  const CDNPrefix = this.getComputedVariable('--cdn-prefix');
186
187
  IconLoader.setCdnPrefix(CDNPrefix);
187
188
  }
188
- if (!SpriteLoader.isPrefixSet) {
189
+ if (SpriteLoader.isPrefixPending) {
189
190
  const CDNSpritePrefix = this.getComputedVariable('--cdn-sprite-prefix');
190
191
  SpriteLoader.setCdnPrefix(CDNSpritePrefix);
191
192
  }
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '7.10.10-next.0';
1
+ export const VERSION = '7.10.10';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/elements",
3
- "version": "7.10.10-next.0",
3
+ "version": "7.10.10",
4
4
  "description": "Element Framework Elements",
5
5
  "author": "LSEG",
6
6
  "license": "Apache-2.0",
@@ -353,25 +353,25 @@
353
353
  "tslib": "^2.3.1"
354
354
  },
355
355
  "devDependencies": {
356
- "@refinitiv-ui/core": "^7.4.2-next.0",
357
- "@refinitiv-ui/demo-block": "^7.1.9-next.0",
358
- "@refinitiv-ui/i18n": "^7.1.4-next.0",
356
+ "@refinitiv-ui/core": "^7.4.2",
357
+ "@refinitiv-ui/demo-block": "^7.1.9",
358
+ "@refinitiv-ui/i18n": "^7.1.4",
359
359
  "@refinitiv-ui/phrasebook": "^7.1.1",
360
- "@refinitiv-ui/test-helpers": "^7.1.1-next.0",
361
- "@refinitiv-ui/translate": "^7.1.6-next.0",
362
- "@refinitiv-ui/utils": "^7.2.0",
360
+ "@refinitiv-ui/test-helpers": "^7.1.1",
361
+ "@refinitiv-ui/translate": "^7.1.6",
362
+ "@refinitiv-ui/utils": "^7.2.1",
363
363
  "@types/d3-interpolate": "^3.0.1"
364
364
  },
365
365
  "peerDependencies": {
366
366
  "@refinitiv-ui/browser-sparkline": "^1.0.0 || ^2.0.0",
367
- "@refinitiv-ui/core": "^7.4.2-next.0",
368
- "@refinitiv-ui/i18n": "^7.1.4-next.0",
367
+ "@refinitiv-ui/core": "^7.4.2",
368
+ "@refinitiv-ui/i18n": "^7.1.4",
369
369
  "@refinitiv-ui/phrasebook": "^7.1.1",
370
- "@refinitiv-ui/translate": "^7.1.6-next.0",
371
- "@refinitiv-ui/utils": "^7.2.0"
370
+ "@refinitiv-ui/translate": "^7.1.6",
371
+ "@refinitiv-ui/utils": "^7.2.1"
372
372
  },
373
373
  "publishConfig": {
374
374
  "access": "public"
375
375
  },
376
- "gitHead": "228961c31f52a5f01f1a12396f94682b7840f290"
376
+ "gitHead": "b035f2b2685fda3210a560d04605941955553d9a"
377
377
  }