@elementor/editor-controls 4.1.0-780 → 4.1.0-782
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/repeatable-control.tsx +5 -2
package/dist/index.mjs
CHANGED
|
@@ -5710,6 +5710,7 @@ var RepeatableControl = createControl(
|
|
|
5710
5710
|
patternLabel,
|
|
5711
5711
|
placeholder,
|
|
5712
5712
|
propKey,
|
|
5713
|
+
isSortable,
|
|
5713
5714
|
addItemTooltipProps
|
|
5714
5715
|
}) => {
|
|
5715
5716
|
const { propTypeUtil: childPropTypeUtil, isItemDisabled: isItemDisabled2 } = childControlConfig;
|
|
@@ -5729,6 +5730,7 @@ var RepeatableControl = createControl(
|
|
|
5729
5730
|
[childControlConfig, placeholder, patternLabel]
|
|
5730
5731
|
);
|
|
5731
5732
|
const { propType, value, setValue } = useBoundProp(childArrayPropTypeUtil2);
|
|
5733
|
+
const newItemIndex = addItemTooltipProps?.newItemIndex === null ? void 0 : 0;
|
|
5732
5734
|
return /* @__PURE__ */ React87.createElement(PropProvider, { propType, value, setValue }, /* @__PURE__ */ React87.createElement(RepeatableControlContext.Provider, { value: contextValue }, /* @__PURE__ */ React87.createElement(
|
|
5733
5735
|
ControlRepeater,
|
|
5734
5736
|
{
|
|
@@ -5740,11 +5742,11 @@ var RepeatableControl = createControl(
|
|
|
5740
5742
|
TooltipAddItemAction,
|
|
5741
5743
|
{
|
|
5742
5744
|
...addItemTooltipProps,
|
|
5743
|
-
newItemIndex
|
|
5745
|
+
newItemIndex,
|
|
5744
5746
|
ariaLabel: repeaterLabel
|
|
5745
5747
|
}
|
|
5746
5748
|
)),
|
|
5747
|
-
/* @__PURE__ */ React87.createElement(ItemsContainer, { isSortable
|
|
5749
|
+
/* @__PURE__ */ React87.createElement(ItemsContainer, { isSortable }, /* @__PURE__ */ React87.createElement(
|
|
5748
5750
|
Item,
|
|
5749
5751
|
{
|
|
5750
5752
|
Icon: ItemIcon3,
|