@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.
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ import '@bigbinary/neetoui/Alert';
63
63
  import './chunk-Di3ipdfT.js';
64
64
  import 'react-dom';
65
65
  import '@bigbinary/neetoui/Label';
66
- import './chunk-BVW5D3k5.js';
66
+ import './chunk-BAjN56q8.js';
67
67
  import '@tanstack/react-query';
68
68
  import 'yjs';
69
69
  import '@bigbinary/neeto-icons/misc/Megaphone';
package/dist/v2/Editor.js CHANGED
@@ -9,7 +9,7 @@ import classnames from 'classnames';
9
9
  import { isNotPresent, findBy, isNotEmpty, isPresent, noop, slugify } from '@bigbinary/neeto-cist';
10
10
  import { useOnClickOutside, withT, useFuncDebounce } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
11
11
  import { createPortal } from 'react-dom';
12
- import { B as BulletList$1, s as src_default, a as src_default$1, R as Resizable, b as src_default$2, L as Link$1, c as scrollHandler, d as src_default$3, O as OrderedList$1, e as src_default$4, f as fuzzySearch, T as Table$2, g as TaskList, h as TaskItem, i as getVideoDimension, C as CharacterCount, j as src_default$5, k as src_default$6, l as safeSplitBlock, m as safeListKeymap, n as TextStyle, o as src_default$7, F as Focus, p as src_default$8, q as TableRow, r as TableHeader, t as TableCell, u as Color, v as ListItem, w as src_default$9, x as src_default$a, y as useFetchKbArticles, J as useEditorWarnings, K as useDeletedArticles } from '../chunk-BVW5D3k5.js';
12
+ import { B as BulletList$1, s as src_default, a as src_default$1, R as Resizable, b as src_default$2, L as Link$1, c as scrollHandler, d as src_default$3, O as OrderedList$1, e as src_default$4, f as fuzzySearch, T as Table$2, g as TaskList, h as TaskItem, i as getVariableDisplay, j as getVideoDimension, C as CharacterCount, k as src_default$5, l as src_default$6, m as safeSplitBlock, n as safeListKeymap, o as TextStyle, p as src_default$7, F as Focus, q as src_default$8, r as TableRow, t as TableHeader, u as TableCell, v as Color, w as ListItem, x as src_default$9, y as src_default$a, z as useFetchKbArticles, K as useEditorWarnings, N as useDeletedArticles } from '../chunk-BAjN56q8.js';
13
13
  import { D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS, C as COMBINED_REGEX, a as EDITOR_SIZES } from '../chunk-UwzgbfZD.js';
14
14
  import '../chunk-CNIDH-FD.js';
15
15
  import { is, intersection, difference, union, isEmpty, isNil, mergeRight, assoc, equals } from 'ramda';
@@ -3626,11 +3626,10 @@ var VariableComponent = function VariableComponent(_ref) {
3626
3626
  var _variableName$substr;
3627
3627
  var node = _ref.node,
3628
3628
  extension = _ref.extension;
3629
- var _node$attrs = node.attrs,
3630
- id = _node$attrs.id,
3631
- label = _node$attrs.label;
3632
- var variableName = label || id;
3633
- var shouldTruncate = variableName.length > MAX_VARIABLE_NAME_DISPLAY_LENGTH;
3629
+ var id = node.attrs.id;
3630
+ var _getVariableDisplay = getVariableDisplay(node.attrs, MAX_VARIABLE_NAME_DISPLAY_LENGTH),
3631
+ variableName = _getVariableDisplay.variableName,
3632
+ shouldTruncate = _getVariableDisplay.shouldTruncate;
3634
3633
  return /*#__PURE__*/jsxs(NodeViewWrapper, {
3635
3634
  as: "span",
3636
3635
  className: "neeto-editor-variable",