@oxyhq/bloom 0.35.5 → 0.35.7

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 (87) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +1 -1
  3. package/lib/commonjs/content-panel/index.js +22 -6
  4. package/lib/commonjs/content-panel/index.js.map +1 -1
  5. package/lib/commonjs/content-panel/index.web.js +37 -12
  6. package/lib/commonjs/content-panel/index.web.js.map +1 -1
  7. package/lib/commonjs/fonts/FontLoader.native.js +2 -2
  8. package/lib/commonjs/fonts/FontLoader.native.js.map +1 -1
  9. package/lib/commonjs/fonts/assets/GeistMono-OFL.txt +93 -0
  10. package/lib/commonjs/fonts/assets/Inter-OFL.txt +92 -0
  11. package/lib/commonjs/fonts/font-assets.js +16 -14
  12. package/lib/commonjs/fonts/font-assets.js.map +1 -1
  13. package/lib/commonjs/fonts/font-assets.native.js +31 -0
  14. package/lib/commonjs/fonts/font-assets.native.js.map +1 -0
  15. package/lib/commonjs/fonts/font-assets.web.js +24 -0
  16. package/lib/commonjs/fonts/font-assets.web.js.map +1 -0
  17. package/lib/commonjs/fonts/index.js +1 -1
  18. package/lib/commonjs/fonts/index.web.js +2 -2
  19. package/lib/commonjs/fonts/index.web.js.map +1 -1
  20. package/lib/commonjs/fonts/tokens.js +12 -0
  21. package/lib/commonjs/fonts/tokens.js.map +1 -1
  22. package/lib/commonjs/theme/init-css-interop.js +13 -1
  23. package/lib/commonjs/theme/init-css-interop.js.map +1 -1
  24. package/lib/module/content-panel/index.js +22 -6
  25. package/lib/module/content-panel/index.js.map +1 -1
  26. package/lib/module/content-panel/index.web.js +37 -12
  27. package/lib/module/content-panel/index.web.js.map +1 -1
  28. package/lib/module/fonts/FontLoader.native.js +1 -1
  29. package/lib/module/fonts/FontLoader.native.js.map +1 -1
  30. package/lib/module/fonts/assets/GeistMono-OFL.txt +93 -0
  31. package/lib/module/fonts/assets/Inter-OFL.txt +92 -0
  32. package/lib/module/fonts/font-assets.js +16 -14
  33. package/lib/module/fonts/font-assets.js.map +1 -1
  34. package/lib/module/fonts/font-assets.native.js +27 -0
  35. package/lib/module/fonts/font-assets.native.js.map +1 -0
  36. package/lib/module/fonts/font-assets.web.js +20 -0
  37. package/lib/module/fonts/font-assets.web.js.map +1 -0
  38. package/lib/module/fonts/index.js +1 -1
  39. package/lib/module/fonts/index.js.map +1 -1
  40. package/lib/module/fonts/index.web.js +15 -6
  41. package/lib/module/fonts/index.web.js.map +1 -1
  42. package/lib/module/fonts/tokens.js +12 -0
  43. package/lib/module/fonts/tokens.js.map +1 -1
  44. package/lib/module/theme/init-css-interop.js +13 -1
  45. package/lib/module/theme/init-css-interop.js.map +1 -1
  46. package/lib/typescript/commonjs/content-panel/index.d.ts +21 -8
  47. package/lib/typescript/commonjs/content-panel/index.d.ts.map +1 -1
  48. package/lib/typescript/commonjs/content-panel/index.web.d.ts +26 -6
  49. package/lib/typescript/commonjs/content-panel/index.web.d.ts.map +1 -1
  50. package/lib/typescript/commonjs/fonts/font-assets.d.ts +2 -6
  51. package/lib/typescript/commonjs/fonts/font-assets.d.ts.map +1 -1
  52. package/lib/typescript/commonjs/fonts/font-assets.native.d.ts +3 -0
  53. package/lib/typescript/commonjs/fonts/font-assets.native.d.ts.map +1 -0
  54. package/lib/typescript/commonjs/fonts/font-assets.web.d.ts +3 -0
  55. package/lib/typescript/commonjs/fonts/font-assets.web.d.ts.map +1 -0
  56. package/lib/typescript/commonjs/fonts/index.web.d.ts +1 -1
  57. package/lib/typescript/commonjs/fonts/index.web.d.ts.map +1 -1
  58. package/lib/typescript/commonjs/fonts/tokens.d.ts +12 -0
  59. package/lib/typescript/commonjs/fonts/tokens.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/theme/init-css-interop.d.ts.map +1 -1
  61. package/lib/typescript/module/content-panel/index.d.ts +21 -8
  62. package/lib/typescript/module/content-panel/index.d.ts.map +1 -1
  63. package/lib/typescript/module/content-panel/index.web.d.ts +26 -6
  64. package/lib/typescript/module/content-panel/index.web.d.ts.map +1 -1
  65. package/lib/typescript/module/fonts/font-assets.d.ts +2 -6
  66. package/lib/typescript/module/fonts/font-assets.d.ts.map +1 -1
  67. package/lib/typescript/module/fonts/font-assets.native.d.ts +3 -0
  68. package/lib/typescript/module/fonts/font-assets.native.d.ts.map +1 -0
  69. package/lib/typescript/module/fonts/font-assets.web.d.ts +3 -0
  70. package/lib/typescript/module/fonts/font-assets.web.d.ts.map +1 -0
  71. package/lib/typescript/module/fonts/index.web.d.ts +1 -1
  72. package/lib/typescript/module/fonts/index.web.d.ts.map +1 -1
  73. package/lib/typescript/module/fonts/tokens.d.ts +12 -0
  74. package/lib/typescript/module/fonts/tokens.d.ts.map +1 -1
  75. package/lib/typescript/module/theme/init-css-interop.d.ts.map +1 -1
  76. package/package.json +2 -2
  77. package/src/content-panel/index.tsx +33 -14
  78. package/src/content-panel/index.web.tsx +62 -22
  79. package/src/fonts/FontLoader.native.tsx +1 -1
  80. package/src/fonts/assets/GeistMono-OFL.txt +93 -0
  81. package/src/fonts/assets/Inter-OFL.txt +92 -0
  82. package/src/fonts/font-assets.native.ts +25 -0
  83. package/src/fonts/font-assets.ts +17 -14
  84. package/src/fonts/font-assets.web.ts +18 -0
  85. package/src/fonts/index.web.ts +15 -6
  86. package/src/fonts/tokens.ts +13 -0
  87. package/src/theme/init-css-interop.ts +13 -1
@@ -18,11 +18,20 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
18
18
  * the rounded corners / lateral gutters is masked while a single seamless border
19
19
  * is drawn around the panel — see `index.web.tsx`.
20
20
  *
21
- * On NATIVE none of that applies: there is no document scroll, no sticky
22
- * positioning, and no bleed to mask, so the panel is simply a rounded, bordered
23
- * surface wrapping its content. The `framed` and `showStickyFrame` props are
24
- * accepted for cross-platform API parity but are intentionally no-ops here
25
- * (mirroring the no-op native fork of `../scroll`).
21
+ * On NATIVE none of the WEB overlay machinery applies: there is no document
22
+ * scroll, no sticky positioning, and no bleed to mask, so the panel is simply a
23
+ * surface wrapping its content. The `framed` prop still drives whether that
24
+ * surface is rounded + bordered, tri-state and resolved with pure NativeWind
25
+ * (`md:` evaluates against the window width on native too no JS breakpoint
26
+ * hook needed):
27
+ *
28
+ * - `undefined` (DEFAULT) → responsive: full-bleed below `md`, rounded +
29
+ * bordered at `md`+ (`md:rounded-radius-28 md:border md:border-border`).
30
+ * - `false` → never framed (plain full-bleed at every size).
31
+ * - `true` → always rounded + bordered.
32
+ *
33
+ * `showStickyFrame` and `maskColor` are accepted for cross-platform API parity
34
+ * but are no-ops here (there are no sticky overlays on native).
26
35
  *
27
36
  * Web bundlers select `./index.web` via the `"browser"` export condition in
28
37
  * `package.json`; native bundlers fall through to this file.
@@ -43,6 +52,7 @@ const PANEL_TOP_INSET = exports.PANEL_TOP_INSET = 8;
43
52
  const PANEL_BOTTOM_INSET = exports.PANEL_BOTTOM_INSET = 8;
44
53
  const ContentPanelComponent = ({
45
54
  children,
55
+ framed,
46
56
  surfaceClassName,
47
57
  surfaceStyle,
48
58
  contentClassName,
@@ -50,7 +60,13 @@ const ContentPanelComponent = ({
50
60
  }) => {
51
61
  // Dev-only invariant — a ContentPanel must never be nested inside another.
52
62
  (0, _nestingContext.useContentPanelNestingGuard)();
53
- const surfaceClass = ['flex-1', 'rounded-radius-28', 'overflow-hidden border border-border', surfaceClassName ?? 'bg-card'].join(' ');
63
+
64
+ // Tri-state: `undefined` → responsive (md:-gated), `true` → always framed,
65
+ // `false` → never framed (plain full-bleed). Whole literal class strings are
66
+ // selected per mode so the Tailwind content-scan over `src/**` picks up every
67
+ // `md:` / `rounded-radius-28` token verbatim (no dynamic concatenation).
68
+ const surfaceBase = framed === undefined ? 'flex-1 md:overflow-hidden md:rounded-radius-28 md:border md:border-border' : framed ? 'flex-1 overflow-hidden rounded-radius-28 border border-border' : 'flex-1';
69
+ const surfaceClass = [surfaceBase, surfaceClassName ?? 'bg-card'].join(' ');
54
70
  const contentClass = ['flex-1', contentClassName].filter(Boolean).join(' ');
55
71
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_nestingContext.ContentPanelNestingContext.Provider, {
56
72
  value: true,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_nestingContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","GUTTER_MASK_SPREAD","exports","PANEL_TOP_INSET","PANEL_BOTTOM_INSET","ContentPanelComponent","children","surfaceClassName","surfaceStyle","contentClassName","contentStyle","useContentPanelNestingGuard","surfaceClass","join","contentClass","filter","Boolean","jsx","ContentPanelNestingContext","Provider","value","View","className","style","ContentPanel","memo","displayName"],"sourceRoot":"../../../src","sources":["content-panel/index.tsx"],"mappings":";;;;;;AAsBA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAG2B,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gB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AAzB,WAAA,CAAAoC,GAAA,EAACtC,YAAA,CAAA0C,IAAI;MACIC,SAAS,EAAEV,YAAY;MAC9BW,KAAK,EAAEf,YAAa;MAAAF,QAAA,eAEpB,IAAAzB,WAAA,CAAAoC,GAAA,EAACtC,YAAA,CAAA0C,IAAI;QACIC,SAAS,EAAER,YAAY;QAC9BS,KAAK,EAAEb,YAAa;QAAAJ,QAAA,EAEnBA;MAAQ,CACL;IAAC,CACH;EAAC,CAC4B,CAAC;AAE1C,CAAC;AAEM,MAAMkB,YAAY,GAAAtB,OAAA,CAAAsB,YAAA,gBAAG,IAAAC,WAAI,EAACpB,qBAAqB,CAAC;AACvDmB,YAAY,CAACE,WAAW,GAAG,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_nestingContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","GUTTER_MASK_SPREAD","exports","PANEL_TOP_INSET","PANEL_BOTTOM_INSET","ContentPanelComponent","children","framed","surfaceClassName","surfaceStyle","contentClassName","contentStyle","useContentPanelNestingGuard","surfaceBase","undefined","surfaceClass","join","contentClass","filter","Boolean","jsx","ContentPanelNestingContext","Provider","value","View","className","style","ContentPanel","memo","displayName"],"sourceRoot":"../../../src","sources":["content-panel/index.tsx"],"mappings":";;;;;;AA+BA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAF,OAAA;AAG2B,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL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EACA,IAAAC,2CAA2B,EAAC,CAAC;;EAE7B;EACA;EACA;EACA;EACA,MAAMC,WAAW,GACfN,MAAM,KAAKO,SAAS,GAChB,2EAA2E,GAC3EP,MAAM,GACJ,+DAA+D,GAC/D,QAAQ;EAChB,MAAMQ,YAAY,GAAG,CAACF,WAAW,EAAEL,gBAAgB,IAAI,SAAS,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;EAC3E,MAAMC,YAAY,GAAG,CAAC,QAAQ,EAAEP,gBAAgB,CAAC,CAACQ,MAAM,CAACC,OAAO,CAAC,CAACH,IAAI,CAAC,GAAG,CAAC;EAE3E,oBACE,IAAAnC,WAAA,CAAAuC,GAAA,EAACxC,eAAA,CAAAyC,0BAA0B,CAACC,QAAQ;IAACC,KAAK,EAAE,IAAK;IAAAjB,QAAA,eAC/C,IAAAzB,WAAA,CAAAuC,GAAA,EAACzC,YAAA,CAAA6C,IAAI;MACIC,SAAS,EAAEV,YAAY;MAC9BW,KAAK,EAAEjB,YAAa;MAAAH,QAAA,eAEpB,IAAAzB,WAAA,CAAAuC,GAAA,EAACzC,YAAA,CAAA6C,IAAI;QACIC,SAAS,EAAER,YAAY;QAC9BS,KAAK,EAAEf,YAAa;QAAAL,QAAA,EAEnBA;MAAQ,CACL;IAAC,CACH;EAAC,CAC4B,CAAC;AAE1C,CAAC;AAEM,MAAMqB,YAAY,GAAAzB,OAAA,CAAAyB,YAAA,gBAAG,IAAAC,WAAI,EAACvB,qBAAqB,CAAC;AACvDsB,YAAY,CAACE,WAAW,GAAG,cAAc","ignoreList":[]}
@@ -35,16 +35,29 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
35
35
  * content rather than displacing it). They render BEFORE the content wrapper so
36
36
  * z-index — not DOM order — decides layering.
37
37
  *
38
- * When `framed` is false (narrow screens) the panel is full-bleed: a single
39
- * flat surface, no rounding, no overlays.
38
+ * Framing is tri-state via the `framed` prop:
39
+ *
40
+ * - `undefined` (DEFAULT) → RESPONSIVE, driven purely by NativeWind: full-bleed
41
+ * below `md`, framed at `md`+. The rounding is `md:`-gated and both overlays
42
+ * are always rendered but carry `max-md:hidden` (`display:none` below `md`),
43
+ * so the breakpoint is decided in CSS — no consumer JS breakpoint hook.
44
+ * - `false` → NEVER framed (full-bleed at every size): a single flat surface,
45
+ * no rounding, no overlays.
46
+ * - `true` → ALWAYS framed (rounded + overlays at every size).
47
+ *
48
+ * The overlays are gated by VISIBILITY (a `max-md:hidden` literal) rather than
49
+ * by conditional mounting for the responsive case, so crossing the breakpoint
50
+ * never remounts them. The content wrapper likewise keeps a stable `key` so
51
+ * `{children}` reconciles in place across the breakpoint instead of remounting
52
+ * (which would reset feed scroll / the virtualizer + refetch).
40
53
  *
41
54
  * Native bundlers use `./index.tsx` (a plain rounded surface); web bundlers
42
55
  * select this file via the `"browser"` export condition in `package.json`.
43
56
  *
44
57
  * Styling is NativeWind-className-first; the literal class strings below MUST
45
58
  * stay literal so a consumer's Tailwind content-scan over `lib/**` picks them up
46
- * (no dynamic concatenation of the arbitrary `web:[…]` / `rounded-radius-28`
47
- * parts).
59
+ * (no dynamic concatenation of the arbitrary `web:[…]` / `rounded-radius-28` /
60
+ * `md:` parts — whole class strings are selected per mode instead).
48
61
  */
49
62
 
50
63
  /** Width (in px) of the sticky gutter-mask box-shadow ring. */
@@ -63,28 +76,40 @@ const ContentPanelComponent = ({
63
76
  showStickyFrame,
64
77
  maskColor
65
78
  }) => {
66
- // Dev-only invariant — must run unconditionally before the early `!framed`
67
- // return so the hook order stays stable across renders (rules of hooks).
79
+ // Dev-only invariant — must run unconditionally (before deriving any
80
+ // mode-specific branch) so the hook order stays stable (rules of hooks).
68
81
  (0, _nestingContext.useContentPanelNestingGuard)();
69
82
  const {
70
83
  colors
71
84
  } = (0, _useTheme.useTheme)();
72
- const surfaceClass = framed ? ['flex-1 rounded-radius-28', surfaceClassName ?? 'bg-card'].join(' ') : ['flex-1', surfaceClassName ?? 'bg-card'].join(' ');
73
- const contentClass = framed ? ['flex-1 rounded-radius-28 web:overflow-x-clip', contentClassName].filter(Boolean).join(' ') : ['flex-1', contentClassName].filter(Boolean).join(' ');
85
+
86
+ // Tri-state: `undefined` responsive (md:-gated), `true` always framed,
87
+ // `false` → never framed (full-bleed).
88
+ const responsive = framed === undefined;
89
+ const showOverlays = framed !== false;
90
+
91
+ // Whole literal class strings selected per mode (the Tailwind content-scan
92
+ // over `lib/**` requires each arbitrary/`md:`/`web:` token stay literal).
93
+ // `web:md:overflow-x-clip` is platform-first-then-breakpoint, matching the
94
+ // consumer convention (`web:sm:flex` in `@mercaria/ui`).
95
+ const surfaceBase = responsive ? 'flex-1 md:rounded-radius-28' : framed ? 'flex-1 rounded-radius-28' : 'flex-1';
96
+ const contentBase = responsive ? 'flex-1 md:rounded-radius-28 web:md:overflow-x-clip' : framed ? 'flex-1 rounded-radius-28 web:overflow-x-clip' : 'flex-1';
97
+ const surfaceClass = [surfaceBase, surfaceClassName ?? 'bg-card'].join(' ');
98
+ const contentClass = [contentBase, contentClassName].filter(Boolean).join(' ');
74
99
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_nestingContext.ContentPanelNestingContext.Provider, {
75
100
  value: true,
76
101
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
77
102
  className: surfaceClass,
78
103
  style: surfaceStyle,
79
- children: [framed && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
104
+ children: [showOverlays && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
80
105
  pointerEvents: "none",
81
- className: 'web:sticky web:top-2 z-30 h-[calc(100dvh-16px)] w-full rounded-radius-28 web:[margin-bottom:calc(-100dvh+16px)] web:[clip-path:inset(-12px)]',
106
+ className: responsive ? 'web:sticky web:top-2 z-30 h-[calc(100dvh-16px)] w-full rounded-radius-28 max-md:hidden web:[margin-bottom:calc(-100dvh+16px)] web:[clip-path:inset(-12px)]' : 'web:sticky web:top-2 z-30 h-[calc(100dvh-16px)] w-full rounded-radius-28 web:[margin-bottom:calc(-100dvh+16px)] web:[clip-path:inset(-12px)]',
82
107
  style: {
83
108
  boxShadow: `0 0 0 ${GUTTER_MASK_SPREAD}px ${maskColor ?? colors.background}`
84
109
  }
85
- }, "bleed-mask"), framed && showStickyFrame !== false && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
110
+ }, "bleed-mask"), showOverlays && showStickyFrame !== false && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
86
111
  pointerEvents: "none",
87
- className: 'web:sticky web:top-2 z-[120] h-[calc(100dvh-16px)] w-full rounded-radius-28 border border-border web:[margin-bottom:calc(-100dvh+16px)]'
112
+ className: responsive ? 'web:sticky web:top-2 z-[120] h-[calc(100dvh-16px)] w-full rounded-radius-28 border border-border max-md:hidden web:[margin-bottom:calc(-100dvh+16px)]' : 'web:sticky web:top-2 z-[120] h-[calc(100dvh-16px)] w-full rounded-radius-28 border border-border web:[margin-bottom:calc(-100dvh+16px)]'
88
113
  }, "border-frame"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
89
114
  className: contentClass,
90
115
  style: contentStyle,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_nestingContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","GUTTER_MASK_SPREAD","exports","PANEL_TOP_INSET","PANEL_BOTTOM_INSET","ContentPanelComponent","children","framed","surfaceClassName","surfaceStyle","contentClassName","contentStyle","showStickyFrame","maskColor","useContentPanelNestingGuard","colors","useTheme","surfaceClass","join","contentClass","filter","Boolean","jsx","ContentPanelNestingContext","Provider","value","jsxs","View","className","style","pointerEvents","boxShadow","background","ContentPanel","memo","displayName"],"sourceRoot":"../../../src","sources":["content-panel/index.web.tsx"],"mappings":";;;;;;AAoCA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,O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EAAC5C,YAAA,CAAAiD,IAAI;QAEHG,aAAa,EAAC,MAAM;QAElBF,SAAS,EACP,8IAA8I;QAElJC,KAAK,EAAE;UAAEE,SAAS,EAAE,SAAS9B,kBAAkB,MAAMY,SAAS,IAAIE,MAAM,CAACiB,UAAU;QAAG;MAAE,GANpF,YAOL,CACF,EAEAzB,MAAM,IAAIK,eAAe,KAAK,KAAK,iBAClC,IAAA/B,WAAA,CAAAyC,GAAA,EAAC5C,YAAA,CAAAiD,IAAI;QAEHG,aAAa,EAAC,MAAM;QAElBF,SAAS,EACP;MAAyI,GAJzI,cAML,CACF,eAKD,IAAA/C,WAAA,CAAAyC,GAAA,EAAC5C,YAAA,CAAAiD,IAAI;QAEIC,SAAS,EAAET,YAAY;QAC9BU,KAAK,EAAElB,YAAa;QAAAL,QAAA,EAEnBA;MAAQ,GAJL,SAKA,CAAC;IAAA,CACH;EAAC,CAC4B,CAAC;AAE1C,CAAC;AAEM,MAAM2B,YAAY,GAAA/B,OAAA,CAAA+B,YAAA,gBAAG,IAAAC,WAAI,EAAC7B,qBAAqB,CAAC;AACvD4B,YAAY,CAACE,WAAW,GAAG,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_useTheme","_nestingContext","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","GUTTER_MASK_SPREAD","exports","PANEL_TOP_INSET","PANEL_BOTTOM_INSET","ContentPanelComponent","children","framed","surfaceClassName","surfaceStyle","contentClassName","contentStyle","showStickyFrame","maskColor","useContentPanelNestingGuard","colors","useTheme","responsive","undefined","showOverlays","surfaceBase","contentBase","surfaceClass","join","contentClass","filter","Boolean","jsx","ContentPanelNestingContext","Provider","value","jsxs","View","className","style","pointerEvents","boxShadow","background","ContentPanel","memo","displayName"],"sourceRoot":"../../../src","sources":["content-panel/index.web.tsx"],"mappings":";;;;;;AAiDA,IAAAA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A,eAC/C,IAAAzB,WAAA,CAAAkD,IAAA,EAACrD,YAAA,CAAAsD,IAAI;MACIC,SAAS,EAAEX,YAAY;MAC9BY,KAAK,EAAEzB,YAAa;MAAAH,QAAA,GAKnBa,YAAY,iBACX,IAAAtC,WAAA,CAAA8C,GAAA,EAACjD,YAAA,CAAAsD,IAAI;QAEHG,aAAa,EAAC,MAAM;QAElBF,SAAS,EAAEhB,UAAU,GACjB,4JAA4J,GAC5J,8IAA8I;QAEpJiB,KAAK,EAAE;UAAEE,SAAS,EAAE,SAASnC,kBAAkB,MAAMY,SAAS,IAAIE,MAAM,CAACsB,UAAU;QAAG;MAAE,GAPpF,YAQL,CACF,EAGAlB,YAAY,IAAIP,eAAe,KAAK,KAAK,iBACxC,IAAA/B,WAAA,CAAA8C,GAAA,EAACjD,YAAA,CAAAsD,IAAI;QAEHG,aAAa,EAAC,MAAM;QAElBF,SAAS,EAAEhB,UAAU,GACjB,uJAAuJ,GACvJ;MAAyI,GAL3I,cAOL,CACF,eAKD,IAAApC,WAAA,CAAA8C,GAAA,EAACjD,YAAA,CAAAsD,IAAI;QAEIC,SAAS,EAAET,YAAY;QAC9BU,KAAK,EAAEvB,YAAa;QAAAL,QAAA,EAEnBA;MAAQ,GAJL,SAKA,CAAC;IAAA,CACH;EAAC,CAC4B,CAAC;AAE1C,CAAC;AAEM,MAAMgC,YAAY,GAAApC,OAAA,CAAAoC,YAAA,gBAAG,IAAAC,WAAI,EAAClC,qBAAqB,CAAC;AACvDiC,YAAY,CAACE,WAAW,GAAG,cAAc","ignoreList":[]}
@@ -7,7 +7,7 @@ exports.FontLoader = FontLoader;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _expoFont = require("expo-font");
10
- var _fontAssets = require("./font-assets.js");
10
+ var _fontAssetsNative = require("./font-assets.native.js");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
13
  /**
@@ -75,7 +75,7 @@ function FontLoader({
75
75
  fallback,
76
76
  children
77
77
  }) {
78
- const [loaded] = (0, _expoFont.useFonts)(_fontAssets.FONT_ASSETS);
78
+ const [loaded] = (0, _expoFont.useFonts)(_fontAssetsNative.FONT_ASSETS);
79
79
  const defaultsApplied = (0, _react.useRef)(false);
80
80
  if (loaded && !defaultsApplied.current) {
81
81
  defaultsApplied.current = true;
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_expoFont","_fontAssets","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","applyDefaultTextFont","TextWithDefaults","Text","existing","defaultProps","style","bloomDefault","fontFamily","Array","isArray","first","nextStyle","FontLoader","enabled","fallback","children","loaded","useFonts","FONT_ASSETS","defaultsApplied","useRef","current","jsx","Fragment"],"sourceRoot":"../../../src","sources":["fonts/FontLoader.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAA4C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA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AA,CAAA0C,GAAA,EAAA1C,WAAA,CAAA2C,QAAA;IAAAR,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_expoFont","_fontAssetsNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","applyDefaultTextFont","TextWithDefaults","Text","existing","defaultProps","style","bloomDefault","fontFamily","Array","isArray","first","nextStyle","FontLoader","enabled","fallback","children","loaded","useFonts","FONT_ASSETS","defaultsApplied","useRef","current","jsx","Fragment"],"sourceRoot":"../../../src","sources":["fonts/FontLoader.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAAmD,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,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CC,KAAK,EAAEM;EACT,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,UAAUA,CAAC;EAAEC,OAAO;EAAEC,QAAQ;EAAEC;AAA0B,CAAC,EAAE;EAC3E,MAAM,CAACC,MAAM,CAAC,GAAG,IAAAC,kBAAQ,EAACC,6BAAW,CAAC;EACtC,MAAMC,eAAe,GAAG,IAAAC,aAAM,EAAC,KAAK,CAAC;EAErC,IAAIJ,MAAM,IAAI,CAACG,eAAe,CAACE,OAAO,EAAE;IACtCF,eAAe,CAACE,OAAO,GAAG,IAAI;IAC9BrB,oBAAoB,CAAC,CAAC;EACxB;EAEA,IAAI,CAACa,OAAO,EAAE,oBAAO,IAAAjC,WAAA,CAAA0C,GAAA,EAAA1C,WAAA,CAAA2C,QAAA;IAAAR,QAAA,EAAGA;EAAQ,CAAG,CAAC;EACpC,IAAI,CAACC,MAAM,EAAE,oBAAO,IAAApC,WAAA,CAAA0C,GAAA,EAAA1C,WAAA,CAAA2C,QAAA;IAAAR,QAAA,EAAGD,QAAQ,IAAI;EAAI,CAAG,CAAC;EAC3C,oBAAO,IAAAlC,WAAA,CAAA0C,GAAA,EAAA1C,WAAA,CAAA2C,QAAA;IAAAR,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -4,20 +4,22 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.FONT_ASSETS = void 0;
7
- // Native font asset map for `useFonts(FONT_ASSETS)`.
7
+ // Platform-neutral default font asset map deliberately empty.
8
8
  //
9
- // We ship variable .ttf files for Inter and Geist Mono (extracted from the
10
- // official rsms/inter and vercel/geist-font releases) so the same family name
11
- // covers all weights at runtime. `@fontsource(-variable)?/*` packages only
12
- // publish .woff2 for their variable axes modern react-native font loading
13
- // requires .ttf, so we use the upstream variable TTFs instead. On web,
14
- // `apply-font-faces.web.ts` inlines the .woff2 variants as base64 data URLs
15
- // (see `font-data.web.ts`) and this file is never imported.
9
+ // The real map is Metro-only (`font-assets.native.ts`): it is built from
10
+ // `require('./assets/*.ttf')` asset requires, which are meaningless outside
11
+ // Metro and fatal inside an ES module, where `require` is not defined. This
12
+ // default therefore carries no asset requires at all, per the platform-split
13
+ // rule in AGENTS.md anything with platform-specific behaviour ships
14
+ // `.native.ts` + `.web.ts` + a clean default `.ts` that no bundler can choke
15
+ // on.
16
+ //
17
+ // Who lands here: any consumer whose bundler does no platform-extension
18
+ // resolution. In practice that is the `"import"` export condition — Node ESM,
19
+ // SSR, and prerender passes. They get an empty map and load no fonts, which is
20
+ // correct: there is no native font registry to load them into. Metro takes
21
+ // `font-assets.native.ts`, and the web barrel names `./font-assets.web`
22
+ // outright.
16
23
 
17
- const FONT_ASSETS = exports.FONT_ASSETS = {
18
- BlomusModernus: require('./assets/BlomusModernus-Regular.ttf'),
19
- 'BlomusModernus-Bold': require('./assets/BlomusModernus-Bold.ttf'),
20
- Inter: require('./assets/InterVariable.ttf'),
21
- 'Geist Mono': require('./assets/GeistMono-Variable.ttf')
22
- };
24
+ const FONT_ASSETS = exports.FONT_ASSETS = {};
23
25
  //# sourceMappingURL=font-assets.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FONT_ASSETS","exports","BlomusModernus","require","Inter"],"sourceRoot":"../../../src","sources":["fonts/font-assets.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzBE,cAAc,EAAEC,OAAO,CAAC,qCAAqC,CAAC;EAC9D,qBAAqB,EAAEA,OAAO,CAAC,kCAAkC,CAAC;EAClEC,KAAK,EAAED,OAAO,CAAC,4BAA4B,CAAC;EAC5C,YAAY,EAAEA,OAAO,CAAC,iCAAiC;AACzD,CAAU","ignoreList":[]}
1
+ {"version":3,"names":["FONT_ASSETS","exports"],"sourceRoot":"../../../src","sources":["fonts/font-assets.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGO,MAAMA,WAAyB,GAAAC,OAAA,CAAAD,WAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FONT_ASSETS = void 0;
7
+ // Native font asset map for `useFonts(FONT_ASSETS)`.
8
+ //
9
+ // We ship variable .ttf files for Inter and Geist Mono (extracted from the
10
+ // official rsms/inter and vercel/geist-font releases) so the same family name
11
+ // covers all weights at runtime. `@fontsource(-variable)?/*` packages only
12
+ // publish .woff2 for their variable axes — modern react-native font loading
13
+ // requires .ttf, so we use the upstream variable TTFs instead.
14
+ //
15
+ // METRO-ONLY. The calls below are Metro asset requires: they resolve to
16
+ // asset-registry ids and only exist because Metro rewrites them at bundle
17
+ // time. Reaching a web or Node ESM bundler with them is fatal — `require` is
18
+ // not defined in an ES module, so merely importing this file throws
19
+ // `ReferenceError: require is not defined` at module-evaluation time and takes
20
+ // the whole app down before React can mount. That is why this map lives behind
21
+ // a platform split (`font-assets.web.ts` and the default `font-assets.ts` are
22
+ // both empty) and why the web barrel reaches for `./font-assets.web`
23
+ // explicitly rather than relying on bundler extension resolution.
24
+
25
+ const FONT_ASSETS = exports.FONT_ASSETS = {
26
+ BlomusModernus: require('./assets/BlomusModernus-Regular.ttf'),
27
+ 'BlomusModernus-Bold': require('./assets/BlomusModernus-Bold.ttf'),
28
+ Inter: require('./assets/InterVariable.ttf'),
29
+ 'Geist Mono': require('./assets/GeistMono-Variable.ttf')
30
+ };
31
+ //# sourceMappingURL=font-assets.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FONT_ASSETS","exports","BlomusModernus","require","Inter"],"sourceRoot":"../../../src","sources":["fonts/font-assets.native.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGO,MAAMA,WAAyB,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACvCE,cAAc,EAAEC,OAAO,CAAC,qCAAqC,CAAC;EAC9D,qBAAqB,EAAEA,OAAO,CAAC,kCAAkC,CAAC;EAClEC,KAAK,EAAED,OAAO,CAAC,4BAA4B,CAAC;EAC5C,YAAY,EAAEA,OAAO,CAAC,iCAAiC;AACzD,CAAC","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FONT_ASSETS = void 0;
7
+ // Web has no bundled font assets.
8
+ //
9
+ // `useFonts()` is native-only — the web `FontLoader` (`FontLoader.tsx`) calls
10
+ // `applyFontFaces()` instead, which injects the same four families as
11
+ // `@font-face` rules from base64 data URLs (`apply-font-faces.web.ts` /
12
+ // `font-data.web.ts`). So the map is empty by design, not by omission.
13
+ //
14
+ // This file exists so `index.web.ts` can name its font-asset source
15
+ // explicitly, exactly as it already does for `./apply-font-faces.web`. The
16
+ // native map (`font-assets.native.ts`) is built from Metro asset `require()`
17
+ // calls, which throw `ReferenceError: require is not defined` the moment an
18
+ // ES module bundler evaluates them — an explicit `./font-assets.web` import
19
+ // keeps that file out of the web graph without depending on the consumer's
20
+ // bundler being configured to resolve `.web` extensions (Vite, for one, does
21
+ // not do so by default).
22
+
23
+ const FONT_ASSETS = exports.FONT_ASSETS = {};
24
+ //# sourceMappingURL=font-assets.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FONT_ASSETS","exports"],"sourceRoot":"../../../src","sources":["fonts/font-assets.web.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGO,MAAMA,WAAyB,GAAAC,OAAA,CAAAD,WAAA,GAAG,CAAC,CAAC","ignoreList":[]}
@@ -35,6 +35,6 @@ Object.defineProperty(exports, "fontFamilies", {
35
35
  });
36
36
  var _tokens = require("./tokens.js");
37
37
  var _applyFontFaces = require("./apply-font-faces");
38
- var _fontAssets = require("./font-assets.js");
38
+ var _fontAssets = require("./font-assets");
39
39
  var _FontLoader = require("./FontLoader");
40
40
  //# sourceMappingURL=index.js.map
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "FONT_ASSETS", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _fontAssets.FONT_ASSETS;
9
+ return _fontAssetsWeb.FONT_ASSETS;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "FontLoader", {
@@ -35,6 +35,6 @@ Object.defineProperty(exports, "fontFamilies", {
35
35
  });
36
36
  var _tokens = require("./tokens.js");
37
37
  var _applyFontFacesWeb = require("./apply-font-faces.web.js");
38
- var _fontAssets = require("./font-assets.js");
38
+ var _fontAssetsWeb = require("./font-assets.web.js");
39
39
  var _FontLoader = require("./FontLoader");
40
40
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_tokens","require","_applyFontFacesWeb","_fontAssets","_FontLoader"],"sourceRoot":"../../../src","sources":["fonts/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_tokens","require","_applyFontFacesWeb","_fontAssetsWeb","_FontLoader"],"sourceRoot":"../../../src","sources":["fonts/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA","ignoreList":[]}
@@ -24,4 +24,16 @@ const fontCssVars = exports.fontCssVars = {
24
24
  sans: '--bloom-font-sans',
25
25
  mono: '--bloom-font-mono'
26
26
  };
27
+
28
+ /**
29
+ * Shape of the font asset map handed to `expo-font`'s `useFonts()`.
30
+ *
31
+ * Values are Metro asset-registry ids produced by `require('./assets/*.ttf')`,
32
+ * so the map is only ever populated under Metro (`font-assets.native.ts`).
33
+ * Every other platform resolves an empty map — web installs the same families
34
+ * as `@font-face` rules instead (`apply-font-faces.web.ts`).
35
+ *
36
+ * Declared here, in the platform-neutral tokens module, so all three
37
+ * `font-assets` variants can share it without importing each other.
38
+ */
27
39
  //# sourceMappingURL=tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["fontFamilies","exports","display","sans","mono","fontCssVars"],"sourceRoot":"../../../src","sources":["fonts/tokens.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,OAAO,EAAE,mDAAmD;EAC5DC,IAAI,EAAE,mFAAmF;EACzFC,IAAI,EAAE;AACR,CAAU;AAEH,MAAMC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,GAAG;EACzBH,OAAO,EAAE,sBAAsB;EAC/BC,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;AACR,CAAU","ignoreList":[]}
1
+ {"version":3,"names":["fontFamilies","exports","display","sans","mono","fontCssVars"],"sourceRoot":"../../../src","sources":["fonts/tokens.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,OAAO,EAAE,mDAAmD;EAC5DC,IAAI,EAAE,mFAAmF;EACzFC,IAAI,EAAE;AACR,CAAU;AAEH,MAAMC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,GAAG;EACzBH,OAAO,EAAE,sBAAsB;EAC/BC,IAAI,EAAE,mBAAmB;EACzBC,IAAI,EAAE;AACR,CAAU;;AAIV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -67,13 +67,25 @@ function setWebCssVariable() {
67
67
  }
68
68
  function tryCallSetFlag() {
69
69
  let mod;
70
+ // `require` does not exist in an ES module, so guard before touching it —
71
+ // an unguarded reference is a ReferenceError, not a resolution failure.
72
+ // Matches the pattern used by every other optional-module load in Bloom
73
+ // (`utils/lazy-require.ts`, `theme/adaptive-colors.ts`,
74
+ // `bottom-sheet/index.tsx`).
75
+ if (typeof require === 'undefined') return;
70
76
  try {
71
77
  // Dynamic require: css-interop is not a Bloom dependency. If the host
72
78
  // app ships it (via NativeWind or directly), this resolves. Otherwise
73
79
  // the require throws and we silently move on — there is nothing to
74
80
  // initialize because css-interop is not in the bundle.
81
+ //
82
+ // The specifier goes through a variable on purpose: a literal
83
+ // `require('react-native-css-interop')` is statically analysable, so
84
+ // bundlers try to resolve (and warn about, or fail on) a module that is
85
+ // intentionally absent. The indirection keeps this a pure runtime lookup.
86
+ const moduleName = 'react-native-css-interop';
75
87
  // eslint-disable-next-line @typescript-eslint/no-require-imports
76
- mod = require('react-native-css-interop');
88
+ mod = require(moduleName);
77
89
  } catch {
78
90
  return;
79
91
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","initialized","warned","CSS_VAR_NAME","CSS_VAR_VALUE","warnOnce","message","error","console","warn","setWebCssVariable","document","root","documentElement","current","style","getPropertyValue","setProperty","tryCallSetFlag","mod","setFlag","StyleSheet","call","initCssInteropDarkMode","Platform","OS"],"sourceRoot":"../../../src","sources":["theme/init-css-interop.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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AAS;EAC7C,IAAItB,WAAW,EAAE;EACjBA,WAAW,GAAG,IAAI;EAElB,IAAIuB,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;IACzBf,iBAAiB,CAAC,CAAC;EACrB;EAEAQ,cAAc,CAAC,CAAC;AAClB;;AAEA;AACA;AACA;AACAK,sBAAsB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","initialized","warned","CSS_VAR_NAME","CSS_VAR_VALUE","warnOnce","message","error","console","warn","setWebCssVariable","document","root","documentElement","current","style","getPropertyValue","setProperty","tryCallSetFlag","mod","moduleName","setFlag","StyleSheet","call","initCssInteropDarkMode","Platform","OS"],"sourceRoot":"../../../src","sources":["theme/init-css-interop.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAIC,WAAW,GAAG,KAAK;AACvB,IAAIC,MAAM,GAAG,KAAK;AAElB,MAAMC,YAAY,GAAG,wBAAwB;AAC7C,MAAMC,aAAa,GAAG,YAAY;AAUlC,SAASC,QAAQA,CAACC,OAAe,EAAEC,KAAe,EAAQ;EACxD,IAAIL,MAAM,EAAE;EACZA,MAAM,GAAG,IAAI;EACb;EACA;EACA;EACAM,OAAO,CAACC,IAAI,CAAC,WAAWH,OAAO,EAAE,EAAEC,KAAK,IAAI,EAAE,CAAC;AACjD;AAEA,SAASG,iBAAiBA,CAAA,EAAS;EACjC,IAAI,OAAOC,QAAQ,KAAK,WAAW,EAAE;EACrC,MAAMC,IAAI,GAAGD,QAAQ,CAACE,eAAe;EACrC,IAAI,CAACD,IAAI,EAAE;EACX;EACA;EACA;EACA,MAAME,OAAO,GAAGF,IAAI,CAACG,KAAK,CAACC,gBAA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