@bigbinary/neeto-editor 1.41.0 → 1.42.0-beta1
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 +10968 -6179
- package/dist/Editor.js.map +1 -1
- package/dist/FormikEditor.js +3 -2
- package/dist/FormikEditor.js.map +1 -1
- package/dist/Menu.js +2 -2
- package/dist/{chunk-5a82ef66.js → chunk-53f86c77.js} +1154 -205
- package/dist/chunk-53f86c77.js.map +1 -0
- package/dist/{chunk-66821a1e.js → chunk-bdd72077.js} +3 -4
- package/dist/{chunk-66821a1e.js.map → chunk-bdd72077.js.map} +1 -1
- package/dist/cjs/Editor.cjs.js +10966 -6177
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/cjs/FormikEditor.cjs.js +3 -2
- package/dist/cjs/FormikEditor.cjs.js.map +1 -1
- package/dist/cjs/Menu.cjs.js +2 -2
- package/dist/cjs/{chunk-42becde2.cjs.js → chunk-b18ba907.cjs.js} +2 -4
- package/dist/cjs/{chunk-42becde2.cjs.js.map → chunk-b18ba907.cjs.js.map} +1 -1
- package/dist/cjs/{chunk-c2f54026.cjs.js → chunk-eee94a18.cjs.js} +1141 -192
- package/dist/cjs/chunk-eee94a18.cjs.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/utils.cjs.js +1 -1
- package/dist/editor-stats.html +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/utils.js +1 -1
- package/package.json +8 -2
- package/dist/chunk-5a82ef66.js.map +0 -1
- package/dist/cjs/chunk-c2f54026.cjs.js.map +0 -1
package/dist/FormikEditor.js
CHANGED
|
@@ -7,11 +7,11 @@ import Editor from './Editor.js';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
9
9
|
import '@babel/runtime/helpers/slicedToArray';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-53f86c77.js';
|
|
11
11
|
import 'ramda';
|
|
12
12
|
import './chunk-15c449f1.js';
|
|
13
13
|
import 'i18next';
|
|
14
|
-
import './chunk-
|
|
14
|
+
import './chunk-bdd72077.js';
|
|
15
15
|
import './chunk-edd8b9fe.js';
|
|
16
16
|
import 'yup';
|
|
17
17
|
import 'tippy.js';
|
|
@@ -80,6 +80,7 @@ import '@bigbinary/neetoui/Checkbox';
|
|
|
80
80
|
import '@bigbinary/neeto-icons/MenuHorizontal';
|
|
81
81
|
import '@tippyjs/react';
|
|
82
82
|
import '@bigbinary/neeto-icons/File';
|
|
83
|
+
import 'yjs';
|
|
83
84
|
import '@bigbinary/neeto-icons/Down';
|
|
84
85
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
85
86
|
import './chunk-ade4c9e3.js';
|
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\";\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 <FastField {...{ attachments, mentions, name, shouldUpdate, variables }}>\n {({ field, form, meta }) => (\n <Editor\n {...{ attachments, mentions, name, ref, variables }}\n error={meta.touched ? meta.error : \"\"}\n initialValue={field.value}\n onBlur={() => form.setFieldTouched(name, true)}\n onChange={value => {\n form.setFieldValue(name, value);\n onChange?.(value);\n }}\n {...otherProps}\n />\n )}\n </FastField>\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","_jsx","FastField","children","_ref2","field","form","meta","Editor","_objectSpread","error","touched","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\";\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 <FastField {...{ attachments, mentions, name, shouldUpdate, variables }}>\n {({ field, form, meta }) => (\n <Editor\n {...{ attachments, mentions, name, ref, variables }}\n error={meta.touched ? meta.error : \"\"}\n initialValue={field.value}\n onBlur={() => form.setFieldTouched(name, true)}\n onChange={value => {\n form.setFieldValue(name, value);\n onChange?.(value);\n }}\n {...otherProps}\n />\n )}\n </FastField>\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","_jsx","FastField","children","_ref2","field","form","meta","Editor","_objectSpread","error","touched","initialValue","value","onBlur","setFieldTouched","setFieldValue","displayName","memo","forwardRef"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAUhBC,GAAG,EAAA;AAAA,EAAA,IARDC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAAC,aAAA,GAAAH,IAAA,CACJI,QAAQ;AAARA,IAAAA,SAAQ,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EAAEP,KAAK,CAACQ,KAAM;QAC1BC,MAAM,EAAE,SAAAA,MAAA,GAAA;AAAA,UAAA,OAAMR,IAAI,CAACS,eAAe,CAAC5B,IAAI,EAAE,IAAI,CAAC,CAAA;SAAC;AAC/CE,QAAAA,QAAQ,EAAE,SAAAA,QAAAwB,CAAAA,KAAK,EAAI;AACjBP,UAAAA,IAAI,CAACU,aAAa,CAAC7B,IAAI,EAAE0B,KAAK,CAAC,CAAA;AAC/BxB,UAAAA,SAAQ,aAARA,SAAQ,KAAA,KAAA,CAAA,IAARA,SAAQ,CAAGwB,KAAK,CAAC,CAAA;AACnB,SAAA;OACIf,EAAAA,UAAU,CACf,CAAC,CAAA;AAAA,KAAA;AACH,GACQ,CAAC,CAAA;AAAA,CACb,CAAA;AAEDd,YAAY,CAACiC,WAAW,GAAG,mBAAmB,CAAA;AAE9C,qBAAA,aAAeC,IAAI,eAACC,UAAU,CAACnC,YAAY,CAAC,CAAC;;;;"}
|
package/dist/Menu.js
CHANGED
|
@@ -3,8 +3,8 @@ 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-
|
|
7
|
-
import './chunk-
|
|
6
|
+
export { M as default } from './chunk-53f86c77.js';
|
|
7
|
+
import './chunk-bdd72077.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
import './chunk-15c449f1.js';
|
|
10
10
|
import 'i18next';
|