@adminforth/rich-editor 1.0.18 → 1.2.0

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 (1024) hide show
  1. package/.woodpecker/buildRelease.sh +13 -0
  2. package/.woodpecker/buildSlackNotify.sh +44 -0
  3. package/.woodpecker/release.yml +42 -0
  4. package/CHANGELOG.md +5 -0
  5. package/{custom/node_modules/eventemitter3/LICENSE → LICENSE} +2 -2
  6. package/build.log +14 -0
  7. package/custom/quillEditor.vue +4 -2
  8. package/custom/tsconfig.json +19 -0
  9. package/dist/custom/quillEditor.vue +4 -2
  10. package/dist/custom/tsconfig.json +19 -0
  11. package/dist/index.js +3 -3
  12. package/package.json +43 -6
  13. package/ChangeLog.md +0 -17
  14. package/custom/node_modules/.package-lock.json +0 -66
  15. package/custom/node_modules/eventemitter3/README.md +0 -94
  16. package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -347
  17. package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -1
  18. package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +0 -1
  19. package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -355
  20. package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -1
  21. package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +0 -1
  22. package/custom/node_modules/eventemitter3/index.d.ts +0 -135
  23. package/custom/node_modules/eventemitter3/index.js +0 -336
  24. package/custom/node_modules/eventemitter3/index.mjs +0 -4
  25. package/custom/node_modules/eventemitter3/package.json +0 -67
  26. package/custom/node_modules/fast-diff/LICENSE +0 -201
  27. package/custom/node_modules/fast-diff/README.md +0 -24
  28. package/custom/node_modules/fast-diff/diff.d.ts +0 -21
  29. package/custom/node_modules/fast-diff/diff.js +0 -1138
  30. package/custom/node_modules/fast-diff/package.json +0 -30
  31. package/custom/node_modules/lodash-es/LICENSE +0 -47
  32. package/custom/node_modules/lodash-es/README.md +0 -10
  33. package/custom/node_modules/lodash-es/_DataView.js +0 -7
  34. package/custom/node_modules/lodash-es/_Hash.js +0 -32
  35. package/custom/node_modules/lodash-es/_LazyWrapper.js +0 -28
  36. package/custom/node_modules/lodash-es/_ListCache.js +0 -32
  37. package/custom/node_modules/lodash-es/_LodashWrapper.js +0 -22
  38. package/custom/node_modules/lodash-es/_Map.js +0 -7
  39. package/custom/node_modules/lodash-es/_MapCache.js +0 -32
  40. package/custom/node_modules/lodash-es/_Promise.js +0 -7
  41. package/custom/node_modules/lodash-es/_Set.js +0 -7
  42. package/custom/node_modules/lodash-es/_SetCache.js +0 -27
  43. package/custom/node_modules/lodash-es/_Stack.js +0 -27
  44. package/custom/node_modules/lodash-es/_Symbol.js +0 -6
  45. package/custom/node_modules/lodash-es/_Uint8Array.js +0 -6
  46. package/custom/node_modules/lodash-es/_WeakMap.js +0 -7
  47. package/custom/node_modules/lodash-es/_addMapEntry.js +0 -15
  48. package/custom/node_modules/lodash-es/_addSetEntry.js +0 -15
  49. package/custom/node_modules/lodash-es/_apply.js +0 -21
  50. package/custom/node_modules/lodash-es/_arrayAggregator.js +0 -22
  51. package/custom/node_modules/lodash-es/_arrayEach.js +0 -22
  52. package/custom/node_modules/lodash-es/_arrayEachRight.js +0 -21
  53. package/custom/node_modules/lodash-es/_arrayEvery.js +0 -23
  54. package/custom/node_modules/lodash-es/_arrayFilter.js +0 -25
  55. package/custom/node_modules/lodash-es/_arrayIncludes.js +0 -17
  56. package/custom/node_modules/lodash-es/_arrayIncludesWith.js +0 -22
  57. package/custom/node_modules/lodash-es/_arrayLikeKeys.js +0 -49
  58. package/custom/node_modules/lodash-es/_arrayMap.js +0 -21
  59. package/custom/node_modules/lodash-es/_arrayPush.js +0 -20
  60. package/custom/node_modules/lodash-es/_arrayReduce.js +0 -26
  61. package/custom/node_modules/lodash-es/_arrayReduceRight.js +0 -24
  62. package/custom/node_modules/lodash-es/_arraySample.js +0 -15
  63. package/custom/node_modules/lodash-es/_arraySampleSize.js +0 -17
  64. package/custom/node_modules/lodash-es/_arrayShuffle.js +0 -15
  65. package/custom/node_modules/lodash-es/_arraySome.js +0 -23
  66. package/custom/node_modules/lodash-es/_asciiSize.js +0 -12
  67. package/custom/node_modules/lodash-es/_asciiToArray.js +0 -12
  68. package/custom/node_modules/lodash-es/_asciiWords.js +0 -15
  69. package/custom/node_modules/lodash-es/_assignMergeValue.js +0 -20
  70. package/custom/node_modules/lodash-es/_assignValue.js +0 -28
  71. package/custom/node_modules/lodash-es/_assocIndexOf.js +0 -21
  72. package/custom/node_modules/lodash-es/_baseAggregator.js +0 -21
  73. package/custom/node_modules/lodash-es/_baseAssign.js +0 -17
  74. package/custom/node_modules/lodash-es/_baseAssignIn.js +0 -17
  75. package/custom/node_modules/lodash-es/_baseAssignValue.js +0 -25
  76. package/custom/node_modules/lodash-es/_baseAt.js +0 -23
  77. package/custom/node_modules/lodash-es/_baseClamp.js +0 -22
  78. package/custom/node_modules/lodash-es/_baseClone.js +0 -166
  79. package/custom/node_modules/lodash-es/_baseConforms.js +0 -18
  80. package/custom/node_modules/lodash-es/_baseConformsTo.js +0 -27
  81. package/custom/node_modules/lodash-es/_baseCreate.js +0 -30
  82. package/custom/node_modules/lodash-es/_baseDelay.js +0 -21
  83. package/custom/node_modules/lodash-es/_baseDifference.js +0 -67
  84. package/custom/node_modules/lodash-es/_baseEach.js +0 -14
  85. package/custom/node_modules/lodash-es/_baseEachRight.js +0 -14
  86. package/custom/node_modules/lodash-es/_baseEvery.js +0 -21
  87. package/custom/node_modules/lodash-es/_baseExtremum.js +0 -32
  88. package/custom/node_modules/lodash-es/_baseFill.js +0 -32
  89. package/custom/node_modules/lodash-es/_baseFilter.js +0 -21
  90. package/custom/node_modules/lodash-es/_baseFindIndex.js +0 -24
  91. package/custom/node_modules/lodash-es/_baseFindKey.js +0 -23
  92. package/custom/node_modules/lodash-es/_baseFlatten.js +0 -38
  93. package/custom/node_modules/lodash-es/_baseFor.js +0 -16
  94. package/custom/node_modules/lodash-es/_baseForOwn.js +0 -16
  95. package/custom/node_modules/lodash-es/_baseForOwnRight.js +0 -16
  96. package/custom/node_modules/lodash-es/_baseForRight.js +0 -15
  97. package/custom/node_modules/lodash-es/_baseFunctions.js +0 -19
  98. package/custom/node_modules/lodash-es/_baseGet.js +0 -24
  99. package/custom/node_modules/lodash-es/_baseGetAllKeys.js +0 -20
  100. package/custom/node_modules/lodash-es/_baseGetTag.js +0 -28
  101. package/custom/node_modules/lodash-es/_baseGt.js +0 -14
  102. package/custom/node_modules/lodash-es/_baseHas.js +0 -19
  103. package/custom/node_modules/lodash-es/_baseHasIn.js +0 -13
  104. package/custom/node_modules/lodash-es/_baseInRange.js +0 -18
  105. package/custom/node_modules/lodash-es/_baseIndexOf.js +0 -20
  106. package/custom/node_modules/lodash-es/_baseIndexOfWith.js +0 -23
  107. package/custom/node_modules/lodash-es/_baseIntersection.js +0 -74
  108. package/custom/node_modules/lodash-es/_baseInverter.js +0 -21
  109. package/custom/node_modules/lodash-es/_baseInvoke.js +0 -24
  110. package/custom/node_modules/lodash-es/_baseIsArguments.js +0 -18
  111. package/custom/node_modules/lodash-es/_baseIsArrayBuffer.js +0 -17
  112. package/custom/node_modules/lodash-es/_baseIsDate.js +0 -18
  113. package/custom/node_modules/lodash-es/_baseIsEqual.js +0 -28
  114. package/custom/node_modules/lodash-es/_baseIsEqualDeep.js +0 -83
  115. package/custom/node_modules/lodash-es/_baseIsMap.js +0 -18
  116. package/custom/node_modules/lodash-es/_baseIsMatch.js +0 -62
  117. package/custom/node_modules/lodash-es/_baseIsNaN.js +0 -12
  118. package/custom/node_modules/lodash-es/_baseIsNative.js +0 -47
  119. package/custom/node_modules/lodash-es/_baseIsRegExp.js +0 -18
  120. package/custom/node_modules/lodash-es/_baseIsSet.js +0 -18
  121. package/custom/node_modules/lodash-es/_baseIsTypedArray.js +0 -60
  122. package/custom/node_modules/lodash-es/_baseIteratee.js +0 -31
  123. package/custom/node_modules/lodash-es/_baseKeys.js +0 -30
  124. package/custom/node_modules/lodash-es/_baseKeysIn.js +0 -33
  125. package/custom/node_modules/lodash-es/_baseLodash.js +0 -10
  126. package/custom/node_modules/lodash-es/_baseLt.js +0 -14
  127. package/custom/node_modules/lodash-es/_baseMap.js +0 -22
  128. package/custom/node_modules/lodash-es/_baseMatches.js +0 -22
  129. package/custom/node_modules/lodash-es/_baseMatchesProperty.js +0 -33
  130. package/custom/node_modules/lodash-es/_baseMean.js +0 -20
  131. package/custom/node_modules/lodash-es/_baseMerge.js +0 -42
  132. package/custom/node_modules/lodash-es/_baseMergeDeep.js +0 -94
  133. package/custom/node_modules/lodash-es/_baseNth.js +0 -20
  134. package/custom/node_modules/lodash-es/_baseOrderBy.js +0 -49
  135. package/custom/node_modules/lodash-es/_basePick.js +0 -19
  136. package/custom/node_modules/lodash-es/_basePickBy.js +0 -30
  137. package/custom/node_modules/lodash-es/_baseProperty.js +0 -14
  138. package/custom/node_modules/lodash-es/_basePropertyDeep.js +0 -16
  139. package/custom/node_modules/lodash-es/_basePropertyOf.js +0 -14
  140. package/custom/node_modules/lodash-es/_basePullAll.js +0 -51
  141. package/custom/node_modules/lodash-es/_basePullAt.js +0 -37
  142. package/custom/node_modules/lodash-es/_baseRandom.js +0 -18
  143. package/custom/node_modules/lodash-es/_baseRange.js +0 -28
  144. package/custom/node_modules/lodash-es/_baseReduce.js +0 -23
  145. package/custom/node_modules/lodash-es/_baseRepeat.js +0 -35
  146. package/custom/node_modules/lodash-es/_baseRest.js +0 -17
  147. package/custom/node_modules/lodash-es/_baseSample.js +0 -15
  148. package/custom/node_modules/lodash-es/_baseSampleSize.js +0 -18
  149. package/custom/node_modules/lodash-es/_baseSet.js +0 -51
  150. package/custom/node_modules/lodash-es/_baseSetData.js +0 -17
  151. package/custom/node_modules/lodash-es/_baseSetToString.js +0 -22
  152. package/custom/node_modules/lodash-es/_baseShuffle.js +0 -15
  153. package/custom/node_modules/lodash-es/_baseSlice.js +0 -31
  154. package/custom/node_modules/lodash-es/_baseSome.js +0 -22
  155. package/custom/node_modules/lodash-es/_baseSortBy.js +0 -21
  156. package/custom/node_modules/lodash-es/_baseSortedIndex.js +0 -42
  157. package/custom/node_modules/lodash-es/_baseSortedIndexBy.js +0 -67
  158. package/custom/node_modules/lodash-es/_baseSortedUniq.js +0 -30
  159. package/custom/node_modules/lodash-es/_baseSum.js +0 -24
  160. package/custom/node_modules/lodash-es/_baseTimes.js +0 -20
  161. package/custom/node_modules/lodash-es/_baseToNumber.js +0 -24
  162. package/custom/node_modules/lodash-es/_baseToPairs.js +0 -18
  163. package/custom/node_modules/lodash-es/_baseToString.js +0 -37
  164. package/custom/node_modules/lodash-es/_baseTrim.js +0 -19
  165. package/custom/node_modules/lodash-es/_baseUnary.js +0 -14
  166. package/custom/node_modules/lodash-es/_baseUniq.js +0 -72
  167. package/custom/node_modules/lodash-es/_baseUnset.js +0 -20
  168. package/custom/node_modules/lodash-es/_baseUpdate.js +0 -18
  169. package/custom/node_modules/lodash-es/_baseValues.js +0 -19
  170. package/custom/node_modules/lodash-es/_baseWhile.js +0 -26
  171. package/custom/node_modules/lodash-es/_baseWrapperValue.js +0 -25
  172. package/custom/node_modules/lodash-es/_baseXor.js +0 -36
  173. package/custom/node_modules/lodash-es/_baseZipObject.js +0 -23
  174. package/custom/node_modules/lodash-es/_cacheHas.js +0 -13
  175. package/custom/node_modules/lodash-es/_castArrayLikeObject.js +0 -14
  176. package/custom/node_modules/lodash-es/_castFunction.js +0 -14
  177. package/custom/node_modules/lodash-es/_castPath.js +0 -21
  178. package/custom/node_modules/lodash-es/_castRest.js +0 -14
  179. package/custom/node_modules/lodash-es/_castSlice.js +0 -18
  180. package/custom/node_modules/lodash-es/_charsEndIndex.js +0 -19
  181. package/custom/node_modules/lodash-es/_charsStartIndex.js +0 -20
  182. package/custom/node_modules/lodash-es/_cloneArrayBuffer.js +0 -16
  183. package/custom/node_modules/lodash-es/_cloneBuffer.js +0 -35
  184. package/custom/node_modules/lodash-es/_cloneDataView.js +0 -16
  185. package/custom/node_modules/lodash-es/_cloneMap.js +0 -22
  186. package/custom/node_modules/lodash-es/_cloneRegExp.js +0 -17
  187. package/custom/node_modules/lodash-es/_cloneSet.js +0 -22
  188. package/custom/node_modules/lodash-es/_cloneSymbol.js +0 -18
  189. package/custom/node_modules/lodash-es/_cloneTypedArray.js +0 -16
  190. package/custom/node_modules/lodash-es/_compareAscending.js +0 -41
  191. package/custom/node_modules/lodash-es/_compareMultiple.js +0 -44
  192. package/custom/node_modules/lodash-es/_composeArgs.js +0 -39
  193. package/custom/node_modules/lodash-es/_composeArgsRight.js +0 -41
  194. package/custom/node_modules/lodash-es/_copyArray.js +0 -20
  195. package/custom/node_modules/lodash-es/_copyObject.js +0 -40
  196. package/custom/node_modules/lodash-es/_copySymbols.js +0 -16
  197. package/custom/node_modules/lodash-es/_copySymbolsIn.js +0 -16
  198. package/custom/node_modules/lodash-es/_coreJsData.js +0 -6
  199. package/custom/node_modules/lodash-es/_countHolders.js +0 -21
  200. package/custom/node_modules/lodash-es/_createAggregator.js +0 -23
  201. package/custom/node_modules/lodash-es/_createAssigner.js +0 -37
  202. package/custom/node_modules/lodash-es/_createBaseEach.js +0 -32
  203. package/custom/node_modules/lodash-es/_createBaseFor.js +0 -25
  204. package/custom/node_modules/lodash-es/_createBind.js +0 -28
  205. package/custom/node_modules/lodash-es/_createCaseFirst.js +0 -33
  206. package/custom/node_modules/lodash-es/_createCompounder.js +0 -24
  207. package/custom/node_modules/lodash-es/_createCtor.js +0 -37
  208. package/custom/node_modules/lodash-es/_createCurry.js +0 -46
  209. package/custom/node_modules/lodash-es/_createFind.js +0 -25
  210. package/custom/node_modules/lodash-es/_createFlow.js +0 -78
  211. package/custom/node_modules/lodash-es/_createHybrid.js +0 -92
  212. package/custom/node_modules/lodash-es/_createInverter.js +0 -17
  213. package/custom/node_modules/lodash-es/_createMathOperation.js +0 -38
  214. package/custom/node_modules/lodash-es/_createOver.js +0 -27
  215. package/custom/node_modules/lodash-es/_createPadding.js +0 -33
  216. package/custom/node_modules/lodash-es/_createPartial.js +0 -43
  217. package/custom/node_modules/lodash-es/_createRange.js +0 -30
  218. package/custom/node_modules/lodash-es/_createRecurry.js +0 -56
  219. package/custom/node_modules/lodash-es/_createRelationalOperation.js +0 -20
  220. package/custom/node_modules/lodash-es/_createRound.js +0 -35
  221. package/custom/node_modules/lodash-es/_createSet.js +0 -19
  222. package/custom/node_modules/lodash-es/_createToPairs.js +0 -30
  223. package/custom/node_modules/lodash-es/_createWrap.js +0 -106
  224. package/custom/node_modules/lodash-es/_customDefaultsAssignIn.js +0 -29
  225. package/custom/node_modules/lodash-es/_customDefaultsMerge.js +0 -28
  226. package/custom/node_modules/lodash-es/_customOmitClone.js +0 -16
  227. package/custom/node_modules/lodash-es/_deburrLetter.js +0 -71
  228. package/custom/node_modules/lodash-es/_defineProperty.js +0 -11
  229. package/custom/node_modules/lodash-es/_equalArrays.js +0 -84
  230. package/custom/node_modules/lodash-es/_equalByTag.js +0 -112
  231. package/custom/node_modules/lodash-es/_equalObjects.js +0 -90
  232. package/custom/node_modules/lodash-es/_escapeHtmlChar.js +0 -21
  233. package/custom/node_modules/lodash-es/_escapeStringChar.js +0 -22
  234. package/custom/node_modules/lodash-es/_flatRest.js +0 -16
  235. package/custom/node_modules/lodash-es/_freeGlobal.js +0 -4
  236. package/custom/node_modules/lodash-es/_getAllKeys.js +0 -16
  237. package/custom/node_modules/lodash-es/_getAllKeysIn.js +0 -17
  238. package/custom/node_modules/lodash-es/_getData.js +0 -15
  239. package/custom/node_modules/lodash-es/_getFuncName.js +0 -31
  240. package/custom/node_modules/lodash-es/_getHolder.js +0 -13
  241. package/custom/node_modules/lodash-es/_getMapData.js +0 -18
  242. package/custom/node_modules/lodash-es/_getMatchData.js +0 -24
  243. package/custom/node_modules/lodash-es/_getNative.js +0 -17
  244. package/custom/node_modules/lodash-es/_getPrototype.js +0 -6
  245. package/custom/node_modules/lodash-es/_getRawTag.js +0 -46
  246. package/custom/node_modules/lodash-es/_getSymbols.js +0 -30
  247. package/custom/node_modules/lodash-es/_getSymbolsIn.js +0 -25
  248. package/custom/node_modules/lodash-es/_getTag.js +0 -58
  249. package/custom/node_modules/lodash-es/_getValue.js +0 -13
  250. package/custom/node_modules/lodash-es/_getView.js +0 -33
  251. package/custom/node_modules/lodash-es/_getWrapDetails.js +0 -17
  252. package/custom/node_modules/lodash-es/_hasPath.js +0 -39
  253. package/custom/node_modules/lodash-es/_hasUnicode.js +0 -26
  254. package/custom/node_modules/lodash-es/_hasUnicodeWord.js +0 -15
  255. package/custom/node_modules/lodash-es/_hashClear.js +0 -15
  256. package/custom/node_modules/lodash-es/_hashDelete.js +0 -17
  257. package/custom/node_modules/lodash-es/_hashGet.js +0 -30
  258. package/custom/node_modules/lodash-es/_hashHas.js +0 -23
  259. package/custom/node_modules/lodash-es/_hashSet.js +0 -23
  260. package/custom/node_modules/lodash-es/_initCloneArray.js +0 -26
  261. package/custom/node_modules/lodash-es/_initCloneByTag.js +0 -77
  262. package/custom/node_modules/lodash-es/_initCloneObject.js +0 -18
  263. package/custom/node_modules/lodash-es/_insertWrapDetails.js +0 -23
  264. package/custom/node_modules/lodash-es/_isFlattenable.js +0 -20
  265. package/custom/node_modules/lodash-es/_isIndex.js +0 -25
  266. package/custom/node_modules/lodash-es/_isIterateeCall.js +0 -30
  267. package/custom/node_modules/lodash-es/_isKey.js +0 -29
  268. package/custom/node_modules/lodash-es/_isKeyable.js +0 -15
  269. package/custom/node_modules/lodash-es/_isLaziable.js +0 -28
  270. package/custom/node_modules/lodash-es/_isMaskable.js +0 -14
  271. package/custom/node_modules/lodash-es/_isMasked.js +0 -20
  272. package/custom/node_modules/lodash-es/_isPrototype.js +0 -18
  273. package/custom/node_modules/lodash-es/_isStrictComparable.js +0 -15
  274. package/custom/node_modules/lodash-es/_iteratorToArray.js +0 -18
  275. package/custom/node_modules/lodash-es/_lazyClone.js +0 -23
  276. package/custom/node_modules/lodash-es/_lazyReverse.js +0 -23
  277. package/custom/node_modules/lodash-es/_lazyValue.js +0 -69
  278. package/custom/node_modules/lodash-es/_listCacheClear.js +0 -13
  279. package/custom/node_modules/lodash-es/_listCacheDelete.js +0 -35
  280. package/custom/node_modules/lodash-es/_listCacheGet.js +0 -19
  281. package/custom/node_modules/lodash-es/_listCacheHas.js +0 -16
  282. package/custom/node_modules/lodash-es/_listCacheSet.js +0 -26
  283. package/custom/node_modules/lodash-es/_mapCacheClear.js +0 -21
  284. package/custom/node_modules/lodash-es/_mapCacheDelete.js +0 -18
  285. package/custom/node_modules/lodash-es/_mapCacheGet.js +0 -16
  286. package/custom/node_modules/lodash-es/_mapCacheHas.js +0 -16
  287. package/custom/node_modules/lodash-es/_mapCacheSet.js +0 -22
  288. package/custom/node_modules/lodash-es/_mapToArray.js +0 -18
  289. package/custom/node_modules/lodash-es/_matchesStrictComparable.js +0 -20
  290. package/custom/node_modules/lodash-es/_memoizeCapped.js +0 -26
  291. package/custom/node_modules/lodash-es/_mergeData.js +0 -90
  292. package/custom/node_modules/lodash-es/_metaMap.js +0 -6
  293. package/custom/node_modules/lodash-es/_nativeCreate.js +0 -6
  294. package/custom/node_modules/lodash-es/_nativeKeys.js +0 -6
  295. package/custom/node_modules/lodash-es/_nativeKeysIn.js +0 -20
  296. package/custom/node_modules/lodash-es/_nodeUtil.js +0 -30
  297. package/custom/node_modules/lodash-es/_objectToString.js +0 -22
  298. package/custom/node_modules/lodash-es/_overArg.js +0 -15
  299. package/custom/node_modules/lodash-es/_overRest.js +0 -36
  300. package/custom/node_modules/lodash-es/_parent.js +0 -16
  301. package/custom/node_modules/lodash-es/_reEscape.js +0 -4
  302. package/custom/node_modules/lodash-es/_reEvaluate.js +0 -4
  303. package/custom/node_modules/lodash-es/_reInterpolate.js +0 -4
  304. package/custom/node_modules/lodash-es/_realNames.js +0 -4
  305. package/custom/node_modules/lodash-es/_reorder.js +0 -29
  306. package/custom/node_modules/lodash-es/_replaceHolders.js +0 -29
  307. package/custom/node_modules/lodash-es/_root.js +0 -9
  308. package/custom/node_modules/lodash-es/_safeGet.js +0 -21
  309. package/custom/node_modules/lodash-es/_setCacheAdd.js +0 -19
  310. package/custom/node_modules/lodash-es/_setCacheHas.js +0 -14
  311. package/custom/node_modules/lodash-es/_setData.js +0 -20
  312. package/custom/node_modules/lodash-es/_setToArray.js +0 -18
  313. package/custom/node_modules/lodash-es/_setToPairs.js +0 -18
  314. package/custom/node_modules/lodash-es/_setToString.js +0 -14
  315. package/custom/node_modules/lodash-es/_setWrapToString.js +0 -21
  316. package/custom/node_modules/lodash-es/_shortOut.js +0 -37
  317. package/custom/node_modules/lodash-es/_shuffleSelf.js +0 -28
  318. package/custom/node_modules/lodash-es/_stackClear.js +0 -15
  319. package/custom/node_modules/lodash-es/_stackDelete.js +0 -18
  320. package/custom/node_modules/lodash-es/_stackGet.js +0 -14
  321. package/custom/node_modules/lodash-es/_stackHas.js +0 -14
  322. package/custom/node_modules/lodash-es/_stackSet.js +0 -34
  323. package/custom/node_modules/lodash-es/_strictIndexOf.js +0 -23
  324. package/custom/node_modules/lodash-es/_strictLastIndexOf.js +0 -21
  325. package/custom/node_modules/lodash-es/_stringSize.js +0 -18
  326. package/custom/node_modules/lodash-es/_stringToArray.js +0 -18
  327. package/custom/node_modules/lodash-es/_stringToPath.js +0 -27
  328. package/custom/node_modules/lodash-es/_toKey.js +0 -21
  329. package/custom/node_modules/lodash-es/_toSource.js +0 -26
  330. package/custom/node_modules/lodash-es/_trimmedEndIndex.js +0 -19
  331. package/custom/node_modules/lodash-es/_unescapeHtmlChar.js +0 -21
  332. package/custom/node_modules/lodash-es/_unicodeSize.js +0 -44
  333. package/custom/node_modules/lodash-es/_unicodeToArray.js +0 -40
  334. package/custom/node_modules/lodash-es/_unicodeWords.js +0 -69
  335. package/custom/node_modules/lodash-es/_updateWrapDetails.js +0 -46
  336. package/custom/node_modules/lodash-es/_wrapperClone.js +0 -23
  337. package/custom/node_modules/lodash-es/add.js +0 -22
  338. package/custom/node_modules/lodash-es/after.js +0 -42
  339. package/custom/node_modules/lodash-es/array.default.js +0 -81
  340. package/custom/node_modules/lodash-es/array.js +0 -66
  341. package/custom/node_modules/lodash-es/ary.js +0 -29
  342. package/custom/node_modules/lodash-es/assign.js +0 -58
  343. package/custom/node_modules/lodash-es/assignIn.js +0 -40
  344. package/custom/node_modules/lodash-es/assignInWith.js +0 -38
  345. package/custom/node_modules/lodash-es/assignWith.js +0 -37
  346. package/custom/node_modules/lodash-es/at.js +0 -23
  347. package/custom/node_modules/lodash-es/attempt.js +0 -35
  348. package/custom/node_modules/lodash-es/before.js +0 -40
  349. package/custom/node_modules/lodash-es/bind.js +0 -57
  350. package/custom/node_modules/lodash-es/bindAll.js +0 -41
  351. package/custom/node_modules/lodash-es/bindKey.js +0 -68
  352. package/custom/node_modules/lodash-es/camelCase.js +0 -29
  353. package/custom/node_modules/lodash-es/capitalize.js +0 -23
  354. package/custom/node_modules/lodash-es/castArray.js +0 -44
  355. package/custom/node_modules/lodash-es/ceil.js +0 -26
  356. package/custom/node_modules/lodash-es/chain.js +0 -38
  357. package/custom/node_modules/lodash-es/chunk.js +0 -50
  358. package/custom/node_modules/lodash-es/clamp.js +0 -39
  359. package/custom/node_modules/lodash-es/clone.js +0 -36
  360. package/custom/node_modules/lodash-es/cloneDeep.js +0 -29
  361. package/custom/node_modules/lodash-es/cloneDeepWith.js +0 -40
  362. package/custom/node_modules/lodash-es/cloneWith.js +0 -42
  363. package/custom/node_modules/lodash-es/collection.default.js +0 -37
  364. package/custom/node_modules/lodash-es/collection.js +0 -29
  365. package/custom/node_modules/lodash-es/commit.js +0 -33
  366. package/custom/node_modules/lodash-es/compact.js +0 -31
  367. package/custom/node_modules/lodash-es/concat.js +0 -43
  368. package/custom/node_modules/lodash-es/cond.js +0 -60
  369. package/custom/node_modules/lodash-es/conforms.js +0 -35
  370. package/custom/node_modules/lodash-es/conformsTo.js +0 -32
  371. package/custom/node_modules/lodash-es/constant.js +0 -26
  372. package/custom/node_modules/lodash-es/countBy.js +0 -40
  373. package/custom/node_modules/lodash-es/create.js +0 -43
  374. package/custom/node_modules/lodash-es/curry.js +0 -57
  375. package/custom/node_modules/lodash-es/curryRight.js +0 -54
  376. package/custom/node_modules/lodash-es/date.default.js +0 -5
  377. package/custom/node_modules/lodash-es/date.js +0 -2
  378. package/custom/node_modules/lodash-es/debounce.js +0 -191
  379. package/custom/node_modules/lodash-es/deburr.js +0 -45
  380. package/custom/node_modules/lodash-es/defaultTo.js +0 -25
  381. package/custom/node_modules/lodash-es/defaults.js +0 -64
  382. package/custom/node_modules/lodash-es/defaultsDeep.js +0 -30
  383. package/custom/node_modules/lodash-es/defer.js +0 -26
  384. package/custom/node_modules/lodash-es/delay.js +0 -28
  385. package/custom/node_modules/lodash-es/difference.js +0 -33
  386. package/custom/node_modules/lodash-es/differenceBy.js +0 -44
  387. package/custom/node_modules/lodash-es/differenceWith.js +0 -40
  388. package/custom/node_modules/lodash-es/divide.js +0 -22
  389. package/custom/node_modules/lodash-es/drop.js +0 -38
  390. package/custom/node_modules/lodash-es/dropRight.js +0 -39
  391. package/custom/node_modules/lodash-es/dropRightWhile.js +0 -45
  392. package/custom/node_modules/lodash-es/dropWhile.js +0 -45
  393. package/custom/node_modules/lodash-es/each.js +0 -1
  394. package/custom/node_modules/lodash-es/eachRight.js +0 -1
  395. package/custom/node_modules/lodash-es/endsWith.js +0 -43
  396. package/custom/node_modules/lodash-es/entries.js +0 -1
  397. package/custom/node_modules/lodash-es/entriesIn.js +0 -1
  398. package/custom/node_modules/lodash-es/eq.js +0 -37
  399. package/custom/node_modules/lodash-es/escape.js +0 -43
  400. package/custom/node_modules/lodash-es/escapeRegExp.js +0 -32
  401. package/custom/node_modules/lodash-es/every.js +0 -56
  402. package/custom/node_modules/lodash-es/extend.js +0 -1
  403. package/custom/node_modules/lodash-es/extendWith.js +0 -1
  404. package/custom/node_modules/lodash-es/fill.js +0 -45
  405. package/custom/node_modules/lodash-es/filter.js +0 -52
  406. package/custom/node_modules/lodash-es/find.js +0 -42
  407. package/custom/node_modules/lodash-es/findIndex.js +0 -55
  408. package/custom/node_modules/lodash-es/findKey.js +0 -44
  409. package/custom/node_modules/lodash-es/findLast.js +0 -25
  410. package/custom/node_modules/lodash-es/findLastIndex.js +0 -59
  411. package/custom/node_modules/lodash-es/findLastKey.js +0 -44
  412. package/custom/node_modules/lodash-es/first.js +0 -1
  413. package/custom/node_modules/lodash-es/flake.lock +0 -40
  414. package/custom/node_modules/lodash-es/flake.nix +0 -20
  415. package/custom/node_modules/lodash-es/flatMap.js +0 -29
  416. package/custom/node_modules/lodash-es/flatMapDeep.js +0 -31
  417. package/custom/node_modules/lodash-es/flatMapDepth.js +0 -31
  418. package/custom/node_modules/lodash-es/flatten.js +0 -22
  419. package/custom/node_modules/lodash-es/flattenDeep.js +0 -25
  420. package/custom/node_modules/lodash-es/flattenDepth.js +0 -33
  421. package/custom/node_modules/lodash-es/flip.js +0 -28
  422. package/custom/node_modules/lodash-es/floor.js +0 -26
  423. package/custom/node_modules/lodash-es/flow.js +0 -27
  424. package/custom/node_modules/lodash-es/flowRight.js +0 -26
  425. package/custom/node_modules/lodash-es/forEach.js +0 -41
  426. package/custom/node_modules/lodash-es/forEachRight.js +0 -31
  427. package/custom/node_modules/lodash-es/forIn.js +0 -39
  428. package/custom/node_modules/lodash-es/forInRight.js +0 -37
  429. package/custom/node_modules/lodash-es/forOwn.js +0 -36
  430. package/custom/node_modules/lodash-es/forOwnRight.js +0 -34
  431. package/custom/node_modules/lodash-es/fromPairs.js +0 -28
  432. package/custom/node_modules/lodash-es/function.default.js +0 -31
  433. package/custom/node_modules/lodash-es/function.js +0 -24
  434. package/custom/node_modules/lodash-es/functions.js +0 -31
  435. package/custom/node_modules/lodash-es/functionsIn.js +0 -31
  436. package/custom/node_modules/lodash-es/get.js +0 -33
  437. package/custom/node_modules/lodash-es/groupBy.js +0 -41
  438. package/custom/node_modules/lodash-es/gt.js +0 -29
  439. package/custom/node_modules/lodash-es/gte.js +0 -30
  440. package/custom/node_modules/lodash-es/has.js +0 -35
  441. package/custom/node_modules/lodash-es/hasIn.js +0 -34
  442. package/custom/node_modules/lodash-es/head.js +0 -23
  443. package/custom/node_modules/lodash-es/identity.js +0 -21
  444. package/custom/node_modules/lodash-es/inRange.js +0 -55
  445. package/custom/node_modules/lodash-es/includes.js +0 -53
  446. package/custom/node_modules/lodash-es/indexOf.js +0 -42
  447. package/custom/node_modules/lodash-es/initial.js +0 -22
  448. package/custom/node_modules/lodash-es/intersection.js +0 -30
  449. package/custom/node_modules/lodash-es/intersectionBy.js +0 -45
  450. package/custom/node_modules/lodash-es/intersectionWith.js +0 -41
  451. package/custom/node_modules/lodash-es/invert.js +0 -42
  452. package/custom/node_modules/lodash-es/invertBy.js +0 -56
  453. package/custom/node_modules/lodash-es/invoke.js +0 -24
  454. package/custom/node_modules/lodash-es/invokeMap.js +0 -41
  455. package/custom/node_modules/lodash-es/isArguments.js +0 -36
  456. package/custom/node_modules/lodash-es/isArray.js +0 -26
  457. package/custom/node_modules/lodash-es/isArrayBuffer.js +0 -27
  458. package/custom/node_modules/lodash-es/isArrayLike.js +0 -33
  459. package/custom/node_modules/lodash-es/isArrayLikeObject.js +0 -33
  460. package/custom/node_modules/lodash-es/isBoolean.js +0 -29
  461. package/custom/node_modules/lodash-es/isBuffer.js +0 -38
  462. package/custom/node_modules/lodash-es/isDate.js +0 -27
  463. package/custom/node_modules/lodash-es/isElement.js +0 -25
  464. package/custom/node_modules/lodash-es/isEmpty.js +0 -77
  465. package/custom/node_modules/lodash-es/isEqual.js +0 -35
  466. package/custom/node_modules/lodash-es/isEqualWith.js +0 -41
  467. package/custom/node_modules/lodash-es/isError.js +0 -36
  468. package/custom/node_modules/lodash-es/isFinite.js +0 -36
  469. package/custom/node_modules/lodash-es/isFunction.js +0 -37
  470. package/custom/node_modules/lodash-es/isInteger.js +0 -33
  471. package/custom/node_modules/lodash-es/isLength.js +0 -35
  472. package/custom/node_modules/lodash-es/isMap.js +0 -27
  473. package/custom/node_modules/lodash-es/isMatch.js +0 -36
  474. package/custom/node_modules/lodash-es/isMatchWith.js +0 -41
  475. package/custom/node_modules/lodash-es/isNaN.js +0 -38
  476. package/custom/node_modules/lodash-es/isNative.js +0 -40
  477. package/custom/node_modules/lodash-es/isNil.js +0 -25
  478. package/custom/node_modules/lodash-es/isNull.js +0 -22
  479. package/custom/node_modules/lodash-es/isNumber.js +0 -38
  480. package/custom/node_modules/lodash-es/isObject.js +0 -31
  481. package/custom/node_modules/lodash-es/isObjectLike.js +0 -29
  482. package/custom/node_modules/lodash-es/isPlainObject.js +0 -62
  483. package/custom/node_modules/lodash-es/isRegExp.js +0 -27
  484. package/custom/node_modules/lodash-es/isSafeInteger.js +0 -37
  485. package/custom/node_modules/lodash-es/isSet.js +0 -27
  486. package/custom/node_modules/lodash-es/isString.js +0 -30
  487. package/custom/node_modules/lodash-es/isSymbol.js +0 -29
  488. package/custom/node_modules/lodash-es/isTypedArray.js +0 -27
  489. package/custom/node_modules/lodash-es/isUndefined.js +0 -22
  490. package/custom/node_modules/lodash-es/isWeakMap.js +0 -28
  491. package/custom/node_modules/lodash-es/isWeakSet.js +0 -28
  492. package/custom/node_modules/lodash-es/iteratee.js +0 -53
  493. package/custom/node_modules/lodash-es/join.js +0 -26
  494. package/custom/node_modules/lodash-es/kebabCase.js +0 -28
  495. package/custom/node_modules/lodash-es/keyBy.js +0 -36
  496. package/custom/node_modules/lodash-es/keys.js +0 -37
  497. package/custom/node_modules/lodash-es/keysIn.js +0 -32
  498. package/custom/node_modules/lodash-es/lang.default.js +0 -71
  499. package/custom/node_modules/lodash-es/lang.js +0 -57
  500. package/custom/node_modules/lodash-es/last.js +0 -20
  501. package/custom/node_modules/lodash-es/lastIndexOf.js +0 -46
  502. package/custom/node_modules/lodash-es/lodash.default.js +0 -643
  503. package/custom/node_modules/lodash-es/lodash.js +0 -331
  504. package/custom/node_modules/lodash-es/lowerCase.js +0 -27
  505. package/custom/node_modules/lodash-es/lowerFirst.js +0 -22
  506. package/custom/node_modules/lodash-es/lt.js +0 -29
  507. package/custom/node_modules/lodash-es/lte.js +0 -30
  508. package/custom/node_modules/lodash-es/map.js +0 -53
  509. package/custom/node_modules/lodash-es/mapKeys.js +0 -36
  510. package/custom/node_modules/lodash-es/mapValues.js +0 -43
  511. package/custom/node_modules/lodash-es/matches.js +0 -46
  512. package/custom/node_modules/lodash-es/matchesProperty.js +0 -44
  513. package/custom/node_modules/lodash-es/math.default.js +0 -21
  514. package/custom/node_modules/lodash-es/math.js +0 -16
  515. package/custom/node_modules/lodash-es/max.js +0 -29
  516. package/custom/node_modules/lodash-es/maxBy.js +0 -34
  517. package/custom/node_modules/lodash-es/mean.js +0 -22
  518. package/custom/node_modules/lodash-es/meanBy.js +0 -31
  519. package/custom/node_modules/lodash-es/memoize.js +0 -73
  520. package/custom/node_modules/lodash-es/merge.js +0 -39
  521. package/custom/node_modules/lodash-es/mergeWith.js +0 -39
  522. package/custom/node_modules/lodash-es/method.js +0 -34
  523. package/custom/node_modules/lodash-es/methodOf.js +0 -33
  524. package/custom/node_modules/lodash-es/min.js +0 -29
  525. package/custom/node_modules/lodash-es/minBy.js +0 -34
  526. package/custom/node_modules/lodash-es/mixin.js +0 -74
  527. package/custom/node_modules/lodash-es/multiply.js +0 -22
  528. package/custom/node_modules/lodash-es/negate.js +0 -40
  529. package/custom/node_modules/lodash-es/next.js +0 -35
  530. package/custom/node_modules/lodash-es/noop.js +0 -17
  531. package/custom/node_modules/lodash-es/now.js +0 -23
  532. package/custom/node_modules/lodash-es/nth.js +0 -29
  533. package/custom/node_modules/lodash-es/nthArg.js +0 -32
  534. package/custom/node_modules/lodash-es/number.default.js +0 -7
  535. package/custom/node_modules/lodash-es/number.js +0 -4
  536. package/custom/node_modules/lodash-es/object.default.js +0 -60
  537. package/custom/node_modules/lodash-es/object.js +0 -48
  538. package/custom/node_modules/lodash-es/omit.js +0 -57
  539. package/custom/node_modules/lodash-es/omitBy.js +0 -29
  540. package/custom/node_modules/lodash-es/once.js +0 -25
  541. package/custom/node_modules/lodash-es/orderBy.js +0 -47
  542. package/custom/node_modules/lodash-es/over.js +0 -24
  543. package/custom/node_modules/lodash-es/overArgs.js +0 -61
  544. package/custom/node_modules/lodash-es/overEvery.js +0 -34
  545. package/custom/node_modules/lodash-es/overSome.js +0 -37
  546. package/custom/node_modules/lodash-es/package.json +0 -21
  547. package/custom/node_modules/lodash-es/pad.js +0 -49
  548. package/custom/node_modules/lodash-es/padEnd.js +0 -39
  549. package/custom/node_modules/lodash-es/padStart.js +0 -39
  550. package/custom/node_modules/lodash-es/parseInt.js +0 -43
  551. package/custom/node_modules/lodash-es/partial.js +0 -50
  552. package/custom/node_modules/lodash-es/partialRight.js +0 -49
  553. package/custom/node_modules/lodash-es/partition.js +0 -43
  554. package/custom/node_modules/lodash-es/pick.js +0 -25
  555. package/custom/node_modules/lodash-es/pickBy.js +0 -37
  556. package/custom/node_modules/lodash-es/plant.js +0 -48
  557. package/custom/node_modules/lodash-es/property.js +0 -32
  558. package/custom/node_modules/lodash-es/propertyOf.js +0 -30
  559. package/custom/node_modules/lodash-es/pull.js +0 -29
  560. package/custom/node_modules/lodash-es/pullAll.js +0 -29
  561. package/custom/node_modules/lodash-es/pullAllBy.js +0 -33
  562. package/custom/node_modules/lodash-es/pullAllWith.js +0 -32
  563. package/custom/node_modules/lodash-es/pullAt.js +0 -43
  564. package/custom/node_modules/lodash-es/random.js +0 -82
  565. package/custom/node_modules/lodash-es/range.js +0 -46
  566. package/custom/node_modules/lodash-es/rangeRight.js +0 -41
  567. package/custom/node_modules/lodash-es/rearg.js +0 -33
  568. package/custom/node_modules/lodash-es/reduce.js +0 -51
  569. package/custom/node_modules/lodash-es/reduceRight.js +0 -36
  570. package/custom/node_modules/lodash-es/reject.js +0 -46
  571. package/custom/node_modules/lodash-es/release.md +0 -48
  572. package/custom/node_modules/lodash-es/remove.js +0 -53
  573. package/custom/node_modules/lodash-es/repeat.js +0 -37
  574. package/custom/node_modules/lodash-es/replace.js +0 -29
  575. package/custom/node_modules/lodash-es/rest.js +0 -40
  576. package/custom/node_modules/lodash-es/result.js +0 -56
  577. package/custom/node_modules/lodash-es/reverse.js +0 -34
  578. package/custom/node_modules/lodash-es/round.js +0 -26
  579. package/custom/node_modules/lodash-es/sample.js +0 -24
  580. package/custom/node_modules/lodash-es/sampleSize.js +0 -37
  581. package/custom/node_modules/lodash-es/seq.default.js +0 -20
  582. package/custom/node_modules/lodash-es/seq.js +0 -15
  583. package/custom/node_modules/lodash-es/set.js +0 -35
  584. package/custom/node_modules/lodash-es/setWith.js +0 -32
  585. package/custom/node_modules/lodash-es/shuffle.js +0 -25
  586. package/custom/node_modules/lodash-es/size.js +0 -46
  587. package/custom/node_modules/lodash-es/slice.js +0 -37
  588. package/custom/node_modules/lodash-es/snakeCase.js +0 -28
  589. package/custom/node_modules/lodash-es/some.js +0 -51
  590. package/custom/node_modules/lodash-es/sortBy.js +0 -48
  591. package/custom/node_modules/lodash-es/sortedIndex.js +0 -24
  592. package/custom/node_modules/lodash-es/sortedIndexBy.js +0 -33
  593. package/custom/node_modules/lodash-es/sortedIndexOf.js +0 -31
  594. package/custom/node_modules/lodash-es/sortedLastIndex.js +0 -25
  595. package/custom/node_modules/lodash-es/sortedLastIndexBy.js +0 -33
  596. package/custom/node_modules/lodash-es/sortedLastIndexOf.js +0 -31
  597. package/custom/node_modules/lodash-es/sortedUniq.js +0 -24
  598. package/custom/node_modules/lodash-es/sortedUniqBy.js +0 -26
  599. package/custom/node_modules/lodash-es/split.js +0 -52
  600. package/custom/node_modules/lodash-es/spread.js +0 -63
  601. package/custom/node_modules/lodash-es/startCase.js +0 -29
  602. package/custom/node_modules/lodash-es/startsWith.js +0 -39
  603. package/custom/node_modules/lodash-es/string.default.js +0 -41
  604. package/custom/node_modules/lodash-es/string.js +0 -32
  605. package/custom/node_modules/lodash-es/stubArray.js +0 -23
  606. package/custom/node_modules/lodash-es/stubFalse.js +0 -18
  607. package/custom/node_modules/lodash-es/stubObject.js +0 -23
  608. package/custom/node_modules/lodash-es/stubString.js +0 -18
  609. package/custom/node_modules/lodash-es/stubTrue.js +0 -18
  610. package/custom/node_modules/lodash-es/subtract.js +0 -22
  611. package/custom/node_modules/lodash-es/sum.js +0 -24
  612. package/custom/node_modules/lodash-es/sumBy.js +0 -33
  613. package/custom/node_modules/lodash-es/tail.js +0 -22
  614. package/custom/node_modules/lodash-es/take.js +0 -37
  615. package/custom/node_modules/lodash-es/takeRight.js +0 -39
  616. package/custom/node_modules/lodash-es/takeRightWhile.js +0 -45
  617. package/custom/node_modules/lodash-es/takeWhile.js +0 -45
  618. package/custom/node_modules/lodash-es/tap.js +0 -29
  619. package/custom/node_modules/lodash-es/template.js +0 -272
  620. package/custom/node_modules/lodash-es/templateSettings.js +0 -67
  621. package/custom/node_modules/lodash-es/throttle.js +0 -69
  622. package/custom/node_modules/lodash-es/thru.js +0 -28
  623. package/custom/node_modules/lodash-es/times.js +0 -51
  624. package/custom/node_modules/lodash-es/toArray.js +0 -58
  625. package/custom/node_modules/lodash-es/toFinite.js +0 -42
  626. package/custom/node_modules/lodash-es/toInteger.js +0 -36
  627. package/custom/node_modules/lodash-es/toIterator.js +0 -23
  628. package/custom/node_modules/lodash-es/toJSON.js +0 -1
  629. package/custom/node_modules/lodash-es/toLength.js +0 -38
  630. package/custom/node_modules/lodash-es/toLower.js +0 -28
  631. package/custom/node_modules/lodash-es/toNumber.js +0 -64
  632. package/custom/node_modules/lodash-es/toPairs.js +0 -30
  633. package/custom/node_modules/lodash-es/toPairsIn.js +0 -30
  634. package/custom/node_modules/lodash-es/toPath.js +0 -33
  635. package/custom/node_modules/lodash-es/toPlainObject.js +0 -32
  636. package/custom/node_modules/lodash-es/toSafeInteger.js +0 -37
  637. package/custom/node_modules/lodash-es/toString.js +0 -28
  638. package/custom/node_modules/lodash-es/toUpper.js +0 -28
  639. package/custom/node_modules/lodash-es/transform.js +0 -65
  640. package/custom/node_modules/lodash-es/trim.js +0 -47
  641. package/custom/node_modules/lodash-es/trimEnd.js +0 -41
  642. package/custom/node_modules/lodash-es/trimStart.js +0 -43
  643. package/custom/node_modules/lodash-es/truncate.js +0 -111
  644. package/custom/node_modules/lodash-es/unary.js +0 -22
  645. package/custom/node_modules/lodash-es/unescape.js +0 -34
  646. package/custom/node_modules/lodash-es/union.js +0 -26
  647. package/custom/node_modules/lodash-es/unionBy.js +0 -39
  648. package/custom/node_modules/lodash-es/unionWith.js +0 -34
  649. package/custom/node_modules/lodash-es/uniq.js +0 -25
  650. package/custom/node_modules/lodash-es/uniqBy.js +0 -31
  651. package/custom/node_modules/lodash-es/uniqWith.js +0 -28
  652. package/custom/node_modules/lodash-es/uniqueId.js +0 -28
  653. package/custom/node_modules/lodash-es/unset.js +0 -34
  654. package/custom/node_modules/lodash-es/unzip.js +0 -45
  655. package/custom/node_modules/lodash-es/unzipWith.js +0 -39
  656. package/custom/node_modules/lodash-es/update.js +0 -35
  657. package/custom/node_modules/lodash-es/updateWith.js +0 -33
  658. package/custom/node_modules/lodash-es/upperCase.js +0 -27
  659. package/custom/node_modules/lodash-es/upperFirst.js +0 -22
  660. package/custom/node_modules/lodash-es/util.default.js +0 -42
  661. package/custom/node_modules/lodash-es/util.js +0 -33
  662. package/custom/node_modules/lodash-es/value.js +0 -1
  663. package/custom/node_modules/lodash-es/valueOf.js +0 -1
  664. package/custom/node_modules/lodash-es/values.js +0 -34
  665. package/custom/node_modules/lodash-es/valuesIn.js +0 -32
  666. package/custom/node_modules/lodash-es/without.js +0 -31
  667. package/custom/node_modules/lodash-es/words.js +0 -35
  668. package/custom/node_modules/lodash-es/wrap.js +0 -30
  669. package/custom/node_modules/lodash-es/wrapperAt.js +0 -48
  670. package/custom/node_modules/lodash-es/wrapperChain.js +0 -34
  671. package/custom/node_modules/lodash-es/wrapperLodash.js +0 -147
  672. package/custom/node_modules/lodash-es/wrapperReverse.js +0 -44
  673. package/custom/node_modules/lodash-es/wrapperValue.js +0 -21
  674. package/custom/node_modules/lodash-es/xor.js +0 -28
  675. package/custom/node_modules/lodash-es/xorBy.js +0 -39
  676. package/custom/node_modules/lodash-es/xorWith.js +0 -34
  677. package/custom/node_modules/lodash-es/zip.js +0 -22
  678. package/custom/node_modules/lodash-es/zipObject.js +0 -24
  679. package/custom/node_modules/lodash-es/zipObjectDeep.js +0 -23
  680. package/custom/node_modules/lodash-es/zipWith.js +0 -32
  681. package/custom/node_modules/lodash.clonedeep/LICENSE +0 -47
  682. package/custom/node_modules/lodash.clonedeep/README.md +0 -18
  683. package/custom/node_modules/lodash.clonedeep/index.js +0 -1748
  684. package/custom/node_modules/lodash.clonedeep/package.json +0 -17
  685. package/custom/node_modules/lodash.isequal/LICENSE +0 -47
  686. package/custom/node_modules/lodash.isequal/README.md +0 -18
  687. package/custom/node_modules/lodash.isequal/index.js +0 -1848
  688. package/custom/node_modules/lodash.isequal/package.json +0 -16
  689. package/custom/node_modules/parchment/LICENSE +0 -30
  690. package/custom/node_modules/parchment/README.md +0 -271
  691. package/custom/node_modules/parchment/dist/parchment.d.ts +0 -453
  692. package/custom/node_modules/parchment/dist/parchment.js +0 -847
  693. package/custom/node_modules/parchment/dist/parchment.js.map +0 -1
  694. package/custom/node_modules/parchment/dist/parchment.umd.cjs +0 -2
  695. package/custom/node_modules/parchment/dist/parchment.umd.cjs.map +0 -1
  696. package/custom/node_modules/parchment/package.json +0 -53
  697. package/custom/node_modules/parchment/src/attributor/attributor.ts +0 -62
  698. package/custom/node_modules/parchment/src/attributor/class.ts +0 -43
  699. package/custom/node_modules/parchment/src/attributor/store.ts +0 -79
  700. package/custom/node_modules/parchment/src/attributor/style.ts +0 -44
  701. package/custom/node_modules/parchment/src/blot/abstract/blot.ts +0 -128
  702. package/custom/node_modules/parchment/src/blot/abstract/container.ts +0 -48
  703. package/custom/node_modules/parchment/src/blot/abstract/leaf.ts +0 -57
  704. package/custom/node_modules/parchment/src/blot/abstract/parent.ts +0 -400
  705. package/custom/node_modules/parchment/src/blot/abstract/shadow.ts +0 -188
  706. package/custom/node_modules/parchment/src/blot/block.ts +0 -123
  707. package/custom/node_modules/parchment/src/blot/embed.ts +0 -34
  708. package/custom/node_modules/parchment/src/blot/inline.ts +0 -159
  709. package/custom/node_modules/parchment/src/blot/scroll.ts +0 -216
  710. package/custom/node_modules/parchment/src/blot/text.ts +0 -100
  711. package/custom/node_modules/parchment/src/collection/linked-list.ts +0 -201
  712. package/custom/node_modules/parchment/src/collection/linked-node.ts +0 -8
  713. package/custom/node_modules/parchment/src/error.ts +0 -12
  714. package/custom/node_modules/parchment/src/parchment.ts +0 -48
  715. package/custom/node_modules/parchment/src/registry.ts +0 -155
  716. package/custom/node_modules/parchment/src/scope.ts +0 -18
  717. package/custom/node_modules/parchment/tsconfig.json +0 -16
  718. package/custom/node_modules/quill/LICENSE +0 -31
  719. package/custom/node_modules/quill/README.md +0 -104
  720. package/custom/node_modules/quill/assets/base.styl +0 -309
  721. package/custom/node_modules/quill/assets/bubble/toolbar.styl +0 -14
  722. package/custom/node_modules/quill/assets/bubble/tooltip.styl +0 -49
  723. package/custom/node_modules/quill/assets/bubble.styl +0 -45
  724. package/custom/node_modules/quill/assets/core.styl +0 -215
  725. package/custom/node_modules/quill/assets/favicon.png +0 -0
  726. package/custom/node_modules/quill/assets/icons/align-center.svg +0 -5
  727. package/custom/node_modules/quill/assets/icons/align-justify.svg +0 -5
  728. package/custom/node_modules/quill/assets/icons/align-left.svg +0 -5
  729. package/custom/node_modules/quill/assets/icons/align-right.svg +0 -5
  730. package/custom/node_modules/quill/assets/icons/attachment.svg +0 -3
  731. package/custom/node_modules/quill/assets/icons/audio.svg +0 -5
  732. package/custom/node_modules/quill/assets/icons/authorship.svg +0 -5
  733. package/custom/node_modules/quill/assets/icons/background.svg +0 -52
  734. package/custom/node_modules/quill/assets/icons/blockquote.svg +0 -6
  735. package/custom/node_modules/quill/assets/icons/bold.svg +0 -4
  736. package/custom/node_modules/quill/assets/icons/clean.svg +0 -7
  737. package/custom/node_modules/quill/assets/icons/code.svg +0 -5
  738. package/custom/node_modules/quill/assets/icons/color.svg +0 -5
  739. package/custom/node_modules/quill/assets/icons/comment.svg +0 -3
  740. package/custom/node_modules/quill/assets/icons/direction-ltr.svg +0 -7
  741. package/custom/node_modules/quill/assets/icons/direction-rtl.svg +0 -7
  742. package/custom/node_modules/quill/assets/icons/dropdown.svg +0 -4
  743. package/custom/node_modules/quill/assets/icons/embed.svg +0 -3
  744. package/custom/node_modules/quill/assets/icons/emoji.svg +0 -6
  745. package/custom/node_modules/quill/assets/icons/float-center.svg +0 -5
  746. package/custom/node_modules/quill/assets/icons/float-full.svg +0 -5
  747. package/custom/node_modules/quill/assets/icons/float-left.svg +0 -7
  748. package/custom/node_modules/quill/assets/icons/float-right.svg +0 -7
  749. package/custom/node_modules/quill/assets/icons/font.svg +0 -5
  750. package/custom/node_modules/quill/assets/icons/formula.svg +0 -5
  751. package/custom/node_modules/quill/assets/icons/hashtag.svg +0 -6
  752. package/custom/node_modules/quill/assets/icons/header-2.svg +0 -3
  753. package/custom/node_modules/quill/assets/icons/header-3.svg +0 -3
  754. package/custom/node_modules/quill/assets/icons/header-4.svg +0 -3
  755. package/custom/node_modules/quill/assets/icons/header-5.svg +0 -3
  756. package/custom/node_modules/quill/assets/icons/header-6.svg +0 -3
  757. package/custom/node_modules/quill/assets/icons/header.svg +0 -3
  758. package/custom/node_modules/quill/assets/icons/horizontal-rule.svg +0 -4
  759. package/custom/node_modules/quill/assets/icons/image.svg +0 -5
  760. package/custom/node_modules/quill/assets/icons/indent.svg +0 -6
  761. package/custom/node_modules/quill/assets/icons/italic.svg +0 -5
  762. package/custom/node_modules/quill/assets/icons/link.svg +0 -5
  763. package/custom/node_modules/quill/assets/icons/list-bullet.svg +0 -8
  764. package/custom/node_modules/quill/assets/icons/list-check.svg +0 -8
  765. package/custom/node_modules/quill/assets/icons/list-ordered.svg +0 -9
  766. package/custom/node_modules/quill/assets/icons/map.svg +0 -5
  767. package/custom/node_modules/quill/assets/icons/mention.svg +0 -4
  768. package/custom/node_modules/quill/assets/icons/more.svg +0 -3
  769. package/custom/node_modules/quill/assets/icons/outdent.svg +0 -6
  770. package/custom/node_modules/quill/assets/icons/redo.svg +0 -4
  771. package/custom/node_modules/quill/assets/icons/size-decrease.svg +0 -5
  772. package/custom/node_modules/quill/assets/icons/size-increase.svg +0 -6
  773. package/custom/node_modules/quill/assets/icons/size.svg +0 -6
  774. package/custom/node_modules/quill/assets/icons/spacing.svg +0 -9
  775. package/custom/node_modules/quill/assets/icons/speech.svg +0 -6
  776. package/custom/node_modules/quill/assets/icons/strike.svg +0 -5
  777. package/custom/node_modules/quill/assets/icons/subscript.svg +0 -4
  778. package/custom/node_modules/quill/assets/icons/superscript.svg +0 -4
  779. package/custom/node_modules/quill/assets/icons/table-border-all.svg +0 -5
  780. package/custom/node_modules/quill/assets/icons/table-border-bottom.svg +0 -28
  781. package/custom/node_modules/quill/assets/icons/table-border-left.svg +0 -28
  782. package/custom/node_modules/quill/assets/icons/table-border-none.svg +0 -25
  783. package/custom/node_modules/quill/assets/icons/table-border-outside.svg +0 -35
  784. package/custom/node_modules/quill/assets/icons/table-border-right.svg +0 -28
  785. package/custom/node_modules/quill/assets/icons/table-border-top.svg +0 -28
  786. package/custom/node_modules/quill/assets/icons/table-delete-cells.svg +0 -13
  787. package/custom/node_modules/quill/assets/icons/table-delete-columns.svg +0 -8
  788. package/custom/node_modules/quill/assets/icons/table-delete-rows.svg +0 -9
  789. package/custom/node_modules/quill/assets/icons/table-insert-cells.svg +0 -13
  790. package/custom/node_modules/quill/assets/icons/table-insert-columns.svg +0 -8
  791. package/custom/node_modules/quill/assets/icons/table-insert-rows.svg +0 -9
  792. package/custom/node_modules/quill/assets/icons/table-merge-cells.svg +0 -4
  793. package/custom/node_modules/quill/assets/icons/table-unmerge-cells.svg +0 -7
  794. package/custom/node_modules/quill/assets/icons/table.svg +0 -11
  795. package/custom/node_modules/quill/assets/icons/underline.svg +0 -4
  796. package/custom/node_modules/quill/assets/icons/undo.svg +0 -4
  797. package/custom/node_modules/quill/assets/icons/video.svg +0 -14
  798. package/custom/node_modules/quill/assets/snow/toolbar.styl +0 -26
  799. package/custom/node_modules/quill/assets/snow/tooltip.styl +0 -53
  800. package/custom/node_modules/quill/assets/snow.styl +0 -18
  801. package/custom/node_modules/quill/blots/block.d.ts +0 -34
  802. package/custom/node_modules/quill/blots/block.js +0 -182
  803. package/custom/node_modules/quill/blots/block.js.map +0 -1
  804. package/custom/node_modules/quill/blots/break.d.ts +0 -8
  805. package/custom/node_modules/quill/blots/break.js +0 -21
  806. package/custom/node_modules/quill/blots/break.js.map +0 -1
  807. package/custom/node_modules/quill/blots/container.d.ts +0 -4
  808. package/custom/node_modules/quill/blots/container.js +0 -4
  809. package/custom/node_modules/quill/blots/container.js.map +0 -1
  810. package/custom/node_modules/quill/blots/cursor.d.ts +0 -26
  811. package/custom/node_modules/quill/blots/cursor.js +0 -170
  812. package/custom/node_modules/quill/blots/cursor.js.map +0 -1
  813. package/custom/node_modules/quill/blots/embed.d.ts +0 -18
  814. package/custom/node_modules/quill/blots/embed.js +0 -72
  815. package/custom/node_modules/quill/blots/embed.js.map +0 -1
  816. package/custom/node_modules/quill/blots/inline.d.ts +0 -12
  817. package/custom/node_modules/quill/blots/inline.js +0 -48
  818. package/custom/node_modules/quill/blots/inline.js.map +0 -1
  819. package/custom/node_modules/quill/blots/scroll.d.ts +0 -49
  820. package/custom/node_modules/quill/blots/scroll.js +0 -349
  821. package/custom/node_modules/quill/blots/scroll.js.map +0 -1
  822. package/custom/node_modules/quill/blots/text.d.ts +0 -5
  823. package/custom/node_modules/quill/blots/text.js +0 -17
  824. package/custom/node_modules/quill/blots/text.js.map +0 -1
  825. package/custom/node_modules/quill/core/composition.d.ts +0 -12
  826. package/custom/node_modules/quill/core/composition.js +0 -44
  827. package/custom/node_modules/quill/core/composition.js.map +0 -1
  828. package/custom/node_modules/quill/core/editor.d.ts +0 -28
  829. package/custom/node_modules/quill/core/editor.js +0 -403
  830. package/custom/node_modules/quill/core/editor.js.map +0 -1
  831. package/custom/node_modules/quill/core/emitter.d.ts +0 -33
  832. package/custom/node_modules/quill/core/emitter.js +0 -78
  833. package/custom/node_modules/quill/core/emitter.js.map +0 -1
  834. package/custom/node_modules/quill/core/instances.d.ts +0 -3
  835. package/custom/node_modules/quill/core/instances.js +0 -2
  836. package/custom/node_modules/quill/core/instances.js.map +0 -1
  837. package/custom/node_modules/quill/core/logger.d.ts +0 -7
  838. package/custom/node_modules/quill/core/logger.js +0 -24
  839. package/custom/node_modules/quill/core/logger.js.map +0 -1
  840. package/custom/node_modules/quill/core/module.d.ts +0 -8
  841. package/custom/node_modules/quill/core/module.js +0 -10
  842. package/custom/node_modules/quill/core/module.js.map +0 -1
  843. package/custom/node_modules/quill/core/quill.d.ts +0 -218
  844. package/custom/node_modules/quill/core/quill.js +0 -628
  845. package/custom/node_modules/quill/core/quill.js.map +0 -1
  846. package/custom/node_modules/quill/core/selection.d.ts +0 -74
  847. package/custom/node_modules/quill/core/selection.js +0 -374
  848. package/custom/node_modules/quill/core/selection.js.map +0 -1
  849. package/custom/node_modules/quill/core/theme.d.ts +0 -32
  850. package/custom/node_modules/quill/core/theme.js +0 -28
  851. package/custom/node_modules/quill/core/theme.js.map +0 -1
  852. package/custom/node_modules/quill/core/utils/createRegistryWithFormats.d.ts +0 -5
  853. package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js +0 -29
  854. package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js.map +0 -1
  855. package/custom/node_modules/quill/core/utils/scrollRectIntoView.d.ts +0 -8
  856. package/custom/node_modules/quill/core/utils/scrollRectIntoView.js +0 -75
  857. package/custom/node_modules/quill/core/utils/scrollRectIntoView.js.map +0 -1
  858. package/custom/node_modules/quill/core.d.ts +0 -7
  859. package/custom/node_modules/quill/core.js +0 -37
  860. package/custom/node_modules/quill/core.js.map +0 -1
  861. package/custom/node_modules/quill/dist/quill.bubble.css +0 -10
  862. package/custom/node_modules/quill/dist/quill.bubble.css.map +0 -1
  863. package/custom/node_modules/quill/dist/quill.core.css +0 -10
  864. package/custom/node_modules/quill/dist/quill.core.css.map +0 -1
  865. package/custom/node_modules/quill/dist/quill.core.js +0 -3
  866. package/custom/node_modules/quill/dist/quill.core.js.LICENSE.txt +0 -7
  867. package/custom/node_modules/quill/dist/quill.core.js.map +0 -1
  868. package/custom/node_modules/quill/dist/quill.js +0 -3
  869. package/custom/node_modules/quill/dist/quill.js.LICENSE.txt +0 -7
  870. package/custom/node_modules/quill/dist/quill.js.map +0 -1
  871. package/custom/node_modules/quill/dist/quill.snow.css +0 -10
  872. package/custom/node_modules/quill/dist/quill.snow.css.map +0 -1
  873. package/custom/node_modules/quill/formats/align.d.ts +0 -5
  874. package/custom/node_modules/quill/formats/align.js +0 -10
  875. package/custom/node_modules/quill/formats/align.js.map +0 -1
  876. package/custom/node_modules/quill/formats/background.d.ts +0 -5
  877. package/custom/node_modules/quill/formats/background.js +0 -10
  878. package/custom/node_modules/quill/formats/background.js.map +0 -1
  879. package/custom/node_modules/quill/formats/blockquote.d.ts +0 -6
  880. package/custom/node_modules/quill/formats/blockquote.js +0 -7
  881. package/custom/node_modules/quill/formats/blockquote.js.map +0 -1
  882. package/custom/node_modules/quill/formats/bold.d.ts +0 -11
  883. package/custom/node_modules/quill/formats/bold.js +0 -19
  884. package/custom/node_modules/quill/formats/bold.js.map +0 -1
  885. package/custom/node_modules/quill/formats/code.d.ts +0 -15
  886. package/custom/node_modules/quill/formats/code.js +0 -44
  887. package/custom/node_modules/quill/formats/code.js.map +0 -1
  888. package/custom/node_modules/quill/formats/color.d.ts +0 -7
  889. package/custom/node_modules/quill/formats/color.js +0 -18
  890. package/custom/node_modules/quill/formats/color.js.map +0 -1
  891. package/custom/node_modules/quill/formats/direction.d.ts +0 -5
  892. package/custom/node_modules/quill/formats/direction.js +0 -10
  893. package/custom/node_modules/quill/formats/direction.js.map +0 -1
  894. package/custom/node_modules/quill/formats/font.d.ts +0 -7
  895. package/custom/node_modules/quill/formats/font.js +0 -14
  896. package/custom/node_modules/quill/formats/font.js.map +0 -1
  897. package/custom/node_modules/quill/formats/formula.d.ts +0 -10
  898. package/custom/node_modules/quill/formats/formula.js +0 -33
  899. package/custom/node_modules/quill/formats/formula.js.map +0 -1
  900. package/custom/node_modules/quill/formats/header.d.ts +0 -7
  901. package/custom/node_modules/quill/formats/header.js +0 -10
  902. package/custom/node_modules/quill/formats/header.js.map +0 -1
  903. package/custom/node_modules/quill/formats/image.d.ts +0 -13
  904. package/custom/node_modules/quill/formats/image.js +0 -44
  905. package/custom/node_modules/quill/formats/image.js.map +0 -1
  906. package/custom/node_modules/quill/formats/indent.d.ts +0 -8
  907. package/custom/node_modules/quill/formats/indent.js +0 -30
  908. package/custom/node_modules/quill/formats/indent.js.map +0 -1
  909. package/custom/node_modules/quill/formats/italic.d.ts +0 -6
  910. package/custom/node_modules/quill/formats/italic.js +0 -7
  911. package/custom/node_modules/quill/formats/italic.js.map +0 -1
  912. package/custom/node_modules/quill/formats/link.d.ts +0 -13
  913. package/custom/node_modules/quill/formats/link.js +0 -36
  914. package/custom/node_modules/quill/formats/link.js.map +0 -1
  915. package/custom/node_modules/quill/formats/list.d.ts +0 -13
  916. package/custom/node_modules/quill/formats/list.js +0 -50
  917. package/custom/node_modules/quill/formats/list.js.map +0 -1
  918. package/custom/node_modules/quill/formats/script.d.ts +0 -8
  919. package/custom/node_modules/quill/formats/script.js +0 -21
  920. package/custom/node_modules/quill/formats/script.js.map +0 -1
  921. package/custom/node_modules/quill/formats/size.d.ts +0 -4
  922. package/custom/node_modules/quill/formats/size.js +0 -11
  923. package/custom/node_modules/quill/formats/size.js.map +0 -1
  924. package/custom/node_modules/quill/formats/strike.d.ts +0 -6
  925. package/custom/node_modules/quill/formats/strike.js +0 -7
  926. package/custom/node_modules/quill/formats/strike.js.map +0 -1
  927. package/custom/node_modules/quill/formats/table.d.ts +0 -45
  928. package/custom/node_modules/quill/formats/table.js +0 -176
  929. package/custom/node_modules/quill/formats/table.js.map +0 -1
  930. package/custom/node_modules/quill/formats/underline.d.ts +0 -6
  931. package/custom/node_modules/quill/formats/underline.js +0 -7
  932. package/custom/node_modules/quill/formats/underline.js.map +0 -1
  933. package/custom/node_modules/quill/formats/video.d.ts +0 -14
  934. package/custom/node_modules/quill/formats/video.js +0 -48
  935. package/custom/node_modules/quill/formats/video.js.map +0 -1
  936. package/custom/node_modules/quill/modules/clipboard.d.ts +0 -43
  937. package/custom/node_modules/quill/modules/clipboard.js +0 -475
  938. package/custom/node_modules/quill/modules/clipboard.js.map +0 -1
  939. package/custom/node_modules/quill/modules/history.d.ts +0 -36
  940. package/custom/node_modules/quill/modules/history.js +0 -178
  941. package/custom/node_modules/quill/modules/history.js.map +0 -1
  942. package/custom/node_modules/quill/modules/input.d.ts +0 -10
  943. package/custom/node_modules/quill/modules/input.js +0 -83
  944. package/custom/node_modules/quill/modules/input.js.map +0 -1
  945. package/custom/node_modules/quill/modules/keyboard.d.ts +0 -58
  946. package/custom/node_modules/quill/modules/keyboard.js +0 -713
  947. package/custom/node_modules/quill/modules/keyboard.js.map +0 -1
  948. package/custom/node_modules/quill/modules/normalizeExternalHTML/index.d.ts +0 -2
  949. package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js +0 -12
  950. package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js.map +0 -1
  951. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -1
  952. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js +0 -24
  953. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +0 -1
  954. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -1
  955. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js +0 -87
  956. package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js.map +0 -1
  957. package/custom/node_modules/quill/modules/syntax.d.ts +0 -50
  958. package/custom/node_modules/quill/modules/syntax.js +0 -332
  959. package/custom/node_modules/quill/modules/syntax.js.map +0 -1
  960. package/custom/node_modules/quill/modules/table.d.ts +0 -20
  961. package/custom/node_modules/quill/modules/table.js +0 -125
  962. package/custom/node_modules/quill/modules/table.js.map +0 -1
  963. package/custom/node_modules/quill/modules/tableEmbed.d.ts +0 -27
  964. package/custom/node_modules/quill/modules/tableEmbed.js +0 -209
  965. package/custom/node_modules/quill/modules/tableEmbed.js.map +0 -1
  966. package/custom/node_modules/quill/modules/toolbar.d.ts +0 -24
  967. package/custom/node_modules/quill/modules/toolbar.js +0 -265
  968. package/custom/node_modules/quill/modules/toolbar.js.map +0 -1
  969. package/custom/node_modules/quill/modules/uiNode.d.ts +0 -19
  970. package/custom/node_modules/quill/modules/uiNode.js +0 -95
  971. package/custom/node_modules/quill/modules/uiNode.js.map +0 -1
  972. package/custom/node_modules/quill/modules/uploader.d.ts +0 -15
  973. package/custom/node_modules/quill/modules/uploader.js +0 -69
  974. package/custom/node_modules/quill/modules/uploader.js.map +0 -1
  975. package/custom/node_modules/quill/package.json +0 -100
  976. package/custom/node_modules/quill/quill.d.ts +0 -6
  977. package/custom/node_modules/quill/quill.js +0 -83
  978. package/custom/node_modules/quill/quill.js.map +0 -1
  979. package/custom/node_modules/quill/themes/base.d.ts +0 -35
  980. package/custom/node_modules/quill/themes/base.js +0 -257
  981. package/custom/node_modules/quill/themes/base.js.map +0 -1
  982. package/custom/node_modules/quill/themes/bubble.d.ts +0 -18
  983. package/custom/node_modules/quill/themes/bubble.js +0 -114
  984. package/custom/node_modules/quill/themes/bubble.js.map +0 -1
  985. package/custom/node_modules/quill/themes/snow.d.ts +0 -9
  986. package/custom/node_modules/quill/themes/snow.js +0 -122
  987. package/custom/node_modules/quill/themes/snow.js.map +0 -1
  988. package/custom/node_modules/quill/types.d.js +0 -2
  989. package/custom/node_modules/quill/types.d.js.map +0 -1
  990. package/custom/node_modules/quill/ui/color-picker.d.ts +0 -7
  991. package/custom/node_modules/quill/ui/color-picker.js +0 -30
  992. package/custom/node_modules/quill/ui/color-picker.js.map +0 -1
  993. package/custom/node_modules/quill/ui/icon-picker.d.ts +0 -7
  994. package/custom/node_modules/quill/ui/icon-picker.js +0 -22
  995. package/custom/node_modules/quill/ui/icon-picker.js.map +0 -1
  996. package/custom/node_modules/quill/ui/icons.d.ts +0 -49
  997. package/custom/node_modules/quill/ui/icons.js +0 -82
  998. package/custom/node_modules/quill/ui/icons.js.map +0 -1
  999. package/custom/node_modules/quill/ui/picker.d.ts +0 -16
  1000. package/custom/node_modules/quill/ui/picker.js +0 -171
  1001. package/custom/node_modules/quill/ui/picker.js.map +0 -1
  1002. package/custom/node_modules/quill/ui/tooltip.d.ts +0 -12
  1003. package/custom/node_modules/quill/ui/tooltip.js +0 -56
  1004. package/custom/node_modules/quill/ui/tooltip.js.map +0 -1
  1005. package/custom/node_modules/quill-delta/LICENSE +0 -14
  1006. package/custom/node_modules/quill-delta/README.md +0 -672
  1007. package/custom/node_modules/quill-delta/dist/AttributeMap.d.ts +0 -10
  1008. package/custom/node_modules/quill-delta/dist/AttributeMap.js +0 -86
  1009. package/custom/node_modules/quill-delta/dist/AttributeMap.js.map +0 -1
  1010. package/custom/node_modules/quill-delta/dist/Delta.d.ts +0 -45
  1011. package/custom/node_modules/quill-delta/dist/Delta.js +0 -478
  1012. package/custom/node_modules/quill-delta/dist/Delta.js.map +0 -1
  1013. package/custom/node_modules/quill-delta/dist/Op.d.ts +0 -11
  1014. package/custom/node_modules/quill-delta/dist/Op.js +0 -22
  1015. package/custom/node_modules/quill-delta/dist/Op.js.map +0 -1
  1016. package/custom/node_modules/quill-delta/dist/OpIterator.d.ts +0 -13
  1017. package/custom/node_modules/quill-delta/dist/OpIterator.js +0 -106
  1018. package/custom/node_modules/quill-delta/dist/OpIterator.js.map +0 -1
  1019. package/custom/node_modules/quill-delta/package.json +0 -77
  1020. package/custom/node_modules/quill-delta/src/AttributeMap.ts +0 -101
  1021. package/custom/node_modules/quill-delta/src/Delta.ts +0 -573
  1022. package/custom/node_modules/quill-delta/src/Op.ts +0 -26
  1023. package/custom/node_modules/quill-delta/src/OpIterator.ts +0 -106
  1024. package/custom/node_modules/quill-delta/tsconfig.json +0 -15
@@ -1,182 +0,0 @@
1
- import { AttributorStore, BlockBlot, EmbedBlot, LeafBlot, Scope } from 'parchment';
2
- import Delta from 'quill-delta';
3
- import Break from './break.js';
4
- import Inline from './inline.js';
5
- import TextBlot from './text.js';
6
- const NEWLINE_LENGTH = 1;
7
- class Block extends BlockBlot {
8
- cache = {};
9
- delta() {
10
- if (this.cache.delta == null) {
11
- this.cache.delta = blockDelta(this);
12
- }
13
- return this.cache.delta;
14
- }
15
- deleteAt(index, length) {
16
- super.deleteAt(index, length);
17
- this.cache = {};
18
- }
19
- formatAt(index, length, name, value) {
20
- if (length <= 0) return;
21
- if (this.scroll.query(name, Scope.BLOCK)) {
22
- if (index + length === this.length()) {
23
- this.format(name, value);
24
- }
25
- } else {
26
- super.formatAt(index, Math.min(length, this.length() - index - 1), name, value);
27
- }
28
- this.cache = {};
29
- }
30
- insertAt(index, value, def) {
31
- if (def != null) {
32
- super.insertAt(index, value, def);
33
- this.cache = {};
34
- return;
35
- }
36
- if (value.length === 0) return;
37
- const lines = value.split('\n');
38
- const text = lines.shift();
39
- if (text.length > 0) {
40
- if (index < this.length() - 1 || this.children.tail == null) {
41
- super.insertAt(Math.min(index, this.length() - 1), text);
42
- } else {
43
- this.children.tail.insertAt(this.children.tail.length(), text);
44
- }
45
- this.cache = {};
46
- }
47
- // TODO: Fix this next time the file is edited.
48
- // eslint-disable-next-line @typescript-eslint/no-this-alias
49
- let block = this;
50
- lines.reduce((lineIndex, line) => {
51
- // @ts-expect-error Fix me later
52
- block = block.split(lineIndex, true);
53
- block.insertAt(0, line);
54
- return line.length;
55
- }, index + text.length);
56
- }
57
- insertBefore(blot, ref) {
58
- const {
59
- head
60
- } = this.children;
61
- super.insertBefore(blot, ref);
62
- if (head instanceof Break) {
63
- head.remove();
64
- }
65
- this.cache = {};
66
- }
67
- length() {
68
- if (this.cache.length == null) {
69
- this.cache.length = super.length() + NEWLINE_LENGTH;
70
- }
71
- return this.cache.length;
72
- }
73
- moveChildren(target, ref) {
74
- super.moveChildren(target, ref);
75
- this.cache = {};
76
- }
77
- optimize(context) {
78
- super.optimize(context);
79
- this.cache = {};
80
- }
81
- path(index) {
82
- return super.path(index, true);
83
- }
84
- removeChild(child) {
85
- super.removeChild(child);
86
- this.cache = {};
87
- }
88
- split(index) {
89
- let force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
90
- if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {
91
- const clone = this.clone();
92
- if (index === 0) {
93
- this.parent.insertBefore(clone, this);
94
- return this;
95
- }
96
- this.parent.insertBefore(clone, this.next);
97
- return clone;
98
- }
99
- const next = super.split(index, force);
100
- this.cache = {};
101
- return next;
102
- }
103
- }
104
- Block.blotName = 'block';
105
- Block.tagName = 'P';
106
- Block.defaultChild = Break;
107
- Block.allowedChildren = [Break, Inline, EmbedBlot, TextBlot];
108
- class BlockEmbed extends EmbedBlot {
109
- attach() {
110
- super.attach();
111
- this.attributes = new AttributorStore(this.domNode);
112
- }
113
- delta() {
114
- return new Delta().insert(this.value(), {
115
- ...this.formats(),
116
- ...this.attributes.values()
117
- });
118
- }
119
- format(name, value) {
120
- const attribute = this.scroll.query(name, Scope.BLOCK_ATTRIBUTE);
121
- if (attribute != null) {
122
- // @ts-expect-error TODO: Scroll#query() should return Attributor when scope is attribute
123
- this.attributes.attribute(attribute, value);
124
- }
125
- }
126
- formatAt(index, length, name, value) {
127
- this.format(name, value);
128
- }
129
- insertAt(index, value, def) {
130
- if (def != null) {
131
- super.insertAt(index, value, def);
132
- return;
133
- }
134
- const lines = value.split('\n');
135
- const text = lines.pop();
136
- const blocks = lines.map(line => {
137
- const block = this.scroll.create(Block.blotName);
138
- block.insertAt(0, line);
139
- return block;
140
- });
141
- const ref = this.split(index);
142
- blocks.forEach(block => {
143
- this.parent.insertBefore(block, ref);
144
- });
145
- if (text) {
146
- this.parent.insertBefore(this.scroll.create('text', text), ref);
147
- }
148
- }
149
- }
150
- BlockEmbed.scope = Scope.BLOCK_BLOT;
151
- // It is important for cursor behavior BlockEmbeds use tags that are block level elements
152
-
153
- function blockDelta(blot) {
154
- let filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
155
- return blot.descendants(LeafBlot).reduce((delta, leaf) => {
156
- if (leaf.length() === 0) {
157
- return delta;
158
- }
159
- return delta.insert(leaf.value(), bubbleFormats(leaf, {}, filter));
160
- }, new Delta()).insert('\n', bubbleFormats(blot));
161
- }
162
- function bubbleFormats(blot) {
163
- let formats = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
164
- let filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
165
- if (blot == null) return formats;
166
- if ('formats' in blot && typeof blot.formats === 'function') {
167
- formats = {
168
- ...formats,
169
- ...blot.formats()
170
- };
171
- if (filter) {
172
- // exclude syntax highlighting from deltas and getFormat()
173
- delete formats['code-token'];
174
- }
175
- }
176
- if (blot.parent == null || blot.parent.statics.blotName === 'scroll' || blot.parent.statics.scope !== blot.statics.scope) {
177
- return formats;
178
- }
179
- return bubbleFormats(blot.parent, formats, filter);
180
- }
181
- export { blockDelta, bubbleFormats, BlockEmbed, Block as default };
182
- //# sourceMappingURL=block.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block.js","names":["AttributorStore","BlockBlot","EmbedBlot","LeafBlot","Scope","Delta","Break","Inline","TextBlot","NEWLINE_LENGTH","Block","cache","delta","blockDelta","deleteAt","index","length","formatAt","name","value","scroll","query","BLOCK","format","Math","min","insertAt","def","lines","split","text","shift","children","tail","block","reduce","lineIndex","line","insertBefore","blot","ref","head","remove","moveChildren","target","optimize","context","path","removeChild","child","force","arguments","undefined","clone","parent","next","blotName","tagName","defaultChild","allowedChildren","BlockEmbed","attach","attributes","domNode","insert","formats","values","attribute","BLOCK_ATTRIBUTE","pop","blocks","map","create","forEach","scope","BLOCK_BLOT","filter","descendants","leaf","bubbleFormats","statics","default"],"sources":["../../src/blots/block.ts"],"sourcesContent":["import {\n AttributorStore,\n BlockBlot,\n EmbedBlot,\n LeafBlot,\n Scope,\n} from 'parchment';\nimport type { Blot, Parent } from 'parchment';\nimport Delta from 'quill-delta';\nimport Break from './break.js';\nimport Inline from './inline.js';\nimport TextBlot from './text.js';\n\nconst NEWLINE_LENGTH = 1;\n\nclass Block extends BlockBlot {\n cache: { delta?: Delta | null; length?: number } = {};\n\n delta(): Delta {\n if (this.cache.delta == null) {\n this.cache.delta = blockDelta(this);\n }\n return this.cache.delta;\n }\n\n deleteAt(index: number, length: number) {\n super.deleteAt(index, length);\n this.cache = {};\n }\n\n formatAt(index: number, length: number, name: string, value: unknown) {\n if (length <= 0) return;\n if (this.scroll.query(name, Scope.BLOCK)) {\n if (index + length === this.length()) {\n this.format(name, value);\n }\n } else {\n super.formatAt(\n index,\n Math.min(length, this.length() - index - 1),\n name,\n value,\n );\n }\n this.cache = {};\n }\n\n insertAt(index: number, value: string, def?: unknown) {\n if (def != null) {\n super.insertAt(index, value, def);\n this.cache = {};\n return;\n }\n if (value.length === 0) return;\n const lines = value.split('\\n');\n const text = lines.shift() as string;\n if (text.length > 0) {\n if (index < this.length() - 1 || this.children.tail == null) {\n super.insertAt(Math.min(index, this.length() - 1), text);\n } else {\n this.children.tail.insertAt(this.children.tail.length(), text);\n }\n this.cache = {};\n }\n // TODO: Fix this next time the file is edited.\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let block: Blot | this = this;\n lines.reduce((lineIndex, line) => {\n // @ts-expect-error Fix me later\n block = block.split(lineIndex, true);\n block.insertAt(0, line);\n return line.length;\n }, index + text.length);\n }\n\n insertBefore(blot: Blot, ref?: Blot | null) {\n const { head } = this.children;\n super.insertBefore(blot, ref);\n if (head instanceof Break) {\n head.remove();\n }\n this.cache = {};\n }\n\n length() {\n if (this.cache.length == null) {\n this.cache.length = super.length() + NEWLINE_LENGTH;\n }\n return this.cache.length;\n }\n\n moveChildren(target: Parent, ref?: Blot | null) {\n super.moveChildren(target, ref);\n this.cache = {};\n }\n\n optimize(context: { [key: string]: any }) {\n super.optimize(context);\n this.cache = {};\n }\n\n path(index: number) {\n return super.path(index, true);\n }\n\n removeChild(child: Blot) {\n super.removeChild(child);\n this.cache = {};\n }\n\n split(index: number, force: boolean | undefined = false): Blot | null {\n if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {\n const clone = this.clone();\n if (index === 0) {\n this.parent.insertBefore(clone, this);\n return this;\n }\n this.parent.insertBefore(clone, this.next);\n return clone;\n }\n const next = super.split(index, force);\n this.cache = {};\n return next;\n }\n}\nBlock.blotName = 'block';\nBlock.tagName = 'P';\nBlock.defaultChild = Break;\nBlock.allowedChildren = [Break, Inline, EmbedBlot, TextBlot];\n\nclass BlockEmbed extends EmbedBlot {\n attributes: AttributorStore;\n domNode: HTMLElement;\n\n attach() {\n super.attach();\n this.attributes = new AttributorStore(this.domNode);\n }\n\n delta() {\n return new Delta().insert(this.value(), {\n ...this.formats(),\n ...this.attributes.values(),\n });\n }\n\n format(name: string, value: unknown) {\n const attribute = this.scroll.query(name, Scope.BLOCK_ATTRIBUTE);\n if (attribute != null) {\n // @ts-expect-error TODO: Scroll#query() should return Attributor when scope is attribute\n this.attributes.attribute(attribute, value);\n }\n }\n\n formatAt(index: number, length: number, name: string, value: unknown) {\n this.format(name, value);\n }\n\n insertAt(index: number, value: string, def?: unknown) {\n if (def != null) {\n super.insertAt(index, value, def);\n return;\n }\n const lines = value.split('\\n');\n const text = lines.pop();\n const blocks = lines.map((line) => {\n const block = this.scroll.create(Block.blotName);\n block.insertAt(0, line);\n return block;\n });\n const ref = this.split(index);\n blocks.forEach((block) => {\n this.parent.insertBefore(block, ref);\n });\n if (text) {\n this.parent.insertBefore(this.scroll.create('text', text), ref);\n }\n }\n}\nBlockEmbed.scope = Scope.BLOCK_BLOT;\n// It is important for cursor behavior BlockEmbeds use tags that are block level elements\n\nfunction blockDelta(blot: BlockBlot, filter = true) {\n return blot\n .descendants(LeafBlot)\n .reduce((delta, leaf) => {\n if (leaf.length() === 0) {\n return delta;\n }\n return delta.insert(leaf.value(), bubbleFormats(leaf, {}, filter));\n }, new Delta())\n .insert('\\n', bubbleFormats(blot));\n}\n\nfunction bubbleFormats(\n blot: Blot | null,\n formats: Record<string, unknown> = {},\n filter = true,\n): Record<string, unknown> {\n if (blot == null) return formats;\n if ('formats' in blot && typeof blot.formats === 'function') {\n formats = {\n ...formats,\n ...blot.formats(),\n };\n if (filter) {\n // exclude syntax highlighting from deltas and getFormat()\n delete formats['code-token'];\n }\n }\n if (\n blot.parent == null ||\n blot.parent.statics.blotName === 'scroll' ||\n blot.parent.statics.scope !== blot.statics.scope\n ) {\n return formats;\n }\n return bubbleFormats(blot.parent, formats, filter);\n}\n\nexport { blockDelta, bubbleFormats, BlockEmbed, Block as default };\n"],"mappings":"AAAA,SACEA,eAAe,EACfC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACRC,KAAK,QACA,WAAW;AAElB,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,KAAK,MAAM,YAAY;AAC9B,OAAOC,MAAM,MAAM,aAAa;AAChC,OAAOC,QAAQ,MAAM,WAAW;AAEhC,MAAMC,cAAc,GAAG,CAAC;AAExB,MAAMC,KAAK,SAAST,SAAS,CAAC;EAC5BU,KAAK,GAA8C,CAAC,CAAC;EAErDC,KAAKA,CAAA,EAAU;IACb,IAAI,IAAI,CAACD,KAAK,CAACC,KAAK,IAAI,IAAI,EAAE;MAC5B,IAAI,CAACD,KAAK,CAACC,KAAK,GAAGC,UAAU,CAAC,IAAI,CAAC;IACrC;IACA,OAAO,IAAI,CAACF,KAAK,CAACC,KAAK;EACzB;EAEAE,QAAQA,CAACC,KAAa,EAAEC,MAAc,EAAE;IACtC,KAAK,CAACF,QAAQ,CAACC,KAAK,EAAEC,MAAM,CAAC;IAC7B,IAAI,CAACL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AI,EAAEe,aAAa,CAACxC,IAAI,CAAC,CAAC;AACtC;AAEA,SAASwC,aAAaA,CACpBxC,IAAiB,EAGQ;EAAA,IAFzB0B,OAAgC,GAAAd,SAAA,CAAAnC,MAAA,QAAAmC,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,CAAC,CAAC;EAAA,IACrCyB,MAAM,GAAAzB,SAAA,CAAAnC,MAAA,QAAAmC,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,IAAI;EAEb,IAAIZ,IAAI,IAAI,IAAI,EAAE,OAAO0B,OAAO;EAChC,IAAI,SAAS,IAAI1B,IAAI,IAAI,OAAOA,IAAI,CAAC0B,OAAO,KAAK,UAAU,EAAE;IAC3DA,OAAO,GAAG;MACR,GAAGA,OAAO;MACV,GAAG1B,IAAI,CAAC0B,OAAO,CAAC;IAClB,CAAC;IACD,IAAIW,MAAM,EAAE;MACV;MACA,OAAOX,OAAO,CAAC,YAAY,CAAC;IAC9B;EACF;EACA,IACE1B,IAAI,CAACe,MAAM,IAAI,IAAI,IACnBf,IAAI,CAACe,MAAM,CAAC0B,OAAO,CAACxB,QAAQ,KAAK,QAAQ,IACzCjB,IAAI,CAACe,MAAM,CAAC0B,OAAO,CAACN,KAAK,KAAKnC,IAAI,CAACyC,OAAO,CAACN,KAAK,EAChD;IACA,OAAOT,OAAO;EAChB;EACA,OAAOc,aAAa,CAACxC,IAAI,CAACe,MAAM,EAAEW,OAAO,EAAEW,MAAM,CAAC;AACpD;AAEA,SAAS/D,UAAU,EAAEkE,aAAa,EAAEnB,UAAU,EAAElD,KAAK,IAAIuE,OAAO","ignoreList":[]}
@@ -1,8 +0,0 @@
1
- import { EmbedBlot } from 'parchment';
2
- declare class Break extends EmbedBlot {
3
- static value(): undefined;
4
- optimize(): void;
5
- length(): number;
6
- value(): string;
7
- }
8
- export default Break;
@@ -1,21 +0,0 @@
1
- import { EmbedBlot } from 'parchment';
2
- class Break extends EmbedBlot {
3
- static value() {
4
- return undefined;
5
- }
6
- optimize() {
7
- if (this.prev || this.next) {
8
- this.remove();
9
- }
10
- }
11
- length() {
12
- return 0;
13
- }
14
- value() {
15
- return '';
16
- }
17
- }
18
- Break.blotName = 'break';
19
- Break.tagName = 'BR';
20
- export default Break;
21
- //# sourceMappingURL=break.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"break.js","names":["EmbedBlot","Break","value","undefined","optimize","prev","next","remove","length","blotName","tagName"],"sources":["../../src/blots/break.ts"],"sourcesContent":["import { EmbedBlot } from 'parchment';\n\nclass Break extends EmbedBlot {\n static value() {\n return undefined;\n }\n\n optimize() {\n if (this.prev || this.next) {\n this.remove();\n }\n }\n\n length() {\n return 0;\n }\n\n value() {\n return '';\n }\n}\nBreak.blotName = 'break';\nBreak.tagName = 'BR';\n\nexport default Break;\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,WAAW;AAErC,MAAMC,KAAK,SAASD,SAAS,CAAC;EAC5B,OAAOE,KAAKA,CAAA,EAAG;IACb,OAAOC,SAAS;EAClB;EAEAC,QAAQA,CAAA,EAAG;IACT,IAAI,IAAI,CAACC,IAAI,IAAI,IAAI,CAACC,IAAI,EAAE;MAC1B,IAAI,CAACC,MAAM,CAAC,CAAC;IACf;EACF;EAEAC,MAAMA,CAAA,EAAG;IACP,OAAO,CAAC;EACV;EAEAN,KAAKA,CAAA,EAAG;IACN,OAAO,EAAE;EACX;AACF;AACAD,KAAK,CAACQ,QAAQ,GAAG,OAAO;AACxBR,KAAK,CAACS,OAAO,GAAG,IAAI;AAEpB,eAAeT,KAAK","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- import { ContainerBlot } from 'parchment';
2
- declare class Container extends ContainerBlot {
3
- }
4
- export default Container;
@@ -1,4 +0,0 @@
1
- import { ContainerBlot } from 'parchment';
2
- class Container extends ContainerBlot {}
3
- export default Container;
4
- //# sourceMappingURL=container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container.js","names":["ContainerBlot","Container"],"sources":["../../src/blots/container.ts"],"sourcesContent":["import { ContainerBlot } from 'parchment';\n\nclass Container extends ContainerBlot {}\n\nexport default Container;\n"],"mappings":"AAAA,SAASA,aAAa,QAAQ,WAAW;AAEzC,MAAMC,SAAS,SAASD,aAAa,CAAC;AAEtC,eAAeC,SAAS","ignoreList":[]}
@@ -1,26 +0,0 @@
1
- import { EmbedBlot } from 'parchment';
2
- import type { ScrollBlot } from 'parchment';
3
- import type Selection from '../core/selection.js';
4
- import type { EmbedContextRange } from './embed.js';
5
- declare class Cursor extends EmbedBlot {
6
- static blotName: string;
7
- static className: string;
8
- static tagName: string;
9
- static CONTENTS: string;
10
- static value(): undefined;
11
- selection: Selection;
12
- textNode: Text;
13
- savedLength: number;
14
- constructor(scroll: ScrollBlot, domNode: HTMLElement, selection: Selection);
15
- detach(): void;
16
- format(name: string, value: unknown): void;
17
- index(node: Node, offset: number): number;
18
- length(): number;
19
- position(): [Text, number];
20
- remove(): void;
21
- restore(): EmbedContextRange | null;
22
- update(mutations: MutationRecord[], context: Record<string, unknown>): void;
23
- optimize(context?: unknown): void;
24
- value(): string;
25
- }
26
- export default Cursor;
@@ -1,170 +0,0 @@
1
- import { EmbedBlot, Scope } from 'parchment';
2
- import TextBlot from './text.js';
3
- class Cursor extends EmbedBlot {
4
- static blotName = 'cursor';
5
- static className = 'ql-cursor';
6
- static tagName = 'span';
7
- static CONTENTS = '\uFEFF'; // Zero width no break space
8
-
9
- static value() {
10
- return undefined;
11
- }
12
- constructor(scroll, domNode, selection) {
13
- super(scroll, domNode);
14
- this.selection = selection;
15
- this.textNode = document.createTextNode(Cursor.CONTENTS);
16
- this.domNode.appendChild(this.textNode);
17
- this.savedLength = 0;
18
- }
19
- detach() {
20
- // super.detach() will also clear domNode.__blot
21
- if (this.parent != null) this.parent.removeChild(this);
22
- }
23
- format(name, value) {
24
- if (this.savedLength !== 0) {
25
- super.format(name, value);
26
- return;
27
- }
28
- // TODO: Fix this next time the file is edited.
29
- // eslint-disable-next-line @typescript-eslint/no-this-alias
30
- let target = this;
31
- let index = 0;
32
- while (target != null && target.statics.scope !== Scope.BLOCK_BLOT) {
33
- index += target.offset(target.parent);
34
- target = target.parent;
35
- }
36
- if (target != null) {
37
- this.savedLength = Cursor.CONTENTS.length;
38
- // @ts-expect-error TODO: allow empty context in Parchment
39
- target.optimize();
40
- target.formatAt(index, Cursor.CONTENTS.length, name, value);
41
- this.savedLength = 0;
42
- }
43
- }
44
- index(node, offset) {
45
- if (node === this.textNode) return 0;
46
- return super.index(node, offset);
47
- }
48
- length() {
49
- return this.savedLength;
50
- }
51
- position() {
52
- return [this.textNode, this.textNode.data.length];
53
- }
54
- remove() {
55
- super.remove();
56
- // @ts-expect-error Fix me later
57
- this.parent = null;
58
- }
59
- restore() {
60
- if (this.selection.composing || this.parent == null) return null;
61
- const range = this.selection.getNativeRange();
62
- // Browser may push down styles/nodes inside the cursor blot.
63
- // https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#push-down-values
64
- while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {
65
- // @ts-expect-error Fix me later
66
- this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
67
- }
68
- const prevTextBlot = this.prev instanceof TextBlot ? this.prev : null;
69
- const prevTextLength = prevTextBlot ? prevTextBlot.length() : 0;
70
- const nextTextBlot = this.next instanceof TextBlot ? this.next : null;
71
- // @ts-expect-error TODO: make TextBlot.text public
72
- const nextText = nextTextBlot ? nextTextBlot.text : '';
73
- const {
74
- textNode
75
- } = this;
76
- // take text from inside this blot and reset it
77
- const newText = textNode.data.split(Cursor.CONTENTS).join('');
78
- textNode.data = Cursor.CONTENTS;
79
-
80
- // proactively merge TextBlots around cursor so that optimization
81
- // doesn't lose the cursor. the reason we are here in cursor.restore
82
- // could be that the user clicked in prevTextBlot or nextTextBlot, or
83
- // the user typed something.
84
- let mergedTextBlot;
85
- if (prevTextBlot) {
86
- mergedTextBlot = prevTextBlot;
87
- if (newText || nextTextBlot) {
88
- prevTextBlot.insertAt(prevTextBlot.length(), newText + nextText);
89
- if (nextTextBlot) {
90
- nextTextBlot.remove();
91
- }
92
- }
93
- } else if (nextTextBlot) {
94
- mergedTextBlot = nextTextBlot;
95
- nextTextBlot.insertAt(0, newText);
96
- } else {
97
- const newTextNode = document.createTextNode(newText);
98
- mergedTextBlot = this.scroll.create(newTextNode);
99
- this.parent.insertBefore(mergedTextBlot, this);
100
- }
101
- this.remove();
102
- if (range) {
103
- // calculate selection to restore
104
- const remapOffset = (node, offset) => {
105
- if (prevTextBlot && node === prevTextBlot.domNode) {
106
- return offset;
107
- }
108
- if (node === textNode) {
109
- return prevTextLength + offset - 1;
110
- }
111
- if (nextTextBlot && node === nextTextBlot.domNode) {
112
- return prevTextLength + newText.length + offset;
113
- }
114
- return null;
115
- };
116
- const start = remapOffset(range.start.node, range.start.offset);
117
- const end = remapOffset(range.end.node, range.end.offset);
118
- if (start !== null && end !== null) {
119
- return {
120
- startNode: mergedTextBlot.domNode,
121
- startOffset: start,
122
- endNode: mergedTextBlot.domNode,
123
- endOffset: end
124
- };
125
- }
126
- }
127
- return null;
128
- }
129
- update(mutations, context) {
130
- if (mutations.some(mutation => {
131
- return mutation.type === 'characterData' && mutation.target === this.textNode;
132
- })) {
133
- const range = this.restore();
134
- if (range) context.range = range;
135
- }
136
- }
137
-
138
- // Avoid .ql-cursor being a descendant of `<a/>`.
139
- // The reason is Safari pushes down `<a/>` on text insertion.
140
- // That will cause DOM nodes not sync with the model.
141
- //
142
- // For example ({I} is the caret), given the markup:
143
- // <a><span class="ql-cursor">\uFEFF{I}</span></a>
144
- // When typing a char "x", `<a/>` will be pushed down inside the `<span>` first:
145
- // <span class="ql-cursor"><a>\uFEFF{I}</a></span>
146
- // And then "x" will be inserted after `<a/>`:
147
- // <span class="ql-cursor"><a>\uFEFF</a>d{I}</span>
148
- optimize(context) {
149
- // @ts-expect-error Fix me later
150
- super.optimize(context);
151
- let {
152
- parent
153
- } = this;
154
- while (parent) {
155
- if (parent.domNode.tagName === 'A') {
156
- this.savedLength = Cursor.CONTENTS.length;
157
- // @ts-expect-error TODO: make isolate generic
158
- parent.isolate(this.offset(parent), this.length()).unwrap();
159
- this.savedLength = 0;
160
- break;
161
- }
162
- parent = parent.parent;
163
- }
164
- }
165
- value() {
166
- return '';
167
- }
168
- }
169
- export default Cursor;
170
- //# sourceMappingURL=cursor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cursor.js","names":["EmbedBlot","Scope","TextBlot","Cursor","blotName","className","tagName","CONTENTS","value","undefined","constructor","scroll","domNode","selection","textNode","document","createTextNode","appendChild","savedLength","detach","parent","removeChild","format","name","target","index","statics","scope","BLOCK_BLOT","offset","length","optimize","formatAt","node","position","data","remove","restore","composing","range","getNativeRange","lastChild","parentNode","insertBefore","prevTextBlot","prev","prevTextLength","nextTextBlot","next","nextText","text","newText","split","join","mergedTextBlot","insertAt","newTextNode","create","remapOffset","start","end","startNode","startOffset","endNode","endOffset","update","mutations","context","some","mutation","type","isolate","unwrap"],"sources":["../../src/blots/cursor.ts"],"sourcesContent":["import { EmbedBlot, Scope } from 'parchment';\nimport type { Parent, ScrollBlot } from 'parchment';\nimport type Selection from '../core/selection.js';\nimport TextBlot from './text.js';\nimport type { EmbedContextRange } from './embed.js';\n\nclass Cursor extends EmbedBlot {\n static blotName = 'cursor';\n static className = 'ql-cursor';\n static tagName = 'span';\n static CONTENTS = '\\uFEFF'; // Zero width no break space\n\n static value() {\n return undefined;\n }\n\n selection: Selection;\n textNode: Text;\n savedLength: number;\n\n constructor(scroll: ScrollBlot, domNode: HTMLElement, selection: Selection) {\n super(scroll, domNode);\n this.selection = selection;\n this.textNode = document.createTextNode(Cursor.CONTENTS);\n this.domNode.appendChild(this.textNode);\n this.savedLength = 0;\n }\n\n detach() {\n // super.detach() will also clear domNode.__blot\n if (this.parent != null) this.parent.removeChild(this);\n }\n\n format(name: string, value: unknown) {\n if (this.savedLength !== 0) {\n super.format(name, value);\n return;\n }\n // TODO: Fix this next time the file is edited.\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let target: Parent | this = this;\n let index = 0;\n while (target != null && target.statics.scope !== Scope.BLOCK_BLOT) {\n index += target.offset(target.parent);\n target = target.parent;\n }\n if (target != null) {\n this.savedLength = Cursor.CONTENTS.length;\n // @ts-expect-error TODO: allow empty context in Parchment\n target.optimize();\n target.formatAt(index, Cursor.CONTENTS.length, name, value);\n this.savedLength = 0;\n }\n }\n\n index(node: Node, offset: number) {\n if (node === this.textNode) return 0;\n return super.index(node, offset);\n }\n\n length() {\n return this.savedLength;\n }\n\n position(): [Text, number] {\n return [this.textNode, this.textNode.data.length];\n }\n\n remove() {\n super.remove();\n // @ts-expect-error Fix me later\n this.parent = null;\n }\n\n restore(): EmbedContextRange | null {\n if (this.selection.composing || this.parent == null) return null;\n const range = this.selection.getNativeRange();\n // Browser may push down styles/nodes inside the cursor blot.\n // https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#push-down-values\n while (\n this.domNode.lastChild != null &&\n this.domNode.lastChild !== this.textNode\n ) {\n // @ts-expect-error Fix me later\n this.domNode.parentNode.insertBefore(\n this.domNode.lastChild,\n this.domNode,\n );\n }\n\n const prevTextBlot = this.prev instanceof TextBlot ? this.prev : null;\n const prevTextLength = prevTextBlot ? prevTextBlot.length() : 0;\n const nextTextBlot = this.next instanceof TextBlot ? this.next : null;\n // @ts-expect-error TODO: make TextBlot.text public\n const nextText = nextTextBlot ? nextTextBlot.text : '';\n const { textNode } = this;\n // take text from inside this blot and reset it\n const newText = textNode.data.split(Cursor.CONTENTS).join('');\n textNode.data = Cursor.CONTENTS;\n\n // proactively merge TextBlots around cursor so that optimization\n // doesn't lose the cursor. the reason we are here in cursor.restore\n // could be that the user clicked in prevTextBlot or nextTextBlot, or\n // the user typed something.\n let mergedTextBlot;\n if (prevTextBlot) {\n mergedTextBlot = prevTextBlot;\n if (newText || nextTextBlot) {\n prevTextBlot.insertAt(prevTextBlot.length(), newText + nextText);\n if (nextTextBlot) {\n nextTextBlot.remove();\n }\n }\n } else if (nextTextBlot) {\n mergedTextBlot = nextTextBlot;\n nextTextBlot.insertAt(0, newText);\n } else {\n const newTextNode = document.createTextNode(newText);\n mergedTextBlot = this.scroll.create(newTextNode);\n this.parent.insertBefore(mergedTextBlot, this);\n }\n\n this.remove();\n if (range) {\n // calculate selection to restore\n const remapOffset = (node: Node, offset: number) => {\n if (prevTextBlot && node === prevTextBlot.domNode) {\n return offset;\n }\n if (node === textNode) {\n return prevTextLength + offset - 1;\n }\n if (nextTextBlot && node === nextTextBlot.domNode) {\n return prevTextLength + newText.length + offset;\n }\n return null;\n };\n\n const start = remapOffset(range.start.node, range.start.offset);\n const end = remapOffset(range.end.node, range.end.offset);\n if (start !== null && end !== null) {\n return {\n startNode: mergedTextBlot.domNode,\n startOffset: start,\n endNode: mergedTextBlot.domNode,\n endOffset: end,\n };\n }\n }\n return null;\n }\n\n update(mutations: MutationRecord[], context: Record<string, unknown>) {\n if (\n mutations.some((mutation) => {\n return (\n mutation.type === 'characterData' && mutation.target === this.textNode\n );\n })\n ) {\n const range = this.restore();\n if (range) context.range = range;\n }\n }\n\n // Avoid .ql-cursor being a descendant of `<a/>`.\n // The reason is Safari pushes down `<a/>` on text insertion.\n // That will cause DOM nodes not sync with the model.\n //\n // For example ({I} is the caret), given the markup:\n // <a><span class=\"ql-cursor\">\\uFEFF{I}</span></a>\n // When typing a char \"x\", `<a/>` will be pushed down inside the `<span>` first:\n // <span class=\"ql-cursor\"><a>\\uFEFF{I}</a></span>\n // And then \"x\" will be inserted after `<a/>`:\n // <span class=\"ql-cursor\"><a>\\uFEFF</a>d{I}</span>\n optimize(context?: unknown) {\n // @ts-expect-error Fix me later\n super.optimize(context);\n\n let { parent } = this;\n while (parent) {\n if (parent.domNode.tagName === 'A') {\n this.savedLength = Cursor.CONTENTS.length;\n // @ts-expect-error TODO: make isolate generic\n parent.isolate(this.offset(parent), this.length()).unwrap();\n this.savedLength = 0;\n break;\n }\n parent = parent.parent;\n }\n }\n\n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AAK,IAAI,CAACV,QAAQ;IAE1E,CAAC,CAAC,EACF;MACA,MAAMyB,KAAK,GAAG,IAAI,CAACF,OAAO,CAAC,CAAC;MAC5B,IAAIE,KAAK,EAAE4B,OAAO,CAAC5B,KAAK,GAAGA,KAAK;IAClC;EACF;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACAR,QAAQA,CAACoC,OAAiB,EAAE;IAC1B;IACA,KAAK,CAACpC,QAAQ,CAACoC,OAAO,CAAC;IAEvB,IAAI;MAAE/C;IAAO,CAAC,GAAG,IAAI;IACrB,OAAOA,MAAM,EAAE;MACb,IAAIA,MAAM,CAACR,OAAO,CAACN,OAAO,KAAK,GAAG,EAAE;QAClC,IAAI,CAACY,WAAW,GAAGf,MAAM,CAACI,QAAQ,CAACuB,MAAM;QACzC;QACAV,MAAM,CAACmD,OAAO,CAAC,IAAI,CAAC1C,MAAM,CAACT,MAAM,CAAC,EAAE,IAAI,CAACU,MAAM,CAAC,CAAC,CAAC,CAAC0C,MAAM,CAAC,CAAC;QAC3D,IAAI,CAACtD,WAAW,GAAG,CAAC;QACpB;MACF;MACAE,MAAM,GAAGA,MAAM,CAACA,MAAM;IACxB;EACF;EAEAZ,KAAKA,CAAA,EAAG;IACN,OAAO,EAAE;EACX;AACF;AAEA,eAAeL,MAAM","ignoreList":[]}
@@ -1,18 +0,0 @@
1
- import type { ScrollBlot } from 'parchment';
2
- import { EmbedBlot } from 'parchment';
3
- export interface EmbedContextRange {
4
- startNode: Node | Text;
5
- startOffset: number;
6
- endNode?: Node | Text;
7
- endOffset?: number;
8
- }
9
- declare class Embed extends EmbedBlot {
10
- contentNode: HTMLSpanElement;
11
- leftGuard: Text;
12
- rightGuard: Text;
13
- constructor(scroll: ScrollBlot, node: Node);
14
- index(node: Node, offset: number): number;
15
- restore(node: Text): EmbedContextRange | null;
16
- update(mutations: MutationRecord[], context: Record<string, unknown>): void;
17
- }
18
- export default Embed;
@@ -1,72 +0,0 @@
1
- import { EmbedBlot } from 'parchment';
2
- import TextBlot from './text.js';
3
- const GUARD_TEXT = '\uFEFF';
4
- class Embed extends EmbedBlot {
5
- constructor(scroll, node) {
6
- super(scroll, node);
7
- this.contentNode = document.createElement('span');
8
- this.contentNode.setAttribute('contenteditable', 'false');
9
- Array.from(this.domNode.childNodes).forEach(childNode => {
10
- this.contentNode.appendChild(childNode);
11
- });
12
- this.leftGuard = document.createTextNode(GUARD_TEXT);
13
- this.rightGuard = document.createTextNode(GUARD_TEXT);
14
- this.domNode.appendChild(this.leftGuard);
15
- this.domNode.appendChild(this.contentNode);
16
- this.domNode.appendChild(this.rightGuard);
17
- }
18
- index(node, offset) {
19
- if (node === this.leftGuard) return 0;
20
- if (node === this.rightGuard) return 1;
21
- return super.index(node, offset);
22
- }
23
- restore(node) {
24
- let range = null;
25
- let textNode;
26
- const text = node.data.split(GUARD_TEXT).join('');
27
- if (node === this.leftGuard) {
28
- if (this.prev instanceof TextBlot) {
29
- const prevLength = this.prev.length();
30
- this.prev.insertAt(prevLength, text);
31
- range = {
32
- startNode: this.prev.domNode,
33
- startOffset: prevLength + text.length
34
- };
35
- } else {
36
- textNode = document.createTextNode(text);
37
- this.parent.insertBefore(this.scroll.create(textNode), this);
38
- range = {
39
- startNode: textNode,
40
- startOffset: text.length
41
- };
42
- }
43
- } else if (node === this.rightGuard) {
44
- if (this.next instanceof TextBlot) {
45
- this.next.insertAt(0, text);
46
- range = {
47
- startNode: this.next.domNode,
48
- startOffset: text.length
49
- };
50
- } else {
51
- textNode = document.createTextNode(text);
52
- this.parent.insertBefore(this.scroll.create(textNode), this.next);
53
- range = {
54
- startNode: textNode,
55
- startOffset: text.length
56
- };
57
- }
58
- }
59
- node.data = GUARD_TEXT;
60
- return range;
61
- }
62
- update(mutations, context) {
63
- mutations.forEach(mutation => {
64
- if (mutation.type === 'characterData' && (mutation.target === this.leftGuard || mutation.target === this.rightGuard)) {
65
- const range = this.restore(mutation.target);
66
- if (range) context.range = range;
67
- }
68
- });
69
- }
70
- }
71
- export default Embed;
72
- //# sourceMappingURL=embed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"embed.js","names":["EmbedBlot","TextBlot","GUARD_TEXT","Embed","constructor","scroll","node","contentNode","document","createElement","setAttribute","Array","from","domNode","childNodes","forEach","childNode","appendChild","leftGuard","createTextNode","rightGuard","index","offset","restore","range","textNode","text","data","split","join","prev","prevLength","length","insertAt","startNode","startOffset","parent","insertBefore","create","next","update","mutations","context","mutation","type","target"],"sources":["../../src/blots/embed.ts"],"sourcesContent":["import type { ScrollBlot } from 'parchment';\nimport { EmbedBlot } from 'parchment';\nimport TextBlot from './text.js';\n\nconst GUARD_TEXT = '\\uFEFF';\n\nexport interface EmbedContextRange {\n startNode: Node | Text;\n startOffset: number;\n endNode?: Node | Text;\n endOffset?: number;\n}\n\nclass Embed extends EmbedBlot {\n contentNode: HTMLSpanElement;\n leftGuard: Text;\n rightGuard: Text;\n\n constructor(scroll: ScrollBlot, node: Node) {\n super(scroll, node);\n this.contentNode = document.createElement('span');\n this.contentNode.setAttribute('contenteditable', 'false');\n Array.from(this.domNode.childNodes).forEach((childNode) => {\n this.contentNode.appendChild(childNode);\n });\n this.leftGuard = document.createTextNode(GUARD_TEXT);\n this.rightGuard = document.createTextNode(GUARD_TEXT);\n this.domNode.appendChild(this.leftGuard);\n this.domNode.appendChild(this.contentNode);\n this.domNode.appendChild(this.rightGuard);\n }\n\n index(node: Node, offset: number) {\n if (node === this.leftGuard) return 0;\n if (node === this.rightGuard) return 1;\n return super.index(node, offset);\n }\n\n restore(node: Text): EmbedContextRange | null {\n let range: EmbedContextRange | null = null;\n let textNode: Text;\n const text = node.data.split(GUARD_TEXT).join('');\n if (node === this.leftGuard) {\n if (this.prev instanceof TextBlot) {\n const prevLength = this.prev.length();\n this.prev.insertAt(prevLength, text);\n range = {\n startNode: this.prev.domNode,\n startOffset: prevLength + text.length,\n };\n } else {\n textNode = document.createTextNode(text);\n this.parent.insertBefore(this.scroll.create(textNode), this);\n range = {\n startNode: textNode,\n startOffset: text.length,\n };\n }\n } else if (node === this.rightGuard) {\n if (this.next instanceof TextBlot) {\n this.next.insertAt(0, text);\n range = {\n startNode: this.next.domNode,\n startOffset: text.length,\n };\n } else {\n textNode = document.createTextNode(text);\n this.parent.insertBefore(this.scroll.create(textNode), this.next);\n range = {\n startNode: textNode,\n startOffset: text.length,\n };\n }\n }\n node.data = GUARD_TEXT;\n return range;\n }\n\n update(mutations: MutationRecord[], context: Record<string, unknown>) {\n mutations.forEach((mutation) => {\n if (\n mutation.type === 'characterData' &&\n (mutation.target === this.leftGuard ||\n mutation.target === this.rightGuard)\n ) {\n const range = this.restore(mutation.target as Text);\n if (range) context.range = range;\n }\n });\n }\n}\n\nexport default Embed;\n"],"mappings":"AACA,SAASA,SAAS,QAAQ,WAAW;AACrC,OAAOC,QAAQ,MAAM,WAAW;AAEhC,MAAMC,UAAU,GAAG,QAAQ;AAS3B,MAAMC,KAAK,SAASH,SAAS,CAAC;EAK5BI,WAAWA,CAACC,MAAkB,EAAEC,IAAU,EAAE;IAC1C,KAAK,CAACD,MAAM,EAAEC,IAAI,CAAC;IACnB,IAAI,CAACC,WAAW,GAAGC,QAAQ,CAACC,aAAa,CAAC,MAAM,CAAC;IACjD,IAAI,CAACF,WAAW,CAACG,YAAY,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACzDC,KAAK,CAACC,IAAI,CAAC,IAAI,CAACC,OAAO,CAACC,UAAU,CAAC,CAACC,OAAO,CAAEC,SAAS,IAAK;MACzD,IAAI,CAACT,WAAW,CAACU,WAAW,CAACD,SAAS,CAAC;IACzC,CAAC,CAAC;IACF,IAAI,CAACE,SAAS,GAAGV,QAAQ,CAACW,cAAc,CAACjB,UAAU,CAAC;IACpD,IAAI,CAACkB,UAAU,GAAGZ,QAAQ,CAACW,cAAc,CAACjB,UAAU,CAAC;IACrD,IAAI,CAACW,OAAO,CAACI,WAAW,CAAC,IAAI,CAACC,SAAS,CAAC;IACxC,IAAI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AAC,MAAM,IAAI1B,IAAI,KAAK,IAAI,CAACc,UAAU,EAAE;MACnC,IAAI,IAAI,CAACmB,IAAI,YAAYtC,QAAQ,EAAE;QACjC,IAAI,CAACsC,IAAI,CAACN,QAAQ,CAAC,CAAC,EAAEP,IAAI,CAAC;QAC3BF,KAAK,GAAG;UACNU,SAAS,EAAE,IAAI,CAACK,IAAI,CAAC1B,OAAO;UAC5BsB,WAAW,EAAET,IAAI,CAACM;QACpB,CAAC;MACH,CAAC,MAAM;QACLP,QAAQ,GAAGjB,QAAQ,CAACW,cAAc,CAACO,IAAI,CAAC;QACxC,IAAI,CAACU,MAAM,CAACC,YAAY,CAAC,IAAI,CAAChC,MAAM,CAACiC,MAAM,CAACb,QAAQ,CAAC,EAAE,IAAI,CAACc,IAAI,CAAC;QACjEf,KAAK,GAAG;UACNU,SAAS,EAAET,QAAQ;UACnBU,WAAW,EAAET,IAAI,CAACM;QACpB,CAAC;MACH;IACF;IACA1B,IAAI,CAACqB,IAAI,GAAGzB,UAAU;IACtB,OAAOsB,KAAK;EACd;EAEAgB,MAAMA,CAACC,SAA2B,EAAEC,OAAgC,EAAE;IACpED,SAAS,CAAC1B,OAAO,CAAE4B,QAAQ,IAAK;MAC9B,IACEA,QAAQ,CAACC,IAAI,KAAK,eAAe,KAChCD,QAAQ,CAACE,MAAM,KAAK,IAAI,CAAC3B,SAAS,IACjCyB,QAAQ,CAACE,MAAM,KAAK,IAAI,CAACzB,UAAU,CAAC,EACtC;QACA,MAAMI,KAAK,GAAG,IAAI,CAACD,OAAO,CAACoB,QAAQ,CAACE,MAAc,CAAC;QACnD,IAAIrB,KAAK,EAAEkB,OAAO,CAAClB,KAAK,GAAGA,KAAK;MAClC;IACF,CAAC,CAAC;EACJ;AACF;AAEA,eAAerB,KAAK","ignoreList":[]}
@@ -1,12 +0,0 @@
1
- import { InlineBlot } from 'parchment';
2
- import type { BlotConstructor } from 'parchment';
3
- declare class Inline extends InlineBlot {
4
- static allowedChildren: BlotConstructor[];
5
- static order: string[];
6
- static compare(self: string, other: string): number;
7
- formatAt(index: number, length: number, name: string, value: unknown): void;
8
- optimize(context: {
9
- [key: string]: any;
10
- }): void;
11
- }
12
- export default Inline;
@@ -1,48 +0,0 @@
1
- import { EmbedBlot, InlineBlot, Scope } from 'parchment';
2
- import Break from './break.js';
3
- import Text from './text.js';
4
- class Inline extends InlineBlot {
5
- static allowedChildren = [Inline, Break, EmbedBlot, Text];
6
- // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
7
- static order = ['cursor', 'inline',
8
- // Must be lower
9
- 'link',
10
- // Chrome wants <a> to be lower
11
- 'underline', 'strike', 'italic', 'bold', 'script', 'code' // Must be higher
12
- ];
13
- static compare(self, other) {
14
- const selfIndex = Inline.order.indexOf(self);
15
- const otherIndex = Inline.order.indexOf(other);
16
- if (selfIndex >= 0 || otherIndex >= 0) {
17
- return selfIndex - otherIndex;
18
- }
19
- if (self === other) {
20
- return 0;
21
- }
22
- if (self < other) {
23
- return -1;
24
- }
25
- return 1;
26
- }
27
- formatAt(index, length, name, value) {
28
- if (Inline.compare(this.statics.blotName, name) < 0 && this.scroll.query(name, Scope.BLOT)) {
29
- const blot = this.isolate(index, length);
30
- if (value) {
31
- blot.wrap(name, value);
32
- }
33
- } else {
34
- super.formatAt(index, length, name, value);
35
- }
36
- }
37
- optimize(context) {
38
- super.optimize(context);
39
- if (this.parent instanceof Inline && Inline.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
40
- const parent = this.parent.isolate(this.offset(), this.length());
41
- // @ts-expect-error TODO: make isolate generic
42
- this.moveChildren(parent);
43
- parent.wrap(this);
44
- }
45
- }
46
- }
47
- export default Inline;
48
- //# sourceMappingURL=inline.js.map