react-state-basis 0.2.1 → 0.2.3

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,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/jsx-runtime.ts
21
+ var jsx_runtime_exports = {};
22
+ __export(jsx_runtime_exports, {
23
+ Fragment: () => import_jsx_runtime.Fragment,
24
+ jsx: () => import_jsx_runtime.jsx,
25
+ jsxs: () => import_jsx_runtime.jsxs
26
+ });
27
+ module.exports = __toCommonJS(jsx_runtime_exports);
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ Fragment,
32
+ jsx,
33
+ jsxs
34
+ });
35
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["export { jsx, jsxs, Fragment } from 'react/jsx-runtime';"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAoC;","names":[]}
@@ -0,0 +1,8 @@
1
+ // src/jsx-runtime.ts
2
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
+ export {
4
+ Fragment,
5
+ jsx,
6
+ jsxs
7
+ };
8
+ //# sourceMappingURL=jsx-runtime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/jsx-runtime.ts"],"sourcesContent":["export { jsx, jsxs, Fragment } from 'react/jsx-runtime';"],"mappings":";AAAA,SAAS,KAAK,MAAM,gBAAgB;","names":[]}
package/dist/plugin.js CHANGED
@@ -29,7 +29,10 @@ module.exports = function(babel) {
29
29
  "useDebugValue",
30
30
  "useSyncExternalStore",
31
31
  "useTransition",
32
- "useDeferredValue"
32
+ "useDeferredValue",
33
+ "use",
34
+ "useOptimistic",
35
+ "useActionState"
33
36
  ];
34
37
  if (!calleeName || !targetFunctions.includes(calleeName)) return;
35
38
  const filePath = state.file.opts.filename || "UnknownFile";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-state-basis",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "A linear algebra-powered React architectural tool that detects redundant state and synchronization anti-patterns by modeling state transitions as vectors in a basis.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -21,6 +21,14 @@
21
21
  },
22
22
  "default": "./dist/production.mjs"
23
23
  },
24
+ "./jsx-runtime": {
25
+ "import": "./dist/jsx-runtime.mjs",
26
+ "require": "./dist/jsx-runtime.js"
27
+ },
28
+ "./jsx-dev-runtime": {
29
+ "import": "./dist/jsx-dev-runtime.mjs",
30
+ "require": "./dist/jsx-dev-runtime.js"
31
+ },
24
32
  "./plugin": "./dist/plugin.js"
25
33
  },
26
34
  "scripts": {