Skip to content

Commit 694b9a8

Browse files
babu-chclaude
andcommitted
Add fw query param to docs links, bump to 0.1.2
Homepage and README links now include ?fw=vue/react/svelte so the docs site opens with the correct framework tab pre-selected. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e47bc94 commit 694b9a8

8 files changed

Lines changed: 17 additions & 11 deletions

File tree

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "link-interceptor",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Intercept all <a> tag clicks in your SPA — framework-agnostic core for handling internal and external link navigation.",
55
"keywords": [
66
"anchor",

packages/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function App() {
2929

3030
## Docs & Playground
3131

32-
https://babu-ch.github.io/link-interceptor/
32+
https://babu-ch.github.io/link-interceptor/?fw=react
3333

3434
## License
3535

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-link-interceptor",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "React hook to intercept all <a> tag clicks in your SPA — handle internal routing and external link modifications with ease.",
55
"keywords": [
66
"anchor",
@@ -13,7 +13,7 @@
1313
],
1414
"author": "babu-ch",
1515
"license": "MIT",
16-
"homepage": "https://babu-ch.github.io/link-interceptor/",
16+
"homepage": "https://babu-ch.github.io/link-interceptor/?fw=react",
1717
"repository": {
1818
"type": "git",
1919
"url": "git+https://github.com/babu-ch/link-interceptor.git",

packages/svelte/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npm install svelte-link-interceptor
3232

3333
## Docs & Playground
3434

35-
https://babu-ch.github.io/link-interceptor/
35+
https://babu-ch.github.io/link-interceptor/?fw=svelte
3636

3737
## License
3838

packages/svelte/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-link-interceptor",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Svelte action to intercept all <a> tag clicks in your SPA — handle internal routing and external link modifications with ease.",
55
"keywords": [
66
"anchor",
@@ -13,7 +13,7 @@
1313
],
1414
"author": "babu-ch",
1515
"license": "MIT",
16-
"homepage": "https://babu-ch.github.io/link-interceptor/",
16+
"homepage": "https://babu-ch.github.io/link-interceptor/?fw=svelte",
1717
"repository": {
1818
"type": "git",
1919
"url": "git+https://github.com/babu-ch/link-interceptor.git",

packages/vue/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ app.use(linkInterceptorPlugin, {
2626

2727
## Docs & Playground
2828

29-
https://babu-ch.github.io/link-interceptor/
29+
https://babu-ch.github.io/link-interceptor/?fw=vue
3030

3131
## License
3232

packages/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-link-interceptor",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Vue 3 plugin to intercept all <a> tag clicks in your SPA — handle internal routing and external link modifications with ease.",
55
"keywords": [
66
"anchor",
@@ -14,7 +14,7 @@
1414
],
1515
"author": "babu-ch",
1616
"license": "MIT",
17-
"homepage": "https://babu-ch.github.io/link-interceptor/",
17+
"homepage": "https://babu-ch.github.io/link-interceptor/?fw=vue",
1818
"repository": {
1919
"type": "git",
2020
"url": "git+https://github.com/babu-ch/link-interceptor.git",

playground/src/pages/Home.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<script setup lang="ts">
22
import { ref } from "vue";
3+
import { useRoute } from "vue-router";
34
import CodeBlock from "../components/CodeBlock.vue";
45
5-
const activeTab = ref("core");
66
const tabs = ["core", "vue", "react", "svelte"] as const;
7+
type Tab = (typeof tabs)[number];
8+
9+
const route = useRoute();
10+
const fwParam = route.query.fw as string | undefined;
11+
const initialTab: Tab = tabs.includes(fwParam as Tab) ? (fwParam as Tab) : "core";
12+
const activeTab = ref<Tab>(initialTab);
713
814
const codeExamples = {
915
core: `import { interceptLinks } from 'link-interceptor'

0 commit comments

Comments
 (0)