jsx-framework-pb 0.0.1 → 0.0.2
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,10 +1,6 @@
|
|
|
1
1
|
// src/jsx-runtime.ts
|
|
2
2
|
function jsx(type, props, key) {
|
|
3
|
-
return {
|
|
4
|
-
type,
|
|
5
|
-
props: props != null ? props : {},
|
|
6
|
-
key: key != null ? key : null
|
|
7
|
-
};
|
|
3
|
+
return { type, props, key: key != null ? key : null };
|
|
8
4
|
}
|
|
9
5
|
var jsxs = jsx;
|
|
10
6
|
var Fragment = /* @__PURE__ */ Symbol("Fragment");
|
|
@@ -14,4 +10,4 @@ export {
|
|
|
14
10
|
jsxs,
|
|
15
11
|
Fragment
|
|
16
12
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-XVAMNTOW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { VNode } from \"./types\";\r\n\r\nexport function jsx(\r\n type: VNode[\"type\"],\r\n props: any,\r\n key?: string | number | null\r\n): VNode {\r\n return { type, props, key: key ?? null };\r\n}\r\n\r\nexport const jsxs = jsx;\r\nexport const Fragment = Symbol(\"Fragment\");\r\n"],"mappings":";AAEO,SAAS,IACZ,MACA,OACA,KACK;AACL,SAAO,EAAE,MAAM,OAAO,KAAK,oBAAO,KAAK;AAC3C;AAEO,IAAM,OAAO;AACb,IAAM,WAAW,uBAAO,UAAU;","names":[]}
|
package/dist/index.js
CHANGED
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ interface VNode<P = any> {
|
|
|
14
14
|
key: Key;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
declare function jsx
|
|
17
|
+
declare function jsx(type: VNode["type"], props: any, key?: string | number | null): VNode;
|
|
18
18
|
declare const jsxs: typeof jsx;
|
|
19
19
|
declare const Fragment: unique symbol;
|
|
20
20
|
|
package/dist/jsx-runtime.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { VNode, Key } from './types';\r\n\r\nexport function jsx<P>(\r\n type: VNode['type'],\r\n props: P,\r\n key?: Key\r\n): VNode<P> {\r\n return {\r\n type,\r\n props: props ?? ({} as P),\r\n key: key ?? null,\r\n };\r\n}\r\n\r\nexport const jsxs = jsx;\r\n\r\nexport const Fragment = Symbol('Fragment');"],"mappings":";AAEO,SAAS,IACZ,MACA,OACA,KACQ;AACR,SAAO;AAAA,IACH;AAAA,IACA,OAAO,wBAAU,CAAC;AAAA,IAClB,KAAK,oBAAO;AAAA,EAChB;AACJ;AAEO,IAAM,OAAO;AAEb,IAAM,WAAW,uBAAO,UAAU;","names":[]}
|