@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.
- package/lib/commonjs/theme/native-root-vars.js +1 -2
- package/lib/commonjs/theme/native-root-vars.js.map +1 -1
- package/lib/commonjs/theme/native-root-vars.native.js +5 -5
- package/lib/module/theme/native-root-vars.js +1 -2
- package/lib/module/theme/native-root-vars.js.map +1 -1
- package/lib/module/theme/native-root-vars.native.js +5 -5
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts +1 -2
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts.map +1 -1
- package/lib/typescript/module/theme/native-root-vars.d.ts +1 -2
- package/lib/typescript/module/theme/native-root-vars.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/react-native-css.d.ts +12 -13
- package/src/theme/native-root-vars.native.ts +5 -5
- package/src/theme/native-root-vars.ts +1 -2
|
@@ -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
|
|
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;
|
|
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
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
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
|
|
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
|
|
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
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
-
*
|
|
5
|
-
*
|
|
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.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `
|
|
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
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
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
|
|
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).
|