@dialpad/dialtone-emojis 1.0.0 → 1.0.1
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/index.cjs +61 -0
- package/package.json +37 -6
- package/index.js +0 -54
package/index.cjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ActivityDefault = require('./src/activity-default.json');
|
|
4
|
+
const ActivityLight = require('./src/activity-light.json');
|
|
5
|
+
const ActivityMediumLight = require('./src/activity-medium-light.json');
|
|
6
|
+
const ActivityMedium = require('./src/activity-medium.json');
|
|
7
|
+
const ActivityMediumDark = require('./src/activity-medium-dark.json');
|
|
8
|
+
const ActivityDark = require('./src/activity-dark.json');
|
|
9
|
+
const Flags = require('./src/flags.json');
|
|
10
|
+
const Food = require('./src/food.json');
|
|
11
|
+
const Nature = require('./src/nature.json');
|
|
12
|
+
const ObjectsDefault = require('./src/objects-default.json');
|
|
13
|
+
const ObjectsLight = require('./src/objects-light.json');
|
|
14
|
+
const ObjectsMediumLight = require('./src/objects-medium-light.json');
|
|
15
|
+
const ObjectsMedium = require('./src/objects-medium.json');
|
|
16
|
+
const ObjectsMediumDark = require('./src/objects-medium-dark.json');
|
|
17
|
+
const ObjectsDark = require('./src/objects-dark.json');
|
|
18
|
+
const PeopleDefault = require('./src/people-default.json');
|
|
19
|
+
const PeopleLight = require('./src/people-light.json');
|
|
20
|
+
const PeopleMediumLight = require('./src/people-medium-light.json');
|
|
21
|
+
const PeopleMedium = require('./src/people-medium.json');
|
|
22
|
+
const PeopleMediumDark = require('./src/people-medium-dark.json');
|
|
23
|
+
const PeopleDark = require('./src/people-dark.json');
|
|
24
|
+
const Symbols = require('./src/symbols.json');
|
|
25
|
+
const Travel = require('./src/travel.json');
|
|
26
|
+
|
|
27
|
+
const emojisGrouped = {
|
|
28
|
+
ActivityDefault,
|
|
29
|
+
ActivityLight,
|
|
30
|
+
ActivityMediumLight,
|
|
31
|
+
ActivityMedium,
|
|
32
|
+
ActivityMediumDark,
|
|
33
|
+
ActivityDark,
|
|
34
|
+
Flags,
|
|
35
|
+
Food,
|
|
36
|
+
Nature,
|
|
37
|
+
ObjectsDefault,
|
|
38
|
+
ObjectsLight,
|
|
39
|
+
ObjectsMediumLight,
|
|
40
|
+
ObjectsMedium,
|
|
41
|
+
ObjectsMediumDark,
|
|
42
|
+
ObjectsDark,
|
|
43
|
+
PeopleDefault,
|
|
44
|
+
PeopleLight,
|
|
45
|
+
PeopleMediumLight,
|
|
46
|
+
PeopleMedium,
|
|
47
|
+
PeopleMediumDark,
|
|
48
|
+
PeopleDark,
|
|
49
|
+
Symbols,
|
|
50
|
+
Travel,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const emojisIndexed = [].concat(...Object.values(emojisGrouped)).reduce((accumulator, item) => {
|
|
54
|
+
accumulator[item.unicode_character] = item;
|
|
55
|
+
return accumulator;
|
|
56
|
+
}, {});
|
|
57
|
+
|
|
58
|
+
module.exports = {
|
|
59
|
+
emojisGrouped,
|
|
60
|
+
emojisIndexed
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dialpad/dialtone-emojis",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Dialpad's emojis JSON data",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Dialpad",
|
|
7
|
+
"Dialtone",
|
|
8
|
+
"Emojis"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"contributors": [
|
|
12
|
+
{
|
|
13
|
+
"name": "Brad Paugh",
|
|
14
|
+
"email": "brad.paugh@dialpad.com",
|
|
15
|
+
"url": "https://github.com/braddialpad"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Francis Rupert",
|
|
19
|
+
"email": "francis.rupert@dialpad.com",
|
|
20
|
+
"url": "https://github.com/francisrupert"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Julio Ortega",
|
|
24
|
+
"email": "julio.ortega@dialpad.com",
|
|
25
|
+
"url": "https://github.com/juliodialpad"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Ignacio Ropolo",
|
|
29
|
+
"email": "ignacio.ropolo@dialpad.com",
|
|
30
|
+
"url": "https://github.com/iropolo"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Nina Repetto",
|
|
34
|
+
"email": "nina.repetto@dialpad.com",
|
|
35
|
+
"url": "https://github.com/ninamarina"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
6
38
|
"files": [
|
|
7
39
|
"src"
|
|
8
40
|
],
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"license": "ISC"
|
|
41
|
+
"main": "index.cjs",
|
|
42
|
+
"module": "index.js"
|
|
12
43
|
}
|
package/index.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import ActivityDefault from './src/activity-default.json';
|
|
2
|
-
import ActivityLight from './src/activity-light.json';
|
|
3
|
-
import ActivityMediumLight from './src/activity-medium-light.json';
|
|
4
|
-
import ActivityMedium from './src/activity-medium.json';
|
|
5
|
-
import ActivityMediumDark from './src/activity-medium-dark.json';
|
|
6
|
-
import ActivityDark from './src/activity-dark.json';
|
|
7
|
-
import Flags from './src/flags.json';
|
|
8
|
-
import Food from './src/food.json';
|
|
9
|
-
import Nature from './src/nature.json';
|
|
10
|
-
import ObjectsDefault from './src/objects-default.json';
|
|
11
|
-
import ObjectsLight from './src/objects-light.json';
|
|
12
|
-
import ObjectsMediumLight from './src/objects-medium-light.json';
|
|
13
|
-
import ObjectsMedium from './src/objects-medium.json';
|
|
14
|
-
import ObjectsMediumDark from './src/objects-medium-dark.json';
|
|
15
|
-
import ObjectsDark from './src/objects-dark.json';
|
|
16
|
-
import PeopleDefault from './src/people-default.json';
|
|
17
|
-
import PeopleLight from './src/people-light.json';
|
|
18
|
-
import PeopleMediumLight from './src/people-medium-light.json';
|
|
19
|
-
import PeopleMedium from './src/people-medium.json';
|
|
20
|
-
import PeopleMediumDark from './src/people-medium-dark.json';
|
|
21
|
-
import PeopleDark from './src/people-dark.json';
|
|
22
|
-
import Symbols from './src/symbols.json';
|
|
23
|
-
import Travel from './src/travel.json';
|
|
24
|
-
|
|
25
|
-
export const emojisGrouped = {
|
|
26
|
-
ActivityDefault,
|
|
27
|
-
ActivityLight,
|
|
28
|
-
ActivityMediumLight,
|
|
29
|
-
ActivityMedium,
|
|
30
|
-
ActivityMediumDark,
|
|
31
|
-
ActivityDark,
|
|
32
|
-
Flags,
|
|
33
|
-
Food,
|
|
34
|
-
Nature,
|
|
35
|
-
ObjectsDefault,
|
|
36
|
-
ObjectsLight,
|
|
37
|
-
ObjectsMediumLight,
|
|
38
|
-
ObjectsMedium,
|
|
39
|
-
ObjectsMediumDark,
|
|
40
|
-
ObjectsDark,
|
|
41
|
-
PeopleDefault,
|
|
42
|
-
PeopleLight,
|
|
43
|
-
PeopleMediumLight,
|
|
44
|
-
PeopleMedium,
|
|
45
|
-
PeopleMediumDark,
|
|
46
|
-
PeopleDark,
|
|
47
|
-
Symbols,
|
|
48
|
-
Travel,
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const emojisIndexed = [].concat(...Object.values(emojisGrouped)).reduce((accumulator, item) => {
|
|
52
|
-
accumulator[item.unicode_character] = item;
|
|
53
|
-
return accumulator;
|
|
54
|
-
}, {});
|