@rectify-dev/core 2.0.0 → 2.0.2
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/chunk-2FA4QXYL.js +27 -0
- package/dist/chunk-2FA4QXYL.js.map +1 -0
- package/dist/chunk-AJJIEZ7G.cjs +31 -0
- package/dist/chunk-AJJIEZ7G.cjs.map +1 -0
- package/dist/index.cjs +164 -163
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +133 -4
- package/dist/index.d.ts +133 -4
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.cjs +4 -4
- package/dist/jsx-runtime.js +1 -1
- package/dist/runtime.cjs +3 -3
- package/dist/runtime.js +1 -1
- package/package.json +6 -4
- package/dist/chunk-3ZHJJ32B.js +0 -98
- package/dist/chunk-3ZHJJ32B.js.map +0 -1
- package/dist/chunk-S5YX7TXF.cjs +0 -112
- package/dist/chunk-S5YX7TXF.cjs.map +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RECTIFY_FRAGMENT_TYPE, RECTIFY_ELEMENT_TYPE } from '@rectify-dev/shared';
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
|
+
var Fragment = /* @__PURE__ */ __name(() => null, "Fragment");
|
|
6
|
+
var createElement = /* @__PURE__ */ __name((type, props) => {
|
|
7
|
+
if (type === Fragment) {
|
|
8
|
+
return {
|
|
9
|
+
$$typeof: RECTIFY_FRAGMENT_TYPE,
|
|
10
|
+
type: null,
|
|
11
|
+
props,
|
|
12
|
+
key: props?.key ?? null
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
const key = props?.key;
|
|
16
|
+
return {
|
|
17
|
+
$$typeof: RECTIFY_ELEMENT_TYPE,
|
|
18
|
+
type,
|
|
19
|
+
props,
|
|
20
|
+
key
|
|
21
|
+
};
|
|
22
|
+
}, "createElement");
|
|
23
|
+
var jsx = createElement;
|
|
24
|
+
|
|
25
|
+
export { Fragment, __name, jsx };
|
|
26
|
+
//# sourceMappingURL=chunk-2FA4QXYL.js.map
|
|
27
|
+
//# sourceMappingURL=chunk-2FA4QXYL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/RectifyJsx.ts"],"names":[],"mappings":";;;;AAYO,IAAM,QAAA,gCAAuB,IAAA,EAAZ,UAAA;AAExB,IAAM,aAAA,mBAAgB,MAAA,CAAA,CAAC,IAAA,EAAW,KAAA,KAAgC;AAChE,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,OAAO;AAAA,MACL,QAAA,EAAU,qBAAA;AAAA,MACV,IAAA,EAAM,IAAA;AAAA,MACN,KAAA;AAAA,MACA,GAAA,EAAK,OAAO,GAAA,IAAO;AAAA,KACrB;AAAA,EACF;AAEA,EAAA,MAAM,MAAM,KAAA,EAAO,GAAA;AACnB,EAAA,OAAO;AAAA,IACL,QAAA,EAAU,oBAAA;AAAA,IACV,IAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACF;AACF,CAAA,EAjBsB,eAAA,CAAA;AAmBf,IAAM,GAAA,GAAkB","file":"chunk-2FA4QXYL.js","sourcesContent":["import {\n RECTIFY_ELEMENT_TYPE,\n RECTIFY_FRAGMENT_TYPE,\n RectifyElement,\n RectifyJsx,\n} from \"@rectify-dev/shared\";\n\n/**\n * Sentinel function that represents a fragment in JSX.\n * Never actually called at runtime — `createElement` intercepts it by\n * identity so `<>` and `<Fragment>` both produce a RECTIFY_FRAGMENT_TYPE element.\n */\nexport const Fragment = (): null => null;\n\nconst createElement = (type: any, props?: any): RectifyElement => {\n if (type === Fragment) {\n return {\n $$typeof: RECTIFY_FRAGMENT_TYPE,\n type: null,\n props,\n key: props?.key ?? null,\n };\n }\n\n const key = props?.key;\n return {\n $$typeof: RECTIFY_ELEMENT_TYPE,\n type,\n props,\n key,\n };\n};\n\nexport const jsx: RectifyJsx = createElement;\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var shared = require('@rectify-dev/shared');
|
|
4
|
+
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var Fragment = /* @__PURE__ */ __name(() => null, "Fragment");
|
|
8
|
+
var createElement = /* @__PURE__ */ __name((type, props) => {
|
|
9
|
+
if (type === Fragment) {
|
|
10
|
+
return {
|
|
11
|
+
$$typeof: shared.RECTIFY_FRAGMENT_TYPE,
|
|
12
|
+
type: null,
|
|
13
|
+
props,
|
|
14
|
+
key: props?.key ?? null
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const key = props?.key;
|
|
18
|
+
return {
|
|
19
|
+
$$typeof: shared.RECTIFY_ELEMENT_TYPE,
|
|
20
|
+
type,
|
|
21
|
+
props,
|
|
22
|
+
key
|
|
23
|
+
};
|
|
24
|
+
}, "createElement");
|
|
25
|
+
var jsx = createElement;
|
|
26
|
+
|
|
27
|
+
exports.Fragment = Fragment;
|
|
28
|
+
exports.__name = __name;
|
|
29
|
+
exports.jsx = jsx;
|
|
30
|
+
//# sourceMappingURL=chunk-AJJIEZ7G.cjs.map
|
|
31
|
+
//# sourceMappingURL=chunk-AJJIEZ7G.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/RectifyJsx.ts"],"names":["RECTIFY_FRAGMENT_TYPE","RECTIFY_ELEMENT_TYPE"],"mappings":";;;;;;AAYO,IAAM,QAAA,gCAAuB,IAAA,EAAZ,UAAA;AAExB,IAAM,aAAA,mBAAgB,MAAA,CAAA,CAAC,IAAA,EAAW,KAAA,KAAgC;AAChE,EAAA,IAAI,SAAS,QAAA,EAAU;AACrB,IAAA,OAAO;AAAA,MACL,QAAA,EAAUA,4BAAA;AAAA,MACV,IAAA,EAAM,IAAA;AAAA,MACN,KAAA;AAAA,MACA,GAAA,EAAK,OAAO,GAAA,IAAO;AAAA,KACrB;AAAA,EACF;AAEA,EAAA,MAAM,MAAM,KAAA,EAAO,GAAA;AACnB,EAAA,OAAO;AAAA,IACL,QAAA,EAAUC,2BAAA;AAAA,IACV,IAAA;AAAA,IACA,KAAA;AAAA,IACA;AAAA,GACF;AACF,CAAA,EAjBsB,eAAA,CAAA;AAmBf,IAAM,GAAA,GAAkB","file":"chunk-AJJIEZ7G.cjs","sourcesContent":["import {\n RECTIFY_ELEMENT_TYPE,\n RECTIFY_FRAGMENT_TYPE,\n RectifyElement,\n RectifyJsx,\n} from \"@rectify-dev/shared\";\n\n/**\n * Sentinel function that represents a fragment in JSX.\n * Never actually called at runtime — `createElement` intercepts it by\n * identity so `<>` and `<Fragment>` both produce a RECTIFY_FRAGMENT_TYPE element.\n */\nexport const Fragment = (): null => null;\n\nconst createElement = (type: any, props?: any): RectifyElement => {\n if (type === Fragment) {\n return {\n $$typeof: RECTIFY_FRAGMENT_TYPE,\n type: null,\n props,\n key: props?.key ?? null,\n };\n }\n\n const key = props?.key;\n return {\n $$typeof: RECTIFY_ELEMENT_TYPE,\n type,\n props,\n key,\n };\n};\n\nexport const jsx: RectifyJsx = createElement;\n"]}
|