@mateosuarezdev/flash 0.0.14 → 0.0.16

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.
@@ -8,4 +8,4 @@
8
8
  * See LICENSE file for full terms.
9
9
  */
10
10
 
11
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-dev-runtime-C5Q23IsT.cjs");exports.Fragment=e.Fragment;exports.jsx=e.jsx;exports.jsxDEV=e.jsx;exports.jsxs=e.jsx;
11
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime.cjs");exports.Fragment=e.Fragment;exports.jsx=e.jsx;exports.jsxDEV=e.jsx;exports.jsxs=e.jsx;
@@ -8,10 +8,10 @@
8
8
  * See LICENSE file for full terms.
9
9
  */
10
10
 
11
- import { F as a, j as x, j as r, j as e } from "./jsx-dev-runtime-dAReTOgq.js";
11
+ import { Fragment as j, jsx as a, jsx as r, jsx as e } from "./jsx-runtime.js";
12
12
  export {
13
- a as Fragment,
14
- x as jsx,
13
+ j as Fragment,
14
+ a as jsx,
15
15
  r as jsxDEV,
16
16
  e as jsxs
17
17
  };
@@ -8,4 +8,4 @@
8
8
  * See LICENSE file for full terms.
9
9
  */
10
10
 
11
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-dev-runtime-C5Q23IsT.cjs");exports.Fragment=e.Fragment;exports.jsx=e.jsx;exports.jsxDEV=e.jsx;exports.jsxs=e.jsx;
11
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./vnode-tracking-DC68rWms.cjs");function i(n,e,t){return{type:n,kind:"VNode",props:e,key:t,children:e.children,_id:o.newVNodeId(),_onMountCallbacks:[],_onUnmountCallbacks:[],_onBeforeExitCallbacks:[],_element:null,_parent:null,_renderedChildren:[],_lifecycleState:"mounting"}}function c(n,e,t){return{type:n,kind:"IntrinsicVNode",props:e,key:t,_id:o.newVNodeId(),_dom:void 0,_parent:null,_renderedChildren:[],_onMountCallbacks:[],_onUnmountCallbacks:[],_onBeforeExitCallbacks:[],_lifecycleState:"mounting"}}const l=Symbol.for("jsx.fragment");function r(n,e,t){return n===l?e?.children:typeof n=="function"?i(n,e??{},t):c(n,e??{},t)}exports.Fragment=l;exports.jsx=r;exports.jsxDEV=r;exports.jsxs=r;
@@ -8,10 +8,48 @@
8
8
  * See LICENSE file for full terms.
9
9
  */
10
10
 
11
- import { F as a, j as x, j as r, j as e } from "./jsx-dev-runtime-dAReTOgq.js";
11
+ import { n as r } from "./vnode-tracking-BAFaVke9.js";
12
+ function l(n, e, t) {
13
+ return {
14
+ type: n,
15
+ kind: "VNode",
16
+ props: e,
17
+ key: t,
18
+ children: e.children,
19
+ _id: r(),
20
+ _onMountCallbacks: [],
21
+ _onUnmountCallbacks: [],
22
+ _onBeforeExitCallbacks: [],
23
+ _element: null,
24
+ _parent: null,
25
+ _renderedChildren: [],
26
+ _lifecycleState: "mounting"
27
+ };
28
+ }
29
+ function o(n, e, t) {
30
+ return {
31
+ type: n,
32
+ kind: "IntrinsicVNode",
33
+ props: e,
34
+ key: t,
35
+ _id: r(),
36
+ _dom: void 0,
37
+ // DOM created lazily during render
38
+ _parent: null,
39
+ _renderedChildren: [],
40
+ _onMountCallbacks: [],
41
+ _onUnmountCallbacks: [],
42
+ _onBeforeExitCallbacks: [],
43
+ _lifecycleState: "mounting"
44
+ };
45
+ }
46
+ const i = Symbol.for("jsx.fragment");
47
+ function c(n, e, t) {
48
+ return n === i ? e?.children : typeof n == "function" ? l(n, e ?? {}, t) : o(n, e ?? {}, t);
49
+ }
12
50
  export {
13
- a as Fragment,
14
- x as jsx,
15
- r as jsxDEV,
16
- e as jsxs
51
+ i as Fragment,
52
+ c as jsx,
53
+ c as jsxDEV,
54
+ c as jsxs
17
55
  };
@@ -50,8 +50,8 @@ function f(e, o) {
50
50
  }
51
51
  export {
52
52
  d as a,
53
- f as b,
54
- s as c,
53
+ s as b,
54
+ f as c,
55
55
  l as e,
56
56
  c as g,
57
57
  i as p,
package/dist/server.js CHANGED
@@ -8,7 +8,7 @@
8
8
  * See LICENSE file for full terms.
9
9
  */
10
10
 
11
- import { s as v, e as A, a as f, g as b, c as w } from "./server-context-CJbtcTMO.js";
11
+ import { s as v, e as A, a as f, g as b, b as w } from "./server-context-giztFmxM.js";
12
12
  import { mkdir as H, rm as D } from "node:fs/promises";
13
13
  import { dirname as j, join as $ } from "node:path";
14
14
  function T(r) {
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Flash
4
+ * Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
+ *
6
+ * Free to use in your own personal or commercial applications and projects.
7
+ * Unauthorized copying, modification, or distribution is strictly prohibited.
8
+ * See LICENSE file for full terms.
9
+ */
10
+
11
+ let t = 0;
12
+ const r = () => t++;
13
+ let e = null;
14
+ function o(n) {
15
+ e = n;
16
+ }
17
+ function u() {
18
+ return e;
19
+ }
20
+ export {
21
+ e as c,
22
+ u as g,
23
+ r as n,
24
+ o as s
25
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Flash
4
+ * Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
+ *
6
+ * Free to use in your own personal or commercial applications and projects.
7
+ * Unauthorized copying, modification, or distribution is strictly prohibited.
8
+ * See LICENSE file for full terms.
9
+ */
10
+
11
+ "use strict";let r=0;const t=()=>r++;exports.currentVNode=null;function n(e){exports.currentVNode=e}function d(){return exports.currentVNode}exports.getCurrentVNode=d;exports.newVNodeId=t;exports.setCurrentVNode=n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mateosuarezdev/flash",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Custom jsx runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -17,6 +17,11 @@
17
17
  "import": "./dist/server.js",
18
18
  "require": "./dist/server.cjs"
19
19
  },
20
+ "./framework": {
21
+ "types": "./dist/framework.d.ts",
22
+ "import": "./dist/framework.js",
23
+ "require": "./dist/framework.cjs"
24
+ },
20
25
  "./utils": {
21
26
  "types": "./dist/utils.d.ts",
22
27
  "import": "./dist/utils.js",
@@ -1,11 +0,0 @@
1
- /**
2
- * @license
3
- * Flash
4
- * Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
- *
6
- * Free to use in your own personal or commercial applications and projects.
7
- * Unauthorized copying, modification, or distribution is strictly prohibited.
8
- * See LICENSE file for full terms.
9
- */
10
-
11
- "use strict";let d=0;const r=()=>d++;exports.currentVNode=null;function l(n){exports.currentVNode=n}function u(){return exports.currentVNode}function c(n,e,t){return{type:n,kind:"VNode",props:e,key:t,children:e.children,_id:r(),_onMountCallbacks:[],_onUnmountCallbacks:[],_onBeforeExitCallbacks:[],_element:null,_parent:null,_renderedChildren:[],_lifecycleState:"mounting"}}function i(n,e,t){return{type:n,kind:"IntrinsicVNode",props:e,key:t,_id:r(),_dom:void 0,_parent:null,_renderedChildren:[],_onMountCallbacks:[],_onUnmountCallbacks:[],_onBeforeExitCallbacks:[],_lifecycleState:"mounting"}}const o=Symbol.for("jsx.fragment");function a(n,e,t){return n===o?e?.children:typeof n=="function"?c(n,e??{},t):i(n,e??{},t)}exports.Fragment=o;exports.getCurrentVNode=u;exports.jsx=a;exports.newVNodeId=r;exports.setCurrentVNode=l;
@@ -1,65 +0,0 @@
1
- /**
2
- * @license
3
- * Flash
4
- * Copyright (c) 2025 Mateo Suarez. All rights reserved.
5
- *
6
- * Free to use in your own personal or commercial applications and projects.
7
- * Unauthorized copying, modification, or distribution is strictly prohibited.
8
- * See LICENSE file for full terms.
9
- */
10
-
11
- let l = 0;
12
- const r = () => l++;
13
- let o = null;
14
- function d(n) {
15
- o = n;
16
- }
17
- function u() {
18
- return o;
19
- }
20
- function i(n, e, t) {
21
- return {
22
- type: n,
23
- kind: "VNode",
24
- props: e,
25
- key: t,
26
- children: e.children,
27
- _id: r(),
28
- _onMountCallbacks: [],
29
- _onUnmountCallbacks: [],
30
- _onBeforeExitCallbacks: [],
31
- _element: null,
32
- _parent: null,
33
- _renderedChildren: [],
34
- _lifecycleState: "mounting"
35
- };
36
- }
37
- function c(n, e, t) {
38
- return {
39
- type: n,
40
- kind: "IntrinsicVNode",
41
- props: e,
42
- key: t,
43
- _id: r(),
44
- _dom: void 0,
45
- // DOM created lazily during render
46
- _parent: null,
47
- _renderedChildren: [],
48
- _onMountCallbacks: [],
49
- _onUnmountCallbacks: [],
50
- _onBeforeExitCallbacks: [],
51
- _lifecycleState: "mounting"
52
- };
53
- }
54
- const a = Symbol.for("jsx.fragment");
55
- function s(n, e, t) {
56
- return n === a ? e?.children : typeof n == "function" ? i(n, e ?? {}, t) : c(n, e ?? {}, t);
57
- }
58
- export {
59
- a as F,
60
- o as c,
61
- u as g,
62
- s as j,
63
- r as n,
64
- d as s
65
- };