@absolutejs/absolute 0.19.0-beta.652 → 0.19.0-beta.654
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/build.js +7 -2
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +36 -3
- package/dist/index.js +7 -2
- package/dist/index.js.map +3 -3
- package/dist/react/jsxDevRuntimeCompat.js +95 -0
- package/dist/react/jsxDevRuntimeCompat.js.map +10 -0
- package/dist/src/react/jsxDevRuntimeCompat.d.ts +11 -0
- package/package.json +7 -7
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
function __accessProp(key) {
|
|
9
|
+
return this[key];
|
|
10
|
+
}
|
|
11
|
+
var __toESMCache_node;
|
|
12
|
+
var __toESMCache_esm;
|
|
13
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
14
|
+
var canCache = mod != null && typeof mod === "object";
|
|
15
|
+
if (canCache) {
|
|
16
|
+
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
17
|
+
var cached = cache.get(mod);
|
|
18
|
+
if (cached)
|
|
19
|
+
return cached;
|
|
20
|
+
}
|
|
21
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
23
|
+
for (let key of __getOwnPropNames(mod))
|
|
24
|
+
if (!__hasOwnProp.call(to, key))
|
|
25
|
+
__defProp(to, key, {
|
|
26
|
+
get: __accessProp.bind(mod, key),
|
|
27
|
+
enumerable: true
|
|
28
|
+
});
|
|
29
|
+
if (canCache)
|
|
30
|
+
cache.set(mod, to);
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toCommonJS = (from) => {
|
|
34
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
35
|
+
if (entry)
|
|
36
|
+
return entry;
|
|
37
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
38
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
+
for (var key of __getOwnPropNames(from))
|
|
40
|
+
if (!__hasOwnProp.call(entry, key))
|
|
41
|
+
__defProp(entry, key, {
|
|
42
|
+
get: __accessProp.bind(from, key),
|
|
43
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
__moduleCache.set(from, entry);
|
|
47
|
+
return entry;
|
|
48
|
+
};
|
|
49
|
+
var __moduleCache;
|
|
50
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
51
|
+
var __returnValue = (v) => v;
|
|
52
|
+
function __exportSetter(name, newValue) {
|
|
53
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
54
|
+
}
|
|
55
|
+
var __export = (target, all) => {
|
|
56
|
+
for (var name in all)
|
|
57
|
+
__defProp(target, name, {
|
|
58
|
+
get: all[name],
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
set: __exportSetter.bind(all, name)
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
65
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
66
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
67
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
68
|
+
else
|
|
69
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
70
|
+
if (d = decorators[i])
|
|
71
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
72
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
73
|
+
};
|
|
74
|
+
var __legacyMetadataTS = (k, v) => {
|
|
75
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
+
return Reflect.metadata(k, v);
|
|
77
|
+
};
|
|
78
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
79
|
+
var __require = import.meta.require;
|
|
80
|
+
|
|
81
|
+
// src/react/jsxDevRuntimeCompat.ts
|
|
82
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
83
|
+
var jsxDEV = (type, props, key, _isStaticChildren, _source, _self) => Array.isArray(props?.children) ? jsxs(type, props, key) : jsx(type, props, key);
|
|
84
|
+
var jsxDevRuntimeCompat_default = {
|
|
85
|
+
Fragment,
|
|
86
|
+
jsxDEV
|
|
87
|
+
};
|
|
88
|
+
export {
|
|
89
|
+
jsxDEV,
|
|
90
|
+
jsxDevRuntimeCompat_default as default,
|
|
91
|
+
Fragment
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
//# debugId=3174E656CBC734ED64756E2164756E21
|
|
95
|
+
//# sourceMappingURL=jsxDevRuntimeCompat.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/react/jsxDevRuntimeCompat.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { Fragment, jsx, jsxs } from 'react/jsx-runtime';\n\ntype JSXType = Parameters<typeof jsx>[0];\ntype JSXKey = Parameters<typeof jsx>[2];\ntype JSXProps = Record<string, unknown> | null | undefined;\n\nexport { Fragment };\n\nexport const jsxDEV = (\n\ttype: JSXType,\n\tprops: JSXProps,\n\tkey?: JSXKey,\n\t_isStaticChildren?: boolean,\n\t_source?: unknown,\n\t_self?: unknown\n) =>\n\tArray.isArray(props?.children)\n\t\t? jsxs(type, props as Parameters<typeof jsxs>[1], key)\n\t\t: jsx(type, props as Parameters<typeof jsx>[1], key);\n\nexport default {\n\tFragment,\n\tjsxDEV\n};\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAQO,IAAM,SAAS,CACrB,MACA,OACA,KACA,mBACA,SACA,UAEA,MAAM,QAAQ,OAAO,QAAQ,IAC1B,KAAK,MAAM,OAAqC,GAAG,IACnD,IAAI,MAAM,OAAoC,GAAG;AAErD,IAAe;AAAA,EACd;AAAA,EACA;AACD;",
|
|
8
|
+
"debugId": "3174E656CBC734ED64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
type JSXType = Parameters<typeof jsx>[0];
|
|
3
|
+
type JSXKey = Parameters<typeof jsx>[2];
|
|
4
|
+
type JSXProps = Record<string, unknown> | null | undefined;
|
|
5
|
+
export { Fragment };
|
|
6
|
+
export declare const jsxDEV: (type: JSXType, props: JSXProps, key?: JSXKey, _isStaticChildren?: boolean, _source?: unknown, _self?: unknown) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
Fragment: import("react").ExoticComponent<import("react").FragmentProps>;
|
|
9
|
+
jsxDEV: (type: JSXType, props: JSXProps, key?: JSXKey, _isStaticChildren?: boolean, _source?: unknown, _self?: unknown) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -216,12 +216,12 @@
|
|
|
216
216
|
"main": "./dist/index.js",
|
|
217
217
|
"name": "@absolutejs/absolute",
|
|
218
218
|
"optionalDependencies": {
|
|
219
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
220
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
221
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
222
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
223
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
224
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
219
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.653",
|
|
220
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.653",
|
|
221
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.653",
|
|
222
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.653",
|
|
223
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.653",
|
|
224
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.653"
|
|
225
225
|
},
|
|
226
226
|
"overrides": {
|
|
227
227
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -302,5 +302,5 @@
|
|
|
302
302
|
"typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
|
|
303
303
|
},
|
|
304
304
|
"types": "./dist/src/index.d.ts",
|
|
305
|
-
"version": "0.19.0-beta.
|
|
305
|
+
"version": "0.19.0-beta.654"
|
|
306
306
|
}
|