@evlop/commons 1.0.135 → 1.0.136
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/dist/bin/generate-icons-type.d.ts +2 -0
- package/dist/bin/generate-icons-type.d.ts.map +1 -0
- package/dist/bin/generate-icons-type.js +29 -0
- package/dist/bin/generate-icons-type.js.map +1 -0
- package/dist/src/constants/iconInfo/index.d.ts +4 -2
- package/dist/src/constants/iconInfo/index.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/index.js +2 -1
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts +1 -32
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/constants/index.d.ts +1 -1
- package/dist/src/constants/index.d.ts.map +1 -1
- package/dist/src/constants/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/generateIcons.d.ts +0 -2
- package/dist/generateIcons.d.ts.map +0 -1
- package/dist/generateIcons.js +0 -13
- package/dist/generateIcons.js.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generate-icons-type.d.ts","sourceRoot":"","sources":["../../bin/generate-icons-type.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,29 @@
|
|
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
|
+
const change_case_1 = require("change-case");
|
7
|
+
const lodash_1 = require("lodash");
|
8
|
+
const reactNativeVectorIcons_1 = __importDefault(require("../src/constants/iconInfo/reactNativeVectorIcons"));
|
9
|
+
const iconByTypes = lodash_1.groupBy(reactNativeVectorIcons_1.default, icon => lodash_1.filter(lodash_1.at(icon, 'type', 'variant')).join(':'));
|
10
|
+
const iconTypeToIconNames = lodash_1.mapValues(iconByTypes, icons => lodash_1.map(icons, 'name'));
|
11
|
+
const icons = lodash_1.reduce(iconTypeToIconNames, ({ typeNames, typeDefinations }, iconNames, iconType) => {
|
12
|
+
const iconsNamesTypeName = change_case_1.pascalCase(iconType);
|
13
|
+
const identifierTypeName = change_case_1.pascalCase(iconType) + 'IconIdentifier';
|
14
|
+
const typeDefination = [
|
15
|
+
`type ${iconsNamesTypeName} = ${lodash_1.join(iconNames.map(iconName => JSON.stringify(iconName)), '|')}`,
|
16
|
+
`type ${identifierTypeName} = \`${iconType}:\${${iconsNamesTypeName}}\``,
|
17
|
+
].join("\n");
|
18
|
+
return { typeNames: [...typeNames, identifierTypeName], typeDefinations: [...typeDefinations, typeDefination] };
|
19
|
+
}, { typeNames: [], typeDefinations: [] });
|
20
|
+
require('fs').writeFileSync('./src/constants/iconInfo/types.d.ts', [
|
21
|
+
...icons.typeDefinations,
|
22
|
+
`export type IconIdentifier = ${lodash_1.join(icons.typeNames, '|')};`,
|
23
|
+
'',
|
24
|
+
'export type ReactNativeVectorIcons = {[key in IconIdentifier]: Object};',
|
25
|
+
'',
|
26
|
+
'export default IconIdentifier;',
|
27
|
+
].join('\n'));
|
28
|
+
console.log("Generated icon types");
|
29
|
+
//# sourceMappingURL=generate-icons-type.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generate-icons-type.js","sourceRoot":"","sources":["../../bin/generate-icons-type.ts"],"names":[],"mappings":";;;;;AAAA,6CAAyC;AACzC,mCAA2E;AAC3E,8GAAsF;AAEtF,MAAM,WAAW,GAAG,gBAAO,CAAC,gCAAsB,EAAE,IAAI,CAAA,EAAE,CAAC,eAAM,CAAC,WAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1G,MAAM,mBAAmB,GAAG,kBAA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eVectorIcons } from './types';
|
2
|
+
declare const icons: ReactNativeVectorIcons;
|
3
|
+
export { IconIdentifier, ReactNativeVectorIcons };
|
4
|
+
export default icons;
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjE,QAAA,MAAM,KAAK,wBAA+B,CAAE;AAE5C,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,CAAA;AACjD,eAAe,KAAK,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;AAEA,MAAM,KAAK,GAAG,EAA4B,CAAE;AAG5C,kBAAe,KAAK,CAAC"}
|
@@ -1,34 +1,3 @@
|
|
1
|
-
import Entypo from 'react-native-vector-icons/glyphmaps/Entypo.json';
|
2
|
-
import Evilicon from 'react-native-vector-icons/glyphmaps/EvilIcons.json';
|
3
|
-
import Feather from 'react-native-vector-icons/glyphmaps/Feather.json';
|
4
|
-
import FontAwesome from 'react-native-vector-icons/glyphmaps/FontAwesome.json';
|
5
|
-
import FontAwesome5_meta from 'react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json';
|
6
|
-
import FontAwesome5 from 'react-native-vector-icons/glyphmaps/FontAwesome5Free.json';
|
7
|
-
import Fontisto from 'react-native-vector-icons/glyphmaps/Fontisto.json';
|
8
|
-
import Foundation from 'react-native-vector-icons/glyphmaps/Foundation.json';
|
9
|
-
import Ionicon from 'react-native-vector-icons/glyphmaps/Ionicons.json';
|
10
|
-
import MaterialCommunity from 'react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json';
|
11
|
-
import Material from 'react-native-vector-icons/glyphmaps/MaterialIcons.json';
|
12
|
-
import Octicon from 'react-native-vector-icons/glyphmaps/Octicons.json';
|
13
|
-
import SimpleLineIcon from 'react-native-vector-icons/glyphmaps/SimpleLineIcons.json';
|
14
|
-
import Zocial from 'react-native-vector-icons/glyphmaps/Zocial.json';
|
15
|
-
declare type FaIcons = typeof FontAwesome5_meta;
|
16
|
-
declare type FA5IconVariant = keyof FaIcons;
|
17
|
-
declare type Fa5IconName = keyof (typeof FontAwesome5);
|
18
|
-
declare type Fa5Icon = `font-awesome-5:${FA5IconVariant}:${Fa5IconName}`;
|
19
|
-
declare type EntypoIcon = `entypo:${keyof (typeof Entypo)}`;
|
20
|
-
declare type EvilIcon = `evilicon:${keyof (typeof Evilicon)}`;
|
21
|
-
declare type FeatherIcon = `fetther:${keyof (typeof Feather)}`;
|
22
|
-
declare type FontAwesomeIcon = `font-awesome:${keyof (typeof FontAwesome)}`;
|
23
|
-
declare type FontistoIcon = `fontisto:${keyof (typeof Fontisto)}`;
|
24
|
-
declare type FoundationIcon = `foundation:${keyof (typeof Foundation)}`;
|
25
|
-
declare type IoniconIcon = `ionicon:${keyof (typeof Ionicon)}`;
|
26
|
-
declare type MaterialCommunityIcon = `material-community:${keyof (typeof MaterialCommunity)}`;
|
27
|
-
declare type MaterialIcon = `material:${keyof (typeof Material)}`;
|
28
|
-
declare type OcticonIcon = `octicon:${keyof (typeof Octicon)}`;
|
29
|
-
declare type SimpleLineIconIcon = `simple-line-icon:${keyof (typeof SimpleLineIcon)}`;
|
30
|
-
declare type ZocialIcon = `zocial:${keyof (typeof Zocial)}`;
|
31
|
-
export declare type IconIdentifier = Fa5Icon | EntypoIcon | EvilIcon | FeatherIcon | FontAwesomeIcon | FontistoIcon | FoundationIcon | IoniconIcon | MaterialCommunityIcon | MaterialIcon | OcticonIcon | SimpleLineIconIcon | ZocialIcon;
|
32
1
|
declare const reactNativeVectorIcons: {
|
33
2
|
[x: string]: {
|
34
3
|
id: string;
|
@@ -38,8 +7,8 @@ declare const reactNativeVectorIcons: {
|
|
38
7
|
character: any;
|
39
8
|
} | {
|
40
9
|
id: string;
|
41
|
-
name: string;
|
42
10
|
type: string;
|
11
|
+
name: string;
|
43
12
|
character: never;
|
44
13
|
};
|
45
14
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"AAqDA,QAAA,MAAO,sBAAsB;;;;;;;;;;;;;CAAgC,CAAC;AAE9D,eAAe,sBAAsB,CAAA"}
|
@@ -35,8 +35,8 @@ const vectorIcons = lodash_1.chain(iconLibraries)
|
|
35
35
|
.mapValues((libraryIcons) => lodash_1.map(libraryIcons, (character, name) => ({ character, name })))
|
36
36
|
.flatMap((iconsOfCurrentType, iconLibrary) => lodash_1.map(iconsOfCurrentType, ({ name: iconName, character }) => ({
|
37
37
|
id: `${change_case_1.paramCase(iconLibrary)}:${iconName}`,
|
38
|
-
name: iconName,
|
39
38
|
type: change_case_1.paramCase(iconLibrary),
|
39
|
+
name: iconName,
|
40
40
|
character
|
41
41
|
})))
|
42
42
|
.keyBy('id')
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA0E;AAC1E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAAqF;AACrF,sGAAyE;AACzE,0GAA6E;A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ESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
|
12
12
|
export { API_BASE_URL, SOCKET_URL };
|
13
|
-
export { default as iconInfo } from './iconInfo';
|
13
|
+
export { default as iconInfo, IconIdentifier } from './iconInfo';
|
14
14
|
export { i18nInstance } from './i18ninstance';
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAI9D,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAI9D,eAAO,MAAM,MAAM,SAAiC,CAAC;AAErD,eAAO,MAAM,MAAM,SAA0E,CAAC;AAE9F,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAoBtD,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAhBnB,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAoBtD,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAhBnB,QAAA,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC;AAExC,QAAA,MAAM,GAAG,cAAM,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjF,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAAiE;AAAxD,qHAAA,OAAO,OAAY;AAC5B,+CAA8C;AAArC,4GAAA,YAAY,OAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@evlop/commons",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.136",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/main.js",
|
6
6
|
"peerDependencies": {
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"docs": "jsdoc -c jsdoc.json",
|
37
37
|
"dev": "tsc --watch",
|
38
38
|
"test": "mocha -r ts-node/register src/**/*.test.ts",
|
39
|
-
"build": "tsc",
|
39
|
+
"build": " ts-node bin/generate-icons-type.ts && tsc",
|
40
40
|
"generate-icon-names": "ts-node ./generateIcons.ts"
|
41
41
|
},
|
42
42
|
"files": [
|
package/dist/generateIcons.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"generateIcons.d.ts","sourceRoot":"","sources":["../generateIcons.ts"],"names":[],"mappings":""}
|
package/dist/generateIcons.js
DELETED
@@ -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
|
-
const lodash_1 = require("lodash");
|
7
|
-
const change_case_1 = require("change-case");
|
8
|
-
const iconInfo_1 = __importDefault(require("./src/constants/iconInfo"));
|
9
|
-
require('fs').writeFileSync('./src/constants/icons.ts', [
|
10
|
-
'const icons = ' + JSON.stringify(lodash_1.chain(Object.keys(iconInfo_1.default)).mapKeys(k => change_case_1.constantCase(k)).mapValues(k => k).value(), null, 2),
|
11
|
-
'export default icons;'
|
12
|
-
].join('\n'));
|
13
|
-
//# sourceMappingURL=generateIcons.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"generateIcons.js","sourceRoot":"","sources":["../generateIcons.ts"],"names":[],"mappings":";;;;;AAAA,mCAA+B;AAC/B,6CAA2C;AAC3C,wEAAgD;AAEhD,OAAO,CAAC,IAAI,CAAC,CAAC,aAAa,CACzB,0BAA0B,EAC1B;IACE,gBAAgB,GAAC,IAAI,CAAC,SAAS,CAAC,cAAK,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA,EAAE,CAAA,0BAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1H,uBAAuB;CACxB,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC"}
|