Files
Eric Fennis 5b40f2c5a7 feat(site): Adds survey overlay to website (#4380)
* Finalize overlay

* Minor fix

* Remove if

* cleanup

* Revert theme config change

* Remove comments

* Format code

* Use localstorage instead of session storage

* Improve css

* Update old-package link
2026-05-15 18:36:44 +02:00

89 lines
2.1 KiB
TypeScript

import { type IconNode } from '@lucide/vue/src/types';
import Vue from 'vue';
declare module '*.vue' {
export default Vue;
}
declare module '*.data.ts' {
const data: any;
export { data };
}
declare module '*.data' {
const data: any;
export { data };
}
declare module '*.wasm' {}
declare const resvg_wasm: RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
declare module 'node:module' {
function createRequire(filename: string): NodeRequire;
}
declare module '*.node.json' {
const value: IconNode;
export default value;
}
declare global {
interface Window {
ExpoSnack?: {
/**
* Initialize all snack players on the page
*/
initialize(): void;
/**
* Remove a snack player container
*/
remove(container: Element): void;
/**
* Append/add a snack player container
*/
append(container: Element): void;
};
Tally: {
// From https://tally.so/help/developer-resources#2f676e40530a460ea6a634b8441f6001
openPopup: (
formId: string,
options?: {
key?: string; // This is used as a unique identifier used for the "Show only once" and "Don't show after submit" functionality
layout?: 'default' | 'modal';
width?: number;
alignLeft?: boolean;
hideTitle?: boolean;
overlay?: boolean;
emoji?: {
text: string;
animation:
| 'none'
| 'wave'
| 'tada'
| 'heart-beat'
| 'spin'
| 'flash'
| 'bounce'
| 'rubber-band'
| 'head-shake';
};
autoClose?: number; // in milliseconds
showOnce?: boolean;
doNotShowAfterSubmit?: boolean;
customFormUrl?: string; // when you want to load the form via it's custom domain URL
hiddenFields?: {
[key: string]: any;
};
onOpen?: () => void;
onClose?: () => void;
onPageView?: (page: number) => void;
onSubmit?: (payload: SubmissionPayload) => void;
},
) => void;
};
}
}