@evlop/commons 1.0.223 → 1.0.225

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ const fonts = axios_1.default.get('https://www.googleapis.com/webfonts/v1/webfon
38
38
  .then(fonts => fonts.map(font => [font.family, font.variants.join(',')]))
39
39
  // save to file
40
40
  .then(fonts => {
41
- fs_1.writeFileSync('./src/constants/googleFontVariants.json', JSON.stringify(fonts, null, 2));
42
- fs_1.writeFileSync('./src/constants/googleFontVariants.min.json', JSON.stringify(fonts));
41
+ fs_1.writeFileSync('./src/constants/googleFonts/variants.json', JSON.stringify(fonts, null, 2));
42
+ fs_1.writeFileSync('./src/constants/googleFonts/variants.min.json', JSON.stringify(fonts));
43
43
  });
44
44
  //# sourceMappingURL=generate-google-fonts-cache.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-google-fonts-cache.js","sourceRoot":"","sources":["../../bin/generate-google-fonts-cache.ts"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2BAAkC;AAClC,mCAA8B;AAE9B,MAAM,mBAAmB,GAAG;IACxB,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ;IACrD,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;IACzD,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB;IAC9D,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ;IAC3D,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO;IACxD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW;IAC9C,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY;IAC/D,mBAAmB,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO;IACvD,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe;IAC/D,UAAU,EAAE,cAAc,EAAE,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T,kBAAa,CAAC,2CAA2C,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3F,kBAAa,CAAC,+CAA+C,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const googleFonts: {
2
+ family: string;
3
+ stylesheetUrl: string;
4
+ }[];
5
+ export default googleFonts;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;GAGrB,CAAC;AAEJ,eAAe,WAAW,CAAC"}
@@ -0,0 +1,13 @@
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
+ exports.googleFonts = void 0;
7
+ const variants_min_json_1 = __importDefault(require("./variants.min.json"));
8
+ exports.googleFonts = variants_min_json_1.default.map(([family, variants]) => ({
9
+ family,
10
+ stylesheetUrl: `https://fonts.googleapis.com/css?family=${family.replace(/ /g, '+')}:${variants}`,
11
+ }));
12
+ exports.default = exports.googleFonts;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAqD;AAExC,QAAA,WAAW,GAAG,2BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,EAAE,CAAA,CAAC;IACrE,MAAM;IACN,aAAa,EAAE,2CAA2C,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,QAAQ,EAAE;CACpG,CAAC,CAAC,CAAC;AAEJ,kBAAe,mBAAW,CAAC"}
@@ -12,5 +12,4 @@ export declare const DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887
12
12
  export { API_BASE_URL, SOCKET_URL, BUILD_VERSION };
13
13
  export { default as iconInfo, IconIdentifier, getIconInfo } from './iconInfo';
14
14
  export { i18nInstance } from './i18ninstance';
15
- export { default as googleFontVariants } from './googleFontVariants.min.json';
16
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,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI7E,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,EAAE,aAAa,EAAC,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI7E,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,EAAE,aAAa,EAAC,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.googleFontVariants = exports.i18nInstance = exports.getIconInfo = exports.iconInfo = exports.BUILD_VERSION = exports.SOCKET_URL = exports.API_BASE_URL = exports.DATA_SOURCE_KEY_NAMESPACE = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = exports.isNode = void 0;
6
+ exports.i18nInstance = exports.getIconInfo = exports.iconInfo = exports.BUILD_VERSION = exports.SOCKET_URL = exports.API_BASE_URL = exports.DATA_SOURCE_KEY_NAMESPACE = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = exports.isNode = void 0;
7
7
  const platformSpecific_1 = require("./platformSpecific");
8
8
  Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return platformSpecific_1.API_BASE_URL; } });
9
9
  Object.defineProperty(exports, "SOCKET_URL", { enumerable: true, get: function () { return platformSpecific_1.SOCKET_URL; } });
@@ -23,6 +23,4 @@ Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function ()
23
23
  Object.defineProperty(exports, "getIconInfo", { enumerable: true, get: function () { return iconInfo_1.getIconInfo; } });
24
24
  var i18ninstance_1 = require("./i18ninstance");
25
25
  Object.defineProperty(exports, "i18nInstance", { enumerable: true, get: function () { return i18ninstance_1.i18nInstance; } });
26
- var googleFontVariants_min_json_1 = require("./googleFontVariants.min.json");
27
- Object.defineProperty(exports, "googleFontVariants", { enumerable: true, get: function () { return __importDefault(googleFontVariants_min_json_1).default; } });
28
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA6E;AAoBrE,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAAE,8FApBC,gCAAa,OAoBD;AAhBlC,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,uCAA8E;AAArE,qHAAA,OAAO,OAAY;AAAkB,uGAAA,WAAW,OAAA;AACzD,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6EAA8E;AAArE,kJAAA,OAAO,OAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA6E;AAoBrE,6FApBC,+BAAY,OAoBD;AAAE,2FApBC,6BAAU,OAoBD;AAAE,8FApBC,gCAAa,OAoBD;AAhBlC,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,uCAA8E;AAArE,qHAAA,OAAO,OAAY;AAAkB,uGAAA,WAAW,OAAA;AACzD,+CAA8C;AAArC,4GAAA,YAAY,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,UAAU,IAAI;IACV,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB;AAOD,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAC,IAAI,GAAG,MAAM;;;EAK9C;;AAgBD,wBA2CC"}
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,UAAU,IAAI;IACV,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAC,IAAI,GAAG,MAAM;;;EAK9C;;AAgBD,wBA2CC"}
@@ -4,17 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.activateFont = exports.registerAppFonts = exports.registerWebFonts = exports.LOAD_GOOGLE_FONTS_FAILED = exports.LOAD_GOOGLE_FONTS_SUCCESS = exports.LOAD_GOOGLE_FONTS_STARTED = exports.ACTIVATE_FONT = exports.REGISTER_APP_FONTS = exports.REGISTER_WEB_FONTS = void 0;
7
- const googleFontVariants_min_json_1 = __importDefault(require("../constants/googleFontVariants.min.json"));
7
+ const googleFonts_1 = __importDefault(require("../constants/googleFonts"));
8
8
  exports.REGISTER_WEB_FONTS = 'REGISTER_WEB_FONTS';
9
9
  exports.REGISTER_APP_FONTS = 'REGISTER_APP_FONTS';
10
10
  exports.ACTIVATE_FONT = 'REGISTER_FONT';
11
11
  exports.LOAD_GOOGLE_FONTS_STARTED = 'LOAD_GOOGLE_FONTS_STARTED';
12
12
  exports.LOAD_GOOGLE_FONTS_SUCCESS = 'LOAD_GOOGLE_FONTS_SUCCESS';
13
13
  exports.LOAD_GOOGLE_FONTS_FAILED = 'LOAD_GOOGLE_FONTS_FAILED';
14
- const googleFonts = googleFontVariants_min_json_1.default.map(([family, variants]) => ({
15
- family,
16
- stylesheetUrl: `https://fonts.googleapis.com/css?family=${family.replace(/ /g, '+')}:${variants}`,
17
- }));
18
14
  function registerWebFonts(fonts) {
19
15
  return {
20
16
  type: exports.REGISTER_WEB_FONTS,
@@ -40,10 +36,10 @@ let initialState = {
40
36
  isLoading: false,
41
37
  isGoogleFontsLoading: false,
42
38
  isGoogleFontsLoaded: false,
43
- googleFonts,
39
+ googleFonts: googleFonts_1.default,
44
40
  appFonts: [],
45
41
  webFonts: [
46
- ...googleFonts,
42
+ ...googleFonts_1.default,
47
43
  ],
48
44
  activeFonts: [],
49
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;;;;AAAA,2GAA0E;AAE7D,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AA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
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {