@mateosuarezdev/flash 0.0.12 → 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-C7Uxb3AS.cjs +11 -0
- package/dist/server-context-giztFmxM.js +59 -0
- package/dist/server.cjs +7 -7
- package/dist/server.js +170 -153
- 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/server-context-EvJ6E74m.js +0 -54
- package/dist/server-context-TAJ6UxWy.cjs +0 -11
|
@@ -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
|
-
};
|
|
@@ -1,54 +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
|
-
const o = /* @__PURE__ */ new Map();
|
|
12
|
-
let r = null;
|
|
13
|
-
function c() {
|
|
14
|
-
return r === null ? null : o.get(r) ?? null;
|
|
15
|
-
}
|
|
16
|
-
function u(t) {
|
|
17
|
-
if (r === null)
|
|
18
|
-
throw new Error("No active render context");
|
|
19
|
-
o.set(r, t);
|
|
20
|
-
}
|
|
21
|
-
function a() {
|
|
22
|
-
if (r === null)
|
|
23
|
-
throw new Error("createServerVNode called outside of render context");
|
|
24
|
-
return {
|
|
25
|
-
_parent: c(),
|
|
26
|
-
_renderId: r
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function l() {
|
|
30
|
-
o.clear(), r = null;
|
|
31
|
-
}
|
|
32
|
-
function d(t, n) {
|
|
33
|
-
const e = c();
|
|
34
|
-
if (!e)
|
|
35
|
-
throw new Error("provideServerContext called outside of component render");
|
|
36
|
-
e._contextMap || (e._contextMap = /* @__PURE__ */ new Map()), e._contextMap.set(t, n);
|
|
37
|
-
}
|
|
38
|
-
function i(t, n) {
|
|
39
|
-
let e = c();
|
|
40
|
-
for (; e; ) {
|
|
41
|
-
if (e._contextMap?.has(t))
|
|
42
|
-
return e._contextMap.get(t);
|
|
43
|
-
e = e._parent;
|
|
44
|
-
}
|
|
45
|
-
return n;
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
i as a,
|
|
49
|
-
a as c,
|
|
50
|
-
c as g,
|
|
51
|
-
d as p,
|
|
52
|
-
l as r,
|
|
53
|
-
u as s
|
|
54
|
-
};
|
|
@@ -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";const c=new Map;let r=null;function n(){return r===null?null:c.get(r)??null}function u(t){if(r===null)throw new Error("No active render context");c.set(r,t)}function d(){if(r===null)throw new Error("createServerVNode called outside of render context");return{_parent:n(),_renderId:r}}function l(){c.clear(),r=null}function i(t,o){const e=n();if(!e)throw new Error("provideServerContext called outside of component render");e._contextMap||(e._contextMap=new Map),e._contextMap.set(t,o)}function v(t,o){let e=n();for(;e;){if(e._contextMap?.has(t))return e._contextMap.get(t);e=e._parent}return o}exports.consumeServerContext=v;exports.createServerVNode=d;exports.getCurrentServerVNode=n;exports.provideServerContext=i;exports.resetServerContext=l;exports.setCurrentServerVNode=u;
|