@hanzo/app 0.3.0 → 0.3.1
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/look.js +7 -9
- package/package.json +6 -6
package/dist/look.js
CHANGED
|
@@ -53,15 +53,13 @@ export function Look() {
|
|
|
53
53
|
if (!customFont.trim())
|
|
54
54
|
return;
|
|
55
55
|
const font = customFont.trim();
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
applyFontFamily('sans', `${font}, sans-serif`);
|
|
64
|
-
}
|
|
56
|
+
// The Arabic slot stays first, as in design's own stacks: a custom face
|
|
57
|
+
// sets the Latin, and the reader's Arabic companion still sets the Arabic.
|
|
58
|
+
const family = font.startsWith('http://') || font.startsWith('https://') ? 'CustomBrandFont' : font;
|
|
59
|
+
if (family === 'CustomBrandFont')
|
|
60
|
+
injectCustomFont({ family, url: font, isStylesheet: true });
|
|
61
|
+
applyFontFamily('heading', `var(--font-arabic), ${family}, sans-serif`);
|
|
62
|
+
applyFontFamily('sans', `var(--font-arabic), ${family}, sans-serif`);
|
|
65
63
|
setFontApplied(true);
|
|
66
64
|
setTimeout(() => setFontApplied(false), 2500);
|
|
67
65
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Hanzo's app: the shell and its apps (Home, Chat, Inbox, Contacts, Meet, Calendar, Drive, Board, Work, Bots), once, for every Hanzo surface.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@hanzo/ai": ">=0.7.0",
|
|
53
|
-
"@hanzo/appearance": ">=0.2.
|
|
53
|
+
"@hanzo/appearance": ">=0.2.13",
|
|
54
54
|
"@hanzo/build": ">=0.2.84",
|
|
55
55
|
"@hanzo/composer": ">=0.2.0",
|
|
56
56
|
"@hanzo/event": ">=0.3.56",
|
|
57
57
|
"@hanzo/gui": "^8.3.5",
|
|
58
|
-
"@hanzo/i18n": ">=0.5.
|
|
58
|
+
"@hanzo/i18n": ">=0.5.5",
|
|
59
59
|
"@hanzo/iam": ">=0.21.35",
|
|
60
60
|
"@hanzo/logo": ">=1.0.26",
|
|
61
61
|
"@hanzo/studio": ">=0.1.0",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@hanzo/ai": "0.7.0",
|
|
73
|
-
"@hanzo/appearance": "0.2.
|
|
73
|
+
"@hanzo/appearance": "0.2.13",
|
|
74
74
|
"@hanzo/build": "0.2.84",
|
|
75
75
|
"@hanzo/composer": "0.2.0",
|
|
76
|
-
"@hanzo/design": "0.5.
|
|
76
|
+
"@hanzo/design": "0.5.38",
|
|
77
77
|
"@hanzo/event": "0.3.56",
|
|
78
78
|
"@hanzo/gui": "8.3.5",
|
|
79
|
-
"@hanzo/i18n": "0.5.
|
|
79
|
+
"@hanzo/i18n": "0.5.5",
|
|
80
80
|
"@hanzo/iam": "0.21.35",
|
|
81
81
|
"@hanzo/logo": "1.0.26",
|
|
82
82
|
"@hanzo/studio": "0.1.0",
|