@oxyhq/bloom 0.8.4 → 0.8.5

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.
@@ -15,8 +15,7 @@ exports.applyNativeRootVars = applyNativeRootVars;
15
15
  * `exports` `import`/`require` conditions to `lib/.../native-root-vars.js`.
16
16
  *
17
17
  * It deliberately does NOT import `react-native-css/native-internal`. That subpath
18
- * is native-only: it has no web build, and react-native-css is not even a Bloom
19
- * dependency. Statically importing it from a file a web bundler resolves breaks
18
+ * is native-only. Statically importing it from a file a web bundler resolves breaks
20
19
  * module resolution outright (the original report: `Rolldown failed to resolve
21
20
  * import "react-native-css/native-internal" from .../native-root-vars.js`).
22
21
  * Importing it from a file a consumer's `tsc` resolves breaks type-check (TS2307).
@@ -1 +1 @@
1
- {"version":3,"names":["applyNativeRootVars","_colorPreset","_mode"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;;;;;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;AACO,SAASA,mBAAmBA,CAACC,YAA0B,EAAEC,KAAuB,EAAQ;EAC7F;EACA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["applyNativeRootVars","_colorPreset","_mode"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;;;;;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;AACO,SAASA,mBAAmBA,CAACC,YAA0B,EAAEC,KAAuB,EAAQ;EAC7F;EACA;AAAA","ignoreList":[]}
@@ -17,11 +17,11 @@ var _tokenRegistry = require("./token-registry.js");
17
17
  // `node_modules/@oxyhq/bloom/src/**`, and TypeScript does NOT auto-pick-up
18
18
  // ambient `.d.ts` files that live under `node_modules`, so
19
19
  // `react-native-css/native-internal` is unresolved (TS2307) unless the reference
20
- // travels with the source. react-native-css is intentionally NOT a Bloom
21
- // dependency it arrives transitively via a host's NativeWind 5 install, or is
22
- // absent entirely for NativeWind 4 consumers so the ambient declaration is the
23
- // only thing that can type this import, and it MUST reach the consumer. The
24
- // directive ships raw in `src/` (Bloom publishes `files: ["src", "lib"]`).
20
+ // travels with the source. Bloom now declares react-native-css directly because
21
+ // this native source imports it; the ambient declaration still travels with
22
+ // `src/` so consumer TypeScript programs that read Bloom source see the exact
23
+ // subpath shape. The directive ships raw in `src/` (Bloom publishes
24
+ // `files: ["src", "lib"]`).
25
25
 
26
26
  /**
27
27
  * Publish the active color preset's CSS custom properties into react-native-css's
@@ -11,8 +11,7 @@
11
11
  * `exports` `import`/`require` conditions to `lib/.../native-root-vars.js`.
12
12
  *
13
13
  * It deliberately does NOT import `react-native-css/native-internal`. That subpath
14
- * is native-only: it has no web build, and react-native-css is not even a Bloom
15
- * dependency. Statically importing it from a file a web bundler resolves breaks
14
+ * is native-only. Statically importing it from a file a web bundler resolves breaks
16
15
  * module resolution outright (the original report: `Rolldown failed to resolve
17
16
  * import "react-native-css/native-internal" from .../native-root-vars.js`).
18
17
  * Importing it from a file a consumer's `tsc` resolves breaks type-check (TS2307).
@@ -1 +1 @@
1
- {"version":3,"names":["applyNativeRootVars","_colorPreset","_mode"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;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,OAAO,SAASA,mBAAmBA,CAACC,YAA0B,EAAEC,KAAuB,EAAQ;EAC7F;EACA;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["applyNativeRootVars","_colorPreset","_mode"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;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,OAAO,SAASA,mBAAmBA,CAACC,YAA0B,EAAEC,KAAuB,EAAQ;EAC7F;EACA;AAAA","ignoreList":[]}
@@ -11,11 +11,11 @@
11
11
  // `node_modules/@oxyhq/bloom/src/**`, and TypeScript does NOT auto-pick-up
12
12
  // ambient `.d.ts` files that live under `node_modules`, so
13
13
  // `react-native-css/native-internal` is unresolved (TS2307) unless the reference
14
- // travels with the source. react-native-css is intentionally NOT a Bloom
15
- // dependency it arrives transitively via a host's NativeWind 5 install, or is
16
- // absent entirely for NativeWind 4 consumers so the ambient declaration is the
17
- // only thing that can type this import, and it MUST reach the consumer. The
18
- // directive ships raw in `src/` (Bloom publishes `files: ["src", "lib"]`).
14
+ // travels with the source. Bloom now declares react-native-css directly because
15
+ // this native source imports it; the ambient declaration still travels with
16
+ // `src/` so consumer TypeScript programs that read Bloom source see the exact
17
+ // subpath shape. The directive ships raw in `src/` (Bloom publishes
18
+ // `files: ["src", "lib"]`).
19
19
  import { rootVariables } from 'react-native-css/native-internal';
20
20
  import { getResolvedTokens } from "./token-registry.js";
21
21
 
@@ -10,8 +10,7 @@ import { type AppColorName } from './color-presets';
10
10
  * `exports` `import`/`require` conditions to `lib/.../native-root-vars.js`.
11
11
  *
12
12
  * It deliberately does NOT import `react-native-css/native-internal`. That subpath
13
- * is native-only: it has no web build, and react-native-css is not even a Bloom
14
- * dependency. Statically importing it from a file a web bundler resolves breaks
13
+ * is native-only. Statically importing it from a file a web bundler resolves breaks
15
14
  * module resolution outright (the original report: `Rolldown failed to resolve
16
15
  * import "react-native-css/native-internal" from .../native-root-vars.js`).
17
16
  * Importing it from a file a consumer's `tsc` resolves breaks type-check (TS2307).
@@ -1 +1 @@
1
- {"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG7F"}
1
+ {"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG7F"}
@@ -10,8 +10,7 @@ import { type AppColorName } from './color-presets';
10
10
  * `exports` `import`/`require` conditions to `lib/.../native-root-vars.js`.
11
11
  *
12
12
  * It deliberately does NOT import `react-native-css/native-internal`. That subpath
13
- * is native-only: it has no web build, and react-native-css is not even a Bloom
14
- * dependency. Statically importing it from a file a web bundler resolves breaks
13
+ * is native-only. Statically importing it from a file a web bundler resolves breaks
15
14
  * module resolution outright (the original report: `Rolldown failed to resolve
16
15
  * import "react-native-css/native-internal" from .../native-root-vars.js`).
17
16
  * Importing it from a file a consumer's `tsc` resolves breaks type-check (TS2307).
@@ -1 +1 @@
1
- {"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG7F"}
1
+ {"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG7F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/bloom",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
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",
@@ -871,6 +871,7 @@
871
871
  },
872
872
  "dependencies": {
873
873
  "nanoid": "^5.1.5",
874
+ "react-native-css": "3.0.7",
874
875
  "react-remove-scroll-bar": "^2.3.8"
875
876
  }
876
877
  }
@@ -1,21 +1,20 @@
1
1
  /**
2
2
  * Ambient declaration for `react-native-css/native-internal`.
3
3
  *
4
- * react-native-css is NOT a Bloom dependency it arrives transitively via the
5
- * host app's NativeWind install (NativeWind 5 is built on react-native-css@3).
6
- * Bloom's `native-root-vars.native.ts` statically imports `rootVariables` from
7
- * this subpath so Metro resolves the `import` export condition to the package's
4
+ * Bloom's native theme bridge statically imports `rootVariables` from this
5
+ * subpath so Metro resolves the `import` export condition to the package's
8
6
  * `module` build — the SAME family instance the react-native-css renderer
9
- * (`varResolver`) subscribes to. A runtime `require()` would resolve the
10
- * `require` condition to the separate `commonjs` build, whose `rootVariables`
11
- * is a distinct, un-observed family instance (see the file-level comment in
12
- * `native-root-vars.native.ts`).
7
+ * (`varResolver`) subscribes to. `react-native-css` is a direct Bloom dependency
8
+ * because this subpath is imported from published native source, including
9
+ * NativeWind 4 consumers whose test/native resolvers still select `.native.ts`.
10
+ * A runtime `require()` would resolve the `require` condition to the separate
11
+ * `commonjs` build, whose `rootVariables` is a distinct, un-observed family
12
+ * instance (see the file-level comment in `native-root-vars.native.ts`).
13
13
  *
14
- * Because the package isn't installed in Bloom, `tsc` can't see its published
15
- * types, so we declare the slice we use here — typed to match react-native-css
16
- * @3.0.7's `dist/typescript/.../native-internal/root.d.ts` exactly (no `any`,
17
- * no shims). This file is `.native`-only in spirit; the web fork never imports
18
- * the subpath, so on web bundlers the static import is never reached.
14
+ * We declare the slice we use here typed to match react-native-css @3.0.7's
15
+ * `dist/typescript/.../native-internal/root.d.ts` exactly (no `any`, no shims).
16
+ * This file is `.native`-only in spirit; the web fork never imports the subpath,
17
+ * so on web bundlers the static import is never reached.
19
18
  */
20
19
  declare module 'react-native-css/native-internal' {
21
20
  /**
@@ -9,11 +9,11 @@
9
9
  // `node_modules/@oxyhq/bloom/src/**`, and TypeScript does NOT auto-pick-up
10
10
  // ambient `.d.ts` files that live under `node_modules`, so
11
11
  // `react-native-css/native-internal` is unresolved (TS2307) unless the reference
12
- // travels with the source. react-native-css is intentionally NOT a Bloom
13
- // dependency it arrives transitively via a host's NativeWind 5 install, or is
14
- // absent entirely for NativeWind 4 consumers so the ambient declaration is the
15
- // only thing that can type this import, and it MUST reach the consumer. The
16
- // directive ships raw in `src/` (Bloom publishes `files: ["src", "lib"]`).
12
+ // travels with the source. Bloom now declares react-native-css directly because
13
+ // this native source imports it; the ambient declaration still travels with
14
+ // `src/` so consumer TypeScript programs that read Bloom source see the exact
15
+ // subpath shape. The directive ships raw in `src/` (Bloom publishes
16
+ // `files: ["src", "lib"]`).
17
17
  import { rootVariables } from 'react-native-css/native-internal';
18
18
 
19
19
  import { type AppColorName } from './color-presets';
@@ -11,8 +11,7 @@ import { type AppColorName } from './color-presets';
11
11
  * `exports` `import`/`require` conditions to `lib/.../native-root-vars.js`.
12
12
  *
13
13
  * It deliberately does NOT import `react-native-css/native-internal`. That subpath
14
- * is native-only: it has no web build, and react-native-css is not even a Bloom
15
- * dependency. Statically importing it from a file a web bundler resolves breaks
14
+ * is native-only. Statically importing it from a file a web bundler resolves breaks
16
15
  * module resolution outright (the original report: `Rolldown failed to resolve
17
16
  * import "react-native-css/native-internal" from .../native-root-vars.js`).
18
17
  * Importing it from a file a consumer's `tsc` resolves breaks type-check (TS2307).