@adminforth/rich-editor 1.0.17 → 1.0.18

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.
Files changed (1018) hide show
  1. package/ChangeLog.md +6 -0
  2. package/custom/node_modules/.package-lock.json +66 -0
  3. package/custom/node_modules/eventemitter3/LICENSE +21 -0
  4. package/custom/node_modules/eventemitter3/README.md +94 -0
  5. package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.js +347 -0
  6. package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
  7. package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
  8. package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.js +355 -0
  9. package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
  10. package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
  11. package/custom/node_modules/eventemitter3/index.d.ts +135 -0
  12. package/custom/node_modules/eventemitter3/index.js +336 -0
  13. package/custom/node_modules/eventemitter3/index.mjs +4 -0
  14. package/custom/node_modules/eventemitter3/package.json +67 -0
  15. package/custom/node_modules/fast-diff/LICENSE +201 -0
  16. package/custom/node_modules/fast-diff/README.md +24 -0
  17. package/custom/node_modules/fast-diff/diff.d.ts +21 -0
  18. package/custom/node_modules/fast-diff/diff.js +1138 -0
  19. package/custom/node_modules/fast-diff/package.json +30 -0
  20. package/custom/node_modules/lodash-es/LICENSE +47 -0
  21. package/custom/node_modules/lodash-es/README.md +10 -0
  22. package/custom/node_modules/lodash-es/_DataView.js +7 -0
  23. package/custom/node_modules/lodash-es/_Hash.js +32 -0
  24. package/custom/node_modules/lodash-es/_LazyWrapper.js +28 -0
  25. package/custom/node_modules/lodash-es/_ListCache.js +32 -0
  26. package/custom/node_modules/lodash-es/_LodashWrapper.js +22 -0
  27. package/custom/node_modules/lodash-es/_Map.js +7 -0
  28. package/custom/node_modules/lodash-es/_MapCache.js +32 -0
  29. package/custom/node_modules/lodash-es/_Promise.js +7 -0
  30. package/custom/node_modules/lodash-es/_Set.js +7 -0
  31. package/custom/node_modules/lodash-es/_SetCache.js +27 -0
  32. package/custom/node_modules/lodash-es/_Stack.js +27 -0
  33. package/custom/node_modules/lodash-es/_Symbol.js +6 -0
  34. package/custom/node_modules/lodash-es/_Uint8Array.js +6 -0
  35. package/custom/node_modules/lodash-es/_WeakMap.js +7 -0
  36. package/custom/node_modules/lodash-es/_addMapEntry.js +15 -0
  37. package/custom/node_modules/lodash-es/_addSetEntry.js +15 -0
  38. package/custom/node_modules/lodash-es/_apply.js +21 -0
  39. package/custom/node_modules/lodash-es/_arrayAggregator.js +22 -0
  40. package/custom/node_modules/lodash-es/_arrayEach.js +22 -0
  41. package/custom/node_modules/lodash-es/_arrayEachRight.js +21 -0
  42. package/custom/node_modules/lodash-es/_arrayEvery.js +23 -0
  43. package/custom/node_modules/lodash-es/_arrayFilter.js +25 -0
  44. package/custom/node_modules/lodash-es/_arrayIncludes.js +17 -0
  45. package/custom/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
  46. package/custom/node_modules/lodash-es/_arrayLikeKeys.js +49 -0
  47. package/custom/node_modules/lodash-es/_arrayMap.js +21 -0
  48. package/custom/node_modules/lodash-es/_arrayPush.js +20 -0
  49. package/custom/node_modules/lodash-es/_arrayReduce.js +26 -0
  50. package/custom/node_modules/lodash-es/_arrayReduceRight.js +24 -0
  51. package/custom/node_modules/lodash-es/_arraySample.js +15 -0
  52. package/custom/node_modules/lodash-es/_arraySampleSize.js +17 -0
  53. package/custom/node_modules/lodash-es/_arrayShuffle.js +15 -0
  54. package/custom/node_modules/lodash-es/_arraySome.js +23 -0
  55. package/custom/node_modules/lodash-es/_asciiSize.js +12 -0
  56. package/custom/node_modules/lodash-es/_asciiToArray.js +12 -0
  57. package/custom/node_modules/lodash-es/_asciiWords.js +15 -0
  58. package/custom/node_modules/lodash-es/_assignMergeValue.js +20 -0
  59. package/custom/node_modules/lodash-es/_assignValue.js +28 -0
  60. package/custom/node_modules/lodash-es/_assocIndexOf.js +21 -0
  61. package/custom/node_modules/lodash-es/_baseAggregator.js +21 -0
  62. package/custom/node_modules/lodash-es/_baseAssign.js +17 -0
  63. package/custom/node_modules/lodash-es/_baseAssignIn.js +17 -0
  64. package/custom/node_modules/lodash-es/_baseAssignValue.js +25 -0
  65. package/custom/node_modules/lodash-es/_baseAt.js +23 -0
  66. package/custom/node_modules/lodash-es/_baseClamp.js +22 -0
  67. package/custom/node_modules/lodash-es/_baseClone.js +166 -0
  68. package/custom/node_modules/lodash-es/_baseConforms.js +18 -0
  69. package/custom/node_modules/lodash-es/_baseConformsTo.js +27 -0
  70. package/custom/node_modules/lodash-es/_baseCreate.js +30 -0
  71. package/custom/node_modules/lodash-es/_baseDelay.js +21 -0
  72. package/custom/node_modules/lodash-es/_baseDifference.js +67 -0
  73. package/custom/node_modules/lodash-es/_baseEach.js +14 -0
  74. package/custom/node_modules/lodash-es/_baseEachRight.js +14 -0
  75. package/custom/node_modules/lodash-es/_baseEvery.js +21 -0
  76. package/custom/node_modules/lodash-es/_baseExtremum.js +32 -0
  77. package/custom/node_modules/lodash-es/_baseFill.js +32 -0
  78. package/custom/node_modules/lodash-es/_baseFilter.js +21 -0
  79. package/custom/node_modules/lodash-es/_baseFindIndex.js +24 -0
  80. package/custom/node_modules/lodash-es/_baseFindKey.js +23 -0
  81. package/custom/node_modules/lodash-es/_baseFlatten.js +38 -0
  82. package/custom/node_modules/lodash-es/_baseFor.js +16 -0
  83. package/custom/node_modules/lodash-es/_baseForOwn.js +16 -0
  84. package/custom/node_modules/lodash-es/_baseForOwnRight.js +16 -0
  85. package/custom/node_modules/lodash-es/_baseForRight.js +15 -0
  86. package/custom/node_modules/lodash-es/_baseFunctions.js +19 -0
  87. package/custom/node_modules/lodash-es/_baseGet.js +24 -0
  88. package/custom/node_modules/lodash-es/_baseGetAllKeys.js +20 -0
  89. package/custom/node_modules/lodash-es/_baseGetTag.js +28 -0
  90. package/custom/node_modules/lodash-es/_baseGt.js +14 -0
  91. package/custom/node_modules/lodash-es/_baseHas.js +19 -0
  92. package/custom/node_modules/lodash-es/_baseHasIn.js +13 -0
  93. package/custom/node_modules/lodash-es/_baseInRange.js +18 -0
  94. package/custom/node_modules/lodash-es/_baseIndexOf.js +20 -0
  95. package/custom/node_modules/lodash-es/_baseIndexOfWith.js +23 -0
  96. package/custom/node_modules/lodash-es/_baseIntersection.js +74 -0
  97. package/custom/node_modules/lodash-es/_baseInverter.js +21 -0
  98. package/custom/node_modules/lodash-es/_baseInvoke.js +24 -0
  99. package/custom/node_modules/lodash-es/_baseIsArguments.js +18 -0
  100. package/custom/node_modules/lodash-es/_baseIsArrayBuffer.js +17 -0
  101. package/custom/node_modules/lodash-es/_baseIsDate.js +18 -0
  102. package/custom/node_modules/lodash-es/_baseIsEqual.js +28 -0
  103. package/custom/node_modules/lodash-es/_baseIsEqualDeep.js +83 -0
  104. package/custom/node_modules/lodash-es/_baseIsMap.js +18 -0
  105. package/custom/node_modules/lodash-es/_baseIsMatch.js +62 -0
  106. package/custom/node_modules/lodash-es/_baseIsNaN.js +12 -0
  107. package/custom/node_modules/lodash-es/_baseIsNative.js +47 -0
  108. package/custom/node_modules/lodash-es/_baseIsRegExp.js +18 -0
  109. package/custom/node_modules/lodash-es/_baseIsSet.js +18 -0
  110. package/custom/node_modules/lodash-es/_baseIsTypedArray.js +60 -0
  111. package/custom/node_modules/lodash-es/_baseIteratee.js +31 -0
  112. package/custom/node_modules/lodash-es/_baseKeys.js +30 -0
  113. package/custom/node_modules/lodash-es/_baseKeysIn.js +33 -0
  114. package/custom/node_modules/lodash-es/_baseLodash.js +10 -0
  115. package/custom/node_modules/lodash-es/_baseLt.js +14 -0
  116. package/custom/node_modules/lodash-es/_baseMap.js +22 -0
  117. package/custom/node_modules/lodash-es/_baseMatches.js +22 -0
  118. package/custom/node_modules/lodash-es/_baseMatchesProperty.js +33 -0
  119. package/custom/node_modules/lodash-es/_baseMean.js +20 -0
  120. package/custom/node_modules/lodash-es/_baseMerge.js +42 -0
  121. package/custom/node_modules/lodash-es/_baseMergeDeep.js +94 -0
  122. package/custom/node_modules/lodash-es/_baseNth.js +20 -0
  123. package/custom/node_modules/lodash-es/_baseOrderBy.js +49 -0
  124. package/custom/node_modules/lodash-es/_basePick.js +19 -0
  125. package/custom/node_modules/lodash-es/_basePickBy.js +30 -0
  126. package/custom/node_modules/lodash-es/_baseProperty.js +14 -0
  127. package/custom/node_modules/lodash-es/_basePropertyDeep.js +16 -0
  128. package/custom/node_modules/lodash-es/_basePropertyOf.js +14 -0
  129. package/custom/node_modules/lodash-es/_basePullAll.js +51 -0
  130. package/custom/node_modules/lodash-es/_basePullAt.js +37 -0
  131. package/custom/node_modules/lodash-es/_baseRandom.js +18 -0
  132. package/custom/node_modules/lodash-es/_baseRange.js +28 -0
  133. package/custom/node_modules/lodash-es/_baseReduce.js +23 -0
  134. package/custom/node_modules/lodash-es/_baseRepeat.js +35 -0
  135. package/custom/node_modules/lodash-es/_baseRest.js +17 -0
  136. package/custom/node_modules/lodash-es/_baseSample.js +15 -0
  137. package/custom/node_modules/lodash-es/_baseSampleSize.js +18 -0
  138. package/custom/node_modules/lodash-es/_baseSet.js +51 -0
  139. package/custom/node_modules/lodash-es/_baseSetData.js +17 -0
  140. package/custom/node_modules/lodash-es/_baseSetToString.js +22 -0
  141. package/custom/node_modules/lodash-es/_baseShuffle.js +15 -0
  142. package/custom/node_modules/lodash-es/_baseSlice.js +31 -0
  143. package/custom/node_modules/lodash-es/_baseSome.js +22 -0
  144. package/custom/node_modules/lodash-es/_baseSortBy.js +21 -0
  145. package/custom/node_modules/lodash-es/_baseSortedIndex.js +42 -0
  146. package/custom/node_modules/lodash-es/_baseSortedIndexBy.js +67 -0
  147. package/custom/node_modules/lodash-es/_baseSortedUniq.js +30 -0
  148. package/custom/node_modules/lodash-es/_baseSum.js +24 -0
  149. package/custom/node_modules/lodash-es/_baseTimes.js +20 -0
  150. package/custom/node_modules/lodash-es/_baseToNumber.js +24 -0
  151. package/custom/node_modules/lodash-es/_baseToPairs.js +18 -0
  152. package/custom/node_modules/lodash-es/_baseToString.js +37 -0
  153. package/custom/node_modules/lodash-es/_baseTrim.js +19 -0
  154. package/custom/node_modules/lodash-es/_baseUnary.js +14 -0
  155. package/custom/node_modules/lodash-es/_baseUniq.js +72 -0
  156. package/custom/node_modules/lodash-es/_baseUnset.js +20 -0
  157. package/custom/node_modules/lodash-es/_baseUpdate.js +18 -0
  158. package/custom/node_modules/lodash-es/_baseValues.js +19 -0
  159. package/custom/node_modules/lodash-es/_baseWhile.js +26 -0
  160. package/custom/node_modules/lodash-es/_baseWrapperValue.js +25 -0
  161. package/custom/node_modules/lodash-es/_baseXor.js +36 -0
  162. package/custom/node_modules/lodash-es/_baseZipObject.js +23 -0
  163. package/custom/node_modules/lodash-es/_cacheHas.js +13 -0
  164. package/custom/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
  165. package/custom/node_modules/lodash-es/_castFunction.js +14 -0
  166. package/custom/node_modules/lodash-es/_castPath.js +21 -0
  167. package/custom/node_modules/lodash-es/_castRest.js +14 -0
  168. package/custom/node_modules/lodash-es/_castSlice.js +18 -0
  169. package/custom/node_modules/lodash-es/_charsEndIndex.js +19 -0
  170. package/custom/node_modules/lodash-es/_charsStartIndex.js +20 -0
  171. package/custom/node_modules/lodash-es/_cloneArrayBuffer.js +16 -0
  172. package/custom/node_modules/lodash-es/_cloneBuffer.js +35 -0
  173. package/custom/node_modules/lodash-es/_cloneDataView.js +16 -0
  174. package/custom/node_modules/lodash-es/_cloneMap.js +22 -0
  175. package/custom/node_modules/lodash-es/_cloneRegExp.js +17 -0
  176. package/custom/node_modules/lodash-es/_cloneSet.js +22 -0
  177. package/custom/node_modules/lodash-es/_cloneSymbol.js +18 -0
  178. package/custom/node_modules/lodash-es/_cloneTypedArray.js +16 -0
  179. package/custom/node_modules/lodash-es/_compareAscending.js +41 -0
  180. package/custom/node_modules/lodash-es/_compareMultiple.js +44 -0
  181. package/custom/node_modules/lodash-es/_composeArgs.js +39 -0
  182. package/custom/node_modules/lodash-es/_composeArgsRight.js +41 -0
  183. package/custom/node_modules/lodash-es/_copyArray.js +20 -0
  184. package/custom/node_modules/lodash-es/_copyObject.js +40 -0
  185. package/custom/node_modules/lodash-es/_copySymbols.js +16 -0
  186. package/custom/node_modules/lodash-es/_copySymbolsIn.js +16 -0
  187. package/custom/node_modules/lodash-es/_coreJsData.js +6 -0
  188. package/custom/node_modules/lodash-es/_countHolders.js +21 -0
  189. package/custom/node_modules/lodash-es/_createAggregator.js +23 -0
  190. package/custom/node_modules/lodash-es/_createAssigner.js +37 -0
  191. package/custom/node_modules/lodash-es/_createBaseEach.js +32 -0
  192. package/custom/node_modules/lodash-es/_createBaseFor.js +25 -0
  193. package/custom/node_modules/lodash-es/_createBind.js +28 -0
  194. package/custom/node_modules/lodash-es/_createCaseFirst.js +33 -0
  195. package/custom/node_modules/lodash-es/_createCompounder.js +24 -0
  196. package/custom/node_modules/lodash-es/_createCtor.js +37 -0
  197. package/custom/node_modules/lodash-es/_createCurry.js +46 -0
  198. package/custom/node_modules/lodash-es/_createFind.js +25 -0
  199. package/custom/node_modules/lodash-es/_createFlow.js +78 -0
  200. package/custom/node_modules/lodash-es/_createHybrid.js +92 -0
  201. package/custom/node_modules/lodash-es/_createInverter.js +17 -0
  202. package/custom/node_modules/lodash-es/_createMathOperation.js +38 -0
  203. package/custom/node_modules/lodash-es/_createOver.js +27 -0
  204. package/custom/node_modules/lodash-es/_createPadding.js +33 -0
  205. package/custom/node_modules/lodash-es/_createPartial.js +43 -0
  206. package/custom/node_modules/lodash-es/_createRange.js +30 -0
  207. package/custom/node_modules/lodash-es/_createRecurry.js +56 -0
  208. package/custom/node_modules/lodash-es/_createRelationalOperation.js +20 -0
  209. package/custom/node_modules/lodash-es/_createRound.js +35 -0
  210. package/custom/node_modules/lodash-es/_createSet.js +19 -0
  211. package/custom/node_modules/lodash-es/_createToPairs.js +30 -0
  212. package/custom/node_modules/lodash-es/_createWrap.js +106 -0
  213. package/custom/node_modules/lodash-es/_customDefaultsAssignIn.js +29 -0
  214. package/custom/node_modules/lodash-es/_customDefaultsMerge.js +28 -0
  215. package/custom/node_modules/lodash-es/_customOmitClone.js +16 -0
  216. package/custom/node_modules/lodash-es/_deburrLetter.js +71 -0
  217. package/custom/node_modules/lodash-es/_defineProperty.js +11 -0
  218. package/custom/node_modules/lodash-es/_equalArrays.js +84 -0
  219. package/custom/node_modules/lodash-es/_equalByTag.js +112 -0
  220. package/custom/node_modules/lodash-es/_equalObjects.js +90 -0
  221. package/custom/node_modules/lodash-es/_escapeHtmlChar.js +21 -0
  222. package/custom/node_modules/lodash-es/_escapeStringChar.js +22 -0
  223. package/custom/node_modules/lodash-es/_flatRest.js +16 -0
  224. package/custom/node_modules/lodash-es/_freeGlobal.js +4 -0
  225. package/custom/node_modules/lodash-es/_getAllKeys.js +16 -0
  226. package/custom/node_modules/lodash-es/_getAllKeysIn.js +17 -0
  227. package/custom/node_modules/lodash-es/_getData.js +15 -0
  228. package/custom/node_modules/lodash-es/_getFuncName.js +31 -0
  229. package/custom/node_modules/lodash-es/_getHolder.js +13 -0
  230. package/custom/node_modules/lodash-es/_getMapData.js +18 -0
  231. package/custom/node_modules/lodash-es/_getMatchData.js +24 -0
  232. package/custom/node_modules/lodash-es/_getNative.js +17 -0
  233. package/custom/node_modules/lodash-es/_getPrototype.js +6 -0
  234. package/custom/node_modules/lodash-es/_getRawTag.js +46 -0
  235. package/custom/node_modules/lodash-es/_getSymbols.js +30 -0
  236. package/custom/node_modules/lodash-es/_getSymbolsIn.js +25 -0
  237. package/custom/node_modules/lodash-es/_getTag.js +58 -0
  238. package/custom/node_modules/lodash-es/_getValue.js +13 -0
  239. package/custom/node_modules/lodash-es/_getView.js +33 -0
  240. package/custom/node_modules/lodash-es/_getWrapDetails.js +17 -0
  241. package/custom/node_modules/lodash-es/_hasPath.js +39 -0
  242. package/custom/node_modules/lodash-es/_hasUnicode.js +26 -0
  243. package/custom/node_modules/lodash-es/_hasUnicodeWord.js +15 -0
  244. package/custom/node_modules/lodash-es/_hashClear.js +15 -0
  245. package/custom/node_modules/lodash-es/_hashDelete.js +17 -0
  246. package/custom/node_modules/lodash-es/_hashGet.js +30 -0
  247. package/custom/node_modules/lodash-es/_hashHas.js +23 -0
  248. package/custom/node_modules/lodash-es/_hashSet.js +23 -0
  249. package/custom/node_modules/lodash-es/_initCloneArray.js +26 -0
  250. package/custom/node_modules/lodash-es/_initCloneByTag.js +77 -0
  251. package/custom/node_modules/lodash-es/_initCloneObject.js +18 -0
  252. package/custom/node_modules/lodash-es/_insertWrapDetails.js +23 -0
  253. package/custom/node_modules/lodash-es/_isFlattenable.js +20 -0
  254. package/custom/node_modules/lodash-es/_isIndex.js +25 -0
  255. package/custom/node_modules/lodash-es/_isIterateeCall.js +30 -0
  256. package/custom/node_modules/lodash-es/_isKey.js +29 -0
  257. package/custom/node_modules/lodash-es/_isKeyable.js +15 -0
  258. package/custom/node_modules/lodash-es/_isLaziable.js +28 -0
  259. package/custom/node_modules/lodash-es/_isMaskable.js +14 -0
  260. package/custom/node_modules/lodash-es/_isMasked.js +20 -0
  261. package/custom/node_modules/lodash-es/_isPrototype.js +18 -0
  262. package/custom/node_modules/lodash-es/_isStrictComparable.js +15 -0
  263. package/custom/node_modules/lodash-es/_iteratorToArray.js +18 -0
  264. package/custom/node_modules/lodash-es/_lazyClone.js +23 -0
  265. package/custom/node_modules/lodash-es/_lazyReverse.js +23 -0
  266. package/custom/node_modules/lodash-es/_lazyValue.js +69 -0
  267. package/custom/node_modules/lodash-es/_listCacheClear.js +13 -0
  268. package/custom/node_modules/lodash-es/_listCacheDelete.js +35 -0
  269. package/custom/node_modules/lodash-es/_listCacheGet.js +19 -0
  270. package/custom/node_modules/lodash-es/_listCacheHas.js +16 -0
  271. package/custom/node_modules/lodash-es/_listCacheSet.js +26 -0
  272. package/custom/node_modules/lodash-es/_mapCacheClear.js +21 -0
  273. package/custom/node_modules/lodash-es/_mapCacheDelete.js +18 -0
  274. package/custom/node_modules/lodash-es/_mapCacheGet.js +16 -0
  275. package/custom/node_modules/lodash-es/_mapCacheHas.js +16 -0
  276. package/custom/node_modules/lodash-es/_mapCacheSet.js +22 -0
  277. package/custom/node_modules/lodash-es/_mapToArray.js +18 -0
  278. package/custom/node_modules/lodash-es/_matchesStrictComparable.js +20 -0
  279. package/custom/node_modules/lodash-es/_memoizeCapped.js +26 -0
  280. package/custom/node_modules/lodash-es/_mergeData.js +90 -0
  281. package/custom/node_modules/lodash-es/_metaMap.js +6 -0
  282. package/custom/node_modules/lodash-es/_nativeCreate.js +6 -0
  283. package/custom/node_modules/lodash-es/_nativeKeys.js +6 -0
  284. package/custom/node_modules/lodash-es/_nativeKeysIn.js +20 -0
  285. package/custom/node_modules/lodash-es/_nodeUtil.js +30 -0
  286. package/custom/node_modules/lodash-es/_objectToString.js +22 -0
  287. package/custom/node_modules/lodash-es/_overArg.js +15 -0
  288. package/custom/node_modules/lodash-es/_overRest.js +36 -0
  289. package/custom/node_modules/lodash-es/_parent.js +16 -0
  290. package/custom/node_modules/lodash-es/_reEscape.js +4 -0
  291. package/custom/node_modules/lodash-es/_reEvaluate.js +4 -0
  292. package/custom/node_modules/lodash-es/_reInterpolate.js +4 -0
  293. package/custom/node_modules/lodash-es/_realNames.js +4 -0
  294. package/custom/node_modules/lodash-es/_reorder.js +29 -0
  295. package/custom/node_modules/lodash-es/_replaceHolders.js +29 -0
  296. package/custom/node_modules/lodash-es/_root.js +9 -0
  297. package/custom/node_modules/lodash-es/_safeGet.js +21 -0
  298. package/custom/node_modules/lodash-es/_setCacheAdd.js +19 -0
  299. package/custom/node_modules/lodash-es/_setCacheHas.js +14 -0
  300. package/custom/node_modules/lodash-es/_setData.js +20 -0
  301. package/custom/node_modules/lodash-es/_setToArray.js +18 -0
  302. package/custom/node_modules/lodash-es/_setToPairs.js +18 -0
  303. package/custom/node_modules/lodash-es/_setToString.js +14 -0
  304. package/custom/node_modules/lodash-es/_setWrapToString.js +21 -0
  305. package/custom/node_modules/lodash-es/_shortOut.js +37 -0
  306. package/custom/node_modules/lodash-es/_shuffleSelf.js +28 -0
  307. package/custom/node_modules/lodash-es/_stackClear.js +15 -0
  308. package/custom/node_modules/lodash-es/_stackDelete.js +18 -0
  309. package/custom/node_modules/lodash-es/_stackGet.js +14 -0
  310. package/custom/node_modules/lodash-es/_stackHas.js +14 -0
  311. package/custom/node_modules/lodash-es/_stackSet.js +34 -0
  312. package/custom/node_modules/lodash-es/_strictIndexOf.js +23 -0
  313. package/custom/node_modules/lodash-es/_strictLastIndexOf.js +21 -0
  314. package/custom/node_modules/lodash-es/_stringSize.js +18 -0
  315. package/custom/node_modules/lodash-es/_stringToArray.js +18 -0
  316. package/custom/node_modules/lodash-es/_stringToPath.js +27 -0
  317. package/custom/node_modules/lodash-es/_toKey.js +21 -0
  318. package/custom/node_modules/lodash-es/_toSource.js +26 -0
  319. package/custom/node_modules/lodash-es/_trimmedEndIndex.js +19 -0
  320. package/custom/node_modules/lodash-es/_unescapeHtmlChar.js +21 -0
  321. package/custom/node_modules/lodash-es/_unicodeSize.js +44 -0
  322. package/custom/node_modules/lodash-es/_unicodeToArray.js +40 -0
  323. package/custom/node_modules/lodash-es/_unicodeWords.js +69 -0
  324. package/custom/node_modules/lodash-es/_updateWrapDetails.js +46 -0
  325. package/custom/node_modules/lodash-es/_wrapperClone.js +23 -0
  326. package/custom/node_modules/lodash-es/add.js +22 -0
  327. package/custom/node_modules/lodash-es/after.js +42 -0
  328. package/custom/node_modules/lodash-es/array.default.js +81 -0
  329. package/custom/node_modules/lodash-es/array.js +66 -0
  330. package/custom/node_modules/lodash-es/ary.js +29 -0
  331. package/custom/node_modules/lodash-es/assign.js +58 -0
  332. package/custom/node_modules/lodash-es/assignIn.js +40 -0
  333. package/custom/node_modules/lodash-es/assignInWith.js +38 -0
  334. package/custom/node_modules/lodash-es/assignWith.js +37 -0
  335. package/custom/node_modules/lodash-es/at.js +23 -0
  336. package/custom/node_modules/lodash-es/attempt.js +35 -0
  337. package/custom/node_modules/lodash-es/before.js +40 -0
  338. package/custom/node_modules/lodash-es/bind.js +57 -0
  339. package/custom/node_modules/lodash-es/bindAll.js +41 -0
  340. package/custom/node_modules/lodash-es/bindKey.js +68 -0
  341. package/custom/node_modules/lodash-es/camelCase.js +29 -0
  342. package/custom/node_modules/lodash-es/capitalize.js +23 -0
  343. package/custom/node_modules/lodash-es/castArray.js +44 -0
  344. package/custom/node_modules/lodash-es/ceil.js +26 -0
  345. package/custom/node_modules/lodash-es/chain.js +38 -0
  346. package/custom/node_modules/lodash-es/chunk.js +50 -0
  347. package/custom/node_modules/lodash-es/clamp.js +39 -0
  348. package/custom/node_modules/lodash-es/clone.js +36 -0
  349. package/custom/node_modules/lodash-es/cloneDeep.js +29 -0
  350. package/custom/node_modules/lodash-es/cloneDeepWith.js +40 -0
  351. package/custom/node_modules/lodash-es/cloneWith.js +42 -0
  352. package/custom/node_modules/lodash-es/collection.default.js +37 -0
  353. package/custom/node_modules/lodash-es/collection.js +29 -0
  354. package/custom/node_modules/lodash-es/commit.js +33 -0
  355. package/custom/node_modules/lodash-es/compact.js +31 -0
  356. package/custom/node_modules/lodash-es/concat.js +43 -0
  357. package/custom/node_modules/lodash-es/cond.js +60 -0
  358. package/custom/node_modules/lodash-es/conforms.js +35 -0
  359. package/custom/node_modules/lodash-es/conformsTo.js +32 -0
  360. package/custom/node_modules/lodash-es/constant.js +26 -0
  361. package/custom/node_modules/lodash-es/countBy.js +40 -0
  362. package/custom/node_modules/lodash-es/create.js +43 -0
  363. package/custom/node_modules/lodash-es/curry.js +57 -0
  364. package/custom/node_modules/lodash-es/curryRight.js +54 -0
  365. package/custom/node_modules/lodash-es/date.default.js +5 -0
  366. package/custom/node_modules/lodash-es/date.js +2 -0
  367. package/custom/node_modules/lodash-es/debounce.js +191 -0
  368. package/custom/node_modules/lodash-es/deburr.js +45 -0
  369. package/custom/node_modules/lodash-es/defaultTo.js +25 -0
  370. package/custom/node_modules/lodash-es/defaults.js +64 -0
  371. package/custom/node_modules/lodash-es/defaultsDeep.js +30 -0
  372. package/custom/node_modules/lodash-es/defer.js +26 -0
  373. package/custom/node_modules/lodash-es/delay.js +28 -0
  374. package/custom/node_modules/lodash-es/difference.js +33 -0
  375. package/custom/node_modules/lodash-es/differenceBy.js +44 -0
  376. package/custom/node_modules/lodash-es/differenceWith.js +40 -0
  377. package/custom/node_modules/lodash-es/divide.js +22 -0
  378. package/custom/node_modules/lodash-es/drop.js +38 -0
  379. package/custom/node_modules/lodash-es/dropRight.js +39 -0
  380. package/custom/node_modules/lodash-es/dropRightWhile.js +45 -0
  381. package/custom/node_modules/lodash-es/dropWhile.js +45 -0
  382. package/custom/node_modules/lodash-es/each.js +1 -0
  383. package/custom/node_modules/lodash-es/eachRight.js +1 -0
  384. package/custom/node_modules/lodash-es/endsWith.js +43 -0
  385. package/custom/node_modules/lodash-es/entries.js +1 -0
  386. package/custom/node_modules/lodash-es/entriesIn.js +1 -0
  387. package/custom/node_modules/lodash-es/eq.js +37 -0
  388. package/custom/node_modules/lodash-es/escape.js +43 -0
  389. package/custom/node_modules/lodash-es/escapeRegExp.js +32 -0
  390. package/custom/node_modules/lodash-es/every.js +56 -0
  391. package/custom/node_modules/lodash-es/extend.js +1 -0
  392. package/custom/node_modules/lodash-es/extendWith.js +1 -0
  393. package/custom/node_modules/lodash-es/fill.js +45 -0
  394. package/custom/node_modules/lodash-es/filter.js +52 -0
  395. package/custom/node_modules/lodash-es/find.js +42 -0
  396. package/custom/node_modules/lodash-es/findIndex.js +55 -0
  397. package/custom/node_modules/lodash-es/findKey.js +44 -0
  398. package/custom/node_modules/lodash-es/findLast.js +25 -0
  399. package/custom/node_modules/lodash-es/findLastIndex.js +59 -0
  400. package/custom/node_modules/lodash-es/findLastKey.js +44 -0
  401. package/custom/node_modules/lodash-es/first.js +1 -0
  402. package/custom/node_modules/lodash-es/flake.lock +40 -0
  403. package/custom/node_modules/lodash-es/flake.nix +20 -0
  404. package/custom/node_modules/lodash-es/flatMap.js +29 -0
  405. package/custom/node_modules/lodash-es/flatMapDeep.js +31 -0
  406. package/custom/node_modules/lodash-es/flatMapDepth.js +31 -0
  407. package/custom/node_modules/lodash-es/flatten.js +22 -0
  408. package/custom/node_modules/lodash-es/flattenDeep.js +25 -0
  409. package/custom/node_modules/lodash-es/flattenDepth.js +33 -0
  410. package/custom/node_modules/lodash-es/flip.js +28 -0
  411. package/custom/node_modules/lodash-es/floor.js +26 -0
  412. package/custom/node_modules/lodash-es/flow.js +27 -0
  413. package/custom/node_modules/lodash-es/flowRight.js +26 -0
  414. package/custom/node_modules/lodash-es/forEach.js +41 -0
  415. package/custom/node_modules/lodash-es/forEachRight.js +31 -0
  416. package/custom/node_modules/lodash-es/forIn.js +39 -0
  417. package/custom/node_modules/lodash-es/forInRight.js +37 -0
  418. package/custom/node_modules/lodash-es/forOwn.js +36 -0
  419. package/custom/node_modules/lodash-es/forOwnRight.js +34 -0
  420. package/custom/node_modules/lodash-es/fromPairs.js +28 -0
  421. package/custom/node_modules/lodash-es/function.default.js +31 -0
  422. package/custom/node_modules/lodash-es/function.js +24 -0
  423. package/custom/node_modules/lodash-es/functions.js +31 -0
  424. package/custom/node_modules/lodash-es/functionsIn.js +31 -0
  425. package/custom/node_modules/lodash-es/get.js +33 -0
  426. package/custom/node_modules/lodash-es/groupBy.js +41 -0
  427. package/custom/node_modules/lodash-es/gt.js +29 -0
  428. package/custom/node_modules/lodash-es/gte.js +30 -0
  429. package/custom/node_modules/lodash-es/has.js +35 -0
  430. package/custom/node_modules/lodash-es/hasIn.js +34 -0
  431. package/custom/node_modules/lodash-es/head.js +23 -0
  432. package/custom/node_modules/lodash-es/identity.js +21 -0
  433. package/custom/node_modules/lodash-es/inRange.js +55 -0
  434. package/custom/node_modules/lodash-es/includes.js +53 -0
  435. package/custom/node_modules/lodash-es/indexOf.js +42 -0
  436. package/custom/node_modules/lodash-es/initial.js +22 -0
  437. package/custom/node_modules/lodash-es/intersection.js +30 -0
  438. package/custom/node_modules/lodash-es/intersectionBy.js +45 -0
  439. package/custom/node_modules/lodash-es/intersectionWith.js +41 -0
  440. package/custom/node_modules/lodash-es/invert.js +42 -0
  441. package/custom/node_modules/lodash-es/invertBy.js +56 -0
  442. package/custom/node_modules/lodash-es/invoke.js +24 -0
  443. package/custom/node_modules/lodash-es/invokeMap.js +41 -0
  444. package/custom/node_modules/lodash-es/isArguments.js +36 -0
  445. package/custom/node_modules/lodash-es/isArray.js +26 -0
  446. package/custom/node_modules/lodash-es/isArrayBuffer.js +27 -0
  447. package/custom/node_modules/lodash-es/isArrayLike.js +33 -0
  448. package/custom/node_modules/lodash-es/isArrayLikeObject.js +33 -0
  449. package/custom/node_modules/lodash-es/isBoolean.js +29 -0
  450. package/custom/node_modules/lodash-es/isBuffer.js +38 -0
  451. package/custom/node_modules/lodash-es/isDate.js +27 -0
  452. package/custom/node_modules/lodash-es/isElement.js +25 -0
  453. package/custom/node_modules/lodash-es/isEmpty.js +77 -0
  454. package/custom/node_modules/lodash-es/isEqual.js +35 -0
  455. package/custom/node_modules/lodash-es/isEqualWith.js +41 -0
  456. package/custom/node_modules/lodash-es/isError.js +36 -0
  457. package/custom/node_modules/lodash-es/isFinite.js +36 -0
  458. package/custom/node_modules/lodash-es/isFunction.js +37 -0
  459. package/custom/node_modules/lodash-es/isInteger.js +33 -0
  460. package/custom/node_modules/lodash-es/isLength.js +35 -0
  461. package/custom/node_modules/lodash-es/isMap.js +27 -0
  462. package/custom/node_modules/lodash-es/isMatch.js +36 -0
  463. package/custom/node_modules/lodash-es/isMatchWith.js +41 -0
  464. package/custom/node_modules/lodash-es/isNaN.js +38 -0
  465. package/custom/node_modules/lodash-es/isNative.js +40 -0
  466. package/custom/node_modules/lodash-es/isNil.js +25 -0
  467. package/custom/node_modules/lodash-es/isNull.js +22 -0
  468. package/custom/node_modules/lodash-es/isNumber.js +38 -0
  469. package/custom/node_modules/lodash-es/isObject.js +31 -0
  470. package/custom/node_modules/lodash-es/isObjectLike.js +29 -0
  471. package/custom/node_modules/lodash-es/isPlainObject.js +62 -0
  472. package/custom/node_modules/lodash-es/isRegExp.js +27 -0
  473. package/custom/node_modules/lodash-es/isSafeInteger.js +37 -0
  474. package/custom/node_modules/lodash-es/isSet.js +27 -0
  475. package/custom/node_modules/lodash-es/isString.js +30 -0
  476. package/custom/node_modules/lodash-es/isSymbol.js +29 -0
  477. package/custom/node_modules/lodash-es/isTypedArray.js +27 -0
  478. package/custom/node_modules/lodash-es/isUndefined.js +22 -0
  479. package/custom/node_modules/lodash-es/isWeakMap.js +28 -0
  480. package/custom/node_modules/lodash-es/isWeakSet.js +28 -0
  481. package/custom/node_modules/lodash-es/iteratee.js +53 -0
  482. package/custom/node_modules/lodash-es/join.js +26 -0
  483. package/custom/node_modules/lodash-es/kebabCase.js +28 -0
  484. package/custom/node_modules/lodash-es/keyBy.js +36 -0
  485. package/custom/node_modules/lodash-es/keys.js +37 -0
  486. package/custom/node_modules/lodash-es/keysIn.js +32 -0
  487. package/custom/node_modules/lodash-es/lang.default.js +71 -0
  488. package/custom/node_modules/lodash-es/lang.js +57 -0
  489. package/custom/node_modules/lodash-es/last.js +20 -0
  490. package/custom/node_modules/lodash-es/lastIndexOf.js +46 -0
  491. package/custom/node_modules/lodash-es/lodash.default.js +643 -0
  492. package/custom/node_modules/lodash-es/lodash.js +331 -0
  493. package/custom/node_modules/lodash-es/lowerCase.js +27 -0
  494. package/custom/node_modules/lodash-es/lowerFirst.js +22 -0
  495. package/custom/node_modules/lodash-es/lt.js +29 -0
  496. package/custom/node_modules/lodash-es/lte.js +30 -0
  497. package/custom/node_modules/lodash-es/map.js +53 -0
  498. package/custom/node_modules/lodash-es/mapKeys.js +36 -0
  499. package/custom/node_modules/lodash-es/mapValues.js +43 -0
  500. package/custom/node_modules/lodash-es/matches.js +46 -0
  501. package/custom/node_modules/lodash-es/matchesProperty.js +44 -0
  502. package/custom/node_modules/lodash-es/math.default.js +21 -0
  503. package/custom/node_modules/lodash-es/math.js +16 -0
  504. package/custom/node_modules/lodash-es/max.js +29 -0
  505. package/custom/node_modules/lodash-es/maxBy.js +34 -0
  506. package/custom/node_modules/lodash-es/mean.js +22 -0
  507. package/custom/node_modules/lodash-es/meanBy.js +31 -0
  508. package/custom/node_modules/lodash-es/memoize.js +73 -0
  509. package/custom/node_modules/lodash-es/merge.js +39 -0
  510. package/custom/node_modules/lodash-es/mergeWith.js +39 -0
  511. package/custom/node_modules/lodash-es/method.js +34 -0
  512. package/custom/node_modules/lodash-es/methodOf.js +33 -0
  513. package/custom/node_modules/lodash-es/min.js +29 -0
  514. package/custom/node_modules/lodash-es/minBy.js +34 -0
  515. package/custom/node_modules/lodash-es/mixin.js +74 -0
  516. package/custom/node_modules/lodash-es/multiply.js +22 -0
  517. package/custom/node_modules/lodash-es/negate.js +40 -0
  518. package/custom/node_modules/lodash-es/next.js +35 -0
  519. package/custom/node_modules/lodash-es/noop.js +17 -0
  520. package/custom/node_modules/lodash-es/now.js +23 -0
  521. package/custom/node_modules/lodash-es/nth.js +29 -0
  522. package/custom/node_modules/lodash-es/nthArg.js +32 -0
  523. package/custom/node_modules/lodash-es/number.default.js +7 -0
  524. package/custom/node_modules/lodash-es/number.js +4 -0
  525. package/custom/node_modules/lodash-es/object.default.js +60 -0
  526. package/custom/node_modules/lodash-es/object.js +48 -0
  527. package/custom/node_modules/lodash-es/omit.js +57 -0
  528. package/custom/node_modules/lodash-es/omitBy.js +29 -0
  529. package/custom/node_modules/lodash-es/once.js +25 -0
  530. package/custom/node_modules/lodash-es/orderBy.js +47 -0
  531. package/custom/node_modules/lodash-es/over.js +24 -0
  532. package/custom/node_modules/lodash-es/overArgs.js +61 -0
  533. package/custom/node_modules/lodash-es/overEvery.js +34 -0
  534. package/custom/node_modules/lodash-es/overSome.js +37 -0
  535. package/custom/node_modules/lodash-es/package.json +21 -0
  536. package/custom/node_modules/lodash-es/pad.js +49 -0
  537. package/custom/node_modules/lodash-es/padEnd.js +39 -0
  538. package/custom/node_modules/lodash-es/padStart.js +39 -0
  539. package/custom/node_modules/lodash-es/parseInt.js +43 -0
  540. package/custom/node_modules/lodash-es/partial.js +50 -0
  541. package/custom/node_modules/lodash-es/partialRight.js +49 -0
  542. package/custom/node_modules/lodash-es/partition.js +43 -0
  543. package/custom/node_modules/lodash-es/pick.js +25 -0
  544. package/custom/node_modules/lodash-es/pickBy.js +37 -0
  545. package/custom/node_modules/lodash-es/plant.js +48 -0
  546. package/custom/node_modules/lodash-es/property.js +32 -0
  547. package/custom/node_modules/lodash-es/propertyOf.js +30 -0
  548. package/custom/node_modules/lodash-es/pull.js +29 -0
  549. package/custom/node_modules/lodash-es/pullAll.js +29 -0
  550. package/custom/node_modules/lodash-es/pullAllBy.js +33 -0
  551. package/custom/node_modules/lodash-es/pullAllWith.js +32 -0
  552. package/custom/node_modules/lodash-es/pullAt.js +43 -0
  553. package/custom/node_modules/lodash-es/random.js +82 -0
  554. package/custom/node_modules/lodash-es/range.js +46 -0
  555. package/custom/node_modules/lodash-es/rangeRight.js +41 -0
  556. package/custom/node_modules/lodash-es/rearg.js +33 -0
  557. package/custom/node_modules/lodash-es/reduce.js +51 -0
  558. package/custom/node_modules/lodash-es/reduceRight.js +36 -0
  559. package/custom/node_modules/lodash-es/reject.js +46 -0
  560. package/custom/node_modules/lodash-es/release.md +48 -0
  561. package/custom/node_modules/lodash-es/remove.js +53 -0
  562. package/custom/node_modules/lodash-es/repeat.js +37 -0
  563. package/custom/node_modules/lodash-es/replace.js +29 -0
  564. package/custom/node_modules/lodash-es/rest.js +40 -0
  565. package/custom/node_modules/lodash-es/result.js +56 -0
  566. package/custom/node_modules/lodash-es/reverse.js +34 -0
  567. package/custom/node_modules/lodash-es/round.js +26 -0
  568. package/custom/node_modules/lodash-es/sample.js +24 -0
  569. package/custom/node_modules/lodash-es/sampleSize.js +37 -0
  570. package/custom/node_modules/lodash-es/seq.default.js +20 -0
  571. package/custom/node_modules/lodash-es/seq.js +15 -0
  572. package/custom/node_modules/lodash-es/set.js +35 -0
  573. package/custom/node_modules/lodash-es/setWith.js +32 -0
  574. package/custom/node_modules/lodash-es/shuffle.js +25 -0
  575. package/custom/node_modules/lodash-es/size.js +46 -0
  576. package/custom/node_modules/lodash-es/slice.js +37 -0
  577. package/custom/node_modules/lodash-es/snakeCase.js +28 -0
  578. package/custom/node_modules/lodash-es/some.js +51 -0
  579. package/custom/node_modules/lodash-es/sortBy.js +48 -0
  580. package/custom/node_modules/lodash-es/sortedIndex.js +24 -0
  581. package/custom/node_modules/lodash-es/sortedIndexBy.js +33 -0
  582. package/custom/node_modules/lodash-es/sortedIndexOf.js +31 -0
  583. package/custom/node_modules/lodash-es/sortedLastIndex.js +25 -0
  584. package/custom/node_modules/lodash-es/sortedLastIndexBy.js +33 -0
  585. package/custom/node_modules/lodash-es/sortedLastIndexOf.js +31 -0
  586. package/custom/node_modules/lodash-es/sortedUniq.js +24 -0
  587. package/custom/node_modules/lodash-es/sortedUniqBy.js +26 -0
  588. package/custom/node_modules/lodash-es/split.js +52 -0
  589. package/custom/node_modules/lodash-es/spread.js +63 -0
  590. package/custom/node_modules/lodash-es/startCase.js +29 -0
  591. package/custom/node_modules/lodash-es/startsWith.js +39 -0
  592. package/custom/node_modules/lodash-es/string.default.js +41 -0
  593. package/custom/node_modules/lodash-es/string.js +32 -0
  594. package/custom/node_modules/lodash-es/stubArray.js +23 -0
  595. package/custom/node_modules/lodash-es/stubFalse.js +18 -0
  596. package/custom/node_modules/lodash-es/stubObject.js +23 -0
  597. package/custom/node_modules/lodash-es/stubString.js +18 -0
  598. package/custom/node_modules/lodash-es/stubTrue.js +18 -0
  599. package/custom/node_modules/lodash-es/subtract.js +22 -0
  600. package/custom/node_modules/lodash-es/sum.js +24 -0
  601. package/custom/node_modules/lodash-es/sumBy.js +33 -0
  602. package/custom/node_modules/lodash-es/tail.js +22 -0
  603. package/custom/node_modules/lodash-es/take.js +37 -0
  604. package/custom/node_modules/lodash-es/takeRight.js +39 -0
  605. package/custom/node_modules/lodash-es/takeRightWhile.js +45 -0
  606. package/custom/node_modules/lodash-es/takeWhile.js +45 -0
  607. package/custom/node_modules/lodash-es/tap.js +29 -0
  608. package/custom/node_modules/lodash-es/template.js +272 -0
  609. package/custom/node_modules/lodash-es/templateSettings.js +67 -0
  610. package/custom/node_modules/lodash-es/throttle.js +69 -0
  611. package/custom/node_modules/lodash-es/thru.js +28 -0
  612. package/custom/node_modules/lodash-es/times.js +51 -0
  613. package/custom/node_modules/lodash-es/toArray.js +58 -0
  614. package/custom/node_modules/lodash-es/toFinite.js +42 -0
  615. package/custom/node_modules/lodash-es/toInteger.js +36 -0
  616. package/custom/node_modules/lodash-es/toIterator.js +23 -0
  617. package/custom/node_modules/lodash-es/toJSON.js +1 -0
  618. package/custom/node_modules/lodash-es/toLength.js +38 -0
  619. package/custom/node_modules/lodash-es/toLower.js +28 -0
  620. package/custom/node_modules/lodash-es/toNumber.js +64 -0
  621. package/custom/node_modules/lodash-es/toPairs.js +30 -0
  622. package/custom/node_modules/lodash-es/toPairsIn.js +30 -0
  623. package/custom/node_modules/lodash-es/toPath.js +33 -0
  624. package/custom/node_modules/lodash-es/toPlainObject.js +32 -0
  625. package/custom/node_modules/lodash-es/toSafeInteger.js +37 -0
  626. package/custom/node_modules/lodash-es/toString.js +28 -0
  627. package/custom/node_modules/lodash-es/toUpper.js +28 -0
  628. package/custom/node_modules/lodash-es/transform.js +65 -0
  629. package/custom/node_modules/lodash-es/trim.js +47 -0
  630. package/custom/node_modules/lodash-es/trimEnd.js +41 -0
  631. package/custom/node_modules/lodash-es/trimStart.js +43 -0
  632. package/custom/node_modules/lodash-es/truncate.js +111 -0
  633. package/custom/node_modules/lodash-es/unary.js +22 -0
  634. package/custom/node_modules/lodash-es/unescape.js +34 -0
  635. package/custom/node_modules/lodash-es/union.js +26 -0
  636. package/custom/node_modules/lodash-es/unionBy.js +39 -0
  637. package/custom/node_modules/lodash-es/unionWith.js +34 -0
  638. package/custom/node_modules/lodash-es/uniq.js +25 -0
  639. package/custom/node_modules/lodash-es/uniqBy.js +31 -0
  640. package/custom/node_modules/lodash-es/uniqWith.js +28 -0
  641. package/custom/node_modules/lodash-es/uniqueId.js +28 -0
  642. package/custom/node_modules/lodash-es/unset.js +34 -0
  643. package/custom/node_modules/lodash-es/unzip.js +45 -0
  644. package/custom/node_modules/lodash-es/unzipWith.js +39 -0
  645. package/custom/node_modules/lodash-es/update.js +35 -0
  646. package/custom/node_modules/lodash-es/updateWith.js +33 -0
  647. package/custom/node_modules/lodash-es/upperCase.js +27 -0
  648. package/custom/node_modules/lodash-es/upperFirst.js +22 -0
  649. package/custom/node_modules/lodash-es/util.default.js +42 -0
  650. package/custom/node_modules/lodash-es/util.js +33 -0
  651. package/custom/node_modules/lodash-es/value.js +1 -0
  652. package/custom/node_modules/lodash-es/valueOf.js +1 -0
  653. package/custom/node_modules/lodash-es/values.js +34 -0
  654. package/custom/node_modules/lodash-es/valuesIn.js +32 -0
  655. package/custom/node_modules/lodash-es/without.js +31 -0
  656. package/custom/node_modules/lodash-es/words.js +35 -0
  657. package/custom/node_modules/lodash-es/wrap.js +30 -0
  658. package/custom/node_modules/lodash-es/wrapperAt.js +48 -0
  659. package/custom/node_modules/lodash-es/wrapperChain.js +34 -0
  660. package/custom/node_modules/lodash-es/wrapperLodash.js +147 -0
  661. package/custom/node_modules/lodash-es/wrapperReverse.js +44 -0
  662. package/custom/node_modules/lodash-es/wrapperValue.js +21 -0
  663. package/custom/node_modules/lodash-es/xor.js +28 -0
  664. package/custom/node_modules/lodash-es/xorBy.js +39 -0
  665. package/custom/node_modules/lodash-es/xorWith.js +34 -0
  666. package/custom/node_modules/lodash-es/zip.js +22 -0
  667. package/custom/node_modules/lodash-es/zipObject.js +24 -0
  668. package/custom/node_modules/lodash-es/zipObjectDeep.js +23 -0
  669. package/custom/node_modules/lodash-es/zipWith.js +32 -0
  670. package/custom/node_modules/lodash.clonedeep/LICENSE +47 -0
  671. package/custom/node_modules/lodash.clonedeep/README.md +18 -0
  672. package/custom/node_modules/lodash.clonedeep/index.js +1748 -0
  673. package/custom/node_modules/lodash.clonedeep/package.json +17 -0
  674. package/custom/node_modules/lodash.isequal/LICENSE +47 -0
  675. package/custom/node_modules/lodash.isequal/README.md +18 -0
  676. package/custom/node_modules/lodash.isequal/index.js +1848 -0
  677. package/custom/node_modules/lodash.isequal/package.json +16 -0
  678. package/custom/node_modules/parchment/LICENSE +30 -0
  679. package/custom/node_modules/parchment/README.md +271 -0
  680. package/custom/node_modules/parchment/dist/parchment.d.ts +453 -0
  681. package/custom/node_modules/parchment/dist/parchment.js +847 -0
  682. package/custom/node_modules/parchment/dist/parchment.js.map +1 -0
  683. package/custom/node_modules/parchment/dist/parchment.umd.cjs +2 -0
  684. package/custom/node_modules/parchment/dist/parchment.umd.cjs.map +1 -0
  685. package/custom/node_modules/parchment/package.json +53 -0
  686. package/custom/node_modules/parchment/src/attributor/attributor.ts +62 -0
  687. package/custom/node_modules/parchment/src/attributor/class.ts +43 -0
  688. package/custom/node_modules/parchment/src/attributor/store.ts +79 -0
  689. package/custom/node_modules/parchment/src/attributor/style.ts +44 -0
  690. package/custom/node_modules/parchment/src/blot/abstract/blot.ts +128 -0
  691. package/custom/node_modules/parchment/src/blot/abstract/container.ts +48 -0
  692. package/custom/node_modules/parchment/src/blot/abstract/leaf.ts +57 -0
  693. package/custom/node_modules/parchment/src/blot/abstract/parent.ts +400 -0
  694. package/custom/node_modules/parchment/src/blot/abstract/shadow.ts +188 -0
  695. package/custom/node_modules/parchment/src/blot/block.ts +123 -0
  696. package/custom/node_modules/parchment/src/blot/embed.ts +34 -0
  697. package/custom/node_modules/parchment/src/blot/inline.ts +159 -0
  698. package/custom/node_modules/parchment/src/blot/scroll.ts +216 -0
  699. package/custom/node_modules/parchment/src/blot/text.ts +100 -0
  700. package/custom/node_modules/parchment/src/collection/linked-list.ts +201 -0
  701. package/custom/node_modules/parchment/src/collection/linked-node.ts +8 -0
  702. package/custom/node_modules/parchment/src/error.ts +12 -0
  703. package/custom/node_modules/parchment/src/parchment.ts +48 -0
  704. package/custom/node_modules/parchment/src/registry.ts +155 -0
  705. package/custom/node_modules/parchment/src/scope.ts +18 -0
  706. package/custom/node_modules/parchment/tsconfig.json +16 -0
  707. package/custom/node_modules/quill/LICENSE +31 -0
  708. package/custom/node_modules/quill/README.md +104 -0
  709. package/custom/node_modules/quill/assets/base.styl +309 -0
  710. package/custom/node_modules/quill/assets/bubble/toolbar.styl +14 -0
  711. package/custom/node_modules/quill/assets/bubble/tooltip.styl +49 -0
  712. package/custom/node_modules/quill/assets/bubble.styl +45 -0
  713. package/custom/node_modules/quill/assets/core.styl +215 -0
  714. package/custom/node_modules/quill/assets/favicon.png +0 -0
  715. package/custom/node_modules/quill/assets/icons/align-center.svg +5 -0
  716. package/custom/node_modules/quill/assets/icons/align-justify.svg +5 -0
  717. package/custom/node_modules/quill/assets/icons/align-left.svg +5 -0
  718. package/custom/node_modules/quill/assets/icons/align-right.svg +5 -0
  719. package/custom/node_modules/quill/assets/icons/attachment.svg +3 -0
  720. package/custom/node_modules/quill/assets/icons/audio.svg +5 -0
  721. package/custom/node_modules/quill/assets/icons/authorship.svg +5 -0
  722. package/custom/node_modules/quill/assets/icons/background.svg +52 -0
  723. package/custom/node_modules/quill/assets/icons/blockquote.svg +6 -0
  724. package/custom/node_modules/quill/assets/icons/bold.svg +4 -0
  725. package/custom/node_modules/quill/assets/icons/clean.svg +7 -0
  726. package/custom/node_modules/quill/assets/icons/code.svg +5 -0
  727. package/custom/node_modules/quill/assets/icons/color.svg +5 -0
  728. package/custom/node_modules/quill/assets/icons/comment.svg +3 -0
  729. package/custom/node_modules/quill/assets/icons/direction-ltr.svg +7 -0
  730. package/custom/node_modules/quill/assets/icons/direction-rtl.svg +7 -0
  731. package/custom/node_modules/quill/assets/icons/dropdown.svg +4 -0
  732. package/custom/node_modules/quill/assets/icons/embed.svg +3 -0
  733. package/custom/node_modules/quill/assets/icons/emoji.svg +6 -0
  734. package/custom/node_modules/quill/assets/icons/float-center.svg +5 -0
  735. package/custom/node_modules/quill/assets/icons/float-full.svg +5 -0
  736. package/custom/node_modules/quill/assets/icons/float-left.svg +7 -0
  737. package/custom/node_modules/quill/assets/icons/float-right.svg +7 -0
  738. package/custom/node_modules/quill/assets/icons/font.svg +5 -0
  739. package/custom/node_modules/quill/assets/icons/formula.svg +5 -0
  740. package/custom/node_modules/quill/assets/icons/hashtag.svg +6 -0
  741. package/custom/node_modules/quill/assets/icons/header-2.svg +3 -0
  742. package/custom/node_modules/quill/assets/icons/header-3.svg +3 -0
  743. package/custom/node_modules/quill/assets/icons/header-4.svg +3 -0
  744. package/custom/node_modules/quill/assets/icons/header-5.svg +3 -0
  745. package/custom/node_modules/quill/assets/icons/header-6.svg +3 -0
  746. package/custom/node_modules/quill/assets/icons/header.svg +3 -0
  747. package/custom/node_modules/quill/assets/icons/horizontal-rule.svg +4 -0
  748. package/custom/node_modules/quill/assets/icons/image.svg +5 -0
  749. package/custom/node_modules/quill/assets/icons/indent.svg +6 -0
  750. package/custom/node_modules/quill/assets/icons/italic.svg +5 -0
  751. package/custom/node_modules/quill/assets/icons/link.svg +5 -0
  752. package/custom/node_modules/quill/assets/icons/list-bullet.svg +8 -0
  753. package/custom/node_modules/quill/assets/icons/list-check.svg +8 -0
  754. package/custom/node_modules/quill/assets/icons/list-ordered.svg +9 -0
  755. package/custom/node_modules/quill/assets/icons/map.svg +5 -0
  756. package/custom/node_modules/quill/assets/icons/mention.svg +4 -0
  757. package/custom/node_modules/quill/assets/icons/more.svg +3 -0
  758. package/custom/node_modules/quill/assets/icons/outdent.svg +6 -0
  759. package/custom/node_modules/quill/assets/icons/redo.svg +4 -0
  760. package/custom/node_modules/quill/assets/icons/size-decrease.svg +5 -0
  761. package/custom/node_modules/quill/assets/icons/size-increase.svg +6 -0
  762. package/custom/node_modules/quill/assets/icons/size.svg +6 -0
  763. package/custom/node_modules/quill/assets/icons/spacing.svg +9 -0
  764. package/custom/node_modules/quill/assets/icons/speech.svg +6 -0
  765. package/custom/node_modules/quill/assets/icons/strike.svg +5 -0
  766. package/custom/node_modules/quill/assets/icons/subscript.svg +4 -0
  767. package/custom/node_modules/quill/assets/icons/superscript.svg +4 -0
  768. package/custom/node_modules/quill/assets/icons/table-border-all.svg +5 -0
  769. package/custom/node_modules/quill/assets/icons/table-border-bottom.svg +28 -0
  770. package/custom/node_modules/quill/assets/icons/table-border-left.svg +28 -0
  771. package/custom/node_modules/quill/assets/icons/table-border-none.svg +25 -0
  772. package/custom/node_modules/quill/assets/icons/table-border-outside.svg +35 -0
  773. package/custom/node_modules/quill/assets/icons/table-border-right.svg +28 -0
  774. package/custom/node_modules/quill/assets/icons/table-border-top.svg +28 -0
  775. package/custom/node_modules/quill/assets/icons/table-delete-cells.svg +13 -0
  776. package/custom/node_modules/quill/assets/icons/table-delete-columns.svg +8 -0
  777. package/custom/node_modules/quill/assets/icons/table-delete-rows.svg +9 -0
  778. package/custom/node_modules/quill/assets/icons/table-insert-cells.svg +13 -0
  779. package/custom/node_modules/quill/assets/icons/table-insert-columns.svg +8 -0
  780. package/custom/node_modules/quill/assets/icons/table-insert-rows.svg +9 -0
  781. package/custom/node_modules/quill/assets/icons/table-merge-cells.svg +4 -0
  782. package/custom/node_modules/quill/assets/icons/table-unmerge-cells.svg +7 -0
  783. package/custom/node_modules/quill/assets/icons/table.svg +11 -0
  784. package/custom/node_modules/quill/assets/icons/underline.svg +4 -0
  785. package/custom/node_modules/quill/assets/icons/undo.svg +4 -0
  786. package/custom/node_modules/quill/assets/icons/video.svg +14 -0
  787. package/custom/node_modules/quill/assets/snow/toolbar.styl +26 -0
  788. package/custom/node_modules/quill/assets/snow/tooltip.styl +53 -0
  789. package/custom/node_modules/quill/assets/snow.styl +18 -0
  790. package/custom/node_modules/quill/blots/block.d.ts +34 -0
  791. package/custom/node_modules/quill/blots/block.js +182 -0
  792. package/custom/node_modules/quill/blots/block.js.map +1 -0
  793. package/custom/node_modules/quill/blots/break.d.ts +8 -0
  794. package/custom/node_modules/quill/blots/break.js +21 -0
  795. package/custom/node_modules/quill/blots/break.js.map +1 -0
  796. package/custom/node_modules/quill/blots/container.d.ts +4 -0
  797. package/custom/node_modules/quill/blots/container.js +4 -0
  798. package/custom/node_modules/quill/blots/container.js.map +1 -0
  799. package/custom/node_modules/quill/blots/cursor.d.ts +26 -0
  800. package/custom/node_modules/quill/blots/cursor.js +170 -0
  801. package/custom/node_modules/quill/blots/cursor.js.map +1 -0
  802. package/custom/node_modules/quill/blots/embed.d.ts +18 -0
  803. package/custom/node_modules/quill/blots/embed.js +72 -0
  804. package/custom/node_modules/quill/blots/embed.js.map +1 -0
  805. package/custom/node_modules/quill/blots/inline.d.ts +12 -0
  806. package/custom/node_modules/quill/blots/inline.js +48 -0
  807. package/custom/node_modules/quill/blots/inline.js.map +1 -0
  808. package/custom/node_modules/quill/blots/scroll.d.ts +49 -0
  809. package/custom/node_modules/quill/blots/scroll.js +349 -0
  810. package/custom/node_modules/quill/blots/scroll.js.map +1 -0
  811. package/custom/node_modules/quill/blots/text.d.ts +5 -0
  812. package/custom/node_modules/quill/blots/text.js +17 -0
  813. package/custom/node_modules/quill/blots/text.js.map +1 -0
  814. package/custom/node_modules/quill/core/composition.d.ts +12 -0
  815. package/custom/node_modules/quill/core/composition.js +44 -0
  816. package/custom/node_modules/quill/core/composition.js.map +1 -0
  817. package/custom/node_modules/quill/core/editor.d.ts +28 -0
  818. package/custom/node_modules/quill/core/editor.js +403 -0
  819. package/custom/node_modules/quill/core/editor.js.map +1 -0
  820. package/custom/node_modules/quill/core/emitter.d.ts +33 -0
  821. package/custom/node_modules/quill/core/emitter.js +78 -0
  822. package/custom/node_modules/quill/core/emitter.js.map +1 -0
  823. package/custom/node_modules/quill/core/instances.d.ts +3 -0
  824. package/custom/node_modules/quill/core/instances.js +2 -0
  825. package/custom/node_modules/quill/core/instances.js.map +1 -0
  826. package/custom/node_modules/quill/core/logger.d.ts +7 -0
  827. package/custom/node_modules/quill/core/logger.js +24 -0
  828. package/custom/node_modules/quill/core/logger.js.map +1 -0
  829. package/custom/node_modules/quill/core/module.d.ts +8 -0
  830. package/custom/node_modules/quill/core/module.js +10 -0
  831. package/custom/node_modules/quill/core/module.js.map +1 -0
  832. package/custom/node_modules/quill/core/quill.d.ts +218 -0
  833. package/custom/node_modules/quill/core/quill.js +628 -0
  834. package/custom/node_modules/quill/core/quill.js.map +1 -0
  835. package/custom/node_modules/quill/core/selection.d.ts +74 -0
  836. package/custom/node_modules/quill/core/selection.js +374 -0
  837. package/custom/node_modules/quill/core/selection.js.map +1 -0
  838. package/custom/node_modules/quill/core/theme.d.ts +32 -0
  839. package/custom/node_modules/quill/core/theme.js +28 -0
  840. package/custom/node_modules/quill/core/theme.js.map +1 -0
  841. package/custom/node_modules/quill/core/utils/createRegistryWithFormats.d.ts +5 -0
  842. package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js +29 -0
  843. package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js.map +1 -0
  844. package/custom/node_modules/quill/core/utils/scrollRectIntoView.d.ts +8 -0
  845. package/custom/node_modules/quill/core/utils/scrollRectIntoView.js +75 -0
  846. package/custom/node_modules/quill/core/utils/scrollRectIntoView.js.map +1 -0
  847. package/custom/node_modules/quill/core.d.ts +7 -0
  848. package/custom/node_modules/quill/core.js +37 -0
  849. package/custom/node_modules/quill/core.js.map +1 -0
  850. package/custom/node_modules/quill/dist/quill.bubble.css +10 -0
  851. package/custom/node_modules/quill/dist/quill.bubble.css.map +1 -0
  852. package/custom/node_modules/quill/dist/quill.core.css +10 -0
  853. package/custom/node_modules/quill/dist/quill.core.css.map +1 -0
  854. package/custom/node_modules/quill/dist/quill.core.js +3 -0
  855. package/custom/node_modules/quill/dist/quill.core.js.LICENSE.txt +7 -0
  856. package/custom/node_modules/quill/dist/quill.core.js.map +1 -0
  857. package/custom/node_modules/quill/dist/quill.js +3 -0
  858. package/custom/node_modules/quill/dist/quill.js.LICENSE.txt +7 -0
  859. package/custom/node_modules/quill/dist/quill.js.map +1 -0
  860. package/custom/node_modules/quill/dist/quill.snow.css +10 -0
  861. package/custom/node_modules/quill/dist/quill.snow.css.map +1 -0
  862. package/custom/node_modules/quill/formats/align.d.ts +5 -0
  863. package/custom/node_modules/quill/formats/align.js +10 -0
  864. package/custom/node_modules/quill/formats/align.js.map +1 -0
  865. package/custom/node_modules/quill/formats/background.d.ts +5 -0
  866. package/custom/node_modules/quill/formats/background.js +10 -0
  867. package/custom/node_modules/quill/formats/background.js.map +1 -0
  868. package/custom/node_modules/quill/formats/blockquote.d.ts +6 -0
  869. package/custom/node_modules/quill/formats/blockquote.js +7 -0
  870. package/custom/node_modules/quill/formats/blockquote.js.map +1 -0
  871. package/custom/node_modules/quill/formats/bold.d.ts +11 -0
  872. package/custom/node_modules/quill/formats/bold.js +19 -0
  873. package/custom/node_modules/quill/formats/bold.js.map +1 -0
  874. package/custom/node_modules/quill/formats/code.d.ts +15 -0
  875. package/custom/node_modules/quill/formats/code.js +44 -0
  876. package/custom/node_modules/quill/formats/code.js.map +1 -0
  877. package/custom/node_modules/quill/formats/color.d.ts +7 -0
  878. package/custom/node_modules/quill/formats/color.js +18 -0
  879. package/custom/node_modules/quill/formats/color.js.map +1 -0
  880. package/custom/node_modules/quill/formats/direction.d.ts +5 -0
  881. package/custom/node_modules/quill/formats/direction.js +10 -0
  882. package/custom/node_modules/quill/formats/direction.js.map +1 -0
  883. package/custom/node_modules/quill/formats/font.d.ts +7 -0
  884. package/custom/node_modules/quill/formats/font.js +14 -0
  885. package/custom/node_modules/quill/formats/font.js.map +1 -0
  886. package/custom/node_modules/quill/formats/formula.d.ts +10 -0
  887. package/custom/node_modules/quill/formats/formula.js +33 -0
  888. package/custom/node_modules/quill/formats/formula.js.map +1 -0
  889. package/custom/node_modules/quill/formats/header.d.ts +7 -0
  890. package/custom/node_modules/quill/formats/header.js +10 -0
  891. package/custom/node_modules/quill/formats/header.js.map +1 -0
  892. package/custom/node_modules/quill/formats/image.d.ts +13 -0
  893. package/custom/node_modules/quill/formats/image.js +44 -0
  894. package/custom/node_modules/quill/formats/image.js.map +1 -0
  895. package/custom/node_modules/quill/formats/indent.d.ts +8 -0
  896. package/custom/node_modules/quill/formats/indent.js +30 -0
  897. package/custom/node_modules/quill/formats/indent.js.map +1 -0
  898. package/custom/node_modules/quill/formats/italic.d.ts +6 -0
  899. package/custom/node_modules/quill/formats/italic.js +7 -0
  900. package/custom/node_modules/quill/formats/italic.js.map +1 -0
  901. package/custom/node_modules/quill/formats/link.d.ts +13 -0
  902. package/custom/node_modules/quill/formats/link.js +36 -0
  903. package/custom/node_modules/quill/formats/link.js.map +1 -0
  904. package/custom/node_modules/quill/formats/list.d.ts +13 -0
  905. package/custom/node_modules/quill/formats/list.js +50 -0
  906. package/custom/node_modules/quill/formats/list.js.map +1 -0
  907. package/custom/node_modules/quill/formats/script.d.ts +8 -0
  908. package/custom/node_modules/quill/formats/script.js +21 -0
  909. package/custom/node_modules/quill/formats/script.js.map +1 -0
  910. package/custom/node_modules/quill/formats/size.d.ts +4 -0
  911. package/custom/node_modules/quill/formats/size.js +11 -0
  912. package/custom/node_modules/quill/formats/size.js.map +1 -0
  913. package/custom/node_modules/quill/formats/strike.d.ts +6 -0
  914. package/custom/node_modules/quill/formats/strike.js +7 -0
  915. package/custom/node_modules/quill/formats/strike.js.map +1 -0
  916. package/custom/node_modules/quill/formats/table.d.ts +45 -0
  917. package/custom/node_modules/quill/formats/table.js +176 -0
  918. package/custom/node_modules/quill/formats/table.js.map +1 -0
  919. package/custom/node_modules/quill/formats/underline.d.ts +6 -0
  920. package/custom/node_modules/quill/formats/underline.js +7 -0
  921. package/custom/node_modules/quill/formats/underline.js.map +1 -0
  922. package/custom/node_modules/quill/formats/video.d.ts +14 -0
  923. package/custom/node_modules/quill/formats/video.js +48 -0
  924. package/custom/node_modules/quill/formats/video.js.map +1 -0
  925. package/custom/node_modules/quill/modules/clipboard.d.ts +43 -0
  926. package/custom/node_modules/quill/modules/clipboard.js +475 -0
  927. package/custom/node_modules/quill/modules/clipboard.js.map +1 -0
  928. package/custom/node_modules/quill/modules/history.d.ts +36 -0
  929. package/custom/node_modules/quill/modules/history.js +178 -0
  930. package/custom/node_modules/quill/modules/history.js.map +1 -0
  931. package/custom/node_modules/quill/modules/input.d.ts +10 -0
  932. package/custom/node_modules/quill/modules/input.js +83 -0
  933. package/custom/node_modules/quill/modules/input.js.map +1 -0
  934. package/custom/node_modules/quill/modules/keyboard.d.ts +58 -0
  935. package/custom/node_modules/quill/modules/keyboard.js +713 -0
  936. package/custom/node_modules/quill/modules/keyboard.js.map +1 -0
  937. package/custom/node_modules/quill/modules/normalizeExternalHTML/index.d.ts +2 -0
  938. package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js +12 -0
  939. package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js.map +1 -0
  940. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
  941. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js +24 -0
  942. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +1 -0
  943. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
  944. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js +87 -0
  945. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js.map +1 -0
  946. package/custom/node_modules/quill/modules/syntax.d.ts +50 -0
  947. package/custom/node_modules/quill/modules/syntax.js +332 -0
  948. package/custom/node_modules/quill/modules/syntax.js.map +1 -0
  949. package/custom/node_modules/quill/modules/table.d.ts +20 -0
  950. package/custom/node_modules/quill/modules/table.js +125 -0
  951. package/custom/node_modules/quill/modules/table.js.map +1 -0
  952. package/custom/node_modules/quill/modules/tableEmbed.d.ts +27 -0
  953. package/custom/node_modules/quill/modules/tableEmbed.js +209 -0
  954. package/custom/node_modules/quill/modules/tableEmbed.js.map +1 -0
  955. package/custom/node_modules/quill/modules/toolbar.d.ts +24 -0
  956. package/custom/node_modules/quill/modules/toolbar.js +265 -0
  957. package/custom/node_modules/quill/modules/toolbar.js.map +1 -0
  958. package/custom/node_modules/quill/modules/uiNode.d.ts +19 -0
  959. package/custom/node_modules/quill/modules/uiNode.js +95 -0
  960. package/custom/node_modules/quill/modules/uiNode.js.map +1 -0
  961. package/custom/node_modules/quill/modules/uploader.d.ts +15 -0
  962. package/custom/node_modules/quill/modules/uploader.js +69 -0
  963. package/custom/node_modules/quill/modules/uploader.js.map +1 -0
  964. package/custom/node_modules/quill/package.json +100 -0
  965. package/custom/node_modules/quill/quill.d.ts +6 -0
  966. package/custom/node_modules/quill/quill.js +83 -0
  967. package/custom/node_modules/quill/quill.js.map +1 -0
  968. package/custom/node_modules/quill/themes/base.d.ts +35 -0
  969. package/custom/node_modules/quill/themes/base.js +257 -0
  970. package/custom/node_modules/quill/themes/base.js.map +1 -0
  971. package/custom/node_modules/quill/themes/bubble.d.ts +18 -0
  972. package/custom/node_modules/quill/themes/bubble.js +114 -0
  973. package/custom/node_modules/quill/themes/bubble.js.map +1 -0
  974. package/custom/node_modules/quill/themes/snow.d.ts +9 -0
  975. package/custom/node_modules/quill/themes/snow.js +122 -0
  976. package/custom/node_modules/quill/themes/snow.js.map +1 -0
  977. package/custom/node_modules/quill/types.d.js +2 -0
  978. package/custom/node_modules/quill/types.d.js.map +1 -0
  979. package/custom/node_modules/quill/ui/color-picker.d.ts +7 -0
  980. package/custom/node_modules/quill/ui/color-picker.js +30 -0
  981. package/custom/node_modules/quill/ui/color-picker.js.map +1 -0
  982. package/custom/node_modules/quill/ui/icon-picker.d.ts +7 -0
  983. package/custom/node_modules/quill/ui/icon-picker.js +22 -0
  984. package/custom/node_modules/quill/ui/icon-picker.js.map +1 -0
  985. package/custom/node_modules/quill/ui/icons.d.ts +49 -0
  986. package/custom/node_modules/quill/ui/icons.js +82 -0
  987. package/custom/node_modules/quill/ui/icons.js.map +1 -0
  988. package/custom/node_modules/quill/ui/picker.d.ts +16 -0
  989. package/custom/node_modules/quill/ui/picker.js +171 -0
  990. package/custom/node_modules/quill/ui/picker.js.map +1 -0
  991. package/custom/node_modules/quill/ui/tooltip.d.ts +12 -0
  992. package/custom/node_modules/quill/ui/tooltip.js +56 -0
  993. package/custom/node_modules/quill/ui/tooltip.js.map +1 -0
  994. package/custom/node_modules/quill-delta/LICENSE +14 -0
  995. package/custom/node_modules/quill-delta/README.md +672 -0
  996. package/custom/node_modules/quill-delta/dist/AttributeMap.d.ts +10 -0
  997. package/custom/node_modules/quill-delta/dist/AttributeMap.js +86 -0
  998. package/custom/node_modules/quill-delta/dist/AttributeMap.js.map +1 -0
  999. package/custom/node_modules/quill-delta/dist/Delta.d.ts +45 -0
  1000. package/custom/node_modules/quill-delta/dist/Delta.js +478 -0
  1001. package/custom/node_modules/quill-delta/dist/Delta.js.map +1 -0
  1002. package/custom/node_modules/quill-delta/dist/Op.d.ts +11 -0
  1003. package/custom/node_modules/quill-delta/dist/Op.js +22 -0
  1004. package/custom/node_modules/quill-delta/dist/Op.js.map +1 -0
  1005. package/custom/node_modules/quill-delta/dist/OpIterator.d.ts +13 -0
  1006. package/custom/node_modules/quill-delta/dist/OpIterator.js +106 -0
  1007. package/custom/node_modules/quill-delta/dist/OpIterator.js.map +1 -0
  1008. package/custom/node_modules/quill-delta/package.json +77 -0
  1009. package/custom/node_modules/quill-delta/src/AttributeMap.ts +101 -0
  1010. package/custom/node_modules/quill-delta/src/Delta.ts +573 -0
  1011. package/custom/node_modules/quill-delta/src/Op.ts +26 -0
  1012. package/custom/node_modules/quill-delta/src/OpIterator.ts +106 -0
  1013. package/custom/node_modules/quill-delta/tsconfig.json +15 -0
  1014. package/custom/quillEditor.vue +2 -2
  1015. package/dist/custom/quillEditor.vue +2 -2
  1016. package/dist/index.js +7 -3
  1017. package/index.ts +8 -5
  1018. package/package.json +1 -1
@@ -0,0 +1,475 @@
1
+ import { Attributor, BlockBlot, ClassAttributor, EmbedBlot, Scope, StyleAttributor } from 'parchment';
2
+ import Delta from 'quill-delta';
3
+ import { BlockEmbed } from '../blots/block.js';
4
+ import logger from '../core/logger.js';
5
+ import Module from '../core/module.js';
6
+ import Quill from '../core/quill.js';
7
+ import { AlignAttribute, AlignStyle } from '../formats/align.js';
8
+ import { BackgroundStyle } from '../formats/background.js';
9
+ import CodeBlock from '../formats/code.js';
10
+ import { ColorStyle } from '../formats/color.js';
11
+ import { DirectionAttribute, DirectionStyle } from '../formats/direction.js';
12
+ import { FontStyle } from '../formats/font.js';
13
+ import { SizeStyle } from '../formats/size.js';
14
+ import { deleteRange } from './keyboard.js';
15
+ import normalizeExternalHTML from './normalizeExternalHTML/index.js';
16
+ const debug = logger('quill:clipboard');
17
+ const CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['ol, ul', matchList], ['pre', matchCodeBlock], ['tr', matchTable], ['b', createMatchAlias('bold')], ['i', createMatchAlias('italic')], ['strike', createMatchAlias('strike')], ['style', matchIgnore]];
18
+ const ATTRIBUTE_ATTRIBUTORS = [AlignAttribute, DirectionAttribute].reduce((memo, attr) => {
19
+ memo[attr.keyName] = attr;
20
+ return memo;
21
+ }, {});
22
+ const STYLE_ATTRIBUTORS = [AlignStyle, BackgroundStyle, ColorStyle, DirectionStyle, FontStyle, SizeStyle].reduce((memo, attr) => {
23
+ memo[attr.keyName] = attr;
24
+ return memo;
25
+ }, {});
26
+ class Clipboard extends Module {
27
+ static DEFAULTS = {
28
+ matchers: []
29
+ };
30
+ constructor(quill, options) {
31
+ super(quill, options);
32
+ this.quill.root.addEventListener('copy', e => this.onCaptureCopy(e, false));
33
+ this.quill.root.addEventListener('cut', e => this.onCaptureCopy(e, true));
34
+ this.quill.root.addEventListener('paste', this.onCapturePaste.bind(this));
35
+ this.matchers = [];
36
+ CLIPBOARD_CONFIG.concat(this.options.matchers ?? []).forEach(_ref => {
37
+ let [selector, matcher] = _ref;
38
+ this.addMatcher(selector, matcher);
39
+ });
40
+ }
41
+ addMatcher(selector, matcher) {
42
+ this.matchers.push([selector, matcher]);
43
+ }
44
+ convert(_ref2) {
45
+ let {
46
+ html,
47
+ text
48
+ } = _ref2;
49
+ let formats = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
50
+ if (formats[CodeBlock.blotName]) {
51
+ return new Delta().insert(text || '', {
52
+ [CodeBlock.blotName]: formats[CodeBlock.blotName]
53
+ });
54
+ }
55
+ if (!html) {
56
+ return new Delta().insert(text || '', formats);
57
+ }
58
+ const delta = this.convertHTML(html);
59
+ // Remove trailing newline
60
+ if (deltaEndsWith(delta, '\n') && (delta.ops[delta.ops.length - 1].attributes == null || formats.table)) {
61
+ return delta.compose(new Delta().retain(delta.length() - 1).delete(1));
62
+ }
63
+ return delta;
64
+ }
65
+ normalizeHTML(doc) {
66
+ normalizeExternalHTML(doc);
67
+ }
68
+ convertHTML(html) {
69
+ const doc = new DOMParser().parseFromString(html, 'text/html');
70
+ this.normalizeHTML(doc);
71
+ const container = doc.body;
72
+ const nodeMatches = new WeakMap();
73
+ const [elementMatchers, textMatchers] = this.prepareMatching(container, nodeMatches);
74
+ return traverse(this.quill.scroll, container, elementMatchers, textMatchers, nodeMatches);
75
+ }
76
+ dangerouslyPasteHTML(index, html) {
77
+ let source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Quill.sources.API;
78
+ if (typeof index === 'string') {
79
+ const delta = this.convert({
80
+ html: index,
81
+ text: ''
82
+ });
83
+ // @ts-expect-error
84
+ this.quill.setContents(delta, html);
85
+ this.quill.setSelection(0, Quill.sources.SILENT);
86
+ } else {
87
+ const paste = this.convert({
88
+ html,
89
+ text: ''
90
+ });
91
+ this.quill.updateContents(new Delta().retain(index).concat(paste), source);
92
+ this.quill.setSelection(index + paste.length(), Quill.sources.SILENT);
93
+ }
94
+ }
95
+ onCaptureCopy(e) {
96
+ let isCut = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
97
+ if (e.defaultPrevented) return;
98
+ e.preventDefault();
99
+ const [range] = this.quill.selection.getRange();
100
+ if (range == null) return;
101
+ const {
102
+ html,
103
+ text
104
+ } = this.onCopy(range, isCut);
105
+ e.clipboardData?.setData('text/plain', text);
106
+ e.clipboardData?.setData('text/html', html);
107
+ if (isCut) {
108
+ deleteRange({
109
+ range,
110
+ quill: this.quill
111
+ });
112
+ }
113
+ }
114
+
115
+ /*
116
+ * https://www.iana.org/assignments/media-types/text/uri-list
117
+ */
118
+ normalizeURIList(urlList) {
119
+ return urlList.split(/\r?\n/)
120
+ // Ignore all comments
121
+ .filter(url => url[0] !== '#').join('\n');
122
+ }
123
+ onCapturePaste(e) {
124
+ if (e.defaultPrevented || !this.quill.isEnabled()) return;
125
+ e.preventDefault();
126
+ const range = this.quill.getSelection(true);
127
+ if (range == null) return;
128
+ const html = e.clipboardData?.getData('text/html');
129
+ let text = e.clipboardData?.getData('text/plain');
130
+ if (!html && !text) {
131
+ const urlList = e.clipboardData?.getData('text/uri-list');
132
+ if (urlList) {
133
+ text = this.normalizeURIList(urlList);
134
+ }
135
+ }
136
+ const files = Array.from(e.clipboardData?.files || []);
137
+ if (!html && files.length > 0) {
138
+ this.quill.uploader.upload(range, files);
139
+ return;
140
+ }
141
+ if (html && files.length > 0) {
142
+ const doc = new DOMParser().parseFromString(html, 'text/html');
143
+ if (doc.body.childElementCount === 1 && doc.body.firstElementChild?.tagName === 'IMG') {
144
+ this.quill.uploader.upload(range, files);
145
+ return;
146
+ }
147
+ }
148
+ this.onPaste(range, {
149
+ html,
150
+ text
151
+ });
152
+ }
153
+ onCopy(range) {
154
+ const text = this.quill.getText(range);
155
+ const html = this.quill.getSemanticHTML(range);
156
+ return {
157
+ html,
158
+ text
159
+ };
160
+ }
161
+ onPaste(range, _ref3) {
162
+ let {
163
+ text,
164
+ html
165
+ } = _ref3;
166
+ const formats = this.quill.getFormat(range.index);
167
+ const pastedDelta = this.convert({
168
+ text,
169
+ html
170
+ }, formats);
171
+ debug.log('onPaste', pastedDelta, {
172
+ text,
173
+ html
174
+ });
175
+ const delta = new Delta().retain(range.index).delete(range.length).concat(pastedDelta);
176
+ this.quill.updateContents(delta, Quill.sources.USER);
177
+ // range.length contributes to delta.length()
178
+ this.quill.setSelection(delta.length() - range.length, Quill.sources.SILENT);
179
+ this.quill.scrollSelectionIntoView();
180
+ }
181
+ prepareMatching(container, nodeMatches) {
182
+ const elementMatchers = [];
183
+ const textMatchers = [];
184
+ this.matchers.forEach(pair => {
185
+ const [selector, matcher] = pair;
186
+ switch (selector) {
187
+ case Node.TEXT_NODE:
188
+ textMatchers.push(matcher);
189
+ break;
190
+ case Node.ELEMENT_NODE:
191
+ elementMatchers.push(matcher);
192
+ break;
193
+ default:
194
+ Array.from(container.querySelectorAll(selector)).forEach(node => {
195
+ if (nodeMatches.has(node)) {
196
+ const matches = nodeMatches.get(node);
197
+ matches?.push(matcher);
198
+ } else {
199
+ nodeMatches.set(node, [matcher]);
200
+ }
201
+ });
202
+ break;
203
+ }
204
+ });
205
+ return [elementMatchers, textMatchers];
206
+ }
207
+ }
208
+ function applyFormat(delta, format, value, scroll) {
209
+ if (!scroll.query(format)) {
210
+ return delta;
211
+ }
212
+ return delta.reduce((newDelta, op) => {
213
+ if (!op.insert) return newDelta;
214
+ if (op.attributes && op.attributes[format]) {
215
+ return newDelta.push(op);
216
+ }
217
+ const formats = value ? {
218
+ [format]: value
219
+ } : {};
220
+ return newDelta.insert(op.insert, {
221
+ ...formats,
222
+ ...op.attributes
223
+ });
224
+ }, new Delta());
225
+ }
226
+ function deltaEndsWith(delta, text) {
227
+ let endText = '';
228
+ for (let i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i // eslint-disable-line no-plusplus
229
+ ) {
230
+ const op = delta.ops[i];
231
+ if (typeof op.insert !== 'string') break;
232
+ endText = op.insert + endText;
233
+ }
234
+ return endText.slice(-1 * text.length) === text;
235
+ }
236
+ function isLine(node, scroll) {
237
+ if (!(node instanceof Element)) return false;
238
+ const match = scroll.query(node);
239
+ // @ts-expect-error
240
+ if (match && match.prototype instanceof EmbedBlot) return false;
241
+ return ['address', 'article', 'blockquote', 'canvas', 'dd', 'div', 'dl', 'dt', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'iframe', 'li', 'main', 'nav', 'ol', 'output', 'p', 'pre', 'section', 'table', 'td', 'tr', 'ul', 'video'].includes(node.tagName.toLowerCase());
242
+ }
243
+ function isBetweenInlineElements(node, scroll) {
244
+ return node.previousElementSibling && node.nextElementSibling && !isLine(node.previousElementSibling, scroll) && !isLine(node.nextElementSibling, scroll);
245
+ }
246
+ const preNodes = new WeakMap();
247
+ function isPre(node) {
248
+ if (node == null) return false;
249
+ if (!preNodes.has(node)) {
250
+ // @ts-expect-error
251
+ if (node.tagName === 'PRE') {
252
+ preNodes.set(node, true);
253
+ } else {
254
+ preNodes.set(node, isPre(node.parentNode));
255
+ }
256
+ }
257
+ return preNodes.get(node);
258
+ }
259
+ function traverse(scroll, node, elementMatchers, textMatchers, nodeMatches) {
260
+ // Post-order
261
+ if (node.nodeType === node.TEXT_NODE) {
262
+ return textMatchers.reduce((delta, matcher) => {
263
+ return matcher(node, delta, scroll);
264
+ }, new Delta());
265
+ }
266
+ if (node.nodeType === node.ELEMENT_NODE) {
267
+ return Array.from(node.childNodes || []).reduce((delta, childNode) => {
268
+ let childrenDelta = traverse(scroll, childNode, elementMatchers, textMatchers, nodeMatches);
269
+ if (childNode.nodeType === node.ELEMENT_NODE) {
270
+ childrenDelta = elementMatchers.reduce((reducedDelta, matcher) => {
271
+ return matcher(childNode, reducedDelta, scroll);
272
+ }, childrenDelta);
273
+ childrenDelta = (nodeMatches.get(childNode) || []).reduce((reducedDelta, matcher) => {
274
+ return matcher(childNode, reducedDelta, scroll);
275
+ }, childrenDelta);
276
+ }
277
+ return delta.concat(childrenDelta);
278
+ }, new Delta());
279
+ }
280
+ return new Delta();
281
+ }
282
+ function createMatchAlias(format) {
283
+ return (_node, delta, scroll) => {
284
+ return applyFormat(delta, format, true, scroll);
285
+ };
286
+ }
287
+ function matchAttributor(node, delta, scroll) {
288
+ const attributes = Attributor.keys(node);
289
+ const classes = ClassAttributor.keys(node);
290
+ const styles = StyleAttributor.keys(node);
291
+ const formats = {};
292
+ attributes.concat(classes).concat(styles).forEach(name => {
293
+ let attr = scroll.query(name, Scope.ATTRIBUTE);
294
+ if (attr != null) {
295
+ formats[attr.attrName] = attr.value(node);
296
+ if (formats[attr.attrName]) return;
297
+ }
298
+ attr = ATTRIBUTE_ATTRIBUTORS[name];
299
+ if (attr != null && (attr.attrName === name || attr.keyName === name)) {
300
+ formats[attr.attrName] = attr.value(node) || undefined;
301
+ }
302
+ attr = STYLE_ATTRIBUTORS[name];
303
+ if (attr != null && (attr.attrName === name || attr.keyName === name)) {
304
+ attr = STYLE_ATTRIBUTORS[name];
305
+ formats[attr.attrName] = attr.value(node) || undefined;
306
+ }
307
+ });
308
+ return Object.entries(formats).reduce((newDelta, _ref4) => {
309
+ let [name, value] = _ref4;
310
+ return applyFormat(newDelta, name, value, scroll);
311
+ }, delta);
312
+ }
313
+ function matchBlot(node, delta, scroll) {
314
+ const match = scroll.query(node);
315
+ if (match == null) return delta;
316
+ // @ts-expect-error
317
+ if (match.prototype instanceof EmbedBlot) {
318
+ const embed = {};
319
+ // @ts-expect-error
320
+ const value = match.value(node);
321
+ if (value != null) {
322
+ // @ts-expect-error
323
+ embed[match.blotName] = value;
324
+ // @ts-expect-error
325
+ return new Delta().insert(embed, match.formats(node, scroll));
326
+ }
327
+ } else {
328
+ // @ts-expect-error
329
+ if (match.prototype instanceof BlockBlot && !deltaEndsWith(delta, '\n')) {
330
+ delta.insert('\n');
331
+ }
332
+ if ('blotName' in match && 'formats' in match && typeof match.formats === 'function') {
333
+ return applyFormat(delta, match.blotName, match.formats(node, scroll), scroll);
334
+ }
335
+ }
336
+ return delta;
337
+ }
338
+ function matchBreak(node, delta) {
339
+ if (!deltaEndsWith(delta, '\n')) {
340
+ delta.insert('\n');
341
+ }
342
+ return delta;
343
+ }
344
+ function matchCodeBlock(node, delta, scroll) {
345
+ const match = scroll.query('code-block');
346
+ const language = match && 'formats' in match && typeof match.formats === 'function' ? match.formats(node, scroll) : true;
347
+ return applyFormat(delta, 'code-block', language, scroll);
348
+ }
349
+ function matchIgnore() {
350
+ return new Delta();
351
+ }
352
+ function matchIndent(node, delta, scroll) {
353
+ const match = scroll.query(node);
354
+ if (match == null ||
355
+ // @ts-expect-error
356
+ match.blotName !== 'list' || !deltaEndsWith(delta, '\n')) {
357
+ return delta;
358
+ }
359
+ let indent = -1;
360
+ let parent = node.parentNode;
361
+ while (parent != null) {
362
+ // @ts-expect-error
363
+ if (['OL', 'UL'].includes(parent.tagName)) {
364
+ indent += 1;
365
+ }
366
+ parent = parent.parentNode;
367
+ }
368
+ if (indent <= 0) return delta;
369
+ return delta.reduce((composed, op) => {
370
+ if (!op.insert) return composed;
371
+ if (op.attributes && typeof op.attributes.indent === 'number') {
372
+ return composed.push(op);
373
+ }
374
+ return composed.insert(op.insert, {
375
+ indent,
376
+ ...(op.attributes || {})
377
+ });
378
+ }, new Delta());
379
+ }
380
+ function matchList(node, delta, scroll) {
381
+ const element = node;
382
+ let list = element.tagName === 'OL' ? 'ordered' : 'bullet';
383
+ const checkedAttr = element.getAttribute('data-checked');
384
+ if (checkedAttr) {
385
+ list = checkedAttr === 'true' ? 'checked' : 'unchecked';
386
+ }
387
+ return applyFormat(delta, 'list', list, scroll);
388
+ }
389
+ function matchNewline(node, delta, scroll) {
390
+ if (!deltaEndsWith(delta, '\n')) {
391
+ if (isLine(node, scroll) && (node.childNodes.length > 0 || node instanceof HTMLParagraphElement)) {
392
+ return delta.insert('\n');
393
+ }
394
+ if (delta.length() > 0 && node.nextSibling) {
395
+ let nextSibling = node.nextSibling;
396
+ while (nextSibling != null) {
397
+ if (isLine(nextSibling, scroll)) {
398
+ return delta.insert('\n');
399
+ }
400
+ const match = scroll.query(nextSibling);
401
+ // @ts-expect-error
402
+ if (match && match.prototype instanceof BlockEmbed) {
403
+ return delta.insert('\n');
404
+ }
405
+ nextSibling = nextSibling.firstChild;
406
+ }
407
+ }
408
+ }
409
+ return delta;
410
+ }
411
+ function matchStyles(node, delta, scroll) {
412
+ const formats = {};
413
+ const style = node.style || {};
414
+ if (style.fontStyle === 'italic') {
415
+ formats.italic = true;
416
+ }
417
+ if (style.textDecoration === 'underline') {
418
+ formats.underline = true;
419
+ }
420
+ if (style.textDecoration === 'line-through') {
421
+ formats.strike = true;
422
+ }
423
+ if (style.fontWeight?.startsWith('bold') ||
424
+ // @ts-expect-error Fix me later
425
+ parseInt(style.fontWeight, 10) >= 700) {
426
+ formats.bold = true;
427
+ }
428
+ delta = Object.entries(formats).reduce((newDelta, _ref5) => {
429
+ let [name, value] = _ref5;
430
+ return applyFormat(newDelta, name, value, scroll);
431
+ }, delta);
432
+ // @ts-expect-error
433
+ if (parseFloat(style.textIndent || 0) > 0) {
434
+ // Could be 0.5in
435
+ return new Delta().insert('\t').concat(delta);
436
+ }
437
+ return delta;
438
+ }
439
+ function matchTable(node, delta, scroll) {
440
+ const table = node.parentElement?.tagName === 'TABLE' ? node.parentElement : node.parentElement?.parentElement;
441
+ if (table != null) {
442
+ const rows = Array.from(table.querySelectorAll('tr'));
443
+ const row = rows.indexOf(node) + 1;
444
+ return applyFormat(delta, 'table', row, scroll);
445
+ }
446
+ return delta;
447
+ }
448
+ function matchText(node, delta, scroll) {
449
+ // @ts-expect-error
450
+ let text = node.data;
451
+ // Word represents empty line with <o:p>&nbsp;</o:p>
452
+ if (node.parentElement?.tagName === 'O:P') {
453
+ return delta.insert(text.trim());
454
+ }
455
+ if (!isPre(node)) {
456
+ if (text.trim().length === 0 && text.includes('\n') && !isBetweenInlineElements(node, scroll)) {
457
+ return delta;
458
+ }
459
+ const replacer = (collapse, match) => {
460
+ const replaced = match.replace(/[^\u00a0]/g, ''); // \u00a0 is nbsp;
461
+ return replaced.length < 1 && collapse ? ' ' : replaced;
462
+ };
463
+ text = text.replace(/\r\n/g, ' ').replace(/\n/g, ' ');
464
+ text = text.replace(/\s\s+/g, replacer.bind(replacer, true)); // collapse whitespace
465
+ if (node.previousSibling == null && node.parentElement != null && isLine(node.parentElement, scroll) || node.previousSibling instanceof Element && isLine(node.previousSibling, scroll)) {
466
+ text = text.replace(/^\s+/, replacer.bind(replacer, false));
467
+ }
468
+ if (node.nextSibling == null && node.parentElement != null && isLine(node.parentElement, scroll) || node.nextSibling instanceof Element && isLine(node.nextSibling, scroll)) {
469
+ text = text.replace(/\s+$/, replacer.bind(replacer, false));
470
+ }
471
+ }
472
+ return delta.insert(text);
473
+ }
474
+ export { Clipboard as default, matchAttributor, matchBlot, matchNewline, matchText, traverse };
475
+ //# sourceMappingURL=clipboard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipboard.js","names":["Attributor","BlockBlot","ClassAttributor","EmbedBlot","Scope","StyleAttributor","Delta","BlockEmbed","logger","Module","Quill","AlignAttribute","AlignStyle","BackgroundStyle","CodeBlock","ColorStyle","DirectionAttribute","DirectionStyle","FontStyle","SizeStyle","deleteRange","normalizeExternalHTML","debug","CLIPBOARD_CONFIG","Node","TEXT_NODE","matchText","matchNewline","matchBreak","ELEMENT_NODE","matchBlot","matchAttributor","matchStyles","matchIndent","matchList","matchCodeBlock","matchTable","createMatchAlias","matchIgnore","ATTRIBUTE_ATTRIBUTORS","reduce","memo","attr","keyName","STYLE_ATTRIBUTORS","Clipboard","DEFAULTS","matchers","constructor","quill","options","root","addEventListener","e","onCaptureCopy","onCapturePaste","bind","concat","forEach","_ref","selector","matcher","addMatcher","push","convert","_ref2","html","text","formats","arguments","length","undefined","blotName","insert","delta","convertHTML","deltaEndsWith","ops","attributes","table","compose","retain","delete","normalizeHTML","doc","DOMParser","parseFromString","container","body","nodeMatches","WeakMap","elementMatchers","textMatchers","prepareMatching","traverse","scroll","dangerouslyPasteHTML","index","source","sources","API","setContents","setSelection","SILENT","paste","updateContents","isCut","defaultPrevented","preventDefault","range","selection","getRange","onCopy","clipboardData","setData","normalizeURIList","urlList","split","filter","url","join","isEnabled","getSelection","getData","files","Array","from","uploader","upload","childElementCount","firstElementChild","tagName","onPaste","getText","getSemanticHTML","_ref3","getFormat","pastedDelta","log","USER","scrollSelectionIntoView","pair","querySelectorAll","node","has","matches","get","set","applyFormat","format","value","query","newDelta","op","endText","i","slice","isLine","Element","match","prototype","includes","toLowerCase","isBetweenInlineElements","previousElementSibling","nextElementSibling","preNodes","isPre","parentNode","nodeType","childNodes","childNode","childrenDelta","reducedDelta","_node","keys","classes","styles","name","ATTRIBUTE","attrName","Object","entries","_ref4","embed","language","indent","parent","composed","element","list","checkedAttr","getAttribute","HTMLParagraphElement","nextSibling","firstChild","style","fontStyle","italic","textDecoration","underline","strike","fontWeight","startsWith","parseInt","bold","_ref5","parseFloat","textIndent","parentElement","rows","row","indexOf","data","trim","replacer","collapse","replaced","replace","previousSibling","default"],"sources":["../../src/modules/clipboard.ts"],"sourcesContent":["import type { ScrollBlot } from 'parchment';\nimport {\n Attributor,\n BlockBlot,\n ClassAttributor,\n EmbedBlot,\n Scope,\n StyleAttributor,\n} from 'parchment';\nimport Delta from 'quill-delta';\nimport { BlockEmbed } from '../blots/block.js';\nimport type { EmitterSource } from '../core/emitter.js';\nimport logger from '../core/logger.js';\nimport Module from '../core/module.js';\nimport Quill from '../core/quill.js';\nimport type { Range } from '../core/selection.js';\nimport { AlignAttribute, AlignStyle } from '../formats/align.js';\nimport { BackgroundStyle } from '../formats/background.js';\nimport CodeBlock from '../formats/code.js';\nimport { ColorStyle } from '../formats/color.js';\nimport { DirectionAttribute, DirectionStyle } from '../formats/direction.js';\nimport { FontStyle } from '../formats/font.js';\nimport { SizeStyle } from '../formats/size.js';\nimport { deleteRange } from './keyboard.js';\nimport normalizeExternalHTML from './normalizeExternalHTML/index.js';\n\nconst debug = logger('quill:clipboard');\n\ntype Selector = string | Node['TEXT_NODE'] | Node['ELEMENT_NODE'];\ntype Matcher = (node: Node, delta: Delta, scroll: ScrollBlot) => Delta;\n\nconst CLIPBOARD_CONFIG: [Selector, Matcher][] = [\n [Node.TEXT_NODE, matchText],\n [Node.TEXT_NODE, matchNewline],\n ['br', matchBreak],\n [Node.ELEMENT_NODE, matchNewline],\n [Node.ELEMENT_NODE, matchBlot],\n [Node.ELEMENT_NODE, matchAttributor],\n [Node.ELEMENT_NODE, matchStyles],\n ['li', matchIndent],\n ['ol, ul', matchList],\n ['pre', matchCodeBlock],\n ['tr', matchTable],\n ['b', createMatchAlias('bold')],\n ['i', createMatchAlias('italic')],\n ['strike', createMatchAlias('strike')],\n ['style', matchIgnore],\n];\n\nconst ATTRIBUTE_ATTRIBUTORS = [AlignAttribute, DirectionAttribute].reduce(\n (memo: Record<string, Attributor>, attr) => {\n memo[attr.keyName] = attr;\n return memo;\n },\n {},\n);\n\nconst STYLE_ATTRIBUTORS = [\n AlignStyle,\n BackgroundStyle,\n ColorStyle,\n DirectionStyle,\n FontStyle,\n SizeStyle,\n].reduce((memo: Record<string, Attributor>, attr) => {\n memo[attr.keyName] = attr;\n return memo;\n}, {});\n\ninterface ClipboardOptions {\n matchers: [Selector, Matcher][];\n}\n\nclass Clipboard extends Module<ClipboardOptions> {\n static DEFAULTS: ClipboardOptions = {\n matchers: [],\n };\n\n matchers: [Selector, Matcher][];\n\n constructor(quill: Quill, options: Partial<ClipboardOptions>) {\n super(quill, options);\n this.quill.root.addEventListener('copy', (e) =>\n this.onCaptureCopy(e, false),\n );\n this.quill.root.addEventListener('cut', (e) => this.onCaptureCopy(e, true));\n this.quill.root.addEventListener('paste', this.onCapturePaste.bind(this));\n this.matchers = [];\n CLIPBOARD_CONFIG.concat(this.options.matchers ?? []).forEach(\n ([selector, matcher]) => {\n this.addMatcher(selector, matcher);\n },\n );\n }\n\n addMatcher(selector: Selector, matcher: Matcher) {\n this.matchers.push([selector, matcher]);\n }\n\n convert(\n { html, text }: { html?: string; text?: string },\n formats: Record<string, unknown> = {},\n ) {\n if (formats[CodeBlock.blotName]) {\n return new Delta().insert(text || '', {\n [CodeBlock.blotName]: formats[CodeBlock.blotName],\n });\n }\n if (!html) {\n return new Delta().insert(text || '', formats);\n }\n const delta = this.convertHTML(html);\n // Remove trailing newline\n if (\n deltaEndsWith(delta, '\\n') &&\n (delta.ops[delta.ops.length - 1].attributes == null || formats.table)\n ) {\n return delta.compose(new Delta().retain(delta.length() - 1).delete(1));\n }\n return delta;\n }\n\n protected normalizeHTML(doc: Document) {\n normalizeExternalHTML(doc);\n }\n\n protected convertHTML(html: string) {\n const doc = new DOMParser().parseFromString(html, 'text/html');\n this.normalizeHTML(doc);\n const container = doc.body;\n const nodeMatches = new WeakMap();\n const [elementMatchers, textMatchers] = this.prepareMatching(\n container,\n nodeMatches,\n );\n return traverse(\n this.quill.scroll,\n container,\n elementMatchers,\n textMatchers,\n nodeMatches,\n );\n }\n\n dangerouslyPasteHTML(html: string, source?: EmitterSource): void;\n dangerouslyPasteHTML(\n index: number,\n html: string,\n source?: EmitterSource,\n ): void;\n dangerouslyPasteHTML(\n index: number | string,\n html?: string,\n source: EmitterSource = Quill.sources.API,\n ) {\n if (typeof index === 'string') {\n const delta = this.convert({ html: index, text: '' });\n // @ts-expect-error\n this.quill.setContents(delta, html);\n this.quill.setSelection(0, Quill.sources.SILENT);\n } else {\n const paste = this.convert({ html, text: '' });\n this.quill.updateContents(\n new Delta().retain(index).concat(paste),\n source,\n );\n this.quill.setSelection(index + paste.length(), Quill.sources.SILENT);\n }\n }\n\n onCaptureCopy(e: ClipboardEvent, isCut = false) {\n if (e.defaultPrevented) return;\n e.preventDefault();\n const [range] = this.quill.selection.getRange();\n if (range == null) return;\n const { html, text } = this.onCopy(range, isCut);\n e.clipboardData?.setData('text/plain', text);\n e.clipboardData?.setData('text/html', html);\n if (isCut) {\n deleteRange({ range, quill: this.quill });\n }\n }\n\n /*\n * https://www.iana.org/assignments/media-types/text/uri-list\n */\n private normalizeURIList(urlList: string) {\n return (\n urlList\n .split(/\\r?\\n/)\n // Ignore all comments\n .filter((url) => url[0] !== '#')\n .join('\\n')\n );\n }\n\n onCapturePaste(e: ClipboardEvent) {\n if (e.defaultPrevented || !this.quill.isEnabled()) return;\n e.preventDefault();\n const range = this.quill.getSelection(true);\n if (range == null) return;\n const html = e.clipboardData?.getData('text/html');\n let text = e.clipboardData?.getData('text/plain');\n if (!html && !text) {\n const urlList = e.clipboardData?.getData('text/uri-list');\n if (urlList) {\n text = this.normalizeURIList(urlList);\n }\n }\n const files = Array.from(e.clipboardData?.files || []);\n if (!html && files.length > 0) {\n this.quill.uploader.upload(range, files);\n return;\n }\n if (html && files.length > 0) {\n const doc = new DOMParser().parseFromString(html, 'text/html');\n if (\n doc.body.childElementCount === 1 &&\n doc.body.firstElementChild?.tagName === 'IMG'\n ) {\n this.quill.uploader.upload(range, files);\n return;\n }\n }\n this.onPaste(range, { html, text });\n }\n\n onCopy(range: Range, isCut: boolean): { html: string; text: string };\n onCopy(range: Range) {\n const text = this.quill.getText(range);\n const html = this.quill.getSemanticHTML(range);\n return { html, text };\n }\n\n onPaste(range: Range, { text, html }: { text?: string; html?: string }) {\n const formats = this.quill.getFormat(range.index);\n const pastedDelta = this.convert({ text, html }, formats);\n debug.log('onPaste', pastedDelta, { text, html });\n const delta = new Delta()\n .retain(range.index)\n .delete(range.length)\n .concat(pastedDelta);\n this.quill.updateContents(delta, Quill.sources.USER);\n // range.length contributes to delta.length()\n this.quill.setSelection(\n delta.length() - range.length,\n Quill.sources.SILENT,\n );\n this.quill.scrollSelectionIntoView();\n }\n\n prepareMatching(container: Element, nodeMatches: WeakMap<Node, Matcher[]>) {\n const elementMatchers: Matcher[] = [];\n const textMatchers: Matcher[] = [];\n this.matchers.forEach((pair) => {\n const [selector, matcher] = pair;\n switch (selector) {\n case Node.TEXT_NODE:\n textMatchers.push(matcher);\n break;\n case Node.ELEMENT_NODE:\n elementMatchers.push(matcher);\n break;\n default:\n Array.from(container.querySelectorAll(selector)).forEach((node) => {\n if (nodeMatches.has(node)) {\n const matches = nodeMatches.get(node);\n matches?.push(matcher);\n } else {\n nodeMatches.set(node, [matcher]);\n }\n });\n break;\n }\n });\n return [elementMatchers, textMatchers];\n }\n}\n\nfunction applyFormat(\n delta: Delta,\n format: string,\n value: unknown,\n scroll: ScrollBlot,\n): Delta {\n if (!scroll.query(format)) {\n return delta;\n }\n\n return delta.reduce((newDelta, op) => {\n if (!op.insert) return newDelta;\n if (op.attributes && op.attributes[format]) {\n return newDelta.push(op);\n }\n const formats = value ? { [format]: value } : {};\n return newDelta.insert(op.insert, { ...formats, ...op.attributes });\n }, new Delta());\n}\n\nfunction deltaEndsWith(delta: Delta, text: string) {\n let endText = '';\n for (\n let i = delta.ops.length - 1;\n i >= 0 && endText.length < text.length;\n --i // eslint-disable-line no-plusplus\n ) {\n const op = delta.ops[i];\n if (typeof op.insert !== 'string') break;\n endText = op.insert + endText;\n }\n return endText.slice(-1 * text.length) === text;\n}\n\nfunction isLine(node: Node, scroll: ScrollBlot) {\n if (!(node instanceof Element)) return false;\n const match = scroll.query(node);\n // @ts-expect-error\n if (match && match.prototype instanceof EmbedBlot) return false;\n\n return [\n 'address',\n 'article',\n 'blockquote',\n 'canvas',\n 'dd',\n 'div',\n 'dl',\n 'dt',\n 'fieldset',\n 'figcaption',\n 'figure',\n 'footer',\n 'form',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'header',\n 'iframe',\n 'li',\n 'main',\n 'nav',\n 'ol',\n 'output',\n 'p',\n 'pre',\n 'section',\n 'table',\n 'td',\n 'tr',\n 'ul',\n 'video',\n ].includes(node.tagName.toLowerCase());\n}\n\nfunction isBetweenInlineElements(node: HTMLElement, scroll: ScrollBlot) {\n return (\n node.previousElementSibling &&\n node.nextElementSibling &&\n !isLine(node.previousElementSibling, scroll) &&\n !isLine(node.nextElementSibling, scroll)\n );\n}\n\nconst preNodes = new WeakMap();\nfunction isPre(node: Node | null) {\n if (node == null) return false;\n if (!preNodes.has(node)) {\n // @ts-expect-error\n if (node.tagName === 'PRE') {\n preNodes.set(node, true);\n } else {\n preNodes.set(node, isPre(node.parentNode));\n }\n }\n return preNodes.get(node);\n}\n\nfunction traverse(\n scroll: ScrollBlot,\n node: ChildNode,\n elementMatchers: Matcher[],\n textMatchers: Matcher[],\n nodeMatches: WeakMap<Node, Matcher[]>,\n): Delta {\n // Post-order\n if (node.nodeType === node.TEXT_NODE) {\n return textMatchers.reduce((delta: Delta, matcher) => {\n return matcher(node, delta, scroll);\n }, new Delta());\n }\n if (node.nodeType === node.ELEMENT_NODE) {\n return Array.from(node.childNodes || []).reduce((delta, childNode) => {\n let childrenDelta = traverse(\n scroll,\n childNode,\n elementMatchers,\n textMatchers,\n nodeMatches,\n );\n if (childNode.nodeType === node.ELEMENT_NODE) {\n childrenDelta = elementMatchers.reduce((reducedDelta, matcher) => {\n return matcher(childNode as HTMLElement, reducedDelta, scroll);\n }, childrenDelta);\n childrenDelta = (nodeMatches.get(childNode) || []).reduce(\n (reducedDelta, matcher) => {\n return matcher(childNode, reducedDelta, scroll);\n },\n childrenDelta,\n );\n }\n return delta.concat(childrenDelta);\n }, new Delta());\n }\n return new Delta();\n}\n\nfunction createMatchAlias(format: string) {\n return (_node: Element, delta: Delta, scroll: ScrollBlot) => {\n return applyFormat(delta, format, true, scroll);\n };\n}\n\nfunction matchAttributor(node: HTMLElement, delta: Delta, scroll: ScrollBlot) {\n const attributes = Attributor.keys(node);\n const classes = ClassAttributor.keys(node);\n const styles = StyleAttributor.keys(node);\n const formats: Record<string, string | undefined> = {};\n attributes\n .concat(classes)\n .concat(styles)\n .forEach((name) => {\n let attr = scroll.query(name, Scope.ATTRIBUTE) as Attributor;\n if (attr != null) {\n formats[attr.attrName] = attr.value(node);\n if (formats[attr.attrName]) return;\n }\n attr = ATTRIBUTE_ATTRIBUTORS[name];\n if (attr != null && (attr.attrName === name || attr.keyName === name)) {\n formats[attr.attrName] = attr.value(node) || undefined;\n }\n attr = STYLE_ATTRIBUTORS[name];\n if (attr != null && (attr.attrName === name || attr.keyName === name)) {\n attr = STYLE_ATTRIBUTORS[name];\n formats[attr.attrName] = attr.value(node) || undefined;\n }\n });\n\n return Object.entries(formats).reduce(\n (newDelta, [name, value]) => applyFormat(newDelta, name, value, scroll),\n delta,\n );\n}\n\nfunction matchBlot(node: Node, delta: Delta, scroll: ScrollBlot) {\n const match = scroll.query(node);\n if (match == null) return delta;\n // @ts-expect-error\n if (match.prototype instanceof EmbedBlot) {\n const embed = {};\n // @ts-expect-error\n const value = match.value(node);\n if (value != null) {\n // @ts-expect-error\n embed[match.blotName] = value;\n // @ts-expect-error\n return new Delta().insert(embed, match.formats(node, scroll));\n }\n } else {\n // @ts-expect-error\n if (match.prototype instanceof BlockBlot && !deltaEndsWith(delta, '\\n')) {\n delta.insert('\\n');\n }\n if (\n 'blotName' in match &&\n 'formats' in match &&\n typeof match.formats === 'function'\n ) {\n return applyFormat(\n delta,\n match.blotName,\n match.formats(node, scroll),\n scroll,\n );\n }\n }\n return delta;\n}\n\nfunction matchBreak(node: Node, delta: Delta) {\n if (!deltaEndsWith(delta, '\\n')) {\n delta.insert('\\n');\n }\n return delta;\n}\n\nfunction matchCodeBlock(node: Node, delta: Delta, scroll: ScrollBlot) {\n const match = scroll.query('code-block');\n const language =\n match && 'formats' in match && typeof match.formats === 'function'\n ? match.formats(node, scroll)\n : true;\n return applyFormat(delta, 'code-block', language, scroll);\n}\n\nfunction matchIgnore() {\n return new Delta();\n}\n\nfunction matchIndent(node: Node, delta: Delta, scroll: ScrollBlot) {\n const match = scroll.query(node);\n if (\n match == null ||\n // @ts-expect-error\n match.blotName !== 'list' ||\n !deltaEndsWith(delta, '\\n')\n ) {\n return delta;\n }\n let indent = -1;\n let parent = node.parentNode;\n while (parent != null) {\n // @ts-expect-error\n if (['OL', 'UL'].includes(parent.tagName)) {\n indent += 1;\n }\n parent = parent.parentNode;\n }\n if (indent <= 0) return delta;\n return delta.reduce((composed, op) => {\n if (!op.insert) return composed;\n if (op.attributes && typeof op.attributes.indent === 'number') {\n return composed.push(op);\n }\n return composed.insert(op.insert, { indent, ...(op.attributes || {}) });\n }, new Delta());\n}\n\nfunction matchList(node: Node, delta: Delta, scroll: ScrollBlot) {\n const element = node as Element;\n let list = element.tagName === 'OL' ? 'ordered' : 'bullet';\n\n const checkedAttr = element.getAttribute('data-checked');\n if (checkedAttr) {\n list = checkedAttr === 'true' ? 'checked' : 'unchecked';\n }\n\n return applyFormat(delta, 'list', list, scroll);\n}\n\nfunction matchNewline(node: Node, delta: Delta, scroll: ScrollBlot) {\n if (!deltaEndsWith(delta, '\\n')) {\n if (\n isLine(node, scroll) &&\n (node.childNodes.length > 0 || node instanceof HTMLParagraphElement)\n ) {\n return delta.insert('\\n');\n }\n if (delta.length() > 0 && node.nextSibling) {\n let nextSibling: Node | null = node.nextSibling;\n while (nextSibling != null) {\n if (isLine(nextSibling, scroll)) {\n return delta.insert('\\n');\n }\n const match = scroll.query(nextSibling);\n // @ts-expect-error\n if (match && match.prototype instanceof BlockEmbed) {\n return delta.insert('\\n');\n }\n nextSibling = nextSibling.firstChild;\n }\n }\n }\n return delta;\n}\n\nfunction matchStyles(node: HTMLElement, delta: Delta, scroll: ScrollBlot) {\n const formats: Record<string, unknown> = {};\n const style: Partial<CSSStyleDeclaration> = node.style || {};\n if (style.fontStyle === 'italic') {\n formats.italic = true;\n }\n if (style.textDecoration === 'underline') {\n formats.underline = true;\n }\n if (style.textDecoration === 'line-through') {\n formats.strike = true;\n }\n if (\n style.fontWeight?.startsWith('bold') ||\n // @ts-expect-error Fix me later\n parseInt(style.fontWeight, 10) >= 700\n ) {\n formats.bold = true;\n }\n delta = Object.entries(formats).reduce(\n (newDelta, [name, value]) => applyFormat(newDelta, name, value, scroll),\n delta,\n );\n // @ts-expect-error\n if (parseFloat(style.textIndent || 0) > 0) {\n // Could be 0.5in\n return new Delta().insert('\\t').concat(delta);\n }\n return delta;\n}\n\nfunction matchTable(\n node: HTMLTableRowElement,\n delta: Delta,\n scroll: ScrollBlot,\n) {\n const table =\n node.parentElement?.tagName === 'TABLE'\n ? node.parentElement\n : node.parentElement?.parentElement;\n if (table != null) {\n const rows = Array.from(table.querySelectorAll('tr'));\n const row = rows.indexOf(node) + 1;\n return applyFormat(delta, 'table', row, scroll);\n }\n return delta;\n}\n\nfunction matchText(node: HTMLElement, delta: Delta, scroll: ScrollBlot) {\n // @ts-expect-error\n let text = node.data;\n // Word represents empty line with <o:p>&nbsp;</o:p>\n if (node.parentElement?.tagName === 'O:P') {\n return delta.insert(text.trim());\n }\n if (!isPre(node)) {\n if (\n text.trim().length === 0 &&\n text.includes('\\n') &&\n !isBetweenInlineElements(node, scroll)\n ) {\n return delta;\n }\n const replacer = (collapse: unknown, match: string) => {\n const replaced = match.replace(/[^\\u00a0]/g, ''); // \\u00a0 is nbsp;\n return replaced.length < 1 && collapse ? ' ' : replaced;\n };\n text = text.replace(/\\r\\n/g, ' ').replace(/\\n/g, ' ');\n text = text.replace(/\\s\\s+/g, replacer.bind(replacer, true)); // collapse whitespace\n if (\n (node.previousSibling == null &&\n node.parentElement != null &&\n isLine(node.parentElement, scroll)) ||\n (node.previousSibling instanceof Element &&\n isLine(node.previousSibling, scroll))\n ) {\n text = text.replace(/^\\s+/, replacer.bind(replacer, false));\n }\n if (\n (node.nextSibling == null &&\n node.parentElement != null &&\n isLine(node.parentElement, scroll)) ||\n (node.nextSibling instanceof Element && isLine(node.nextSibling, scroll))\n ) {\n text = text.replace(/\\s+$/, replacer.bind(replacer, false));\n }\n }\n return delta.insert(text);\n}\n\nexport {\n Clipboard as default,\n matchAttributor,\n matchBlot,\n matchNewline,\n matchText,\n traverse,\n};\n"],"mappings":"AACA,SACEA,UAAU,EACVC,SAAS,EACTC,eAAe,EACfC,SAAS,EAC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;MACA5B,IAAI,GAAGA,IAAI,CAACuJ,OAAO,CAAC,MAAM,EAAEH,QAAQ,CAAC/J,IAAI,CAAC+J,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC7D;EACF;EACA,OAAO7I,KAAK,CAACD,MAAM,CAACN,IAAI,CAAC;AAC3B;AAEA,SACEtB,SAAS,IAAI+K,OAAO,EACpB7L,eAAe,EACfD,SAAS,EACTH,YAAY,EACZD,SAAS,EACToE,QAAQ","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ import type Delta from 'quill-delta';
2
+ import Module from '../core/module.js';
3
+ import Quill from '../core/quill.js';
4
+ import type Scroll from '../blots/scroll.js';
5
+ import type { Range } from '../core/selection.js';
6
+ export interface HistoryOptions {
7
+ userOnly: boolean;
8
+ delay: number;
9
+ maxStack: number;
10
+ }
11
+ export interface StackItem {
12
+ delta: Delta;
13
+ range: Range | null;
14
+ }
15
+ interface Stack {
16
+ undo: StackItem[];
17
+ redo: StackItem[];
18
+ }
19
+ declare class History extends Module<HistoryOptions> {
20
+ static DEFAULTS: HistoryOptions;
21
+ lastRecorded: number;
22
+ ignoreChange: boolean;
23
+ stack: Stack;
24
+ currentRange: Range | null;
25
+ constructor(quill: Quill, options: Partial<HistoryOptions>);
26
+ change(source: 'undo' | 'redo', dest: 'redo' | 'undo'): void;
27
+ clear(): void;
28
+ cutoff(): void;
29
+ record(changeDelta: Delta, oldDelta: Delta): void;
30
+ redo(): void;
31
+ transform(delta: Delta): void;
32
+ undo(): void;
33
+ protected restoreSelection(stackItem: StackItem): void;
34
+ }
35
+ declare function getLastChangeIndex(scroll: Scroll, delta: Delta): number;
36
+ export { History as default, getLastChangeIndex };