@elementor/editor-variables 4.3.0-1018 → 4.3.0-1020

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 CHANGED
@@ -2505,7 +2505,6 @@ function createUnlinkHandler(variable, propTypeKey, setValue) {
2505
2505
  // src/components/variable-selection-popover.tsx
2506
2506
  var React22 = __toESM(require("react"));
2507
2507
  var import_react21 = require("react");
2508
- var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
2509
2508
 
2510
2509
  // src/context/variable-selection-popover.context.tsx
2511
2510
  var React15 = __toESM(require("react"));
@@ -3234,11 +3233,11 @@ var VIEW_EDIT = "edit";
3234
3233
  var VariableSelectionPopover = ({ closePopover, propTypeKey, selectedVariable }) => {
3235
3234
  const [currentView, setCurrentView] = (0, import_react21.useState)(VIEW_LIST);
3236
3235
  const [editId, setEditId] = (0, import_react21.useState)("");
3237
- const onSettingsAvailable = (0, import_editor_v1_adapters2.isExperimentActive)("e_variables_manager") ? () => {
3236
+ const onSettingsAvailable = () => {
3238
3237
  window.dispatchEvent(
3239
3238
  new CustomEvent("elementor/toggle-design-system", { detail: { tab: "variables" } })
3240
3239
  );
3241
- } : void 0;
3240
+ };
3242
3241
  return /* @__PURE__ */ React22.createElement(VariableTypeProvider, { propTypeKey }, /* @__PURE__ */ React22.createElement(PopoverContentRefContextProvider, null, RenderView({
3243
3242
  propTypeKey,
3244
3243
  currentView,
@@ -3903,7 +3902,7 @@ var import_utils3 = require("@elementor/utils");
3903
3902
  var MANAGE_VARIABLES_GUIDE_URI = "elementor://variables/tools/manage-global-variable-guide";
3904
3903
 
3905
3904
  // src/mcp/variables-resource.ts
3906
- var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
3905
+ var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
3907
3906
  var import_http_client2 = require("@elementor/http-client");
3908
3907
  var MCP_PROXY_URL = "elementor/v1/mcp-proxy";
3909
3908
  var GLOBAL_VARIABLES_URI = "elementor://global-variables";
@@ -3935,7 +3934,7 @@ var initVariablesResource = (variablesMcpEntry, canvasMcpEntry) => {
3935
3934
  }
3936
3935
  );
3937
3936
  window.addEventListener(STORAGE_UPDATED_EVENT, notifyGlobalVariablesUpdated);
3938
- (0, import_editor_v1_adapters3.__privateListenTo)((0, import_editor_v1_adapters3.commandEndEvent)("document/save/update"), notifyGlobalVariablesUpdated);
3937
+ (0, import_editor_v1_adapters2.__privateListenTo)((0, import_editor_v1_adapters2.commandEndEvent)("document/save/update"), notifyGlobalVariablesUpdated);
3939
3938
  });
3940
3939
  };
3941
3940
 
@@ -4222,7 +4221,7 @@ function registerVariableTypes() {
4222
4221
  // src/renderers/style-variables-renderer.tsx
4223
4222
  var React38 = __toESM(require("react"));
4224
4223
  var import_react29 = require("react");
4225
- var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
4224
+ var import_editor_v1_adapters3 = require("@elementor/editor-v1-adapters");
4226
4225
  var import_ui35 = require("@elementor/ui");
4227
4226
  var VARIABLES_WRAPPER = ":root";
4228
4227
  function StyleVariablesRenderer() {
@@ -4237,7 +4236,7 @@ function StyleVariablesRenderer() {
4237
4236
  return /* @__PURE__ */ React38.createElement(import_ui35.Portal, { container }, /* @__PURE__ */ React38.createElement("style", { "data-e-style-id": "e-variables", key: wrappedCss }, wrappedCss));
4238
4237
  }
4239
4238
  function usePortalContainer() {
4240
- return (0, import_editor_v1_adapters4.__privateUseListenTo)((0, import_editor_v1_adapters4.commandEndEvent)("editor/documents/attach-preview"), () => (0, import_editor_v1_adapters4.getCanvasIframeDocument)()?.head);
4239
+ return (0, import_editor_v1_adapters3.__privateUseListenTo)((0, import_editor_v1_adapters3.commandEndEvent)("editor/documents/attach-preview"), () => (0, import_editor_v1_adapters3.getCanvasIframeDocument)()?.head);
4241
4240
  }
4242
4241
  function useStyleVariables() {
4243
4242
  const [variables, setVariables] = (0, import_react29.useState)({});