@evlop/commons 1.0.204 → 1.0.206
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/iconInfo/index.d.ts +20 -5
- package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/index.js +35 -5
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts +7 -0
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +14 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.min.json +1 -1
- package/dist/src/constants/iconInfo/types.d.ts +9 -3
- package/dist/src/constants/iconInfo/types.d.ts.map +1 -1
- package/package.json +5 -6
- package/dist/src/constants/iconInfo/index.native.d.ts +0 -25
- package/dist/src/constants/iconInfo/index.native.d.ts.map +0 -1
- package/dist/src/constants/iconInfo/index.native.js +0 -41
- package/dist/src/constants/iconInfo/index.native.js.map +0 -1
- package/dist/src/constants/iconInfo/index.web.d.ts +0 -4
- package/dist/src/constants/iconInfo/index.web.d.ts.map +0 -1
- package/dist/src/constants/iconInfo/index.web.js +0 -13
- package/dist/src/constants/iconInfo/index.web.js.map +0 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.lookup.json +0 -102286
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@evlop/commons",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.206",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/main.js",
|
6
6
|
"peerDependencies": {
|
@@ -8,12 +8,11 @@
|
|
8
8
|
"handlebars": "^4.7.7",
|
9
9
|
"i18next": "^21.8.8",
|
10
10
|
"lodash": "^4.17.21",
|
11
|
+
"query-string": "^7.1.0",
|
11
12
|
"react-native": "^0.68.2",
|
12
|
-
"react-native-vector-icons": "^
|
13
|
-
"uuid": "^8.3.2"
|
14
|
-
"query-string": "^7.1.0"
|
13
|
+
"react-native-vector-icons": "^10.0.3",
|
14
|
+
"uuid": "^8.3.2"
|
15
15
|
},
|
16
|
-
"optionalDependencies": {},
|
17
16
|
"dependencies": {
|
18
17
|
"axios-retry": "^3.3.1",
|
19
18
|
"events": "^3.3.0",
|
@@ -50,7 +49,7 @@
|
|
50
49
|
"mocha": "^8.4.0",
|
51
50
|
"query-string": "^7.1.0",
|
52
51
|
"react-native": "^0.68.2",
|
53
|
-
"react-native-vector-icons": "^
|
52
|
+
"react-native-vector-icons": "^10.0.3",
|
54
53
|
"ts-node": "^10.4.0",
|
55
54
|
"typescript": "^4.1.3",
|
56
55
|
"uuid": "^8.3.2"
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import reactNativeVectorIcons from "./reactNativeVectorIcons.lookup.min.json";
|
2
|
-
export declare function getIconInfo(iconIdentifier: string): {
|
3
|
-
id: string;
|
4
|
-
type: string;
|
5
|
-
name: string;
|
6
|
-
character: any;
|
7
|
-
isDirected: any;
|
8
|
-
variant?: undefined;
|
9
|
-
} | {
|
10
|
-
id: string;
|
11
|
-
type: string;
|
12
|
-
variant: string;
|
13
|
-
name: string;
|
14
|
-
character: any;
|
15
|
-
isDirected: any;
|
16
|
-
} | {
|
17
|
-
name: string;
|
18
|
-
id?: undefined;
|
19
|
-
type?: undefined;
|
20
|
-
character?: undefined;
|
21
|
-
isDirected?: undefined;
|
22
|
-
variant?: undefined;
|
23
|
-
};
|
24
|
-
export default reactNativeVectorIcons;
|
25
|
-
//# sourceMappingURL=index.native.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":"AACA,OAAO,sBAAsB,MAAM,0CAA0C,CAAC;AAE9E,wBAAgB,WAAW,CAAC,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EA0BjD;AAED,eAAe,sBAAsB,CAAC"}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.getIconInfo = void 0;
|
7
|
-
const directed_icons_1 = __importDefault(require("./directed-icons"));
|
8
|
-
const reactNativeVectorIcons_lookup_min_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.min.json"));
|
9
|
-
function getIconInfo(iconIdentifier) {
|
10
|
-
var _a, _b;
|
11
|
-
const parts = iconIdentifier.split(':');
|
12
|
-
if (parts.length === 2) {
|
13
|
-
const [library, iconName] = parts;
|
14
|
-
const character = reactNativeVectorIcons_lookup_min_json_1.default[library][iconName];
|
15
|
-
return {
|
16
|
-
id: iconIdentifier,
|
17
|
-
type: library,
|
18
|
-
name: iconName,
|
19
|
-
character,
|
20
|
-
isDirected: (_a = directed_icons_1.default[library]) === null || _a === void 0 ? void 0 : _a[iconName],
|
21
|
-
};
|
22
|
-
}
|
23
|
-
else if (parts.length === 3) {
|
24
|
-
const [library, variant, iconName] = parts;
|
25
|
-
const character = reactNativeVectorIcons_lookup_min_json_1.default[library][variant][iconName];
|
26
|
-
return {
|
27
|
-
id: iconIdentifier,
|
28
|
-
type: library,
|
29
|
-
variant,
|
30
|
-
name: iconName,
|
31
|
-
character,
|
32
|
-
isDirected: (_b = directed_icons_1.default[library]) === null || _b === void 0 ? void 0 : _b[iconName],
|
33
|
-
};
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
return { name: iconIdentifier };
|
37
|
-
}
|
38
|
-
}
|
39
|
-
exports.getIconInfo = getIconInfo;
|
40
|
-
exports.default = reactNativeVectorIcons_lookup_min_json_1.default;
|
41
|
-
//# sourceMappingURL=index.native.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,sHAA8E;AAE9E,SAAgB,WAAW,CAAC,cAAsB;;IAChD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QACpB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAClC,MAAM,SAAS,GAAG,gDAAsB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC5D,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,QAAE,wBAAa,CAAC,OAAO,CAAC,0CAAG,QAAQ,CAAC;SACjD,CAAA;KACF;SAAM,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3C,MAAM,SAAS,GAAG,gDAAsB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;QACrE,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,QAAE,wBAAa,CAAC,OAAO,CAAC,0CAAG,QAAQ,CAAC;SACjD,CAAA;KACF;SAAM;QACL,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,CAAA;KAChC;AACH,CAAC;AA1BD,kCA0BC;AAED,kBAAe,gDAAsB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,sCAAsC,CAAC;AAE1E,wBAAgB,WAAW,CAAC,cAAc,EAAE,MAAM,OAEjD;AAED,eAAe,sBAAsB,CAAC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.getIconInfo = void 0;
|
7
|
-
const reactNativeVectorIcons_lookup_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.json"));
|
8
|
-
function getIconInfo(iconIdentifier) {
|
9
|
-
return reactNativeVectorIcons_lookup_json_1.default[iconIdentifier];
|
10
|
-
}
|
11
|
-
exports.getIconInfo = getIconInfo;
|
12
|
-
exports.default = reactNativeVectorIcons_lookup_json_1.default;
|
13
|
-
//# sourceMappingURL=index.web.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":";;;;;;AAAA,8GAA0E;AAE1E,SAAgB,WAAW,CAAC,cAAsB;IAC9C,OAAO,4CAAsB,CAAC,cAAc,CAAC,CAAC;AAClD,CAAC;AAFD,kCAEC;AAED,kBAAe,4CAAsB,CAAC"}
|