jsx-framework-pb 0.0.7 → 0.0.9

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.
@@ -10,4 +10,4 @@ export {
10
10
  jsxs,
11
11
  Fragment
12
12
  };
13
- //# sourceMappingURL=chunk-Y6I3KMBQ.js.map
13
+ //# sourceMappingURL=chunk-2DKGI2O7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["/// <reference path=\"./jsx.d.ts\" />\r\n\r\nimport type { VNode, Component, Key } from \"./types\";\r\n\r\nexport function jsx<P>(\r\n type: string | Component<P>,\r\n props: P,\r\n key?: Key\r\n): VNode<P> {\r\n return { type, props: props ?? ({} as P), key: key ?? null };\r\n}\r\n\r\nexport const jsxs = jsx;\r\nexport const Fragment = Symbol(\"Fragment\");"],"mappings":";AAIO,SAAS,IACZ,MACA,OACA,KACQ;AACR,SAAO,EAAE,MAAM,OAAO,wBAAU,CAAC,GAAS,KAAK,oBAAO,KAAK;AAC/D;AAEO,IAAM,OAAO;AACb,IAAM,WAAW,uBAAO,UAAU;","names":[]}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-Y6I3KMBQ.js";
5
+ } from "./chunk-2DKGI2O7.js";
6
6
 
7
7
  // src/render.ts
8
8
  function render(vnode, container) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Fragment,
3
3
  jsx
4
- } from "./chunk-Y6I3KMBQ.js";
4
+ } from "./chunk-2DKGI2O7.js";
5
5
 
6
6
  // src/jsx-dev-runtime.ts
7
7
  function jsxDEV(type, props, key) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["import { jsx, Fragment } from \"./jsx-runtime\";\r\nimport type { VNode } from \"./types\";\r\n\r\nexport function jsxDEV(\r\n type: VNode[\"type\"],\r\n props: any,\r\n key?: string | number | null\r\n): VNode {\r\n return jsx(type, props, key);\r\n}\r\n\r\nexport const jsxsDEV = jsxDEV;\r\nexport { Fragment };"],"mappings":";;;;;;AAGO,SAAS,OACZ,MACA,OACA,KACK;AACL,SAAO,IAAI,MAAM,OAAO,GAAG;AAC/B;AAEO,IAAM,UAAU;","names":[]}
1
+ {"version":3,"sources":["../src/jsx-dev-runtime.ts"],"sourcesContent":["/// <reference path=\"./jsx.d.ts\" />\r\n\r\nimport { jsx, Fragment } from \"./jsx-runtime\";\r\nimport type { VNode } from \"./types\";\r\n\r\nexport function jsxDEV(\r\n type: VNode[\"type\"],\r\n props: any,\r\n key?: string | number | null\r\n): VNode {\r\n return jsx(type, props, key);\r\n}\r\n\r\nexport const jsxsDEV = jsxDEV;\r\nexport { Fragment };"],"mappings":";;;;;;AAKO,SAAS,OACZ,MACA,OACA,KACK;AACL,SAAO,IAAI,MAAM,OAAO,GAAG;AAC/B;AAEO,IAAM,UAAU;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  Fragment,
3
3
  jsx,
4
4
  jsxs
5
- } from "./chunk-Y6I3KMBQ.js";
5
+ } from "./chunk-2DKGI2O7.js";
6
6
  export {
7
7
  Fragment,
8
8
  jsx,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsx-framework-pb",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -9,18 +9,28 @@
9
9
  "types": "./dist/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/index.d.ts",
13
12
  "default": "./dist/index.js"
14
13
  },
15
14
  "./jsx-runtime": {
16
- "types": "./dist/jsx-runtime.d.ts",
17
15
  "default": "./dist/jsx-runtime.js"
18
16
  },
19
17
  "./jsx-dev-runtime": {
20
- "types": "./dist/jsx-dev-runtime.d.ts",
21
18
  "default": "./dist/jsx-dev-runtime.js"
22
19
  }
23
20
  },
21
+ "typesVersions": {
22
+ "*": {
23
+ "jsx-framework-pb": [
24
+ "dist/index.d.ts"
25
+ ],
26
+ "jsx-framework-pb/jsx-runtime": [
27
+ "dist/jsx-runtime.d.ts"
28
+ ],
29
+ "jsx-framework-pb/jsx-dev-runtime": [
30
+ "dist/jsx-dev-runtime.d.ts"
31
+ ]
32
+ }
33
+ },
24
34
  "scripts": {
25
35
  "build": "tsup"
26
36
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { VNode, Component, Key } from \"./types\";\r\n\r\nexport function jsx<P>(\r\n type: string | Component<P>,\r\n props: P,\r\n key?: Key\r\n): VNode<P> {\r\n return { type, props: props ?? ({} as P), key: key ?? null };\r\n}\r\n\r\nexport const jsxs = jsx;\r\nexport const Fragment = Symbol(\"Fragment\");"],"mappings":";AAEO,SAAS,IACZ,MACA,OACA,KACQ;AACR,SAAO,EAAE,MAAM,OAAO,wBAAU,CAAC,GAAS,KAAK,oBAAO,KAAK;AAC/D;AAEO,IAAM,OAAO;AACb,IAAM,WAAW,uBAAO,UAAU;","names":[]}