@elementor/editor-variables 4.2.0-878 → 4.2.0-879

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
@@ -674,12 +674,16 @@ var inheritanceTransformer = (0, import_editor_canvas.createTransformer)((id2) =
674
674
 
675
675
  // src/transformers/variable-transformer.ts
676
676
  var import_editor_canvas2 = require("@elementor/editor-canvas");
677
- var variableTransformer = (0, import_editor_canvas2.createTransformer)((idOrLabel) => {
677
+ var variableTransformer = (0, import_editor_canvas2.createTransformer)((idOrLabel, { key }) => {
678
678
  const variables = service.variables();
679
679
  const targetVariable = variables[idOrLabel] || service.findVariableByLabel(idOrLabel);
680
680
  if (!targetVariable) {
681
681
  return null;
682
682
  }
683
+ if ((0, import_editor_canvas2.isGridTrackProperty)(key)) {
684
+ const count = parseInt((targetVariable.value ?? "").trim(), 10);
685
+ return (0, import_editor_canvas2.formatGridTrackRepeat)(count);
686
+ }
683
687
  const id2 = service.findIdByLabel(targetVariable.label);
684
688
  return resolveCssVariable(id2, targetVariable);
685
689
  });