@chayns-components/emoji-input 5.0.0-beta.100 → 5.0.0-beta.105

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.
@@ -4,18 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PopupAlignment = exports.AnchorAlignment = void 0;
7
- let AnchorAlignment;
8
- exports.AnchorAlignment = AnchorAlignment;
9
- (function (AnchorAlignment) {
7
+ let AnchorAlignment = /*#__PURE__*/function (AnchorAlignment) {
10
8
  AnchorAlignment[AnchorAlignment["Bottom"] = 0] = "Bottom";
11
9
  AnchorAlignment[AnchorAlignment["Top"] = 1] = "Top";
12
- })(AnchorAlignment || (exports.AnchorAlignment = AnchorAlignment = {}));
13
- let PopupAlignment;
14
- exports.PopupAlignment = PopupAlignment;
15
- (function (PopupAlignment) {
10
+ return AnchorAlignment;
11
+ }({});
12
+ exports.AnchorAlignment = AnchorAlignment;
13
+ let PopupAlignment = /*#__PURE__*/function (PopupAlignment) {
16
14
  PopupAlignment[PopupAlignment["TopLeft"] = 0] = "TopLeft";
17
15
  PopupAlignment[PopupAlignment["BottomLeft"] = 1] = "BottomLeft";
18
16
  PopupAlignment[PopupAlignment["TopRight"] = 2] = "TopRight";
19
17
  PopupAlignment[PopupAlignment["BottomRight"] = 3] = "BottomRight";
20
- })(PopupAlignment || (exports.PopupAlignment = PopupAlignment = {}));
18
+ return PopupAlignment;
19
+ }({});
20
+ exports.PopupAlignment = PopupAlignment;
21
21
  //# sourceMappingURL=alignment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alignment.js","names":["AnchorAlignment","exports","PopupAlignment"],"sources":["../../src/constants/alignment.ts"],"sourcesContent":["export enum AnchorAlignment {\n Bottom,\n Top,\n}\n\nexport enum PopupAlignment {\n TopLeft,\n BottomLeft,\n TopRight,\n BottomRight,\n}\n"],"mappings":";;;;;;IAAYA,eAAe;AAAAC,OAAA,CAAAD,eAAA,GAAAA,eAAA;AAAA,WAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;AAAA,GAAfA,eAAe,KAAAC,OAAA,CAAAD,eAAA,GAAfA,eAAe;AAAA,IAKfE,cAAc;AAAAD,OAAA,CAAAC,cAAA,GAAAA,cAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;AAAA,GAAdA,cAAc,KAAAD,OAAA,CAAAC,cAAA,GAAdA,cAAc"}
1
+ {"version":3,"file":"alignment.js","names":["AnchorAlignment","exports","PopupAlignment"],"sources":["../../src/constants/alignment.ts"],"sourcesContent":["export enum AnchorAlignment {\n Bottom,\n Top,\n}\n\nexport enum PopupAlignment {\n TopLeft,\n BottomLeft,\n TopRight,\n BottomRight,\n}\n"],"mappings":";;;;;;IAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAfA,eAAe,CAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAAAC,OAAA,CAAAD,eAAA,GAAAA,eAAA;AAAA,IAKfE,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAAAD,OAAA,CAAAC,cAAA,GAAAA,cAAA"}
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getIsMobile = exports.getIsMacOS = exports.getDeviceType = void 0;
7
- var DeviceType;
8
- (function (DeviceType) {
7
+ var DeviceType = /*#__PURE__*/function (DeviceType) {
9
8
  DeviceType[DeviceType["Desktop"] = 0] = "Desktop";
10
9
  DeviceType[DeviceType["Smartphone"] = 1] = "Smartphone";
11
10
  DeviceType[DeviceType["Tablet"] = 2] = "Tablet";
12
- })(DeviceType || (DeviceType = {}));
11
+ return DeviceType;
12
+ }(DeviceType || {});
13
13
  const getDeviceType = () => {
14
14
  const {
15
15
  userAgent
@@ -1 +1 @@
1
- {"version":3,"file":"environment.js","names":["DeviceType","getDeviceType","userAgent","navigator","test","Smartphone","Tablet","Desktop","exports","getIsMacOS","getIsMobile","deviceType"],"sources":["../../src/utils/environment.ts"],"sourcesContent":["enum DeviceType {\n Desktop,\n Smartphone,\n Tablet,\n}\n\nexport const getDeviceType = (): DeviceType => {\n const { userAgent } = navigator;\n\n if (\n /Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(\n userAgent\n )\n ) {\n return DeviceType.Smartphone;\n }\n\n if (/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(userAgent)) {\n return DeviceType.Tablet;\n }\n\n return DeviceType.Desktop;\n};\n\nexport const getIsMacOS = () => /Mac OS X/i.test(navigator.userAgent);\n\nexport const getIsMobile = (): boolean => {\n const deviceType = getDeviceType();\n\n return deviceType === DeviceType.Smartphone || deviceType === DeviceType.Tablet;\n};\n"],"mappings":";;;;;;IAAKA,UAAU;AAAA,WAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;AAAA,GAAVA,UAAU,KAAVA,UAAU;AAMR,MAAMC,aAAa,GAAGA,CAAA,KAAkB;EAC3C,MAAM;IAAEC;EAAU,CAAC,GAAGC,SAAS;EAE/B,IACI,qGAAqG,CAACC,IAAI,CACtGF,SAAS,CACZ,EACH;IACE,OAAOF,UAAU,CAACK,UAAU;EAChC;EAEA,IAAI,kDAAkD,CAACD,IAAI,CAACF,SAAS,CAAC,EAAE;IACpE,OAAOF,UAAU,CAACM,MAAM;EAC5B;EAEA,OAAON,UAAU,CAACO,OAAO;AAC7B,CAAC;AAACC,OAAA,CAAAP,aAAA,GAAAA,aAAA;AAEK,MAAMQ,UAAU,GAAGA,CAAA,KAAM,WAAW,CAACL,IAAI,CAACD,SAAS,CAACD,SAAS,CAAC;AAACM,OAAA,CAAAC,UAAA,GAAAA,UAAA;AAE/D,MAAMC,WAAW,GAAGA,CAAA,KAAe;EACtC,MAAMC,UAAU,GAAGV,aAAa,EAAE;EAElC,OAAOU,UAAU,KAAKX,UAAU,CAACK,UAAU,IAAIM,UAAU,KAAKX,UAAU,CAACM,MAAM;AACnF,CAAC;AAACE,OAAA,CAAAE,WAAA,GAAAA,WAAA"}
1
+ {"version":3,"file":"environment.js","names":["DeviceType","getDeviceType","userAgent","navigator","test","Smartphone","Tablet","Desktop","exports","getIsMacOS","getIsMobile","deviceType"],"sources":["../../src/utils/environment.ts"],"sourcesContent":["enum DeviceType {\n Desktop,\n Smartphone,\n Tablet,\n}\n\nexport const getDeviceType = (): DeviceType => {\n const { userAgent } = navigator;\n\n if (\n /Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(\n userAgent\n )\n ) {\n return DeviceType.Smartphone;\n }\n\n if (/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(userAgent)) {\n return DeviceType.Tablet;\n }\n\n return DeviceType.Desktop;\n};\n\nexport const getIsMacOS = () => /Mac OS X/i.test(navigator.userAgent);\n\nexport const getIsMobile = (): boolean => {\n const deviceType = getDeviceType();\n\n return deviceType === DeviceType.Smartphone || deviceType === DeviceType.Tablet;\n};\n"],"mappings":";;;;;;IAAKA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA,EAAVA,UAAU;AAMR,MAAMC,aAAa,GAAGA,CAAA,KAAkB;EAC3C,MAAM;IAAEC;EAAU,CAAC,GAAGC,SAAS;EAE/B,IACI,qGAAqG,CAACC,IAAI,CACtGF,SAAS,CACZ,EACH;IACE,OAAOF,UAAU,CAACK,UAAU;EAChC;EAEA,IAAI,kDAAkD,CAACD,IAAI,CAACF,SAAS,CAAC,EAAE;IACpE,OAAOF,UAAU,CAACM,MAAM;EAC5B;EAEA,OAAON,UAAU,CAACO,OAAO;AAC7B,CAAC;AAACC,OAAA,CAAAP,aAAA,GAAAA,aAAA;AAEK,MAAMQ,UAAU,GAAGA,CAAA,KAAM,WAAW,CAACL,IAAI,CAACD,SAAS,CAACD,SAAS,CAAC;AAACM,OAAA,CAAAC,UAAA,GAAAA,UAAA;AAE/D,MAAMC,WAAW,GAAGA,CAAA,KAAe;EACtC,MAAMC,UAAU,GAAGV,aAAa,EAAE;EAElC,OAAOU,UAAU,KAAKX,UAAU,CAACK,UAAU,IAAIM,UAAU,KAAKX,UAAU,CAACM,MAAM;AACnF,CAAC;AAACE,OAAA,CAAAE,WAAA,GAAAA,WAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/emoji-input",
3
- "version": "5.0.0-beta.100",
3
+ "version": "5.0.0-beta.105",
4
4
  "description": "Input field that supports HTML elements and emojis",
5
5
  "keywords": [
6
6
  "chayns",
@@ -37,25 +37,25 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/cli": "^7.21.0",
40
- "@babel/core": "^7.21.3",
41
- "@babel/preset-env": "^7.20.2",
40
+ "@babel/core": "^7.21.4",
41
+ "@babel/preset-env": "^7.21.4",
42
42
  "@babel/preset-react": "^7.18.6",
43
- "@babel/preset-typescript": "^7.21.0",
44
- "@types/react": "^17.0.53",
43
+ "@babel/preset-typescript": "^7.21.4",
44
+ "@types/react": "^17.0.58",
45
45
  "@types/react-dom": "^17.0.19",
46
46
  "@types/styled-components": "^5.1.26",
47
47
  "@types/uuid": "^9.0.1",
48
48
  "babel-loader": "^8.3.0",
49
- "lerna": "^6.5.1",
49
+ "lerna": "^6.6.1",
50
50
  "react": "^17.0.2",
51
51
  "react-dom": "^17.0.2",
52
52
  "typescript": "^4.9.5"
53
53
  },
54
54
  "dependencies": {
55
- "@chayns-components/core": "^5.0.0-beta.98",
55
+ "@chayns-components/core": "^5.0.0-beta.105",
56
56
  "@chayns/colors": "^2.0.0",
57
57
  "clsx": "^1.2.1",
58
- "emojilib": "^3.0.9",
58
+ "emojilib": "^3.0.10",
59
59
  "framer-motion": "^6.5.1",
60
60
  "styled-components": "^5.3.9",
61
61
  "unicode-emoji-json": "^0.5.0",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "0264e52ed569a8ece2a7a2449e0fa30fbf89aa7b"
71
+ "gitHead": "e22fc61291eefa6633fb92097194be11baf60e71"
72
72
  }