Skip to content

Commit b1d0a96

Browse files
committed
v1.0.3 [publish]
- Add Vite 4 to peer dependency range - Don't show outline for non-clickable targets - Use debug log when no React instance was found
1 parent 940fff6 commit b1d0a96

File tree

14 files changed

+578
-556
lines changed

14 files changed

+578
-556
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- uses: xhyrom/[email protected]
13-
with:
14-
bun-version: "0.2.1"
1513
- run: bun install
1614
- run: bun ci
17-
- uses: ArnaudBarre/npm-publish@v1.1
15+
- uses: ArnaudBarre/npm-publish@v1
1816
with:
1917
working-directory: dist
2018
npm-token: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.0.3
4+
5+
- Add Vite 4 to peer dependency range
6+
- Don't show outline for non-clickable targets
7+
- Use debug log when no React instance was found
8+
39
## 1.0.1
410

511
Fix tooltip position for elements on the right side of the screen

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ In your Vite config:
1414

1515
```ts
1616
import { defineConfig } from "vite";
17-
import { swcReactRefresh } from "vite-plugin-swc-react-refresh"; // or @vitejs/plugin-react
17+
import react from "@vitejs/plugin-react-swc"; // or @vitejs/plugin-react
1818
import { reactClickToComponent } from "vite-plugin-react-click-to-component";
1919

2020
export default defineConfig({
21-
plugins: [swcReactRefresh(), reactClickToComponent()],
21+
plugins: [react(), reactClickToComponent()],
2222
});
2323
```

bun.lockb

4.62 KB
Binary file not shown.

package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "vite-plugin-react-click-to-component",
3-
"version": "1.0.1",
3+
"version": "1.0.3",
44
"license": "MIT",
55
"scripts": {
6+
"postinstall": "cd playground && bun i",
67
"dev": "scripts/bundle.ts --dev",
78
"build": "scripts/bundle.ts",
89
"tsc": "tsc",
@@ -12,17 +13,20 @@
1213
"prettier-ci": "prettier --ignore-path=.gitignore --check '**/*.{ts,tsx,html,css,json,md,yml}'",
1314
"ci": "tsc && bun lint-ci && bun prettier-ci && bun run build"
1415
},
16+
"prettier": {
17+
"trailingComma": "all"
18+
},
1519
"peerDependencies": {
1620
"react": ">=16",
17-
"vite": "^2 || ^3"
21+
"vite": "^2 || ^3 || ^4"
1822
},
1923
"devDependencies": {
20-
"@arnaud-barre/eslint-config": "^1.0.13",
21-
"@nabla/tnode": "^0.7.0",
22-
"@types/node": "^18.11.4",
23-
"eslint": "^8.26.0",
24-
"prettier": "^2.7.1",
25-
"typescript": "^4.8.4",
26-
"vite": "^3.1.8"
24+
"@arnaud-barre/eslint-config": "^1.0.17",
25+
"@nabla/tnode": "^0.8.0",
26+
"@types/node": "^18.11.12",
27+
"eslint": "^8.29.0",
28+
"prettier": "^2.8.1",
29+
"typescript": "^4.9.4",
30+
"vite": "^4.0.0"
2731
}
2832
}

playground/bun.lockb

-1.79 KB
Binary file not shown.

playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"react-dom": "^18.2.0"
1010
},
1111
"devDependencies": {
12-
"@types/react-dom": "^18.0.6",
13-
"vite-plugin-swc-react-refresh": "^2.1.0"
12+
"@types/react-dom": "^18.0.9",
13+
"@vitejs/plugin-react-swc": "^3.0.0"
1414
}
1515
}

playground/src/App.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@
4747
left: 40px;
4848
display: flex;
4949
align-items: center;
50+
border: 1px solid white;
51+
padding: 10px;
5052
}

playground/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import "./index.css";
66
createRoot(document.getElementById("root")!).render(
77
<StrictMode>
88
<App />
9-
</StrictMode>
9+
</StrictMode>,
1010
);

playground/vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { defineConfig } from "vite";
2-
import { swcReactRefresh } from "vite-plugin-swc-react-refresh";
2+
import react from "@vitejs/plugin-react-swc";
33
import { reactClickToComponent } from "../dist";
44

55
// eslint-disable-next-line import/no-default-export
66
export default defineConfig({
7-
plugins: [swcReactRefresh(), reactClickToComponent()],
7+
plugins: [react(), reactClickToComponent()],
88
server: { open: true },
99
});

0 commit comments

Comments
 (0)