@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 @@
1
+ {"version":3,"file":"keyboard.js","names":["cloneDeep","isEqual","Delta","AttributeMap","EmbedBlot","Scope","TextBlot","Quill","logger","Module","debug","SHORTKEY","test","navigator","platform","Keyboard","match","evt","binding","some","key","which","constructor","quill","options","bindings","Object","keys","forEach","name","addBinding","shiftKey","handleEnter","metaKey","ctrlKey","altKey","userAgent","collapsed","handleBackspace","handleDelete","prefix","suffix","handleDeleteRange","offset","listen","keyBinding","context","arguments","length","undefined","handler","normalize","warn","Array","isArray","singleBinding","push","root","addEventListener","defaultPrevented","isComposing","keyCode","concat","matches","filter","blot","find","target","scroll","range","getSelection","hasFocus","line","getLine","index","leafStart","offsetStart","getLeaf","leafEnd","offsetEnd","prefixText","value","slice","suffixText","curContext","empty","format","getFormat","event","prevented","every","call","preventDefault","getLength","formats","delta","retain","delete","prev","isPrevLineEmpty","statics","blotName","curFormats","prevFormats","diff","formatDelta","compose","updateContents","sources","USER","focus","next","nextFormats","deleteRange","lineFormats","reduce","query","BLOCK","insert","setSelection","SILENT","defaultOptions","bold","makeFormatHandler","italic","underline","indent","outdent","list","makeCodeBlockHandler","deleteText","tab","table","history","cutoff","formatLine","scrollSelectionIntoView","header","module","getModule","row","cell","getTable","shift","tableSide","blockquote","trim","insertText","numLines","cur","makeEmbedArrowHandler","makeTableArrowHandler","DEFAULTS","_ref","CodeBlock","TAB","lines","getLines","i","insertAt","domNode","textContent","startsWith","deleteAt","update","where","leaf","shortKey","up","targetRow","parent","targetCell","children","head","Math","min","targetLine","_ref2","firstFormats","lastFormats","_table","default"],"sources":["../../src/modules/keyboard.ts"],"sourcesContent":["import { cloneDeep, isEqual } from 'lodash-es';\nimport Delta, { AttributeMap } from 'quill-delta';\nimport { EmbedBlot, Scope, TextBlot } from 'parchment';\nimport type { Blot, BlockBlot } from 'parchment';\nimport Quill from '../core/quill.js';\nimport logger from '../core/logger.js';\nimport Module from '../core/module.js';\nimport type { BlockEmbed } from '../blots/block.js';\nimport type { Range } from '../core/selection.js';\n\nconst debug = logger('quill:keyboard');\n\nconst SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';\n\nexport interface Context {\n collapsed: boolean;\n empty: boolean;\n offset: number;\n prefix: string;\n suffix: string;\n format: Record<string, unknown>;\n event: KeyboardEvent;\n line: BlockEmbed | BlockBlot;\n}\n\ninterface BindingObject\n extends Partial<Omit<Context, 'prefix' | 'suffix' | 'format'>> {\n key: number | string | string[];\n shortKey?: boolean | null;\n shiftKey?: boolean | null;\n altKey?: boolean | null;\n metaKey?: boolean | null;\n ctrlKey?: boolean | null;\n prefix?: RegExp;\n suffix?: RegExp;\n format?: Record<string, unknown> | string[];\n handler?: (\n this: { quill: Quill },\n range: Range,\n curContext: Context,\n // eslint-disable-next-line no-use-before-define\n binding: NormalizedBinding,\n ) => boolean | void;\n}\n\ntype Binding = BindingObject | string | number;\n\ninterface NormalizedBinding extends Omit<BindingObject, 'key' | 'shortKey'> {\n key: string | number;\n}\n\ninterface KeyboardOptions {\n bindings: Record<string, Binding>;\n}\n\ninterface KeyboardOptions {\n bindings: Record<string, Binding>;\n}\n\nclass Keyboard extends Module<KeyboardOptions> {\n static DEFAULTS: KeyboardOptions;\n\n static match(evt: KeyboardEvent, binding: BindingObject) {\n if (\n (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'] as const).some((key) => {\n return !!binding[key] !== evt[key] && binding[key] !== null;\n })\n ) {\n return false;\n }\n return binding.key === evt.key || binding.key === evt.which;\n }\n\n bindings: Record<string, NormalizedBinding[]>;\n\n constructor(quill: Quill, options: Partial<KeyboardOptions>) {\n super(quill, options);\n this.bindings = {};\n // @ts-expect-error Fix me later\n Object.keys(this.options.bindings).forEach((name) => {\n // @ts-expect-error Fix me later\n if (this.options.bindings[name]) {\n // @ts-expect-error Fix me later\n this.addBinding(this.options.bindings[name]);\n }\n });\n this.addBinding({ key: 'Enter', shiftKey: null }, this.handleEnter);\n this.addBinding(\n { key: 'Enter', metaKey: null, ctrlKey: null, altKey: null },\n () => {},\n );\n if (/Firefox/i.test(navigator.userAgent)) {\n // Need to handle delete and backspace for Firefox in the general case #1171\n this.addBinding(\n { key: 'Backspace' },\n { collapsed: true },\n this.handleBackspace,\n );\n this.addBinding(\n { key: 'Delete' },\n { collapsed: true },\n this.handleDelete,\n );\n } else {\n this.addBinding(\n { key: 'Backspace' },\n { collapsed: true, prefix: /^.?$/ },\n this.handleBackspace,\n );\n this.addBinding(\n { key: 'Delete' },\n { collapsed: true, suffix: /^.?$/ },\n this.handleDelete,\n );\n }\n this.addBinding(\n { key: 'Backspace' },\n { collapsed: false },\n this.handleDeleteRange,\n );\n this.addBinding(\n { key: 'Delete' },\n { collapsed: false },\n this.handleDeleteRange,\n );\n this.addBinding(\n {\n key: 'Backspace',\n altKey: null,\n ctrlKey: null,\n metaKey: null,\n shiftKey: null,\n },\n { collapsed: true, offset: 0 },\n this.handleBackspace,\n );\n this.listen();\n }\n\n addBinding(\n keyBinding: Binding,\n context:\n | Required<BindingObject['handler']>\n | Partial<Omit<BindingObject, 'key' | 'handler'>> = {},\n handler:\n | Required<BindingObject['handler']>\n | Partial<Omit<BindingObject, 'key' | 'handler'>> = {},\n ) {\n const binding = normalize(keyBinding);\n if (binding == null) {\n debug.warn('Attempted to add invalid keyboard binding', binding);\n return;\n }\n if (typeof context === 'function') {\n context = { handler: context };\n }\n if (typeof handler === 'function') {\n handler = { handler };\n }\n const keys = Array.isArray(binding.key) ? binding.key : [binding.key];\n keys.forEach((key) => {\n const singleBinding = {\n ...binding,\n key,\n ...context,\n ...handler,\n };\n this.bindings[singleBinding.key] = this.bindings[singleBinding.key] || [];\n this.bindings[singleBinding.key].push(singleBinding);\n });\n }\n\n listen() {\n this.quill.root.addEventListener('keydown', (evt) => {\n if (evt.defaultPrevented || evt.isComposing) return;\n\n // evt.isComposing is false when pressing Enter/Backspace when composing in Safari\n // https://bugs.webkit.org/show_bug.cgi?id=165004\n const isComposing =\n evt.keyCode === 229 && (evt.key === 'Enter' || evt.key === 'Backspace');\n if (isComposing) return;\n\n const bindings = (this.bindings[evt.key] || []).concat(\n this.bindings[evt.which] || [],\n );\n const matches = bindings.filter((binding) =>\n Keyboard.match(evt, binding),\n );\n if (matches.length === 0) return;\n // @ts-expect-error\n const blot = Quill.find(evt.target, true);\n if (blot && blot.scroll !== this.quill.scroll) return;\n const range = this.quill.getSelection();\n if (range == null || !this.quill.hasFocus()) return;\n const [line, offset] = this.quill.getLine(range.index);\n const [leafStart, offsetStart] = this.quill.getLeaf(range.index);\n const [leafEnd, offsetEnd] =\n range.length === 0\n ? [leafStart, offsetStart]\n : this.quill.getLeaf(range.index + range.length);\n const prefixText =\n leafStart instanceof TextBlot\n ? leafStart.value().slice(0, offsetStart)\n : '';\n const suffixText =\n leafEnd instanceof TextBlot ? leafEnd.value().slice(offsetEnd) : '';\n const curContext = {\n collapsed: range.length === 0,\n // @ts-expect-error Fix me later\n empty: range.length === 0 && line.length() <= 1,\n format: this.quill.getFormat(range),\n line,\n offset,\n prefix: prefixText,\n suffix: suffixText,\n event: evt,\n };\n const prevented = matches.some((binding) => {\n if (\n binding.collapsed != null &&\n binding.collapsed !== curContext.collapsed\n ) {\n return false;\n }\n if (binding.empty != null && binding.empty !== curContext.empty) {\n return false;\n }\n if (binding.offset != null && binding.offset !== curContext.offset) {\n return false;\n }\n if (Array.isArray(binding.format)) {\n // any format is present\n if (binding.format.every((name) => curContext.format[name] == null)) {\n return false;\n }\n } else if (typeof binding.format === 'object') {\n // all formats must match\n if (\n !Object.keys(binding.format).every((name) => {\n // @ts-expect-error Fix me later\n if (binding.format[name] === true)\n return curContext.format[name] != null;\n // @ts-expect-error Fix me later\n if (binding.format[name] === false)\n return curContext.format[name] == null;\n // @ts-expect-error Fix me later\n return isEqual(binding.format[name], curContext.format[name]);\n })\n ) {\n return false;\n }\n }\n if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) {\n return false;\n }\n if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) {\n return false;\n }\n // @ts-expect-error Fix me later\n return binding.handler.call(this, range, curContext, binding) !== true;\n });\n if (prevented) {\n evt.preventDefault();\n }\n });\n }\n\n handleBackspace(range: Range, context: Context) {\n // Check for astral symbols\n const length = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]$/.test(context.prefix)\n ? 2\n : 1;\n if (range.index === 0 || this.quill.getLength() <= 1) return;\n let formats = {};\n const [line] = this.quill.getLine(range.index);\n let delta = new Delta().retain(range.index - length).delete(length);\n if (context.offset === 0) {\n // Always deleting newline here, length always 1\n const [prev] = this.quill.getLine(range.index - 1);\n if (prev) {\n const isPrevLineEmpty =\n prev.statics.blotName === 'block' && prev.length() <= 1;\n if (!isPrevLineEmpty) {\n // @ts-expect-error Fix me later\n const curFormats = line.formats();\n const prevFormats = this.quill.getFormat(range.index - 1, 1);\n formats = AttributeMap.diff(curFormats, prevFormats) || {};\n if (Object.keys(formats).length > 0) {\n // line.length() - 1 targets \\n in line, another -1 for newline being deleted\n const formatDelta = new Delta()\n // @ts-expect-error Fix me later\n .retain(range.index + line.length() - 2)\n .retain(1, formats);\n delta = delta.compose(formatDelta);\n }\n }\n }\n }\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.focus();\n }\n\n handleDelete(range: Range, context: Context) {\n // Check for astral symbols\n const length = /^[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/.test(context.suffix)\n ? 2\n : 1;\n if (range.index >= this.quill.getLength() - length) return;\n let formats = {};\n const [line] = this.quill.getLine(range.index);\n let delta = new Delta().retain(range.index).delete(length);\n // @ts-expect-error Fix me later\n if (context.offset >= line.length() - 1) {\n const [next] = this.quill.getLine(range.index + 1);\n if (next) {\n // @ts-expect-error Fix me later\n const curFormats = line.formats();\n const nextFormats = this.quill.getFormat(range.index, 1);\n formats = AttributeMap.diff(curFormats, nextFormats) || {};\n if (Object.keys(formats).length > 0) {\n delta = delta.retain(next.length() - 1).retain(1, formats);\n }\n }\n }\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.focus();\n }\n\n handleDeleteRange(range: Range) {\n deleteRange({ range, quill: this.quill });\n this.quill.focus();\n }\n\n handleEnter(range: Range, context: Context) {\n const lineFormats = Object.keys(context.format).reduce(\n (formats: Record<string, unknown>, format) => {\n if (\n this.quill.scroll.query(format, Scope.BLOCK) &&\n !Array.isArray(context.format[format])\n ) {\n formats[format] = context.format[format];\n }\n return formats;\n },\n {},\n );\n const delta = new Delta()\n .retain(range.index)\n .delete(range.length)\n .insert('\\n', lineFormats);\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(range.index + 1, Quill.sources.SILENT);\n this.quill.focus();\n }\n}\n\nconst defaultOptions: KeyboardOptions = {\n bindings: {\n bold: makeFormatHandler('bold'),\n italic: makeFormatHandler('italic'),\n underline: makeFormatHandler('underline'),\n indent: {\n // highlight tab or tab at beginning of list, indent or blockquote\n key: 'Tab',\n format: ['blockquote', 'indent', 'list'],\n handler(range, context) {\n if (context.collapsed && context.offset !== 0) return true;\n this.quill.format('indent', '+1', Quill.sources.USER);\n return false;\n },\n },\n outdent: {\n key: 'Tab',\n shiftKey: true,\n format: ['blockquote', 'indent', 'list'],\n // highlight tab or tab at beginning of list, indent or blockquote\n handler(range, context) {\n if (context.collapsed && context.offset !== 0) return true;\n this.quill.format('indent', '-1', Quill.sources.USER);\n return false;\n },\n },\n 'outdent backspace': {\n key: 'Backspace',\n collapsed: true,\n shiftKey: null,\n metaKey: null,\n ctrlKey: null,\n altKey: null,\n format: ['indent', 'list'],\n offset: 0,\n handler(range, context) {\n if (context.format.indent != null) {\n this.quill.format('indent', '-1', Quill.sources.USER);\n } else if (context.format.list != null) {\n this.quill.format('list', false, Quill.sources.USER);\n }\n },\n },\n 'indent code-block': makeCodeBlockHandler(true),\n 'outdent code-block': makeCodeBlockHandler(false),\n 'remove tab': {\n key: 'Tab',\n shiftKey: true,\n collapsed: true,\n prefix: /\\t$/,\n handler(range) {\n this.quill.deleteText(range.index - 1, 1, Quill.sources.USER);\n },\n },\n tab: {\n key: 'Tab',\n handler(range, context) {\n if (context.format.table) return true;\n this.quill.history.cutoff();\n const delta = new Delta()\n .retain(range.index)\n .delete(range.length)\n .insert('\\t');\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.history.cutoff();\n this.quill.setSelection(range.index + 1, Quill.sources.SILENT);\n return false;\n },\n },\n 'blockquote empty enter': {\n key: 'Enter',\n collapsed: true,\n format: ['blockquote'],\n empty: true,\n handler() {\n this.quill.format('blockquote', false, Quill.sources.USER);\n },\n },\n 'list empty enter': {\n key: 'Enter',\n collapsed: true,\n format: ['list'],\n empty: true,\n handler(range, context) {\n const formats: Record<string, unknown> = { list: false };\n if (context.format.indent) {\n formats.indent = false;\n }\n this.quill.formatLine(\n range.index,\n range.length,\n formats,\n Quill.sources.USER,\n );\n },\n },\n 'checklist enter': {\n key: 'Enter',\n collapsed: true,\n format: { list: 'checked' },\n handler(range) {\n const [line, offset] = this.quill.getLine(range.index);\n const formats = {\n // @ts-expect-error Fix me later\n ...line.formats(),\n list: 'checked',\n };\n const delta = new Delta()\n .retain(range.index)\n .insert('\\n', formats)\n // @ts-expect-error Fix me later\n .retain(line.length() - offset - 1)\n .retain(1, { list: 'unchecked' });\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(range.index + 1, Quill.sources.SILENT);\n this.quill.scrollSelectionIntoView();\n },\n },\n 'header enter': {\n key: 'Enter',\n collapsed: true,\n format: ['header'],\n suffix: /^$/,\n handler(range, context) {\n const [line, offset] = this.quill.getLine(range.index);\n const delta = new Delta()\n .retain(range.index)\n .insert('\\n', context.format)\n // @ts-expect-error Fix me later\n .retain(line.length() - offset - 1)\n .retain(1, { header: null });\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(range.index + 1, Quill.sources.SILENT);\n this.quill.scrollSelectionIntoView();\n },\n },\n 'table backspace': {\n key: 'Backspace',\n format: ['table'],\n collapsed: true,\n offset: 0,\n handler() {},\n },\n 'table delete': {\n key: 'Delete',\n format: ['table'],\n collapsed: true,\n suffix: /^$/,\n handler() {},\n },\n 'table enter': {\n key: 'Enter',\n shiftKey: null,\n format: ['table'],\n handler(range) {\n const module = this.quill.getModule('table');\n if (module) {\n // @ts-expect-error\n const [table, row, cell, offset] = module.getTable(range);\n const shift = tableSide(table, row, cell, offset);\n if (shift == null) return;\n let index = table.offset();\n if (shift < 0) {\n const delta = new Delta().retain(index).insert('\\n');\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(\n range.index + 1,\n range.length,\n Quill.sources.SILENT,\n );\n } else if (shift > 0) {\n index += table.length();\n const delta = new Delta().retain(index).insert('\\n');\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(index, Quill.sources.USER);\n }\n }\n },\n },\n 'table tab': {\n key: 'Tab',\n shiftKey: null,\n format: ['table'],\n handler(range, context) {\n const { event, line: cell } = context;\n const offset = cell.offset(this.quill.scroll);\n if (event.shiftKey) {\n this.quill.setSelection(offset - 1, Quill.sources.USER);\n } else {\n this.quill.setSelection(offset + cell.length(), Quill.sources.USER);\n }\n },\n },\n 'list autofill': {\n key: ' ',\n shiftKey: null,\n collapsed: true,\n format: {\n 'code-block': false,\n blockquote: false,\n table: false,\n },\n prefix: /^\\s*?(\\d+\\.|-|\\*|\\[ ?\\]|\\[x\\])$/,\n handler(range, context) {\n if (this.quill.scroll.query('list') == null) return true;\n const { length } = context.prefix;\n const [line, offset] = this.quill.getLine(range.index);\n if (offset > length) return true;\n let value;\n switch (context.prefix.trim()) {\n case '[]':\n case '[ ]':\n value = 'unchecked';\n break;\n case '[x]':\n value = 'checked';\n break;\n case '-':\n case '*':\n value = 'bullet';\n break;\n default:\n value = 'ordered';\n }\n this.quill.insertText(range.index, ' ', Quill.sources.USER);\n this.quill.history.cutoff();\n const delta = new Delta()\n .retain(range.index - offset)\n .delete(length + 1)\n // @ts-expect-error Fix me later\n .retain(line.length() - 2 - offset)\n .retain(1, { list: value });\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.history.cutoff();\n this.quill.setSelection(range.index - length, Quill.sources.SILENT);\n return false;\n },\n },\n 'code exit': {\n key: 'Enter',\n collapsed: true,\n format: ['code-block'],\n prefix: /^$/,\n suffix: /^\\s*$/,\n handler(range) {\n const [line, offset] = this.quill.getLine(range.index);\n let numLines = 2;\n let cur = line;\n while (\n cur != null &&\n cur.length() <= 1 &&\n cur.formats()['code-block']\n ) {\n // @ts-expect-error\n cur = cur.prev;\n numLines -= 1;\n // Requisite prev lines are empty\n if (numLines <= 0) {\n const delta = new Delta()\n // @ts-expect-error Fix me later\n .retain(range.index + line.length() - offset - 2)\n .retain(1, { 'code-block': null })\n .delete(1);\n this.quill.updateContents(delta, Quill.sources.USER);\n this.quill.setSelection(range.index - 1, Quill.sources.SILENT);\n return false;\n }\n }\n return true;\n },\n },\n 'embed left': makeEmbedArrowHandler('ArrowLeft', false),\n 'embed left shift': makeEmbedArrowHandler('ArrowLeft', true),\n 'embed right': makeEmbedArrowHandler('ArrowRight', false),\n 'embed right shift': makeEmbedArrowHandler('ArrowRight', true),\n 'table down': makeTableArrowHandler(false),\n 'table up': makeTableArrowHandler(true),\n },\n};\n\nKeyboard.DEFAULTS = defaultOptions;\n\nfunction makeCodeBlockHandler(indent: boolean): BindingObject {\n return {\n key: 'Tab',\n shiftKey: !indent,\n format: { 'code-block': true },\n handler(range, { event }) {\n const CodeBlock = this.quill.scroll.query('code-block');\n // @ts-expect-error\n const { TAB } = CodeBlock;\n if (range.length === 0 && !event.shiftKey) {\n this.quill.insertText(range.index, TAB, Quill.sources.USER);\n this.quill.setSelection(range.index + TAB.length, Quill.sources.SILENT);\n return;\n }\n\n const lines =\n range.length === 0\n ? this.quill.getLines(range.index, 1)\n : this.quill.getLines(range);\n let { index, length } = range;\n lines.forEach((line, i) => {\n if (indent) {\n line.insertAt(0, TAB);\n if (i === 0) {\n index += TAB.length;\n } else {\n length += TAB.length;\n }\n // @ts-expect-error Fix me later\n } else if (line.domNode.textContent.startsWith(TAB)) {\n line.deleteAt(0, TAB.length);\n if (i === 0) {\n index -= TAB.length;\n } else {\n length -= TAB.length;\n }\n }\n });\n this.quill.update(Quill.sources.USER);\n this.quill.setSelection(index, length, Quill.sources.SILENT);\n },\n };\n}\n\nfunction makeEmbedArrowHandler(\n key: string,\n shiftKey: boolean | null,\n): BindingObject {\n const where = key === 'ArrowLeft' ? 'prefix' : 'suffix';\n return {\n key,\n shiftKey,\n altKey: null,\n [where]: /^$/,\n handler(range) {\n let { index } = range;\n if (key === 'ArrowRight') {\n index += range.length + 1;\n }\n const [leaf] = this.quill.getLeaf(index);\n if (!(leaf instanceof EmbedBlot)) return true;\n if (key === 'ArrowLeft') {\n if (shiftKey) {\n this.quill.setSelection(\n range.index - 1,\n range.length + 1,\n Quill.sources.USER,\n );\n } else {\n this.quill.setSelection(range.index - 1, Quill.sources.USER);\n }\n } else if (shiftKey) {\n this.quill.setSelection(\n range.index,\n range.length + 1,\n Quill.sources.USER,\n );\n } else {\n this.quill.setSelection(\n range.index + range.length + 1,\n Quill.sources.USER,\n );\n }\n return false;\n },\n };\n}\n\nfunction makeFormatHandler(format: string): BindingObject {\n return {\n key: format[0],\n shortKey: true,\n handler(range, context) {\n this.quill.format(format, !context.format[format], Quill.sources.USER);\n },\n };\n}\n\nfunction makeTableArrowHandler(up: boolean): BindingObject {\n return {\n key: up ? 'ArrowUp' : 'ArrowDown',\n collapsed: true,\n format: ['table'],\n handler(range, context) {\n // TODO move to table module\n const key = up ? 'prev' : 'next';\n const cell = context.line;\n const targetRow = cell.parent[key];\n if (targetRow != null) {\n if (targetRow.statics.blotName === 'table-row') {\n // @ts-expect-error\n let targetCell = targetRow.children.head;\n let cur = cell;\n while (cur.prev != null) {\n // @ts-expect-error\n cur = cur.prev;\n targetCell = targetCell.next;\n }\n const index =\n targetCell.offset(this.quill.scroll) +\n Math.min(context.offset, targetCell.length() - 1);\n this.quill.setSelection(index, 0, Quill.sources.USER);\n }\n } else {\n // @ts-expect-error\n const targetLine = cell.table()[key];\n if (targetLine != null) {\n if (up) {\n this.quill.setSelection(\n targetLine.offset(this.quill.scroll) + targetLine.length() - 1,\n 0,\n Quill.sources.USER,\n );\n } else {\n this.quill.setSelection(\n targetLine.offset(this.quill.scroll),\n 0,\n Quill.sources.USER,\n );\n }\n }\n }\n return false;\n },\n };\n}\n\nfunction normalize(binding: Binding): BindingObject | null {\n if (typeof binding === 'string' || typeof binding === 'number') {\n binding = { key: binding };\n } else if (typeof binding === 'object') {\n binding = cloneDeep(binding);\n } else {\n return null;\n }\n if (binding.shortKey) {\n binding[SHORTKEY] = binding.shortKey;\n delete binding.shortKey;\n }\n return binding;\n}\n\n// TODO: Move into quill.ts or editor.ts\nfunction deleteRange({ quill, range }: { quill: Quill; range: Range }) {\n const lines = quill.getLines(range);\n let formats = {};\n if (lines.length > 1) {\n const firstFormats = lines[0].formats();\n const lastFormats = lines[lines.length - 1].formats();\n formats = AttributeMap.diff(lastFormats, firstFormats) || {};\n }\n quill.deleteText(range, Quill.sources.USER);\n if (Object.keys(formats).length > 0) {\n quill.formatLine(range.index, 1, formats, Quill.sources.USER);\n }\n quill.setSelection(range.index, Quill.sources.SILENT);\n}\n\nfunction tableSide(_table: unknown, row: Blot, cell: Blot, offset: number) {\n if (row.prev == null && row.next == null) {\n if (cell.prev == null && cell.next == null) {\n return offset === 0 ? -1 : 1;\n }\n return cell.prev == null ? -1 : 1;\n }\n if (row.prev == null) {\n return -1;\n }\n if (row.next == null) {\n return 1;\n }\n return null;\n}\n\nexport { Keyboard as default, SHORTKEY, normalize, deleteRange };\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,WAAW;AAC9C,OAAOC,KAAK,IAAIC,YAAY,QAAQ,aAAa;AACjD,SAASC,SAAS,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,WAAW;AAEtD,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,MAAM,MAAM,mBAAmB;AAItC,MAAMC,KAAK,GAAGF,MAAM,CAAC,gBAAgB,CAAC;AAEtC,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C,EAAEoB,OAAO,EAAEvF,KAAK,CAACqG,OAAO,CAACC,IAAI,CAAC;EAC/D;EACAtF,KAAK,CAACgG,YAAY,CAAClD,KAAK,CAACK,KAAK,EAAEnE,KAAK,CAACqG,OAAO,CAACY,MAAM,CAAC;AACvD;AAEA,SAASwB,SAASA,CAACoC,MAAe,EAAExC,GAAS,EAAEC,IAAU,EAAElG,MAAc,EAAE;EACzE,IAAIiG,GAAG,CAAC1C,IAAI,IAAI,IAAI,IAAI0C,GAAG,CAAC7B,IAAI,IAAI,IAAI,EAAE;IACxC,IAAI8B,IAAI,CAAC3C,IAAI,IAAI,IAAI,IAAI2C,IAAI,CAAC9B,IAAI,IAAI,IAAI,EAAE;MAC1C,OAAOpE,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;IAC9B;IACA,OAAOkG,IAAI,CAAC3C,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC;EACnC;EACA,IAAI0C,GAAG,CAAC1C,IAAI,IAAI,IAAI,EAAE;IACpB,OAAO,CAAC,CAAC;EACX;EACA,IAAI0C,GAAG,CAAC7B,IAAI,IAAI,IAAI,EAAE;IACpB,OAAO,CAAC;EACV;EACA,OAAO,IAAI;AACb;AAEA,SAAShG,QAAQ,IAAIsK,OAAO,EAAE1K,QAAQ,EAAEwC,SAAS,EAAE8D,WAAW","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ declare const normalizeExternalHTML: (doc: Document) => void;
2
+ export default normalizeExternalHTML;
@@ -0,0 +1,12 @@
1
+ import googleDocs from './normalizers/googleDocs.js';
2
+ import msWord from './normalizers/msWord.js';
3
+ const NORMALIZERS = [msWord, googleDocs];
4
+ const normalizeExternalHTML = doc => {
5
+ if (doc.documentElement) {
6
+ NORMALIZERS.forEach(normalize => {
7
+ normalize(doc);
8
+ });
9
+ }
10
+ };
11
+ export default normalizeExternalHTML;
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["googleDocs","msWord","NORMALIZERS","normalizeExternalHTML","doc","documentElement","forEach","normalize"],"sources":["../../../src/modules/normalizeExternalHTML/index.ts"],"sourcesContent":["import googleDocs from './normalizers/googleDocs.js';\nimport msWord from './normalizers/msWord.js';\n\nconst NORMALIZERS = [msWord, googleDocs];\n\nconst normalizeExternalHTML = (doc: Document) => {\n if (doc.documentElement) {\n NORMALIZERS.forEach((normalize) => {\n normalize(doc);\n });\n }\n};\n\nexport default normalizeExternalHTML;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,6BAA6B;AACpD,OAAOC,MAAM,MAAM,yBAAyB;AAE5C,MAAMC,WAAW,GAAG,CAACD,MAAM,EAAED,UAAU,CAAC;AAExC,MAAMG,qBAAqB,GAAIC,GAAa,IAAK;EAC/C,IAAIA,GAAG,CAACC,eAAe,EAAE;IACvBH,WAAW,CAACI,OAAO,CAAEC,SAAS,IAAK;MACjCA,SAAS,CAACH,GAAG,CAAC;IAChB,CAAC,CAAC;EACJ;AACF,CAAC;AAED,eAAeD,qBAAqB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export default function normalize(doc: Document): void;
@@ -0,0 +1,24 @@
1
+ const normalWeightRegexp = /font-weight:\s*normal/;
2
+ const blockTagNames = ['P', 'OL', 'UL'];
3
+ const isBlockElement = element => {
4
+ return element && blockTagNames.includes(element.tagName);
5
+ };
6
+ const normalizeEmptyLines = doc => {
7
+ Array.from(doc.querySelectorAll('br')).filter(br => isBlockElement(br.previousElementSibling) && isBlockElement(br.nextElementSibling)).forEach(br => {
8
+ br.parentNode?.removeChild(br);
9
+ });
10
+ };
11
+ const normalizeFontWeight = doc => {
12
+ Array.from(doc.querySelectorAll('b[style*="font-weight"]')).filter(node => node.getAttribute('style')?.match(normalWeightRegexp)).forEach(node => {
13
+ const fragment = doc.createDocumentFragment();
14
+ fragment.append(...node.childNodes);
15
+ node.parentNode?.replaceChild(fragment, node);
16
+ });
17
+ };
18
+ export default function normalize(doc) {
19
+ if (doc.querySelector('[id^="docs-internal-guid-"]')) {
20
+ normalizeFontWeight(doc);
21
+ normalizeEmptyLines(doc);
22
+ }
23
+ }
24
+ //# sourceMappingURL=googleDocs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"googleDocs.js","names":["normalWeightRegexp","blockTagNames","isBlockElement","element","includes","tagName","normalizeEmptyLines","doc","Array","from","querySelectorAll","filter","br","previousElementSibling","nextElementSibling","forEach","parentNode","removeChild","normalizeFontWeight","node","getAttribute","match","fragment","createDocumentFragment","append","childNodes","replaceChild","normalize","querySelector"],"sources":["../../../../src/modules/normalizeExternalHTML/normalizers/googleDocs.ts"],"sourcesContent":["const normalWeightRegexp = /font-weight:\\s*normal/;\nconst blockTagNames = ['P', 'OL', 'UL'];\n\nconst isBlockElement = (element: Element | null) => {\n return element && blockTagNames.includes(element.tagName);\n};\n\nconst normalizeEmptyLines = (doc: Document) => {\n Array.from(doc.querySelectorAll('br'))\n .filter(\n (br) =>\n isBlockElement(br.previousElementSibling) &&\n isBlockElement(br.nextElementSibling),\n )\n .forEach((br) => {\n br.parentNode?.removeChild(br);\n });\n};\n\nconst normalizeFontWeight = (doc: Document) => {\n Array.from(doc.querySelectorAll('b[style*=\"font-weight\"]'))\n .filter((node) => node.getAttribute('style')?.match(normalWeightRegexp))\n .forEach((node) => {\n const fragment = doc.createDocumentFragment();\n fragment.append(...node.childNodes);\n node.parentNode?.replaceChild(fragment, node);\n });\n};\n\nexport default function normalize(doc: Document) {\n if (doc.querySelector('[id^=\"docs-internal-guid-\"]')) {\n normalizeFontWeight(doc);\n normalizeEmptyLines(doc);\n }\n}\n"],"mappings":"AAAA,MAAMA,kBAAkB,GAAG,uBAAuB;AAClD,MAAMC,aAAa,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC;AAEvC,MAAMC,cAAc,GAAIC,OAAuB,IAAK;EAClD,OAAOA,OAAO,IAAIF,aAAa,CAACG,QAAQ,CAACD,OAAO,CAACE,OAAO,CAAC;AAC3D,CAAC;AAED,MAAMC,mBAAmB,GAAIC,GAAa,IAAK;EAC7CC,KAAK,CAACC,IAAI,CAACF,GAAG,CAACG,gBAAgB,CAAC,IAAI,CAAC,CAAC,CACnCC,MAAM,CACJC,EAAE,IACDV,cAAc,CAACU,EAAE,CAACC,sBAAsB,CAAC,IACzCX,cAAc,CAACU,EAAE,CAACE,kBAAkB,CACxC,CAAC,CACAC,OAAO,CAAEH,EAAE,IAAK;IACfA,EAAE,CAACI,UAAU,EAAEC,WAAW,CAACL,EAAE,CAAC;EAChC,CAAC,CAAC;AACN,CAAC;AAED,MAAMM,mBAAmB,GAAIX,GAAa,IAAK;EAC7CC,KAAK,CAACC,IAAI,CAACF,GAAG,CAACG,gBAAgB,CAAC,yBAAyB,CAAC,CAAC,CACxDC,MAAM,CAAEQ,IAAI,IAAKA,IAAI,CAACC,YAAY,CAAC,OAAO,CAAC,EAAEC,KAAK,CAACrB,kBAAkB,CAAC,CAAC,CACvEe,OAAO,CAAEI,IAAI,IAAK;IACjB,MAAMG,QAAQ,GAAGf,GAAG,CAACgB,sBAAsB,CAAC,CAAC;IAC7CD,QAAQ,CAACE,MAAM,CAAC,GAAGL,IAAI,CAACM,UAAU,CAAC;IACnCN,IAAI,CAACH,UAAU,EAAEU,YAAY,CAACJ,QAAQ,EAAEH,IAAI,CAAC;EAC/C,CAAC,CAAC;AACN,CAAC;AAED,eAAe,SAASQ,SAASA,CAACpB,GAAa,EAAE;EAC/C,IAAIA,GAAG,CAACqB,aAAa,CAAC,6BAA6B,CAAC,EAAE;IACpDV,mBAAmB,CAACX,GAAG,CAAC;IACxBD,mBAAmB,CAACC,GAAG,CAAC;EAC1B;AACF","ignoreList":[]}
@@ -0,0 +1 @@
1
+ export default function normalize(doc: Document): void;
@@ -0,0 +1,87 @@
1
+ const ignoreRegexp = /\bmso-list:[^;]*ignore/i;
2
+ const idRegexp = /\bmso-list:[^;]*\bl(\d+)/i;
3
+ const indentRegexp = /\bmso-list:[^;]*\blevel(\d+)/i;
4
+ const parseListItem = (element, html) => {
5
+ const style = element.getAttribute('style');
6
+ const idMatch = style?.match(idRegexp);
7
+ if (!idMatch) {
8
+ return null;
9
+ }
10
+ const id = Number(idMatch[1]);
11
+ const indentMatch = style?.match(indentRegexp);
12
+ const indent = indentMatch ? Number(indentMatch[1]) : 1;
13
+ const typeRegexp = new RegExp(`@list l${id}:level${indent}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`, 'i');
14
+ const typeMatch = html.match(typeRegexp);
15
+ const type = typeMatch && typeMatch[1] === 'bullet' ? 'bullet' : 'ordered';
16
+ return {
17
+ id,
18
+ indent,
19
+ type,
20
+ element
21
+ };
22
+ };
23
+
24
+ // list items are represented as `p` tags with styles like `mso-list: l0 level1` where:
25
+ // 1. "0" in "l0" means the list item id;
26
+ // 2. "1" in "level1" means the indent level, starting from 1.
27
+ const normalizeListItem = doc => {
28
+ const msoList = Array.from(doc.querySelectorAll('[style*=mso-list]'));
29
+ const ignored = [];
30
+ const others = [];
31
+ msoList.forEach(node => {
32
+ const shouldIgnore = (node.getAttribute('style') || '').match(ignoreRegexp);
33
+ if (shouldIgnore) {
34
+ ignored.push(node);
35
+ } else {
36
+ others.push(node);
37
+ }
38
+ });
39
+
40
+ // Each list item contains a marker wrapped with "mso-list: Ignore".
41
+ ignored.forEach(node => node.parentNode?.removeChild(node));
42
+
43
+ // The list stype is not defined inline with the tag, instead, it's in the
44
+ // style tag so we need to pass the html as a string.
45
+ const html = doc.documentElement.innerHTML;
46
+ const listItems = others.map(element => parseListItem(element, html)).filter(parsed => parsed);
47
+ while (listItems.length) {
48
+ const childListItems = [];
49
+ let current = listItems.shift();
50
+ // Group continuous items into the same group (aka "ul")
51
+ while (current) {
52
+ childListItems.push(current);
53
+ current = listItems.length && listItems[0]?.element === current.element.nextElementSibling &&
54
+ // Different id means the next item doesn't belong to this group.
55
+ listItems[0].id === current.id ? listItems.shift() : null;
56
+ }
57
+ const ul = document.createElement('ul');
58
+ childListItems.forEach(listItem => {
59
+ const li = document.createElement('li');
60
+ li.setAttribute('data-list', listItem.type);
61
+ if (listItem.indent > 1) {
62
+ li.setAttribute('class', `ql-indent-${listItem.indent - 1}`);
63
+ }
64
+ li.innerHTML = listItem.element.innerHTML;
65
+ ul.appendChild(li);
66
+ });
67
+ const element = childListItems[0]?.element;
68
+ const {
69
+ parentNode
70
+ } = element ?? {};
71
+ if (element) {
72
+ parentNode?.replaceChild(ul, element);
73
+ }
74
+ childListItems.slice(1).forEach(_ref => {
75
+ let {
76
+ element: e
77
+ } = _ref;
78
+ parentNode?.removeChild(e);
79
+ });
80
+ }
81
+ };
82
+ export default function normalize(doc) {
83
+ if (doc.documentElement.getAttribute('xmlns:w') === 'urn:schemas-microsoft-com:office:word') {
84
+ normalizeListItem(doc);
85
+ }
86
+ }
87
+ //# sourceMappingURL=msWord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"msWord.js","names":["ignoreRegexp","idRegexp","indentRegexp","parseListItem","element","html","style","getAttribute","idMatch","match","id","Number","indentMatch","indent","typeRegexp","RegExp","typeMatch","type","normalizeListItem","doc","msoList","Array","from","querySelectorAll","ignored","others","forEach","node","shouldIgnore","push","parentNode","removeChild","documentElement","innerHTML","listItems","map","filter","parsed","length","childListItems","current","shift","nextElementSibling","ul","document","createElement","listItem","li","setAttribute","appendChild","replaceChild","slice","_ref","e","normalize"],"sources":["../../../../src/modules/normalizeExternalHTML/normalizers/msWord.ts"],"sourcesContent":["const ignoreRegexp = /\\bmso-list:[^;]*ignore/i;\nconst idRegexp = /\\bmso-list:[^;]*\\bl(\\d+)/i;\nconst indentRegexp = /\\bmso-list:[^;]*\\blevel(\\d+)/i;\n\nconst parseListItem = (element: Element, html: string) => {\n const style = element.getAttribute('style');\n const idMatch = style?.match(idRegexp);\n if (!idMatch) {\n return null;\n }\n const id = Number(idMatch[1]);\n\n const indentMatch = style?.match(indentRegexp);\n const indent = indentMatch ? Number(indentMatch[1]) : 1;\n\n const typeRegexp = new RegExp(\n `@list l${id}:level${indent}\\\\s*\\\\{[^\\\\}]*mso-level-number-format:\\\\s*([\\\\w-]+)`,\n 'i',\n );\n const typeMatch = html.match(typeRegexp);\n const type = typeMatch && typeMatch[1] === 'bullet' ? 'bullet' : 'ordered';\n\n return { id, indent, type, element };\n};\n\n// list items are represented as `p` tags with styles like `mso-list: l0 level1` where:\n// 1. \"0\" in \"l0\" means the list item id;\n// 2. \"1\" in \"level1\" means the indent level, starting from 1.\nconst normalizeListItem = (doc: Document) => {\n const msoList = Array.from(doc.querySelectorAll('[style*=mso-list]'));\n const ignored: Element[] = [];\n const others: Element[] = [];\n msoList.forEach((node) => {\n const shouldIgnore = (node.getAttribute('style') || '').match(ignoreRegexp);\n if (shouldIgnore) {\n ignored.push(node);\n } else {\n others.push(node);\n }\n });\n\n // Each list item contains a marker wrapped with \"mso-list: Ignore\".\n ignored.forEach((node) => node.parentNode?.removeChild(node));\n\n // The list stype is not defined inline with the tag, instead, it's in the\n // style tag so we need to pass the html as a string.\n const html = doc.documentElement.innerHTML;\n const listItems = others\n .map((element) => parseListItem(element, html))\n .filter((parsed) => parsed);\n\n while (listItems.length) {\n const childListItems = [];\n\n let current = listItems.shift();\n // Group continuous items into the same group (aka \"ul\")\n while (current) {\n childListItems.push(current);\n current =\n listItems.length &&\n listItems[0]?.element === current.element.nextElementSibling &&\n // Different id means the next item doesn't belong to this group.\n listItems[0].id === current.id\n ? listItems.shift()\n : null;\n }\n\n const ul = document.createElement('ul');\n childListItems.forEach((listItem) => {\n const li = document.createElement('li');\n li.setAttribute('data-list', listItem.type);\n if (listItem.indent > 1) {\n li.setAttribute('class', `ql-indent-${listItem.indent - 1}`);\n }\n li.innerHTML = listItem.element.innerHTML;\n ul.appendChild(li);\n });\n\n const element = childListItems[0]?.element;\n const { parentNode } = element ?? {};\n if (element) {\n parentNode?.replaceChild(ul, element);\n }\n childListItems.slice(1).forEach(({ element: e }) => {\n parentNode?.removeChild(e);\n });\n }\n};\n\nexport default function normalize(doc: Document) {\n if (\n doc.documentElement.getAttribute('xmlns:w') ===\n 'urn:schemas-microsoft-com:office:word'\n ) {\n normalizeListItem(doc);\n }\n}\n"],"mappings":"AAAA,MAAMA,YAAY,GAAG,yBAAyB;AAC9C,MAAMC,QAAQ,GAAG,2BAA2B;AAC5C,MAAMC,YAAY,GAAG,+BAA+B;AAEpD,MAAMC,aAAa,GAAGA,CAACC,OAAgB,EAAEC,IAAY,KAAK;EACxD,MAAMC,KAAK,GAAGF,OAAO,CAACG,YAAY,CAAC,OAAO,CAAC;EAC3C,MAAMC,OAAO,GAAGF,KAAK,EAAEG,KAAK,CAACR,QAAQ,CAAC;EACtC,IAAI,CAACO,OAAO,EAAE;IACZ,OAAO,IAAI;EACb;EACA,MAAME,EAAE,GAAGC,MAAM,CAACH,OAAO,CAAC,CAAC,CAAC,CAAC;EAE7B,MAAMI,WAAW,GAAGN,KAAK,EAAEG,KAAK,CAACP,YAAY,CAAC;EAC9C,MAAMW,MAAM,GAAGD,WAAW,GAAGD,MAAM,CAACC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;EAEvD,MAAME,UAAU,GAAG,IAAIC,MAAM,CAC1B,UAASL,EAAG,SAAQG,MAAO,qDAAoD,EAChF,GACF,CAAC;EACD,MAAMG,SAAS,GAAGX,IAAI,CAACI,KAAK,CAACK,UAAU,CAAC;EACxC,MAAMG,IAAI,GAAGD,SAAS,IAAIA,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,GAAG,QAAQ,GAAG,SAAS;EAE1E,OAAO;IAAEN,EAAE;IAAEG,MAAM;IAAEI,IAAI;IAAEb;EAAQ,CAAC;AACtC,CAAC;;AAED;AACA;AACA;AACA,MAAMc,iBAAiB,GAAIC,GAAa,IAAK;EAC3C,MAAMC,OAAO,GAAGC,KAAK,CAACC,IAAI,CAACH,GAAG,CAACI,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;EACrE,MAAMC,OAAkB,GAAG,EAAE;EAC7B,MAAM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oB,QAAQ,IAAK;MACnC,MAAMC,EAAE,GAAGH,QAAQ,CAACC,aAAa,CAAC,IAAI,CAAC;MACvCE,EAAE,CAACC,YAAY,CAAC,WAAW,EAAEF,QAAQ,CAAC7B,IAAI,CAAC;MAC3C,IAAI6B,QAAQ,CAACjC,MAAM,GAAG,CAAC,EAAE;QACvBkC,EAAE,CAACC,YAAY,CAAC,OAAO,EAAG,aAAYF,QAAQ,CAACjC,MAAM,GAAG,CAAE,EAAC,CAAC;MAC9D;MACAkC,EAAE,CAACd,SAAS,GAAGa,QAAQ,CAAC1C,OAAO,CAAC6B,SAAS;MACzCU,EAAE,CAACM,WAAW,CAACF,EAAE,CAAC;IACpB,CAAC,CAAC;IAEF,MAAM3C,OAAO,GAAGmC,cAAc,CAAC,CAAC,CAAC,EAAEnC,OAAO;IAC1C,MAAM;MAAE0B;IAAW,CAAC,GAAG1B,OAAO,IAAI,CAAC,CAAC;IACpC,IAAIA,OAAO,EAAE;MACX0B,UAAU,EAAEoB,YAAY,CAACP,EAAE,EAAEvC,OAAO,CAAC;IACvC;IACAmC,cAAc,CAACY,KAAK,CAAC,CAAC,CAAC,CAACzB,OAAO,CAAC0B,IAAA,IAAoB;MAAA,IAAnB;QAAEhD,OAAO,EAAEiD;MAAE,CAAC,GAAAD,IAAA;MAC7CtB,UAAU,EAAEC,WAAW,CAACsB,CAAC,CAAC;IAC5B,CAAC,CAAC;EACJ;AACF,CAAC;AAED,eAAe,SAASC,SAASA,CAACnC,GAAa,EAAE;EAC/C,IACEA,GAAG,CAACa,eAAe,CAACzB,YAAY,CAAC,SAAS,CAAC,KAC3C,uCAAuC,EACvC;IACAW,iBAAiB,CAACC,GAAG,CAAC;EACxB;AACF","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ import Delta from 'quill-delta';
2
+ import type { Blot, ScrollBlot } from 'parchment';
3
+ import Inline from '../blots/inline.js';
4
+ import Quill from '../core/quill.js';
5
+ import Module from '../core/module.js';
6
+ import CodeBlock, { CodeBlockContainer } from '../formats/code.js';
7
+ declare class CodeToken extends Inline {
8
+ static formats(node: Element, scroll: ScrollBlot): any;
9
+ constructor(scroll: ScrollBlot, domNode: Node, value: unknown);
10
+ format(format: string, value: unknown): void;
11
+ optimize(...args: unknown[]): void;
12
+ }
13
+ declare class SyntaxCodeBlock extends CodeBlock {
14
+ static create(value: unknown): HTMLElement;
15
+ static formats(domNode: Node): any;
16
+ static register(): void;
17
+ format(name: string, value: unknown): void;
18
+ replaceWith(name: string | Blot, value?: any): Blot;
19
+ }
20
+ declare class SyntaxCodeBlockContainer extends CodeBlockContainer {
21
+ forceNext?: boolean;
22
+ cachedText?: string | null;
23
+ attach(): void;
24
+ format(name: string, value: unknown): void;
25
+ formatAt(index: number, length: number, name: string, value: unknown): void;
26
+ highlight(highlight: (text: string, language: string) => Delta, forced?: boolean): void;
27
+ html(index: number, length: number): string;
28
+ optimize(context: Record<string, any>): void;
29
+ }
30
+ interface SyntaxOptions {
31
+ interval: number;
32
+ languages: {
33
+ key: string;
34
+ label: string;
35
+ }[];
36
+ hljs: any;
37
+ }
38
+ declare class Syntax extends Module<SyntaxOptions> {
39
+ static DEFAULTS: SyntaxOptions & {
40
+ hljs: any;
41
+ };
42
+ static register(): void;
43
+ languages: Record<string, true>;
44
+ constructor(quill: Quill, options: Partial<SyntaxOptions>);
45
+ initListener(): void;
46
+ initTimer(): void;
47
+ highlight(blot?: SyntaxCodeBlockContainer | null, force?: boolean): void;
48
+ highlightBlot(text: string, language?: string): Delta;
49
+ }
50
+ export { SyntaxCodeBlock as CodeBlock, CodeToken, Syntax as default };