@planningcenter/tapestry-migration-cli 3.4.1-rc.10 → 3.4.1-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/tapestry-migration-cli",
3
- "version": "3.4.1-rc.10",
3
+ "version": "3.4.1-rc.11",
4
4
  "description": "CLI tool for Tapestry migrations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@emotion/react": "^11.14.0",
33
- "@planningcenter/tapestry": "^3.4.1-rc.10",
33
+ "@planningcenter/tapestry": "^3.4.1-rc.11",
34
34
  "@planningcenter/tapestry-react": "^4.11.5",
35
35
  "@types/jscodeshift": "^17.3.0",
36
36
  "@types/node": "^20.0.0",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "d76686184675c457acfd676f52b48e3993593718"
53
+ "gitHead": "3af011a781cd158166fab27b5df399a9b57c4547"
54
54
  }
@@ -156,19 +156,6 @@ function Test() {
156
156
  expect(result).toContain("TODO: tapestry-migration (hover)")
157
157
  })
158
158
 
159
- it("should flag autoFocus", () => {
160
- const input = `
161
- import { Input } from "@planningcenter/tapestry-react"
162
-
163
- function Test() {
164
- return <Input autoFocus label="Name" />
165
- }
166
- `.trim()
167
-
168
- const result = applyTransform(input)
169
- expect(result).toContain("TODO: tapestry-migration (autoFocus)")
170
- })
171
-
172
159
  it("should flag readOnlyBackgroundColor", () => {
173
160
  const input = `
174
161
  import { Input } from "@planningcenter/tapestry-react"
@@ -231,6 +218,20 @@ function Test() {
231
218
  expect(result).not.toContain("TODO: tapestry-migration")
232
219
  })
233
220
 
221
+ it("should not flag autoFocus", () => {
222
+ const input = `
223
+ import { Input } from "@planningcenter/tapestry-react"
224
+
225
+ function Test() {
226
+ return <Input autoFocus label="Name" />
227
+ }
228
+ `.trim()
229
+
230
+ const result = applyTransform(input)
231
+ expect(result).not.toContain("TODO: tapestry-migration")
232
+ expect(result).toContain("autoFocus")
233
+ })
234
+
234
235
  it("should not flag standard HTML attributes", () => {
235
236
  const input = `
236
237
  import { Input } from "@planningcenter/tapestry-react"
@@ -56,6 +56,7 @@ export const CHECKBOX_RADIO_SUPPORTED_PROPS = [
56
56
 
57
57
  export const INPUT_SPECIFIC_PROPS = [
58
58
  "autoComplete",
59
+ "autoFocus",
59
60
  "autoWidth",
60
61
  "defaultValue",
61
62
  "description",