@gemini-suite/vera-codemod__react 0.2.10 → 0.2.11
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/CHANGELOG.md +5 -0
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. See [Conven
|
|
|
4
4
|
|
|
5
5
|
<!-- MONOWEAVE:BELOW -->
|
|
6
6
|
|
|
7
|
+
## [0.2.11](https://github.com/Volue/vera/compare/@gemini-suite/vera-codemod__react@0.2.10...@gemini-suite/vera-codemod__react@0.2.11) "@gemini-suite/vera-codemod__react" (2026-02-20)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
7
12
|
## [0.2.10](https://github.com/Volue/vera/compare/@gemini-suite/vera-codemod__react@0.2.9...@gemini-suite/vera-codemod__react@0.2.10) "@gemini-suite/vera-codemod__react" (2026-02-17)
|
|
8
13
|
|
|
9
14
|
|
package/dist/index.cjs
CHANGED
|
@@ -89,10 +89,10 @@ function addRootToMultipartComps(j, ast) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
function renameLabelDot(j, ast) {
|
|
92
|
-
const
|
|
92
|
+
const veraImports = ast.find(j.ImportDeclaration, {
|
|
93
93
|
source: { value: "@gemini-suite/vera-react" }
|
|
94
94
|
});
|
|
95
|
-
const labelImports =
|
|
95
|
+
const labelImports = veraImports.find(j.ImportSpecifier, {
|
|
96
96
|
imported: { name: "Label" }
|
|
97
97
|
});
|
|
98
98
|
if (labelImports.size() === 0) {
|
|
@@ -122,7 +122,7 @@ function renameLabelDot(j, ast) {
|
|
|
122
122
|
path.value.closingElement.name = j.jsxIdentifier("LabelDot");
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
|
|
125
|
+
veraImports.forEach((path) => {
|
|
126
126
|
const labelDotSpecifier = j.importSpecifier(j.identifier("LabelDot"));
|
|
127
127
|
if (path.node.specifiers) {
|
|
128
128
|
path.node.specifiers.push(labelDotSpecifier);
|
|
@@ -143,10 +143,10 @@ function transformer$1(file, api, options) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
function renameAppFrame(j, ast) {
|
|
146
|
-
const
|
|
146
|
+
const veraImports = ast.find(j.ImportDeclaration, {
|
|
147
147
|
source: { value: "@gemini-suite/vera-react" }
|
|
148
148
|
});
|
|
149
|
-
const appFrameImports =
|
|
149
|
+
const appFrameImports = veraImports.find(j.ImportSpecifier, {
|
|
150
150
|
imported: { name: "AppFrame" }
|
|
151
151
|
});
|
|
152
152
|
if (appFrameImports.size() === 0) {
|
package/dist/index.mjs
CHANGED
|
@@ -87,10 +87,10 @@ function addRootToMultipartComps(j, ast) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
function renameLabelDot(j, ast) {
|
|
90
|
-
const
|
|
90
|
+
const veraImports = ast.find(j.ImportDeclaration, {
|
|
91
91
|
source: { value: "@gemini-suite/vera-react" }
|
|
92
92
|
});
|
|
93
|
-
const labelImports =
|
|
93
|
+
const labelImports = veraImports.find(j.ImportSpecifier, {
|
|
94
94
|
imported: { name: "Label" }
|
|
95
95
|
});
|
|
96
96
|
if (labelImports.size() === 0) {
|
|
@@ -120,7 +120,7 @@ function renameLabelDot(j, ast) {
|
|
|
120
120
|
path.value.closingElement.name = j.jsxIdentifier("LabelDot");
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
veraImports.forEach((path) => {
|
|
124
124
|
const labelDotSpecifier = j.importSpecifier(j.identifier("LabelDot"));
|
|
125
125
|
if (path.node.specifiers) {
|
|
126
126
|
path.node.specifiers.push(labelDotSpecifier);
|
|
@@ -141,10 +141,10 @@ function transformer$1(file, api, options) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
function renameAppFrame(j, ast) {
|
|
144
|
-
const
|
|
144
|
+
const veraImports = ast.find(j.ImportDeclaration, {
|
|
145
145
|
source: { value: "@gemini-suite/vera-react" }
|
|
146
146
|
});
|
|
147
|
-
const appFrameImports =
|
|
147
|
+
const appFrameImports = veraImports.find(j.ImportSpecifier, {
|
|
148
148
|
imported: { name: "AppFrame" }
|
|
149
149
|
});
|
|
150
150
|
if (appFrameImports.size() === 0) {
|