@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
package/dist/FormikEditor.js
CHANGED
|
@@ -8,7 +8,7 @@ import Editor from './Editor.js';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
10
10
|
import '@babel/runtime/helpers/slicedToArray';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-xg8XBg3A.js';
|
|
12
12
|
import './chunk-DmrvuTKK.js';
|
|
13
13
|
import 'i18next';
|
|
14
14
|
import '@bigbinary/neeto-icons/TextH1';
|
|
@@ -87,6 +87,11 @@ import '@bigbinary/neetoui/Spinner';
|
|
|
87
87
|
import '@bigbinary/neetoui/Checkbox';
|
|
88
88
|
import '@bigbinary/neeto-icons/Checkbox';
|
|
89
89
|
import '@bigbinary/neeto-icons/Flag';
|
|
90
|
+
import '@bigbinary/neeto-icons/misc/Info';
|
|
91
|
+
import '@bigbinary/neeto-icons/misc/Warning';
|
|
92
|
+
import '@bigbinary/neeto-icons/misc/Danger';
|
|
93
|
+
import '@bigbinary/neeto-icons/misc/Megaphone';
|
|
94
|
+
import '@bigbinary/neeto-icons/misc/Success';
|
|
90
95
|
import '@bigbinary/neeto-icons/MenuHorizontal';
|
|
91
96
|
import '@tippyjs/react';
|
|
92
97
|
import '@bigbinary/neeto-icons/File';
|
package/dist/FormikEditor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikEditor.js","sources":["../src/components/Editor/FormikEditor.jsx"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport { FastField } from \"formik\";\nimport { noop } from \"neetocist\";\nimport { path } from \"ramda\";\n\nimport Editor from \".\";\n\nconst FormikEditor = (\n {\n name,\n onChange = noop,\n shouldUpdate,\n attachments = [],\n mentions = [],\n variables = [],\n ...otherProps\n },\n ref\n) => {\n // Similar to the `shouldComponentUpdate` logic of FastField component.\n // https://github.com/jaredpalmer/formik/blob/main/packages/formik/src/FastField.tsx#L75-L93\n // Additionally calls the shouldUpdate function passed from the host application and compares to\n // the rest of the values.\n const internalShouldUpdate = (prevProps, nextProps) => {\n const prevFormikProps = prevProps.formik;\n const nextFormikProps = nextProps.formik;\n\n const pathParts = name.split(\".\");\n const prevError = path(pathParts, prevFormikProps.errors);\n const nextError = path(pathParts, nextFormikProps.errors);\n const prevTouched = path(pathParts, prevFormikProps.touched);\n const nextTouched = path(pathParts, nextFormikProps.touched);\n\n return (\n prevError !== nextError ||\n prevTouched !== nextTouched ||\n Object.keys(nextProps).length !== Object.keys(prevProps).length ||\n prevFormikProps.isSubmitting !== nextFormikProps.isSubmitting ||\n Boolean(shouldUpdate?.(prevProps, nextProps))\n );\n };\n\n return (\n <FastField\n {...{ attachments, mentions, name, variables }}\n shouldUpdate={internalShouldUpdate}\n >\n {({ field, form, meta }) => (\n <Editor\n {...{ attachments, mentions, name, ref, variables }}\n error={meta.touched ? meta.error : \"\"}\n initialValue={field.value}\n onBlur={() => {\n form.setFieldTouched(name, true);\n }}\n onChange={value => {\n form.setFieldValue(name, value);\n onChange?.(value);\n }}\n {...otherProps}\n />\n )}\n </FastField>\n );\n};\n\nFormikEditor.displayName = \"FormikNeetoEditor\";\n\nexport default memo(forwardRef(FormikEditor));\n"],"names":["FormikEditor","_ref","ref","name","_ref$onChange","onChange","noop","shouldUpdate","_ref$attachments","attachments","_ref$mentions","mentions","_ref$variables","variables","otherProps","_objectWithoutProperties","_excluded","internalShouldUpdate","prevProps","nextProps","prevFormikProps","formik","nextFormikProps","pathParts","split","prevError","path","errors","nextError","prevTouched","touched","nextTouched","Object","keys","length","isSubmitting","Boolean","_jsx","FastField","children","_ref2","field","form","meta","Editor","_objectSpread","error","initialValue","value","onBlur","setFieldTouched","setFieldValue","displayName","memo","forwardRef"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormikEditor.js","sources":["../src/components/Editor/FormikEditor.jsx"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport { FastField } from \"formik\";\nimport { noop } from \"neetocist\";\nimport { path } from \"ramda\";\n\nimport Editor from \".\";\n\nconst FormikEditor = (\n {\n name,\n onChange = noop,\n shouldUpdate,\n attachments = [],\n mentions = [],\n variables = [],\n ...otherProps\n },\n ref\n) => {\n // Similar to the `shouldComponentUpdate` logic of FastField component.\n // https://github.com/jaredpalmer/formik/blob/main/packages/formik/src/FastField.tsx#L75-L93\n // Additionally calls the shouldUpdate function passed from the host application and compares to\n // the rest of the values.\n const internalShouldUpdate = (prevProps, nextProps) => {\n const prevFormikProps = prevProps.formik;\n const nextFormikProps = nextProps.formik;\n\n const pathParts = name.split(\".\");\n const prevError = path(pathParts, prevFormikProps.errors);\n const nextError = path(pathParts, nextFormikProps.errors);\n const prevTouched = path(pathParts, prevFormikProps.touched);\n const nextTouched = path(pathParts, nextFormikProps.touched);\n\n return (\n prevError !== nextError ||\n prevTouched !== nextTouched ||\n Object.keys(nextProps).length !== Object.keys(prevProps).length ||\n prevFormikProps.isSubmitting !== nextFormikProps.isSubmitting ||\n Boolean(shouldUpdate?.(prevProps, nextProps))\n );\n };\n\n return (\n <FastField\n {...{ attachments, mentions, name, variables }}\n shouldUpdate={internalShouldUpdate}\n >\n {({ field, form, meta }) => (\n <Editor\n {...{ attachments, mentions, name, ref, variables }}\n error={meta.touched ? meta.error : \"\"}\n initialValue={field.value}\n onBlur={() => {\n form.setFieldTouched(name, true);\n }}\n onChange={value => {\n form.setFieldValue(name, value);\n onChange?.(value);\n }}\n {...otherProps}\n />\n )}\n </FastField>\n );\n};\n\nFormikEditor.displayName = \"FormikNeetoEditor\";\n\nexport default memo(forwardRef(FormikEditor));\n"],"names":["FormikEditor","_ref","ref","name","_ref$onChange","onChange","noop","shouldUpdate","_ref$attachments","attachments","_ref$mentions","mentions","_ref$variables","variables","otherProps","_objectWithoutProperties","_excluded","internalShouldUpdate","prevProps","nextProps","prevFormikProps","formik","nextFormikProps","pathParts","split","prevError","path","errors","nextError","prevTouched","touched","nextTouched","Object","keys","length","isSubmitting","Boolean","_jsx","FastField","children","_ref2","field","form","meta","Editor","_objectSpread","error","initialValue","value","onBlur","setFieldTouched","setFieldValue","displ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GAAG;AAAEW,QAAAA,SAAS,EAATA,SAAS;QACjDiC,KAAK,EAAEH,IAAI,CAACb,OAAO,GAAGa,IAAI,CAACG,KAAK,GAAG,EAAG;QACtCC,YAAY,EAAEN,KAAK,CAACO,KAAM;QAC1BC,MAAM,EAAE,SAAAA,MAAAA,GAAM;AACZP,UAAAA,IAAI,CAACQ,eAAe,CAAC/C,IAAI,EAAE,IAAI,CAAC,CAAA;SAChC;AACFE,QAAAA,QAAQ,EAAE,SAAAA,QAAA2C,CAAAA,KAAK,EAAI;AACjBN,UAAAA,IAAI,CAACS,aAAa,CAAChD,IAAI,EAAE6C,KAAK,CAAC,CAAA;AAC/B3C,UAAAA,SAAQ,aAARA,SAAQ,KAAA,KAAA,CAAA,IAARA,SAAQ,CAAG2C,KAAK,CAAC,CAAA;AACnB,SAAA;OACIlC,EAAAA,UAAU,CACf,CAAC,CAAA;AAAA,KAAA;AACH,GACQ,CAAC,CAAA;AAEhB,CAAC,CAAA;AAEDd,YAAY,CAACoD,WAAW,GAAG,mBAAmB,CAAA;AAE9C,qBAAA,aAAeC,IAAI,eAACC,UAAU,CAACtD,YAAY,CAAC,CAAC;;;;"}
|
package/dist/Menu.js
CHANGED
|
@@ -3,7 +3,7 @@ import '@babel/runtime/helpers/toConsumableArray';
|
|
|
3
3
|
import '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'ramda';
|
|
6
|
-
export { M as default } from './chunk-
|
|
6
|
+
export { M as default } from './chunk-xg8XBg3A.js';
|
|
7
7
|
import './chunk-BegQDClu.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './chunk-DmrvuTKK.js';
|
|
@@ -84,6 +84,11 @@ import '@bigbinary/neetoui/Spinner';
|
|
|
84
84
|
import '@bigbinary/neetoui/Checkbox';
|
|
85
85
|
import '@bigbinary/neeto-icons/Checkbox';
|
|
86
86
|
import '@bigbinary/neeto-icons/Flag';
|
|
87
|
+
import '@bigbinary/neeto-icons/misc/Info';
|
|
88
|
+
import '@bigbinary/neeto-icons/misc/Warning';
|
|
89
|
+
import '@bigbinary/neeto-icons/misc/Danger';
|
|
90
|
+
import '@bigbinary/neeto-icons/misc/Megaphone';
|
|
91
|
+
import '@bigbinary/neeto-icons/misc/Success';
|
|
87
92
|
import '@bigbinary/neeto-icons/MenuHorizontal';
|
|
88
93
|
import '@tippyjs/react';
|
|
89
94
|
import '@bigbinary/neeto-icons/File';
|
package/dist/Menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -76,6 +76,11 @@ import Checkbox$1 from '@bigbinary/neeto-icons/Checkbox';
|
|
|
76
76
|
import { shallow } from 'zustand/shallow';
|
|
77
77
|
import { create } from 'zustand';
|
|
78
78
|
import Flag from '@bigbinary/neeto-icons/Flag';
|
|
79
|
+
import Info from '@bigbinary/neeto-icons/misc/Info';
|
|
80
|
+
import Warning from '@bigbinary/neeto-icons/misc/Warning';
|
|
81
|
+
import Danger from '@bigbinary/neeto-icons/misc/Danger';
|
|
82
|
+
import Megaphone from '@bigbinary/neeto-icons/misc/Megaphone';
|
|
83
|
+
import Success from '@bigbinary/neeto-icons/misc/Success';
|
|
79
84
|
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
80
85
|
import Tippy from '@tippyjs/react';
|
|
81
86
|
import File$1 from '@bigbinary/neeto-icons/File';
|
|
@@ -15694,6 +15699,33 @@ var EmbedOption = function EmbedOption(_ref) {
|
|
|
15694
15699
|
});
|
|
15695
15700
|
};
|
|
15696
15701
|
|
|
15702
|
+
var CALLOUT_TYPES = [{
|
|
15703
|
+
type: "default",
|
|
15704
|
+
label: t$1("neetoEditor.menu.calloutDefault"),
|
|
15705
|
+
icon: Megaphone,
|
|
15706
|
+
bgColor: "--neeto-editor-gray-100"
|
|
15707
|
+
}, {
|
|
15708
|
+
type: "info",
|
|
15709
|
+
label: t$1("neetoEditor.menu.calloutInfo"),
|
|
15710
|
+
icon: Info,
|
|
15711
|
+
bgColor: "--neeto-editor-info-100"
|
|
15712
|
+
}, {
|
|
15713
|
+
type: "warning",
|
|
15714
|
+
label: t$1("neetoEditor.menu.calloutWarning"),
|
|
15715
|
+
icon: Warning,
|
|
15716
|
+
bgColor: "--neeto-editor-warning-100"
|
|
15717
|
+
}, {
|
|
15718
|
+
type: "error",
|
|
15719
|
+
label: t$1("neetoEditor.menu.calloutError"),
|
|
15720
|
+
icon: Danger,
|
|
15721
|
+
bgColor: "--neeto-editor-error-100"
|
|
15722
|
+
}, {
|
|
15723
|
+
type: "success",
|
|
15724
|
+
label: t$1("neetoEditor.menu.calloutSuccess"),
|
|
15725
|
+
icon: Success,
|
|
15726
|
+
bgColor: "--neeto-editor-success-100"
|
|
15727
|
+
}];
|
|
15728
|
+
|
|
15697
15729
|
var fetch = function fetch() {
|
|
15698
15730
|
return axios.get("https://cdn.jsdelivr.net/npm/@emoji-mart/data");
|
|
15699
15731
|
};
|
|
@@ -15850,10 +15882,13 @@ var MenuButton$1 = /*#__PURE__*/memo(MenuButton);
|
|
|
15850
15882
|
|
|
15851
15883
|
var CalloutIcon = function CalloutIcon(_ref) {
|
|
15852
15884
|
var currentType = _ref.currentType;
|
|
15853
|
-
if (currentType !== null && currentType !== void 0 && currentType.
|
|
15885
|
+
if (currentType !== null && currentType !== void 0 && currentType.icon) {
|
|
15886
|
+
var Icon = currentType.icon;
|
|
15854
15887
|
return /*#__PURE__*/jsx("span", {
|
|
15855
15888
|
className: "neeto-editor-callout-dropdown__current-emoji",
|
|
15856
|
-
children:
|
|
15889
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
15890
|
+
size: 22
|
|
15891
|
+
})
|
|
15857
15892
|
});
|
|
15858
15893
|
}
|
|
15859
15894
|
return /*#__PURE__*/jsx(Flag, {
|
|
@@ -15861,33 +15896,6 @@ var CalloutIcon = function CalloutIcon(_ref) {
|
|
|
15861
15896
|
});
|
|
15862
15897
|
};
|
|
15863
15898
|
|
|
15864
|
-
var CALLOUT_TYPES = [{
|
|
15865
|
-
type: "default",
|
|
15866
|
-
label: t$1("neetoEditor.menu.calloutDefault"),
|
|
15867
|
-
emoji: "💬",
|
|
15868
|
-
bgColor: "--neeto-editor-gray-100"
|
|
15869
|
-
}, {
|
|
15870
|
-
type: "info",
|
|
15871
|
-
label: t$1("neetoEditor.menu.calloutInfo"),
|
|
15872
|
-
emoji: "ℹ️",
|
|
15873
|
-
bgColor: "--neeto-editor-info-100"
|
|
15874
|
-
}, {
|
|
15875
|
-
type: "warning",
|
|
15876
|
-
label: t$1("neetoEditor.menu.calloutWarning"),
|
|
15877
|
-
emoji: "⚠️",
|
|
15878
|
-
bgColor: "--neeto-editor-warning-100"
|
|
15879
|
-
}, {
|
|
15880
|
-
type: "error",
|
|
15881
|
-
label: t$1("neetoEditor.menu.calloutError"),
|
|
15882
|
-
emoji: "❌",
|
|
15883
|
-
bgColor: "--neeto-editor-error-100"
|
|
15884
|
-
}, {
|
|
15885
|
-
type: "success",
|
|
15886
|
-
label: t$1("neetoEditor.menu.calloutSuccess"),
|
|
15887
|
-
emoji: "✅",
|
|
15888
|
-
bgColor: "--neeto-editor-success-100"
|
|
15889
|
-
}];
|
|
15890
|
-
|
|
15891
15899
|
var CalloutTypeOption = function CalloutTypeOption(_ref) {
|
|
15892
15900
|
var calloutType = _ref.calloutType,
|
|
15893
15901
|
isSelected = _ref.isSelected,
|
|
@@ -15895,12 +15903,13 @@ var CalloutTypeOption = function CalloutTypeOption(_ref) {
|
|
|
15895
15903
|
var optionClass = classnames("neeto-editor-callout-dropdown__type-option", {
|
|
15896
15904
|
"neeto-editor-callout-dropdown__type-option--selected": isSelected
|
|
15897
15905
|
});
|
|
15906
|
+
var Icon = calloutType.icon;
|
|
15898
15907
|
return /*#__PURE__*/jsxs("div", {
|
|
15899
15908
|
onClick: onClick,
|
|
15900
15909
|
className: optionClass,
|
|
15901
15910
|
children: [/*#__PURE__*/jsx("span", {
|
|
15902
15911
|
className: "neeto-editor-callout-dropdown__type-emoji",
|
|
15903
|
-
children:
|
|
15912
|
+
children: /*#__PURE__*/jsx(Icon, {})
|
|
15904
15913
|
}), /*#__PURE__*/jsx(Typography, {
|
|
15905
15914
|
className: "neeto-editor-callout-dropdown__type-label",
|
|
15906
15915
|
style: "body2",
|
|
@@ -19890,5 +19899,5 @@ var Menu = function Menu(props) {
|
|
|
19890
19899
|
}));
|
|
19891
19900
|
};
|
|
19892
19901
|
|
|
19893
|
-
export { combineTransactionSteps as A, getChangedRanges as B,
|
|
19894
|
-
//# sourceMappingURL=chunk-
|
|
19902
|
+
export { combineTransactionSteps as A, getChangedRanges as B, CALLOUT_TYPES as C, DecorationSet as D, Extension as E, findChildrenInRange as F, getMarksBetween as G, getAttributes as H, InputRule as I, highlightFocussedNode as J, resetFocussedNode as K, findParentNodeClosestToPos as L, Menu as M, Node as N, BubbleMenu as O, PasteRule as P, getLinkPopoverPosition as Q, ReactNodeViewRenderer as R, getMarkType as S, getMarkRange as T, useEditor as U, useEditorState$1 as V, EditorContent as W, MediaUploader as X, EmbedOption as Y, LinkAddPopOver as Z, EditorView as _, Mark as a, markInputRule as b, markPasteRule as c, Decoration as d, isAtStartOfNode as e, isAtEndOfNode as f, getMarkAttributes as g, getNodeType as h, isNodeActive as i, getNodeAtPosition as j, keydownHandler as k, callOrReturn as l, mergeAttributes as m, getExtensionField as n, isNodeSelection as o, nodeInputRule as p, NodeViewWrapper as q, NodeViewContent as r, findChildren as s, textblockTypeInputRule as t, escapeForRegEx as u, validateUrl as v, wrappingInputRule as w, ReactRenderer as x, EmojiPickerMenu as y, emojiPickerApi as z };
|
|
19903
|
+
//# sourceMappingURL=chunk-xg8XBg3A.js.map
|