@hybridly/vue 0.8.1 → 0.8.3
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.cjs +6 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +6 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -598,8 +598,14 @@ Please specify a more appropriate element using the "as" attribute. For example:
|
|
|
598
598
|
...as === "a" ? { href: url } : {},
|
|
599
599
|
...props.disabled ? { disabled: props.disabled } : {},
|
|
600
600
|
onMouseenter: () => performPreload("hover"),
|
|
601
|
+
onAuxclick: (event) => {
|
|
602
|
+
if (props.disabled) {
|
|
603
|
+
event.preventDefault();
|
|
604
|
+
}
|
|
605
|
+
},
|
|
601
606
|
onClick: (event) => {
|
|
602
607
|
if (props.disabled) {
|
|
608
|
+
event.preventDefault();
|
|
603
609
|
return;
|
|
604
610
|
}
|
|
605
611
|
if (props.external) {
|
package/dist/index.d.cts
CHANGED
|
@@ -995,14 +995,14 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
995
995
|
};
|
|
996
996
|
}>> & Readonly<{}>, {
|
|
997
997
|
data: RequestData;
|
|
998
|
-
method:
|
|
998
|
+
method: "delete" | "get" | Method | "post" | "put" | "patch";
|
|
999
999
|
preserveScroll: boolean;
|
|
1000
1000
|
preserveState: boolean;
|
|
1001
1001
|
href: string;
|
|
1002
1002
|
as: string | Record<string, any>;
|
|
1003
1003
|
external: boolean;
|
|
1004
1004
|
disabled: boolean;
|
|
1005
|
-
options: Omit<HybridRequestOptions, "
|
|
1005
|
+
options: Omit<HybridRequestOptions, "data" | "url" | "method">;
|
|
1006
1006
|
text: string;
|
|
1007
1007
|
preload: boolean | "hover" | "mount";
|
|
1008
1008
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
package/dist/index.d.mts
CHANGED
|
@@ -995,14 +995,14 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
995
995
|
};
|
|
996
996
|
}>> & Readonly<{}>, {
|
|
997
997
|
data: RequestData;
|
|
998
|
-
method:
|
|
998
|
+
method: "delete" | "get" | Method | "post" | "put" | "patch";
|
|
999
999
|
preserveScroll: boolean;
|
|
1000
1000
|
preserveState: boolean;
|
|
1001
1001
|
href: string;
|
|
1002
1002
|
as: string | Record<string, any>;
|
|
1003
1003
|
external: boolean;
|
|
1004
1004
|
disabled: boolean;
|
|
1005
|
-
options: Omit<HybridRequestOptions, "
|
|
1005
|
+
options: Omit<HybridRequestOptions, "data" | "url" | "method">;
|
|
1006
1006
|
text: string;
|
|
1007
1007
|
preload: boolean | "hover" | "mount";
|
|
1008
1008
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -995,14 +995,14 @@ declare const RouterLink: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
995
995
|
};
|
|
996
996
|
}>> & Readonly<{}>, {
|
|
997
997
|
data: RequestData;
|
|
998
|
-
method:
|
|
998
|
+
method: "delete" | "get" | Method | "post" | "put" | "patch";
|
|
999
999
|
preserveScroll: boolean;
|
|
1000
1000
|
preserveState: boolean;
|
|
1001
1001
|
href: string;
|
|
1002
1002
|
as: string | Record<string, any>;
|
|
1003
1003
|
external: boolean;
|
|
1004
1004
|
disabled: boolean;
|
|
1005
|
-
options: Omit<HybridRequestOptions, "
|
|
1005
|
+
options: Omit<HybridRequestOptions, "data" | "url" | "method">;
|
|
1006
1006
|
text: string;
|
|
1007
1007
|
preload: boolean | "hover" | "mount";
|
|
1008
1008
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
package/dist/index.mjs
CHANGED
|
@@ -591,8 +591,14 @@ Please specify a more appropriate element using the "as" attribute. For example:
|
|
|
591
591
|
...as === "a" ? { href: url } : {},
|
|
592
592
|
...props.disabled ? { disabled: props.disabled } : {},
|
|
593
593
|
onMouseenter: () => performPreload("hover"),
|
|
594
|
+
onAuxclick: (event) => {
|
|
595
|
+
if (props.disabled) {
|
|
596
|
+
event.preventDefault();
|
|
597
|
+
}
|
|
598
|
+
},
|
|
594
599
|
onClick: (event) => {
|
|
595
600
|
if (props.disabled) {
|
|
601
|
+
event.preventDefault();
|
|
596
602
|
return;
|
|
597
603
|
}
|
|
598
604
|
if (props.external) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"description": "Vue adapter for Hybridly",
|
|
6
6
|
"author": "Enzo Innocenzi <enzo@innocenzi.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"lodash.isequal": "^4.5.0",
|
|
50
50
|
"nprogress": "^0.2.0",
|
|
51
51
|
"qs": "^6.14.0",
|
|
52
|
-
"@hybridly/
|
|
53
|
-
"@hybridly/
|
|
52
|
+
"@hybridly/utils": "0.8.3",
|
|
53
|
+
"@hybridly/core": "0.8.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/lodash": "^4.17.17",
|