@bigbinary/neeto-editor 1.43.12 → 1.43.13

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/Editor.js CHANGED
@@ -4,7 +4,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import * as React from 'react';
6
6
  import React__default, { memo, useEffect, useState, useRef, useCallback, createElement, forwardRef, useImperativeHandle } from 'react';
7
- import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-DfQGfgvj.js';
7
+ import { E as Extension, a as Mark, m as mergeAttributes, b as markInputRule, c as markPasteRule, D as DecorationSet, d as Decoration, g as getMarkAttributes, N as Node, w as wrappingInputRule, t as textblockTypeInputRule, k as keydownHandler, e as callOrReturn, f as getExtensionField, i as isNodeSelection, n as nodeInputRule, h as findChildren, j as NodeViewWrapper, l as NodeViewContent, R as ReactNodeViewRenderer, P as PasteRule, v as validateUrl, o as escapeForRegEx, p as ReactRenderer, q as EmojiPickerMenu, r as emojiPickerApi, s as liftTarget, u as combineTransactionSteps, x as getChangedRanges, y as findChildrenInRange, z as getMarksBetween, A as getAttributes, I as InputRule, B as highlightFocussedNode, C as resetFocussedNode, F as findParentNodeClosestToPos, G as BubbleMenu, H as getLinkPopoverPosition, J as getMarkType, K as getMarkRange, L as useEditor, O as useEditorState, M as Menu$3, Q as EditorContent, S as MediaUploader, T as EmbedOption, U as EditorView } from './chunk-DBjmQU2a.js';
8
8
  import classnames from 'classnames';
9
9
  import { C as COMBINED_REGEX, D as DIRECT_UPLOAD_ENDPOINT, E as EDITOR_OPTIONS } from './chunk-B4AM9m64.js';
10
10
  import { isNotPresent, isNotEmpty, isPresent, noop as noop$1, slugify } from '@bigbinary/neeto-cist';
@@ -61,6 +61,7 @@ import Text$3 from '@bigbinary/neeto-icons/Text';
61
61
  import Notes from '@bigbinary/neeto-icons/Notes';
62
62
  import MediaVideo from '@bigbinary/neeto-icons/MediaVideo';
63
63
  import Column from '@bigbinary/neeto-icons/Column';
64
+ import Tooltip from '@bigbinary/neetoui/Tooltip';
64
65
  import DeleteRow from '@bigbinary/neeto-icons/DeleteRow';
65
66
  import DeleteColumn from '@bigbinary/neeto-icons/DeleteColumn';
66
67
  import DeleteTable from '@bigbinary/neeto-icons/DeleteTable';
@@ -92,7 +93,6 @@ import '@bigbinary/neeto-icons/Refresh';
92
93
  import 'react-colorful';
93
94
  import '@bigbinary/neeto-molecules/DynamicVariables';
94
95
  import '@bigbinary/neetoui/Tab';
95
- import '@bigbinary/neetoui/Tooltip';
96
96
  import './chunk-E-ZsRS8r.js';
97
97
  import 'zustand/shallow';
98
98
  import 'zustand';
@@ -18757,7 +18757,12 @@ var VariableComponent = function VariableComponent(_ref) {
18757
18757
  className: "neeto-editor-variable",
18758
18758
  "data-label": id,
18759
18759
  "data-variable": "",
18760
- children: [extension.options.charOpen, variableName === null || variableName === void 0 || (_variableName$substr = variableName.substr(0, MAX_VARIABLE_NAME_DISPLAY_LENGTH)) === null || _variableName$substr === void 0 ? void 0 : _variableName$substr.trim(), shouldTruncate && "...", extension.options.charClose]
18760
+ children: [extension.options.charOpen, /*#__PURE__*/jsxs(Tooltip, {
18761
+ content: variableName,
18762
+ disabled: !shouldTruncate,
18763
+ position: "top",
18764
+ children: [variableName === null || variableName === void 0 || (_variableName$substr = variableName.substr(0, MAX_VARIABLE_NAME_DISPLAY_LENGTH)) === null || _variableName$substr === void 0 ? void 0 : _variableName$substr.trim(), shouldTruncate && "..."]
18765
+ }), extension.options.charClose]
18761
18766
  });
18762
18767
  };
18763
18768