@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.
Files changed (2) hide show
  1. package/dist/look.js +7 -9
  2. 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
- if (font.startsWith('http://') || font.startsWith('https://')) {
57
- injectCustomFont({ family: 'CustomBrandFont', url: font, isStylesheet: true });
58
- applyFontFamily('heading', 'CustomBrandFont, sans-serif');
59
- applyFontFamily('sans', 'CustomBrandFont, sans-serif');
60
- }
61
- else {
62
- applyFontFamily('heading', `${font}, sans-serif`);
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.0",
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.12",
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.4",
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.12",
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.34",
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.4",
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",