@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.
- package/dist/framework.cjs +11 -0
- package/dist/framework.d.ts +53 -0
- package/dist/framework.js +32 -0
- package/dist/index-BkDMcLYE.cjs +11 -0
- package/dist/index-GxoBoxj9.js +47 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +148 -179
- package/dist/jsx-dev-runtime.cjs +1 -1
- package/dist/jsx-dev-runtime.js +3 -3
- package/dist/jsx-runtime.cjs +1 -1
- package/dist/jsx-runtime.js +43 -5
- package/dist/{server-context-CJbtcTMO.js → server-context-giztFmxM.js} +2 -2
- package/dist/server.js +1 -1
- package/dist/vnode-tracking-BAFaVke9.js +25 -0
- package/dist/vnode-tracking-DC68rWms.cjs +11 -0
- package/package.json +6 -1
- package/dist/jsx-dev-runtime-C5Q23IsT.cjs +0 -11
- package/dist/jsx-dev-runtime-dAReTOgq.js +0 -65
package/dist/jsx-dev-runtime.cjs
CHANGED
|
@@ -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-
|
|
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;
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* See LICENSE file for full terms.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { Fragment as j, jsx as a, jsx as r, jsx as e } from "./jsx-runtime.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
j as Fragment,
|
|
14
|
+
a as jsx,
|
|
15
15
|
r as jsxDEV,
|
|
16
16
|
e as jsxs
|
|
17
17
|
};
|
package/dist/jsx-runtime.cjs
CHANGED
|
@@ -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
|
|
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;
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -8,10 +8,48 @@
|
|
|
8
8
|
* See LICENSE file for full terms.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
51
|
+
i as Fragment,
|
|
52
|
+
c as jsx,
|
|
53
|
+
c as jsxDEV,
|
|
54
|
+
c as jsxs
|
|
17
55
|
};
|
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,
|
|
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.
|
|
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
|
-
};
|