@rectify-dev/core 2.0.0 → 2.0.1

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.
@@ -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"]}