PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.75
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.75
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
← All changes | scripts/gutenberg/FormBlock/FormBlockSave.tsx +7 -3 11.1.2111.3.75 View file →
@@ -1,15 +1,19 @@
1 1 import React from 'react';
2 2 import { RawHTML } from '@wordpress/element';
3 3 import { IFormBlockAttributes } from './registerFormBlock';
4 +import useCustomCssBlockProps from '../Common/useCustomCssBlockProps';
4 5
6 +const DefaultCssClasses = 'wp-block-leadin-hubspot-form-block';
7 +
5 8 export default function FormSaveBlock({ attributes }: IFormBlockAttributes) {
6 - const { portalId, formId } = attributes;
9 + const { portalId, formId, embedVersion } = attributes;
10 + const blockProps = useCustomCssBlockProps(DefaultCssClasses);
7 11
8 12 if (portalId && formId) {
9 13 return (
10 - <RawHTML className="wp-block-leadin-hubspot-form-block">
11 - {`[hubspot portal="${portalId}" id="${formId}" type="form"]`}
14 + <RawHTML {...blockProps}>
15 + {`[hubspot portal="${portalId}" id="${formId}" version="${embedVersion}" type="form"]`}
12 16 </RawHTML>
13 17 );
14 18 }
15 19 return null;