@dialpad/dialtone-emojis 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/index.cjs +61 -0
  2. package/package.json +40 -7
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,45 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-emojis",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "index.js",
3
+ "version": "1.0.2",
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
- "src"
39
+ "src",
40
+ "index.js"
8
41
  ],
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC"
42
+ "main": "index.cjs",
43
+ "module": "index.js",
44
+ "type": "module"
12
45
  }