@elementor/editor-variables 4.3.0-1019 → 4.3.0-1021
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.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/variable-selection-popover.tsx +5 -8
package/dist/index.mjs
CHANGED
|
@@ -2470,7 +2470,6 @@ function createUnlinkHandler(variable, propTypeKey, setValue) {
|
|
|
2470
2470
|
// src/components/variable-selection-popover.tsx
|
|
2471
2471
|
import * as React22 from "react";
|
|
2472
2472
|
import { useState as useState12 } from "react";
|
|
2473
|
-
import { isExperimentActive } from "@elementor/editor-v1-adapters";
|
|
2474
2473
|
|
|
2475
2474
|
// src/context/variable-selection-popover.context.tsx
|
|
2476
2475
|
import * as React15 from "react";
|
|
@@ -3214,11 +3213,11 @@ var VIEW_EDIT = "edit";
|
|
|
3214
3213
|
var VariableSelectionPopover = ({ closePopover, propTypeKey, selectedVariable }) => {
|
|
3215
3214
|
const [currentView, setCurrentView] = useState12(VIEW_LIST);
|
|
3216
3215
|
const [editId, setEditId] = useState12("");
|
|
3217
|
-
const onSettingsAvailable =
|
|
3216
|
+
const onSettingsAvailable = () => {
|
|
3218
3217
|
window.dispatchEvent(
|
|
3219
3218
|
new CustomEvent("elementor/toggle-design-system", { detail: { tab: "variables" } })
|
|
3220
3219
|
);
|
|
3221
|
-
}
|
|
3220
|
+
};
|
|
3222
3221
|
return /* @__PURE__ */ React22.createElement(VariableTypeProvider, { propTypeKey }, /* @__PURE__ */ React22.createElement(PopoverContentRefContextProvider, null, RenderView({
|
|
3223
3222
|
propTypeKey,
|
|
3224
3223
|
currentView,
|