@adminforth/rich-editor 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog.md +6 -0
- package/custom/node_modules/.package-lock.json +66 -0
- package/custom/node_modules/eventemitter3/LICENSE +21 -0
- package/custom/node_modules/eventemitter3/README.md +94 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.js +347 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.js +355 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -0
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -0
- package/custom/node_modules/eventemitter3/index.d.ts +135 -0
- package/custom/node_modules/eventemitter3/index.js +336 -0
- package/custom/node_modules/eventemitter3/index.mjs +4 -0
- package/custom/node_modules/eventemitter3/package.json +67 -0
- package/custom/node_modules/fast-diff/LICENSE +201 -0
- package/custom/node_modules/fast-diff/README.md +24 -0
- package/custom/node_modules/fast-diff/diff.d.ts +21 -0
- package/custom/node_modules/fast-diff/diff.js +1138 -0
- package/custom/node_modules/fast-diff/package.json +30 -0
- package/custom/node_modules/lodash-es/LICENSE +47 -0
- package/custom/node_modules/lodash-es/README.md +10 -0
- package/custom/node_modules/lodash-es/_DataView.js +7 -0
- package/custom/node_modules/lodash-es/_Hash.js +32 -0
- package/custom/node_modules/lodash-es/_LazyWrapper.js +28 -0
- package/custom/node_modules/lodash-es/_ListCache.js +32 -0
- package/custom/node_modules/lodash-es/_LodashWrapper.js +22 -0
- package/custom/node_modules/lodash-es/_Map.js +7 -0
- package/custom/node_modules/lodash-es/_MapCache.js +32 -0
- package/custom/node_modules/lodash-es/_Promise.js +7 -0
- package/custom/node_modules/lodash-es/_Set.js +7 -0
- package/custom/node_modules/lodash-es/_SetCache.js +27 -0
- package/custom/node_modules/lodash-es/_Stack.js +27 -0
- package/custom/node_modules/lodash-es/_Symbol.js +6 -0
- package/custom/node_modules/lodash-es/_Uint8Array.js +6 -0
- package/custom/node_modules/lodash-es/_WeakMap.js +7 -0
- package/custom/node_modules/lodash-es/_addMapEntry.js +15 -0
- package/custom/node_modules/lodash-es/_addSetEntry.js +15 -0
- package/custom/node_modules/lodash-es/_apply.js +21 -0
- package/custom/node_modules/lodash-es/_arrayAggregator.js +22 -0
- package/custom/node_modules/lodash-es/_arrayEach.js +22 -0
- package/custom/node_modules/lodash-es/_arrayEachRight.js +21 -0
- package/custom/node_modules/lodash-es/_arrayEvery.js +23 -0
- package/custom/node_modules/lodash-es/_arrayFilter.js +25 -0
- package/custom/node_modules/lodash-es/_arrayIncludes.js +17 -0
- package/custom/node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- package/custom/node_modules/lodash-es/_arrayLikeKeys.js +49 -0
- package/custom/node_modules/lodash-es/_arrayMap.js +21 -0
- package/custom/node_modules/lodash-es/_arrayPush.js +20 -0
- package/custom/node_modules/lodash-es/_arrayReduce.js +26 -0
- package/custom/node_modules/lodash-es/_arrayReduceRight.js +24 -0
- package/custom/node_modules/lodash-es/_arraySample.js +15 -0
- package/custom/node_modules/lodash-es/_arraySampleSize.js +17 -0
- package/custom/node_modules/lodash-es/_arrayShuffle.js +15 -0
- package/custom/node_modules/lodash-es/_arraySome.js +23 -0
- package/custom/node_modules/lodash-es/_asciiSize.js +12 -0
- package/custom/node_modules/lodash-es/_asciiToArray.js +12 -0
- package/custom/node_modules/lodash-es/_asciiWords.js +15 -0
- package/custom/node_modules/lodash-es/_assignMergeValue.js +20 -0
- package/custom/node_modules/lodash-es/_assignValue.js +28 -0
- package/custom/node_modules/lodash-es/_assocIndexOf.js +21 -0
- package/custom/node_modules/lodash-es/_baseAggregator.js +21 -0
- package/custom/node_modules/lodash-es/_baseAssign.js +17 -0
- package/custom/node_modules/lodash-es/_baseAssignIn.js +17 -0
- package/custom/node_modules/lodash-es/_baseAssignValue.js +25 -0
- package/custom/node_modules/lodash-es/_baseAt.js +23 -0
- package/custom/node_modules/lodash-es/_baseClamp.js +22 -0
- package/custom/node_modules/lodash-es/_baseClone.js +166 -0
- package/custom/node_modules/lodash-es/_baseConforms.js +18 -0
- package/custom/node_modules/lodash-es/_baseConformsTo.js +27 -0
- package/custom/node_modules/lodash-es/_baseCreate.js +30 -0
- package/custom/node_modules/lodash-es/_baseDelay.js +21 -0
- package/custom/node_modules/lodash-es/_baseDifference.js +67 -0
- package/custom/node_modules/lodash-es/_baseEach.js +14 -0
- package/custom/node_modules/lodash-es/_baseEachRight.js +14 -0
- package/custom/node_modules/lodash-es/_baseEvery.js +21 -0
- package/custom/node_modules/lodash-es/_baseExtremum.js +32 -0
- package/custom/node_modules/lodash-es/_baseFill.js +32 -0
- package/custom/node_modules/lodash-es/_baseFilter.js +21 -0
- package/custom/node_modules/lodash-es/_baseFindIndex.js +24 -0
- package/custom/node_modules/lodash-es/_baseFindKey.js +23 -0
- package/custom/node_modules/lodash-es/_baseFlatten.js +38 -0
- package/custom/node_modules/lodash-es/_baseFor.js +16 -0
- package/custom/node_modules/lodash-es/_baseForOwn.js +16 -0
- package/custom/node_modules/lodash-es/_baseForOwnRight.js +16 -0
- package/custom/node_modules/lodash-es/_baseForRight.js +15 -0
- package/custom/node_modules/lodash-es/_baseFunctions.js +19 -0
- package/custom/node_modules/lodash-es/_baseGet.js +24 -0
- package/custom/node_modules/lodash-es/_baseGetAllKeys.js +20 -0
- package/custom/node_modules/lodash-es/_baseGetTag.js +28 -0
- package/custom/node_modules/lodash-es/_baseGt.js +14 -0
- package/custom/node_modules/lodash-es/_baseHas.js +19 -0
- package/custom/node_modules/lodash-es/_baseHasIn.js +13 -0
- package/custom/node_modules/lodash-es/_baseInRange.js +18 -0
- package/custom/node_modules/lodash-es/_baseIndexOf.js +20 -0
- package/custom/node_modules/lodash-es/_baseIndexOfWith.js +23 -0
- package/custom/node_modules/lodash-es/_baseIntersection.js +74 -0
- package/custom/node_modules/lodash-es/_baseInverter.js +21 -0
- package/custom/node_modules/lodash-es/_baseInvoke.js +24 -0
- package/custom/node_modules/lodash-es/_baseIsArguments.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsArrayBuffer.js +17 -0
- package/custom/node_modules/lodash-es/_baseIsDate.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsEqual.js +28 -0
- package/custom/node_modules/lodash-es/_baseIsEqualDeep.js +83 -0
- package/custom/node_modules/lodash-es/_baseIsMap.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsMatch.js +62 -0
- package/custom/node_modules/lodash-es/_baseIsNaN.js +12 -0
- package/custom/node_modules/lodash-es/_baseIsNative.js +47 -0
- package/custom/node_modules/lodash-es/_baseIsRegExp.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsSet.js +18 -0
- package/custom/node_modules/lodash-es/_baseIsTypedArray.js +60 -0
- package/custom/node_modules/lodash-es/_baseIteratee.js +31 -0
- package/custom/node_modules/lodash-es/_baseKeys.js +30 -0
- package/custom/node_modules/lodash-es/_baseKeysIn.js +33 -0
- package/custom/node_modules/lodash-es/_baseLodash.js +10 -0
- package/custom/node_modules/lodash-es/_baseLt.js +14 -0
- package/custom/node_modules/lodash-es/_baseMap.js +22 -0
- package/custom/node_modules/lodash-es/_baseMatches.js +22 -0
- package/custom/node_modules/lodash-es/_baseMatchesProperty.js +33 -0
- package/custom/node_modules/lodash-es/_baseMean.js +20 -0
- package/custom/node_modules/lodash-es/_baseMerge.js +42 -0
- package/custom/node_modules/lodash-es/_baseMergeDeep.js +94 -0
- package/custom/node_modules/lodash-es/_baseNth.js +20 -0
- package/custom/node_modules/lodash-es/_baseOrderBy.js +49 -0
- package/custom/node_modules/lodash-es/_basePick.js +19 -0
- package/custom/node_modules/lodash-es/_basePickBy.js +30 -0
- package/custom/node_modules/lodash-es/_baseProperty.js +14 -0
- package/custom/node_modules/lodash-es/_basePropertyDeep.js +16 -0
- package/custom/node_modules/lodash-es/_basePropertyOf.js +14 -0
- package/custom/node_modules/lodash-es/_basePullAll.js +51 -0
- package/custom/node_modules/lodash-es/_basePullAt.js +37 -0
- package/custom/node_modules/lodash-es/_baseRandom.js +18 -0
- package/custom/node_modules/lodash-es/_baseRange.js +28 -0
- package/custom/node_modules/lodash-es/_baseReduce.js +23 -0
- package/custom/node_modules/lodash-es/_baseRepeat.js +35 -0
- package/custom/node_modules/lodash-es/_baseRest.js +17 -0
- package/custom/node_modules/lodash-es/_baseSample.js +15 -0
- package/custom/node_modules/lodash-es/_baseSampleSize.js +18 -0
- package/custom/node_modules/lodash-es/_baseSet.js +51 -0
- package/custom/node_modules/lodash-es/_baseSetData.js +17 -0
- package/custom/node_modules/lodash-es/_baseSetToString.js +22 -0
- package/custom/node_modules/lodash-es/_baseShuffle.js +15 -0
- package/custom/node_modules/lodash-es/_baseSlice.js +31 -0
- package/custom/node_modules/lodash-es/_baseSome.js +22 -0
- package/custom/node_modules/lodash-es/_baseSortBy.js +21 -0
- package/custom/node_modules/lodash-es/_baseSortedIndex.js +42 -0
- package/custom/node_modules/lodash-es/_baseSortedIndexBy.js +67 -0
- package/custom/node_modules/lodash-es/_baseSortedUniq.js +30 -0
- package/custom/node_modules/lodash-es/_baseSum.js +24 -0
- package/custom/node_modules/lodash-es/_baseTimes.js +20 -0
- package/custom/node_modules/lodash-es/_baseToNumber.js +24 -0
- package/custom/node_modules/lodash-es/_baseToPairs.js +18 -0
- package/custom/node_modules/lodash-es/_baseToString.js +37 -0
- package/custom/node_modules/lodash-es/_baseTrim.js +19 -0
- package/custom/node_modules/lodash-es/_baseUnary.js +14 -0
- package/custom/node_modules/lodash-es/_baseUniq.js +72 -0
- package/custom/node_modules/lodash-es/_baseUnset.js +20 -0
- package/custom/node_modules/lodash-es/_baseUpdate.js +18 -0
- package/custom/node_modules/lodash-es/_baseValues.js +19 -0
- package/custom/node_modules/lodash-es/_baseWhile.js +26 -0
- package/custom/node_modules/lodash-es/_baseWrapperValue.js +25 -0
- package/custom/node_modules/lodash-es/_baseXor.js +36 -0
- package/custom/node_modules/lodash-es/_baseZipObject.js +23 -0
- package/custom/node_modules/lodash-es/_cacheHas.js +13 -0
- package/custom/node_modules/lodash-es/_castArrayLikeObject.js +14 -0
- package/custom/node_modules/lodash-es/_castFunction.js +14 -0
- package/custom/node_modules/lodash-es/_castPath.js +21 -0
- package/custom/node_modules/lodash-es/_castRest.js +14 -0
- package/custom/node_modules/lodash-es/_castSlice.js +18 -0
- package/custom/node_modules/lodash-es/_charsEndIndex.js +19 -0
- package/custom/node_modules/lodash-es/_charsStartIndex.js +20 -0
- package/custom/node_modules/lodash-es/_cloneArrayBuffer.js +16 -0
- package/custom/node_modules/lodash-es/_cloneBuffer.js +35 -0
- package/custom/node_modules/lodash-es/_cloneDataView.js +16 -0
- package/custom/node_modules/lodash-es/_cloneMap.js +22 -0
- package/custom/node_modules/lodash-es/_cloneRegExp.js +17 -0
- package/custom/node_modules/lodash-es/_cloneSet.js +22 -0
- package/custom/node_modules/lodash-es/_cloneSymbol.js +18 -0
- package/custom/node_modules/lodash-es/_cloneTypedArray.js +16 -0
- package/custom/node_modules/lodash-es/_compareAscending.js +41 -0
- package/custom/node_modules/lodash-es/_compareMultiple.js +44 -0
- package/custom/node_modules/lodash-es/_composeArgs.js +39 -0
- package/custom/node_modules/lodash-es/_composeArgsRight.js +41 -0
- package/custom/node_modules/lodash-es/_copyArray.js +20 -0
- package/custom/node_modules/lodash-es/_copyObject.js +40 -0
- package/custom/node_modules/lodash-es/_copySymbols.js +16 -0
- package/custom/node_modules/lodash-es/_copySymbolsIn.js +16 -0
- package/custom/node_modules/lodash-es/_coreJsData.js +6 -0
- package/custom/node_modules/lodash-es/_countHolders.js +21 -0
- package/custom/node_modules/lodash-es/_createAggregator.js +23 -0
- package/custom/node_modules/lodash-es/_createAssigner.js +37 -0
- package/custom/node_modules/lodash-es/_createBaseEach.js +32 -0
- package/custom/node_modules/lodash-es/_createBaseFor.js +25 -0
- package/custom/node_modules/lodash-es/_createBind.js +28 -0
- package/custom/node_modules/lodash-es/_createCaseFirst.js +33 -0
- package/custom/node_modules/lodash-es/_createCompounder.js +24 -0
- package/custom/node_modules/lodash-es/_createCtor.js +37 -0
- package/custom/node_modules/lodash-es/_createCurry.js +46 -0
- package/custom/node_modules/lodash-es/_createFind.js +25 -0
- package/custom/node_modules/lodash-es/_createFlow.js +78 -0
- package/custom/node_modules/lodash-es/_createHybrid.js +92 -0
- package/custom/node_modules/lodash-es/_createInverter.js +17 -0
- package/custom/node_modules/lodash-es/_createMathOperation.js +38 -0
- package/custom/node_modules/lodash-es/_createOver.js +27 -0
- package/custom/node_modules/lodash-es/_createPadding.js +33 -0
- package/custom/node_modules/lodash-es/_createPartial.js +43 -0
- package/custom/node_modules/lodash-es/_createRange.js +30 -0
- package/custom/node_modules/lodash-es/_createRecurry.js +56 -0
- package/custom/node_modules/lodash-es/_createRelationalOperation.js +20 -0
- package/custom/node_modules/lodash-es/_createRound.js +35 -0
- package/custom/node_modules/lodash-es/_createSet.js +19 -0
- package/custom/node_modules/lodash-es/_createToPairs.js +30 -0
- package/custom/node_modules/lodash-es/_createWrap.js +106 -0
- package/custom/node_modules/lodash-es/_customDefaultsAssignIn.js +29 -0
- package/custom/node_modules/lodash-es/_customDefaultsMerge.js +28 -0
- package/custom/node_modules/lodash-es/_customOmitClone.js +16 -0
- package/custom/node_modules/lodash-es/_deburrLetter.js +71 -0
- package/custom/node_modules/lodash-es/_defineProperty.js +11 -0
- package/custom/node_modules/lodash-es/_equalArrays.js +84 -0
- package/custom/node_modules/lodash-es/_equalByTag.js +112 -0
- package/custom/node_modules/lodash-es/_equalObjects.js +90 -0
- package/custom/node_modules/lodash-es/_escapeHtmlChar.js +21 -0
- package/custom/node_modules/lodash-es/_escapeStringChar.js +22 -0
- package/custom/node_modules/lodash-es/_flatRest.js +16 -0
- package/custom/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/custom/node_modules/lodash-es/_getAllKeys.js +16 -0
- package/custom/node_modules/lodash-es/_getAllKeysIn.js +17 -0
- package/custom/node_modules/lodash-es/_getData.js +15 -0
- package/custom/node_modules/lodash-es/_getFuncName.js +31 -0
- package/custom/node_modules/lodash-es/_getHolder.js +13 -0
- package/custom/node_modules/lodash-es/_getMapData.js +18 -0
- package/custom/node_modules/lodash-es/_getMatchData.js +24 -0
- package/custom/node_modules/lodash-es/_getNative.js +17 -0
- package/custom/node_modules/lodash-es/_getPrototype.js +6 -0
- package/custom/node_modules/lodash-es/_getRawTag.js +46 -0
- package/custom/node_modules/lodash-es/_getSymbols.js +30 -0
- package/custom/node_modules/lodash-es/_getSymbolsIn.js +25 -0
- package/custom/node_modules/lodash-es/_getTag.js +58 -0
- package/custom/node_modules/lodash-es/_getValue.js +13 -0
- package/custom/node_modules/lodash-es/_getView.js +33 -0
- package/custom/node_modules/lodash-es/_getWrapDetails.js +17 -0
- package/custom/node_modules/lodash-es/_hasPath.js +39 -0
- package/custom/node_modules/lodash-es/_hasUnicode.js +26 -0
- package/custom/node_modules/lodash-es/_hasUnicodeWord.js +15 -0
- package/custom/node_modules/lodash-es/_hashClear.js +15 -0
- package/custom/node_modules/lodash-es/_hashDelete.js +17 -0
- package/custom/node_modules/lodash-es/_hashGet.js +30 -0
- package/custom/node_modules/lodash-es/_hashHas.js +23 -0
- package/custom/node_modules/lodash-es/_hashSet.js +23 -0
- package/custom/node_modules/lodash-es/_initCloneArray.js +26 -0
- package/custom/node_modules/lodash-es/_initCloneByTag.js +77 -0
- package/custom/node_modules/lodash-es/_initCloneObject.js +18 -0
- package/custom/node_modules/lodash-es/_insertWrapDetails.js +23 -0
- package/custom/node_modules/lodash-es/_isFlattenable.js +20 -0
- package/custom/node_modules/lodash-es/_isIndex.js +25 -0
- package/custom/node_modules/lodash-es/_isIterateeCall.js +30 -0
- package/custom/node_modules/lodash-es/_isKey.js +29 -0
- package/custom/node_modules/lodash-es/_isKeyable.js +15 -0
- package/custom/node_modules/lodash-es/_isLaziable.js +28 -0
- package/custom/node_modules/lodash-es/_isMaskable.js +14 -0
- package/custom/node_modules/lodash-es/_isMasked.js +20 -0
- package/custom/node_modules/lodash-es/_isPrototype.js +18 -0
- package/custom/node_modules/lodash-es/_isStrictComparable.js +15 -0
- package/custom/node_modules/lodash-es/_iteratorToArray.js +18 -0
- package/custom/node_modules/lodash-es/_lazyClone.js +23 -0
- package/custom/node_modules/lodash-es/_lazyReverse.js +23 -0
- package/custom/node_modules/lodash-es/_lazyValue.js +69 -0
- package/custom/node_modules/lodash-es/_listCacheClear.js +13 -0
- package/custom/node_modules/lodash-es/_listCacheDelete.js +35 -0
- package/custom/node_modules/lodash-es/_listCacheGet.js +19 -0
- package/custom/node_modules/lodash-es/_listCacheHas.js +16 -0
- package/custom/node_modules/lodash-es/_listCacheSet.js +26 -0
- package/custom/node_modules/lodash-es/_mapCacheClear.js +21 -0
- package/custom/node_modules/lodash-es/_mapCacheDelete.js +18 -0
- package/custom/node_modules/lodash-es/_mapCacheGet.js +16 -0
- package/custom/node_modules/lodash-es/_mapCacheHas.js +16 -0
- package/custom/node_modules/lodash-es/_mapCacheSet.js +22 -0
- package/custom/node_modules/lodash-es/_mapToArray.js +18 -0
- package/custom/node_modules/lodash-es/_matchesStrictComparable.js +20 -0
- package/custom/node_modules/lodash-es/_memoizeCapped.js +26 -0
- package/custom/node_modules/lodash-es/_mergeData.js +90 -0
- package/custom/node_modules/lodash-es/_metaMap.js +6 -0
- package/custom/node_modules/lodash-es/_nativeCreate.js +6 -0
- package/custom/node_modules/lodash-es/_nativeKeys.js +6 -0
- package/custom/node_modules/lodash-es/_nativeKeysIn.js +20 -0
- package/custom/node_modules/lodash-es/_nodeUtil.js +30 -0
- package/custom/node_modules/lodash-es/_objectToString.js +22 -0
- package/custom/node_modules/lodash-es/_overArg.js +15 -0
- package/custom/node_modules/lodash-es/_overRest.js +36 -0
- package/custom/node_modules/lodash-es/_parent.js +16 -0
- package/custom/node_modules/lodash-es/_reEscape.js +4 -0
- package/custom/node_modules/lodash-es/_reEvaluate.js +4 -0
- package/custom/node_modules/lodash-es/_reInterpolate.js +4 -0
- package/custom/node_modules/lodash-es/_realNames.js +4 -0
- package/custom/node_modules/lodash-es/_reorder.js +29 -0
- package/custom/node_modules/lodash-es/_replaceHolders.js +29 -0
- package/custom/node_modules/lodash-es/_root.js +9 -0
- package/custom/node_modules/lodash-es/_safeGet.js +21 -0
- package/custom/node_modules/lodash-es/_setCacheAdd.js +19 -0
- package/custom/node_modules/lodash-es/_setCacheHas.js +14 -0
- package/custom/node_modules/lodash-es/_setData.js +20 -0
- package/custom/node_modules/lodash-es/_setToArray.js +18 -0
- package/custom/node_modules/lodash-es/_setToPairs.js +18 -0
- package/custom/node_modules/lodash-es/_setToString.js +14 -0
- package/custom/node_modules/lodash-es/_setWrapToString.js +21 -0
- package/custom/node_modules/lodash-es/_shortOut.js +37 -0
- package/custom/node_modules/lodash-es/_shuffleSelf.js +28 -0
- package/custom/node_modules/lodash-es/_stackClear.js +15 -0
- package/custom/node_modules/lodash-es/_stackDelete.js +18 -0
- package/custom/node_modules/lodash-es/_stackGet.js +14 -0
- package/custom/node_modules/lodash-es/_stackHas.js +14 -0
- package/custom/node_modules/lodash-es/_stackSet.js +34 -0
- package/custom/node_modules/lodash-es/_strictIndexOf.js +23 -0
- package/custom/node_modules/lodash-es/_strictLastIndexOf.js +21 -0
- package/custom/node_modules/lodash-es/_stringSize.js +18 -0
- package/custom/node_modules/lodash-es/_stringToArray.js +18 -0
- package/custom/node_modules/lodash-es/_stringToPath.js +27 -0
- package/custom/node_modules/lodash-es/_toKey.js +21 -0
- package/custom/node_modules/lodash-es/_toSource.js +26 -0
- package/custom/node_modules/lodash-es/_trimmedEndIndex.js +19 -0
- package/custom/node_modules/lodash-es/_unescapeHtmlChar.js +21 -0
- package/custom/node_modules/lodash-es/_unicodeSize.js +44 -0
- package/custom/node_modules/lodash-es/_unicodeToArray.js +40 -0
- package/custom/node_modules/lodash-es/_unicodeWords.js +69 -0
- package/custom/node_modules/lodash-es/_updateWrapDetails.js +46 -0
- package/custom/node_modules/lodash-es/_wrapperClone.js +23 -0
- package/custom/node_modules/lodash-es/add.js +22 -0
- package/custom/node_modules/lodash-es/after.js +42 -0
- package/custom/node_modules/lodash-es/array.default.js +81 -0
- package/custom/node_modules/lodash-es/array.js +66 -0
- package/custom/node_modules/lodash-es/ary.js +29 -0
- package/custom/node_modules/lodash-es/assign.js +58 -0
- package/custom/node_modules/lodash-es/assignIn.js +40 -0
- package/custom/node_modules/lodash-es/assignInWith.js +38 -0
- package/custom/node_modules/lodash-es/assignWith.js +37 -0
- package/custom/node_modules/lodash-es/at.js +23 -0
- package/custom/node_modules/lodash-es/attempt.js +35 -0
- package/custom/node_modules/lodash-es/before.js +40 -0
- package/custom/node_modules/lodash-es/bind.js +57 -0
- package/custom/node_modules/lodash-es/bindAll.js +41 -0
- package/custom/node_modules/lodash-es/bindKey.js +68 -0
- package/custom/node_modules/lodash-es/camelCase.js +29 -0
- package/custom/node_modules/lodash-es/capitalize.js +23 -0
- package/custom/node_modules/lodash-es/castArray.js +44 -0
- package/custom/node_modules/lodash-es/ceil.js +26 -0
- package/custom/node_modules/lodash-es/chain.js +38 -0
- package/custom/node_modules/lodash-es/chunk.js +50 -0
- package/custom/node_modules/lodash-es/clamp.js +39 -0
- package/custom/node_modules/lodash-es/clone.js +36 -0
- package/custom/node_modules/lodash-es/cloneDeep.js +29 -0
- package/custom/node_modules/lodash-es/cloneDeepWith.js +40 -0
- package/custom/node_modules/lodash-es/cloneWith.js +42 -0
- package/custom/node_modules/lodash-es/collection.default.js +37 -0
- package/custom/node_modules/lodash-es/collection.js +29 -0
- package/custom/node_modules/lodash-es/commit.js +33 -0
- package/custom/node_modules/lodash-es/compact.js +31 -0
- package/custom/node_modules/lodash-es/concat.js +43 -0
- package/custom/node_modules/lodash-es/cond.js +60 -0
- package/custom/node_modules/lodash-es/conforms.js +35 -0
- package/custom/node_modules/lodash-es/conformsTo.js +32 -0
- package/custom/node_modules/lodash-es/constant.js +26 -0
- package/custom/node_modules/lodash-es/countBy.js +40 -0
- package/custom/node_modules/lodash-es/create.js +43 -0
- package/custom/node_modules/lodash-es/curry.js +57 -0
- package/custom/node_modules/lodash-es/curryRight.js +54 -0
- package/custom/node_modules/lodash-es/date.default.js +5 -0
- package/custom/node_modules/lodash-es/date.js +2 -0
- package/custom/node_modules/lodash-es/debounce.js +191 -0
- package/custom/node_modules/lodash-es/deburr.js +45 -0
- package/custom/node_modules/lodash-es/defaultTo.js +25 -0
- package/custom/node_modules/lodash-es/defaults.js +64 -0
- package/custom/node_modules/lodash-es/defaultsDeep.js +30 -0
- package/custom/node_modules/lodash-es/defer.js +26 -0
- package/custom/node_modules/lodash-es/delay.js +28 -0
- package/custom/node_modules/lodash-es/difference.js +33 -0
- package/custom/node_modules/lodash-es/differenceBy.js +44 -0
- package/custom/node_modules/lodash-es/differenceWith.js +40 -0
- package/custom/node_modules/lodash-es/divide.js +22 -0
- package/custom/node_modules/lodash-es/drop.js +38 -0
- package/custom/node_modules/lodash-es/dropRight.js +39 -0
- package/custom/node_modules/lodash-es/dropRightWhile.js +45 -0
- package/custom/node_modules/lodash-es/dropWhile.js +45 -0
- package/custom/node_modules/lodash-es/each.js +1 -0
- package/custom/node_modules/lodash-es/eachRight.js +1 -0
- package/custom/node_modules/lodash-es/endsWith.js +43 -0
- package/custom/node_modules/lodash-es/entries.js +1 -0
- package/custom/node_modules/lodash-es/entriesIn.js +1 -0
- package/custom/node_modules/lodash-es/eq.js +37 -0
- package/custom/node_modules/lodash-es/escape.js +43 -0
- package/custom/node_modules/lodash-es/escapeRegExp.js +32 -0
- package/custom/node_modules/lodash-es/every.js +56 -0
- package/custom/node_modules/lodash-es/extend.js +1 -0
- package/custom/node_modules/lodash-es/extendWith.js +1 -0
- package/custom/node_modules/lodash-es/fill.js +45 -0
- package/custom/node_modules/lodash-es/filter.js +52 -0
- package/custom/node_modules/lodash-es/find.js +42 -0
- package/custom/node_modules/lodash-es/findIndex.js +55 -0
- package/custom/node_modules/lodash-es/findKey.js +44 -0
- package/custom/node_modules/lodash-es/findLast.js +25 -0
- package/custom/node_modules/lodash-es/findLastIndex.js +59 -0
- package/custom/node_modules/lodash-es/findLastKey.js +44 -0
- package/custom/node_modules/lodash-es/first.js +1 -0
- package/custom/node_modules/lodash-es/flake.lock +40 -0
- package/custom/node_modules/lodash-es/flake.nix +20 -0
- package/custom/node_modules/lodash-es/flatMap.js +29 -0
- package/custom/node_modules/lodash-es/flatMapDeep.js +31 -0
- package/custom/node_modules/lodash-es/flatMapDepth.js +31 -0
- package/custom/node_modules/lodash-es/flatten.js +22 -0
- package/custom/node_modules/lodash-es/flattenDeep.js +25 -0
- package/custom/node_modules/lodash-es/flattenDepth.js +33 -0
- package/custom/node_modules/lodash-es/flip.js +28 -0
- package/custom/node_modules/lodash-es/floor.js +26 -0
- package/custom/node_modules/lodash-es/flow.js +27 -0
- package/custom/node_modules/lodash-es/flowRight.js +26 -0
- package/custom/node_modules/lodash-es/forEach.js +41 -0
- package/custom/node_modules/lodash-es/forEachRight.js +31 -0
- package/custom/node_modules/lodash-es/forIn.js +39 -0
- package/custom/node_modules/lodash-es/forInRight.js +37 -0
- package/custom/node_modules/lodash-es/forOwn.js +36 -0
- package/custom/node_modules/lodash-es/forOwnRight.js +34 -0
- package/custom/node_modules/lodash-es/fromPairs.js +28 -0
- package/custom/node_modules/lodash-es/function.default.js +31 -0
- package/custom/node_modules/lodash-es/function.js +24 -0
- package/custom/node_modules/lodash-es/functions.js +31 -0
- package/custom/node_modules/lodash-es/functionsIn.js +31 -0
- package/custom/node_modules/lodash-es/get.js +33 -0
- package/custom/node_modules/lodash-es/groupBy.js +41 -0
- package/custom/node_modules/lodash-es/gt.js +29 -0
- package/custom/node_modules/lodash-es/gte.js +30 -0
- package/custom/node_modules/lodash-es/has.js +35 -0
- package/custom/node_modules/lodash-es/hasIn.js +34 -0
- package/custom/node_modules/lodash-es/head.js +23 -0
- package/custom/node_modules/lodash-es/identity.js +21 -0
- package/custom/node_modules/lodash-es/inRange.js +55 -0
- package/custom/node_modules/lodash-es/includes.js +53 -0
- package/custom/node_modules/lodash-es/indexOf.js +42 -0
- package/custom/node_modules/lodash-es/initial.js +22 -0
- package/custom/node_modules/lodash-es/intersection.js +30 -0
- package/custom/node_modules/lodash-es/intersectionBy.js +45 -0
- package/custom/node_modules/lodash-es/intersectionWith.js +41 -0
- package/custom/node_modules/lodash-es/invert.js +42 -0
- package/custom/node_modules/lodash-es/invertBy.js +56 -0
- package/custom/node_modules/lodash-es/invoke.js +24 -0
- package/custom/node_modules/lodash-es/invokeMap.js +41 -0
- package/custom/node_modules/lodash-es/isArguments.js +36 -0
- package/custom/node_modules/lodash-es/isArray.js +26 -0
- package/custom/node_modules/lodash-es/isArrayBuffer.js +27 -0
- package/custom/node_modules/lodash-es/isArrayLike.js +33 -0
- package/custom/node_modules/lodash-es/isArrayLikeObject.js +33 -0
- package/custom/node_modules/lodash-es/isBoolean.js +29 -0
- package/custom/node_modules/lodash-es/isBuffer.js +38 -0
- package/custom/node_modules/lodash-es/isDate.js +27 -0
- package/custom/node_modules/lodash-es/isElement.js +25 -0
- package/custom/node_modules/lodash-es/isEmpty.js +77 -0
- package/custom/node_modules/lodash-es/isEqual.js +35 -0
- package/custom/node_modules/lodash-es/isEqualWith.js +41 -0
- package/custom/node_modules/lodash-es/isError.js +36 -0
- package/custom/node_modules/lodash-es/isFinite.js +36 -0
- package/custom/node_modules/lodash-es/isFunction.js +37 -0
- package/custom/node_modules/lodash-es/isInteger.js +33 -0
- package/custom/node_modules/lodash-es/isLength.js +35 -0
- package/custom/node_modules/lodash-es/isMap.js +27 -0
- package/custom/node_modules/lodash-es/isMatch.js +36 -0
- package/custom/node_modules/lodash-es/isMatchWith.js +41 -0
- package/custom/node_modules/lodash-es/isNaN.js +38 -0
- package/custom/node_modules/lodash-es/isNative.js +40 -0
- package/custom/node_modules/lodash-es/isNil.js +25 -0
- package/custom/node_modules/lodash-es/isNull.js +22 -0
- package/custom/node_modules/lodash-es/isNumber.js +38 -0
- package/custom/node_modules/lodash-es/isObject.js +31 -0
- package/custom/node_modules/lodash-es/isObjectLike.js +29 -0
- package/custom/node_modules/lodash-es/isPlainObject.js +62 -0
- package/custom/node_modules/lodash-es/isRegExp.js +27 -0
- package/custom/node_modules/lodash-es/isSafeInteger.js +37 -0
- package/custom/node_modules/lodash-es/isSet.js +27 -0
- package/custom/node_modules/lodash-es/isString.js +30 -0
- package/custom/node_modules/lodash-es/isSymbol.js +29 -0
- package/custom/node_modules/lodash-es/isTypedArray.js +27 -0
- package/custom/node_modules/lodash-es/isUndefined.js +22 -0
- package/custom/node_modules/lodash-es/isWeakMap.js +28 -0
- package/custom/node_modules/lodash-es/isWeakSet.js +28 -0
- package/custom/node_modules/lodash-es/iteratee.js +53 -0
- package/custom/node_modules/lodash-es/join.js +26 -0
- package/custom/node_modules/lodash-es/kebabCase.js +28 -0
- package/custom/node_modules/lodash-es/keyBy.js +36 -0
- package/custom/node_modules/lodash-es/keys.js +37 -0
- package/custom/node_modules/lodash-es/keysIn.js +32 -0
- package/custom/node_modules/lodash-es/lang.default.js +71 -0
- package/custom/node_modules/lodash-es/lang.js +57 -0
- package/custom/node_modules/lodash-es/last.js +20 -0
- package/custom/node_modules/lodash-es/lastIndexOf.js +46 -0
- package/custom/node_modules/lodash-es/lodash.default.js +643 -0
- package/custom/node_modules/lodash-es/lodash.js +331 -0
- package/custom/node_modules/lodash-es/lowerCase.js +27 -0
- package/custom/node_modules/lodash-es/lowerFirst.js +22 -0
- package/custom/node_modules/lodash-es/lt.js +29 -0
- package/custom/node_modules/lodash-es/lte.js +30 -0
- package/custom/node_modules/lodash-es/map.js +53 -0
- package/custom/node_modules/lodash-es/mapKeys.js +36 -0
- package/custom/node_modules/lodash-es/mapValues.js +43 -0
- package/custom/node_modules/lodash-es/matches.js +46 -0
- package/custom/node_modules/lodash-es/matchesProperty.js +44 -0
- package/custom/node_modules/lodash-es/math.default.js +21 -0
- package/custom/node_modules/lodash-es/math.js +16 -0
- package/custom/node_modules/lodash-es/max.js +29 -0
- package/custom/node_modules/lodash-es/maxBy.js +34 -0
- package/custom/node_modules/lodash-es/mean.js +22 -0
- package/custom/node_modules/lodash-es/meanBy.js +31 -0
- package/custom/node_modules/lodash-es/memoize.js +73 -0
- package/custom/node_modules/lodash-es/merge.js +39 -0
- package/custom/node_modules/lodash-es/mergeWith.js +39 -0
- package/custom/node_modules/lodash-es/method.js +34 -0
- package/custom/node_modules/lodash-es/methodOf.js +33 -0
- package/custom/node_modules/lodash-es/min.js +29 -0
- package/custom/node_modules/lodash-es/minBy.js +34 -0
- package/custom/node_modules/lodash-es/mixin.js +74 -0
- package/custom/node_modules/lodash-es/multiply.js +22 -0
- package/custom/node_modules/lodash-es/negate.js +40 -0
- package/custom/node_modules/lodash-es/next.js +35 -0
- package/custom/node_modules/lodash-es/noop.js +17 -0
- package/custom/node_modules/lodash-es/now.js +23 -0
- package/custom/node_modules/lodash-es/nth.js +29 -0
- package/custom/node_modules/lodash-es/nthArg.js +32 -0
- package/custom/node_modules/lodash-es/number.default.js +7 -0
- package/custom/node_modules/lodash-es/number.js +4 -0
- package/custom/node_modules/lodash-es/object.default.js +60 -0
- package/custom/node_modules/lodash-es/object.js +48 -0
- package/custom/node_modules/lodash-es/omit.js +57 -0
- package/custom/node_modules/lodash-es/omitBy.js +29 -0
- package/custom/node_modules/lodash-es/once.js +25 -0
- package/custom/node_modules/lodash-es/orderBy.js +47 -0
- package/custom/node_modules/lodash-es/over.js +24 -0
- package/custom/node_modules/lodash-es/overArgs.js +61 -0
- package/custom/node_modules/lodash-es/overEvery.js +34 -0
- package/custom/node_modules/lodash-es/overSome.js +37 -0
- package/custom/node_modules/lodash-es/package.json +21 -0
- package/custom/node_modules/lodash-es/pad.js +49 -0
- package/custom/node_modules/lodash-es/padEnd.js +39 -0
- package/custom/node_modules/lodash-es/padStart.js +39 -0
- package/custom/node_modules/lodash-es/parseInt.js +43 -0
- package/custom/node_modules/lodash-es/partial.js +50 -0
- package/custom/node_modules/lodash-es/partialRight.js +49 -0
- package/custom/node_modules/lodash-es/partition.js +43 -0
- package/custom/node_modules/lodash-es/pick.js +25 -0
- package/custom/node_modules/lodash-es/pickBy.js +37 -0
- package/custom/node_modules/lodash-es/plant.js +48 -0
- package/custom/node_modules/lodash-es/property.js +32 -0
- package/custom/node_modules/lodash-es/propertyOf.js +30 -0
- package/custom/node_modules/lodash-es/pull.js +29 -0
- package/custom/node_modules/lodash-es/pullAll.js +29 -0
- package/custom/node_modules/lodash-es/pullAllBy.js +33 -0
- package/custom/node_modules/lodash-es/pullAllWith.js +32 -0
- package/custom/node_modules/lodash-es/pullAt.js +43 -0
- package/custom/node_modules/lodash-es/random.js +82 -0
- package/custom/node_modules/lodash-es/range.js +46 -0
- package/custom/node_modules/lodash-es/rangeRight.js +41 -0
- package/custom/node_modules/lodash-es/rearg.js +33 -0
- package/custom/node_modules/lodash-es/reduce.js +51 -0
- package/custom/node_modules/lodash-es/reduceRight.js +36 -0
- package/custom/node_modules/lodash-es/reject.js +46 -0
- package/custom/node_modules/lodash-es/release.md +48 -0
- package/custom/node_modules/lodash-es/remove.js +53 -0
- package/custom/node_modules/lodash-es/repeat.js +37 -0
- package/custom/node_modules/lodash-es/replace.js +29 -0
- package/custom/node_modules/lodash-es/rest.js +40 -0
- package/custom/node_modules/lodash-es/result.js +56 -0
- package/custom/node_modules/lodash-es/reverse.js +34 -0
- package/custom/node_modules/lodash-es/round.js +26 -0
- package/custom/node_modules/lodash-es/sample.js +24 -0
- package/custom/node_modules/lodash-es/sampleSize.js +37 -0
- package/custom/node_modules/lodash-es/seq.default.js +20 -0
- package/custom/node_modules/lodash-es/seq.js +15 -0
- package/custom/node_modules/lodash-es/set.js +35 -0
- package/custom/node_modules/lodash-es/setWith.js +32 -0
- package/custom/node_modules/lodash-es/shuffle.js +25 -0
- package/custom/node_modules/lodash-es/size.js +46 -0
- package/custom/node_modules/lodash-es/slice.js +37 -0
- package/custom/node_modules/lodash-es/snakeCase.js +28 -0
- package/custom/node_modules/lodash-es/some.js +51 -0
- package/custom/node_modules/lodash-es/sortBy.js +48 -0
- package/custom/node_modules/lodash-es/sortedIndex.js +24 -0
- package/custom/node_modules/lodash-es/sortedIndexBy.js +33 -0
- package/custom/node_modules/lodash-es/sortedIndexOf.js +31 -0
- package/custom/node_modules/lodash-es/sortedLastIndex.js +25 -0
- package/custom/node_modules/lodash-es/sortedLastIndexBy.js +33 -0
- package/custom/node_modules/lodash-es/sortedLastIndexOf.js +31 -0
- package/custom/node_modules/lodash-es/sortedUniq.js +24 -0
- package/custom/node_modules/lodash-es/sortedUniqBy.js +26 -0
- package/custom/node_modules/lodash-es/split.js +52 -0
- package/custom/node_modules/lodash-es/spread.js +63 -0
- package/custom/node_modules/lodash-es/startCase.js +29 -0
- package/custom/node_modules/lodash-es/startsWith.js +39 -0
- package/custom/node_modules/lodash-es/string.default.js +41 -0
- package/custom/node_modules/lodash-es/string.js +32 -0
- package/custom/node_modules/lodash-es/stubArray.js +23 -0
- package/custom/node_modules/lodash-es/stubFalse.js +18 -0
- package/custom/node_modules/lodash-es/stubObject.js +23 -0
- package/custom/node_modules/lodash-es/stubString.js +18 -0
- package/custom/node_modules/lodash-es/stubTrue.js +18 -0
- package/custom/node_modules/lodash-es/subtract.js +22 -0
- package/custom/node_modules/lodash-es/sum.js +24 -0
- package/custom/node_modules/lodash-es/sumBy.js +33 -0
- package/custom/node_modules/lodash-es/tail.js +22 -0
- package/custom/node_modules/lodash-es/take.js +37 -0
- package/custom/node_modules/lodash-es/takeRight.js +39 -0
- package/custom/node_modules/lodash-es/takeRightWhile.js +45 -0
- package/custom/node_modules/lodash-es/takeWhile.js +45 -0
- package/custom/node_modules/lodash-es/tap.js +29 -0
- package/custom/node_modules/lodash-es/template.js +272 -0
- package/custom/node_modules/lodash-es/templateSettings.js +67 -0
- package/custom/node_modules/lodash-es/throttle.js +69 -0
- package/custom/node_modules/lodash-es/thru.js +28 -0
- package/custom/node_modules/lodash-es/times.js +51 -0
- package/custom/node_modules/lodash-es/toArray.js +58 -0
- package/custom/node_modules/lodash-es/toFinite.js +42 -0
- package/custom/node_modules/lodash-es/toInteger.js +36 -0
- package/custom/node_modules/lodash-es/toIterator.js +23 -0
- package/custom/node_modules/lodash-es/toJSON.js +1 -0
- package/custom/node_modules/lodash-es/toLength.js +38 -0
- package/custom/node_modules/lodash-es/toLower.js +28 -0
- package/custom/node_modules/lodash-es/toNumber.js +64 -0
- package/custom/node_modules/lodash-es/toPairs.js +30 -0
- package/custom/node_modules/lodash-es/toPairsIn.js +30 -0
- package/custom/node_modules/lodash-es/toPath.js +33 -0
- package/custom/node_modules/lodash-es/toPlainObject.js +32 -0
- package/custom/node_modules/lodash-es/toSafeInteger.js +37 -0
- package/custom/node_modules/lodash-es/toString.js +28 -0
- package/custom/node_modules/lodash-es/toUpper.js +28 -0
- package/custom/node_modules/lodash-es/transform.js +65 -0
- package/custom/node_modules/lodash-es/trim.js +47 -0
- package/custom/node_modules/lodash-es/trimEnd.js +41 -0
- package/custom/node_modules/lodash-es/trimStart.js +43 -0
- package/custom/node_modules/lodash-es/truncate.js +111 -0
- package/custom/node_modules/lodash-es/unary.js +22 -0
- package/custom/node_modules/lodash-es/unescape.js +34 -0
- package/custom/node_modules/lodash-es/union.js +26 -0
- package/custom/node_modules/lodash-es/unionBy.js +39 -0
- package/custom/node_modules/lodash-es/unionWith.js +34 -0
- package/custom/node_modules/lodash-es/uniq.js +25 -0
- package/custom/node_modules/lodash-es/uniqBy.js +31 -0
- package/custom/node_modules/lodash-es/uniqWith.js +28 -0
- package/custom/node_modules/lodash-es/uniqueId.js +28 -0
- package/custom/node_modules/lodash-es/unset.js +34 -0
- package/custom/node_modules/lodash-es/unzip.js +45 -0
- package/custom/node_modules/lodash-es/unzipWith.js +39 -0
- package/custom/node_modules/lodash-es/update.js +35 -0
- package/custom/node_modules/lodash-es/updateWith.js +33 -0
- package/custom/node_modules/lodash-es/upperCase.js +27 -0
- package/custom/node_modules/lodash-es/upperFirst.js +22 -0
- package/custom/node_modules/lodash-es/util.default.js +42 -0
- package/custom/node_modules/lodash-es/util.js +33 -0
- package/custom/node_modules/lodash-es/value.js +1 -0
- package/custom/node_modules/lodash-es/valueOf.js +1 -0
- package/custom/node_modules/lodash-es/values.js +34 -0
- package/custom/node_modules/lodash-es/valuesIn.js +32 -0
- package/custom/node_modules/lodash-es/without.js +31 -0
- package/custom/node_modules/lodash-es/words.js +35 -0
- package/custom/node_modules/lodash-es/wrap.js +30 -0
- package/custom/node_modules/lodash-es/wrapperAt.js +48 -0
- package/custom/node_modules/lodash-es/wrapperChain.js +34 -0
- package/custom/node_modules/lodash-es/wrapperLodash.js +147 -0
- package/custom/node_modules/lodash-es/wrapperReverse.js +44 -0
- package/custom/node_modules/lodash-es/wrapperValue.js +21 -0
- package/custom/node_modules/lodash-es/xor.js +28 -0
- package/custom/node_modules/lodash-es/xorBy.js +39 -0
- package/custom/node_modules/lodash-es/xorWith.js +34 -0
- package/custom/node_modules/lodash-es/zip.js +22 -0
- package/custom/node_modules/lodash-es/zipObject.js +24 -0
- package/custom/node_modules/lodash-es/zipObjectDeep.js +23 -0
- package/custom/node_modules/lodash-es/zipWith.js +32 -0
- package/custom/node_modules/lodash.clonedeep/LICENSE +47 -0
- package/custom/node_modules/lodash.clonedeep/README.md +18 -0
- package/custom/node_modules/lodash.clonedeep/index.js +1748 -0
- package/custom/node_modules/lodash.clonedeep/package.json +17 -0
- package/custom/node_modules/lodash.isequal/LICENSE +47 -0
- package/custom/node_modules/lodash.isequal/README.md +18 -0
- package/custom/node_modules/lodash.isequal/index.js +1848 -0
- package/custom/node_modules/lodash.isequal/package.json +16 -0
- package/custom/node_modules/parchment/LICENSE +30 -0
- package/custom/node_modules/parchment/README.md +271 -0
- package/custom/node_modules/parchment/dist/parchment.d.ts +453 -0
- package/custom/node_modules/parchment/dist/parchment.js +847 -0
- package/custom/node_modules/parchment/dist/parchment.js.map +1 -0
- package/custom/node_modules/parchment/dist/parchment.umd.cjs +2 -0
- package/custom/node_modules/parchment/dist/parchment.umd.cjs.map +1 -0
- package/custom/node_modules/parchment/package.json +53 -0
- package/custom/node_modules/parchment/src/attributor/attributor.ts +62 -0
- package/custom/node_modules/parchment/src/attributor/class.ts +43 -0
- package/custom/node_modules/parchment/src/attributor/store.ts +79 -0
- package/custom/node_modules/parchment/src/attributor/style.ts +44 -0
- package/custom/node_modules/parchment/src/blot/abstract/blot.ts +128 -0
- package/custom/node_modules/parchment/src/blot/abstract/container.ts +48 -0
- package/custom/node_modules/parchment/src/blot/abstract/leaf.ts +57 -0
- package/custom/node_modules/parchment/src/blot/abstract/parent.ts +400 -0
- package/custom/node_modules/parchment/src/blot/abstract/shadow.ts +188 -0
- package/custom/node_modules/parchment/src/blot/block.ts +123 -0
- package/custom/node_modules/parchment/src/blot/embed.ts +34 -0
- package/custom/node_modules/parchment/src/blot/inline.ts +159 -0
- package/custom/node_modules/parchment/src/blot/scroll.ts +216 -0
- package/custom/node_modules/parchment/src/blot/text.ts +100 -0
- package/custom/node_modules/parchment/src/collection/linked-list.ts +201 -0
- package/custom/node_modules/parchment/src/collection/linked-node.ts +8 -0
- package/custom/node_modules/parchment/src/error.ts +12 -0
- package/custom/node_modules/parchment/src/parchment.ts +48 -0
- package/custom/node_modules/parchment/src/registry.ts +155 -0
- package/custom/node_modules/parchment/src/scope.ts +18 -0
- package/custom/node_modules/parchment/tsconfig.json +16 -0
- package/custom/node_modules/quill/LICENSE +31 -0
- package/custom/node_modules/quill/README.md +104 -0
- package/custom/node_modules/quill/assets/base.styl +309 -0
- package/custom/node_modules/quill/assets/bubble/toolbar.styl +14 -0
- package/custom/node_modules/quill/assets/bubble/tooltip.styl +49 -0
- package/custom/node_modules/quill/assets/bubble.styl +45 -0
- package/custom/node_modules/quill/assets/core.styl +215 -0
- package/custom/node_modules/quill/assets/favicon.png +0 -0
- package/custom/node_modules/quill/assets/icons/align-center.svg +5 -0
- package/custom/node_modules/quill/assets/icons/align-justify.svg +5 -0
- package/custom/node_modules/quill/assets/icons/align-left.svg +5 -0
- package/custom/node_modules/quill/assets/icons/align-right.svg +5 -0
- package/custom/node_modules/quill/assets/icons/attachment.svg +3 -0
- package/custom/node_modules/quill/assets/icons/audio.svg +5 -0
- package/custom/node_modules/quill/assets/icons/authorship.svg +5 -0
- package/custom/node_modules/quill/assets/icons/background.svg +52 -0
- package/custom/node_modules/quill/assets/icons/blockquote.svg +6 -0
- package/custom/node_modules/quill/assets/icons/bold.svg +4 -0
- package/custom/node_modules/quill/assets/icons/clean.svg +7 -0
- package/custom/node_modules/quill/assets/icons/code.svg +5 -0
- package/custom/node_modules/quill/assets/icons/color.svg +5 -0
- package/custom/node_modules/quill/assets/icons/comment.svg +3 -0
- package/custom/node_modules/quill/assets/icons/direction-ltr.svg +7 -0
- package/custom/node_modules/quill/assets/icons/direction-rtl.svg +7 -0
- package/custom/node_modules/quill/assets/icons/dropdown.svg +4 -0
- package/custom/node_modules/quill/assets/icons/embed.svg +3 -0
- package/custom/node_modules/quill/assets/icons/emoji.svg +6 -0
- package/custom/node_modules/quill/assets/icons/float-center.svg +5 -0
- package/custom/node_modules/quill/assets/icons/float-full.svg +5 -0
- package/custom/node_modules/quill/assets/icons/float-left.svg +7 -0
- package/custom/node_modules/quill/assets/icons/float-right.svg +7 -0
- package/custom/node_modules/quill/assets/icons/font.svg +5 -0
- package/custom/node_modules/quill/assets/icons/formula.svg +5 -0
- package/custom/node_modules/quill/assets/icons/hashtag.svg +6 -0
- package/custom/node_modules/quill/assets/icons/header-2.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-3.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-4.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-5.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header-6.svg +3 -0
- package/custom/node_modules/quill/assets/icons/header.svg +3 -0
- package/custom/node_modules/quill/assets/icons/horizontal-rule.svg +4 -0
- package/custom/node_modules/quill/assets/icons/image.svg +5 -0
- package/custom/node_modules/quill/assets/icons/indent.svg +6 -0
- package/custom/node_modules/quill/assets/icons/italic.svg +5 -0
- package/custom/node_modules/quill/assets/icons/link.svg +5 -0
- package/custom/node_modules/quill/assets/icons/list-bullet.svg +8 -0
- package/custom/node_modules/quill/assets/icons/list-check.svg +8 -0
- package/custom/node_modules/quill/assets/icons/list-ordered.svg +9 -0
- package/custom/node_modules/quill/assets/icons/map.svg +5 -0
- package/custom/node_modules/quill/assets/icons/mention.svg +4 -0
- package/custom/node_modules/quill/assets/icons/more.svg +3 -0
- package/custom/node_modules/quill/assets/icons/outdent.svg +6 -0
- package/custom/node_modules/quill/assets/icons/redo.svg +4 -0
- package/custom/node_modules/quill/assets/icons/size-decrease.svg +5 -0
- package/custom/node_modules/quill/assets/icons/size-increase.svg +6 -0
- package/custom/node_modules/quill/assets/icons/size.svg +6 -0
- package/custom/node_modules/quill/assets/icons/spacing.svg +9 -0
- package/custom/node_modules/quill/assets/icons/speech.svg +6 -0
- package/custom/node_modules/quill/assets/icons/strike.svg +5 -0
- package/custom/node_modules/quill/assets/icons/subscript.svg +4 -0
- package/custom/node_modules/quill/assets/icons/superscript.svg +4 -0
- package/custom/node_modules/quill/assets/icons/table-border-all.svg +5 -0
- package/custom/node_modules/quill/assets/icons/table-border-bottom.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-border-left.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-border-none.svg +25 -0
- package/custom/node_modules/quill/assets/icons/table-border-outside.svg +35 -0
- package/custom/node_modules/quill/assets/icons/table-border-right.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-border-top.svg +28 -0
- package/custom/node_modules/quill/assets/icons/table-delete-cells.svg +13 -0
- package/custom/node_modules/quill/assets/icons/table-delete-columns.svg +8 -0
- package/custom/node_modules/quill/assets/icons/table-delete-rows.svg +9 -0
- package/custom/node_modules/quill/assets/icons/table-insert-cells.svg +13 -0
- package/custom/node_modules/quill/assets/icons/table-insert-columns.svg +8 -0
- package/custom/node_modules/quill/assets/icons/table-insert-rows.svg +9 -0
- package/custom/node_modules/quill/assets/icons/table-merge-cells.svg +4 -0
- package/custom/node_modules/quill/assets/icons/table-unmerge-cells.svg +7 -0
- package/custom/node_modules/quill/assets/icons/table.svg +11 -0
- package/custom/node_modules/quill/assets/icons/underline.svg +4 -0
- package/custom/node_modules/quill/assets/icons/undo.svg +4 -0
- package/custom/node_modules/quill/assets/icons/video.svg +14 -0
- package/custom/node_modules/quill/assets/snow/toolbar.styl +26 -0
- package/custom/node_modules/quill/assets/snow/tooltip.styl +53 -0
- package/custom/node_modules/quill/assets/snow.styl +18 -0
- package/custom/node_modules/quill/blots/block.d.ts +34 -0
- package/custom/node_modules/quill/blots/block.js +182 -0
- package/custom/node_modules/quill/blots/block.js.map +1 -0
- package/custom/node_modules/quill/blots/break.d.ts +8 -0
- package/custom/node_modules/quill/blots/break.js +21 -0
- package/custom/node_modules/quill/blots/break.js.map +1 -0
- package/custom/node_modules/quill/blots/container.d.ts +4 -0
- package/custom/node_modules/quill/blots/container.js +4 -0
- package/custom/node_modules/quill/blots/container.js.map +1 -0
- package/custom/node_modules/quill/blots/cursor.d.ts +26 -0
- package/custom/node_modules/quill/blots/cursor.js +170 -0
- package/custom/node_modules/quill/blots/cursor.js.map +1 -0
- package/custom/node_modules/quill/blots/embed.d.ts +18 -0
- package/custom/node_modules/quill/blots/embed.js +72 -0
- package/custom/node_modules/quill/blots/embed.js.map +1 -0
- package/custom/node_modules/quill/blots/inline.d.ts +12 -0
- package/custom/node_modules/quill/blots/inline.js +48 -0
- package/custom/node_modules/quill/blots/inline.js.map +1 -0
- package/custom/node_modules/quill/blots/scroll.d.ts +49 -0
- package/custom/node_modules/quill/blots/scroll.js +349 -0
- package/custom/node_modules/quill/blots/scroll.js.map +1 -0
- package/custom/node_modules/quill/blots/text.d.ts +5 -0
- package/custom/node_modules/quill/blots/text.js +17 -0
- package/custom/node_modules/quill/blots/text.js.map +1 -0
- package/custom/node_modules/quill/core/composition.d.ts +12 -0
- package/custom/node_modules/quill/core/composition.js +44 -0
- package/custom/node_modules/quill/core/composition.js.map +1 -0
- package/custom/node_modules/quill/core/editor.d.ts +28 -0
- package/custom/node_modules/quill/core/editor.js +403 -0
- package/custom/node_modules/quill/core/editor.js.map +1 -0
- package/custom/node_modules/quill/core/emitter.d.ts +33 -0
- package/custom/node_modules/quill/core/emitter.js +78 -0
- package/custom/node_modules/quill/core/emitter.js.map +1 -0
- package/custom/node_modules/quill/core/instances.d.ts +3 -0
- package/custom/node_modules/quill/core/instances.js +2 -0
- package/custom/node_modules/quill/core/instances.js.map +1 -0
- package/custom/node_modules/quill/core/logger.d.ts +7 -0
- package/custom/node_modules/quill/core/logger.js +24 -0
- package/custom/node_modules/quill/core/logger.js.map +1 -0
- package/custom/node_modules/quill/core/module.d.ts +8 -0
- package/custom/node_modules/quill/core/module.js +10 -0
- package/custom/node_modules/quill/core/module.js.map +1 -0
- package/custom/node_modules/quill/core/quill.d.ts +218 -0
- package/custom/node_modules/quill/core/quill.js +628 -0
- package/custom/node_modules/quill/core/quill.js.map +1 -0
- package/custom/node_modules/quill/core/selection.d.ts +74 -0
- package/custom/node_modules/quill/core/selection.js +374 -0
- package/custom/node_modules/quill/core/selection.js.map +1 -0
- package/custom/node_modules/quill/core/theme.d.ts +32 -0
- package/custom/node_modules/quill/core/theme.js +28 -0
- package/custom/node_modules/quill/core/theme.js.map +1 -0
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js +29 -0
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js.map +1 -0
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.d.ts +8 -0
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.js +75 -0
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.js.map +1 -0
- package/custom/node_modules/quill/core.d.ts +7 -0
- package/custom/node_modules/quill/core.js +37 -0
- package/custom/node_modules/quill/core.js.map +1 -0
- package/custom/node_modules/quill/dist/quill.bubble.css +10 -0
- package/custom/node_modules/quill/dist/quill.bubble.css.map +1 -0
- package/custom/node_modules/quill/dist/quill.core.css +10 -0
- package/custom/node_modules/quill/dist/quill.core.css.map +1 -0
- package/custom/node_modules/quill/dist/quill.core.js +3 -0
- package/custom/node_modules/quill/dist/quill.core.js.LICENSE.txt +7 -0
- package/custom/node_modules/quill/dist/quill.core.js.map +1 -0
- package/custom/node_modules/quill/dist/quill.js +3 -0
- package/custom/node_modules/quill/dist/quill.js.LICENSE.txt +7 -0
- package/custom/node_modules/quill/dist/quill.js.map +1 -0
- package/custom/node_modules/quill/dist/quill.snow.css +10 -0
- package/custom/node_modules/quill/dist/quill.snow.css.map +1 -0
- package/custom/node_modules/quill/formats/align.d.ts +5 -0
- package/custom/node_modules/quill/formats/align.js +10 -0
- package/custom/node_modules/quill/formats/align.js.map +1 -0
- package/custom/node_modules/quill/formats/background.d.ts +5 -0
- package/custom/node_modules/quill/formats/background.js +10 -0
- package/custom/node_modules/quill/formats/background.js.map +1 -0
- package/custom/node_modules/quill/formats/blockquote.d.ts +6 -0
- package/custom/node_modules/quill/formats/blockquote.js +7 -0
- package/custom/node_modules/quill/formats/blockquote.js.map +1 -0
- package/custom/node_modules/quill/formats/bold.d.ts +11 -0
- package/custom/node_modules/quill/formats/bold.js +19 -0
- package/custom/node_modules/quill/formats/bold.js.map +1 -0
- package/custom/node_modules/quill/formats/code.d.ts +15 -0
- package/custom/node_modules/quill/formats/code.js +44 -0
- package/custom/node_modules/quill/formats/code.js.map +1 -0
- package/custom/node_modules/quill/formats/color.d.ts +7 -0
- package/custom/node_modules/quill/formats/color.js +18 -0
- package/custom/node_modules/quill/formats/color.js.map +1 -0
- package/custom/node_modules/quill/formats/direction.d.ts +5 -0
- package/custom/node_modules/quill/formats/direction.js +10 -0
- package/custom/node_modules/quill/formats/direction.js.map +1 -0
- package/custom/node_modules/quill/formats/font.d.ts +7 -0
- package/custom/node_modules/quill/formats/font.js +14 -0
- package/custom/node_modules/quill/formats/font.js.map +1 -0
- package/custom/node_modules/quill/formats/formula.d.ts +10 -0
- package/custom/node_modules/quill/formats/formula.js +33 -0
- package/custom/node_modules/quill/formats/formula.js.map +1 -0
- package/custom/node_modules/quill/formats/header.d.ts +7 -0
- package/custom/node_modules/quill/formats/header.js +10 -0
- package/custom/node_modules/quill/formats/header.js.map +1 -0
- package/custom/node_modules/quill/formats/image.d.ts +13 -0
- package/custom/node_modules/quill/formats/image.js +44 -0
- package/custom/node_modules/quill/formats/image.js.map +1 -0
- package/custom/node_modules/quill/formats/indent.d.ts +8 -0
- package/custom/node_modules/quill/formats/indent.js +30 -0
- package/custom/node_modules/quill/formats/indent.js.map +1 -0
- package/custom/node_modules/quill/formats/italic.d.ts +6 -0
- package/custom/node_modules/quill/formats/italic.js +7 -0
- package/custom/node_modules/quill/formats/italic.js.map +1 -0
- package/custom/node_modules/quill/formats/link.d.ts +13 -0
- package/custom/node_modules/quill/formats/link.js +36 -0
- package/custom/node_modules/quill/formats/link.js.map +1 -0
- package/custom/node_modules/quill/formats/list.d.ts +13 -0
- package/custom/node_modules/quill/formats/list.js +50 -0
- package/custom/node_modules/quill/formats/list.js.map +1 -0
- package/custom/node_modules/quill/formats/script.d.ts +8 -0
- package/custom/node_modules/quill/formats/script.js +21 -0
- package/custom/node_modules/quill/formats/script.js.map +1 -0
- package/custom/node_modules/quill/formats/size.d.ts +4 -0
- package/custom/node_modules/quill/formats/size.js +11 -0
- package/custom/node_modules/quill/formats/size.js.map +1 -0
- package/custom/node_modules/quill/formats/strike.d.ts +6 -0
- package/custom/node_modules/quill/formats/strike.js +7 -0
- package/custom/node_modules/quill/formats/strike.js.map +1 -0
- package/custom/node_modules/quill/formats/table.d.ts +45 -0
- package/custom/node_modules/quill/formats/table.js +176 -0
- package/custom/node_modules/quill/formats/table.js.map +1 -0
- package/custom/node_modules/quill/formats/underline.d.ts +6 -0
- package/custom/node_modules/quill/formats/underline.js +7 -0
- package/custom/node_modules/quill/formats/underline.js.map +1 -0
- package/custom/node_modules/quill/formats/video.d.ts +14 -0
- package/custom/node_modules/quill/formats/video.js +48 -0
- package/custom/node_modules/quill/formats/video.js.map +1 -0
- package/custom/node_modules/quill/modules/clipboard.d.ts +43 -0
- package/custom/node_modules/quill/modules/clipboard.js +475 -0
- package/custom/node_modules/quill/modules/clipboard.js.map +1 -0
- package/custom/node_modules/quill/modules/history.d.ts +36 -0
- package/custom/node_modules/quill/modules/history.js +178 -0
- package/custom/node_modules/quill/modules/history.js.map +1 -0
- package/custom/node_modules/quill/modules/input.d.ts +10 -0
- package/custom/node_modules/quill/modules/input.js +83 -0
- package/custom/node_modules/quill/modules/input.js.map +1 -0
- package/custom/node_modules/quill/modules/keyboard.d.ts +58 -0
- package/custom/node_modules/quill/modules/keyboard.js +713 -0
- package/custom/node_modules/quill/modules/keyboard.js.map +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js +12 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js.map +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js +24 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js +87 -0
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js.map +1 -0
- package/custom/node_modules/quill/modules/syntax.d.ts +50 -0
- package/custom/node_modules/quill/modules/syntax.js +332 -0
- package/custom/node_modules/quill/modules/syntax.js.map +1 -0
- package/custom/node_modules/quill/modules/table.d.ts +20 -0
- package/custom/node_modules/quill/modules/table.js +125 -0
- package/custom/node_modules/quill/modules/table.js.map +1 -0
- package/custom/node_modules/quill/modules/tableEmbed.d.ts +27 -0
- package/custom/node_modules/quill/modules/tableEmbed.js +209 -0
- package/custom/node_modules/quill/modules/tableEmbed.js.map +1 -0
- package/custom/node_modules/quill/modules/toolbar.d.ts +24 -0
- package/custom/node_modules/quill/modules/toolbar.js +265 -0
- package/custom/node_modules/quill/modules/toolbar.js.map +1 -0
- package/custom/node_modules/quill/modules/uiNode.d.ts +19 -0
- package/custom/node_modules/quill/modules/uiNode.js +95 -0
- package/custom/node_modules/quill/modules/uiNode.js.map +1 -0
- package/custom/node_modules/quill/modules/uploader.d.ts +15 -0
- package/custom/node_modules/quill/modules/uploader.js +69 -0
- package/custom/node_modules/quill/modules/uploader.js.map +1 -0
- package/custom/node_modules/quill/package.json +100 -0
- package/custom/node_modules/quill/quill.d.ts +6 -0
- package/custom/node_modules/quill/quill.js +83 -0
- package/custom/node_modules/quill/quill.js.map +1 -0
- package/custom/node_modules/quill/themes/base.d.ts +35 -0
- package/custom/node_modules/quill/themes/base.js +257 -0
- package/custom/node_modules/quill/themes/base.js.map +1 -0
- package/custom/node_modules/quill/themes/bubble.d.ts +18 -0
- package/custom/node_modules/quill/themes/bubble.js +114 -0
- package/custom/node_modules/quill/themes/bubble.js.map +1 -0
- package/custom/node_modules/quill/themes/snow.d.ts +9 -0
- package/custom/node_modules/quill/themes/snow.js +122 -0
- package/custom/node_modules/quill/themes/snow.js.map +1 -0
- package/custom/node_modules/quill/types.d.js +2 -0
- package/custom/node_modules/quill/types.d.js.map +1 -0
- package/custom/node_modules/quill/ui/color-picker.d.ts +7 -0
- package/custom/node_modules/quill/ui/color-picker.js +30 -0
- package/custom/node_modules/quill/ui/color-picker.js.map +1 -0
- package/custom/node_modules/quill/ui/icon-picker.d.ts +7 -0
- package/custom/node_modules/quill/ui/icon-picker.js +22 -0
- package/custom/node_modules/quill/ui/icon-picker.js.map +1 -0
- package/custom/node_modules/quill/ui/icons.d.ts +49 -0
- package/custom/node_modules/quill/ui/icons.js +82 -0
- package/custom/node_modules/quill/ui/icons.js.map +1 -0
- package/custom/node_modules/quill/ui/picker.d.ts +16 -0
- package/custom/node_modules/quill/ui/picker.js +171 -0
- package/custom/node_modules/quill/ui/picker.js.map +1 -0
- package/custom/node_modules/quill/ui/tooltip.d.ts +12 -0
- package/custom/node_modules/quill/ui/tooltip.js +56 -0
- package/custom/node_modules/quill/ui/tooltip.js.map +1 -0
- package/custom/node_modules/quill-delta/LICENSE +14 -0
- package/custom/node_modules/quill-delta/README.md +672 -0
- package/custom/node_modules/quill-delta/dist/AttributeMap.d.ts +10 -0
- package/custom/node_modules/quill-delta/dist/AttributeMap.js +86 -0
- package/custom/node_modules/quill-delta/dist/AttributeMap.js.map +1 -0
- package/custom/node_modules/quill-delta/dist/Delta.d.ts +45 -0
- package/custom/node_modules/quill-delta/dist/Delta.js +478 -0
- package/custom/node_modules/quill-delta/dist/Delta.js.map +1 -0
- package/custom/node_modules/quill-delta/dist/Op.d.ts +11 -0
- package/custom/node_modules/quill-delta/dist/Op.js +22 -0
- package/custom/node_modules/quill-delta/dist/Op.js.map +1 -0
- package/custom/node_modules/quill-delta/dist/OpIterator.d.ts +13 -0
- package/custom/node_modules/quill-delta/dist/OpIterator.js +106 -0
- package/custom/node_modules/quill-delta/dist/OpIterator.js.map +1 -0
- package/custom/node_modules/quill-delta/package.json +77 -0
- package/custom/node_modules/quill-delta/src/AttributeMap.ts +101 -0
- package/custom/node_modules/quill-delta/src/Delta.ts +573 -0
- package/custom/node_modules/quill-delta/src/Op.ts +26 -0
- package/custom/node_modules/quill-delta/src/OpIterator.ts +106 -0
- package/custom/node_modules/quill-delta/tsconfig.json +15 -0
- package/custom/quillEditor.vue +2 -2
- package/dist/custom/quillEditor.vue +2 -2
- package/dist/index.js +7 -3
- package/index.ts +8 -5
- package/package.json +1 -1
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import { cloneDeep, isEqual } from 'lodash-es';
|
|
2
|
+
import Delta, { AttributeMap } from 'quill-delta';
|
|
3
|
+
import { EmbedBlot, Scope, TextBlot } from 'parchment';
|
|
4
|
+
import Quill from '../core/quill.js';
|
|
5
|
+
import logger from '../core/logger.js';
|
|
6
|
+
import Module from '../core/module.js';
|
|
7
|
+
const debug = logger('quill:keyboard');
|
|
8
|
+
const SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';
|
|
9
|
+
class Keyboard extends Module {
|
|
10
|
+
static match(evt, binding) {
|
|
11
|
+
if (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'].some(key => {
|
|
12
|
+
return !!binding[key] !== evt[key] && binding[key] !== null;
|
|
13
|
+
})) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
return binding.key === evt.key || binding.key === evt.which;
|
|
17
|
+
}
|
|
18
|
+
constructor(quill, options) {
|
|
19
|
+
super(quill, options);
|
|
20
|
+
this.bindings = {};
|
|
21
|
+
// @ts-expect-error Fix me later
|
|
22
|
+
Object.keys(this.options.bindings).forEach(name => {
|
|
23
|
+
// @ts-expect-error Fix me later
|
|
24
|
+
if (this.options.bindings[name]) {
|
|
25
|
+
// @ts-expect-error Fix me later
|
|
26
|
+
this.addBinding(this.options.bindings[name]);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
this.addBinding({
|
|
30
|
+
key: 'Enter',
|
|
31
|
+
shiftKey: null
|
|
32
|
+
}, this.handleEnter);
|
|
33
|
+
this.addBinding({
|
|
34
|
+
key: 'Enter',
|
|
35
|
+
metaKey: null,
|
|
36
|
+
ctrlKey: null,
|
|
37
|
+
altKey: null
|
|
38
|
+
}, () => {});
|
|
39
|
+
if (/Firefox/i.test(navigator.userAgent)) {
|
|
40
|
+
// Need to handle delete and backspace for Firefox in the general case #1171
|
|
41
|
+
this.addBinding({
|
|
42
|
+
key: 'Backspace'
|
|
43
|
+
}, {
|
|
44
|
+
collapsed: true
|
|
45
|
+
}, this.handleBackspace);
|
|
46
|
+
this.addBinding({
|
|
47
|
+
key: 'Delete'
|
|
48
|
+
}, {
|
|
49
|
+
collapsed: true
|
|
50
|
+
}, this.handleDelete);
|
|
51
|
+
} else {
|
|
52
|
+
this.addBinding({
|
|
53
|
+
key: 'Backspace'
|
|
54
|
+
}, {
|
|
55
|
+
collapsed: true,
|
|
56
|
+
prefix: /^.?$/
|
|
57
|
+
}, this.handleBackspace);
|
|
58
|
+
this.addBinding({
|
|
59
|
+
key: 'Delete'
|
|
60
|
+
}, {
|
|
61
|
+
collapsed: true,
|
|
62
|
+
suffix: /^.?$/
|
|
63
|
+
}, this.handleDelete);
|
|
64
|
+
}
|
|
65
|
+
this.addBinding({
|
|
66
|
+
key: 'Backspace'
|
|
67
|
+
}, {
|
|
68
|
+
collapsed: false
|
|
69
|
+
}, this.handleDeleteRange);
|
|
70
|
+
this.addBinding({
|
|
71
|
+
key: 'Delete'
|
|
72
|
+
}, {
|
|
73
|
+
collapsed: false
|
|
74
|
+
}, this.handleDeleteRange);
|
|
75
|
+
this.addBinding({
|
|
76
|
+
key: 'Backspace',
|
|
77
|
+
altKey: null,
|
|
78
|
+
ctrlKey: null,
|
|
79
|
+
metaKey: null,
|
|
80
|
+
shiftKey: null
|
|
81
|
+
}, {
|
|
82
|
+
collapsed: true,
|
|
83
|
+
offset: 0
|
|
84
|
+
}, this.handleBackspace);
|
|
85
|
+
this.listen();
|
|
86
|
+
}
|
|
87
|
+
addBinding(keyBinding) {
|
|
88
|
+
let context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
89
|
+
let handler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
90
|
+
const binding = normalize(keyBinding);
|
|
91
|
+
if (binding == null) {
|
|
92
|
+
debug.warn('Attempted to add invalid keyboard binding', binding);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (typeof context === 'function') {
|
|
96
|
+
context = {
|
|
97
|
+
handler: context
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
if (typeof handler === 'function') {
|
|
101
|
+
handler = {
|
|
102
|
+
handler
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
const keys = Array.isArray(binding.key) ? binding.key : [binding.key];
|
|
106
|
+
keys.forEach(key => {
|
|
107
|
+
const singleBinding = {
|
|
108
|
+
...binding,
|
|
109
|
+
key,
|
|
110
|
+
...context,
|
|
111
|
+
...handler
|
|
112
|
+
};
|
|
113
|
+
this.bindings[singleBinding.key] = this.bindings[singleBinding.key] || [];
|
|
114
|
+
this.bindings[singleBinding.key].push(singleBinding);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
listen() {
|
|
118
|
+
this.quill.root.addEventListener('keydown', evt => {
|
|
119
|
+
if (evt.defaultPrevented || evt.isComposing) return;
|
|
120
|
+
|
|
121
|
+
// evt.isComposing is false when pressing Enter/Backspace when composing in Safari
|
|
122
|
+
// https://bugs.webkit.org/show_bug.cgi?id=165004
|
|
123
|
+
const isComposing = evt.keyCode === 229 && (evt.key === 'Enter' || evt.key === 'Backspace');
|
|
124
|
+
if (isComposing) return;
|
|
125
|
+
const bindings = (this.bindings[evt.key] || []).concat(this.bindings[evt.which] || []);
|
|
126
|
+
const matches = bindings.filter(binding => Keyboard.match(evt, binding));
|
|
127
|
+
if (matches.length === 0) return;
|
|
128
|
+
// @ts-expect-error
|
|
129
|
+
const blot = Quill.find(evt.target, true);
|
|
130
|
+
if (blot && blot.scroll !== this.quill.scroll) return;
|
|
131
|
+
const range = this.quill.getSelection();
|
|
132
|
+
if (range == null || !this.quill.hasFocus()) return;
|
|
133
|
+
const [line, offset] = this.quill.getLine(range.index);
|
|
134
|
+
const [leafStart, offsetStart] = this.quill.getLeaf(range.index);
|
|
135
|
+
const [leafEnd, offsetEnd] = range.length === 0 ? [leafStart, offsetStart] : this.quill.getLeaf(range.index + range.length);
|
|
136
|
+
const prefixText = leafStart instanceof TextBlot ? leafStart.value().slice(0, offsetStart) : '';
|
|
137
|
+
const suffixText = leafEnd instanceof TextBlot ? leafEnd.value().slice(offsetEnd) : '';
|
|
138
|
+
const curContext = {
|
|
139
|
+
collapsed: range.length === 0,
|
|
140
|
+
// @ts-expect-error Fix me later
|
|
141
|
+
empty: range.length === 0 && line.length() <= 1,
|
|
142
|
+
format: this.quill.getFormat(range),
|
|
143
|
+
line,
|
|
144
|
+
offset,
|
|
145
|
+
prefix: prefixText,
|
|
146
|
+
suffix: suffixText,
|
|
147
|
+
event: evt
|
|
148
|
+
};
|
|
149
|
+
const prevented = matches.some(binding => {
|
|
150
|
+
if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
if (binding.empty != null && binding.empty !== curContext.empty) {
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
if (binding.offset != null && binding.offset !== curContext.offset) {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
if (Array.isArray(binding.format)) {
|
|
160
|
+
// any format is present
|
|
161
|
+
if (binding.format.every(name => curContext.format[name] == null)) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
} else if (typeof binding.format === 'object') {
|
|
165
|
+
// all formats must match
|
|
166
|
+
if (!Object.keys(binding.format).every(name => {
|
|
167
|
+
// @ts-expect-error Fix me later
|
|
168
|
+
if (binding.format[name] === true) return curContext.format[name] != null;
|
|
169
|
+
// @ts-expect-error Fix me later
|
|
170
|
+
if (binding.format[name] === false) return curContext.format[name] == null;
|
|
171
|
+
// @ts-expect-error Fix me later
|
|
172
|
+
return isEqual(binding.format[name], curContext.format[name]);
|
|
173
|
+
})) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) {
|
|
181
|
+
return false;
|
|
182
|
+
}
|
|
183
|
+
// @ts-expect-error Fix me later
|
|
184
|
+
return binding.handler.call(this, range, curContext, binding) !== true;
|
|
185
|
+
});
|
|
186
|
+
if (prevented) {
|
|
187
|
+
evt.preventDefault();
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
handleBackspace(range, context) {
|
|
192
|
+
// Check for astral symbols
|
|
193
|
+
const length = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(context.prefix) ? 2 : 1;
|
|
194
|
+
if (range.index === 0 || this.quill.getLength() <= 1) return;
|
|
195
|
+
let formats = {};
|
|
196
|
+
const [line] = this.quill.getLine(range.index);
|
|
197
|
+
let delta = new Delta().retain(range.index - length).delete(length);
|
|
198
|
+
if (context.offset === 0) {
|
|
199
|
+
// Always deleting newline here, length always 1
|
|
200
|
+
const [prev] = this.quill.getLine(range.index - 1);
|
|
201
|
+
if (prev) {
|
|
202
|
+
const isPrevLineEmpty = prev.statics.blotName === 'block' && prev.length() <= 1;
|
|
203
|
+
if (!isPrevLineEmpty) {
|
|
204
|
+
// @ts-expect-error Fix me later
|
|
205
|
+
const curFormats = line.formats();
|
|
206
|
+
const prevFormats = this.quill.getFormat(range.index - 1, 1);
|
|
207
|
+
formats = AttributeMap.diff(curFormats, prevFormats) || {};
|
|
208
|
+
if (Object.keys(formats).length > 0) {
|
|
209
|
+
// line.length() - 1 targets \n in line, another -1 for newline being deleted
|
|
210
|
+
const formatDelta = new Delta()
|
|
211
|
+
// @ts-expect-error Fix me later
|
|
212
|
+
.retain(range.index + line.length() - 2).retain(1, formats);
|
|
213
|
+
delta = delta.compose(formatDelta);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
219
|
+
this.quill.focus();
|
|
220
|
+
}
|
|
221
|
+
handleDelete(range, context) {
|
|
222
|
+
// Check for astral symbols
|
|
223
|
+
const length = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(context.suffix) ? 2 : 1;
|
|
224
|
+
if (range.index >= this.quill.getLength() - length) return;
|
|
225
|
+
let formats = {};
|
|
226
|
+
const [line] = this.quill.getLine(range.index);
|
|
227
|
+
let delta = new Delta().retain(range.index).delete(length);
|
|
228
|
+
// @ts-expect-error Fix me later
|
|
229
|
+
if (context.offset >= line.length() - 1) {
|
|
230
|
+
const [next] = this.quill.getLine(range.index + 1);
|
|
231
|
+
if (next) {
|
|
232
|
+
// @ts-expect-error Fix me later
|
|
233
|
+
const curFormats = line.formats();
|
|
234
|
+
const nextFormats = this.quill.getFormat(range.index, 1);
|
|
235
|
+
formats = AttributeMap.diff(curFormats, nextFormats) || {};
|
|
236
|
+
if (Object.keys(formats).length > 0) {
|
|
237
|
+
delta = delta.retain(next.length() - 1).retain(1, formats);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
242
|
+
this.quill.focus();
|
|
243
|
+
}
|
|
244
|
+
handleDeleteRange(range) {
|
|
245
|
+
deleteRange({
|
|
246
|
+
range,
|
|
247
|
+
quill: this.quill
|
|
248
|
+
});
|
|
249
|
+
this.quill.focus();
|
|
250
|
+
}
|
|
251
|
+
handleEnter(range, context) {
|
|
252
|
+
const lineFormats = Object.keys(context.format).reduce((formats, format) => {
|
|
253
|
+
if (this.quill.scroll.query(format, Scope.BLOCK) && !Array.isArray(context.format[format])) {
|
|
254
|
+
formats[format] = context.format[format];
|
|
255
|
+
}
|
|
256
|
+
return formats;
|
|
257
|
+
}, {});
|
|
258
|
+
const delta = new Delta().retain(range.index).delete(range.length).insert('\n', lineFormats);
|
|
259
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
260
|
+
this.quill.setSelection(range.index + 1, Quill.sources.SILENT);
|
|
261
|
+
this.quill.focus();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
const defaultOptions = {
|
|
265
|
+
bindings: {
|
|
266
|
+
bold: makeFormatHandler('bold'),
|
|
267
|
+
italic: makeFormatHandler('italic'),
|
|
268
|
+
underline: makeFormatHandler('underline'),
|
|
269
|
+
indent: {
|
|
270
|
+
// highlight tab or tab at beginning of list, indent or blockquote
|
|
271
|
+
key: 'Tab',
|
|
272
|
+
format: ['blockquote', 'indent', 'list'],
|
|
273
|
+
handler(range, context) {
|
|
274
|
+
if (context.collapsed && context.offset !== 0) return true;
|
|
275
|
+
this.quill.format('indent', '+1', Quill.sources.USER);
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
outdent: {
|
|
280
|
+
key: 'Tab',
|
|
281
|
+
shiftKey: true,
|
|
282
|
+
format: ['blockquote', 'indent', 'list'],
|
|
283
|
+
// highlight tab or tab at beginning of list, indent or blockquote
|
|
284
|
+
handler(range, context) {
|
|
285
|
+
if (context.collapsed && context.offset !== 0) return true;
|
|
286
|
+
this.quill.format('indent', '-1', Quill.sources.USER);
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
'outdent backspace': {
|
|
291
|
+
key: 'Backspace',
|
|
292
|
+
collapsed: true,
|
|
293
|
+
shiftKey: null,
|
|
294
|
+
metaKey: null,
|
|
295
|
+
ctrlKey: null,
|
|
296
|
+
altKey: null,
|
|
297
|
+
format: ['indent', 'list'],
|
|
298
|
+
offset: 0,
|
|
299
|
+
handler(range, context) {
|
|
300
|
+
if (context.format.indent != null) {
|
|
301
|
+
this.quill.format('indent', '-1', Quill.sources.USER);
|
|
302
|
+
} else if (context.format.list != null) {
|
|
303
|
+
this.quill.format('list', false, Quill.sources.USER);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
'indent code-block': makeCodeBlockHandler(true),
|
|
308
|
+
'outdent code-block': makeCodeBlockHandler(false),
|
|
309
|
+
'remove tab': {
|
|
310
|
+
key: 'Tab',
|
|
311
|
+
shiftKey: true,
|
|
312
|
+
collapsed: true,
|
|
313
|
+
prefix: /\t$/,
|
|
314
|
+
handler(range) {
|
|
315
|
+
this.quill.deleteText(range.index - 1, 1, Quill.sources.USER);
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
tab: {
|
|
319
|
+
key: 'Tab',
|
|
320
|
+
handler(range, context) {
|
|
321
|
+
if (context.format.table) return true;
|
|
322
|
+
this.quill.history.cutoff();
|
|
323
|
+
const delta = new Delta().retain(range.index).delete(range.length).insert('\t');
|
|
324
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
325
|
+
this.quill.history.cutoff();
|
|
326
|
+
this.quill.setSelection(range.index + 1, Quill.sources.SILENT);
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
'blockquote empty enter': {
|
|
331
|
+
key: 'Enter',
|
|
332
|
+
collapsed: true,
|
|
333
|
+
format: ['blockquote'],
|
|
334
|
+
empty: true,
|
|
335
|
+
handler() {
|
|
336
|
+
this.quill.format('blockquote', false, Quill.sources.USER);
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
'list empty enter': {
|
|
340
|
+
key: 'Enter',
|
|
341
|
+
collapsed: true,
|
|
342
|
+
format: ['list'],
|
|
343
|
+
empty: true,
|
|
344
|
+
handler(range, context) {
|
|
345
|
+
const formats = {
|
|
346
|
+
list: false
|
|
347
|
+
};
|
|
348
|
+
if (context.format.indent) {
|
|
349
|
+
formats.indent = false;
|
|
350
|
+
}
|
|
351
|
+
this.quill.formatLine(range.index, range.length, formats, Quill.sources.USER);
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
'checklist enter': {
|
|
355
|
+
key: 'Enter',
|
|
356
|
+
collapsed: true,
|
|
357
|
+
format: {
|
|
358
|
+
list: 'checked'
|
|
359
|
+
},
|
|
360
|
+
handler(range) {
|
|
361
|
+
const [line, offset] = this.quill.getLine(range.index);
|
|
362
|
+
const formats = {
|
|
363
|
+
// @ts-expect-error Fix me later
|
|
364
|
+
...line.formats(),
|
|
365
|
+
list: 'checked'
|
|
366
|
+
};
|
|
367
|
+
const delta = new Delta().retain(range.index).insert('\n', formats)
|
|
368
|
+
// @ts-expect-error Fix me later
|
|
369
|
+
.retain(line.length() - offset - 1).retain(1, {
|
|
370
|
+
list: 'unchecked'
|
|
371
|
+
});
|
|
372
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
373
|
+
this.quill.setSelection(range.index + 1, Quill.sources.SILENT);
|
|
374
|
+
this.quill.scrollSelectionIntoView();
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
'header enter': {
|
|
378
|
+
key: 'Enter',
|
|
379
|
+
collapsed: true,
|
|
380
|
+
format: ['header'],
|
|
381
|
+
suffix: /^$/,
|
|
382
|
+
handler(range, context) {
|
|
383
|
+
const [line, offset] = this.quill.getLine(range.index);
|
|
384
|
+
const delta = new Delta().retain(range.index).insert('\n', context.format)
|
|
385
|
+
// @ts-expect-error Fix me later
|
|
386
|
+
.retain(line.length() - offset - 1).retain(1, {
|
|
387
|
+
header: null
|
|
388
|
+
});
|
|
389
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
390
|
+
this.quill.setSelection(range.index + 1, Quill.sources.SILENT);
|
|
391
|
+
this.quill.scrollSelectionIntoView();
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
'table backspace': {
|
|
395
|
+
key: 'Backspace',
|
|
396
|
+
format: ['table'],
|
|
397
|
+
collapsed: true,
|
|
398
|
+
offset: 0,
|
|
399
|
+
handler() {}
|
|
400
|
+
},
|
|
401
|
+
'table delete': {
|
|
402
|
+
key: 'Delete',
|
|
403
|
+
format: ['table'],
|
|
404
|
+
collapsed: true,
|
|
405
|
+
suffix: /^$/,
|
|
406
|
+
handler() {}
|
|
407
|
+
},
|
|
408
|
+
'table enter': {
|
|
409
|
+
key: 'Enter',
|
|
410
|
+
shiftKey: null,
|
|
411
|
+
format: ['table'],
|
|
412
|
+
handler(range) {
|
|
413
|
+
const module = this.quill.getModule('table');
|
|
414
|
+
if (module) {
|
|
415
|
+
// @ts-expect-error
|
|
416
|
+
const [table, row, cell, offset] = module.getTable(range);
|
|
417
|
+
const shift = tableSide(table, row, cell, offset);
|
|
418
|
+
if (shift == null) return;
|
|
419
|
+
let index = table.offset();
|
|
420
|
+
if (shift < 0) {
|
|
421
|
+
const delta = new Delta().retain(index).insert('\n');
|
|
422
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
423
|
+
this.quill.setSelection(range.index + 1, range.length, Quill.sources.SILENT);
|
|
424
|
+
} else if (shift > 0) {
|
|
425
|
+
index += table.length();
|
|
426
|
+
const delta = new Delta().retain(index).insert('\n');
|
|
427
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
428
|
+
this.quill.setSelection(index, Quill.sources.USER);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
'table tab': {
|
|
434
|
+
key: 'Tab',
|
|
435
|
+
shiftKey: null,
|
|
436
|
+
format: ['table'],
|
|
437
|
+
handler(range, context) {
|
|
438
|
+
const {
|
|
439
|
+
event,
|
|
440
|
+
line: cell
|
|
441
|
+
} = context;
|
|
442
|
+
const offset = cell.offset(this.quill.scroll);
|
|
443
|
+
if (event.shiftKey) {
|
|
444
|
+
this.quill.setSelection(offset - 1, Quill.sources.USER);
|
|
445
|
+
} else {
|
|
446
|
+
this.quill.setSelection(offset + cell.length(), Quill.sources.USER);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
'list autofill': {
|
|
451
|
+
key: ' ',
|
|
452
|
+
shiftKey: null,
|
|
453
|
+
collapsed: true,
|
|
454
|
+
format: {
|
|
455
|
+
'code-block': false,
|
|
456
|
+
blockquote: false,
|
|
457
|
+
table: false
|
|
458
|
+
},
|
|
459
|
+
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
460
|
+
handler(range, context) {
|
|
461
|
+
if (this.quill.scroll.query('list') == null) return true;
|
|
462
|
+
const {
|
|
463
|
+
length
|
|
464
|
+
} = context.prefix;
|
|
465
|
+
const [line, offset] = this.quill.getLine(range.index);
|
|
466
|
+
if (offset > length) return true;
|
|
467
|
+
let value;
|
|
468
|
+
switch (context.prefix.trim()) {
|
|
469
|
+
case '[]':
|
|
470
|
+
case '[ ]':
|
|
471
|
+
value = 'unchecked';
|
|
472
|
+
break;
|
|
473
|
+
case '[x]':
|
|
474
|
+
value = 'checked';
|
|
475
|
+
break;
|
|
476
|
+
case '-':
|
|
477
|
+
case '*':
|
|
478
|
+
value = 'bullet';
|
|
479
|
+
break;
|
|
480
|
+
default:
|
|
481
|
+
value = 'ordered';
|
|
482
|
+
}
|
|
483
|
+
this.quill.insertText(range.index, ' ', Quill.sources.USER);
|
|
484
|
+
this.quill.history.cutoff();
|
|
485
|
+
const delta = new Delta().retain(range.index - offset).delete(length + 1)
|
|
486
|
+
// @ts-expect-error Fix me later
|
|
487
|
+
.retain(line.length() - 2 - offset).retain(1, {
|
|
488
|
+
list: value
|
|
489
|
+
});
|
|
490
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
491
|
+
this.quill.history.cutoff();
|
|
492
|
+
this.quill.setSelection(range.index - length, Quill.sources.SILENT);
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
'code exit': {
|
|
497
|
+
key: 'Enter',
|
|
498
|
+
collapsed: true,
|
|
499
|
+
format: ['code-block'],
|
|
500
|
+
prefix: /^$/,
|
|
501
|
+
suffix: /^\s*$/,
|
|
502
|
+
handler(range) {
|
|
503
|
+
const [line, offset] = this.quill.getLine(range.index);
|
|
504
|
+
let numLines = 2;
|
|
505
|
+
let cur = line;
|
|
506
|
+
while (cur != null && cur.length() <= 1 && cur.formats()['code-block']) {
|
|
507
|
+
// @ts-expect-error
|
|
508
|
+
cur = cur.prev;
|
|
509
|
+
numLines -= 1;
|
|
510
|
+
// Requisite prev lines are empty
|
|
511
|
+
if (numLines <= 0) {
|
|
512
|
+
const delta = new Delta()
|
|
513
|
+
// @ts-expect-error Fix me later
|
|
514
|
+
.retain(range.index + line.length() - offset - 2).retain(1, {
|
|
515
|
+
'code-block': null
|
|
516
|
+
}).delete(1);
|
|
517
|
+
this.quill.updateContents(delta, Quill.sources.USER);
|
|
518
|
+
this.quill.setSelection(range.index - 1, Quill.sources.SILENT);
|
|
519
|
+
return false;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return true;
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
'embed left': makeEmbedArrowHandler('ArrowLeft', false),
|
|
526
|
+
'embed left shift': makeEmbedArrowHandler('ArrowLeft', true),
|
|
527
|
+
'embed right': makeEmbedArrowHandler('ArrowRight', false),
|
|
528
|
+
'embed right shift': makeEmbedArrowHandler('ArrowRight', true),
|
|
529
|
+
'table down': makeTableArrowHandler(false),
|
|
530
|
+
'table up': makeTableArrowHandler(true)
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
Keyboard.DEFAULTS = defaultOptions;
|
|
534
|
+
function makeCodeBlockHandler(indent) {
|
|
535
|
+
return {
|
|
536
|
+
key: 'Tab',
|
|
537
|
+
shiftKey: !indent,
|
|
538
|
+
format: {
|
|
539
|
+
'code-block': true
|
|
540
|
+
},
|
|
541
|
+
handler(range, _ref) {
|
|
542
|
+
let {
|
|
543
|
+
event
|
|
544
|
+
} = _ref;
|
|
545
|
+
const CodeBlock = this.quill.scroll.query('code-block');
|
|
546
|
+
// @ts-expect-error
|
|
547
|
+
const {
|
|
548
|
+
TAB
|
|
549
|
+
} = CodeBlock;
|
|
550
|
+
if (range.length === 0 && !event.shiftKey) {
|
|
551
|
+
this.quill.insertText(range.index, TAB, Quill.sources.USER);
|
|
552
|
+
this.quill.setSelection(range.index + TAB.length, Quill.sources.SILENT);
|
|
553
|
+
return;
|
|
554
|
+
}
|
|
555
|
+
const lines = range.length === 0 ? this.quill.getLines(range.index, 1) : this.quill.getLines(range);
|
|
556
|
+
let {
|
|
557
|
+
index,
|
|
558
|
+
length
|
|
559
|
+
} = range;
|
|
560
|
+
lines.forEach((line, i) => {
|
|
561
|
+
if (indent) {
|
|
562
|
+
line.insertAt(0, TAB);
|
|
563
|
+
if (i === 0) {
|
|
564
|
+
index += TAB.length;
|
|
565
|
+
} else {
|
|
566
|
+
length += TAB.length;
|
|
567
|
+
}
|
|
568
|
+
// @ts-expect-error Fix me later
|
|
569
|
+
} else if (line.domNode.textContent.startsWith(TAB)) {
|
|
570
|
+
line.deleteAt(0, TAB.length);
|
|
571
|
+
if (i === 0) {
|
|
572
|
+
index -= TAB.length;
|
|
573
|
+
} else {
|
|
574
|
+
length -= TAB.length;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
this.quill.update(Quill.sources.USER);
|
|
579
|
+
this.quill.setSelection(index, length, Quill.sources.SILENT);
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
function makeEmbedArrowHandler(key, shiftKey) {
|
|
584
|
+
const where = key === 'ArrowLeft' ? 'prefix' : 'suffix';
|
|
585
|
+
return {
|
|
586
|
+
key,
|
|
587
|
+
shiftKey,
|
|
588
|
+
altKey: null,
|
|
589
|
+
[where]: /^$/,
|
|
590
|
+
handler(range) {
|
|
591
|
+
let {
|
|
592
|
+
index
|
|
593
|
+
} = range;
|
|
594
|
+
if (key === 'ArrowRight') {
|
|
595
|
+
index += range.length + 1;
|
|
596
|
+
}
|
|
597
|
+
const [leaf] = this.quill.getLeaf(index);
|
|
598
|
+
if (!(leaf instanceof EmbedBlot)) return true;
|
|
599
|
+
if (key === 'ArrowLeft') {
|
|
600
|
+
if (shiftKey) {
|
|
601
|
+
this.quill.setSelection(range.index - 1, range.length + 1, Quill.sources.USER);
|
|
602
|
+
} else {
|
|
603
|
+
this.quill.setSelection(range.index - 1, Quill.sources.USER);
|
|
604
|
+
}
|
|
605
|
+
} else if (shiftKey) {
|
|
606
|
+
this.quill.setSelection(range.index, range.length + 1, Quill.sources.USER);
|
|
607
|
+
} else {
|
|
608
|
+
this.quill.setSelection(range.index + range.length + 1, Quill.sources.USER);
|
|
609
|
+
}
|
|
610
|
+
return false;
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
function makeFormatHandler(format) {
|
|
615
|
+
return {
|
|
616
|
+
key: format[0],
|
|
617
|
+
shortKey: true,
|
|
618
|
+
handler(range, context) {
|
|
619
|
+
this.quill.format(format, !context.format[format], Quill.sources.USER);
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
function makeTableArrowHandler(up) {
|
|
624
|
+
return {
|
|
625
|
+
key: up ? 'ArrowUp' : 'ArrowDown',
|
|
626
|
+
collapsed: true,
|
|
627
|
+
format: ['table'],
|
|
628
|
+
handler(range, context) {
|
|
629
|
+
// TODO move to table module
|
|
630
|
+
const key = up ? 'prev' : 'next';
|
|
631
|
+
const cell = context.line;
|
|
632
|
+
const targetRow = cell.parent[key];
|
|
633
|
+
if (targetRow != null) {
|
|
634
|
+
if (targetRow.statics.blotName === 'table-row') {
|
|
635
|
+
// @ts-expect-error
|
|
636
|
+
let targetCell = targetRow.children.head;
|
|
637
|
+
let cur = cell;
|
|
638
|
+
while (cur.prev != null) {
|
|
639
|
+
// @ts-expect-error
|
|
640
|
+
cur = cur.prev;
|
|
641
|
+
targetCell = targetCell.next;
|
|
642
|
+
}
|
|
643
|
+
const index = targetCell.offset(this.quill.scroll) + Math.min(context.offset, targetCell.length() - 1);
|
|
644
|
+
this.quill.setSelection(index, 0, Quill.sources.USER);
|
|
645
|
+
}
|
|
646
|
+
} else {
|
|
647
|
+
// @ts-expect-error
|
|
648
|
+
const targetLine = cell.table()[key];
|
|
649
|
+
if (targetLine != null) {
|
|
650
|
+
if (up) {
|
|
651
|
+
this.quill.setSelection(targetLine.offset(this.quill.scroll) + targetLine.length() - 1, 0, Quill.sources.USER);
|
|
652
|
+
} else {
|
|
653
|
+
this.quill.setSelection(targetLine.offset(this.quill.scroll), 0, Quill.sources.USER);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return false;
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
function normalize(binding) {
|
|
662
|
+
if (typeof binding === 'string' || typeof binding === 'number') {
|
|
663
|
+
binding = {
|
|
664
|
+
key: binding
|
|
665
|
+
};
|
|
666
|
+
} else if (typeof binding === 'object') {
|
|
667
|
+
binding = cloneDeep(binding);
|
|
668
|
+
} else {
|
|
669
|
+
return null;
|
|
670
|
+
}
|
|
671
|
+
if (binding.shortKey) {
|
|
672
|
+
binding[SHORTKEY] = binding.shortKey;
|
|
673
|
+
delete binding.shortKey;
|
|
674
|
+
}
|
|
675
|
+
return binding;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// TODO: Move into quill.ts or editor.ts
|
|
679
|
+
function deleteRange(_ref2) {
|
|
680
|
+
let {
|
|
681
|
+
quill,
|
|
682
|
+
range
|
|
683
|
+
} = _ref2;
|
|
684
|
+
const lines = quill.getLines(range);
|
|
685
|
+
let formats = {};
|
|
686
|
+
if (lines.length > 1) {
|
|
687
|
+
const firstFormats = lines[0].formats();
|
|
688
|
+
const lastFormats = lines[lines.length - 1].formats();
|
|
689
|
+
formats = AttributeMap.diff(lastFormats, firstFormats) || {};
|
|
690
|
+
}
|
|
691
|
+
quill.deleteText(range, Quill.sources.USER);
|
|
692
|
+
if (Object.keys(formats).length > 0) {
|
|
693
|
+
quill.formatLine(range.index, 1, formats, Quill.sources.USER);
|
|
694
|
+
}
|
|
695
|
+
quill.setSelection(range.index, Quill.sources.SILENT);
|
|
696
|
+
}
|
|
697
|
+
function tableSide(_table, row, cell, offset) {
|
|
698
|
+
if (row.prev == null && row.next == null) {
|
|
699
|
+
if (cell.prev == null && cell.next == null) {
|
|
700
|
+
return offset === 0 ? -1 : 1;
|
|
701
|
+
}
|
|
702
|
+
return cell.prev == null ? -1 : 1;
|
|
703
|
+
}
|
|
704
|
+
if (row.prev == null) {
|
|
705
|
+
return -1;
|
|
706
|
+
}
|
|
707
|
+
if (row.next == null) {
|
|
708
|
+
return 1;
|
|
709
|
+
}
|
|
710
|
+
return null;
|
|
711
|
+
}
|
|
712
|
+
export { Keyboard as default, SHORTKEY, normalize, deleteRange };
|
|
713
|
+
//# sourceMappingURL=keyboard.js.map
|