@bigbinary/neeto-editor-frontend 2.0.7 → 2.0.8

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.
@@ -14,7 +14,7 @@ var ReactDOM$1 = require('react-dom');
14
14
  var constants = require('./chunk-BxKa_XOs.cjs.js');
15
15
  var ramda = require('ramda');
16
16
  var jsxRuntime = require('react/jsx-runtime');
17
- var getVideoDimension = require('./chunk-9oA3Y9DG.cjs.js');
17
+ var getVideoDimension = require('./chunk-BAEoAF1o.cjs.js');
18
18
  var injectCss = require('./chunk-B6qYtOJe.cjs.js');
19
19
  var utils = require('./chunk-Ty2BpOZ5.cjs.js');
20
20
  var ReactDOM = require('react-dom/server');
@@ -3510,11 +3510,10 @@ var VariableComponent = function VariableComponent(_ref) {
3510
3510
  var _variableName$substr;
3511
3511
  var node = _ref.node,
3512
3512
  extension = _ref.extension;
3513
- var _node$attrs = node.attrs,
3514
- id = _node$attrs.id,
3515
- label = _node$attrs.label;
3516
- var variableName = label || id;
3517
- var shouldTruncate = variableName.length > MAX_VARIABLE_NAME_DISPLAY_LENGTH;
3513
+ var id = node.attrs.id;
3514
+ var _getVariableDisplay = getVideoDimension.getVariableDisplay(node.attrs, MAX_VARIABLE_NAME_DISPLAY_LENGTH),
3515
+ variableName = _getVariableDisplay.variableName,
3516
+ shouldTruncate = _getVariableDisplay.shouldTruncate;
3518
3517
  return /*#__PURE__*/jsxRuntime.jsxs(useEditorStore.NodeViewWrapper, {
3519
3518
  as: "span",
3520
3519
  className: "neeto-editor-variable",