Skip to content

Commit

Permalink
Merge pull request #135 from mcortes19/134-add-missing-types
Browse files Browse the repository at this point in the history
Add HubspotFormProps missing types
  • Loading branch information
snelsi authored Feb 14, 2024
2 parents 781831c + bf4a8b8 commit 9a18527
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/hubspot.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ export interface HubspotFormProps {
readonly portalId: string;
readonly formId: string;
readonly target: string;

/**
* The region of the portal where the form was created. This is used to retrieve the form definition. Possible values are na1 or eu1.
*/
readonly region?: string;
/**
* URL to which the form will redirect upon a successful form completion. Cannot be used with inlineMessage.
*/
Expand All @@ -53,6 +58,14 @@ export interface HubspotFormProps {
* CSS class that will be applied to the form.
*/
readonly cssClass?: string;
/**
* A CSS string that, when defined, is used instead of the built-in CSS theme. This can be used for setting your own CSS styling.
*/
readonly css?: string;
/**
* String that overrides the text of the submit button.
*/
readonly submitText?: string;
/**
* CSS class that will be applied to the submit input instead of the default .hs-button.primary.large.
*/
Expand All @@ -76,9 +89,17 @@ export interface HubspotFormProps {
*/
readonly translations?: any;
/**
* Array of domains to block in email inputs.
* Array of domains, specified as strings, to block in email input fields.
*/
readonly manuallyBlockedEmailDomain?: string[];
/**
* Set the Salesforce campaign key to associate form submissions with the campaign.
*/
readonly sfdcCampaignId?: string;
/**
* Set the GoToWebinar campaign key to enroll form submission contacts to a GoToWebinar webinar. The portal must have the GoToWebinar integration installed.
*/
readonly blockedDomains?: string[];
readonly goToWebinarWebinarKey?: string;
/**
* When embedding the same form on the same page twice, provide this Id for each identical form embed. The Id value is arbitrary, so long as it is not the same between forms.
*/
Expand Down

0 comments on commit 9a18527

Please sign in to comment.