@bigbinary/neeto-editor 1.47.78 → 1.47.80
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/Attachments.js +1 -1
- package/dist/Editor.js +28 -28
- package/dist/Editor.js.map +1 -1
- package/dist/EditorContent.js +1 -1
- package/dist/EditorContent.js.map +1 -1
- package/dist/FormikEditor.js +2 -2
- package/dist/Menu.js +1 -1
- package/dist/{chunk-DADua5Hs.js → chunk-2rW8X4h9.js} +6 -6
- package/dist/{chunk-DADua5Hs.js.map → chunk-2rW8X4h9.js.map} +1 -1
- package/dist/{chunk-CXmkXuF3.js → chunk-B7WnAQ8d.js} +44 -44
- package/dist/{chunk-CXmkXuF3.js.map → chunk-B7WnAQ8d.js.map} +1 -1
- package/dist/{chunk-CZULBD4z.js → chunk-CS2xPYV-.js} +8 -8
- package/dist/chunk-CS2xPYV-.js.map +1 -0
- package/dist/cjs/Attachments.cjs.js +1 -1
- package/dist/cjs/Editor.cjs.js +28 -28
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +1 -1
- package/dist/cjs/EditorContent.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +2 -2
- package/dist/cjs/Menu.cjs.js +1 -1
- package/dist/cjs/{chunk-BWh2yM_t.cjs.js → chunk-31Z6mjff.cjs.js} +6 -6
- package/dist/cjs/{chunk-BWh2yM_t.cjs.js.map → chunk-31Z6mjff.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-pQ98WW7j.cjs.js → chunk-CX8UXLae.cjs.js} +44 -44
- package/dist/cjs/{chunk-pQ98WW7j.cjs.js.map → chunk-CX8UXLae.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-D6gUFJOw.cjs.js → chunk-afvFA8i1.cjs.js} +8 -8
- package/dist/cjs/chunk-afvFA8i1.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/translations/ar.json +2 -2
- package/src/translations/bg.json +2 -2
- package/src/translations/ca.json +2 -2
- package/src/translations/cs.json +2 -2
- package/src/translations/da.json +2 -2
- package/src/translations/de.json +2 -2
- package/src/translations/es-MX.json +2 -2
- package/src/translations/es.json +2 -2
- package/src/translations/et.json +2 -2
- package/src/translations/fi.json +2 -2
- package/src/translations/fil.json +2 -2
- package/src/translations/fr.json +2 -2
- package/src/translations/he.json +2 -2
- package/src/translations/hi.json +2 -2
- package/src/translations/hr.json +2 -2
- package/src/translations/id.json +2 -2
- package/src/translations/it.json +2 -2
- package/src/translations/ja.json +2 -2
- package/src/translations/ko.json +2 -2
- package/src/translations/nl.json +2 -2
- package/src/translations/pl.json +2 -2
- package/src/translations/pt-BR.json +2 -2
- package/src/translations/pt.json +2 -2
- package/src/translations/ro.json +2 -2
- package/src/translations/ru.json +2 -2
- package/src/translations/sk.json +2 -2
- package/src/translations/sl.json +2 -2
- package/src/translations/sv.json +2 -2
- package/src/translations/th.json +2 -2
- package/src/translations/tr.json +2 -2
- package/src/translations/uk.json +2 -2
- package/src/translations/vi.json +2 -2
- package/src/translations/zh-CN.json +2 -2
- package/src/translations/zh-TW.json +2 -2
- package/dist/chunk-CZULBD4z.js.map +0 -1
- package/dist/cjs/chunk-D6gUFJOw.cjs.js.map +0 -1
|
@@ -15705,7 +15705,7 @@ var EmojiPickerMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
15705
15705
|
key: "render",
|
|
15706
15706
|
value: function render() {
|
|
15707
15707
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
15708
|
-
"data-
|
|
15708
|
+
"data-testid": "neeto-editor-emoji-picker",
|
|
15709
15709
|
ref: this.ref,
|
|
15710
15710
|
style: {
|
|
15711
15711
|
minWidth: "350px"
|
|
@@ -15780,7 +15780,7 @@ var MenuButton = function MenuButton(_ref) {
|
|
|
15780
15780
|
disabled: disabled,
|
|
15781
15781
|
icon: icon,
|
|
15782
15782
|
className: "neeto-editor-fixed-menu__item",
|
|
15783
|
-
"data-
|
|
15783
|
+
"data-testid": "neeto-editor-fixed-menu-".concat(optionName, "-option"),
|
|
15784
15784
|
style: isActive ? "secondary" : "text",
|
|
15785
15785
|
tabIndex: "-1",
|
|
15786
15786
|
tooltipProps: {
|
|
@@ -15821,7 +15821,7 @@ var CalloutTypeOption = function CalloutTypeOption(_ref) {
|
|
|
15821
15821
|
className: optionClass,
|
|
15822
15822
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
15823
15823
|
className: "neeto-editor-callout-dropdown__type-emoji",
|
|
15824
|
-
"data-
|
|
15824
|
+
"data-testid": "callout-type-emoji",
|
|
15825
15825
|
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
|
|
15826
15826
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
15827
15827
|
className: "neeto-editor-callout-dropdown__type-label",
|
|
@@ -15893,7 +15893,7 @@ var CalloutDropdown = function CalloutDropdown(_ref) {
|
|
|
15893
15893
|
size: 12
|
|
15894
15894
|
}),
|
|
15895
15895
|
ref: dropdownRef,
|
|
15896
|
-
"data-
|
|
15896
|
+
"data-testid": "neeto-editor-fixed-menu-callout-option",
|
|
15897
15897
|
onKeyDown: function onKeyDown(event) {
|
|
15898
15898
|
var _dropdownRef$current;
|
|
15899
15899
|
return event.key === "ArrowDown" && ((_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.click());
|
|
@@ -15933,7 +15933,7 @@ var SecondaryMenuTarget = function SecondaryMenuTarget(_ref) {
|
|
|
15933
15933
|
var Icon = _ref.icon,
|
|
15934
15934
|
label = _ref.label;
|
|
15935
15935
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$3.Button, {
|
|
15936
|
-
"data-
|
|
15936
|
+
"data-testid": "neeto-editor-fixed-menu-".concat(neetoCist.hyphenate(label), "-option"),
|
|
15937
15937
|
children: [/*#__PURE__*/jsxRuntime.jsx(Icon, {}), " ", label]
|
|
15938
15938
|
});
|
|
15939
15939
|
};
|
|
@@ -15960,7 +15960,7 @@ var EmojiOption = function EmojiOption(_ref) {
|
|
|
15960
15960
|
position: "bottom"
|
|
15961
15961
|
},
|
|
15962
15962
|
className: "neeto-editor-fixed-menu__item",
|
|
15963
|
-
"data-
|
|
15963
|
+
"data-testid": "neeto-editor-fixed-menu-emoji-option"
|
|
15964
15964
|
},
|
|
15965
15965
|
customTarget: isSecondaryMenu && /*#__PURE__*/jsxRuntime.jsx(SecondaryMenuTarget, {
|
|
15966
15966
|
label: label,
|
|
@@ -16037,7 +16037,7 @@ var LinkOption = function LinkOption(_ref) {
|
|
|
16037
16037
|
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
16038
16038
|
autoFocus: true,
|
|
16039
16039
|
className: "neeto-editor-bubble-menu-link__input",
|
|
16040
|
-
"data-
|
|
16040
|
+
"data-testid": "neeto-editor-link-input",
|
|
16041
16041
|
name: "url",
|
|
16042
16042
|
placeholder: t("neetoEditor.placeholders.linkInput"),
|
|
16043
16043
|
value: link,
|
|
@@ -16046,7 +16046,7 @@ var LinkOption = function LinkOption(_ref) {
|
|
|
16046
16046
|
return setLink(utils.validateAndFormatUrl(value));
|
|
16047
16047
|
}
|
|
16048
16048
|
}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
16049
|
-
"data-
|
|
16049
|
+
"data-testid": "neeto-editor-link-cancel-button",
|
|
16050
16050
|
icon: Close,
|
|
16051
16051
|
size: "small",
|
|
16052
16052
|
style: "secondary",
|
|
@@ -16086,7 +16086,7 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16086
16086
|
children: t("neetoEditor.menu.rows")
|
|
16087
16087
|
}), /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
16088
16088
|
autoFocus: true,
|
|
16089
|
-
"data-
|
|
16089
|
+
"data-testid": "neeto-editor-bubble-menu-table-rows-input",
|
|
16090
16090
|
min: "1",
|
|
16091
16091
|
type: "number",
|
|
16092
16092
|
value: rows,
|
|
@@ -16098,7 +16098,7 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16098
16098
|
className: "neeto-editor-bubble-menu__table__input-label",
|
|
16099
16099
|
children: t("neetoEditor.menu.columns")
|
|
16100
16100
|
}), /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
16101
|
-
"data-
|
|
16101
|
+
"data-testid": "neeto-editor-bubble-menu-table-option-input",
|
|
16102
16102
|
min: "1",
|
|
16103
16103
|
type: "number",
|
|
16104
16104
|
value: columns,
|
|
@@ -16107,13 +16107,13 @@ var TableOption$2 = function TableOption(_ref) {
|
|
|
16107
16107
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16108
16108
|
className: "neeto-editor-bubble-menu__table__buttons",
|
|
16109
16109
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
16110
|
-
"data-
|
|
16110
|
+
"data-testid": "neeto-editor-bubble-menu-table-option-create-button",
|
|
16111
16111
|
icon: Check,
|
|
16112
16112
|
size: "small",
|
|
16113
16113
|
style: "secondary",
|
|
16114
16114
|
onClick: handleSubmit
|
|
16115
16115
|
}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
16116
|
-
"data-
|
|
16116
|
+
"data-testid": "neeto-editor-bubble-menu-table-option-close-button",
|
|
16117
16117
|
icon: Close,
|
|
16118
16118
|
size: "small",
|
|
16119
16119
|
style: "secondary",
|
|
@@ -16352,7 +16352,7 @@ var renderOptionButton = function renderOptionButton(_ref4) {
|
|
|
16352
16352
|
highlight = _ref4.highlight;
|
|
16353
16353
|
return /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread$a({
|
|
16354
16354
|
className: "neeto-editor-bubble-menu__item",
|
|
16355
|
-
"data-
|
|
16355
|
+
"data-testid": "neeto-editor-bubble-menu-".concat(optionName, "-option"),
|
|
16356
16356
|
icon: Icon,
|
|
16357
16357
|
size: "medium",
|
|
16358
16358
|
style: active ? "secondary" : "text",
|
|
@@ -16377,7 +16377,7 @@ var Mentions = function Mentions(_ref) {
|
|
|
16377
16377
|
if (ramda.isEmpty(mentions)) return null;
|
|
16378
16378
|
return /*#__PURE__*/jsxRuntime.jsx(Dropdown$1, {
|
|
16379
16379
|
buttonStyle: "text",
|
|
16380
|
-
"data-
|
|
16380
|
+
"data-testid": "neeto-editor-mention-option",
|
|
16381
16381
|
icon: Email,
|
|
16382
16382
|
position: isSecondaryMenu ? "left-start" : "bottom-start",
|
|
16383
16383
|
strategy: "fixed",
|
|
@@ -16401,7 +16401,7 @@ var Mentions = function Mentions(_ref) {
|
|
|
16401
16401
|
name = _ref2.name,
|
|
16402
16402
|
imageUrl = _ref2.imageUrl;
|
|
16403
16403
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$2.Button, {
|
|
16404
|
-
"data-
|
|
16404
|
+
"data-testid": "neeto-editor-mention-option-".concat(key),
|
|
16405
16405
|
onClick: function onClick() {
|
|
16406
16406
|
return editor.commands.setMention({
|
|
16407
16407
|
id: key,
|
|
@@ -16607,7 +16607,7 @@ var Options = function Options(_ref) {
|
|
|
16607
16607
|
label: /*#__PURE__*/jsxRuntime.jsx(Down, {
|
|
16608
16608
|
size: 12
|
|
16609
16609
|
}),
|
|
16610
|
-
"data-
|
|
16610
|
+
"data-testid": "neeto-editor-fixed-menu-font-size-option",
|
|
16611
16611
|
style: "text",
|
|
16612
16612
|
size: "small",
|
|
16613
16613
|
className: "neeto-editor-bubble-menu__item neeto-editor-font-size__wrapper"
|
|
@@ -16752,7 +16752,7 @@ var Progress = reactUtils.withT(function (_ref) {
|
|
|
16752
16752
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
16753
16753
|
className: "ne-media-uploader__media__cancel-button-wrapper",
|
|
16754
16754
|
children: /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
16755
|
-
"data-
|
|
16755
|
+
"data-testid": "neeto-editor-image-upload-cancel-button",
|
|
16756
16756
|
icon: Close,
|
|
16757
16757
|
iconSize: 18,
|
|
16758
16758
|
size: "small",
|
|
@@ -16869,7 +16869,7 @@ var LocalUploader = function LocalUploader(_ref) {
|
|
|
16869
16869
|
queuedFiles: queuedFiles
|
|
16870
16870
|
}) : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
16871
16871
|
className: "ne-media-uploader__dnd",
|
|
16872
|
-
"data-
|
|
16872
|
+
"data-testid": "neeto-editor-media-uploader-dnd",
|
|
16873
16873
|
ref: dropTargetRef,
|
|
16874
16874
|
tabIndex: 0,
|
|
16875
16875
|
onClick: function onClick() {
|
|
@@ -16879,7 +16879,7 @@ var LocalUploader = function LocalUploader(_ref) {
|
|
|
16879
16879
|
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
16880
16880
|
multiple: true,
|
|
16881
16881
|
className: "ne-media-uploader__dnd-input",
|
|
16882
|
-
"data-
|
|
16882
|
+
"data-testid": "neeto-editor-media-uploader-input",
|
|
16883
16883
|
ref: fileInputRef,
|
|
16884
16884
|
type: "file",
|
|
16885
16885
|
accept: isImage ? FileIcon.ALLOWED_IMAGE_TYPES.join(",") : FileIcon.ALLOWED_VIDEO_TYPES.join(","),
|
|
@@ -16932,7 +16932,7 @@ var VideoEmbedForm = function VideoEmbedForm(_ref) {
|
|
|
16932
16932
|
children: /*#__PURE__*/jsxRuntime.jsx(Input$1, {
|
|
16933
16933
|
autoFocus: true,
|
|
16934
16934
|
unlimitedChars: true,
|
|
16935
|
-
"data-
|
|
16935
|
+
"data-testid": "neeto-editor-video-embed-input",
|
|
16936
16936
|
label: t("neetoEditor.common.videoUrl"),
|
|
16937
16937
|
name: "url",
|
|
16938
16938
|
placeholder: t("neetoEditor.placeholders.embedUrl"),
|
|
@@ -16941,7 +16941,7 @@ var VideoEmbedForm = function VideoEmbedForm(_ref) {
|
|
|
16941
16941
|
})
|
|
16942
16942
|
}), /*#__PURE__*/jsxRuntime.jsx(ActionBlock, {
|
|
16943
16943
|
cancelButtonProps: {
|
|
16944
|
-
"data-
|
|
16944
|
+
"data-testid": "neeto-editor-video-embed-cancel",
|
|
16945
16945
|
label: t("neetoEditor.common.cancel"),
|
|
16946
16946
|
size: "small",
|
|
16947
16947
|
onClick: function onClick() {
|
|
@@ -16950,7 +16950,7 @@ var VideoEmbedForm = function VideoEmbedForm(_ref) {
|
|
|
16950
16950
|
}
|
|
16951
16951
|
},
|
|
16952
16952
|
submitButtonProps: {
|
|
16953
|
-
"data-
|
|
16953
|
+
"data-testid": "neeto-editor-video-embed-submit",
|
|
16954
16954
|
disabled: !dirty,
|
|
16955
16955
|
label: t("neetoEditor.common.saveChanges"),
|
|
16956
16956
|
loading: isSubmitting,
|
|
@@ -17076,7 +17076,7 @@ var MediaUploader = function MediaUploader(_ref) {
|
|
|
17076
17076
|
title = _ref4.title;
|
|
17077
17077
|
return /*#__PURE__*/jsxRuntime.jsx(Tab.Item, {
|
|
17078
17078
|
active: activeTab === key,
|
|
17079
|
-
"data-
|
|
17079
|
+
"data-testid": "neeto-editor-media-uploader-".concat(key, "-tab"),
|
|
17080
17080
|
onClick: function onClick() {
|
|
17081
17081
|
return setActiveTab(key);
|
|
17082
17082
|
},
|
|
@@ -17223,7 +17223,7 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17223
17223
|
children: [/*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
17224
17224
|
required: true,
|
|
17225
17225
|
autoFocus: !isLinkTextPresent,
|
|
17226
|
-
"data-
|
|
17226
|
+
"data-testid": "neeto-editor-add-link-text-input",
|
|
17227
17227
|
label: t("neetoEditor.common.text"),
|
|
17228
17228
|
placeholder: t("neetoEditor.placeholders.enterText"),
|
|
17229
17229
|
size: "small",
|
|
@@ -17241,7 +17241,7 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17241
17241
|
required: true,
|
|
17242
17242
|
autoFocus: isLinkTextPresent,
|
|
17243
17243
|
className: "ne-link-popover__url-input",
|
|
17244
|
-
"data-
|
|
17244
|
+
"data-testid": "neeto-editor-add-link-url-input",
|
|
17245
17245
|
label: t("neetoEditor.common.url"),
|
|
17246
17246
|
placeholder: t("neetoEditor.placeholders.url"),
|
|
17247
17247
|
size: "small",
|
|
@@ -17260,7 +17260,7 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17260
17260
|
}), /*#__PURE__*/jsxRuntime.jsx(Checkbox, {
|
|
17261
17261
|
checked: openInNewTab,
|
|
17262
17262
|
className: "ne-link-popover__checkbox",
|
|
17263
|
-
"data-
|
|
17263
|
+
"data-testid": "neeto-editor-add-link-open-in-new-tab-switch",
|
|
17264
17264
|
label: t("neetoEditor.common.openInNewTab"),
|
|
17265
17265
|
onChange: function onChange() {
|
|
17266
17266
|
return setOpenInNewTab(ramda.not);
|
|
@@ -17268,13 +17268,13 @@ var LinkAddPopOver = function LinkAddPopOver(_ref) {
|
|
|
17268
17268
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
17269
17269
|
className: "ne-link-popover__edit-prompt-buttons",
|
|
17270
17270
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
17271
|
-
"data-
|
|
17271
|
+
"data-testid": "neeto-editor-add-link",
|
|
17272
17272
|
disabled: isSubmitDisabled,
|
|
17273
17273
|
label: t("neetoEditor.common.done"),
|
|
17274
17274
|
size: "small",
|
|
17275
17275
|
onClick: handleAddLink
|
|
17276
17276
|
}), /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
17277
|
-
"data-
|
|
17277
|
+
"data-testid": "neeto-editor-link-popover-cancel",
|
|
17278
17278
|
label: t("neetoEditor.common.cancel"),
|
|
17279
17279
|
size: "small",
|
|
17280
17280
|
style: "text",
|
|
@@ -17309,7 +17309,7 @@ var MoreMenu = function MoreMenu(_ref) {
|
|
|
17309
17309
|
if (type === MENU_ELEMENT_TYPES.BUTTON) {
|
|
17310
17310
|
var Icon = props.icon;
|
|
17311
17311
|
return /*#__PURE__*/jsxRuntime.jsxs(MenuItem$1.Button, _objectSpread$9(_objectSpread$9({
|
|
17312
|
-
"data-
|
|
17312
|
+
"data-testid": "neeto-editor-fixed-menu-".concat(props.optionName, "-option"),
|
|
17313
17313
|
isActive: editor.isActive(props.optionName),
|
|
17314
17314
|
tabIndex: "-1",
|
|
17315
17315
|
onClick: props.command
|
|
@@ -17425,7 +17425,7 @@ var MenuDynamicVariables = function MenuDynamicVariables(_ref) {
|
|
|
17425
17425
|
}).run();
|
|
17426
17426
|
};
|
|
17427
17427
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
17428
|
-
"data-
|
|
17428
|
+
"data-testid": "neeto-editor-fixed-menu-variables",
|
|
17429
17429
|
className: classnames("neeto-editor-fixed-menu__variables", {
|
|
17430
17430
|
"neeto-editor-fixed-menu__variables--standalone": standalone
|
|
17431
17431
|
}),
|
|
@@ -17574,7 +17574,7 @@ var Fixed = function Fixed(_ref) {
|
|
|
17574
17574
|
}, className, className)),
|
|
17575
17575
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
17576
17576
|
className: "neeto-editor-fixed-menu__wrapper",
|
|
17577
|
-
"data-
|
|
17577
|
+
"data-testid": "neeto-editor-fixed-menu-wrapper",
|
|
17578
17578
|
ref: menuRef,
|
|
17579
17579
|
children: [menuItems.map(function (group) {
|
|
17580
17580
|
return group.map(function (_ref2) {
|
|
@@ -17743,7 +17743,7 @@ var Emoji = function Emoji(_ref) {
|
|
|
17743
17743
|
delay: [500],
|
|
17744
17744
|
position: "bottom"
|
|
17745
17745
|
},
|
|
17746
|
-
"data-
|
|
17746
|
+
"data-testid": "ne-emoji-picker"
|
|
17747
17747
|
},
|
|
17748
17748
|
onClick: function onClick() {
|
|
17749
17749
|
return setActive(function (active) {
|
|
@@ -17782,7 +17782,7 @@ var Option = function Option(_ref) {
|
|
|
17782
17782
|
className: classnames({
|
|
17783
17783
|
"ne-headless-btn--active": isActive
|
|
17784
17784
|
}),
|
|
17785
|
-
"data-
|
|
17785
|
+
"data-testid": neetoCist.hyphenate(optionName),
|
|
17786
17786
|
icon: Icon,
|
|
17787
17787
|
tooltipProps: {
|
|
17788
17788
|
content: tooltip,
|
|
@@ -18120,7 +18120,7 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18120
18120
|
size: 12
|
|
18121
18121
|
}),
|
|
18122
18122
|
ref: dropdownRef,
|
|
18123
|
-
"data-
|
|
18123
|
+
"data-testid": "neeto-editor-fixed-menu-font-size-option",
|
|
18124
18124
|
onKeyDown: function onKeyDown(event) {
|
|
18125
18125
|
var _dropdownRef$current;
|
|
18126
18126
|
return event.key === "ArrowDown" && ((_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.click());
|
|
@@ -18142,7 +18142,7 @@ var FontSizeOption = function FontSizeOption(_ref) {
|
|
|
18142
18142
|
key = _ref2.key;
|
|
18143
18143
|
return /*#__PURE__*/jsxRuntime.jsx(MenuItem.Button, {
|
|
18144
18144
|
className: "neeto-editor-menu-font-size-options__item-btn",
|
|
18145
|
-
"data-
|
|
18145
|
+
"data-testid": "neeto-editor-fixed-menu-font-size-option-".concat(key),
|
|
18146
18146
|
tooltipProps: {
|
|
18147
18147
|
content: label,
|
|
18148
18148
|
position: "bottom"
|
|
@@ -18182,7 +18182,7 @@ var ColorDot = function ColorDot(_ref) {
|
|
|
18182
18182
|
onClick: onClick,
|
|
18183
18183
|
className: dotClass,
|
|
18184
18184
|
style: dotStyle,
|
|
18185
|
-
"data-
|
|
18185
|
+
"data-testid": "neeto-editor-highlight-".concat(utils$1.hyphenize(isTextColor ? "text" : "background"), "-color-dot-").concat(colorNumber),
|
|
18186
18186
|
children: isTextColor && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
18187
18187
|
className: "neeto-editor-highlight-dropdown__color-dot-text",
|
|
18188
18188
|
style: "body2",
|
|
@@ -18289,7 +18289,7 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18289
18289
|
size: 12
|
|
18290
18290
|
}),
|
|
18291
18291
|
ref: dropdownRef,
|
|
18292
|
-
"data-
|
|
18292
|
+
"data-testid": "neeto-editor-fixed-menu-highlight-option",
|
|
18293
18293
|
onKeyDown: function onKeyDown(event) {
|
|
18294
18294
|
var _dropdownRef$current;
|
|
18295
18295
|
return event.key === "ArrowDown" && ((_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.click());
|
|
@@ -18317,7 +18317,7 @@ var HighlightDropdown = function HighlightDropdown(_ref) {
|
|
|
18317
18317
|
children: title
|
|
18318
18318
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
18319
18319
|
className: "neeto-editor-highlight-dropdown__color-grid",
|
|
18320
|
-
"data-
|
|
18320
|
+
"data-testid": "neeto-editor-highlight-".concat(utils$1.hyphenize(title), "-grid"),
|
|
18321
18321
|
children: renderColorDots(colors, isTextColor)
|
|
18322
18322
|
})]
|
|
18323
18323
|
}, title);
|
|
@@ -18368,7 +18368,7 @@ var TableOption = function TableOption(_ref) {
|
|
|
18368
18368
|
isOpen: isOpen,
|
|
18369
18369
|
buttonStyle: isOpen ? "secondary" : "text",
|
|
18370
18370
|
closeOnSelect: false,
|
|
18371
|
-
"data-
|
|
18371
|
+
"data-testid": "neeto-editor-fixed-menu-link-option",
|
|
18372
18372
|
icon: Column,
|
|
18373
18373
|
position: isSecondaryMenu ? "left-start" : "bottom",
|
|
18374
18374
|
buttonProps: {
|
|
@@ -18378,7 +18378,7 @@ var TableOption = function TableOption(_ref) {
|
|
|
18378
18378
|
position: "bottom"
|
|
18379
18379
|
},
|
|
18380
18380
|
className: "neeto-editor-fixed-menu__item",
|
|
18381
|
-
"data-
|
|
18381
|
+
"data-testid": "neeto-editor-fixed-menu-table-option"
|
|
18382
18382
|
},
|
|
18383
18383
|
customTarget: isSecondaryMenu && /*#__PURE__*/jsxRuntime.jsx(SecondaryMenuTarget, {
|
|
18384
18384
|
label: label,
|
|
@@ -18390,7 +18390,7 @@ var TableOption = function TableOption(_ref) {
|
|
|
18390
18390
|
className: "neeto-editor-table__item",
|
|
18391
18391
|
children: [/*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
18392
18392
|
autoFocus: true,
|
|
18393
|
-
"data-
|
|
18393
|
+
"data-testid": "neeto-editor-fixed-menu-table-rows-input",
|
|
18394
18394
|
label: t("neetoEditor.menu.rows"),
|
|
18395
18395
|
min: "1",
|
|
18396
18396
|
placeholder: t("neetoEditor.placeholders.rows"),
|
|
@@ -18399,7 +18399,7 @@ var TableOption = function TableOption(_ref) {
|
|
|
18399
18399
|
value: rows,
|
|
18400
18400
|
onChange: utils$1.withEventTargetValue(setRows)
|
|
18401
18401
|
}), /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
18402
|
-
"data-
|
|
18402
|
+
"data-testid": "neeto-editor-fixed-menu-table-columns-input",
|
|
18403
18403
|
label: t("neetoEditor.menu.columns"),
|
|
18404
18404
|
min: "1",
|
|
18405
18405
|
placeholder: t("neetoEditor.placeholders.rows"),
|
|
@@ -18411,7 +18411,7 @@ var TableOption = function TableOption(_ref) {
|
|
|
18411
18411
|
className: "neeto-editor-table-menu__button",
|
|
18412
18412
|
children: /*#__PURE__*/jsxRuntime.jsx(Button$1, {
|
|
18413
18413
|
className: "mt-auto",
|
|
18414
|
-
"data-
|
|
18414
|
+
"data-testid": "neeto-editor-fixed-menu-table-option-create-button",
|
|
18415
18415
|
label: t("neetoEditor.common.create"),
|
|
18416
18416
|
size: "small",
|
|
18417
18417
|
onClick: handleSubmit
|
|
@@ -18982,4 +18982,4 @@ exports.useEditor = useEditor;
|
|
|
18982
18982
|
exports.useEditorState = useEditorState$1;
|
|
18983
18983
|
exports.validateUrl = validateUrl;
|
|
18984
18984
|
exports.wrappingInputRule = wrappingInputRule;
|
|
18985
|
-
//# sourceMappingURL=chunk-
|
|
18985
|
+
//# sourceMappingURL=chunk-CX8UXLae.cjs.js.map
|