@bigbinary/neeto-editor 1.47.14 → 1.47.16
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 +41 -56
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +6 -1
- package/dist/FormikEditor.js.map +1 -1
- package/dist/Menu.js +6 -1
- package/dist/Menu.js.map +1 -1
- package/dist/{chunk-DmstYxyh.js → chunk-xg8XBg3A.js} +41 -32
- package/dist/{chunk-DmstYxyh.js.map → chunk-xg8XBg3A.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +43 -58
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/EditorContent.cjs.js +1 -1
- package/dist/cjs/FormikEditor.cjs.js +6 -1
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/Menu.cjs.js +6 -1
- package/dist/cjs/Menu.cjs.js.map +1 -1
- package/dist/cjs/{chunk-CWE188ZD.cjs.js → chunk-D4o7xzO7.cjs.js} +3 -3
- package/dist/cjs/{chunk-CWE188ZD.cjs.js.map → chunk-D4o7xzO7.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-26e51eTo.cjs.js → chunk-DPEzpgdq.cjs.js} +41 -31
- package/dist/cjs/{chunk-26e51eTo.cjs.js.map → chunk-DPEzpgdq.cjs.js.map} +1 -1
- package/dist/cjs/index.cjs.js +7 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/utils.cjs.js +1 -1
- package/dist/{codeBlockHighlight.js → codeblockHighlight.js} +1 -1
- package/dist/{codeBlockHighlight.js.map → codeblockHighlight.js.map} +1 -1
- package/dist/editor-content.min.css +1 -0
- package/dist/editor-output.js +2 -0
- package/dist/editor-output.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -78,6 +78,11 @@ var Checkbox$1 = require('@bigbinary/neeto-icons/Checkbox');
|
|
|
78
78
|
var shallow = require('zustand/shallow');
|
|
79
79
|
var zustand = require('zustand');
|
|
80
80
|
var Flag = require('@bigbinary/neeto-icons/Flag');
|
|
81
|
+
var Info = require('@bigbinary/neeto-icons/misc/Info');
|
|
82
|
+
var Warning = require('@bigbinary/neeto-icons/misc/Warning');
|
|
83
|
+
var Danger = require('@bigbinary/neeto-icons/misc/Danger');
|
|
84
|
+
var Megaphone = require('@bigbinary/neeto-icons/misc/Megaphone');
|
|
85
|
+
var Success = require('@bigbinary/neeto-icons/misc/Success');
|
|
81
86
|
var MenuHorizontal = require('@bigbinary/neeto-icons/MenuHorizontal');
|
|
82
87
|
var Tippy = require('@tippyjs/react');
|
|
83
88
|
var File = require('@bigbinary/neeto-icons/File');
|
|
@@ -15696,6 +15701,33 @@ var EmbedOption = function EmbedOption(_ref) {
|
|
|
15696
15701
|
});
|
|
15697
15702
|
};
|
|
15698
15703
|
|
|
15704
|
+
var CALLOUT_TYPES = [{
|
|
15705
|
+
type: "default",
|
|
15706
|
+
label: i18n.t("neetoEditor.menu.calloutDefault"),
|
|
15707
|
+
icon: Megaphone,
|
|
15708
|
+
bgColor: "--neeto-editor-gray-100"
|
|
15709
|
+
}, {
|
|
15710
|
+
type: "info",
|
|
15711
|
+
label: i18n.t("neetoEditor.menu.calloutInfo"),
|
|
15712
|
+
icon: Info,
|
|
15713
|
+
bgColor: "--neeto-editor-info-100"
|
|
15714
|
+
}, {
|
|
15715
|
+
type: "warning",
|
|
15716
|
+
label: i18n.t("neetoEditor.menu.calloutWarning"),
|
|
15717
|
+
icon: Warning,
|
|
15718
|
+
bgColor: "--neeto-editor-warning-100"
|
|
15719
|
+
}, {
|
|
15720
|
+
type: "error",
|
|
15721
|
+
label: i18n.t("neetoEditor.menu.calloutError"),
|
|
15722
|
+
icon: Danger,
|
|
15723
|
+
bgColor: "--neeto-editor-error-100"
|
|
15724
|
+
}, {
|
|
15725
|
+
type: "success",
|
|
15726
|
+
label: i18n.t("neetoEditor.menu.calloutSuccess"),
|
|
15727
|
+
icon: Success,
|
|
15728
|
+
bgColor: "--neeto-editor-success-100"
|
|
15729
|
+
}];
|
|
15730
|
+
|
|
15699
15731
|
var fetch = function fetch() {
|
|
15700
15732
|
return axios.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");
|
|
15701
15733
|
};
|
|
@@ -15852,10 +15884,13 @@ var MenuButton$1 = /*#__PURE__*/React.memo(MenuButton);
|
|
|
15852
15884
|
|
|
15853
15885
|
var CalloutIcon = function CalloutIcon(_ref) {
|
|
15854
15886
|
var currentType = _ref.currentType;
|
|
15855
|
-
if (currentType !== null && currentType !== void 0 && currentType.
|
|
15887
|
+
if (currentType !== null && currentType !== void 0 && currentType.icon) {
|
|
15888
|
+
var Icon = currentType.icon;
|
|
15856
15889
|
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
15857
15890
|
className: "neeto-editor-callout-dropdown__current-emoji",
|
|
15858
|
-
children:
|
|
15891
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
15892
|
+
size: 22
|
|
15893
|
+
})
|
|
15859
15894
|
});
|
|
15860
15895
|
}
|
|
15861
15896
|
return /*#__PURE__*/jsxRuntime.jsx(Flag, {
|
|
@@ -15863,33 +15898,6 @@ var CalloutIcon = function CalloutIcon(_ref) {
|
|
|
15863
15898
|
});
|
|
15864
15899
|
};
|
|
15865
15900
|
|
|
15866
|
-
var CALLOUT_TYPES = [{
|
|
15867
|
-
type: "default",
|
|
15868
|
-
label: i18n.t("neetoEditor.menu.calloutDefault"),
|
|
15869
|
-
emoji: "💬",
|
|
15870
|
-
bgColor: "--neeto-editor-gray-100"
|
|
15871
|
-
}, {
|
|
15872
|
-
type: "info",
|
|
15873
|
-
label: i18n.t("neetoEditor.menu.calloutInfo"),
|
|
15874
|
-
emoji: "ℹ️",
|
|
15875
|
-
bgColor: "--neeto-editor-info-100"
|
|
15876
|
-
}, {
|
|
15877
|
-
type: "warning",
|
|
15878
|
-
label: i18n.t("neetoEditor.menu.calloutWarning"),
|
|
15879
|
-
emoji: "⚠️",
|
|
15880
|
-
bgColor: "--neeto-editor-warning-100"
|
|
15881
|
-
}, {
|
|
15882
|
-
type: "error",
|
|
15883
|
-
label: i18n.t("neetoEditor.menu.calloutError"),
|
|
15884
|
-
emoji: "❌",
|
|
15885
|
-
bgColor: "--neeto-editor-error-100"
|
|
15886
|
-
}, {
|
|
15887
|
-
type: "success",
|
|
15888
|
-
label: i18n.t("neetoEditor.menu.calloutSuccess"),
|
|
15889
|
-
emoji: "✅",
|
|
15890
|
-
bgColor: "--neeto-editor-success-100"
|
|
15891
|
-
}];
|
|
15892
|
-
|
|
15893
15901
|
var CalloutTypeOption = function CalloutTypeOption(_ref) {
|
|
15894
15902
|
var calloutType = _ref.calloutType,
|
|
15895
15903
|
isSelected = _ref.isSelected,
|
|
@@ -15897,12 +15905,13 @@ var CalloutTypeOption = function CalloutTypeOption(_ref) {
|
|
|
15897
15905
|
var optionClass = classnames("neeto-editor-callout-dropdown__type-option", {
|
|
15898
15906
|
"neeto-editor-callout-dropdown__type-option--selected": isSelected
|
|
15899
15907
|
});
|
|
15908
|
+
var Icon = calloutType.icon;
|
|
15900
15909
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
15901
15910
|
onClick: onClick,
|
|
15902
15911
|
className: optionClass,
|
|
15903
15912
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
15904
15913
|
className: "neeto-editor-callout-dropdown__type-emoji",
|
|
15905
|
-
children:
|
|
15914
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {})
|
|
15906
15915
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
15907
15916
|
className: "neeto-editor-callout-dropdown__type-label",
|
|
15908
15917
|
style: "body2",
|
|
@@ -19893,6 +19902,7 @@ var Menu = function Menu(props) {
|
|
|
19893
19902
|
};
|
|
19894
19903
|
|
|
19895
19904
|
exports.BubbleMenu = BubbleMenu;
|
|
19905
|
+
exports.CALLOUT_TYPES = CALLOUT_TYPES;
|
|
19896
19906
|
exports.Decoration = Decoration;
|
|
19897
19907
|
exports.DecorationSet = DecorationSet;
|
|
19898
19908
|
exports.EditorContent = EditorContent;
|
|
@@ -19944,4 +19954,4 @@ exports.useEditor = useEditor;
|
|
|
19944
19954
|
exports.useEditorState = useEditorState$1;
|
|
19945
19955
|
exports.validateUrl = validateUrl;
|
|
19946
19956
|
exports.wrappingInputRule = wrappingInputRule;
|
|
19947
|
-
//# sourceMappingURL=chunk-
|
|
19957
|
+
//# sourceMappingURL=chunk-DPEzpgdq.cjs.js.map
|