@oxyhq/bloom 0.72.0 → 0.72.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.
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FontLoader = FontLoader;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ /**
11
+ * Node font loader: a pass-through.
12
+ *
13
+ * There is no font registry to load into and no document to inject
14
+ * `@font-face` rules on, so the correct behaviour is to render children and
15
+ * stay out of the way — the same thing `FontLoader.tsx` ends up doing under
16
+ * Node once `applyFontFaces()` hits its `typeof document === 'undefined'`
17
+ * guard.
18
+ *
19
+ * It exists as a separate file rather than reusing that one because
20
+ * `FontLoader.tsx` imports `./apply-font-faces.web` outright, which reaches
21
+ * `font-urls.web`'s `.woff2` imports. Node hands a `.woff2` to the JS parser,
22
+ * so merely LOADING that module is fatal — the guard inside the function never
23
+ * gets a chance to run. Reached only through the `node` export condition on
24
+ * `./fonts`; see `scripts/generate-platform-exports.mjs` for why conditions
25
+ * are the only lever available here.
26
+ */
27
+ function FontLoader({
28
+ children
29
+ }) {
30
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
31
+ children: children
32
+ });
33
+ }
34
+ //# sourceMappingURL=FontLoader.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_jsxRuntime","e","__esModule","default","FontLoader","children","jsx","Fragment"],"sourceRoot":"../../../src","sources":["fonts/FontLoader.node.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAU1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,UAAUA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EACxD,oBAAO,IAAAL,WAAA,CAAAM,GAAA,EAAAN,WAAA,CAAAO,QAAA;IAAAF,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "FONT_ASSETS", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _fontAssets.FONT_ASSETS;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "FontLoader", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _FontLoaderNode.FontLoader;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "applyFontFaces", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _applyFontFaces.applyFontFaces;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "fontCssVars", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _tokens.fontCssVars;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "fontFamilies", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _tokens.fontFamilies;
34
+ }
35
+ });
36
+ var _tokens = require("./tokens.js");
37
+ var _applyFontFaces = require("./apply-font-faces");
38
+ var _fontAssets = require("./font-assets");
39
+ var _FontLoaderNode = require("./FontLoader.node.js");
40
+ //# sourceMappingURL=index.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_tokens","require","_applyFontFaces","_fontAssets","_FontLoaderNode"],"sourceRoot":"../../../src","sources":["fonts/index.node.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
5
+ /**
6
+ * Node font loader: a pass-through.
7
+ *
8
+ * There is no font registry to load into and no document to inject
9
+ * `@font-face` rules on, so the correct behaviour is to render children and
10
+ * stay out of the way — the same thing `FontLoader.tsx` ends up doing under
11
+ * Node once `applyFontFaces()` hits its `typeof document === 'undefined'`
12
+ * guard.
13
+ *
14
+ * It exists as a separate file rather than reusing that one because
15
+ * `FontLoader.tsx` imports `./apply-font-faces.web` outright, which reaches
16
+ * `font-urls.web`'s `.woff2` imports. Node hands a `.woff2` to the JS parser,
17
+ * so merely LOADING that module is fatal — the guard inside the function never
18
+ * gets a chance to run. Reached only through the `node` export condition on
19
+ * `./fonts`; see `scripts/generate-platform-exports.mjs` for why conditions
20
+ * are the only lever available here.
21
+ */
22
+ export function FontLoader({
23
+ children
24
+ }) {
25
+ return /*#__PURE__*/_jsx(_Fragment, {
26
+ children: children
27
+ });
28
+ }
29
+ //# sourceMappingURL=FontLoader.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Fragment","_Fragment","jsx","_jsx","FontLoader","children"],"sourceRoot":"../../../src","sources":["fonts/FontLoader.node.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAAC,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA;AAU1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EACxD,oBAAOF,IAAA,CAAAF,SAAA;IAAAI,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ // Node variant of the `./fonts` barrel, selected by the `node` export
4
+ // condition. Same surface as `./index.ts`, with every member resolved to the
5
+ // inert implementation:
6
+ //
7
+ // - `./apply-font-faces` is the no-op stub. The web one is unreachable here on
8
+ // purpose: it imports `font-urls.web`, whose `.woff2` imports Node feeds to
9
+ // the JS parser, so loading it throws `SyntaxError` before any runtime guard
10
+ // can help.
11
+ // - `./font-assets` is the empty map — there is no native font registry.
12
+ // - `./FontLoader.node` renders children and nothing else.
13
+ //
14
+ // Both platform-forked members are named OUTRIGHT rather than left
15
+ // extensionless, for the same reason `index.web.ts` does it: Node performs no
16
+ // platform-extension resolution, so a bare specifier would fall through to
17
+ // whichever file happens to sit at that path.
18
+ export { fontFamilies, fontCssVars } from "./tokens.js";
19
+ export { applyFontFaces } from './apply-font-faces';
20
+ export { FONT_ASSETS } from './font-assets';
21
+ export { FontLoader } from "./FontLoader.node.js";
22
+ //# sourceMappingURL=index.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["fontFamilies","fontCssVars","applyFontFaces","FONT_ASSETS","FontLoader"],"sourceRoot":"../../../src","sources":["fonts/index.node.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,YAAY,EAAEC,WAAW,QAAQ,aAAU;AAEpD,SAASC,cAAc,QAAQ,oBAAoB;AACnD,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,UAAU,QAAQ,sBAAmB","ignoreList":[]}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export interface FontLoaderProps {
3
+ /** Ignored — there is nothing to load. Kept so the API matches every platform. */
4
+ enabled: boolean;
5
+ /** Ignored — nothing is ever pending, so children render immediately. */
6
+ fallback?: React.ReactNode;
7
+ children: React.ReactNode;
8
+ }
9
+ /**
10
+ * Node font loader: a pass-through.
11
+ *
12
+ * There is no font registry to load into and no document to inject
13
+ * `@font-face` rules on, so the correct behaviour is to render children and
14
+ * stay out of the way — the same thing `FontLoader.tsx` ends up doing under
15
+ * Node once `applyFontFaces()` hits its `typeof document === 'undefined'`
16
+ * guard.
17
+ *
18
+ * It exists as a separate file rather than reusing that one because
19
+ * `FontLoader.tsx` imports `./apply-font-faces.web` outright, which reaches
20
+ * `font-urls.web`'s `.woff2` imports. Node hands a `.woff2` to the JS parser,
21
+ * so merely LOADING that module is fatal — the guard inside the function never
22
+ * gets a chance to run. Reached only through the `node` export condition on
23
+ * `./fonts`; see `scripts/generate-platform-exports.mjs` for why conditions
24
+ * are the only lever available here.
25
+ */
26
+ export declare function FontLoader({ children }: FontLoaderProps): import("react/jsx-runtime").JSX.Element;
27
+ //# sourceMappingURL=FontLoader.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FontLoader.node.d.ts","sourceRoot":"","sources":["../../../../src/fonts/FontLoader.node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,OAAO,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAEvD"}
@@ -0,0 +1,7 @@
1
+ export { fontFamilies, fontCssVars } from './tokens';
2
+ export type { FontFamilyName } from './tokens';
3
+ export { applyFontFaces } from './apply-font-faces';
4
+ export { FONT_ASSETS } from './font-assets';
5
+ export { FontLoader } from './FontLoader.node';
6
+ export type { FontLoaderProps } from './FontLoader.node';
7
+ //# sourceMappingURL=index.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../../../src/fonts/index.node.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ export interface FontLoaderProps {
3
+ /** Ignored — there is nothing to load. Kept so the API matches every platform. */
4
+ enabled: boolean;
5
+ /** Ignored — nothing is ever pending, so children render immediately. */
6
+ fallback?: React.ReactNode;
7
+ children: React.ReactNode;
8
+ }
9
+ /**
10
+ * Node font loader: a pass-through.
11
+ *
12
+ * There is no font registry to load into and no document to inject
13
+ * `@font-face` rules on, so the correct behaviour is to render children and
14
+ * stay out of the way — the same thing `FontLoader.tsx` ends up doing under
15
+ * Node once `applyFontFaces()` hits its `typeof document === 'undefined'`
16
+ * guard.
17
+ *
18
+ * It exists as a separate file rather than reusing that one because
19
+ * `FontLoader.tsx` imports `./apply-font-faces.web` outright, which reaches
20
+ * `font-urls.web`'s `.woff2` imports. Node hands a `.woff2` to the JS parser,
21
+ * so merely LOADING that module is fatal — the guard inside the function never
22
+ * gets a chance to run. Reached only through the `node` export condition on
23
+ * `./fonts`; see `scripts/generate-platform-exports.mjs` for why conditions
24
+ * are the only lever available here.
25
+ */
26
+ export declare function FontLoader({ children }: FontLoaderProps): import("react/jsx-runtime").JSX.Element;
27
+ //# sourceMappingURL=FontLoader.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FontLoader.node.d.ts","sourceRoot":"","sources":["../../../../src/fonts/FontLoader.node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,OAAO,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAEvD"}
@@ -0,0 +1,7 @@
1
+ export { fontFamilies, fontCssVars } from './tokens';
2
+ export type { FontFamilyName } from './tokens';
3
+ export { applyFontFaces } from './apply-font-faces';
4
+ export { FONT_ASSETS } from './font-assets';
5
+ export { FontLoader } from './FontLoader.node';
6
+ export type { FontLoaderProps } from './FontLoader.node';
7
+ //# sourceMappingURL=index.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../../../src/fonts/index.node.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/bloom",
3
- "version": "0.72.0",
3
+ "version": "0.72.1",
4
4
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -1233,6 +1233,11 @@
1233
1233
  "import": "./lib/module/fonts/index.web.js",
1234
1234
  "require": "./lib/commonjs/fonts/index.web.js"
1235
1235
  },
1236
+ "node": {
1237
+ "types": "./lib/typescript/module/fonts/index.node.d.ts",
1238
+ "import": "./lib/module/fonts/index.node.js",
1239
+ "require": "./lib/commonjs/fonts/index.node.js"
1240
+ },
1236
1241
  "import": {
1237
1242
  "types": "./lib/typescript/module/fonts/index.d.ts",
1238
1243
  "default": "./lib/module/fonts/index.js"
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+
3
+ export interface FontLoaderProps {
4
+ /** Ignored — there is nothing to load. Kept so the API matches every platform. */
5
+ enabled: boolean;
6
+ /** Ignored — nothing is ever pending, so children render immediately. */
7
+ fallback?: React.ReactNode;
8
+ children: React.ReactNode;
9
+ }
10
+
11
+ /**
12
+ * Node font loader: a pass-through.
13
+ *
14
+ * There is no font registry to load into and no document to inject
15
+ * `@font-face` rules on, so the correct behaviour is to render children and
16
+ * stay out of the way — the same thing `FontLoader.tsx` ends up doing under
17
+ * Node once `applyFontFaces()` hits its `typeof document === 'undefined'`
18
+ * guard.
19
+ *
20
+ * It exists as a separate file rather than reusing that one because
21
+ * `FontLoader.tsx` imports `./apply-font-faces.web` outright, which reaches
22
+ * `font-urls.web`'s `.woff2` imports. Node hands a `.woff2` to the JS parser,
23
+ * so merely LOADING that module is fatal — the guard inside the function never
24
+ * gets a chance to run. Reached only through the `node` export condition on
25
+ * `./fonts`; see `scripts/generate-platform-exports.mjs` for why conditions
26
+ * are the only lever available here.
27
+ */
28
+ export function FontLoader({ children }: FontLoaderProps) {
29
+ return <>{children}</>;
30
+ }
@@ -0,0 +1,21 @@
1
+ // Node variant of the `./fonts` barrel, selected by the `node` export
2
+ // condition. Same surface as `./index.ts`, with every member resolved to the
3
+ // inert implementation:
4
+ //
5
+ // - `./apply-font-faces` is the no-op stub. The web one is unreachable here on
6
+ // purpose: it imports `font-urls.web`, whose `.woff2` imports Node feeds to
7
+ // the JS parser, so loading it throws `SyntaxError` before any runtime guard
8
+ // can help.
9
+ // - `./font-assets` is the empty map — there is no native font registry.
10
+ // - `./FontLoader.node` renders children and nothing else.
11
+ //
12
+ // Both platform-forked members are named OUTRIGHT rather than left
13
+ // extensionless, for the same reason `index.web.ts` does it: Node performs no
14
+ // platform-extension resolution, so a bare specifier would fall through to
15
+ // whichever file happens to sit at that path.
16
+ export { fontFamilies, fontCssVars } from './tokens';
17
+ export type { FontFamilyName } from './tokens';
18
+ export { applyFontFaces } from './apply-font-faces';
19
+ export { FONT_ASSETS } from './font-assets';
20
+ export { FontLoader } from './FontLoader.node';
21
+ export type { FontLoaderProps } from './FontLoader.node';