@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,257 +0,0 @@
1
- import { merge } from 'lodash-es';
2
- import Emitter from '../core/emitter.js';
3
- import Theme from '../core/theme.js';
4
- import ColorPicker from '../ui/color-picker.js';
5
- import IconPicker from '../ui/icon-picker.js';
6
- import Picker from '../ui/picker.js';
7
- import Tooltip from '../ui/tooltip.js';
8
- const ALIGNS = [false, 'center', 'right', 'justify'];
9
- const COLORS = ['#000000', '#e60000', '#ff9900', '#ffff00', '#008a00', '#0066cc', '#9933ff', '#ffffff', '#facccc', '#ffebcc', '#ffffcc', '#cce8cc', '#cce0f5', '#ebd6ff', '#bbbbbb', '#f06666', '#ffc266', '#ffff66', '#66b966', '#66a3e0', '#c285ff', '#888888', '#a10000', '#b26b00', '#b2b200', '#006100', '#0047b2', '#6b24b2', '#444444', '#5c0000', '#663d00', '#666600', '#003700', '#002966', '#3d1466'];
10
- const FONTS = [false, 'serif', 'monospace'];
11
- const HEADERS = ['1', '2', '3', false];
12
- const SIZES = ['small', false, 'large', 'huge'];
13
- class BaseTheme extends Theme {
14
- constructor(quill, options) {
15
- super(quill, options);
16
- const listener = e => {
17
- if (!document.body.contains(quill.root)) {
18
- document.body.removeEventListener('click', listener);
19
- return;
20
- }
21
- if (this.tooltip != null &&
22
- // @ts-expect-error
23
- !this.tooltip.root.contains(e.target) &&
24
- // @ts-expect-error
25
- document.activeElement !== this.tooltip.textbox && !this.quill.hasFocus()) {
26
- this.tooltip.hide();
27
- }
28
- if (this.pickers != null) {
29
- this.pickers.forEach(picker => {
30
- // @ts-expect-error
31
- if (!picker.container.contains(e.target)) {
32
- picker.close();
33
- }
34
- });
35
- }
36
- };
37
- quill.emitter.listenDOM('click', document.body, listener);
38
- }
39
- addModule(name) {
40
- const module = super.addModule(name);
41
- if (name === 'toolbar') {
42
- // @ts-expect-error
43
- this.extendToolbar(module);
44
- }
45
- return module;
46
- }
47
- buildButtons(buttons, icons) {
48
- Array.from(buttons).forEach(button => {
49
- const className = button.getAttribute('class') || '';
50
- className.split(/\s+/).forEach(name => {
51
- if (!name.startsWith('ql-')) return;
52
- name = name.slice('ql-'.length);
53
- if (icons[name] == null) return;
54
- if (name === 'direction') {
55
- // @ts-expect-error
56
- button.innerHTML = icons[name][''] + icons[name].rtl;
57
- } else if (typeof icons[name] === 'string') {
58
- // @ts-expect-error
59
- button.innerHTML = icons[name];
60
- } else {
61
- // @ts-expect-error
62
- const value = button.value || '';
63
- // @ts-expect-error
64
- if (value != null && icons[name][value]) {
65
- // @ts-expect-error
66
- button.innerHTML = icons[name][value];
67
- }
68
- }
69
- });
70
- });
71
- }
72
- buildPickers(selects, icons) {
73
- this.pickers = Array.from(selects).map(select => {
74
- if (select.classList.contains('ql-align')) {
75
- if (select.querySelector('option') == null) {
76
- fillSelect(select, ALIGNS);
77
- }
78
- if (typeof icons.align === 'object') {
79
- return new IconPicker(select, icons.align);
80
- }
81
- }
82
- if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {
83
- const format = select.classList.contains('ql-background') ? 'background' : 'color';
84
- if (select.querySelector('option') == null) {
85
- fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');
86
- }
87
- return new ColorPicker(select, icons[format]);
88
- }
89
- if (select.querySelector('option') == null) {
90
- if (select.classList.contains('ql-font')) {
91
- fillSelect(select, FONTS);
92
- } else if (select.classList.contains('ql-header')) {
93
- fillSelect(select, HEADERS);
94
- } else if (select.classList.contains('ql-size')) {
95
- fillSelect(select, SIZES);
96
- }
97
- }
98
- return new Picker(select);
99
- });
100
- const update = () => {
101
- this.pickers.forEach(picker => {
102
- picker.update();
103
- });
104
- };
105
- this.quill.on(Emitter.events.EDITOR_CHANGE, update);
106
- }
107
- }
108
- BaseTheme.DEFAULTS = merge({}, Theme.DEFAULTS, {
109
- modules: {
110
- toolbar: {
111
- handlers: {
112
- formula() {
113
- this.quill.theme.tooltip.edit('formula');
114
- },
115
- image() {
116
- let fileInput = this.container.querySelector('input.ql-image[type=file]');
117
- if (fileInput == null) {
118
- fileInput = document.createElement('input');
119
- fileInput.setAttribute('type', 'file');
120
- fileInput.setAttribute('accept', this.quill.uploader.options.mimetypes.join(', '));
121
- fileInput.classList.add('ql-image');
122
- fileInput.addEventListener('change', () => {
123
- const range = this.quill.getSelection(true);
124
- this.quill.uploader.upload(range, fileInput.files);
125
- fileInput.value = '';
126
- });
127
- this.container.appendChild(fileInput);
128
- }
129
- fileInput.click();
130
- },
131
- video() {
132
- this.quill.theme.tooltip.edit('video');
133
- }
134
- }
135
- }
136
- }
137
- });
138
- class BaseTooltip extends Tooltip {
139
- constructor(quill, boundsContainer) {
140
- super(quill, boundsContainer);
141
- this.textbox = this.root.querySelector('input[type="text"]');
142
- this.listen();
143
- }
144
- listen() {
145
- // @ts-expect-error Fix me later
146
- this.textbox.addEventListener('keydown', event => {
147
- if (event.key === 'Enter') {
148
- this.save();
149
- event.preventDefault();
150
- } else if (event.key === 'Escape') {
151
- this.cancel();
152
- event.preventDefault();
153
- }
154
- });
155
- }
156
- cancel() {
157
- this.hide();
158
- this.restoreFocus();
159
- }
160
- edit() {
161
- let mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'link';
162
- let preview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
163
- this.root.classList.remove('ql-hidden');
164
- this.root.classList.add('ql-editing');
165
- if (this.textbox == null) return;
166
- if (preview != null) {
167
- this.textbox.value = preview;
168
- } else if (mode !== this.root.getAttribute('data-mode')) {
169
- this.textbox.value = '';
170
- }
171
- const bounds = this.quill.getBounds(this.quill.selection.savedRange);
172
- if (bounds != null) {
173
- this.position(bounds);
174
- }
175
- this.textbox.select();
176
- this.textbox.setAttribute('placeholder', this.textbox.getAttribute(`data-${mode}`) || '');
177
- this.root.setAttribute('data-mode', mode);
178
- }
179
- restoreFocus() {
180
- this.quill.focus({
181
- preventScroll: true
182
- });
183
- }
184
- save() {
185
- // @ts-expect-error Fix me later
186
- let {
187
- value
188
- } = this.textbox;
189
- switch (this.root.getAttribute('data-mode')) {
190
- case 'link':
191
- {
192
- const {
193
- scrollTop
194
- } = this.quill.root;
195
- if (this.linkRange) {
196
- this.quill.formatText(this.linkRange, 'link', value, Emitter.sources.USER);
197
- delete this.linkRange;
198
- } else {
199
- this.restoreFocus();
200
- this.quill.format('link', value, Emitter.sources.USER);
201
- }
202
- this.quill.root.scrollTop = scrollTop;
203
- break;
204
- }
205
- case 'video':
206
- {
207
- value = extractVideoUrl(value);
208
- }
209
- // eslint-disable-next-line no-fallthrough
210
- case 'formula':
211
- {
212
- if (!value) break;
213
- const range = this.quill.getSelection(true);
214
- if (range != null) {
215
- const index = range.index + range.length;
216
- this.quill.insertEmbed(index,
217
- // @ts-expect-error Fix me later
218
- this.root.getAttribute('data-mode'), value, Emitter.sources.USER);
219
- if (this.root.getAttribute('data-mode') === 'formula') {
220
- this.quill.insertText(index + 1, ' ', Emitter.sources.USER);
221
- }
222
- this.quill.setSelection(index + 2, Emitter.sources.USER);
223
- }
224
- break;
225
- }
226
- default:
227
- }
228
- // @ts-expect-error Fix me later
229
- this.textbox.value = '';
230
- this.hide();
231
- }
232
- }
233
- function extractVideoUrl(url) {
234
- let match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
235
- if (match) {
236
- return `${match[1] || 'https'}://www.youtube.com/embed/${match[2]}?showinfo=0`;
237
- }
238
- // eslint-disable-next-line no-cond-assign
239
- if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
240
- return `${match[1] || 'https'}://player.vimeo.com/video/${match[2]}/`;
241
- }
242
- return url;
243
- }
244
- function fillSelect(select, values) {
245
- let defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
246
- values.forEach(value => {
247
- const option = document.createElement('option');
248
- if (value === defaultValue) {
249
- option.setAttribute('selected', 'selected');
250
- } else {
251
- option.setAttribute('value', String(value));
252
- }
253
- select.appendChild(option);
254
- });
255
- }
256
- export { BaseTooltip, BaseTheme as default };
257
- //# sourceMappingURL=base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","names":["merge","Emitter","Theme","ColorPicker","IconPicker","Picker","Tooltip","ALIGNS","COLORS","FONTS","HEADERS","SIZES","BaseTheme","constructor","quill","options","listener","e","document","body","contains","root","removeEventListener","tooltip","target","activeElement","textbox","hasFocus","hide","pickers","forEach","picker","container","close","emitter","listenDOM","addModule","name","module","extendToolbar","buildButtons","buttons","icons","Array","from","button","className","getAttribute","split","startsWith","slice","length","innerHTML","rtl","value","buildPickers","selects","map","select","classList","querySelector","fillSelect","align","format","update","on","events","EDITOR_CHANGE","DEFAULTS","modules","toolbar","handlers","formula","theme","edit","image","fileInput","createElement","setAttribute","uploader","mimetypes","join","add","addEventListener","range","getSelection","upload","files","appendChild","click","video","BaseTooltip","boundsContainer","listen","event","key","save","preventDefault","cancel","restoreFocus","mode","arguments","undefined","preview","remove","bounds","getBounds","selection","savedRange","position","focus","preventScroll","scrollTop","linkRange","formatText","sources","USER","extractVideoUrl","index","insertEmbed","insertText","setSelection","url","match","values","defaultValue","option","String","default"],"sources":["../../src/themes/base.ts"],"sourcesContent":["import { merge } from 'lodash-es';\nimport type Quill from '../core/quill.js';\nimport Emitter from '../core/emitter.js';\nimport Theme from '../core/theme.js';\nimport type { ThemeOptions } from '../core/theme.js';\nimport ColorPicker from '../ui/color-picker.js';\nimport IconPicker from '../ui/icon-picker.js';\nimport Picker from '../ui/picker.js';\nimport Tooltip from '../ui/tooltip.js';\nimport type { Range } from '../core/selection.js';\nimport type Clipboard from '../modules/clipboard.js';\nimport type History from '../modules/history.js';\nimport type Keyboard from '../modules/keyboard.js';\nimport type Uploader from '../modules/uploader.js';\nimport type Selection from '../core/selection.js';\n\nconst ALIGNS = [false, 'center', 'right', 'justify'];\n\nconst COLORS = [\n '#000000',\n '#e60000',\n '#ff9900',\n '#ffff00',\n '#008a00',\n '#0066cc',\n '#9933ff',\n '#ffffff',\n '#facccc',\n '#ffebcc',\n '#ffffcc',\n '#cce8cc',\n '#cce0f5',\n '#ebd6ff',\n '#bbbbbb',\n '#f06666',\n '#ffc266',\n '#ffff66',\n '#66b966',\n '#66a3e0',\n '#c285ff',\n '#888888',\n '#a10000',\n '#b26b00',\n '#b2b200',\n '#006100',\n '#0047b2',\n '#6b24b2',\n '#444444',\n '#5c0000',\n '#663d00',\n '#666600',\n '#003700',\n '#002966',\n '#3d1466',\n];\n\nconst FONTS = [false, 'serif', 'monospace'];\n\nconst HEADERS = ['1', '2', '3', false];\n\nconst SIZES = ['small', false, 'large', 'huge'];\n\nclass BaseTheme extends Theme {\n pickers: Picker[];\n tooltip?: Tooltip;\n\n constructor(quill: Quill, options: ThemeOptions) {\n super(quill, options);\n const listener = (e: MouseEvent) => {\n if (!document.body.contains(quill.root)) {\n document.body.removeEventListener('click', listener);\n return;\n }\n if (\n this.tooltip != null &&\n // @ts-expect-error\n !this.tooltip.root.contains(e.target) &&\n // @ts-expect-error\n document.activeElement !== this.tooltip.textbox &&\n !this.quill.hasFocus()\n ) {\n this.tooltip.hide();\n }\n if (this.pickers != null) {\n this.pickers.forEach((picker) => {\n // @ts-expect-error\n if (!picker.container.contains(e.target)) {\n picker.close();\n }\n });\n }\n };\n quill.emitter.listenDOM('click', document.body, listener);\n }\n\n addModule(name: 'clipboard'): Clipboard;\n addModule(name: 'keyboard'): Keyboard;\n addModule(name: 'uploader'): Uploader;\n addModule(name: 'history'): History;\n addModule(name: 'selection'): Selection;\n addModule(name: string): unknown;\n addModule(name: string) {\n const module = super.addModule(name);\n if (name === 'toolbar') {\n // @ts-expect-error\n this.extendToolbar(module);\n }\n return module;\n }\n\n buildButtons(\n buttons: NodeListOf<HTMLElement>,\n icons: Record<string, Record<string, string> | string>,\n ) {\n Array.from(buttons).forEach((button) => {\n const className = button.getAttribute('class') || '';\n className.split(/\\s+/).forEach((name) => {\n if (!name.startsWith('ql-')) return;\n name = name.slice('ql-'.length);\n if (icons[name] == null) return;\n if (name === 'direction') {\n // @ts-expect-error\n button.innerHTML = icons[name][''] + icons[name].rtl;\n } else if (typeof icons[name] === 'string') {\n // @ts-expect-error\n button.innerHTML = icons[name];\n } else {\n // @ts-expect-error\n const value = button.value || '';\n // @ts-expect-error\n if (value != null && icons[name][value]) {\n // @ts-expect-error\n button.innerHTML = icons[name][value];\n }\n }\n });\n });\n }\n\n buildPickers(\n selects: NodeListOf<HTMLSelectElement>,\n icons: Record<string, string | Record<string, string>>,\n ) {\n this.pickers = Array.from(selects).map((select) => {\n if (select.classList.contains('ql-align')) {\n if (select.querySelector('option') == null) {\n fillSelect(select, ALIGNS);\n }\n if (typeof icons.align === 'object') {\n return new IconPicker(select, icons.align);\n }\n }\n if (\n select.classList.contains('ql-background') ||\n select.classList.contains('ql-color')\n ) {\n const format = select.classList.contains('ql-background')\n ? 'background'\n : 'color';\n if (select.querySelector('option') == null) {\n fillSelect(\n select,\n COLORS,\n format === 'background' ? '#ffffff' : '#000000',\n );\n }\n return new ColorPicker(select, icons[format] as string);\n }\n if (select.querySelector('option') == null) {\n if (select.classList.contains('ql-font')) {\n fillSelect(select, FONTS);\n } else if (select.classList.contains('ql-header')) {\n fillSelect(select, HEADERS);\n } else if (select.classList.contains('ql-size')) {\n fillSelect(select, SIZES);\n }\n }\n return new Picker(select);\n });\n const update = () => {\n this.pickers.forEach((picker) => {\n picker.update();\n });\n };\n this.quill.on(Emitter.events.EDITOR_CHANGE, update);\n }\n}\nBaseTheme.DEFAULTS = merge({}, Theme.DEFAULTS, {\n modules: {\n toolbar: {\n handlers: {\n formula() {\n this.quill.theme.tooltip.edit('formula');\n },\n image() {\n let fileInput = this.container.querySelector(\n 'input.ql-image[type=file]',\n );\n if (fileInput == null) {\n fileInput = document.createElement('input');\n fileInput.setAttribute('type', 'file');\n fileInput.setAttribute(\n 'accept',\n this.quill.uploader.options.mimetypes.join(', '),\n );\n fileInput.classList.add('ql-image');\n fileInput.addEventListener('change', () => {\n const range = this.quill.getSelection(true);\n this.quill.uploader.upload(range, fileInput.files);\n fileInput.value = '';\n });\n this.container.appendChild(fileInput);\n }\n fileInput.click();\n },\n video() {\n this.quill.theme.tooltip.edit('video');\n },\n },\n },\n },\n});\n\nclass BaseTooltip extends Tooltip {\n textbox: HTMLInputElement | null;\n linkRange?: Range;\n\n constructor(quill: Quill, boundsContainer?: HTMLElement) {\n super(quill, boundsContainer);\n this.textbox = this.root.querySelector('input[type=\"text\"]');\n this.listen();\n }\n\n listen() {\n // @ts-expect-error Fix me later\n this.textbox.addEventListener('keydown', (event) => {\n if (event.key === 'Enter') {\n this.save();\n event.preventDefault();\n } else if (event.key === 'Escape') {\n this.cancel();\n event.preventDefault();\n }\n });\n }\n\n cancel() {\n this.hide();\n this.restoreFocus();\n }\n\n edit(mode = 'link', preview: string | null = null) {\n this.root.classList.remove('ql-hidden');\n this.root.classList.add('ql-editing');\n if (this.textbox == null) return;\n\n if (preview != null) {\n this.textbox.value = preview;\n } else if (mode !== this.root.getAttribute('data-mode')) {\n this.textbox.value = '';\n }\n const bounds = this.quill.getBounds(this.quill.selection.savedRange);\n if (bounds != null) {\n this.position(bounds);\n }\n this.textbox.select();\n this.textbox.setAttribute(\n 'placeholder',\n this.textbox.getAttribute(`data-${mode}`) || '',\n );\n this.root.setAttribute('data-mode', mode);\n }\n\n restoreFocus() {\n this.quill.focus({ preventScroll: true });\n }\n\n save() {\n // @ts-expect-error Fix me later\n let { value } = this.textbox;\n switch (this.root.getAttribute('data-mode')) {\n case 'link': {\n const { scrollTop } = this.quill.root;\n if (this.linkRange) {\n this.quill.formatText(\n this.linkRange,\n 'link',\n value,\n Emitter.sources.USER,\n );\n delete this.linkRange;\n } else {\n this.restoreFocus();\n this.quill.format('link', value, Emitter.sources.USER);\n }\n this.quill.root.scrollTop = scrollTop;\n break;\n }\n case 'video': {\n value = extractVideoUrl(value);\n } // eslint-disable-next-line no-fallthrough\n case 'formula': {\n if (!value) break;\n const range = this.quill.getSelection(true);\n if (range != null) {\n const index = range.index + range.length;\n this.quill.insertEmbed(\n index,\n // @ts-expect-error Fix me later\n this.root.getAttribute('data-mode'),\n value,\n Emitter.sources.USER,\n );\n if (this.root.getAttribute('data-mode') === 'formula') {\n this.quill.insertText(index + 1, ' ', Emitter.sources.USER);\n }\n this.quill.setSelection(index + 2, Emitter.sources.USER);\n }\n break;\n }\n default:\n }\n // @ts-expect-error Fix me later\n this.textbox.value = '';\n this.hide();\n }\n}\n\nfunction extractVideoUrl(url: string) {\n let match =\n url.match(\n /^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtube\\.com\\/watch.*v=([a-zA-Z0-9_-]+)/,\n ) ||\n url.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtu\\.be\\/([a-zA-Z0-9_-]+)/);\n if (match) {\n return `${match[1] || 'https'}://www.youtube.com/embed/${\n match[2]\n }?showinfo=0`;\n }\n // eslint-disable-next-line no-cond-assign\n if ((match = url.match(/^(?:(https?):\\/\\/)?(?:www\\.)?vimeo\\.com\\/(\\d+)/))) {\n return `${match[1] || 'https'}://player.vimeo.com/video/${match[2]}/`;\n }\n return url;\n}\n\nfunction fillSelect(\n select: HTMLSelectElement,\n values: Array<string | boolean>,\n defaultValue: unknown = false,\n) {\n values.forEach((value) => {\n const option = document.createElement('option');\n if (value === defaultValue) {\n option.setAttribute('selected', 'selected');\n } else {\n option.setAttribute('value', String(value));\n }\n select.appendChild(option);\n });\n}\n\nexport { BaseTooltip, BaseTheme as default };\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,WAAW;AAEjC,OAAOC,OAAO,MAAM,oBAAoB;AACxC,OAAOC,KAAK,MAAM,kBAAkB;AAEpC,OAAOC,WAAW,MAAM,uBAAuB;AAC/C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,GACPD,GAAG,CAACC,KAAK,CACP,4EACF,CAAC,IACDD,GAAG,CAACC,KAAK,CAAC,gEAAgE,CAAC;EAC7E,IAAIA,KAAK,EAAE;IACT,OAAQ,GAAEA,KAAK,CAAC,CAAC,CAAC,IAAI,OAAQ,4BAC5BA,KAAK,CAAC,CAAC,CACR,aAAY;EACf;EACA;EACA,IAAKA,KAAK,GAAGD,GAAG,CAACC,KAAK,CAAC,gDAAgD,CAAC,EAAG;IACzE,OAAQ,GAAEA,KAAK,CAAC,CAAC,CAAC,IAAI,OAAQ,6BAA4BA,KAAK,CAAC,CAAC,CAAE,GAAE;EACvE;EACA,OAAOD,GAAG;AACZ;AAEA,SAAS7D,UAAUA,CACjBH,MAAyB,EACzBkE,MAA+B,EAE/B;EAAA,IADAC,YAAqB,GAAAxB,SAAA,CAAAlD,MAAA,QAAAkD,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,KAAK;EAE7BuB,MAAM,CAAC9F,OAAO,CAAEwB,KAAK,IAAK;IACxB,MAAMwE,MAAM,GAAG5G,QAAQ,CAAC2D,aAAa,CAAC,QAAQ,CAAC;IAC/C,IAAIvB,KAAK,KAAKuE,YAAY,EAAE;MAC1BC,MAAM,CAAChD,YAAY,CAAC,UAAU,EAAE,UAAU,CAAC;IAC7C,CAAC,MAAM;MACLgD,MAAM,CAAChD,YAAY,CAAC,OAAO,EAAEiD,MAAM,CAACzE,KAAK,CAAC,CAAC;IAC7C;IACAI,MAAM,CAAC8B,WAAW,CAACsC,MAAM,CAAC;EAC5B,CAAC,CAAC;AACJ;AAEA,SAASnC,WAAW,EAAE/E,SAAS,IAAIoH,OAAO","ignoreList":[]}
@@ -1,18 +0,0 @@
1
- import BaseTheme, { BaseTooltip } from './base.js';
2
- import type { Bounds } from '../core/selection.js';
3
- import Quill from '../core/quill.js';
4
- import type { ThemeOptions } from '../core/theme.js';
5
- import type Toolbar from '../modules/toolbar.js';
6
- declare class BubbleTooltip extends BaseTooltip {
7
- static TEMPLATE: string;
8
- constructor(quill: Quill, bounds?: HTMLElement);
9
- listen(): void;
10
- cancel(): void;
11
- position(reference: Bounds): number;
12
- }
13
- declare class BubbleTheme extends BaseTheme {
14
- tooltip: BubbleTooltip;
15
- constructor(quill: Quill, options: ThemeOptions);
16
- extendToolbar(toolbar: Toolbar): void;
17
- }
18
- export { BubbleTooltip, BubbleTheme as default };
@@ -1,114 +0,0 @@
1
- import { merge } from 'lodash-es';
2
- import Emitter from '../core/emitter.js';
3
- import BaseTheme, { BaseTooltip } from './base.js';
4
- import { Range } from '../core/selection.js';
5
- import icons from '../ui/icons.js';
6
- import Quill from '../core/quill.js';
7
- const TOOLBAR_CONFIG = [['bold', 'italic', 'link'], [{
8
- header: 1
9
- }, {
10
- header: 2
11
- }, 'blockquote']];
12
- class BubbleTooltip extends BaseTooltip {
13
- static TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', '</div>'].join('');
14
- constructor(quill, bounds) {
15
- super(quill, bounds);
16
- this.quill.on(Emitter.events.EDITOR_CHANGE, (type, range, oldRange, source) => {
17
- if (type !== Emitter.events.SELECTION_CHANGE) return;
18
- if (range != null && range.length > 0 && source === Emitter.sources.USER) {
19
- this.show();
20
- // Lock our width so we will expand beyond our offsetParent boundaries
21
- this.root.style.left = '0px';
22
- this.root.style.width = '';
23
- this.root.style.width = `${this.root.offsetWidth}px`;
24
- const lines = this.quill.getLines(range.index, range.length);
25
- if (lines.length === 1) {
26
- const bounds = this.quill.getBounds(range);
27
- if (bounds != null) {
28
- this.position(bounds);
29
- }
30
- } else {
31
- const lastLine = lines[lines.length - 1];
32
- const index = this.quill.getIndex(lastLine);
33
- const length = Math.min(lastLine.length() - 1, range.index + range.length - index);
34
- const indexBounds = this.quill.getBounds(new Range(index, length));
35
- if (indexBounds != null) {
36
- this.position(indexBounds);
37
- }
38
- }
39
- } else if (document.activeElement !== this.textbox && this.quill.hasFocus()) {
40
- this.hide();
41
- }
42
- });
43
- }
44
- listen() {
45
- super.listen();
46
- // @ts-expect-error Fix me later
47
- this.root.querySelector('.ql-close').addEventListener('click', () => {
48
- this.root.classList.remove('ql-editing');
49
- });
50
- this.quill.on(Emitter.events.SCROLL_OPTIMIZE, () => {
51
- // Let selection be restored by toolbar handlers before repositioning
52
- setTimeout(() => {
53
- if (this.root.classList.contains('ql-hidden')) return;
54
- const range = this.quill.getSelection();
55
- if (range != null) {
56
- const bounds = this.quill.getBounds(range);
57
- if (bounds != null) {
58
- this.position(bounds);
59
- }
60
- }
61
- }, 1);
62
- });
63
- }
64
- cancel() {
65
- this.show();
66
- }
67
- position(reference) {
68
- const shift = super.position(reference);
69
- const arrow = this.root.querySelector('.ql-tooltip-arrow');
70
- // @ts-expect-error
71
- arrow.style.marginLeft = '';
72
- if (shift !== 0) {
73
- // @ts-expect-error
74
- arrow.style.marginLeft = `${-1 * shift - arrow.offsetWidth / 2}px`;
75
- }
76
- return shift;
77
- }
78
- }
79
- class BubbleTheme extends BaseTheme {
80
- constructor(quill, options) {
81
- if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
82
- options.modules.toolbar.container = TOOLBAR_CONFIG;
83
- }
84
- super(quill, options);
85
- this.quill.container.classList.add('ql-bubble');
86
- }
87
- extendToolbar(toolbar) {
88
- // @ts-expect-error
89
- this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);
90
- if (toolbar.container != null) {
91
- this.tooltip.root.appendChild(toolbar.container);
92
- this.buildButtons(toolbar.container.querySelectorAll('button'), icons);
93
- this.buildPickers(toolbar.container.querySelectorAll('select'), icons);
94
- }
95
- }
96
- }
97
- BubbleTheme.DEFAULTS = merge({}, BaseTheme.DEFAULTS, {
98
- modules: {
99
- toolbar: {
100
- handlers: {
101
- link(value) {
102
- if (!value) {
103
- this.quill.format('link', false, Quill.sources.USER);
104
- } else {
105
- // @ts-expect-error
106
- this.quill.theme.tooltip.edit();
107
- }
108
- }
109
- }
110
- }
111
- }
112
- });
113
- export { BubbleTooltip, BubbleTheme as default };
114
- //# sourceMappingURL=bubble.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bubble.js","names":["merge","Emitter","BaseTheme","BaseTooltip","Range","icons","Quill","TOOLBAR_CONFIG","header","BubbleTooltip","TEMPLATE","join","constructor","quill","bounds","on","events","EDITOR_CHANGE","type","range","oldRange","source","SELECTION_CHANGE","length","sources","USER","show","root","style","left","width","offsetWidth","lines","getLines","index","getBounds","position","lastLine","getIndex","Math","min","indexBounds","document","activeElement","textbox","hasFocus","hide","listen","querySelector","addEventListener","classList","remove","SCROLL_OPTIMIZE","setTimeout","contains","getSelection","cancel","reference","shift","arrow","marginLeft","BubbleTheme","options","modules","toolbar","container","add","extendToolbar","tooltip","appendChild","buildButtons","querySelectorAll","buildPickers","DEFAULTS","handlers","link","value","format","theme","edit","default"],"sources":["../../src/themes/bubble.ts"],"sourcesContent":["import { merge } from 'lodash-es';\nimport Emitter from '../core/emitter.js';\nimport BaseTheme, { BaseTooltip } from './base.js';\nimport { Range } from '../core/selection.js';\nimport type { Bounds } from '../core/selection.js';\nimport icons from '../ui/icons.js';\nimport Quill from '../core/quill.js';\nimport type { ThemeOptions } from '../core/theme.js';\nimport type Toolbar from '../modules/toolbar.js';\nimport type { ToolbarConfig } from '../modules/toolbar.js';\n\nconst TOOLBAR_CONFIG: ToolbarConfig = [\n ['bold', 'italic', 'link'],\n [{ header: 1 }, { header: 2 }, 'blockquote'],\n];\n\nclass BubbleTooltip extends BaseTooltip {\n static TEMPLATE = [\n '<span class=\"ql-tooltip-arrow\"></span>',\n '<div class=\"ql-tooltip-editor\">',\n '<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">',\n '<a class=\"ql-close\"></a>',\n '</div>',\n ].join('');\n\n constructor(quill: Quill, bounds?: HTMLElement) {\n super(quill, bounds);\n this.quill.on(\n Emitter.events.EDITOR_CHANGE,\n (type, range, oldRange, source) => {\n if (type !== Emitter.events.SELECTION_CHANGE) return;\n if (\n range != null &&\n range.length > 0 &&\n source === Emitter.sources.USER\n ) {\n this.show();\n // Lock our width so we will expand beyond our offsetParent boundaries\n this.root.style.left = '0px';\n this.root.style.width = '';\n this.root.style.width = `${this.root.offsetWidth}px`;\n const lines = this.quill.getLines(range.index, range.length);\n if (lines.length === 1) {\n const bounds = this.quill.getBounds(range);\n if (bounds != null) {\n this.position(bounds);\n }\n } else {\n const lastLine = lines[lines.length - 1];\n const index = this.quill.getIndex(lastLine);\n const length = Math.min(\n lastLine.length() - 1,\n range.index + range.length - index,\n );\n const indexBounds = this.quill.getBounds(new Range(index, length));\n if (indexBounds != null) {\n this.position(indexBounds);\n }\n }\n } else if (\n document.activeElement !== this.textbox &&\n this.quill.hasFocus()\n ) {\n this.hide();\n }\n },\n );\n }\n\n listen() {\n super.listen();\n // @ts-expect-error Fix me later\n this.root.querySelector('.ql-close').addEventListener('click', () => {\n this.root.classList.remove('ql-editing');\n });\n this.quill.on(Emitter.events.SCROLL_OPTIMIZE, () => {\n // Let selection be restored by toolbar handlers before repositioning\n setTimeout(() => {\n if (this.root.classList.contains('ql-hidden')) return;\n const range = this.quill.getSelection();\n if (range != null) {\n const bounds = this.quill.getBounds(range);\n if (bounds != null) {\n this.position(bounds);\n }\n }\n }, 1);\n });\n }\n\n cancel() {\n this.show();\n }\n\n position(reference: Bounds) {\n const shift = super.position(reference);\n const arrow = this.root.querySelector('.ql-tooltip-arrow');\n // @ts-expect-error\n arrow.style.marginLeft = '';\n if (shift !== 0) {\n // @ts-expect-error\n arrow.style.marginLeft = `${-1 * shift - arrow.offsetWidth / 2}px`;\n }\n return shift;\n }\n}\n\nclass BubbleTheme extends BaseTheme {\n tooltip: BubbleTooltip;\n\n constructor(quill: Quill, options: ThemeOptions) {\n if (\n options.modules.toolbar != null &&\n options.modules.toolbar.container == null\n ) {\n options.modules.toolbar.container = TOOLBAR_CONFIG;\n }\n super(quill, options);\n this.quill.container.classList.add('ql-bubble');\n }\n\n extendToolbar(toolbar: Toolbar) {\n // @ts-expect-error\n this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);\n if (toolbar.container != null) {\n this.tooltip.root.appendChild<HTMLElement>(toolbar.container);\n this.buildButtons(toolbar.container.querySelectorAll('button'), icons);\n this.buildPickers(toolbar.container.querySelectorAll('select'), icons);\n }\n }\n}\nBubbleTheme.DEFAULTS = merge({}, BaseTheme.DEFAULTS, {\n modules: {\n toolbar: {\n handlers: {\n link(value: string) {\n if (!value) {\n this.quill.format('link', false, Quill.sources.USER);\n } else {\n // @ts-expect-error\n this.quill.theme.tooltip.edit();\n }\n },\n },\n },\n },\n} satisfies ThemeOptions);\n\nexport { BubbleTooltip, BubbleTheme as default };\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,WAAW;AACjC,OAAOC,OAAO,MAAM,oBAAoB;AACxC,OAAOC,SAAS,IAAIC,WAAW,QAAQ,WAAW;AAClD,SAASC,KAAK,QAAQ,sBAAsB;AAE5C,OAAOC,KAAK,MAAM,gBAAgB;AAClC,OAAOC,KAAK,MAAM,kBAAkB;AAKpC,MAAMC,cAA6B,GAAG,CACpC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,EAC1B,CAAC;EAAEC,MAAM,EAAE;AAAE,CAAC,EAAE;EAAEA,MAAM,EAAE;AAAE,CAAC,EAAE,YAAY,CAAC,CAC7C;AAED,MAAMC,aAAa,SAASN,WAAW,CAAC;EACtC,OAAOO,QAAQ,GAAG,CAChB,wCAAwC,EACxC,iCAAiC,EACjC,kGAAkG,EAClG,0BAA0B,EAC1B,QAAQ,CACT,CAACC,IAAI,CAAC,EAAE,CAAC;EAEVC,WAAWA,CAACC,KAAY,EAAEC,MAAoB,EAAE;IAC9C,KAAK,CAACD,KAAK,EAAEC,MAAM,CAAC;IACpB,IAAI,CAACD,KAAK,CAACE,EAAE,CACXd,OAAO,CAACe,MAAM,CAACC,aAAa,EAC5B,CA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AAO,CAACC,SAAS,CAACM,gBAAgB,CAAC,QAAQ,CAAC,EAAElE,KAAK,CAAC;IACxE;EACF;AACF;AACAwD,WAAW,CAACY,QAAQ,GAAGzE,KAAK,CAAC,CAAC,CAAC,EAAEE,SAAS,CAACuE,QAAQ,EAAE;EACnDV,OAAO,EAAE;IACPC,OAAO,EAAE;MACPU,QAAQ,EAAE;QACRC,IAAIA,CAACC,KAAa,EAAE;UAClB,IAAI,CAACA,KAAK,EAAE;YACV,IAAI,CAAC/D,KAAK,CAACgE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAEvE,KAAK,CAACkB,OAAO,CAACC,IAAI,CAAC;UACtD,CAAC,MAAM;YACL;YACA,IAAI,CAACZ,KAAK,CAACiE,KAAK,CAACV,OAAO,CAACW,IAAI,CAAC,CAAC;UACjC;QACF;MACF;IACF;EACF;AACF,CAAwB,CAAC;AAEzB,SAAStE,aAAa,EAAEoD,WAAW,IAAImB,OAAO","ignoreList":[]}
@@ -1,9 +0,0 @@
1
- import BaseTheme from './base.js';
2
- import Quill from '../core/quill.js';
3
- import type Toolbar from '../modules/toolbar.js';
4
- import type { ThemeOptions } from '../core/theme.js';
5
- declare class SnowTheme extends BaseTheme {
6
- constructor(quill: Quill, options: ThemeOptions);
7
- extendToolbar(toolbar: Toolbar): void;
8
- }
9
- export default SnowTheme;
@@ -1,122 +0,0 @@
1
- import { merge } from 'lodash-es';
2
- import Emitter from '../core/emitter.js';
3
- import BaseTheme, { BaseTooltip } from './base.js';
4
- import LinkBlot from '../formats/link.js';
5
- import { Range } from '../core/selection.js';
6
- import icons from '../ui/icons.js';
7
- import Quill from '../core/quill.js';
8
- const TOOLBAR_CONFIG = [[{
9
- header: ['1', '2', '3', false]
10
- }], ['bold', 'italic', 'underline', 'link'], [{
11
- list: 'ordered'
12
- }, {
13
- list: 'bullet'
14
- }], ['clean']];
15
- class SnowTooltip extends BaseTooltip {
16
- static TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join('');
17
- preview = this.root.querySelector('a.ql-preview');
18
- listen() {
19
- super.listen();
20
- // @ts-expect-error Fix me later
21
- this.root.querySelector('a.ql-action').addEventListener('click', event => {
22
- if (this.root.classList.contains('ql-editing')) {
23
- this.save();
24
- } else {
25
- // @ts-expect-error Fix me later
26
- this.edit('link', this.preview.textContent);
27
- }
28
- event.preventDefault();
29
- });
30
- // @ts-expect-error Fix me later
31
- this.root.querySelector('a.ql-remove').addEventListener('click', event => {
32
- if (this.linkRange != null) {
33
- const range = this.linkRange;
34
- this.restoreFocus();
35
- this.quill.formatText(range, 'link', false, Emitter.sources.USER);
36
- delete this.linkRange;
37
- }
38
- event.preventDefault();
39
- this.hide();
40
- });
41
- this.quill.on(Emitter.events.SELECTION_CHANGE, (range, oldRange, source) => {
42
- if (range == null) return;
43
- if (range.length === 0 && source === Emitter.sources.USER) {
44
- const [link, offset] = this.quill.scroll.descendant(LinkBlot, range.index);
45
- if (link != null) {
46
- this.linkRange = new Range(range.index - offset, link.length());
47
- const preview = LinkBlot.formats(link.domNode);
48
- // @ts-expect-error Fix me later
49
- this.preview.textContent = preview;
50
- // @ts-expect-error Fix me later
51
- this.preview.setAttribute('href', preview);
52
- this.show();
53
- const bounds = this.quill.getBounds(this.linkRange);
54
- if (bounds != null) {
55
- this.position(bounds);
56
- }
57
- return;
58
- }
59
- } else {
60
- delete this.linkRange;
61
- }
62
- this.hide();
63
- });
64
- }
65
- show() {
66
- super.show();
67
- this.root.removeAttribute('data-mode');
68
- }
69
- }
70
- class SnowTheme extends BaseTheme {
71
- constructor(quill, options) {
72
- if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
73
- options.modules.toolbar.container = TOOLBAR_CONFIG;
74
- }
75
- super(quill, options);
76
- this.quill.container.classList.add('ql-snow');
77
- }
78
- extendToolbar(toolbar) {
79
- if (toolbar.container != null) {
80
- toolbar.container.classList.add('ql-snow');
81
- this.buildButtons(toolbar.container.querySelectorAll('button'), icons);
82
- this.buildPickers(toolbar.container.querySelectorAll('select'), icons);
83
- // @ts-expect-error
84
- this.tooltip = new SnowTooltip(this.quill, this.options.bounds);
85
- if (toolbar.container.querySelector('.ql-link')) {
86
- this.quill.keyboard.addBinding({
87
- key: 'k',
88
- shortKey: true
89
- }, (_range, context) => {
90
- toolbar.handlers.link.call(toolbar, !context.format.link);
91
- });
92
- }
93
- }
94
- }
95
- }
96
- SnowTheme.DEFAULTS = merge({}, BaseTheme.DEFAULTS, {
97
- modules: {
98
- toolbar: {
99
- handlers: {
100
- link(value) {
101
- if (value) {
102
- const range = this.quill.getSelection();
103
- if (range == null || range.length === 0) return;
104
- let preview = this.quill.getText(range);
105
- if (/^\S+@\S+\.\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {
106
- preview = `mailto:${preview}`;
107
- }
108
- // @ts-expect-error
109
- const {
110
- tooltip
111
- } = this.quill.theme;
112
- tooltip.edit('link', preview);
113
- } else {
114
- this.quill.format('link', false, Quill.sources.USER);
115
- }
116
- }
117
- }
118
- }
119
- }
120
- });
121
- export default SnowTheme;
122
- //# sourceMappingURL=snow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snow.js","names":["merge","Emitter","BaseTheme","BaseTooltip","LinkBlot","Range","icons","Quill","TOOLBAR_CONFIG","header","list","SnowTooltip","TEMPLATE","join","preview","root","querySelector","listen","addEventListener","event","classList","contains","save","edit","textContent","preventDefault","linkRange","range","restoreFocus","quill","formatText","sources","USER","hide","on","events","SELECTION_CHANGE","oldRange","source","length","link","offset","scroll","descendant","index","formats","domNode","setAttribute","show","bounds","getBounds","position","removeAttribute","SnowTheme","constructor","options","modules","toolbar","container","add","extendToolbar","buildButtons","querySelectorAll","buildPickers","tooltip","keyboard","addBinding","key","shortKey","_range","context","handlers","call","format","DEFAULTS","value","getSelection","getText","test","indexOf","theme"],"sources":["../../src/themes/snow.ts"],"sourcesContent":["import { merge } from 'lodash-es';\nimport Emitter from '../core/emitter.js';\nimport BaseTheme, { BaseTooltip } from './base.js';\nimport LinkBlot from '../formats/link.js';\nimport { Range } from '../core/selection.js';\nimport icons from '../ui/icons.js';\nimport Quill from '../core/quill.js';\nimport type { Context } from '../modules/keyboard.js';\nimport type Toolbar from '../modules/toolbar.js';\nimport type { ToolbarConfig } from '../modules/toolbar.js';\nimport type { ThemeOptions } from '../core/theme.js';\n\nconst TOOLBAR_CONFIG: ToolbarConfig = [\n [{ header: ['1', '2', '3', false] }],\n ['bold', 'italic', 'underline', 'link'],\n [{ list: 'ordered' }, { list: 'bullet' }],\n ['clean'],\n];\n\nclass SnowTooltip extends BaseTooltip {\n static TEMPLATE = [\n '<a class=\"ql-preview\" rel=\"noopener noreferrer\" target=\"_blank\" href=\"about:blank\"></a>',\n '<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">',\n '<a class=\"ql-action\"></a>',\n '<a class=\"ql-remove\"></a>',\n ].join('');\n\n preview = this.root.querySelector('a.ql-preview');\n\n listen() {\n super.listen();\n // @ts-expect-error Fix me later\n this.root\n .querySelector('a.ql-action')\n .addEventListener('click', (event) => {\n if (this.root.classList.contains('ql-editing')) {\n this.save();\n } else {\n // @ts-expect-error Fix me later\n this.edit('link', this.preview.textContent);\n }\n event.preventDefault();\n });\n // @ts-expect-error Fix me later\n this.root\n .querySelector('a.ql-remove')\n .addEventListener('click', (event) => {\n if (this.linkRange != null) {\n const range = this.linkRange;\n this.restoreFocus();\n this.quill.formatText(range, 'link', false, Emitter.sources.USER);\n delete this.linkRange;\n }\n event.preventDefault();\n this.hide();\n });\n this.quill.on(\n Emitter.events.SELECTION_CHANGE,\n (range, oldRange, source) => {\n if (range == null) return;\n if (range.length === 0 && source === Emitter.sources.USER) {\n const [link, offset] = this.quill.scroll.descendant(\n LinkBlot,\n range.index,\n );\n if (link != null) {\n this.linkRange = new Range(range.index - offset, link.length());\n const preview = LinkBlot.formats(link.domNode);\n // @ts-expect-error Fix me later\n this.preview.textContent = preview;\n // @ts-expect-error Fix me later\n this.preview.setAttribute('href', preview);\n this.show();\n const bounds = this.quill.getBounds(this.linkRange);\n if (bounds != null) {\n this.position(bounds);\n }\n return;\n }\n } else {\n delete this.linkRange;\n }\n this.hide();\n },\n );\n }\n\n show() {\n super.show();\n this.root.removeAttribute('data-mode');\n }\n}\n\nclass SnowTheme extends BaseTheme {\n constructor(quill: Quill, options: ThemeOptions) {\n if (\n options.modules.toolbar != null &&\n options.modules.toolbar.container == null\n ) {\n options.modules.toolbar.container = TOOLBAR_CONFIG;\n }\n super(quill, options);\n this.quill.container.classList.add('ql-snow');\n }\n\n extendToolbar(toolbar: Toolbar) {\n if (toolbar.container != null) {\n toolbar.container.classList.add('ql-snow');\n this.buildButtons(toolbar.container.querySelectorAll('button'), icons);\n this.buildPickers(toolbar.container.querySelectorAll('select'), icons);\n // @ts-expect-error\n this.tooltip = new SnowTooltip(this.quill, this.options.bounds);\n if (toolbar.container.querySelector('.ql-link')) {\n this.quill.keyboard.addBinding(\n { key: 'k', shortKey: true },\n (_range: Range, context: Context) => {\n toolbar.handlers.link.call(toolbar, !context.format.link);\n },\n );\n }\n }\n }\n}\nSnowTheme.DEFAULTS = merge({}, BaseTheme.DEFAULTS, {\n modules: {\n toolbar: {\n handlers: {\n link(value: string) {\n if (value) {\n const range = this.quill.getSelection();\n if (range == null || range.length === 0) return;\n let preview = this.quill.getText(range);\n if (\n /^\\S+@\\S+\\.\\S+$/.test(preview) &&\n preview.indexOf('mailto:') !== 0\n ) {\n preview = `mailto:${preview}`;\n }\n // @ts-expect-error\n const { tooltip } = this.quill.theme;\n tooltip.edit('link', preview);\n } else {\n this.quill.format('link', false, Quill.sources.USER);\n }\n },\n },\n },\n },\n} satisfies ThemeOptions);\n\nexport default SnowTheme;\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,WAAW;AACjC,OAAOC,OAAO,MAAM,oB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AI,CAACe,KAAK,CAAC4C,MAAM,CAAC,MAAM,EAAE,KAAK,EAAElE,KAAK,CAACwB,OAAO,CAACC,IAAI,CAAC;UACtD;QACF;MACF;IACF;EACF;AACF,CAAwB,CAAC;AAEzB,eAAeqB,SAAS","ignoreList":[]}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.js","names":[],"sources":["../src/types.d.ts"],"sourcesContent":["declare module '*.svg' {\n const content: string;\n export default content;\n}\n\ndeclare const QUILL_VERSION: string | undefined;\n"],"mappings":"","ignoreList":[]}
@@ -1,7 +0,0 @@
1
- import Picker from './picker.js';
2
- declare class ColorPicker extends Picker {
3
- constructor(select: HTMLSelectElement, label: string);
4
- buildItem(option: HTMLOptionElement): HTMLSpanElement;
5
- selectItem(item: HTMLElement | null, trigger?: boolean): void;
6
- }
7
- export default ColorPicker;