Skip to content

Commit 9a18527

Browse files
authored
Merge pull request #135 from mcortes19/134-add-missing-types
Add HubspotFormProps missing types
2 parents 781831c + bf4a8b8 commit 9a18527

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/hubspot.types.ts

+23-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ export interface HubspotFormProps {
3333
readonly portalId: string;
3434
readonly formId: string;
3535
readonly target: string;
36+
37+
/**
38+
* The region of the portal where the form was created. This is used to retrieve the form definition. Possible values are na1 or eu1.
39+
*/
40+
readonly region?: string;
3641
/**
3742
* URL to which the form will redirect upon a successful form completion. Cannot be used with inlineMessage.
3843
*/
@@ -53,6 +58,14 @@ export interface HubspotFormProps {
5358
* CSS class that will be applied to the form.
5459
*/
5560
readonly cssClass?: string;
61+
/**
62+
* 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.
63+
*/
64+
readonly css?: string;
65+
/**
66+
* String that overrides the text of the submit button.
67+
*/
68+
readonly submitText?: string;
5669
/**
5770
* CSS class that will be applied to the submit input instead of the default .hs-button.primary.large.
5871
*/
@@ -76,9 +89,17 @@ export interface HubspotFormProps {
7689
*/
7790
readonly translations?: any;
7891
/**
79-
* Array of domains to block in email inputs.
92+
* Array of domains, specified as strings, to block in email input fields.
93+
*/
94+
readonly manuallyBlockedEmailDomain?: string[];
95+
/**
96+
* Set the Salesforce campaign key to associate form submissions with the campaign.
97+
*/
98+
readonly sfdcCampaignId?: string;
99+
/**
100+
* Set the GoToWebinar campaign key to enroll form submission contacts to a GoToWebinar webinar. The portal must have the GoToWebinar integration installed.
80101
*/
81-
readonly blockedDomains?: string[];
102+
readonly goToWebinarWebinarKey?: string;
82103
/**
83104
* 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.
84105
*/

0 commit comments

Comments
 (0)