@bigbinary/neeto-editor-frontend 2.0.7 → 2.0.8-beta1

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.
@@ -65,7 +65,7 @@ require('@bigbinary/neetoui/Alert');
65
65
  require('./chunk-CohcWDmm.cjs.js');
66
66
  require('react-dom');
67
67
  require('@bigbinary/neetoui/Label');
68
- require('./chunk-9oA3Y9DG.cjs.js');
68
+ require('./chunk-BAEoAF1o.cjs.js');
69
69
  require('@tanstack/react-query');
70
70
  require('yjs');
71
71
  require('@bigbinary/neeto-icons/misc/Megaphone');
@@ -11,7 +11,7 @@ var classnames = require('classnames');
11
11
  var neetoCist = require('@bigbinary/neeto-cist');
12
12
  var reactUtils = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
13
13
  var ReactDOM$1 = require('react-dom');
14
- var getVideoDimension = require('../chunk-9oA3Y9DG.cjs.js');
14
+ var getVideoDimension = require('../chunk-BAEoAF1o.cjs.js');
15
15
  var constants = require('../chunk-BxKa_XOs.cjs.js');
16
16
  require('../chunk-CQ-j2kAX.cjs.js');
17
17
  var ramda = require('ramda');
@@ -3674,11 +3674,10 @@ var VariableComponent = function VariableComponent(_ref) {
3674
3674
  var _variableName$substr;
3675
3675
  var node = _ref.node,
3676
3676
  extension = _ref.extension;
3677
- var _node$attrs = node.attrs,
3678
- id = _node$attrs.id,
3679
- label = _node$attrs.label;
3680
- var variableName = label || id;
3681
- var shouldTruncate = variableName.length > MAX_VARIABLE_NAME_DISPLAY_LENGTH;
3677
+ var id = node.attrs.id;
3678
+ var _getVariableDisplay = getVideoDimension.getVariableDisplay(node.attrs, MAX_VARIABLE_NAME_DISPLAY_LENGTH),
3679
+ variableName = _getVariableDisplay.variableName,
3680
+ shouldTruncate = _getVariableDisplay.shouldTruncate;
3682
3681
  return /*#__PURE__*/jsxRuntime.jsxs(useEditorStore.NodeViewWrapper, {
3683
3682
  as: "span",
3684
3683
  className: "neeto-editor-variable",