@dynamic-labs/iconic 2.1.2 → 2.1.3

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,4 +1,19 @@
1
1
 
2
+ ### [2.1.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2...v2.1.3) (2024-06-14)
3
+
4
+
5
+ ### Features
6
+
7
+ * add in-app browser navigation support for sats-connect ([#5990](https://github.com/dynamic-labs/DynamicAuth/issues/5990)) ([7ea15b9](https://github.com/dynamic-labs/DynamicAuth/commit/7ea15b93d1864164acb82c1e73aae7f9130e1d44))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * cache getGenesisHash call to prevent over calling ([#5966](https://github.com/dynamic-labs/DynamicAuth/issues/5966)) ([#5970](https://github.com/dynamic-labs/DynamicAuth/issues/5970)) ([b624b2e](https://github.com/dynamic-labs/DynamicAuth/commit/b624b2ea5b398bf464d3098e7d81d83c7b5bf659))
13
+ * improvements to embedded solana wallet ([#6001](https://github.com/dynamic-labs/DynamicAuth/issues/6001)) ([a6437c9](https://github.com/dynamic-labs/DynamicAuth/commit/a6437c93e1946bca609d3d99d282123275022376)) ([#5815](https://github.com/dynamic-labs/DynamicAuth/issues/5815)) ([#5978](https://github.com/dynamic-labs/DynamicAuth/issues/5978)) ([dd92973](https://github.com/dynamic-labs/DynamicAuth/commit/dd9297365f0ccbee1217325328e173ae7ee9a922))
14
+ * show linked wallets with unavailable providers in user wallets list ([#6005](https://github.com/dynamic-labs/DynamicAuth/issues/6005)) ([79796d1](https://github.com/dynamic-labs/DynamicAuth/commit/79796d1b73670265ca9897314252b620afaa2e8a))
15
+ * close switch network modal after switching to a supported network ([#5987](https://github.com/dynamic-labs/DynamicAuth/issues/5987)) ([a7e762e](https://github.com/dynamic-labs/DynamicAuth/commit/a7e762ef63a72492d0c083a344111589a6fbc455))
16
+
2
17
  ### [2.1.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.2-alpha.1...v2.1.2) (2024-06-10)
3
18
 
4
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/iconic",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -30,7 +30,7 @@
30
30
  "react-dom": "^18.0.0"
31
31
  },
32
32
  "dependencies": {
33
- "@dynamic-labs/logger": "2.1.2",
33
+ "@dynamic-labs/logger": "2.1.3",
34
34
  "sharp": "0.33.2"
35
35
  }
36
36
  }
@@ -6,9 +6,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  /* eslint-disable arrow-body-style */
7
7
  // This method needs to be wrapped correctly to avoid bundler issues
8
8
  // that may update process.env variable via custom configs in customers apps
9
+ const DEFAULT_ICONIC_SPRITE_URL = 'https://iconic.dynamic-static-assets.com/icons/sprite.svg';
9
10
  const getIconicSpriteUrl = () => {
10
11
  var _a, _b, _c;
11
- return ((_c = (_b = (_a = process.env['ICONIC_SPRITE_CDN_URL']) !== null && _a !== void 0 ? _a : process.env['NEXT_PUBLIC_ICONIC_SPRITE_CDN_URL']) !== null && _b !== void 0 ? _b : process.env['REACT_APP_ICONIC_SPRITE_CDN_URLL']) !== null && _c !== void 0 ? _c : 'https://iconic.dynamic-static-assets.com/icons/sprite.svg');
12
+ if (typeof process !== 'undefined' && process.env) {
13
+ return ((_c = (_b = (_a = process.env['ICONIC_SPRITE_CDN_URL']) !== null && _a !== void 0 ? _a : process.env['NEXT_PUBLIC_ICONIC_SPRITE_CDN_URL']) !== null && _b !== void 0 ? _b : process.env['REACT_APP_ICONIC_SPRITE_CDN_URLL']) !== null && _c !== void 0 ? _c : DEFAULT_ICONIC_SPRITE_URL);
14
+ }
15
+ return DEFAULT_ICONIC_SPRITE_URL;
12
16
  };
13
17
 
14
18
  exports.getIconicSpriteUrl = getIconicSpriteUrl;
@@ -2,9 +2,13 @@
2
2
  /* eslint-disable arrow-body-style */
3
3
  // This method needs to be wrapped correctly to avoid bundler issues
4
4
  // that may update process.env variable via custom configs in customers apps
5
+ const DEFAULT_ICONIC_SPRITE_URL = 'https://iconic.dynamic-static-assets.com/icons/sprite.svg';
5
6
  const getIconicSpriteUrl = () => {
6
7
  var _a, _b, _c;
7
- return ((_c = (_b = (_a = process.env['ICONIC_SPRITE_CDN_URL']) !== null && _a !== void 0 ? _a : process.env['NEXT_PUBLIC_ICONIC_SPRITE_CDN_URL']) !== null && _b !== void 0 ? _b : process.env['REACT_APP_ICONIC_SPRITE_CDN_URLL']) !== null && _c !== void 0 ? _c : 'https://iconic.dynamic-static-assets.com/icons/sprite.svg');
8
+ if (typeof process !== 'undefined' && process.env) {
9
+ return ((_c = (_b = (_a = process.env['ICONIC_SPRITE_CDN_URL']) !== null && _a !== void 0 ? _a : process.env['NEXT_PUBLIC_ICONIC_SPRITE_CDN_URL']) !== null && _b !== void 0 ? _b : process.env['REACT_APP_ICONIC_SPRITE_CDN_URLL']) !== null && _c !== void 0 ? _c : DEFAULT_ICONIC_SPRITE_URL);
10
+ }
11
+ return DEFAULT_ICONIC_SPRITE_URL;
8
12
  };
9
13
 
10
14
  export { getIconicSpriteUrl };