@yahoo/uds-mobile 2.20.2 → 2.21.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/CONTRIBUTING.md CHANGED
@@ -563,7 +563,7 @@ The generation pipeline runs via `bun scripts/generate.ts` (or `bun run generate
563
563
  │ generate.ts │
564
564
  │ 1. generateTypes() → generated/unistyles.d.ts │
565
565
  │ 2. generateStyles() → generated/styles.ts │
566
- │ 3. generateFonts() → fonts/index.{cjs,mjs}
566
+ │ 3. generateFonts() → fonts/index.{cjs,mjs} + fonts/uds-icons.ttf
567
567
  └─────────────────────────────────────────────────────────────────────┘
568
568
  ```
569
569
 
@@ -603,9 +603,13 @@ The most complex generation step:
603
603
 
604
604
  ### Step 3: generateFonts.ts
605
605
 
606
- 1. Scans `fonts/` directory for `.otf` and `.ttf` files
607
- 2. Uses `fontkit` to extract PostScript names from font files
608
- 3. Generates CommonJS and ESM manifests for Expo compatibility
606
+ 1. Syncs `fonts/uds-icons.ttf` from `packages/icons/generated/font/uds-icons.ttf`
607
+ 2. Scans `fonts/` directory for `.otf` and `.ttf` files, skipping the vendored icon font
608
+ 3. Uses `fontkit` to extract PostScript names from font files
609
+ 4. Generates CommonJS and ESM manifests for Expo compatibility
610
+ 5. Resolves the icon font from `@yahoo/uds-icons/generated/font/uds-icons.ttf`, matching the package that provides `glyphMap`
611
+
612
+ The synced `fonts/uds-icons.ttf` is a build artifact and is gitignored — it is regenerated from `@yahoo/uds-icons` on every build and before publish (`ci:publish`), so it can never drift from the glyph map. Use `bun run sync:icon-font` to refresh it manually.
609
613
 
610
614
  ## Theme Generation
611
615
 
package/README.md CHANGED
@@ -68,6 +68,8 @@ expo install react-native-unistyles react-native-reanimated react-native-svg rea
68
68
  expo install expo-font
69
69
  ```
70
70
 
71
+ If your app uses `Icon` or UDS icon font loading, install `@yahoo/uds-icons` with your package manager.
72
+
71
73
  Using `expo install` ensures you get versions compatible with your Expo SDK. If you encounter version conflicts, check the `peerDependencies` in the package's `package.json` for the exact version ranges required.
72
74
 
73
75
  ### Expo Configuration
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ //#region \0rolldown/runtime.js
3
+ var __defProp = Object.defineProperty;
4
+ var __exportAll = (all, no_symbols) => {
5
+ let target = {};
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
11
+ return target;
12
+ };
13
+ //#endregion
14
+ export { __exportAll };