Merge branch 'main' of https://git.thomasfamily.duckdns.org/cognito-forms/cognitoforms-wordpress
This commit is contained in:
@@ -6,12 +6,15 @@ import { Modal, FocusableIframe } from '@wordpress/components';
|
||||
|
||||
import { baseUrl } from '@/globals';
|
||||
|
||||
type DialogProps = {
|
||||
interface IDialogProps {
|
||||
setOpen: Function;
|
||||
onSelectForm: Function;
|
||||
};
|
||||
}
|
||||
|
||||
class SelectDialog extends React.Component<DialogProps> {
|
||||
interface IDialogState {
|
||||
}
|
||||
|
||||
class SelectDialog extends React.Component<IDialogProps, IDialogState> {
|
||||
componentDidMount() {
|
||||
window.addEventListener( 'message', this.handlePostMessage, false );
|
||||
}
|
||||
@@ -25,7 +28,7 @@ class SelectDialog extends React.Component<DialogProps> {
|
||||
this.props.onSelectForm( event.data );
|
||||
this.props.setOpen( false );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
@@ -1 +1 @@
|
||||
export const baseUrl: string = 'https://forms.cognito.test';
|
||||
export const baseUrl = 'https://forms.cognito.test';
|
||||
|
@@ -1,10 +1,10 @@
|
||||
export enum EmbedMode {
|
||||
Seamless,
|
||||
IFrame
|
||||
IFrame,
|
||||
}
|
||||
|
||||
export interface BlockAttributes {
|
||||
formId: string,
|
||||
formId: string;
|
||||
iframeEmbedCode: string;
|
||||
seamlessEmbedCode: string;
|
||||
ampEmbedCode: string;
|
||||
|
Reference in New Issue
Block a user