@payloadcms/richtext-slate 3.0.0-alpha.61 → 3.0.0-alpha.62
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.
- package/dist/data/validation.js +3 -3
- package/dist/data/validation.js.map +1 -1
- package/dist/generateComponentMap.d.ts.map +1 -1
- package/dist/generateComponentMap.js +3 -1
- package/dist/generateComponentMap.js.map +1 -1
- package/dist/scss/app.scss +2 -3
- package/dist/scss/vars.scss +0 -7
- package/package.json +15 -9
- package/dist/scss/fonts.scss +0 -75
package/dist/data/validation.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defaultRichTextValue } from './defaultValue.js';
|
|
2
|
-
export const richTextValidate = (value, { required })=>{
|
|
2
|
+
export const richTextValidate = (value, { req, required })=>{
|
|
3
|
+
const { t } = req;
|
|
3
4
|
if (required) {
|
|
4
5
|
const stringifiedDefaultValue = JSON.stringify(defaultRichTextValue);
|
|
5
6
|
if (value && JSON.stringify(value) !== stringifiedDefaultValue) return true;
|
|
6
|
-
|
|
7
|
-
return 'This field is required.';
|
|
7
|
+
return t('validation:required');
|
|
8
8
|
}
|
|
9
9
|
return true;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/data/validation.ts"],"sourcesContent":["import type { RichTextField, Validate } from 'payload/types'\n\nimport type { AdapterArguments } from '../types.js'\n\nimport { defaultRichTextValue } from './defaultValue.js'\n\nexport const richTextValidate: Validate<\n unknown[],\n unknown,\n RichTextField<any[], AdapterArguments>,\n RichTextField<any[], AdapterArguments>\n> = (value, { required }) => {\n if (required) {\n const stringifiedDefaultValue = JSON.stringify(defaultRichTextValue)\n if (value && JSON.stringify(value) !== stringifiedDefaultValue) return true\n
|
|
1
|
+
{"version":3,"sources":["../../src/data/validation.ts"],"sourcesContent":["import type { RichTextField, Validate } from 'payload/types'\n\nimport type { AdapterArguments } from '../types.js'\n\nimport { defaultRichTextValue } from './defaultValue.js'\n\nexport const richTextValidate: Validate<\n unknown[],\n unknown,\n RichTextField<any[], AdapterArguments>,\n RichTextField<any[], AdapterArguments>\n> = (value, { req, required }) => {\n const { t } = req\n if (required) {\n const stringifiedDefaultValue = JSON.stringify(defaultRichTextValue)\n if (value && JSON.stringify(value) !== stringifiedDefaultValue) return true\n return t('validation:required')\n }\n\n return true\n}\n"],"names":["defaultRichTextValue","richTextValidate","value","req","required","t","stringifiedDefaultValue","JSON","stringify"],"rangeMappings":";;;;;;;;;","mappings":"AAIA,SAASA,oBAAoB,QAAQ,oBAAmB;AAExD,OAAO,MAAMC,mBAKT,CAACC,OAAO,EAAEC,GAAG,EAAEC,QAAQ,EAAE;IAC3B,MAAM,EAAEC,CAAC,EAAE,GAAGF;IACd,IAAIC,UAAU;QACZ,MAAME,0BAA0BC,KAAKC,SAAS,CAACR;QAC/C,IAAIE,SAASK,KAAKC,SAAS,CAACN,WAAWI,yBAAyB,OAAO;QACvE,OAAOD,EAAE;IACX;IAEA,OAAO;AACT,EAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateComponentMap.d.ts","sourceRoot":"","sources":["../src/generateComponentMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAMpD,OAAO,KAAK,EAAE,gBAAgB,EAA6C,MAAM,YAAY,CAAA;AAQ7F,eAAO,MAAM,uBAAuB,SAC3B,gBAAgB,KAAG,eAAe,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"generateComponentMap.d.ts","sourceRoot":"","sources":["../src/generateComponentMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAMpD,OAAO,KAAK,EAAE,gBAAgB,EAA6C,MAAM,YAAY,CAAA;AAQ7F,eAAO,MAAM,uBAAuB,SAC3B,gBAAgB,KAAG,eAAe,CAAC,sBAAsB,CAiH/D,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { linkFieldsSchemaPath } from './field/elements/link/shared.js';
|
|
|
6
6
|
import { transformExtraFields } from './field/elements/link/utilities.js';
|
|
7
7
|
import { uploadFieldsSchemaPath } from './field/elements/upload/shared.js';
|
|
8
8
|
import { defaultLeaves as leafTypes } from './field/leaves/index.js';
|
|
9
|
-
export const getGenerateComponentMap = (args)=>({ config, i18n })=>{
|
|
9
|
+
export const getGenerateComponentMap = (args)=>({ WithServerSideProps, config, i18n })=>{
|
|
10
10
|
const componentMap = new Map();
|
|
11
11
|
const validRelationships = config.collections.map((c)=>c.slug) || [];
|
|
12
12
|
(args?.admin?.leaves || Object.values(leafTypes)).forEach((leaf)=>{
|
|
@@ -54,6 +54,7 @@ export const getGenerateComponentMap = (args)=>({ config, i18n })=>{
|
|
|
54
54
|
validRelationships
|
|
55
55
|
});
|
|
56
56
|
const mappedFields = mapFields({
|
|
57
|
+
WithServerSideProps,
|
|
57
58
|
config,
|
|
58
59
|
fieldSchema: linkFields,
|
|
59
60
|
i18n,
|
|
@@ -78,6 +79,7 @@ export const getGenerateComponentMap = (args)=>({ config, i18n })=>{
|
|
|
78
79
|
validRelationships
|
|
79
80
|
});
|
|
80
81
|
const mappedFields = mapFields({
|
|
82
|
+
WithServerSideProps,
|
|
81
83
|
config,
|
|
82
84
|
fieldSchema: uploadFields,
|
|
83
85
|
i18n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/generateComponentMap.tsx"],"sourcesContent":["import type { RichTextAdapter } from 'payload/types'\n\nimport { mapFields } from '@payloadcms/ui/utilities/buildComponentMap'\nimport { sanitizeFields } from 'payload/config'\nimport React from 'react'\n\nimport type { AdapterArguments, RichTextCustomElement, RichTextCustomLeaf } from './types.js'\n\nimport { elements as elementTypes } from './field/elements/index.js'\nimport { linkFieldsSchemaPath } from './field/elements/link/shared.js'\nimport { transformExtraFields } from './field/elements/link/utilities.js'\nimport { uploadFieldsSchemaPath } from './field/elements/upload/shared.js'\nimport { defaultLeaves as leafTypes } from './field/leaves/index.js'\n\nexport const getGenerateComponentMap =\n (args: AdapterArguments): RichTextAdapter['generateComponentMap'] =>\n ({ config, i18n }) => {\n const componentMap = new Map()\n\n const validRelationships = config.collections.map((c) => c.slug) || []\n\n ;(args?.admin?.leaves || Object.values(leafTypes)).forEach((leaf) => {\n let leafObject: RichTextCustomLeaf\n\n if (typeof leaf === 'object' && leaf !== null) {\n leafObject = leaf\n } else if (typeof leaf === 'string' && leafTypes[leaf]) {\n leafObject = leafTypes[leaf]\n }\n\n if (leafObject) {\n const LeafButton = leafObject.Button\n const LeafComponent = leafObject.Leaf\n\n componentMap.set(`leaf.button.${leafObject.name}`, <LeafButton />)\n componentMap.set(`leaf.component.${leafObject.name}`, <LeafComponent />)\n\n if (Array.isArray(leafObject.plugins)) {\n leafObject.plugins.forEach((Plugin, i) => {\n componentMap.set(`leaf.plugin.${leafObject.name}.${i}`, <Plugin />)\n })\n }\n }\n })\n ;(args?.admin?.elements || Object.values(elementTypes)).forEach((el) => {\n let element: RichTextCustomElement\n\n if (typeof el === 'object' && el !== null) {\n element = el\n } else if (typeof el === 'string' && elementTypes[el]) {\n element = elementTypes[el]\n }\n\n if (element) {\n const ElementButton = element.Button\n const ElementComponent = element.Element\n\n if (ElementButton) componentMap.set(`element.button.${element.name}`, <ElementButton />)\n componentMap.set(`element.component.${element.name}`, <ElementComponent />)\n\n if (Array.isArray(element.plugins)) {\n element.plugins.forEach((Plugin, i) => {\n componentMap.set(`element.plugin.${element.name}.${i}`, <Plugin />)\n })\n }\n\n switch (element.name) {\n case 'link': {\n const linkFields = sanitizeFields({\n config,\n fields: transformExtraFields(args.admin?.link?.fields, config, i18n),\n validRelationships,\n })\n\n const mappedFields = mapFields({\n config,\n fieldSchema: linkFields,\n i18n,\n readOnly: false,\n })\n\n componentMap.set(linkFieldsSchemaPath, mappedFields)\n\n break\n }\n\n case 'upload': {\n const uploadEnabledCollections = config.collections.filter(\n ({ admin: { enableRichTextRelationship, hidden }, upload }) => {\n if (hidden === true) {\n return false\n }\n\n return enableRichTextRelationship && Boolean(upload) === true\n },\n )\n\n uploadEnabledCollections.forEach((collection) => {\n if (args?.admin?.upload?.collections[collection.slug]?.fields) {\n const uploadFields = sanitizeFields({\n config,\n fields: args?.admin?.upload?.collections[collection.slug]?.fields,\n validRelationships,\n })\n\n const mappedFields = mapFields({\n config,\n fieldSchema: uploadFields,\n i18n,\n readOnly: false,\n })\n\n componentMap.set(`${uploadFieldsSchemaPath}.${collection.slug}`, mappedFields)\n }\n })\n\n break\n }\n\n case 'relationship':\n break\n }\n }\n })\n\n return componentMap\n }\n"],"names":["mapFields","sanitizeFields","React","elements","elementTypes","linkFieldsSchemaPath","transformExtraFields","uploadFieldsSchemaPath","defaultLeaves","leafTypes","getGenerateComponentMap","args","config","i18n","componentMap","Map","validRelationships","collections","map","c","slug","admin","leaves","Object","values","forEach","leaf","leafObject","LeafButton","Button","LeafComponent","Leaf","set","name","Array","isArray","plugins","Plugin","i","el","element","ElementButton","ElementComponent","Element","linkFields","fields","link","mappedFields","fieldSchema","readOnly","uploadEnabledCollections","filter","enableRichTextRelationship","hidden","upload","Boolean","collection","uploadFields"],"rangeMappings":"
|
|
1
|
+
{"version":3,"sources":["../src/generateComponentMap.tsx"],"sourcesContent":["import type { RichTextAdapter } from 'payload/types'\n\nimport { mapFields } from '@payloadcms/ui/utilities/buildComponentMap'\nimport { sanitizeFields } from 'payload/config'\nimport React from 'react'\n\nimport type { AdapterArguments, RichTextCustomElement, RichTextCustomLeaf } from './types.js'\n\nimport { elements as elementTypes } from './field/elements/index.js'\nimport { linkFieldsSchemaPath } from './field/elements/link/shared.js'\nimport { transformExtraFields } from './field/elements/link/utilities.js'\nimport { uploadFieldsSchemaPath } from './field/elements/upload/shared.js'\nimport { defaultLeaves as leafTypes } from './field/leaves/index.js'\n\nexport const getGenerateComponentMap =\n (args: AdapterArguments): RichTextAdapter['generateComponentMap'] =>\n ({ WithServerSideProps, config, i18n }) => {\n const componentMap = new Map()\n\n const validRelationships = config.collections.map((c) => c.slug) || []\n\n ;(args?.admin?.leaves || Object.values(leafTypes)).forEach((leaf) => {\n let leafObject: RichTextCustomLeaf\n\n if (typeof leaf === 'object' && leaf !== null) {\n leafObject = leaf\n } else if (typeof leaf === 'string' && leafTypes[leaf]) {\n leafObject = leafTypes[leaf]\n }\n\n if (leafObject) {\n const LeafButton = leafObject.Button\n const LeafComponent = leafObject.Leaf\n\n componentMap.set(`leaf.button.${leafObject.name}`, <LeafButton />)\n componentMap.set(`leaf.component.${leafObject.name}`, <LeafComponent />)\n\n if (Array.isArray(leafObject.plugins)) {\n leafObject.plugins.forEach((Plugin, i) => {\n componentMap.set(`leaf.plugin.${leafObject.name}.${i}`, <Plugin />)\n })\n }\n }\n })\n ;(args?.admin?.elements || Object.values(elementTypes)).forEach((el) => {\n let element: RichTextCustomElement\n\n if (typeof el === 'object' && el !== null) {\n element = el\n } else if (typeof el === 'string' && elementTypes[el]) {\n element = elementTypes[el]\n }\n\n if (element) {\n const ElementButton = element.Button\n const ElementComponent = element.Element\n\n if (ElementButton) componentMap.set(`element.button.${element.name}`, <ElementButton />)\n componentMap.set(`element.component.${element.name}`, <ElementComponent />)\n\n if (Array.isArray(element.plugins)) {\n element.plugins.forEach((Plugin, i) => {\n componentMap.set(`element.plugin.${element.name}.${i}`, <Plugin />)\n })\n }\n\n switch (element.name) {\n case 'link': {\n const linkFields = sanitizeFields({\n config,\n fields: transformExtraFields(args.admin?.link?.fields, config, i18n),\n validRelationships,\n })\n\n const mappedFields = mapFields({\n WithServerSideProps,\n config,\n fieldSchema: linkFields,\n i18n,\n readOnly: false,\n })\n\n componentMap.set(linkFieldsSchemaPath, mappedFields)\n\n break\n }\n\n case 'upload': {\n const uploadEnabledCollections = config.collections.filter(\n ({ admin: { enableRichTextRelationship, hidden }, upload }) => {\n if (hidden === true) {\n return false\n }\n\n return enableRichTextRelationship && Boolean(upload) === true\n },\n )\n\n uploadEnabledCollections.forEach((collection) => {\n if (args?.admin?.upload?.collections[collection.slug]?.fields) {\n const uploadFields = sanitizeFields({\n config,\n fields: args?.admin?.upload?.collections[collection.slug]?.fields,\n validRelationships,\n })\n\n const mappedFields = mapFields({\n WithServerSideProps,\n config,\n fieldSchema: uploadFields,\n i18n,\n readOnly: false,\n })\n\n componentMap.set(`${uploadFieldsSchemaPath}.${collection.slug}`, mappedFields)\n }\n })\n\n break\n }\n\n case 'relationship':\n break\n }\n }\n })\n\n return componentMap\n }\n"],"names":["mapFields","sanitizeFields","React","elements","elementTypes","linkFieldsSchemaPath","transformExtraFields","uploadFieldsSchemaPath","defaultLeaves","leafTypes","getGenerateComponentMap","args","WithServerSideProps","config","i18n","componentMap","Map","validRelationships","collections","map","c","slug","admin","leaves","Object","values","forEach","leaf","leafObject","LeafButton","Button","LeafComponent","Leaf","set","name","Array","isArray","plugins","Plugin","i","el","element","ElementButton","ElementComponent","Element","linkFields","fields","link","mappedFields","fieldSchema","readOnly","uploadEnabledCollections","filter","enableRichTextRelationship","hidden","upload","Boolean","collection","uploadFields"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAEA,SAASA,SAAS,QAAQ,6CAA4C;AACtE,SAASC,cAAc,QAAQ,iBAAgB;AAC/C,OAAOC,WAAW,QAAO;AAIzB,SAASC,YAAYC,YAAY,QAAQ,4BAA2B;AACpE,SAASC,oBAAoB,QAAQ,kCAAiC;AACtE,SAASC,oBAAoB,QAAQ,qCAAoC;AACzE,SAASC,sBAAsB,QAAQ,oCAAmC;AAC1E,SAASC,iBAAiBC,SAAS,QAAQ,0BAAyB;AAEpE,OAAO,MAAMC,0BACX,CAACC,OACD,CAAC,EAAEC,mBAAmB,EAAEC,MAAM,EAAEC,IAAI,EAAE;QACpC,MAAMC,eAAe,IAAIC;QAEzB,MAAMC,qBAAqBJ,OAAOK,WA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CAEA,MAAM+B,eAAehD,UAAU;wCAC7BY;wCACAC;wCACAoC,aAAaS;wCACb5C;wCACAoC,UAAU;oCACZ;oCAEAnC,aAAakB,GAAG,CAAC,CAAC,EAAE1B,uBAAuB,CAAC,EAAEkD,WAAWpC,IAAI,CAAC,CAAC,EAAE2B;gCACnE;4BACF;4BAEA;wBACF;oBAEA,KAAK;wBACH;gBACJ;YACF;QACF;QAEA,OAAOjC;IACT,EAAC"}
|
package/dist/scss/app.scss
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@import 'fonts';
|
|
2
1
|
@import 'styles';
|
|
3
2
|
@import './toastify.scss';
|
|
4
3
|
@import './colors.scss';
|
|
@@ -20,9 +19,9 @@
|
|
|
20
19
|
--theme-overlay: rgba(5, 5, 5, 0.5);
|
|
21
20
|
--theme-baseline: #{$baseline-px};
|
|
22
21
|
--theme-baseline-body-size: #{$baseline-body-size};
|
|
23
|
-
--font-body: '
|
|
22
|
+
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
23
|
+
sans-serif;
|
|
24
24
|
--font-mono: monospace;
|
|
25
|
-
--font-serif: 'Merriweather', serif;
|
|
26
25
|
|
|
27
26
|
--style-radius-s: #{$style-radius-s};
|
|
28
27
|
--style-radius-m: #{$style-radius-m};
|
package/dist/scss/vars.scss
CHANGED
|
@@ -21,13 +21,6 @@ $baseline: math.div($baseline-px, $baseline-body-size) + rem;
|
|
|
21
21
|
@return (math.div($baseline-px, $baseline-body-size) * $multiplier) + rem;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
//////////////////////////////
|
|
25
|
-
// FONTS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
|
26
|
-
//////////////////////////////
|
|
27
|
-
|
|
28
|
-
$font-body: 'Suisse Intl' !default;
|
|
29
|
-
$font-mono: monospace !default;
|
|
30
|
-
|
|
31
24
|
//////////////////////////////
|
|
32
25
|
// COLORS (DEPRECATED. DO NOT USE. PREFER CSS VARIABLES)
|
|
33
26
|
//////////////////////////////
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/richtext-slate",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.62",
|
|
4
4
|
"description": "The officially supported Slate richtext adapter for Payload",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,21 +25,27 @@
|
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "20.12.5",
|
|
27
27
|
"@types/react": "18.2.74",
|
|
28
|
-
"@payloadcms/
|
|
29
|
-
"payload": "3.0.0-alpha.
|
|
30
|
-
"@payloadcms/
|
|
28
|
+
"@payloadcms/eslint-config": "1.1.1",
|
|
29
|
+
"payload": "3.0.0-alpha.62",
|
|
30
|
+
"@payloadcms/ui": "3.0.0-alpha.62"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"
|
|
34
|
-
"@payloadcms/
|
|
35
|
-
"
|
|
33
|
+
"@payloadcms/translations": "3.0.0-alpha.62",
|
|
34
|
+
"@payloadcms/ui": "3.0.0-alpha.62",
|
|
35
|
+
"payload": "3.0.0-alpha.62"
|
|
36
|
+
},
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"import": "./dist/index.js",
|
|
40
|
+
"require": "./dist/index.js",
|
|
41
|
+
"types": "./dist/index.d.ts"
|
|
42
|
+
}
|
|
36
43
|
},
|
|
37
|
-
"exports": null,
|
|
38
44
|
"publishConfig": {
|
|
39
45
|
"registry": "https://registry.npmjs.org/"
|
|
40
46
|
},
|
|
41
47
|
"engines": {
|
|
42
|
-
"node": ">=18.
|
|
48
|
+
"node": ">=18.20.2"
|
|
43
49
|
},
|
|
44
50
|
"files": [
|
|
45
51
|
"dist"
|
package/dist/scss/fonts.scss
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Suisse Intl';
|
|
3
|
-
src:
|
|
4
|
-
url('../assets/fonts/SuisseIntl.woff2') format('woff2'),
|
|
5
|
-
url('../assets/fonts/SuisseIntl.woff') format('woff');
|
|
6
|
-
font-weight: normal;
|
|
7
|
-
font-style: normal;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@font-face {
|
|
11
|
-
font-family: 'Suisse Intl';
|
|
12
|
-
src:
|
|
13
|
-
url('../assets/fonts/SuisseIntl-Medium.woff2') format('woff2'),
|
|
14
|
-
url('../assets/fonts/SuisseIntl-Medium.woff') format('woff');
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
font-style: normal;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@font-face {
|
|
20
|
-
font-family: 'Suisse Intl';
|
|
21
|
-
src:
|
|
22
|
-
url('../assets/fonts/SuisseIntl-SemiBold.woff2') format('woff2'),
|
|
23
|
-
url('../assets/fonts/SuisseIntl-SemiBold.woff') format('woff');
|
|
24
|
-
font-weight: 600;
|
|
25
|
-
font-style: normal;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@font-face {
|
|
29
|
-
font-family: 'Suisse Intl';
|
|
30
|
-
src:
|
|
31
|
-
url('../assets/fonts/SuisseIntl-Bold.woff2') format('woff2'),
|
|
32
|
-
url('../assets/fonts/SuisseIntl-Bold.woff') format('woff');
|
|
33
|
-
font-weight: bold;
|
|
34
|
-
font-style: normal;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@font-face {
|
|
38
|
-
font-family: 'Merriweather';
|
|
39
|
-
font-style: normal;
|
|
40
|
-
font-weight: 400;
|
|
41
|
-
src:
|
|
42
|
-
local(''),
|
|
43
|
-
url('../assets/fonts/merriweather-v30-latin-regular.woff2') format('woff2'),
|
|
44
|
-
url('../assets/fonts/merriweather-v30-latin-regular.woff') format('woff');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@font-face {
|
|
48
|
-
font-family: 'Merriweather';
|
|
49
|
-
font-style: italic;
|
|
50
|
-
font-weight: 400;
|
|
51
|
-
src:
|
|
52
|
-
local(''),
|
|
53
|
-
url('../assets/fonts/merriweather-v30-latin-italic.woff2') format('woff2'),
|
|
54
|
-
url('../assets/fonts/merriweather-v30-latin-italic.woff') format('woff');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@font-face {
|
|
58
|
-
font-family: 'Merriweather';
|
|
59
|
-
font-style: normal;
|
|
60
|
-
font-weight: 900;
|
|
61
|
-
src:
|
|
62
|
-
local(''),
|
|
63
|
-
url('../assets/fonts/merriweather-v30-latin-900.woff2') format('woff2'),
|
|
64
|
-
url('../assets/fonts/merriweather-v30-latin-900.woff') format('woff');
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@font-face {
|
|
68
|
-
font-family: 'Merriweather';
|
|
69
|
-
font-style: italic;
|
|
70
|
-
font-weight: 900;
|
|
71
|
-
src:
|
|
72
|
-
local(''),
|
|
73
|
-
url('../assets/fonts/merriweather-v30-latin-900italic.woff2') format('woff2'),
|
|
74
|
-
url('../assets/fonts/merriweather-v30-latin-900italic.woff') format('woff');
|
|
75
|
-
}
|