rechtspilot-ui 1.3.0 → 1.3.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.
package/icons/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- // React Native compatible icons type definitions.
2
- // This folder shim is the fallback for Metro setups without package-exports support;
3
- // its JS entry resolves to the native bundle, so its types are the native ones too.
4
- export * from '../dist/native/icons/index.native';
1
+ // TypeScript fallback for the icons subpath when a resolver ignores the root
2
+ // package.json "exports" map and falls into this directory shim.
3
+ // Defaults to the WEB types to match the web-default JS entry (index.js);
4
+ // modern resolvers get platform-correct types via the root "exports" map.
5
+ export * from '../dist/icons';
package/icons/index.js CHANGED
@@ -1,2 +1,5 @@
1
- // React Native compatible icons entry point - ES module format for Metro
2
- export * from '../dist/icons.native.es.js';
1
+ // Last-resort entry for resolvers that ignore this directory's package.json fields.
2
+ // Defaults to the WEB build so web bundlers (Vite/esbuild) that fall into this
3
+ // directory don't get React Native (Flow-typed) source. Metro/React Native is
4
+ // routed to the native build via the "react-native" field in package.json here.
5
+ export * from '../dist/icons.es.js';
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "rechtspilot-ui-icons",
3
- "main": "../dist/icons.native.es.js",
4
- "module": "../dist/icons.native.es.js",
5
- "types": "index.d.ts",
6
- "react-native": "../dist/icons.native.es.js"
3
+ "main": "../dist/icons.es.js",
4
+ "module": "../dist/icons.es.js",
5
+ "browser": "../dist/icons.es.js",
6
+ "react-native": "../dist/icons.native.es.js",
7
+ "types": "index.d.ts"
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rechtspilot-ui",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "Rechtspilot UI Library",
6
6
  "main": "dist/index.cjs",
@@ -77,6 +77,7 @@
77
77
  "build:web": "tsc -b && vite build",
78
78
  "build:native": "BUILD_TARGET=native vite build",
79
79
  "test:imports": "node test-import.cjs && node test-subpath-imports.mjs && node test-react-native-import.js",
80
+ "test:web-bundle": "node test-web-bundle.mjs",
80
81
  "lint": "eslint . --report-unused-disable-directives --max-warnings 0",
81
82
  "type-check": "tsc --noEmit",
82
83
  "sb": "storybook dev -p 6006 --no-open",
@@ -113,6 +114,7 @@
113
114
  "@vitejs/plugin-react": "^6.0.1",
114
115
  "auto": "^11.3.6",
115
116
  "cmdk": "^1.1.1",
117
+ "esbuild": "^0.27.7",
116
118
  "eslint": "^10.2.0",
117
119
  "eslint-config-prettier": "^10.1.8",
118
120
  "eslint-plugin-prettier": "^5.5.5",