@appsemble/lang-sdk 0.40.5 → 0.40.7-node-brotli.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/lang-sdk",
3
- "version": "0.40.5",
3
+ "version": "0.40.7-node-brotli.0",
4
4
  "description": "Language SDK for Appsemble",
5
5
  "keywords": [
6
6
  "app",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@types/language-tags": "1.0.4",
59
59
  "@types/lcm": "0.0.2",
60
- "vitest": "4.1.11"
60
+ "vitest": "4.1.12"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=24"
package/schemas/Theme.js CHANGED
@@ -70,7 +70,21 @@ This is used in various elements like the navbar.
70
70
  description: 'The tileLayer to use for Leaflet maps.',
71
71
  },
72
72
  font: {
73
- description: 'The font to use in the app.',
73
+ description: `The body font of the app.
74
+
75
+ This is the font used for regular text.
76
+ `,
77
+ anyOf: [
78
+ { $ref: '#/components/schemas/CustomFontDefinition' },
79
+ { $ref: '#/components/schemas/GoogleFontDefinition' },
80
+ ],
81
+ },
82
+ displayFont: {
83
+ description: `The display font of the app.
84
+
85
+ A second font family the app loads, exposed as the \`--font-family-display\` custom property for
86
+ the CSS of the app and its blocks. It falls back to the body font.
87
+ `,
74
88
  anyOf: [
75
89
  { $ref: '#/components/schemas/CustomFontDefinition' },
76
90
  { $ref: '#/components/schemas/GoogleFontDefinition' },
package/types/theme.d.ts CHANGED
@@ -51,4 +51,11 @@ export interface Theme {
51
51
  * The name of a font available on Google fonts.
52
52
  */
53
53
  font: FontDefinition;
54
+ /**
55
+ * A second font family the app loads, exposed as the `--font-family-display` custom property for
56
+ * the CSS of the app and its blocks.
57
+ *
58
+ * This falls back to the body font.
59
+ */
60
+ displayFont?: FontDefinition;
54
61
  }