@evlop/commons 1.0.224 → 1.0.225
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/googleFonts/index.d.ts +4 -1
- package/dist/src/constants/googleFonts/index.d.ts.map +1 -1
- package/dist/src/constants/googleFonts/index.js +6 -1
- package/dist/src/constants/googleFonts/index.js.map +1 -1
- package/dist/src/reducers/fonts.d.ts.map +1 -1
- package/dist/src/reducers/fonts.js +2 -6
- package/dist/src/reducers/fonts.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"
|
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"}
|
@@ -3,6 +3,11 @@ 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.googleFonts = void 0;
|
6
7
|
const variants_min_json_1 = __importDefault(require("./variants.min.json"));
|
7
|
-
exports.
|
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;
|
8
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"
|
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"}
|
@@ -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;
|
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"}
|
@@ -11,10 +11,6 @@ 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 = googleFonts_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
|
-
...
|
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,
|
1
|
+
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;;;;AAAA,2EAAmD;AAEtC,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,Q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