@elementor/editor-controls 4.1.0-761 → 4.1.0-763
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/email-form-action-control.tsx +4 -8
package/dist/index.d.mts
CHANGED
|
@@ -413,7 +413,9 @@ declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props,
|
|
|
413
413
|
props?: ComponentProps<"div">;
|
|
414
414
|
}) => React$1.JSX.Element>;
|
|
415
415
|
|
|
416
|
-
declare const EmailFormActionControl: ControlComponent$1<(
|
|
416
|
+
declare const EmailFormActionControl: ControlComponent$1<({ toPlaceholder }: {
|
|
417
|
+
toPlaceholder?: string;
|
|
418
|
+
}) => React$1.JSX.Element>;
|
|
417
419
|
|
|
418
420
|
type Action = {
|
|
419
421
|
type: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -413,7 +413,9 @@ declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props,
|
|
|
413
413
|
props?: ComponentProps<"div">;
|
|
414
414
|
}) => React$1.JSX.Element>;
|
|
415
415
|
|
|
416
|
-
declare const EmailFormActionControl: ControlComponent$1<(
|
|
416
|
+
declare const EmailFormActionControl: ControlComponent$1<({ toPlaceholder }: {
|
|
417
|
+
toPlaceholder?: string;
|
|
418
|
+
}) => React$1.JSX.Element>;
|
|
417
419
|
|
|
418
420
|
type Action = {
|
|
419
421
|
type: string;
|
package/dist/index.js
CHANGED
|
@@ -6772,14 +6772,7 @@ var import_editor_ui13 = require("@elementor/editor-ui");
|
|
|
6772
6772
|
var import_ui88 = require("@elementor/ui");
|
|
6773
6773
|
var import_i18n51 = require("@wordpress/i18n");
|
|
6774
6774
|
var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React102.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React102.createElement(import_ui88.Grid, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React102.createElement(import_ui88.Grid, { item: true }, /* @__PURE__ */ React102.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React102.createElement(import_ui88.Grid, { item: true }, /* @__PURE__ */ React102.createElement(TextControl, { placeholder }))));
|
|
6775
|
-
var SendToField = () => /* @__PURE__ */ React102.createElement(
|
|
6776
|
-
EmailField,
|
|
6777
|
-
{
|
|
6778
|
-
bind: "to",
|
|
6779
|
-
label: (0, import_i18n51.__)("Send to", "elementor"),
|
|
6780
|
-
placeholder: (0, import_i18n51.__)("Where should we send new submissions?", "elementor")
|
|
6781
|
-
}
|
|
6782
|
-
);
|
|
6775
|
+
var SendToField = ({ placeholder }) => /* @__PURE__ */ React102.createElement(EmailField, { bind: "to", label: (0, import_i18n51.__)("Send to", "elementor"), placeholder });
|
|
6783
6776
|
var SubjectField = () => /* @__PURE__ */ React102.createElement(
|
|
6784
6777
|
EmailField,
|
|
6785
6778
|
{
|
|
@@ -6838,9 +6831,9 @@ var SendAsField = () => /* @__PURE__ */ React102.createElement(PropKeyProvider,
|
|
|
6838
6831
|
}
|
|
6839
6832
|
))));
|
|
6840
6833
|
var AdvancedSettings = () => /* @__PURE__ */ React102.createElement(import_editor_ui13.CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React102.createElement(import_ui88.Box, { sx: { pt: 2 } }, /* @__PURE__ */ React102.createElement(import_ui88.Stack, { gap: 2 }, /* @__PURE__ */ React102.createElement(FromNameField, null), /* @__PURE__ */ React102.createElement(ReplyToField, null), /* @__PURE__ */ React102.createElement(CcField, null), /* @__PURE__ */ React102.createElement(BccField, null), /* @__PURE__ */ React102.createElement(import_ui88.Divider, null), /* @__PURE__ */ React102.createElement(MetaDataField, null), /* @__PURE__ */ React102.createElement(SendAsField, null))));
|
|
6841
|
-
var EmailFormActionControl = createControl(() => {
|
|
6834
|
+
var EmailFormActionControl = createControl(({ toPlaceholder }) => {
|
|
6842
6835
|
const { value, setValue, ...propContext } = useBoundProp(import_editor_props54.emailPropTypeUtil);
|
|
6843
|
-
return /* @__PURE__ */ React102.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React102.createElement(import_ui88.Stack, { gap: 2 }, /* @__PURE__ */ React102.createElement(ControlLabel, null, (0, import_i18n51.__)("Email settings", "elementor")), /* @__PURE__ */ React102.createElement(SendToField,
|
|
6836
|
+
return /* @__PURE__ */ React102.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React102.createElement(import_ui88.Stack, { gap: 2 }, /* @__PURE__ */ React102.createElement(ControlLabel, null, (0, import_i18n51.__)("Email settings", "elementor")), /* @__PURE__ */ React102.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React102.createElement(SubjectField, null), /* @__PURE__ */ React102.createElement(MessageField, null), /* @__PURE__ */ React102.createElement(FromEmailField, null), /* @__PURE__ */ React102.createElement(AdvancedSettings, null)));
|
|
6844
6837
|
});
|
|
6845
6838
|
|
|
6846
6839
|
// src/controls/size-control/unstable-size-control.tsx
|