@dynamic-labs/iconic 1.2.0-alpha.0 → 2.0.0-alpha.0
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 +21 -0
- package/package.json +3 -2
- package/src/Iconic.cjs +4 -3
- package/src/Iconic.d.ts +2 -2
- package/src/Iconic.js +4 -3
- package/src/components/SocialIcon.cjs +2 -2
- package/src/components/SocialIcon.d.ts +1 -0
- package/src/components/SocialIcon.js +2 -2
- package/src/helpers/getIconicSpriteUrl.cjs +13 -0
- package/src/helpers/getIconicSpriteUrl.d.ts +1 -0
- package/src/helpers/getIconicSpriteUrl.js +9 -0
- package/src/helpers/index.d.ts +1 -0
- package/src/index.cjs +2 -2
- package/src/index.d.ts +2 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.0.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.1...v2.0.0-alpha.0) (2024-02-12)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* use recommended wallets when using wallet list tabs ([#4662](https://github.com/dynamic-labs/DynamicAuth/issues/4662)) ([eae0318](https://github.com/dynamic-labs/DynamicAuth/commit/eae0318b30fa61d0b30f733ff0d632dfde132181))
|
|
8
|
+
|
|
9
|
+
## [1.2.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.0...v1.2.0-alpha.1) (2024-02-09)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add FilterChain helper function ([#4632](https://github.com/dynamic-labs/DynamicAuth/issues/4632)) ([56d474b](https://github.com/dynamic-labs/DynamicAuth/commit/56d474bf50a566774179ae929c4587ef841809bc))
|
|
15
|
+
* add recommendedWallets prop to DynamicContext ([10c79d2](https://github.com/dynamic-labs/DynamicAuth/commit/10c79d2d7d79b3acee52f2feac0ddb6ccb5d9465))
|
|
16
|
+
* allow exporting embedded wallets key/seed using email auth session ([#4580](https://github.com/dynamic-labs/DynamicAuth/issues/4580)) ([7b7a826](https://github.com/dynamic-labs/DynamicAuth/commit/7b7a8265ff16057284a50046f2310e1abdca5e50))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* fix the wallet list height ([#4651](https://github.com/dynamic-labs/DynamicAuth/issues/4651)) ([445be11](https://github.com/dynamic-labs/DynamicAuth/commit/445be110044aff2641cb2c8309c7b784d5498645))
|
|
22
|
+
|
|
2
23
|
## [1.2.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.26...v1.2.0-alpha.0) (2024-02-09)
|
|
3
24
|
|
|
4
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/iconic",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"react-dom": "^17.0.2 || ^18.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@dynamic-labs/logger": "
|
|
33
|
+
"@dynamic-labs/logger": "2.0.0-alpha.0",
|
|
34
|
+
"sharp": "0.33.2"
|
|
34
35
|
}
|
|
35
36
|
}
|
package/src/Iconic.cjs
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var getIconicSpriteUrl = require('./helpers/getIconicSpriteUrl.cjs');
|
|
6
7
|
|
|
7
|
-
const ICONIC_SPRITE_URL =
|
|
8
|
+
const ICONIC_SPRITE_URL = getIconicSpriteUrl.getIconicSpriteUrl();
|
|
8
9
|
const createIconic = (props) => {
|
|
9
10
|
const Icon = Object.assign(Object.assign({}, props), { function: (props) => {
|
|
10
11
|
const url = `${ICONIC_SPRITE_URL}#${Icon.iconName}`;
|
|
11
|
-
return
|
|
12
|
+
return react.createElement('img', Object.assign(Object.assign({ 'data-testid': `iconic-${Icon.iconName}` }, props), { alt: Icon.alt, src: url }));
|
|
12
13
|
} });
|
|
13
14
|
const IconicComponent = Icon.function.bind(Icon);
|
|
14
15
|
Object.assign(IconicComponent, {
|
package/src/Iconic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
export declare const ICONIC_SPRITE_URL:
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
export declare const ICONIC_SPRITE_URL: string;
|
|
3
3
|
export type Iconic = FC<React.SVGProps<SVGSVGElement> & {
|
|
4
4
|
title?: string | undefined;
|
|
5
5
|
}> & {
|
package/src/Iconic.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { getIconicSpriteUrl } from './helpers/getIconicSpriteUrl.js';
|
|
2
3
|
|
|
3
|
-
const ICONIC_SPRITE_URL =
|
|
4
|
+
const ICONIC_SPRITE_URL = getIconicSpriteUrl();
|
|
4
5
|
const createIconic = (props) => {
|
|
5
6
|
const Icon = Object.assign(Object.assign({}, props), { function: (props) => {
|
|
6
7
|
const url = `${ICONIC_SPRITE_URL}#${Icon.iconName}`;
|
|
7
|
-
return (
|
|
8
|
+
return createElement('img', Object.assign(Object.assign({ 'data-testid': `iconic-${Icon.iconName}` }, props), { alt: Icon.alt, src: url }));
|
|
8
9
|
} });
|
|
9
10
|
const IconicComponent = Icon.function.bind(Icon);
|
|
10
11
|
Object.assign(IconicComponent, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
|
-
var
|
|
6
|
+
var react = require('react');
|
|
7
7
|
var findSocialIcon = require('./findSocialIcon.cjs');
|
|
8
8
|
|
|
9
9
|
const SocialIcon = (_a) => {
|
|
@@ -11,7 +11,7 @@ const SocialIcon = (_a) => {
|
|
|
11
11
|
const Icon = findSocialIcon.findSocialIcon(name, variant);
|
|
12
12
|
if (!Icon)
|
|
13
13
|
return null;
|
|
14
|
-
return
|
|
14
|
+
return react.createElement(Icon, props, null);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
exports.SocialIcon = SocialIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __rest } from '../../_virtual/_tslib.js';
|
|
2
|
-
import {
|
|
2
|
+
import { createElement } from 'react';
|
|
3
3
|
import { findSocialIcon } from './findSocialIcon.js';
|
|
4
4
|
|
|
5
5
|
const SocialIcon = (_a) => {
|
|
@@ -7,7 +7,7 @@ const SocialIcon = (_a) => {
|
|
|
7
7
|
const Icon = findSocialIcon(name, variant);
|
|
8
8
|
if (!Icon)
|
|
9
9
|
return null;
|
|
10
|
-
return
|
|
10
|
+
return createElement(Icon, props, null);
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { SocialIcon };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* eslint-disable arrow-body-style */
|
|
6
|
+
// This method needs to be wrapped correctly to avoid bundler issues
|
|
7
|
+
// that may update process.env variable via custom configs in customers apps
|
|
8
|
+
const getIconicSpriteUrl = () => {
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
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');
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.getIconicSpriteUrl = getIconicSpriteUrl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getIconicSpriteUrl: () => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* eslint-disable arrow-body-style */
|
|
2
|
+
// This method needs to be wrapped correctly to avoid bundler issues
|
|
3
|
+
// that may update process.env variable via custom configs in customers apps
|
|
4
|
+
const getIconicSpriteUrl = () => {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
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');
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { getIconicSpriteUrl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getIconicSpriteUrl';
|
package/src/index.cjs
CHANGED
|
@@ -8,10 +8,10 @@ var index$2 = require('./icons/wallets/index.cjs');
|
|
|
8
8
|
var index$3 = require('./icons/mobile/index.cjs');
|
|
9
9
|
var index$4 = require('./icons/social/index.cjs');
|
|
10
10
|
var index$5 = require('./icons/misc/index.cjs');
|
|
11
|
-
var Iconic = require('./Iconic.cjs');
|
|
12
11
|
var SocialIcon = require('./components/SocialIcon.cjs');
|
|
13
12
|
var getSocialIcon = require('./components/getSocialIcon.cjs');
|
|
14
13
|
var findSocialIcon = require('./components/findSocialIcon.cjs');
|
|
14
|
+
var getIconicSpriteUrl = require('./helpers/getIconicSpriteUrl.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -131,7 +131,7 @@ exports.YouTubeIcon = index$4.YouTubeIcon;
|
|
|
131
131
|
exports.ArrowSendIcon = index$5.ArrowSendIcon;
|
|
132
132
|
exports.CaptchaWaveIcon = index$5.CaptchaWaveIcon;
|
|
133
133
|
exports.UserProfileIcon = index$5.UserProfileIcon;
|
|
134
|
-
exports.ICONIC_SPRITE_URL = Iconic.ICONIC_SPRITE_URL;
|
|
135
134
|
exports.SocialIcon = SocialIcon.SocialIcon;
|
|
136
135
|
exports.getSocialIcon = getSocialIcon.getSocialIcon;
|
|
137
136
|
exports.findSocialIcon = findSocialIcon.findSocialIcon;
|
|
137
|
+
exports.getIconicSpriteUrl = getIconicSpriteUrl.getIconicSpriteUrl;
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export { ArgentMobile, ArgentWebWallet, ArgentXIcon, BackpackIcon, BinanceIcon,
|
|
|
4
4
|
export { AndroidIcon, AppleIcon } from './icons/mobile/index.js';
|
|
5
5
|
export { AppleDarkSocialIcon, AppleSocialIcon, BitbucketIcon, CoinbaseSocialIcon, DiscordIcon, FacebookIcon, GithubDarkIcon, GithubIcon, GitlabIcon, GoogleIcon, HelpdeskIcon, InstagramIcon, LinkedinIcon, MicrosoftIcon, OnePasswordDarkIcon, OnePasswordIcon, SlackIcon, TelegramIcon, TwitchDarkIcon, TwitchIcon, TwitterDarkIcon, TwitterIcon, YouTubeIcon } from './icons/social/index.js';
|
|
6
6
|
export { ArrowSendIcon, CaptchaWaveIcon, UserProfileIcon } from './icons/misc/index.js';
|
|
7
|
-
export { ICONIC_SPRITE_URL } from './Iconic.js';
|
|
8
7
|
export { SocialIcon } from './components/SocialIcon.js';
|
|
9
8
|
export { getSocialIcon } from './components/getSocialIcon.js';
|
|
10
9
|
export { findSocialIcon } from './components/findSocialIcon.js';
|
|
10
|
+
export { getIconicSpriteUrl } from './helpers/getIconicSpriteUrl.js';
|