@elementor/editor-controls 4.2.0-beta2 → 4.3.0-1000
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 +10 -16
- package/dist/index.d.ts +10 -16
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/components/repeater/repeater.tsx +28 -32
- package/src/controls/email-form-action-control/email-chips-field.tsx +47 -37
- package/src/controls/email-form-action-control/fields.tsx +3 -1
- package/src/controls/email-form-action-control/index.tsx +2 -4
- package/src/utils/tracking.ts +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7297,7 +7297,6 @@ import { __ as __53 } from "@wordpress/i18n";
|
|
|
7297
7297
|
import { getSelectedElements as getSelectedElements2 } from "@elementor/editor-elements";
|
|
7298
7298
|
import { getMixpanel } from "@elementor/events";
|
|
7299
7299
|
var getBaseEventProperties = (data, config) => ({
|
|
7300
|
-
app_type: config?.appTypes?.editor ?? "editor",
|
|
7301
7300
|
window_name: config?.appTypes?.editor ?? "editor",
|
|
7302
7301
|
interaction_type: config?.triggers?.click ?? "Click",
|
|
7303
7302
|
target_name: data.target_name,
|
|
@@ -8300,7 +8299,7 @@ var shouldShowMentionsInfo = () => {
|
|
|
8300
8299
|
};
|
|
8301
8300
|
|
|
8302
8301
|
// src/controls/email-form-action-control/email-chips-field.tsx
|
|
8303
|
-
var
|
|
8302
|
+
var EmailChipsControl = createControl(({ placeholder }) => {
|
|
8304
8303
|
const { value, setValue, disabled } = useBoundProp(stringArrayPropTypeUtil3);
|
|
8305
8304
|
const [inputValue, setInputValue] = useState19("");
|
|
8306
8305
|
const items2 = value || [];
|
|
@@ -8336,7 +8335,7 @@ var EmailChipsField = ({ fieldLabel, placeholder }) => {
|
|
|
8336
8335
|
tryAddChip(inputValue);
|
|
8337
8336
|
}
|
|
8338
8337
|
};
|
|
8339
|
-
return /* @__PURE__ */ React116.createElement(
|
|
8338
|
+
return /* @__PURE__ */ React116.createElement(ControlActions, null, /* @__PURE__ */ React116.createElement(
|
|
8340
8339
|
Autocomplete4,
|
|
8341
8340
|
{
|
|
8342
8341
|
fullWidth: true,
|
|
@@ -8359,8 +8358,9 @@ var EmailChipsField = ({ fieldLabel, placeholder }) => {
|
|
|
8359
8358
|
renderInput: (params) => /* @__PURE__ */ React116.createElement(TextField11, { ...params, placeholder, onKeyDown: handleKeyDown }),
|
|
8360
8359
|
renderTags: (tagValues, getTagProps) => /* @__PURE__ */ React116.createElement(ChipsList, { getLabel: (option) => option, getTagProps, values: tagValues })
|
|
8361
8360
|
}
|
|
8362
|
-
))
|
|
8363
|
-
};
|
|
8361
|
+
));
|
|
8362
|
+
});
|
|
8363
|
+
var EmailChipsField = ({ fieldLabel, placeholder }) => /* @__PURE__ */ React116.createElement(Grid32, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React116.createElement(Grid32, { item: true }, /* @__PURE__ */ React116.createElement(ControlFormLabel, null, fieldLabel)), /* @__PURE__ */ React116.createElement(Grid32, { item: true }, /* @__PURE__ */ React116.createElement(EmailChipsControl, { placeholder })));
|
|
8364
8364
|
|
|
8365
8365
|
// src/controls/email-form-action-control/email-field.tsx
|
|
8366
8366
|
import * as React117 from "react";
|
|
@@ -8368,7 +8368,7 @@ import { Grid as Grid33 } from "@elementor/ui";
|
|
|
8368
8368
|
var EmailField = ({ bind, label, placeholder }) => /* @__PURE__ */ React117.createElement(PropKeyProvider, { bind }, /* @__PURE__ */ React117.createElement(Grid33, { container: true, direction: "column", gap: 0.5 }, /* @__PURE__ */ React117.createElement(Grid33, { item: true }, /* @__PURE__ */ React117.createElement(ControlFormLabel, null, label)), /* @__PURE__ */ React117.createElement(Grid33, { item: true }, /* @__PURE__ */ React117.createElement(TextControl, { placeholder }))));
|
|
8369
8369
|
|
|
8370
8370
|
// src/controls/email-form-action-control/fields.tsx
|
|
8371
|
-
var SendToField = ({ placeholder }) => /* @__PURE__ */ React118.createElement(EmailChipsField, { fieldLabel: __57("Send to", "elementor"), placeholder });
|
|
8371
|
+
var SendToField = ({ placeholder }) => /* @__PURE__ */ React118.createElement(PropKeyProvider, { bind: "to" }, /* @__PURE__ */ React118.createElement(EmailChipsField, { fieldLabel: __57("Send to", "elementor"), placeholder }));
|
|
8372
8372
|
var SubjectField = () => /* @__PURE__ */ React118.createElement(
|
|
8373
8373
|
EmailField,
|
|
8374
8374
|
{
|
|
@@ -8440,7 +8440,7 @@ var SendAsField = () => /* @__PURE__ */ React118.createElement(PropKeyProvider,
|
|
|
8440
8440
|
var EmailFormActionControl = createControl(
|
|
8441
8441
|
({ toPlaceholder, label }) => {
|
|
8442
8442
|
const { value, setValue, ...propContext } = useBoundProp(emailsPropTypeUtil);
|
|
8443
|
-
return /* @__PURE__ */ React119.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React119.createElement(Stack20, { gap: 2 }, /* @__PURE__ */ React119.createElement(ControlLabel, null, label ? label + " " + __58("settings", "elementor") : __58("Email settings", "elementor")), /* @__PURE__ */ React119.createElement(
|
|
8443
|
+
return /* @__PURE__ */ React119.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React119.createElement(Stack20, { gap: 2 }, /* @__PURE__ */ React119.createElement(ControlLabel, null, label ? label + " " + __58("settings", "elementor") : __58("Email settings", "elementor")), /* @__PURE__ */ React119.createElement(SendToField, { placeholder: toPlaceholder }), /* @__PURE__ */ React119.createElement(SubjectField, null), /* @__PURE__ */ React119.createElement(MessageField, null), /* @__PURE__ */ React119.createElement(FromEmailField, null), /* @__PURE__ */ React119.createElement(AdvancedSettings, null)));
|
|
8444
8444
|
}
|
|
8445
8445
|
);
|
|
8446
8446
|
var AdvancedSettings = () => /* @__PURE__ */ React119.createElement(CollapsibleContent, { defaultOpen: false }, /* @__PURE__ */ React119.createElement(Box26, { sx: { pt: 2 } }, /* @__PURE__ */ React119.createElement(Stack20, { gap: 2 }, /* @__PURE__ */ React119.createElement(FromNameField, null), /* @__PURE__ */ React119.createElement(ReplyToField, null), /* @__PURE__ */ React119.createElement(CcField, null), /* @__PURE__ */ React119.createElement(BccField, null), /* @__PURE__ */ React119.createElement(Divider5, null), /* @__PURE__ */ React119.createElement(MetaDataField, null), /* @__PURE__ */ React119.createElement(SendAsField, null))));
|
|
@@ -8661,7 +8661,8 @@ var Repeater3 = ({
|
|
|
8661
8661
|
disableAddItemButton = false,
|
|
8662
8662
|
addButtonInfotipContent,
|
|
8663
8663
|
openItem: initialOpenItem = EMPTY_OPEN_ITEM2,
|
|
8664
|
-
isSortable = true
|
|
8664
|
+
isSortable = true,
|
|
8665
|
+
adornment = ControlAdornments
|
|
8665
8666
|
}) => {
|
|
8666
8667
|
const [openItem, setOpenItem] = useState21(initialOpenItem);
|
|
8667
8668
|
const uniqueKeys = items2.map(
|
|
@@ -8739,7 +8740,7 @@ var Repeater3 = ({
|
|
|
8739
8740
|
},
|
|
8740
8741
|
/* @__PURE__ */ React126.createElement(PlusIcon5, { fontSize: SIZE12 })
|
|
8741
8742
|
);
|
|
8742
|
-
return /* @__PURE__ */ React126.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React126.createElement(RepeaterHeader, { label, adornment
|
|
8743
|
+
return /* @__PURE__ */ React126.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React126.createElement(RepeaterHeader, { label, adornment }, shouldShowInfotip ? /* @__PURE__ */ React126.createElement(
|
|
8743
8744
|
Infotip4,
|
|
8744
8745
|
{
|
|
8745
8746
|
placement: "right",
|