@kbach/react 0.6.51 → 1.0.0-beta.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/README.md +90 -418
- package/dist/chunk-AD3G6RHY.mjs +32 -0
- package/dist/chunk-FOQWQDF4.mjs +446 -0
- package/dist/chunk-ROZXCQSM.mjs +100 -0
- package/dist/index.d.mts +117 -0
- package/dist/index.d.ts +84 -295
- package/dist/index.js +650 -1101
- package/dist/index.mjs +143 -550
- package/dist/jsx-dev-runtime.d.mts +22 -0
- package/dist/jsx-dev-runtime.d.ts +6 -5
- package/dist/jsx-dev-runtime.js +485 -695
- package/dist/jsx-dev-runtime.mjs +3 -3
- package/dist/jsx-runtime.d.mts +22 -0
- package/dist/jsx-runtime.d.ts +11 -6
- package/dist/jsx-runtime.js +487 -706
- package/dist/jsx-runtime.mjs +4 -9
- package/dist/theme-BKAb78KP.d.mts +20 -0
- package/dist/theme-BKAb78KP.d.ts +20 -0
- package/dist/vite-plugin.d.mts +20 -147
- package/dist/vite-plugin.d.ts +20 -147
- package/dist/vite-plugin.js +1411 -3721
- package/dist/vite-plugin.mjs +994 -3713
- package/package.json +20 -46
- package/KBACH.md +0 -1044
- package/dist/chunk-KRRGLJLA.mjs +0 -4187
- package/dist/chunk-LIUJPOTS.mjs +0 -208
- package/dist/core/index.d.ts +0 -1346
- package/dist/core/index.js +0 -3712
- package/dist/native.d.ts +0 -314
- package/dist/native.js +0 -99
- package/dist/web-substitute-CfpYFnE7.d.ts +0 -22
- package/jsx-dev-runtime.js +0 -3
- package/jsx-runtime.js +0 -3
- package/kbach-react.md +0 -889
- package/scripts/postinstall.js +0 -28
- package/src/native/babel/index.js +0 -30
- package/src/native/babel-plugin/index.js +0 -605
- package/src/native/babel-plugin/index.test.ts +0 -86
- package/types.d.ts +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export { Fragment } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @kbach/react/jsx-dev-runtime
|
|
6
|
+
*
|
|
7
|
+
* Development variant of the custom JSX runtime. Vite (and other
|
|
8
|
+
* bundlers/compilers) call jsxDEV instead of jsx/jsxs in dev builds.
|
|
9
|
+
*
|
|
10
|
+
* Intercepts `className` exactly like the production runtime (by reusing
|
|
11
|
+
* jsx/jsxs directly — no separate interception logic to keep in sync), then
|
|
12
|
+
* patches `_source`/`_self` onto the result so React DevTools shows the
|
|
13
|
+
* original file/line, not this wrapper.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
|
|
17
|
+
fileName: string;
|
|
18
|
+
lineNumber: number;
|
|
19
|
+
columnNumber: number;
|
|
20
|
+
}, self?: unknown): ReactElement;
|
|
21
|
+
|
|
22
|
+
export { jsxDEV };
|
|
@@ -4,12 +4,13 @@ export { Fragment } from 'react';
|
|
|
4
4
|
/**
|
|
5
5
|
* @kbach/react/jsx-dev-runtime
|
|
6
6
|
*
|
|
7
|
-
* Development variant of the custom JSX runtime.
|
|
8
|
-
*
|
|
7
|
+
* Development variant of the custom JSX runtime. Vite (and other
|
|
8
|
+
* bundlers/compilers) call jsxDEV instead of jsx/jsxs in dev builds.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Intercepts `className` exactly like the production runtime (by reusing
|
|
11
|
+
* jsx/jsxs directly — no separate interception logic to keep in sync), then
|
|
12
|
+
* patches `_source`/`_self` onto the result so React DevTools shows the
|
|
13
|
+
* original file/line, not this wrapper.
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
declare function jsxDEV(type: unknown, props: Record<string, unknown> | null, key?: string, isStaticChildren?: boolean, source?: {
|