@bigbinary/neeto-editor 1.47.27 → 1.47.28

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.
@@ -5,7 +5,7 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
5
5
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
7
  var React = require('react');
8
- var Menu$3 = require('./chunk-DMTvF2cL.cjs.js');
8
+ var Menu$3 = require('./chunk-D44ZMvgb.cjs.js');
9
9
  var classnames = require('classnames');
10
10
  var constants = require('./chunk-BlNpxkqF.cjs.js');
11
11
  var neetoCist = require('@bigbinary/neeto-cist');
@@ -10,7 +10,7 @@ var Editor = require('./Editor.cjs.js');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  require('@babel/runtime/helpers/toConsumableArray');
12
12
  require('@babel/runtime/helpers/slicedToArray');
13
- require('./chunk-DMTvF2cL.cjs.js');
13
+ require('./chunk-D44ZMvgb.cjs.js');
14
14
  require('./chunk-vQvjPR2x.cjs.js');
15
15
  require('i18next');
16
16
  require('@bigbinary/neeto-icons/TextH1');
@@ -5,7 +5,7 @@ require('@babel/runtime/helpers/toConsumableArray');
5
5
  require('@babel/runtime/helpers/slicedToArray');
6
6
  require('react');
7
7
  require('ramda');
8
- var Menu = require('./chunk-DMTvF2cL.cjs.js');
8
+ var Menu = require('./chunk-D44ZMvgb.cjs.js');
9
9
  require('./chunk-IbrhD0V3.cjs.js');
10
10
  require('react/jsx-runtime');
11
11
  require('./chunk-vQvjPR2x.cjs.js');
@@ -19094,6 +19094,7 @@ var FontSizeOption$1 = /*#__PURE__*/React.memo(FontSizeOption);
19094
19094
  function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19095
19095
  function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19096
19096
  var ColorDot = function ColorDot(_ref) {
19097
+ var _colorVar$match;
19097
19098
  var colorVar = _ref.colorVar,
19098
19099
  isSelected = _ref.isSelected,
19099
19100
  onClick = _ref.onClick,
@@ -19107,10 +19108,12 @@ var ColorDot = function ColorDot(_ref) {
19107
19108
  } : {
19108
19109
  backgroundColor: "var(".concat(colorVar, ")")
19109
19110
  });
19111
+ var colorNumber = ((_colorVar$match = colorVar.match(/\d+$/)) === null || _colorVar$match === void 0 ? void 0 : _colorVar$match[0]) || colorVar;
19110
19112
  return /*#__PURE__*/jsxRuntime.jsx("div", {
19111
19113
  onClick: onClick,
19112
19114
  className: dotClass,
19113
19115
  style: dotStyle,
19116
+ "data-cy": "neeto-editor-highlight-".concat(utils$1.hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber),
19114
19117
  children: isTextColor && /*#__PURE__*/jsxRuntime.jsx(Typography, {
19115
19118
  className: "neeto-editor-highlight-dropdown__color-dot-text",
19116
19119
  style: "body2",
@@ -19245,6 +19248,7 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
19245
19248
  children: title
19246
19249
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
19247
19250
  className: "neeto-editor-highlight-dropdown__color-grid",
19251
+ "data-cy": "neeto-editor-highlight-".concat(utils$1.hyphenize(title), "-grid"),
19248
19252
  children: renderColorDots(colors, isTextColor)
19249
19253
  })]
19250
19254
  }, title);
@@ -19882,4 +19886,4 @@ exports.textblockTypeInputRule = textblockTypeInputRule;
19882
19886
  exports.useEditor = useEditor;
19883
19887
  exports.useEditorState = useEditorState$1;
19884
19888
  exports.wrappingInputRule = wrappingInputRule;
19885
- //# sourceMappingURL=chunk-DMTvF2cL.cjs.js.map
19889
+ //# sourceMappingURL=chunk-D44ZMvgb.cjs.js.map