@wistia/vhs 2.33.0 → 2.33.1-beta.f35ccdc7.bba4b7b
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/components/Link/Link.d.ts +54 -5
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/WistiaLogo/WistiaLogo.d.ts.map +1 -1
- package/dist/index.cjs.js +350 -350
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.esm.js +239 -239
- package/dist/index.esm.js.map +3 -3
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
2
|
type LinkURLParameters = Record<string, string>;
|
|
3
3
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
4
4
|
export type DefaultLinkWrapperProps = {
|
|
@@ -61,9 +61,58 @@ export type LinkProps = ComponentPropsWithoutRef<'a'> & {
|
|
|
61
61
|
*/
|
|
62
62
|
variant?: 'dangerous' | 'primary' | 'secondary';
|
|
63
63
|
};
|
|
64
|
-
export declare const Link: {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
export declare const Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
65
|
+
/**
|
|
66
|
+
* A Promise to invoke before navigating to location.
|
|
67
|
+
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
68
|
+
*/
|
|
69
|
+
beforeAction?: (() => Promise<void>) | (() => void);
|
|
70
|
+
/**
|
|
71
|
+
* The content that will be rendered inside the link
|
|
72
|
+
*/
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
/**
|
|
75
|
+
* Disables Link
|
|
76
|
+
*/
|
|
77
|
+
disabled?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @ignore
|
|
80
|
+
* Force a Link into a particular css state (for debugging)
|
|
81
|
+
*/
|
|
82
|
+
forceState?: 'active' | 'focus' | 'hover';
|
|
83
|
+
/**
|
|
84
|
+
* The entity to link to (url, email address, telephone number)
|
|
85
|
+
*/
|
|
86
|
+
href: string;
|
|
87
|
+
/**
|
|
88
|
+
* Use this if your link is "nested" inside another link
|
|
89
|
+
*/
|
|
90
|
+
nested?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* An object that will be converted into a search parameter string and appended to
|
|
93
|
+
* the `to` prop value
|
|
94
|
+
*/
|
|
95
|
+
params?: LinkURLParameters;
|
|
96
|
+
/**
|
|
97
|
+
* Type of link to display
|
|
98
|
+
*
|
|
99
|
+
* * `email` creates a mailto
|
|
100
|
+
* * `phone` creates a telephone number
|
|
101
|
+
* * `external` will open links in a new window
|
|
102
|
+
*/
|
|
103
|
+
type?: LinkTypes;
|
|
104
|
+
/**
|
|
105
|
+
* Will only display an underline when the Link is in a hover state
|
|
106
|
+
*/
|
|
107
|
+
underlineOnHover?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Renders a link without any of the default styling applied
|
|
110
|
+
*/
|
|
111
|
+
unstyled?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The visual type of Link to display
|
|
114
|
+
*/
|
|
115
|
+
variant?: 'dangerous' | 'primary' | 'secondary';
|
|
116
|
+
} & import("react").RefAttributes<unknown>>;
|
|
68
117
|
export {};
|
|
69
118
|
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAYlF,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,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GAAG,OAAO;IACzC;;OAEG;UACG,MAAM;IACZ;;OAEG;aACM,OAAO;IAChB;;;OAGG;aACM,iBAAiB;IAC1B;;;;;;OAMG;WACI,SAAS;IAChB;;OAEG;uBACgB,OAAO;IAC1B;;OAEG;eACQ,OAAO;IAClB;;OAEG;cACO,WAAW,GAAG,SAAS,GAAG,WAAW;2CA8FhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WistiaLogo.d.ts","sourceRoot":"","sources":["../../../src/components/WistiaLogo/WistiaLogo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WistiaLogo.d.ts","sourceRoot":"","sources":["../../../src/components/WistiaLogo/WistiaLogo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AA8EtD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,GAAG;IAC5E;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,UAAU;uGAUpB,eAAe;;CA0CjB,CAAC"}
|