@kbach/react 0.6.51 → 1.0.0-beta.0

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.
@@ -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
- * Babel uses jsxDEV (instead of jsx/jsxs) in dev builds.
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
- * We intercept `className`/`kb` props exactly like the production runtime, but
11
- * forward `_source` to React's own jsxDEV so React DevTools can display the
12
- * correct file + line number for every element.
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?: {