meemup-library 1.2.92 → 1.2.95

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.
@@ -45,6 +45,7 @@ declare class ColorController {
45
45
  };
46
46
  rgbaToHexWithAlpha(rgba: string, defaultColor?: any): any;
47
47
  hexWithAlphaToRgba(hexColor: string | null, defaultColor?: any): any;
48
+ isHexColor(input: string): boolean;
48
49
  }
49
50
  declare const _default: ColorController;
50
51
  export default _default;
@@ -160,5 +160,13 @@ class ColorController {
160
160
  const rgba = `rgba(${r}, ${g}, ${b}, ${a})`;
161
161
  return rgba;
162
162
  }
163
+ isHexColor(input) {
164
+ try {
165
+ return /^#[0-9A-F]{6}[0-9a-f]{0,2}$/i.test(input);
166
+ }
167
+ catch (_a) {
168
+ return false;
169
+ }
170
+ }
163
171
  }
164
172
  export default new ColorController();
@@ -1,5 +1,7 @@
1
1
  interface ICustomerFacingDisplaySetting {
2
2
  company: string;
3
+ logo: string;
4
+ description: string;
3
5
  port: number;
4
6
  clientName: string;
5
7
  currency: string;
@@ -1,6 +1,8 @@
1
1
  import { UDP_CUSTOMER_MONITOR_PRE_NAME } from "../../statics";
2
2
  export const initCustomerFacingDisplaySetting = {
3
3
  company: "",
4
+ logo: "",
5
+ description: "",
4
6
  port: 8000,
5
7
  clientName: UDP_CUSTOMER_MONITOR_PRE_NAME + "1",
6
8
  currency: "$",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.2.92",
3
+ "version": "1.2.95",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",