Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-packages/real-product-manager-wp-client/lib/components/pluginUpdate/form/terms"

Index

Variables

Const PluginUpdateTermFields

PluginUpdateTermFields: FC<{ pluginUpdate: PluginUpdate }> = observer(({ pluginUpdate }) => {const {privacyProvider,privacyPolicy,allowsTelemetry,allowsAutoUpdates,allowsNewsletter,licenses: [firstLicense]} = pluginUpdate;return (<>{allowsAutoUpdates && (<Form.Item name="autoUpdates" valuePropName="checked" style={PLUGIN_UPDATE_FORM_LAYOUT_MARGIN_BOTTOM}><Checkbox style={{ zoom: 0.8 }}>{_i(__("Updates containing bug fixes and new features will be downloaded and installed automatically."),{a: <a href={privacyPolicy} target="_blank" rel="noreferrer" />})}</Checkbox></Form.Item>)}<Form.Itemname="terms"valuePropName="checked"requiredrules={[{type: "boolean",required: true,transform: (value) => value || undefined,message: __("Please confirm that you have read the privacy policy!")}]}style={PLUGIN_UPDATE_FORM_LAYOUT_MARGIN_BOTTOM}><Checkbox style={{ zoom: 0.8 }}>{_i(__("I allow to transfer technical data about this WordPress installation to the update server of %1$s and get latest announcements. This data is required for license activation and update functionality. I have read the {{a}}privacy policy{{/a}} of %1$s.",privacyProvider),{a: <a href={privacyPolicy} target="_blank" rel="noreferrer" />})}</Checkbox></Form.Item>{allowsTelemetry && (<Form.Item name="telemetry" valuePropName="checked" style={PLUGIN_UPDATE_FORM_LAYOUT_MARGIN_BOTTOM}><Checkbox style={{ zoom: 0.8 }}>{_i(__("I allow telemetry data about the use of this WordPress plugin to be collected in accordance with the %1$s {{a}}privacy policy{{/a}}. This data does not include any personal information about users of the plugin. Collected data ({{aDataExample}}open example of transmitted data{{/aDataExample}}) will be used to provide you with the best possible support and to improve the plugin.",privacyProvider),{a: <a href={privacyPolicy} target="_blank" rel="noreferrer" />,aDataExample: (<PluginUpdateLicenseTelemetryDataModal license={firstLicense} linkWrapper />)})}</Checkbox></Form.Item>)}{allowsNewsletter && (<Form.Item name="newsletter" valuePropName="checked" style={PLUGIN_UPDATE_FORM_LAYOUT_MARGIN_BOTTOM}><Checkbox style={{ zoom: 0.8 }}>{_i(__("I would like to receive the %1$s newsletter with WordPress news, sales and product offers (approx. 1-2 per month) by email. I have read the %1$s {{a}}privacy policy{{/a}}. I know that I can unsubscribe from the newsletter at any time.",privacyProvider),{a: <a href={privacyPolicy} target="_blank" rel="noreferrer" />})}</Checkbox></Form.Item>)}<Form.ItemnoStyleshouldUpdate={(prevValues, nextValues) => prevValues.newsletter !== nextValues.newsletter}>{({ getFieldValue }) =>getFieldValue("newsletter") && (<><Form.Itemlabel={__("First name")}name="firstName"style={PLUGIN_UPDATE_FORM_LAYOUT_MARGIN_BOTTOM}requiredrules={[{ required: true, message: __("Please enter your first name!") }]}><Input /></Form.Item><Form.Itemlabel={__("Email")}name="email"style={PLUGIN_UPDATE_FORM_LAYOUT_MARGIN_BOTTOM}requiredrules={[{type: "email",required: true,message: __("Please enter your email address!")}]}><Input /></Form.Item><div className="notice notice-info inline below-h2 notice-alt" style={{ margin: 0 }}><p>{__("Please note that we will send you a confirmation e-mail. Only when you have clicked on the activation link in the email will you receive the newsletter.")}</p></div></>)}</Form.Item></>);})

Generated using TypeDoc