@uicontract/parser-react 0.2.0 → 0.2.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Implements the Parser interface from @uicontract/core.
|
|
4
4
|
*/
|
|
5
5
|
import type { Parser, DiscoveryResult, ParserOptions } from '@uicontract/core';
|
|
6
|
-
export declare const VERSION = "0.
|
|
6
|
+
export declare const VERSION = "0.2.1";
|
|
7
7
|
/** The React/Next.js parser implementation. */
|
|
8
8
|
export declare class ReactParser implements Parser {
|
|
9
9
|
readonly framework = "react";
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import * as fs from 'node:fs/promises';
|
|
|
6
6
|
import * as path from 'node:path';
|
|
7
7
|
import { discoverFiles } from './file-discovery.js';
|
|
8
8
|
import { parseFile } from './element-visitor.js';
|
|
9
|
-
export const VERSION = '0.
|
|
9
|
+
export const VERSION = '0.2.1';
|
|
10
10
|
/** Detect whether a directory likely contains a React project. */
|
|
11
11
|
async function detectReact(dir) {
|
|
12
12
|
// Check for package.json with react dependency
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uicontract/parser-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "React and Next.js parser for discovering interactive UI elements",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@babel/parser": "^7.29.0",
|
|
46
46
|
"@babel/traverse": "^7.29.0",
|
|
47
47
|
"@babel/types": "^7.29.0",
|
|
48
|
-
"@uicontract/core": "0.2.
|
|
48
|
+
"@uicontract/core": "0.2.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/babel__traverse": "^7.28.0"
|