@wistia/ui 0.6.45-beta.cdb67e81.9dbf4c3 → 0.6.45
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 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.45
|
|
3
|
+
* @license @wistia/ui v0.6.45
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6902,7 +6902,7 @@ var Link = forwardRef(
|
|
|
6902
6902
|
}, ref) => {
|
|
6903
6903
|
const inRouterContext = useInRouterContext();
|
|
6904
6904
|
const to = generateHref(props.href, type, disabled);
|
|
6905
|
-
const handleClick = async (event) => {
|
|
6905
|
+
const handleClick = async (event, routingCallback = null) => {
|
|
6906
6906
|
if (disabled) {
|
|
6907
6907
|
event.preventDefault();
|
|
6908
6908
|
} else if (beforeAction) {
|
|
@@ -6914,9 +6914,11 @@ var Link = forwardRef(
|
|
|
6914
6914
|
} finally {
|
|
6915
6915
|
if (isFunction2(props.onClick)) {
|
|
6916
6916
|
props.onClick(event);
|
|
6917
|
-
}
|
|
6918
|
-
|
|
6917
|
+
} else if (routingCallback !== null) {
|
|
6918
|
+
routingCallback();
|
|
6919
|
+
} else if (isNotNil5(to)) {
|
|
6919
6920
|
window.location.assign(to);
|
|
6921
|
+
} else {
|
|
6920
6922
|
}
|
|
6921
6923
|
}
|
|
6922
6924
|
} else if (isFunction2(props.onClick)) {
|