@weapp-tailwindcss/react-native 0.3.10 → 0.3.11-dev.20261117.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.
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-CxNMLBiF.cjs";
1
+ import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-BD7gYp1O.cjs";
2
2
  import { baseClassName } from "@weapp-tailwindcss/postcss/native";
3
3
  export declare function addNativeVariantRules(manifest: NativeStyleManifest, candidates: Iterable<string>): void;
4
4
  /** 为 manifest 生成稳定的 StyleSheet ID 和 Babel 静态 lookup。 */
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-CxNMLBiF.js";
1
+ import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-BD7gYp1O.js";
2
2
  import { baseClassName } from "@weapp-tailwindcss/postcss/native";
3
3
  export declare function addNativeVariantRules(manifest: NativeStyleManifest, candidates: Iterable<string>): void;
4
4
  /** 为 manifest 生成稳定的 StyleSheet ID 和 Babel 静态 lookup。 */
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import weappReactNativeBabel from "./babel.cjs";
2
2
  import { compileNativeStylesheet } from "./compiler.cjs";
3
- import { d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, m as getVirtualModuleCode, o as withWeappTailwindcss, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, u as getRegisteredSnapshot } from "./metro-BdsKKvRn.cjs";
4
- import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, f as NativeStyleRuntime, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-D4ZGX6yk.cjs";
5
- import { n as generateNativeStylesheet } from "./tailwind-CfKLPJuW.cjs";
6
- import { a as NativeStyleManifest, i as NativePlatform, n as NativeCompilerWarning, o as NativeStyleRule, r as NativeManifestPublication, t as CompileNativeStylesheetOptions } from "./types-CxNMLBiF.cjs";
3
+ import { d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, m as getVirtualModuleCode, o as withWeappTailwindcss, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, u as getRegisteredSnapshot } from "./metro-CB1Z-JIG.cjs";
4
+ import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, f as NativeStyleRuntime, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-IUI4KxSb.cjs";
5
+ import { n as generateNativeStylesheet } from "./tailwind-BavNtSOK.cjs";
6
+ import { a as NativeStyleManifest, i as NativePlatform, n as NativeCompilerWarning, o as NativeStyleRule, r as NativeManifestPublication, t as CompileNativeStylesheetOptions } from "./types-BD7gYp1O.cjs";
7
7
  export { type CompileNativeStylesheetOptions, type NativeClassValue, type NativeCompilerWarning, type NativeManifestPublication, type NativePlatform, type NativeStyleEnvironment, type NativeStyleManifest, type NativeStyleRule, type NativeStyleRuntime, type NativeStyleValue, VIRTUAL_MANIFEST_MODULE, weappReactNativeBabel as babelPlugin, compileNativeStylesheet, composeStyle, createNativeStyleRuntime, generateNativeStylesheet, getManifest, getPublication, getRegisteredManifest, getRegisteredSnapshot, getRegisteredSnapshotByPath, getRegisteredSnapshotByProjectRoot, getStaticStyle, getVirtualModuleCode, getVirtualModuleCodeAsync, setEnvironment, setManifest, setStyleSheetFactory, tw, withWeappTailwindcss };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import weappReactNativeBabel from "./babel.js";
2
2
  import { compileNativeStylesheet } from "./compiler.js";
3
- import { d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, m as getVirtualModuleCode, o as withWeappTailwindcss, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, u as getRegisteredSnapshot } from "./metro-ahmChgsA.js";
4
- import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, f as NativeStyleRuntime, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-YHlnn5ip.js";
5
- import { n as generateNativeStylesheet } from "./tailwind-4T0v_pRK.js";
6
- import { a as NativeStyleManifest, i as NativePlatform, n as NativeCompilerWarning, o as NativeStyleRule, r as NativeManifestPublication, t as CompileNativeStylesheetOptions } from "./types-CxNMLBiF.js";
3
+ import { d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, m as getVirtualModuleCode, o as withWeappTailwindcss, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, u as getRegisteredSnapshot } from "./metro-thT3wssT.js";
4
+ import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, f as NativeStyleRuntime, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-DALbIQba.js";
5
+ import { n as generateNativeStylesheet } from "./tailwind-0A9kT3kY.js";
6
+ import { a as NativeStyleManifest, i as NativePlatform, n as NativeCompilerWarning, o as NativeStyleRule, r as NativeManifestPublication, t as CompileNativeStylesheetOptions } from "./types-BD7gYp1O.js";
7
7
  export { type CompileNativeStylesheetOptions, type NativeClassValue, type NativeCompilerWarning, type NativeManifestPublication, type NativePlatform, type NativeStyleEnvironment, type NativeStyleManifest, type NativeStyleRule, type NativeStyleRuntime, type NativeStyleValue, VIRTUAL_MANIFEST_MODULE, weappReactNativeBabel as babelPlugin, compileNativeStylesheet, composeStyle, createNativeStyleRuntime, generateNativeStylesheet, getManifest, getPublication, getRegisteredManifest, getRegisteredSnapshot, getRegisteredSnapshotByPath, getRegisteredSnapshotByProjectRoot, getStaticStyle, getVirtualModuleCode, getVirtualModuleCodeAsync, setEnvironment, setManifest, setStyleSheetFactory, tw, withWeappTailwindcss };
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, r as NativeManifestPublication } from "./types-CxNMLBiF.cjs";
1
+ import { a as NativeStyleManifest, r as NativeManifestPublication } from "./types-BD7gYp1O.cjs";
2
2
  interface NativeManifestSnapshot {
3
3
  version: number;
4
4
  manifest: NativeStyleManifest;
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, r as NativeManifestPublication } from "./types-CxNMLBiF.js";
1
+ import { a as NativeStyleManifest, r as NativeManifestPublication } from "./types-BD7gYp1O.js";
2
2
  interface NativeManifestSnapshot {
3
3
  version: number;
4
4
  manifest: NativeStyleManifest;
package/dist/metro.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as getManifestPathsForProjectRoot, c as getRegisteredManifestByPath, d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, i as WeappReactNativeMetroOptions, l as getRegisteredManifestByProjectRoot, m as getVirtualModuleCode, n as NativeManifestPaths, o as withWeappTailwindcss, p as getRegisteredVirtualModule, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, t as MetroConfigLike, u as getRegisteredSnapshot } from "./metro-BdsKKvRn.cjs";
1
+ import { a as getManifestPathsForProjectRoot, c as getRegisteredManifestByPath, d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, i as WeappReactNativeMetroOptions, l as getRegisteredManifestByProjectRoot, m as getVirtualModuleCode, n as NativeManifestPaths, o as withWeappTailwindcss, p as getRegisteredVirtualModule, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, t as MetroConfigLike, u as getRegisteredSnapshot } from "./metro-CB1Z-JIG.cjs";
2
2
  export { MetroConfigLike, NativeManifestPaths, VIRTUAL_MANIFEST_MODULE, WeappReactNativeMetroOptions, getManifestPathsForProjectRoot, getRegisteredManifest, getRegisteredManifestByPath, getRegisteredManifestByProjectRoot, getRegisteredSnapshot, getRegisteredSnapshotByPath, getRegisteredSnapshotByProjectRoot, getRegisteredVirtualModule, getVirtualModuleCode, getVirtualModuleCodeAsync, withWeappTailwindcss };
package/dist/metro.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as getManifestPathsForProjectRoot, c as getRegisteredManifestByPath, d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, i as WeappReactNativeMetroOptions, l as getRegisteredManifestByProjectRoot, m as getVirtualModuleCode, n as NativeManifestPaths, o as withWeappTailwindcss, p as getRegisteredVirtualModule, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, t as MetroConfigLike, u as getRegisteredSnapshot } from "./metro-ahmChgsA.js";
1
+ import { a as getManifestPathsForProjectRoot, c as getRegisteredManifestByPath, d as getRegisteredSnapshotByPath, f as getRegisteredSnapshotByProjectRoot, h as getVirtualModuleCodeAsync, i as WeappReactNativeMetroOptions, l as getRegisteredManifestByProjectRoot, m as getVirtualModuleCode, n as NativeManifestPaths, o as withWeappTailwindcss, p as getRegisteredVirtualModule, r as VIRTUAL_MANIFEST_MODULE, s as getRegisteredManifest, t as MetroConfigLike, u as getRegisteredSnapshot } from "./metro-thT3wssT.js";
2
2
  export { MetroConfigLike, NativeManifestPaths, VIRTUAL_MANIFEST_MODULE, WeappReactNativeMetroOptions, getManifestPathsForProjectRoot, getRegisteredManifest, getRegisteredManifestByPath, getRegisteredManifestByProjectRoot, getRegisteredSnapshot, getRegisteredSnapshotByPath, getRegisteredSnapshotByProjectRoot, getRegisteredVirtualModule, getVirtualModuleCode, getVirtualModuleCodeAsync, withWeappTailwindcss };
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-CxNMLBiF.js";
1
+ import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-BD7gYp1O.js";
2
2
  type FalsyStyle = undefined | null | false | '';
3
3
  type RegisteredStyle<T> = number & {
4
4
  __registeredStyleBrand: T;
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-CxNMLBiF.cjs";
1
+ import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-BD7gYp1O.cjs";
2
2
  type FalsyStyle = undefined | null | false | '';
3
3
  type RegisteredStyle<T> = number & {
4
4
  __registeredStyleBrand: T;
@@ -1,3 +1,3 @@
1
- import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-CxNMLBiF.cjs";
2
- import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-D4ZGX6yk.cjs";
1
+ import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-BD7gYp1O.cjs";
2
+ import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-IUI4KxSb.cjs";
3
3
  export { type NativeClassValue, type NativeManifestPublication, type NativePlatform, type NativeStyleEnvironment, type NativeStyleManifest, type NativeStyleValue, composeStyle, createNativeStyleRuntime, getManifest, getPublication, getStaticStyle, setEnvironment, setManifest, setStyleSheetFactory, tw };
package/dist/runtime.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-CxNMLBiF.js";
2
- import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-YHlnn5ip.js";
1
+ import { a as NativeStyleManifest, i as NativePlatform, r as NativeManifestPublication } from "./types-BD7gYp1O.js";
2
+ import { a as getStaticStyle, c as setStyleSheetFactory, d as NativeStyleEnvironment, i as getPublication, l as tw, n as createNativeStyleRuntime, o as setEnvironment, p as NativeStyleValue, r as getManifest, s as setManifest, t as composeStyle, u as NativeClassValue } from "./runtime-DALbIQba.js";
3
3
  export { type NativeClassValue, type NativeManifestPublication, type NativePlatform, type NativeStyleEnvironment, type NativeStyleManifest, type NativeStyleValue, composeStyle, createNativeStyleRuntime, getManifest, getPublication, getStaticStyle, setEnvironment, setManifest, setStyleSheetFactory, tw };
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-CxNMLBiF.js";
1
+ import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-BD7gYp1O.js";
2
2
  import { TailwindV4SourceOptions } from "weapp-tailwindcss/generator";
3
3
  interface GenerateNativeStylesheetOptions extends Omit<TailwindV4SourceOptions, 'projectRoot' | 'cssEntries'>, Pick<CompileNativeStylesheetOptions, 'boxShadow'> {
4
4
  /** Tailwind source 扫描根目录;用于 workspace 示例和 Metro 项目。 */
@@ -1,4 +1,4 @@
1
- import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-CxNMLBiF.cjs";
1
+ import { a as NativeStyleManifest, t as CompileNativeStylesheetOptions } from "./types-BD7gYp1O.cjs";
2
2
  import { TailwindV4SourceOptions } from "weapp-tailwindcss/generator";
3
3
  interface GenerateNativeStylesheetOptions extends Omit<TailwindV4SourceOptions, 'projectRoot' | 'cssEntries'>, Pick<CompileNativeStylesheetOptions, 'boxShadow'> {
4
4
  /** Tailwind source 扫描根目录;用于 workspace 示例和 Metro 项目。 */
@@ -1,2 +1,2 @@
1
- import { n as generateNativeStylesheet, t as GenerateNativeStylesheetOptions } from "./tailwind-CfKLPJuW.cjs";
1
+ import { n as generateNativeStylesheet, t as GenerateNativeStylesheetOptions } from "./tailwind-BavNtSOK.cjs";
2
2
  export { type GenerateNativeStylesheetOptions, generateNativeStylesheet };
@@ -1,2 +1,2 @@
1
- import { n as generateNativeStylesheet, t as GenerateNativeStylesheetOptions } from "./tailwind-4T0v_pRK.js";
1
+ import { n as generateNativeStylesheet, t as GenerateNativeStylesheetOptions } from "./tailwind-0A9kT3kY.js";
2
2
  export { type GenerateNativeStylesheetOptions, generateNativeStylesheet };
@@ -7,14 +7,14 @@ interface NativeManifestPublication {
7
7
  interface NativeStyleManifest {
8
8
  version: 1;
9
9
  classSet: string[];
10
- rules: Record<string, NativeStyleRule[]>;
10
+ rules: Record<string, NativeStyleRule$1[]>;
11
11
  /** 可直接交给 StyleSheet.create 的稳定规则表。 */
12
12
  styleSheet?: Record<string, Record<string, unknown>>;
13
13
  /** styleSheet 规则的条件和优先级元数据。 */
14
- styleEntries?: Record<string, NativeStyleRule>;
14
+ styleEntries?: Record<string, NativeStyleRule$1>;
15
15
  /** 每个 class token 对应的静态 style ID,Babel 编译结果直接使用它。 */
16
16
  staticLookup?: Record<string, string[]>;
17
17
  variables: Record<string, string>;
18
- warnings: NativeCompilerWarning[];
18
+ warnings: NativeCompilerWarning$1[];
19
19
  }
20
- export { NativeStyleManifest as a, NativePlatform as i, NativeCompilerWarning$1 as n, NativeStyleRule$1 as o, NativeManifestPublication as r, CompileNativeStylesheetOptions as t };
20
+ export { NativeStyleManifest as a, NativePlatform as i, NativeCompilerWarning as n, NativeStyleRule as o, NativeManifestPublication as r, CompileNativeStylesheetOptions as t };
@@ -7,14 +7,14 @@ interface NativeManifestPublication {
7
7
  interface NativeStyleManifest {
8
8
  version: 1;
9
9
  classSet: string[];
10
- rules: Record<string, NativeStyleRule[]>;
10
+ rules: Record<string, NativeStyleRule$1[]>;
11
11
  /** 可直接交给 StyleSheet.create 的稳定规则表。 */
12
12
  styleSheet?: Record<string, Record<string, unknown>>;
13
13
  /** styleSheet 规则的条件和优先级元数据。 */
14
- styleEntries?: Record<string, NativeStyleRule>;
14
+ styleEntries?: Record<string, NativeStyleRule$1>;
15
15
  /** 每个 class token 对应的静态 style ID,Babel 编译结果直接使用它。 */
16
16
  staticLookup?: Record<string, string[]>;
17
17
  variables: Record<string, string>;
18
- warnings: NativeCompilerWarning[];
18
+ warnings: NativeCompilerWarning$1[];
19
19
  }
20
- export { NativeStyleManifest as a, NativePlatform as i, NativeCompilerWarning$1 as n, NativeStyleRule$1 as o, NativeManifestPublication as r, CompileNativeStylesheetOptions as t };
20
+ export { NativeStyleManifest as a, NativePlatform as i, NativeCompilerWarning as n, NativeStyleRule as o, NativeManifestPublication as r, CompileNativeStylesheetOptions as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/react-native",
3
3
  "type": "module",
4
- "version": "0.3.10",
4
+ "version": "0.3.11-dev.20261117.1",
5
5
  "description": "Tailwind CSS compiler and Expo Metro integration for cross-platform React Native apps. 面向跨端 React Native 应用的 Tailwind CSS 编译器与 Expo Metro 集成。",
6
6
  "license": "MIT",
7
7
  "homepage": "https://tw.weapp.dev/docs/quick-start/react-native-expo",
@@ -104,7 +104,9 @@
104
104
  "node": ">=22.12.0"
105
105
  },
106
106
  "publishConfig": {
107
- "access": "public"
107
+ "access": "public",
108
+ "tag": "snapshot-nightly",
109
+ "registry": "https://registry.npmjs.org/"
108
110
  },
109
111
  "peerDependencies": {
110
112
  "@babel/core": ">=7.22.0",
@@ -131,10 +133,10 @@
131
133
  }
132
134
  },
133
135
  "dependencies": {
134
- "@babel/types": "^8.0.8",
136
+ "@babel/types": "^8.1.2",
135
137
  "@types/convert-source-map": "^2.0.3",
136
- "@weapp-tailwindcss/postcss": "4.0.5",
137
- "weapp-tailwindcss": "5.7.5"
138
+ "@weapp-tailwindcss/postcss": "4.0.6-dev.20261117.1",
139
+ "weapp-tailwindcss": "5.7.6-dev.20261117.1"
138
140
  },
139
141
  "devDependencies": {
140
142
  "@babel/core": "^7.29.7",
@@ -143,6 +145,13 @@
143
145
  "typescript": "^5.9.3",
144
146
  "vitest": "~5.1.0"
145
147
  },
148
+ "repoctlSnapshot": {
149
+ "kind": "nightly",
150
+ "commit": "06815a1e532fd96bd3f8a73388c4b8b5788c817d",
151
+ "buildId": "44004731642-1",
152
+ "identityKey": "862d5b2edc889f9f141a37385bdde3217931e28f4fdf9ac0f32d4b4ca814bf1c",
153
+ "tag": "snapshot-nightly"
154
+ },
146
155
  "scripts": {
147
156
  "build": "tsdown && tsx ../../tools/weapp-tailwindcss-scripts/src/duplicate-cjs-declarations.ts . --only-defaults --default=babel",
148
157
  "test": "vitest run",
@@ -152,4 +161,4 @@
152
161
  "lint": "eslint .",
153
162
  "release": "pnpm publish"
154
163
  }
155
- }
164
+ }