@adminforth/rich-editor 1.0.18 → 1.1.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.
- package/.woodpecker/buildRelease.sh +13 -0
- package/.woodpecker/buildSlackNotify.sh +44 -0
- package/.woodpecker/release.yml +43 -0
- package/CHANGELOG.md +5 -0
- package/{custom/node_modules/eventemitter3/LICENSE → LICENSE} +2 -2
- package/build.log +4 -0
- package/custom/quillEditor.vue +4 -2
- package/custom/tsconfig.json +19 -0
- package/dist/index.js +3 -3
- package/package.json +43 -6
- package/ChangeLog.md +0 -17
- package/custom/node_modules/.package-lock.json +0 -66
- package/custom/node_modules/eventemitter3/README.md +0 -94
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -347
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -1
- package/custom/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +0 -1
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -355
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -1
- package/custom/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +0 -1
- package/custom/node_modules/eventemitter3/index.d.ts +0 -135
- package/custom/node_modules/eventemitter3/index.js +0 -336
- package/custom/node_modules/eventemitter3/index.mjs +0 -4
- package/custom/node_modules/eventemitter3/package.json +0 -67
- package/custom/node_modules/fast-diff/LICENSE +0 -201
- package/custom/node_modules/fast-diff/README.md +0 -24
- package/custom/node_modules/fast-diff/diff.d.ts +0 -21
- package/custom/node_modules/fast-diff/diff.js +0 -1138
- package/custom/node_modules/fast-diff/package.json +0 -30
- package/custom/node_modules/lodash-es/LICENSE +0 -47
- package/custom/node_modules/lodash-es/README.md +0 -10
- package/custom/node_modules/lodash-es/_DataView.js +0 -7
- package/custom/node_modules/lodash-es/_Hash.js +0 -32
- package/custom/node_modules/lodash-es/_LazyWrapper.js +0 -28
- package/custom/node_modules/lodash-es/_ListCache.js +0 -32
- package/custom/node_modules/lodash-es/_LodashWrapper.js +0 -22
- package/custom/node_modules/lodash-es/_Map.js +0 -7
- package/custom/node_modules/lodash-es/_MapCache.js +0 -32
- package/custom/node_modules/lodash-es/_Promise.js +0 -7
- package/custom/node_modules/lodash-es/_Set.js +0 -7
- package/custom/node_modules/lodash-es/_SetCache.js +0 -27
- package/custom/node_modules/lodash-es/_Stack.js +0 -27
- package/custom/node_modules/lodash-es/_Symbol.js +0 -6
- package/custom/node_modules/lodash-es/_Uint8Array.js +0 -6
- package/custom/node_modules/lodash-es/_WeakMap.js +0 -7
- package/custom/node_modules/lodash-es/_addMapEntry.js +0 -15
- package/custom/node_modules/lodash-es/_addSetEntry.js +0 -15
- package/custom/node_modules/lodash-es/_apply.js +0 -21
- package/custom/node_modules/lodash-es/_arrayAggregator.js +0 -22
- package/custom/node_modules/lodash-es/_arrayEach.js +0 -22
- package/custom/node_modules/lodash-es/_arrayEachRight.js +0 -21
- package/custom/node_modules/lodash-es/_arrayEvery.js +0 -23
- package/custom/node_modules/lodash-es/_arrayFilter.js +0 -25
- package/custom/node_modules/lodash-es/_arrayIncludes.js +0 -17
- package/custom/node_modules/lodash-es/_arrayIncludesWith.js +0 -22
- package/custom/node_modules/lodash-es/_arrayLikeKeys.js +0 -49
- package/custom/node_modules/lodash-es/_arrayMap.js +0 -21
- package/custom/node_modules/lodash-es/_arrayPush.js +0 -20
- package/custom/node_modules/lodash-es/_arrayReduce.js +0 -26
- package/custom/node_modules/lodash-es/_arrayReduceRight.js +0 -24
- package/custom/node_modules/lodash-es/_arraySample.js +0 -15
- package/custom/node_modules/lodash-es/_arraySampleSize.js +0 -17
- package/custom/node_modules/lodash-es/_arrayShuffle.js +0 -15
- package/custom/node_modules/lodash-es/_arraySome.js +0 -23
- package/custom/node_modules/lodash-es/_asciiSize.js +0 -12
- package/custom/node_modules/lodash-es/_asciiToArray.js +0 -12
- package/custom/node_modules/lodash-es/_asciiWords.js +0 -15
- package/custom/node_modules/lodash-es/_assignMergeValue.js +0 -20
- package/custom/node_modules/lodash-es/_assignValue.js +0 -28
- package/custom/node_modules/lodash-es/_assocIndexOf.js +0 -21
- package/custom/node_modules/lodash-es/_baseAggregator.js +0 -21
- package/custom/node_modules/lodash-es/_baseAssign.js +0 -17
- package/custom/node_modules/lodash-es/_baseAssignIn.js +0 -17
- package/custom/node_modules/lodash-es/_baseAssignValue.js +0 -25
- package/custom/node_modules/lodash-es/_baseAt.js +0 -23
- package/custom/node_modules/lodash-es/_baseClamp.js +0 -22
- package/custom/node_modules/lodash-es/_baseClone.js +0 -166
- package/custom/node_modules/lodash-es/_baseConforms.js +0 -18
- package/custom/node_modules/lodash-es/_baseConformsTo.js +0 -27
- package/custom/node_modules/lodash-es/_baseCreate.js +0 -30
- package/custom/node_modules/lodash-es/_baseDelay.js +0 -21
- package/custom/node_modules/lodash-es/_baseDifference.js +0 -67
- package/custom/node_modules/lodash-es/_baseEach.js +0 -14
- package/custom/node_modules/lodash-es/_baseEachRight.js +0 -14
- package/custom/node_modules/lodash-es/_baseEvery.js +0 -21
- package/custom/node_modules/lodash-es/_baseExtremum.js +0 -32
- package/custom/node_modules/lodash-es/_baseFill.js +0 -32
- package/custom/node_modules/lodash-es/_baseFilter.js +0 -21
- package/custom/node_modules/lodash-es/_baseFindIndex.js +0 -24
- package/custom/node_modules/lodash-es/_baseFindKey.js +0 -23
- package/custom/node_modules/lodash-es/_baseFlatten.js +0 -38
- package/custom/node_modules/lodash-es/_baseFor.js +0 -16
- package/custom/node_modules/lodash-es/_baseForOwn.js +0 -16
- package/custom/node_modules/lodash-es/_baseForOwnRight.js +0 -16
- package/custom/node_modules/lodash-es/_baseForRight.js +0 -15
- package/custom/node_modules/lodash-es/_baseFunctions.js +0 -19
- package/custom/node_modules/lodash-es/_baseGet.js +0 -24
- package/custom/node_modules/lodash-es/_baseGetAllKeys.js +0 -20
- package/custom/node_modules/lodash-es/_baseGetTag.js +0 -28
- package/custom/node_modules/lodash-es/_baseGt.js +0 -14
- package/custom/node_modules/lodash-es/_baseHas.js +0 -19
- package/custom/node_modules/lodash-es/_baseHasIn.js +0 -13
- package/custom/node_modules/lodash-es/_baseInRange.js +0 -18
- package/custom/node_modules/lodash-es/_baseIndexOf.js +0 -20
- package/custom/node_modules/lodash-es/_baseIndexOfWith.js +0 -23
- package/custom/node_modules/lodash-es/_baseIntersection.js +0 -74
- package/custom/node_modules/lodash-es/_baseInverter.js +0 -21
- package/custom/node_modules/lodash-es/_baseInvoke.js +0 -24
- package/custom/node_modules/lodash-es/_baseIsArguments.js +0 -18
- package/custom/node_modules/lodash-es/_baseIsArrayBuffer.js +0 -17
- package/custom/node_modules/lodash-es/_baseIsDate.js +0 -18
- package/custom/node_modules/lodash-es/_baseIsEqual.js +0 -28
- package/custom/node_modules/lodash-es/_baseIsEqualDeep.js +0 -83
- package/custom/node_modules/lodash-es/_baseIsMap.js +0 -18
- package/custom/node_modules/lodash-es/_baseIsMatch.js +0 -62
- package/custom/node_modules/lodash-es/_baseIsNaN.js +0 -12
- package/custom/node_modules/lodash-es/_baseIsNative.js +0 -47
- package/custom/node_modules/lodash-es/_baseIsRegExp.js +0 -18
- package/custom/node_modules/lodash-es/_baseIsSet.js +0 -18
- package/custom/node_modules/lodash-es/_baseIsTypedArray.js +0 -60
- package/custom/node_modules/lodash-es/_baseIteratee.js +0 -31
- package/custom/node_modules/lodash-es/_baseKeys.js +0 -30
- package/custom/node_modules/lodash-es/_baseKeysIn.js +0 -33
- package/custom/node_modules/lodash-es/_baseLodash.js +0 -10
- package/custom/node_modules/lodash-es/_baseLt.js +0 -14
- package/custom/node_modules/lodash-es/_baseMap.js +0 -22
- package/custom/node_modules/lodash-es/_baseMatches.js +0 -22
- package/custom/node_modules/lodash-es/_baseMatchesProperty.js +0 -33
- package/custom/node_modules/lodash-es/_baseMean.js +0 -20
- package/custom/node_modules/lodash-es/_baseMerge.js +0 -42
- package/custom/node_modules/lodash-es/_baseMergeDeep.js +0 -94
- package/custom/node_modules/lodash-es/_baseNth.js +0 -20
- package/custom/node_modules/lodash-es/_baseOrderBy.js +0 -49
- package/custom/node_modules/lodash-es/_basePick.js +0 -19
- package/custom/node_modules/lodash-es/_basePickBy.js +0 -30
- package/custom/node_modules/lodash-es/_baseProperty.js +0 -14
- package/custom/node_modules/lodash-es/_basePropertyDeep.js +0 -16
- package/custom/node_modules/lodash-es/_basePropertyOf.js +0 -14
- package/custom/node_modules/lodash-es/_basePullAll.js +0 -51
- package/custom/node_modules/lodash-es/_basePullAt.js +0 -37
- package/custom/node_modules/lodash-es/_baseRandom.js +0 -18
- package/custom/node_modules/lodash-es/_baseRange.js +0 -28
- package/custom/node_modules/lodash-es/_baseReduce.js +0 -23
- package/custom/node_modules/lodash-es/_baseRepeat.js +0 -35
- package/custom/node_modules/lodash-es/_baseRest.js +0 -17
- package/custom/node_modules/lodash-es/_baseSample.js +0 -15
- package/custom/node_modules/lodash-es/_baseSampleSize.js +0 -18
- package/custom/node_modules/lodash-es/_baseSet.js +0 -51
- package/custom/node_modules/lodash-es/_baseSetData.js +0 -17
- package/custom/node_modules/lodash-es/_baseSetToString.js +0 -22
- package/custom/node_modules/lodash-es/_baseShuffle.js +0 -15
- package/custom/node_modules/lodash-es/_baseSlice.js +0 -31
- package/custom/node_modules/lodash-es/_baseSome.js +0 -22
- package/custom/node_modules/lodash-es/_baseSortBy.js +0 -21
- package/custom/node_modules/lodash-es/_baseSortedIndex.js +0 -42
- package/custom/node_modules/lodash-es/_baseSortedIndexBy.js +0 -67
- package/custom/node_modules/lodash-es/_baseSortedUniq.js +0 -30
- package/custom/node_modules/lodash-es/_baseSum.js +0 -24
- package/custom/node_modules/lodash-es/_baseTimes.js +0 -20
- package/custom/node_modules/lodash-es/_baseToNumber.js +0 -24
- package/custom/node_modules/lodash-es/_baseToPairs.js +0 -18
- package/custom/node_modules/lodash-es/_baseToString.js +0 -37
- package/custom/node_modules/lodash-es/_baseTrim.js +0 -19
- package/custom/node_modules/lodash-es/_baseUnary.js +0 -14
- package/custom/node_modules/lodash-es/_baseUniq.js +0 -72
- package/custom/node_modules/lodash-es/_baseUnset.js +0 -20
- package/custom/node_modules/lodash-es/_baseUpdate.js +0 -18
- package/custom/node_modules/lodash-es/_baseValues.js +0 -19
- package/custom/node_modules/lodash-es/_baseWhile.js +0 -26
- package/custom/node_modules/lodash-es/_baseWrapperValue.js +0 -25
- package/custom/node_modules/lodash-es/_baseXor.js +0 -36
- package/custom/node_modules/lodash-es/_baseZipObject.js +0 -23
- package/custom/node_modules/lodash-es/_cacheHas.js +0 -13
- package/custom/node_modules/lodash-es/_castArrayLikeObject.js +0 -14
- package/custom/node_modules/lodash-es/_castFunction.js +0 -14
- package/custom/node_modules/lodash-es/_castPath.js +0 -21
- package/custom/node_modules/lodash-es/_castRest.js +0 -14
- package/custom/node_modules/lodash-es/_castSlice.js +0 -18
- package/custom/node_modules/lodash-es/_charsEndIndex.js +0 -19
- package/custom/node_modules/lodash-es/_charsStartIndex.js +0 -20
- package/custom/node_modules/lodash-es/_cloneArrayBuffer.js +0 -16
- package/custom/node_modules/lodash-es/_cloneBuffer.js +0 -35
- package/custom/node_modules/lodash-es/_cloneDataView.js +0 -16
- package/custom/node_modules/lodash-es/_cloneMap.js +0 -22
- package/custom/node_modules/lodash-es/_cloneRegExp.js +0 -17
- package/custom/node_modules/lodash-es/_cloneSet.js +0 -22
- package/custom/node_modules/lodash-es/_cloneSymbol.js +0 -18
- package/custom/node_modules/lodash-es/_cloneTypedArray.js +0 -16
- package/custom/node_modules/lodash-es/_compareAscending.js +0 -41
- package/custom/node_modules/lodash-es/_compareMultiple.js +0 -44
- package/custom/node_modules/lodash-es/_composeArgs.js +0 -39
- package/custom/node_modules/lodash-es/_composeArgsRight.js +0 -41
- package/custom/node_modules/lodash-es/_copyArray.js +0 -20
- package/custom/node_modules/lodash-es/_copyObject.js +0 -40
- package/custom/node_modules/lodash-es/_copySymbols.js +0 -16
- package/custom/node_modules/lodash-es/_copySymbolsIn.js +0 -16
- package/custom/node_modules/lodash-es/_coreJsData.js +0 -6
- package/custom/node_modules/lodash-es/_countHolders.js +0 -21
- package/custom/node_modules/lodash-es/_createAggregator.js +0 -23
- package/custom/node_modules/lodash-es/_createAssigner.js +0 -37
- package/custom/node_modules/lodash-es/_createBaseEach.js +0 -32
- package/custom/node_modules/lodash-es/_createBaseFor.js +0 -25
- package/custom/node_modules/lodash-es/_createBind.js +0 -28
- package/custom/node_modules/lodash-es/_createCaseFirst.js +0 -33
- package/custom/node_modules/lodash-es/_createCompounder.js +0 -24
- package/custom/node_modules/lodash-es/_createCtor.js +0 -37
- package/custom/node_modules/lodash-es/_createCurry.js +0 -46
- package/custom/node_modules/lodash-es/_createFind.js +0 -25
- package/custom/node_modules/lodash-es/_createFlow.js +0 -78
- package/custom/node_modules/lodash-es/_createHybrid.js +0 -92
- package/custom/node_modules/lodash-es/_createInverter.js +0 -17
- package/custom/node_modules/lodash-es/_createMathOperation.js +0 -38
- package/custom/node_modules/lodash-es/_createOver.js +0 -27
- package/custom/node_modules/lodash-es/_createPadding.js +0 -33
- package/custom/node_modules/lodash-es/_createPartial.js +0 -43
- package/custom/node_modules/lodash-es/_createRange.js +0 -30
- package/custom/node_modules/lodash-es/_createRecurry.js +0 -56
- package/custom/node_modules/lodash-es/_createRelationalOperation.js +0 -20
- package/custom/node_modules/lodash-es/_createRound.js +0 -35
- package/custom/node_modules/lodash-es/_createSet.js +0 -19
- package/custom/node_modules/lodash-es/_createToPairs.js +0 -30
- package/custom/node_modules/lodash-es/_createWrap.js +0 -106
- package/custom/node_modules/lodash-es/_customDefaultsAssignIn.js +0 -29
- package/custom/node_modules/lodash-es/_customDefaultsMerge.js +0 -28
- package/custom/node_modules/lodash-es/_customOmitClone.js +0 -16
- package/custom/node_modules/lodash-es/_deburrLetter.js +0 -71
- package/custom/node_modules/lodash-es/_defineProperty.js +0 -11
- package/custom/node_modules/lodash-es/_equalArrays.js +0 -84
- package/custom/node_modules/lodash-es/_equalByTag.js +0 -112
- package/custom/node_modules/lodash-es/_equalObjects.js +0 -90
- package/custom/node_modules/lodash-es/_escapeHtmlChar.js +0 -21
- package/custom/node_modules/lodash-es/_escapeStringChar.js +0 -22
- package/custom/node_modules/lodash-es/_flatRest.js +0 -16
- package/custom/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/custom/node_modules/lodash-es/_getAllKeys.js +0 -16
- package/custom/node_modules/lodash-es/_getAllKeysIn.js +0 -17
- package/custom/node_modules/lodash-es/_getData.js +0 -15
- package/custom/node_modules/lodash-es/_getFuncName.js +0 -31
- package/custom/node_modules/lodash-es/_getHolder.js +0 -13
- package/custom/node_modules/lodash-es/_getMapData.js +0 -18
- package/custom/node_modules/lodash-es/_getMatchData.js +0 -24
- package/custom/node_modules/lodash-es/_getNative.js +0 -17
- package/custom/node_modules/lodash-es/_getPrototype.js +0 -6
- package/custom/node_modules/lodash-es/_getRawTag.js +0 -46
- package/custom/node_modules/lodash-es/_getSymbols.js +0 -30
- package/custom/node_modules/lodash-es/_getSymbolsIn.js +0 -25
- package/custom/node_modules/lodash-es/_getTag.js +0 -58
- package/custom/node_modules/lodash-es/_getValue.js +0 -13
- package/custom/node_modules/lodash-es/_getView.js +0 -33
- package/custom/node_modules/lodash-es/_getWrapDetails.js +0 -17
- package/custom/node_modules/lodash-es/_hasPath.js +0 -39
- package/custom/node_modules/lodash-es/_hasUnicode.js +0 -26
- package/custom/node_modules/lodash-es/_hasUnicodeWord.js +0 -15
- package/custom/node_modules/lodash-es/_hashClear.js +0 -15
- package/custom/node_modules/lodash-es/_hashDelete.js +0 -17
- package/custom/node_modules/lodash-es/_hashGet.js +0 -30
- package/custom/node_modules/lodash-es/_hashHas.js +0 -23
- package/custom/node_modules/lodash-es/_hashSet.js +0 -23
- package/custom/node_modules/lodash-es/_initCloneArray.js +0 -26
- package/custom/node_modules/lodash-es/_initCloneByTag.js +0 -77
- package/custom/node_modules/lodash-es/_initCloneObject.js +0 -18
- package/custom/node_modules/lodash-es/_insertWrapDetails.js +0 -23
- package/custom/node_modules/lodash-es/_isFlattenable.js +0 -20
- package/custom/node_modules/lodash-es/_isIndex.js +0 -25
- package/custom/node_modules/lodash-es/_isIterateeCall.js +0 -30
- package/custom/node_modules/lodash-es/_isKey.js +0 -29
- package/custom/node_modules/lodash-es/_isKeyable.js +0 -15
- package/custom/node_modules/lodash-es/_isLaziable.js +0 -28
- package/custom/node_modules/lodash-es/_isMaskable.js +0 -14
- package/custom/node_modules/lodash-es/_isMasked.js +0 -20
- package/custom/node_modules/lodash-es/_isPrototype.js +0 -18
- package/custom/node_modules/lodash-es/_isStrictComparable.js +0 -15
- package/custom/node_modules/lodash-es/_iteratorToArray.js +0 -18
- package/custom/node_modules/lodash-es/_lazyClone.js +0 -23
- package/custom/node_modules/lodash-es/_lazyReverse.js +0 -23
- package/custom/node_modules/lodash-es/_lazyValue.js +0 -69
- package/custom/node_modules/lodash-es/_listCacheClear.js +0 -13
- package/custom/node_modules/lodash-es/_listCacheDelete.js +0 -35
- package/custom/node_modules/lodash-es/_listCacheGet.js +0 -19
- package/custom/node_modules/lodash-es/_listCacheHas.js +0 -16
- package/custom/node_modules/lodash-es/_listCacheSet.js +0 -26
- package/custom/node_modules/lodash-es/_mapCacheClear.js +0 -21
- package/custom/node_modules/lodash-es/_mapCacheDelete.js +0 -18
- package/custom/node_modules/lodash-es/_mapCacheGet.js +0 -16
- package/custom/node_modules/lodash-es/_mapCacheHas.js +0 -16
- package/custom/node_modules/lodash-es/_mapCacheSet.js +0 -22
- package/custom/node_modules/lodash-es/_mapToArray.js +0 -18
- package/custom/node_modules/lodash-es/_matchesStrictComparable.js +0 -20
- package/custom/node_modules/lodash-es/_memoizeCapped.js +0 -26
- package/custom/node_modules/lodash-es/_mergeData.js +0 -90
- package/custom/node_modules/lodash-es/_metaMap.js +0 -6
- package/custom/node_modules/lodash-es/_nativeCreate.js +0 -6
- package/custom/node_modules/lodash-es/_nativeKeys.js +0 -6
- package/custom/node_modules/lodash-es/_nativeKeysIn.js +0 -20
- package/custom/node_modules/lodash-es/_nodeUtil.js +0 -30
- package/custom/node_modules/lodash-es/_objectToString.js +0 -22
- package/custom/node_modules/lodash-es/_overArg.js +0 -15
- package/custom/node_modules/lodash-es/_overRest.js +0 -36
- package/custom/node_modules/lodash-es/_parent.js +0 -16
- package/custom/node_modules/lodash-es/_reEscape.js +0 -4
- package/custom/node_modules/lodash-es/_reEvaluate.js +0 -4
- package/custom/node_modules/lodash-es/_reInterpolate.js +0 -4
- package/custom/node_modules/lodash-es/_realNames.js +0 -4
- package/custom/node_modules/lodash-es/_reorder.js +0 -29
- package/custom/node_modules/lodash-es/_replaceHolders.js +0 -29
- package/custom/node_modules/lodash-es/_root.js +0 -9
- package/custom/node_modules/lodash-es/_safeGet.js +0 -21
- package/custom/node_modules/lodash-es/_setCacheAdd.js +0 -19
- package/custom/node_modules/lodash-es/_setCacheHas.js +0 -14
- package/custom/node_modules/lodash-es/_setData.js +0 -20
- package/custom/node_modules/lodash-es/_setToArray.js +0 -18
- package/custom/node_modules/lodash-es/_setToPairs.js +0 -18
- package/custom/node_modules/lodash-es/_setToString.js +0 -14
- package/custom/node_modules/lodash-es/_setWrapToString.js +0 -21
- package/custom/node_modules/lodash-es/_shortOut.js +0 -37
- package/custom/node_modules/lodash-es/_shuffleSelf.js +0 -28
- package/custom/node_modules/lodash-es/_stackClear.js +0 -15
- package/custom/node_modules/lodash-es/_stackDelete.js +0 -18
- package/custom/node_modules/lodash-es/_stackGet.js +0 -14
- package/custom/node_modules/lodash-es/_stackHas.js +0 -14
- package/custom/node_modules/lodash-es/_stackSet.js +0 -34
- package/custom/node_modules/lodash-es/_strictIndexOf.js +0 -23
- package/custom/node_modules/lodash-es/_strictLastIndexOf.js +0 -21
- package/custom/node_modules/lodash-es/_stringSize.js +0 -18
- package/custom/node_modules/lodash-es/_stringToArray.js +0 -18
- package/custom/node_modules/lodash-es/_stringToPath.js +0 -27
- package/custom/node_modules/lodash-es/_toKey.js +0 -21
- package/custom/node_modules/lodash-es/_toSource.js +0 -26
- package/custom/node_modules/lodash-es/_trimmedEndIndex.js +0 -19
- package/custom/node_modules/lodash-es/_unescapeHtmlChar.js +0 -21
- package/custom/node_modules/lodash-es/_unicodeSize.js +0 -44
- package/custom/node_modules/lodash-es/_unicodeToArray.js +0 -40
- package/custom/node_modules/lodash-es/_unicodeWords.js +0 -69
- package/custom/node_modules/lodash-es/_updateWrapDetails.js +0 -46
- package/custom/node_modules/lodash-es/_wrapperClone.js +0 -23
- package/custom/node_modules/lodash-es/add.js +0 -22
- package/custom/node_modules/lodash-es/after.js +0 -42
- package/custom/node_modules/lodash-es/array.default.js +0 -81
- package/custom/node_modules/lodash-es/array.js +0 -66
- package/custom/node_modules/lodash-es/ary.js +0 -29
- package/custom/node_modules/lodash-es/assign.js +0 -58
- package/custom/node_modules/lodash-es/assignIn.js +0 -40
- package/custom/node_modules/lodash-es/assignInWith.js +0 -38
- package/custom/node_modules/lodash-es/assignWith.js +0 -37
- package/custom/node_modules/lodash-es/at.js +0 -23
- package/custom/node_modules/lodash-es/attempt.js +0 -35
- package/custom/node_modules/lodash-es/before.js +0 -40
- package/custom/node_modules/lodash-es/bind.js +0 -57
- package/custom/node_modules/lodash-es/bindAll.js +0 -41
- package/custom/node_modules/lodash-es/bindKey.js +0 -68
- package/custom/node_modules/lodash-es/camelCase.js +0 -29
- package/custom/node_modules/lodash-es/capitalize.js +0 -23
- package/custom/node_modules/lodash-es/castArray.js +0 -44
- package/custom/node_modules/lodash-es/ceil.js +0 -26
- package/custom/node_modules/lodash-es/chain.js +0 -38
- package/custom/node_modules/lodash-es/chunk.js +0 -50
- package/custom/node_modules/lodash-es/clamp.js +0 -39
- package/custom/node_modules/lodash-es/clone.js +0 -36
- package/custom/node_modules/lodash-es/cloneDeep.js +0 -29
- package/custom/node_modules/lodash-es/cloneDeepWith.js +0 -40
- package/custom/node_modules/lodash-es/cloneWith.js +0 -42
- package/custom/node_modules/lodash-es/collection.default.js +0 -37
- package/custom/node_modules/lodash-es/collection.js +0 -29
- package/custom/node_modules/lodash-es/commit.js +0 -33
- package/custom/node_modules/lodash-es/compact.js +0 -31
- package/custom/node_modules/lodash-es/concat.js +0 -43
- package/custom/node_modules/lodash-es/cond.js +0 -60
- package/custom/node_modules/lodash-es/conforms.js +0 -35
- package/custom/node_modules/lodash-es/conformsTo.js +0 -32
- package/custom/node_modules/lodash-es/constant.js +0 -26
- package/custom/node_modules/lodash-es/countBy.js +0 -40
- package/custom/node_modules/lodash-es/create.js +0 -43
- package/custom/node_modules/lodash-es/curry.js +0 -57
- package/custom/node_modules/lodash-es/curryRight.js +0 -54
- package/custom/node_modules/lodash-es/date.default.js +0 -5
- package/custom/node_modules/lodash-es/date.js +0 -2
- package/custom/node_modules/lodash-es/debounce.js +0 -191
- package/custom/node_modules/lodash-es/deburr.js +0 -45
- package/custom/node_modules/lodash-es/defaultTo.js +0 -25
- package/custom/node_modules/lodash-es/defaults.js +0 -64
- package/custom/node_modules/lodash-es/defaultsDeep.js +0 -30
- package/custom/node_modules/lodash-es/defer.js +0 -26
- package/custom/node_modules/lodash-es/delay.js +0 -28
- package/custom/node_modules/lodash-es/difference.js +0 -33
- package/custom/node_modules/lodash-es/differenceBy.js +0 -44
- package/custom/node_modules/lodash-es/differenceWith.js +0 -40
- package/custom/node_modules/lodash-es/divide.js +0 -22
- package/custom/node_modules/lodash-es/drop.js +0 -38
- package/custom/node_modules/lodash-es/dropRight.js +0 -39
- package/custom/node_modules/lodash-es/dropRightWhile.js +0 -45
- package/custom/node_modules/lodash-es/dropWhile.js +0 -45
- package/custom/node_modules/lodash-es/each.js +0 -1
- package/custom/node_modules/lodash-es/eachRight.js +0 -1
- package/custom/node_modules/lodash-es/endsWith.js +0 -43
- package/custom/node_modules/lodash-es/entries.js +0 -1
- package/custom/node_modules/lodash-es/entriesIn.js +0 -1
- package/custom/node_modules/lodash-es/eq.js +0 -37
- package/custom/node_modules/lodash-es/escape.js +0 -43
- package/custom/node_modules/lodash-es/escapeRegExp.js +0 -32
- package/custom/node_modules/lodash-es/every.js +0 -56
- package/custom/node_modules/lodash-es/extend.js +0 -1
- package/custom/node_modules/lodash-es/extendWith.js +0 -1
- package/custom/node_modules/lodash-es/fill.js +0 -45
- package/custom/node_modules/lodash-es/filter.js +0 -52
- package/custom/node_modules/lodash-es/find.js +0 -42
- package/custom/node_modules/lodash-es/findIndex.js +0 -55
- package/custom/node_modules/lodash-es/findKey.js +0 -44
- package/custom/node_modules/lodash-es/findLast.js +0 -25
- package/custom/node_modules/lodash-es/findLastIndex.js +0 -59
- package/custom/node_modules/lodash-es/findLastKey.js +0 -44
- package/custom/node_modules/lodash-es/first.js +0 -1
- package/custom/node_modules/lodash-es/flake.lock +0 -40
- package/custom/node_modules/lodash-es/flake.nix +0 -20
- package/custom/node_modules/lodash-es/flatMap.js +0 -29
- package/custom/node_modules/lodash-es/flatMapDeep.js +0 -31
- package/custom/node_modules/lodash-es/flatMapDepth.js +0 -31
- package/custom/node_modules/lodash-es/flatten.js +0 -22
- package/custom/node_modules/lodash-es/flattenDeep.js +0 -25
- package/custom/node_modules/lodash-es/flattenDepth.js +0 -33
- package/custom/node_modules/lodash-es/flip.js +0 -28
- package/custom/node_modules/lodash-es/floor.js +0 -26
- package/custom/node_modules/lodash-es/flow.js +0 -27
- package/custom/node_modules/lodash-es/flowRight.js +0 -26
- package/custom/node_modules/lodash-es/forEach.js +0 -41
- package/custom/node_modules/lodash-es/forEachRight.js +0 -31
- package/custom/node_modules/lodash-es/forIn.js +0 -39
- package/custom/node_modules/lodash-es/forInRight.js +0 -37
- package/custom/node_modules/lodash-es/forOwn.js +0 -36
- package/custom/node_modules/lodash-es/forOwnRight.js +0 -34
- package/custom/node_modules/lodash-es/fromPairs.js +0 -28
- package/custom/node_modules/lodash-es/function.default.js +0 -31
- package/custom/node_modules/lodash-es/function.js +0 -24
- package/custom/node_modules/lodash-es/functions.js +0 -31
- package/custom/node_modules/lodash-es/functionsIn.js +0 -31
- package/custom/node_modules/lodash-es/get.js +0 -33
- package/custom/node_modules/lodash-es/groupBy.js +0 -41
- package/custom/node_modules/lodash-es/gt.js +0 -29
- package/custom/node_modules/lodash-es/gte.js +0 -30
- package/custom/node_modules/lodash-es/has.js +0 -35
- package/custom/node_modules/lodash-es/hasIn.js +0 -34
- package/custom/node_modules/lodash-es/head.js +0 -23
- package/custom/node_modules/lodash-es/identity.js +0 -21
- package/custom/node_modules/lodash-es/inRange.js +0 -55
- package/custom/node_modules/lodash-es/includes.js +0 -53
- package/custom/node_modules/lodash-es/indexOf.js +0 -42
- package/custom/node_modules/lodash-es/initial.js +0 -22
- package/custom/node_modules/lodash-es/intersection.js +0 -30
- package/custom/node_modules/lodash-es/intersectionBy.js +0 -45
- package/custom/node_modules/lodash-es/intersectionWith.js +0 -41
- package/custom/node_modules/lodash-es/invert.js +0 -42
- package/custom/node_modules/lodash-es/invertBy.js +0 -56
- package/custom/node_modules/lodash-es/invoke.js +0 -24
- package/custom/node_modules/lodash-es/invokeMap.js +0 -41
- package/custom/node_modules/lodash-es/isArguments.js +0 -36
- package/custom/node_modules/lodash-es/isArray.js +0 -26
- package/custom/node_modules/lodash-es/isArrayBuffer.js +0 -27
- package/custom/node_modules/lodash-es/isArrayLike.js +0 -33
- package/custom/node_modules/lodash-es/isArrayLikeObject.js +0 -33
- package/custom/node_modules/lodash-es/isBoolean.js +0 -29
- package/custom/node_modules/lodash-es/isBuffer.js +0 -38
- package/custom/node_modules/lodash-es/isDate.js +0 -27
- package/custom/node_modules/lodash-es/isElement.js +0 -25
- package/custom/node_modules/lodash-es/isEmpty.js +0 -77
- package/custom/node_modules/lodash-es/isEqual.js +0 -35
- package/custom/node_modules/lodash-es/isEqualWith.js +0 -41
- package/custom/node_modules/lodash-es/isError.js +0 -36
- package/custom/node_modules/lodash-es/isFinite.js +0 -36
- package/custom/node_modules/lodash-es/isFunction.js +0 -37
- package/custom/node_modules/lodash-es/isInteger.js +0 -33
- package/custom/node_modules/lodash-es/isLength.js +0 -35
- package/custom/node_modules/lodash-es/isMap.js +0 -27
- package/custom/node_modules/lodash-es/isMatch.js +0 -36
- package/custom/node_modules/lodash-es/isMatchWith.js +0 -41
- package/custom/node_modules/lodash-es/isNaN.js +0 -38
- package/custom/node_modules/lodash-es/isNative.js +0 -40
- package/custom/node_modules/lodash-es/isNil.js +0 -25
- package/custom/node_modules/lodash-es/isNull.js +0 -22
- package/custom/node_modules/lodash-es/isNumber.js +0 -38
- package/custom/node_modules/lodash-es/isObject.js +0 -31
- package/custom/node_modules/lodash-es/isObjectLike.js +0 -29
- package/custom/node_modules/lodash-es/isPlainObject.js +0 -62
- package/custom/node_modules/lodash-es/isRegExp.js +0 -27
- package/custom/node_modules/lodash-es/isSafeInteger.js +0 -37
- package/custom/node_modules/lodash-es/isSet.js +0 -27
- package/custom/node_modules/lodash-es/isString.js +0 -30
- package/custom/node_modules/lodash-es/isSymbol.js +0 -29
- package/custom/node_modules/lodash-es/isTypedArray.js +0 -27
- package/custom/node_modules/lodash-es/isUndefined.js +0 -22
- package/custom/node_modules/lodash-es/isWeakMap.js +0 -28
- package/custom/node_modules/lodash-es/isWeakSet.js +0 -28
- package/custom/node_modules/lodash-es/iteratee.js +0 -53
- package/custom/node_modules/lodash-es/join.js +0 -26
- package/custom/node_modules/lodash-es/kebabCase.js +0 -28
- package/custom/node_modules/lodash-es/keyBy.js +0 -36
- package/custom/node_modules/lodash-es/keys.js +0 -37
- package/custom/node_modules/lodash-es/keysIn.js +0 -32
- package/custom/node_modules/lodash-es/lang.default.js +0 -71
- package/custom/node_modules/lodash-es/lang.js +0 -57
- package/custom/node_modules/lodash-es/last.js +0 -20
- package/custom/node_modules/lodash-es/lastIndexOf.js +0 -46
- package/custom/node_modules/lodash-es/lodash.default.js +0 -643
- package/custom/node_modules/lodash-es/lodash.js +0 -331
- package/custom/node_modules/lodash-es/lowerCase.js +0 -27
- package/custom/node_modules/lodash-es/lowerFirst.js +0 -22
- package/custom/node_modules/lodash-es/lt.js +0 -29
- package/custom/node_modules/lodash-es/lte.js +0 -30
- package/custom/node_modules/lodash-es/map.js +0 -53
- package/custom/node_modules/lodash-es/mapKeys.js +0 -36
- package/custom/node_modules/lodash-es/mapValues.js +0 -43
- package/custom/node_modules/lodash-es/matches.js +0 -46
- package/custom/node_modules/lodash-es/matchesProperty.js +0 -44
- package/custom/node_modules/lodash-es/math.default.js +0 -21
- package/custom/node_modules/lodash-es/math.js +0 -16
- package/custom/node_modules/lodash-es/max.js +0 -29
- package/custom/node_modules/lodash-es/maxBy.js +0 -34
- package/custom/node_modules/lodash-es/mean.js +0 -22
- package/custom/node_modules/lodash-es/meanBy.js +0 -31
- package/custom/node_modules/lodash-es/memoize.js +0 -73
- package/custom/node_modules/lodash-es/merge.js +0 -39
- package/custom/node_modules/lodash-es/mergeWith.js +0 -39
- package/custom/node_modules/lodash-es/method.js +0 -34
- package/custom/node_modules/lodash-es/methodOf.js +0 -33
- package/custom/node_modules/lodash-es/min.js +0 -29
- package/custom/node_modules/lodash-es/minBy.js +0 -34
- package/custom/node_modules/lodash-es/mixin.js +0 -74
- package/custom/node_modules/lodash-es/multiply.js +0 -22
- package/custom/node_modules/lodash-es/negate.js +0 -40
- package/custom/node_modules/lodash-es/next.js +0 -35
- package/custom/node_modules/lodash-es/noop.js +0 -17
- package/custom/node_modules/lodash-es/now.js +0 -23
- package/custom/node_modules/lodash-es/nth.js +0 -29
- package/custom/node_modules/lodash-es/nthArg.js +0 -32
- package/custom/node_modules/lodash-es/number.default.js +0 -7
- package/custom/node_modules/lodash-es/number.js +0 -4
- package/custom/node_modules/lodash-es/object.default.js +0 -60
- package/custom/node_modules/lodash-es/object.js +0 -48
- package/custom/node_modules/lodash-es/omit.js +0 -57
- package/custom/node_modules/lodash-es/omitBy.js +0 -29
- package/custom/node_modules/lodash-es/once.js +0 -25
- package/custom/node_modules/lodash-es/orderBy.js +0 -47
- package/custom/node_modules/lodash-es/over.js +0 -24
- package/custom/node_modules/lodash-es/overArgs.js +0 -61
- package/custom/node_modules/lodash-es/overEvery.js +0 -34
- package/custom/node_modules/lodash-es/overSome.js +0 -37
- package/custom/node_modules/lodash-es/package.json +0 -21
- package/custom/node_modules/lodash-es/pad.js +0 -49
- package/custom/node_modules/lodash-es/padEnd.js +0 -39
- package/custom/node_modules/lodash-es/padStart.js +0 -39
- package/custom/node_modules/lodash-es/parseInt.js +0 -43
- package/custom/node_modules/lodash-es/partial.js +0 -50
- package/custom/node_modules/lodash-es/partialRight.js +0 -49
- package/custom/node_modules/lodash-es/partition.js +0 -43
- package/custom/node_modules/lodash-es/pick.js +0 -25
- package/custom/node_modules/lodash-es/pickBy.js +0 -37
- package/custom/node_modules/lodash-es/plant.js +0 -48
- package/custom/node_modules/lodash-es/property.js +0 -32
- package/custom/node_modules/lodash-es/propertyOf.js +0 -30
- package/custom/node_modules/lodash-es/pull.js +0 -29
- package/custom/node_modules/lodash-es/pullAll.js +0 -29
- package/custom/node_modules/lodash-es/pullAllBy.js +0 -33
- package/custom/node_modules/lodash-es/pullAllWith.js +0 -32
- package/custom/node_modules/lodash-es/pullAt.js +0 -43
- package/custom/node_modules/lodash-es/random.js +0 -82
- package/custom/node_modules/lodash-es/range.js +0 -46
- package/custom/node_modules/lodash-es/rangeRight.js +0 -41
- package/custom/node_modules/lodash-es/rearg.js +0 -33
- package/custom/node_modules/lodash-es/reduce.js +0 -51
- package/custom/node_modules/lodash-es/reduceRight.js +0 -36
- package/custom/node_modules/lodash-es/reject.js +0 -46
- package/custom/node_modules/lodash-es/release.md +0 -48
- package/custom/node_modules/lodash-es/remove.js +0 -53
- package/custom/node_modules/lodash-es/repeat.js +0 -37
- package/custom/node_modules/lodash-es/replace.js +0 -29
- package/custom/node_modules/lodash-es/rest.js +0 -40
- package/custom/node_modules/lodash-es/result.js +0 -56
- package/custom/node_modules/lodash-es/reverse.js +0 -34
- package/custom/node_modules/lodash-es/round.js +0 -26
- package/custom/node_modules/lodash-es/sample.js +0 -24
- package/custom/node_modules/lodash-es/sampleSize.js +0 -37
- package/custom/node_modules/lodash-es/seq.default.js +0 -20
- package/custom/node_modules/lodash-es/seq.js +0 -15
- package/custom/node_modules/lodash-es/set.js +0 -35
- package/custom/node_modules/lodash-es/setWith.js +0 -32
- package/custom/node_modules/lodash-es/shuffle.js +0 -25
- package/custom/node_modules/lodash-es/size.js +0 -46
- package/custom/node_modules/lodash-es/slice.js +0 -37
- package/custom/node_modules/lodash-es/snakeCase.js +0 -28
- package/custom/node_modules/lodash-es/some.js +0 -51
- package/custom/node_modules/lodash-es/sortBy.js +0 -48
- package/custom/node_modules/lodash-es/sortedIndex.js +0 -24
- package/custom/node_modules/lodash-es/sortedIndexBy.js +0 -33
- package/custom/node_modules/lodash-es/sortedIndexOf.js +0 -31
- package/custom/node_modules/lodash-es/sortedLastIndex.js +0 -25
- package/custom/node_modules/lodash-es/sortedLastIndexBy.js +0 -33
- package/custom/node_modules/lodash-es/sortedLastIndexOf.js +0 -31
- package/custom/node_modules/lodash-es/sortedUniq.js +0 -24
- package/custom/node_modules/lodash-es/sortedUniqBy.js +0 -26
- package/custom/node_modules/lodash-es/split.js +0 -52
- package/custom/node_modules/lodash-es/spread.js +0 -63
- package/custom/node_modules/lodash-es/startCase.js +0 -29
- package/custom/node_modules/lodash-es/startsWith.js +0 -39
- package/custom/node_modules/lodash-es/string.default.js +0 -41
- package/custom/node_modules/lodash-es/string.js +0 -32
- package/custom/node_modules/lodash-es/stubArray.js +0 -23
- package/custom/node_modules/lodash-es/stubFalse.js +0 -18
- package/custom/node_modules/lodash-es/stubObject.js +0 -23
- package/custom/node_modules/lodash-es/stubString.js +0 -18
- package/custom/node_modules/lodash-es/stubTrue.js +0 -18
- package/custom/node_modules/lodash-es/subtract.js +0 -22
- package/custom/node_modules/lodash-es/sum.js +0 -24
- package/custom/node_modules/lodash-es/sumBy.js +0 -33
- package/custom/node_modules/lodash-es/tail.js +0 -22
- package/custom/node_modules/lodash-es/take.js +0 -37
- package/custom/node_modules/lodash-es/takeRight.js +0 -39
- package/custom/node_modules/lodash-es/takeRightWhile.js +0 -45
- package/custom/node_modules/lodash-es/takeWhile.js +0 -45
- package/custom/node_modules/lodash-es/tap.js +0 -29
- package/custom/node_modules/lodash-es/template.js +0 -272
- package/custom/node_modules/lodash-es/templateSettings.js +0 -67
- package/custom/node_modules/lodash-es/throttle.js +0 -69
- package/custom/node_modules/lodash-es/thru.js +0 -28
- package/custom/node_modules/lodash-es/times.js +0 -51
- package/custom/node_modules/lodash-es/toArray.js +0 -58
- package/custom/node_modules/lodash-es/toFinite.js +0 -42
- package/custom/node_modules/lodash-es/toInteger.js +0 -36
- package/custom/node_modules/lodash-es/toIterator.js +0 -23
- package/custom/node_modules/lodash-es/toJSON.js +0 -1
- package/custom/node_modules/lodash-es/toLength.js +0 -38
- package/custom/node_modules/lodash-es/toLower.js +0 -28
- package/custom/node_modules/lodash-es/toNumber.js +0 -64
- package/custom/node_modules/lodash-es/toPairs.js +0 -30
- package/custom/node_modules/lodash-es/toPairsIn.js +0 -30
- package/custom/node_modules/lodash-es/toPath.js +0 -33
- package/custom/node_modules/lodash-es/toPlainObject.js +0 -32
- package/custom/node_modules/lodash-es/toSafeInteger.js +0 -37
- package/custom/node_modules/lodash-es/toString.js +0 -28
- package/custom/node_modules/lodash-es/toUpper.js +0 -28
- package/custom/node_modules/lodash-es/transform.js +0 -65
- package/custom/node_modules/lodash-es/trim.js +0 -47
- package/custom/node_modules/lodash-es/trimEnd.js +0 -41
- package/custom/node_modules/lodash-es/trimStart.js +0 -43
- package/custom/node_modules/lodash-es/truncate.js +0 -111
- package/custom/node_modules/lodash-es/unary.js +0 -22
- package/custom/node_modules/lodash-es/unescape.js +0 -34
- package/custom/node_modules/lodash-es/union.js +0 -26
- package/custom/node_modules/lodash-es/unionBy.js +0 -39
- package/custom/node_modules/lodash-es/unionWith.js +0 -34
- package/custom/node_modules/lodash-es/uniq.js +0 -25
- package/custom/node_modules/lodash-es/uniqBy.js +0 -31
- package/custom/node_modules/lodash-es/uniqWith.js +0 -28
- package/custom/node_modules/lodash-es/uniqueId.js +0 -28
- package/custom/node_modules/lodash-es/unset.js +0 -34
- package/custom/node_modules/lodash-es/unzip.js +0 -45
- package/custom/node_modules/lodash-es/unzipWith.js +0 -39
- package/custom/node_modules/lodash-es/update.js +0 -35
- package/custom/node_modules/lodash-es/updateWith.js +0 -33
- package/custom/node_modules/lodash-es/upperCase.js +0 -27
- package/custom/node_modules/lodash-es/upperFirst.js +0 -22
- package/custom/node_modules/lodash-es/util.default.js +0 -42
- package/custom/node_modules/lodash-es/util.js +0 -33
- package/custom/node_modules/lodash-es/value.js +0 -1
- package/custom/node_modules/lodash-es/valueOf.js +0 -1
- package/custom/node_modules/lodash-es/values.js +0 -34
- package/custom/node_modules/lodash-es/valuesIn.js +0 -32
- package/custom/node_modules/lodash-es/without.js +0 -31
- package/custom/node_modules/lodash-es/words.js +0 -35
- package/custom/node_modules/lodash-es/wrap.js +0 -30
- package/custom/node_modules/lodash-es/wrapperAt.js +0 -48
- package/custom/node_modules/lodash-es/wrapperChain.js +0 -34
- package/custom/node_modules/lodash-es/wrapperLodash.js +0 -147
- package/custom/node_modules/lodash-es/wrapperReverse.js +0 -44
- package/custom/node_modules/lodash-es/wrapperValue.js +0 -21
- package/custom/node_modules/lodash-es/xor.js +0 -28
- package/custom/node_modules/lodash-es/xorBy.js +0 -39
- package/custom/node_modules/lodash-es/xorWith.js +0 -34
- package/custom/node_modules/lodash-es/zip.js +0 -22
- package/custom/node_modules/lodash-es/zipObject.js +0 -24
- package/custom/node_modules/lodash-es/zipObjectDeep.js +0 -23
- package/custom/node_modules/lodash-es/zipWith.js +0 -32
- package/custom/node_modules/lodash.clonedeep/LICENSE +0 -47
- package/custom/node_modules/lodash.clonedeep/README.md +0 -18
- package/custom/node_modules/lodash.clonedeep/index.js +0 -1748
- package/custom/node_modules/lodash.clonedeep/package.json +0 -17
- package/custom/node_modules/lodash.isequal/LICENSE +0 -47
- package/custom/node_modules/lodash.isequal/README.md +0 -18
- package/custom/node_modules/lodash.isequal/index.js +0 -1848
- package/custom/node_modules/lodash.isequal/package.json +0 -16
- package/custom/node_modules/parchment/LICENSE +0 -30
- package/custom/node_modules/parchment/README.md +0 -271
- package/custom/node_modules/parchment/dist/parchment.d.ts +0 -453
- package/custom/node_modules/parchment/dist/parchment.js +0 -847
- package/custom/node_modules/parchment/dist/parchment.js.map +0 -1
- package/custom/node_modules/parchment/dist/parchment.umd.cjs +0 -2
- package/custom/node_modules/parchment/dist/parchment.umd.cjs.map +0 -1
- package/custom/node_modules/parchment/package.json +0 -53
- package/custom/node_modules/parchment/src/attributor/attributor.ts +0 -62
- package/custom/node_modules/parchment/src/attributor/class.ts +0 -43
- package/custom/node_modules/parchment/src/attributor/store.ts +0 -79
- package/custom/node_modules/parchment/src/attributor/style.ts +0 -44
- package/custom/node_modules/parchment/src/blot/abstract/blot.ts +0 -128
- package/custom/node_modules/parchment/src/blot/abstract/container.ts +0 -48
- package/custom/node_modules/parchment/src/blot/abstract/leaf.ts +0 -57
- package/custom/node_modules/parchment/src/blot/abstract/parent.ts +0 -400
- package/custom/node_modules/parchment/src/blot/abstract/shadow.ts +0 -188
- package/custom/node_modules/parchment/src/blot/block.ts +0 -123
- package/custom/node_modules/parchment/src/blot/embed.ts +0 -34
- package/custom/node_modules/parchment/src/blot/inline.ts +0 -159
- package/custom/node_modules/parchment/src/blot/scroll.ts +0 -216
- package/custom/node_modules/parchment/src/blot/text.ts +0 -100
- package/custom/node_modules/parchment/src/collection/linked-list.ts +0 -201
- package/custom/node_modules/parchment/src/collection/linked-node.ts +0 -8
- package/custom/node_modules/parchment/src/error.ts +0 -12
- package/custom/node_modules/parchment/src/parchment.ts +0 -48
- package/custom/node_modules/parchment/src/registry.ts +0 -155
- package/custom/node_modules/parchment/src/scope.ts +0 -18
- package/custom/node_modules/parchment/tsconfig.json +0 -16
- package/custom/node_modules/quill/LICENSE +0 -31
- package/custom/node_modules/quill/README.md +0 -104
- package/custom/node_modules/quill/assets/base.styl +0 -309
- package/custom/node_modules/quill/assets/bubble/toolbar.styl +0 -14
- package/custom/node_modules/quill/assets/bubble/tooltip.styl +0 -49
- package/custom/node_modules/quill/assets/bubble.styl +0 -45
- package/custom/node_modules/quill/assets/core.styl +0 -215
- package/custom/node_modules/quill/assets/favicon.png +0 -0
- package/custom/node_modules/quill/assets/icons/align-center.svg +0 -5
- package/custom/node_modules/quill/assets/icons/align-justify.svg +0 -5
- package/custom/node_modules/quill/assets/icons/align-left.svg +0 -5
- package/custom/node_modules/quill/assets/icons/align-right.svg +0 -5
- package/custom/node_modules/quill/assets/icons/attachment.svg +0 -3
- package/custom/node_modules/quill/assets/icons/audio.svg +0 -5
- package/custom/node_modules/quill/assets/icons/authorship.svg +0 -5
- package/custom/node_modules/quill/assets/icons/background.svg +0 -52
- package/custom/node_modules/quill/assets/icons/blockquote.svg +0 -6
- package/custom/node_modules/quill/assets/icons/bold.svg +0 -4
- package/custom/node_modules/quill/assets/icons/clean.svg +0 -7
- package/custom/node_modules/quill/assets/icons/code.svg +0 -5
- package/custom/node_modules/quill/assets/icons/color.svg +0 -5
- package/custom/node_modules/quill/assets/icons/comment.svg +0 -3
- package/custom/node_modules/quill/assets/icons/direction-ltr.svg +0 -7
- package/custom/node_modules/quill/assets/icons/direction-rtl.svg +0 -7
- package/custom/node_modules/quill/assets/icons/dropdown.svg +0 -4
- package/custom/node_modules/quill/assets/icons/embed.svg +0 -3
- package/custom/node_modules/quill/assets/icons/emoji.svg +0 -6
- package/custom/node_modules/quill/assets/icons/float-center.svg +0 -5
- package/custom/node_modules/quill/assets/icons/float-full.svg +0 -5
- package/custom/node_modules/quill/assets/icons/float-left.svg +0 -7
- package/custom/node_modules/quill/assets/icons/float-right.svg +0 -7
- package/custom/node_modules/quill/assets/icons/font.svg +0 -5
- package/custom/node_modules/quill/assets/icons/formula.svg +0 -5
- package/custom/node_modules/quill/assets/icons/hashtag.svg +0 -6
- package/custom/node_modules/quill/assets/icons/header-2.svg +0 -3
- package/custom/node_modules/quill/assets/icons/header-3.svg +0 -3
- package/custom/node_modules/quill/assets/icons/header-4.svg +0 -3
- package/custom/node_modules/quill/assets/icons/header-5.svg +0 -3
- package/custom/node_modules/quill/assets/icons/header-6.svg +0 -3
- package/custom/node_modules/quill/assets/icons/header.svg +0 -3
- package/custom/node_modules/quill/assets/icons/horizontal-rule.svg +0 -4
- package/custom/node_modules/quill/assets/icons/image.svg +0 -5
- package/custom/node_modules/quill/assets/icons/indent.svg +0 -6
- package/custom/node_modules/quill/assets/icons/italic.svg +0 -5
- package/custom/node_modules/quill/assets/icons/link.svg +0 -5
- package/custom/node_modules/quill/assets/icons/list-bullet.svg +0 -8
- package/custom/node_modules/quill/assets/icons/list-check.svg +0 -8
- package/custom/node_modules/quill/assets/icons/list-ordered.svg +0 -9
- package/custom/node_modules/quill/assets/icons/map.svg +0 -5
- package/custom/node_modules/quill/assets/icons/mention.svg +0 -4
- package/custom/node_modules/quill/assets/icons/more.svg +0 -3
- package/custom/node_modules/quill/assets/icons/outdent.svg +0 -6
- package/custom/node_modules/quill/assets/icons/redo.svg +0 -4
- package/custom/node_modules/quill/assets/icons/size-decrease.svg +0 -5
- package/custom/node_modules/quill/assets/icons/size-increase.svg +0 -6
- package/custom/node_modules/quill/assets/icons/size.svg +0 -6
- package/custom/node_modules/quill/assets/icons/spacing.svg +0 -9
- package/custom/node_modules/quill/assets/icons/speech.svg +0 -6
- package/custom/node_modules/quill/assets/icons/strike.svg +0 -5
- package/custom/node_modules/quill/assets/icons/subscript.svg +0 -4
- package/custom/node_modules/quill/assets/icons/superscript.svg +0 -4
- package/custom/node_modules/quill/assets/icons/table-border-all.svg +0 -5
- package/custom/node_modules/quill/assets/icons/table-border-bottom.svg +0 -28
- package/custom/node_modules/quill/assets/icons/table-border-left.svg +0 -28
- package/custom/node_modules/quill/assets/icons/table-border-none.svg +0 -25
- package/custom/node_modules/quill/assets/icons/table-border-outside.svg +0 -35
- package/custom/node_modules/quill/assets/icons/table-border-right.svg +0 -28
- package/custom/node_modules/quill/assets/icons/table-border-top.svg +0 -28
- package/custom/node_modules/quill/assets/icons/table-delete-cells.svg +0 -13
- package/custom/node_modules/quill/assets/icons/table-delete-columns.svg +0 -8
- package/custom/node_modules/quill/assets/icons/table-delete-rows.svg +0 -9
- package/custom/node_modules/quill/assets/icons/table-insert-cells.svg +0 -13
- package/custom/node_modules/quill/assets/icons/table-insert-columns.svg +0 -8
- package/custom/node_modules/quill/assets/icons/table-insert-rows.svg +0 -9
- package/custom/node_modules/quill/assets/icons/table-merge-cells.svg +0 -4
- package/custom/node_modules/quill/assets/icons/table-unmerge-cells.svg +0 -7
- package/custom/node_modules/quill/assets/icons/table.svg +0 -11
- package/custom/node_modules/quill/assets/icons/underline.svg +0 -4
- package/custom/node_modules/quill/assets/icons/undo.svg +0 -4
- package/custom/node_modules/quill/assets/icons/video.svg +0 -14
- package/custom/node_modules/quill/assets/snow/toolbar.styl +0 -26
- package/custom/node_modules/quill/assets/snow/tooltip.styl +0 -53
- package/custom/node_modules/quill/assets/snow.styl +0 -18
- package/custom/node_modules/quill/blots/block.d.ts +0 -34
- package/custom/node_modules/quill/blots/block.js +0 -182
- package/custom/node_modules/quill/blots/block.js.map +0 -1
- package/custom/node_modules/quill/blots/break.d.ts +0 -8
- package/custom/node_modules/quill/blots/break.js +0 -21
- package/custom/node_modules/quill/blots/break.js.map +0 -1
- package/custom/node_modules/quill/blots/container.d.ts +0 -4
- package/custom/node_modules/quill/blots/container.js +0 -4
- package/custom/node_modules/quill/blots/container.js.map +0 -1
- package/custom/node_modules/quill/blots/cursor.d.ts +0 -26
- package/custom/node_modules/quill/blots/cursor.js +0 -170
- package/custom/node_modules/quill/blots/cursor.js.map +0 -1
- package/custom/node_modules/quill/blots/embed.d.ts +0 -18
- package/custom/node_modules/quill/blots/embed.js +0 -72
- package/custom/node_modules/quill/blots/embed.js.map +0 -1
- package/custom/node_modules/quill/blots/inline.d.ts +0 -12
- package/custom/node_modules/quill/blots/inline.js +0 -48
- package/custom/node_modules/quill/blots/inline.js.map +0 -1
- package/custom/node_modules/quill/blots/scroll.d.ts +0 -49
- package/custom/node_modules/quill/blots/scroll.js +0 -349
- package/custom/node_modules/quill/blots/scroll.js.map +0 -1
- package/custom/node_modules/quill/blots/text.d.ts +0 -5
- package/custom/node_modules/quill/blots/text.js +0 -17
- package/custom/node_modules/quill/blots/text.js.map +0 -1
- package/custom/node_modules/quill/core/composition.d.ts +0 -12
- package/custom/node_modules/quill/core/composition.js +0 -44
- package/custom/node_modules/quill/core/composition.js.map +0 -1
- package/custom/node_modules/quill/core/editor.d.ts +0 -28
- package/custom/node_modules/quill/core/editor.js +0 -403
- package/custom/node_modules/quill/core/editor.js.map +0 -1
- package/custom/node_modules/quill/core/emitter.d.ts +0 -33
- package/custom/node_modules/quill/core/emitter.js +0 -78
- package/custom/node_modules/quill/core/emitter.js.map +0 -1
- package/custom/node_modules/quill/core/instances.d.ts +0 -3
- package/custom/node_modules/quill/core/instances.js +0 -2
- package/custom/node_modules/quill/core/instances.js.map +0 -1
- package/custom/node_modules/quill/core/logger.d.ts +0 -7
- package/custom/node_modules/quill/core/logger.js +0 -24
- package/custom/node_modules/quill/core/logger.js.map +0 -1
- package/custom/node_modules/quill/core/module.d.ts +0 -8
- package/custom/node_modules/quill/core/module.js +0 -10
- package/custom/node_modules/quill/core/module.js.map +0 -1
- package/custom/node_modules/quill/core/quill.d.ts +0 -218
- package/custom/node_modules/quill/core/quill.js +0 -628
- package/custom/node_modules/quill/core/quill.js.map +0 -1
- package/custom/node_modules/quill/core/selection.d.ts +0 -74
- package/custom/node_modules/quill/core/selection.js +0 -374
- package/custom/node_modules/quill/core/selection.js.map +0 -1
- package/custom/node_modules/quill/core/theme.d.ts +0 -32
- package/custom/node_modules/quill/core/theme.js +0 -28
- package/custom/node_modules/quill/core/theme.js.map +0 -1
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.d.ts +0 -5
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js +0 -29
- package/custom/node_modules/quill/core/utils/createRegistryWithFormats.js.map +0 -1
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.d.ts +0 -8
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.js +0 -75
- package/custom/node_modules/quill/core/utils/scrollRectIntoView.js.map +0 -1
- package/custom/node_modules/quill/core.d.ts +0 -7
- package/custom/node_modules/quill/core.js +0 -37
- package/custom/node_modules/quill/core.js.map +0 -1
- package/custom/node_modules/quill/dist/quill.bubble.css +0 -10
- package/custom/node_modules/quill/dist/quill.bubble.css.map +0 -1
- package/custom/node_modules/quill/dist/quill.core.css +0 -10
- package/custom/node_modules/quill/dist/quill.core.css.map +0 -1
- package/custom/node_modules/quill/dist/quill.core.js +0 -3
- package/custom/node_modules/quill/dist/quill.core.js.LICENSE.txt +0 -7
- package/custom/node_modules/quill/dist/quill.core.js.map +0 -1
- package/custom/node_modules/quill/dist/quill.js +0 -3
- package/custom/node_modules/quill/dist/quill.js.LICENSE.txt +0 -7
- package/custom/node_modules/quill/dist/quill.js.map +0 -1
- package/custom/node_modules/quill/dist/quill.snow.css +0 -10
- package/custom/node_modules/quill/dist/quill.snow.css.map +0 -1
- package/custom/node_modules/quill/formats/align.d.ts +0 -5
- package/custom/node_modules/quill/formats/align.js +0 -10
- package/custom/node_modules/quill/formats/align.js.map +0 -1
- package/custom/node_modules/quill/formats/background.d.ts +0 -5
- package/custom/node_modules/quill/formats/background.js +0 -10
- package/custom/node_modules/quill/formats/background.js.map +0 -1
- package/custom/node_modules/quill/formats/blockquote.d.ts +0 -6
- package/custom/node_modules/quill/formats/blockquote.js +0 -7
- package/custom/node_modules/quill/formats/blockquote.js.map +0 -1
- package/custom/node_modules/quill/formats/bold.d.ts +0 -11
- package/custom/node_modules/quill/formats/bold.js +0 -19
- package/custom/node_modules/quill/formats/bold.js.map +0 -1
- package/custom/node_modules/quill/formats/code.d.ts +0 -15
- package/custom/node_modules/quill/formats/code.js +0 -44
- package/custom/node_modules/quill/formats/code.js.map +0 -1
- package/custom/node_modules/quill/formats/color.d.ts +0 -7
- package/custom/node_modules/quill/formats/color.js +0 -18
- package/custom/node_modules/quill/formats/color.js.map +0 -1
- package/custom/node_modules/quill/formats/direction.d.ts +0 -5
- package/custom/node_modules/quill/formats/direction.js +0 -10
- package/custom/node_modules/quill/formats/direction.js.map +0 -1
- package/custom/node_modules/quill/formats/font.d.ts +0 -7
- package/custom/node_modules/quill/formats/font.js +0 -14
- package/custom/node_modules/quill/formats/font.js.map +0 -1
- package/custom/node_modules/quill/formats/formula.d.ts +0 -10
- package/custom/node_modules/quill/formats/formula.js +0 -33
- package/custom/node_modules/quill/formats/formula.js.map +0 -1
- package/custom/node_modules/quill/formats/header.d.ts +0 -7
- package/custom/node_modules/quill/formats/header.js +0 -10
- package/custom/node_modules/quill/formats/header.js.map +0 -1
- package/custom/node_modules/quill/formats/image.d.ts +0 -13
- package/custom/node_modules/quill/formats/image.js +0 -44
- package/custom/node_modules/quill/formats/image.js.map +0 -1
- package/custom/node_modules/quill/formats/indent.d.ts +0 -8
- package/custom/node_modules/quill/formats/indent.js +0 -30
- package/custom/node_modules/quill/formats/indent.js.map +0 -1
- package/custom/node_modules/quill/formats/italic.d.ts +0 -6
- package/custom/node_modules/quill/formats/italic.js +0 -7
- package/custom/node_modules/quill/formats/italic.js.map +0 -1
- package/custom/node_modules/quill/formats/link.d.ts +0 -13
- package/custom/node_modules/quill/formats/link.js +0 -36
- package/custom/node_modules/quill/formats/link.js.map +0 -1
- package/custom/node_modules/quill/formats/list.d.ts +0 -13
- package/custom/node_modules/quill/formats/list.js +0 -50
- package/custom/node_modules/quill/formats/list.js.map +0 -1
- package/custom/node_modules/quill/formats/script.d.ts +0 -8
- package/custom/node_modules/quill/formats/script.js +0 -21
- package/custom/node_modules/quill/formats/script.js.map +0 -1
- package/custom/node_modules/quill/formats/size.d.ts +0 -4
- package/custom/node_modules/quill/formats/size.js +0 -11
- package/custom/node_modules/quill/formats/size.js.map +0 -1
- package/custom/node_modules/quill/formats/strike.d.ts +0 -6
- package/custom/node_modules/quill/formats/strike.js +0 -7
- package/custom/node_modules/quill/formats/strike.js.map +0 -1
- package/custom/node_modules/quill/formats/table.d.ts +0 -45
- package/custom/node_modules/quill/formats/table.js +0 -176
- package/custom/node_modules/quill/formats/table.js.map +0 -1
- package/custom/node_modules/quill/formats/underline.d.ts +0 -6
- package/custom/node_modules/quill/formats/underline.js +0 -7
- package/custom/node_modules/quill/formats/underline.js.map +0 -1
- package/custom/node_modules/quill/formats/video.d.ts +0 -14
- package/custom/node_modules/quill/formats/video.js +0 -48
- package/custom/node_modules/quill/formats/video.js.map +0 -1
- package/custom/node_modules/quill/modules/clipboard.d.ts +0 -43
- package/custom/node_modules/quill/modules/clipboard.js +0 -475
- package/custom/node_modules/quill/modules/clipboard.js.map +0 -1
- package/custom/node_modules/quill/modules/history.d.ts +0 -36
- package/custom/node_modules/quill/modules/history.js +0 -178
- package/custom/node_modules/quill/modules/history.js.map +0 -1
- package/custom/node_modules/quill/modules/input.d.ts +0 -10
- package/custom/node_modules/quill/modules/input.js +0 -83
- package/custom/node_modules/quill/modules/input.js.map +0 -1
- package/custom/node_modules/quill/modules/keyboard.d.ts +0 -58
- package/custom/node_modules/quill/modules/keyboard.js +0 -713
- package/custom/node_modules/quill/modules/keyboard.js.map +0 -1
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.d.ts +0 -2
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js +0 -12
- package/custom/node_modules/quill/modules/normalizeExternalHTML/index.js.map +0 -1
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -1
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js +0 -24
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +0 -1
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -1
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js +0 -87
- package/custom/node_modules/quill/modules/normalizeExternalHTML/normalizers/msWord.js.map +0 -1
- package/custom/node_modules/quill/modules/syntax.d.ts +0 -50
- package/custom/node_modules/quill/modules/syntax.js +0 -332
- package/custom/node_modules/quill/modules/syntax.js.map +0 -1
- package/custom/node_modules/quill/modules/table.d.ts +0 -20
- package/custom/node_modules/quill/modules/table.js +0 -125
- package/custom/node_modules/quill/modules/table.js.map +0 -1
- package/custom/node_modules/quill/modules/tableEmbed.d.ts +0 -27
- package/custom/node_modules/quill/modules/tableEmbed.js +0 -209
- package/custom/node_modules/quill/modules/tableEmbed.js.map +0 -1
- package/custom/node_modules/quill/modules/toolbar.d.ts +0 -24
- package/custom/node_modules/quill/modules/toolbar.js +0 -265
- package/custom/node_modules/quill/modules/toolbar.js.map +0 -1
- package/custom/node_modules/quill/modules/uiNode.d.ts +0 -19
- package/custom/node_modules/quill/modules/uiNode.js +0 -95
- package/custom/node_modules/quill/modules/uiNode.js.map +0 -1
- package/custom/node_modules/quill/modules/uploader.d.ts +0 -15
- package/custom/node_modules/quill/modules/uploader.js +0 -69
- package/custom/node_modules/quill/modules/uploader.js.map +0 -1
- package/custom/node_modules/quill/package.json +0 -100
- package/custom/node_modules/quill/quill.d.ts +0 -6
- package/custom/node_modules/quill/quill.js +0 -83
- package/custom/node_modules/quill/quill.js.map +0 -1
- package/custom/node_modules/quill/themes/base.d.ts +0 -35
- package/custom/node_modules/quill/themes/base.js +0 -257
- package/custom/node_modules/quill/themes/base.js.map +0 -1
- package/custom/node_modules/quill/themes/bubble.d.ts +0 -18
- package/custom/node_modules/quill/themes/bubble.js +0 -114
- package/custom/node_modules/quill/themes/bubble.js.map +0 -1
- package/custom/node_modules/quill/themes/snow.d.ts +0 -9
- package/custom/node_modules/quill/themes/snow.js +0 -122
- package/custom/node_modules/quill/themes/snow.js.map +0 -1
- package/custom/node_modules/quill/types.d.js +0 -2
- package/custom/node_modules/quill/types.d.js.map +0 -1
- package/custom/node_modules/quill/ui/color-picker.d.ts +0 -7
- package/custom/node_modules/quill/ui/color-picker.js +0 -30
- package/custom/node_modules/quill/ui/color-picker.js.map +0 -1
- package/custom/node_modules/quill/ui/icon-picker.d.ts +0 -7
- package/custom/node_modules/quill/ui/icon-picker.js +0 -22
- package/custom/node_modules/quill/ui/icon-picker.js.map +0 -1
- package/custom/node_modules/quill/ui/icons.d.ts +0 -49
- package/custom/node_modules/quill/ui/icons.js +0 -82
- package/custom/node_modules/quill/ui/icons.js.map +0 -1
- package/custom/node_modules/quill/ui/picker.d.ts +0 -16
- package/custom/node_modules/quill/ui/picker.js +0 -171
- package/custom/node_modules/quill/ui/picker.js.map +0 -1
- package/custom/node_modules/quill/ui/tooltip.d.ts +0 -12
- package/custom/node_modules/quill/ui/tooltip.js +0 -56
- package/custom/node_modules/quill/ui/tooltip.js.map +0 -1
- package/custom/node_modules/quill-delta/LICENSE +0 -14
- package/custom/node_modules/quill-delta/README.md +0 -672
- package/custom/node_modules/quill-delta/dist/AttributeMap.d.ts +0 -10
- package/custom/node_modules/quill-delta/dist/AttributeMap.js +0 -86
- package/custom/node_modules/quill-delta/dist/AttributeMap.js.map +0 -1
- package/custom/node_modules/quill-delta/dist/Delta.d.ts +0 -45
- package/custom/node_modules/quill-delta/dist/Delta.js +0 -478
- package/custom/node_modules/quill-delta/dist/Delta.js.map +0 -1
- package/custom/node_modules/quill-delta/dist/Op.d.ts +0 -11
- package/custom/node_modules/quill-delta/dist/Op.js +0 -22
- package/custom/node_modules/quill-delta/dist/Op.js.map +0 -1
- package/custom/node_modules/quill-delta/dist/OpIterator.d.ts +0 -13
- package/custom/node_modules/quill-delta/dist/OpIterator.js +0 -106
- package/custom/node_modules/quill-delta/dist/OpIterator.js.map +0 -1
- package/custom/node_modules/quill-delta/package.json +0 -77
- package/custom/node_modules/quill-delta/src/AttributeMap.ts +0 -101
- package/custom/node_modules/quill-delta/src/Delta.ts +0 -573
- package/custom/node_modules/quill-delta/src/Op.ts +0 -26
- package/custom/node_modules/quill-delta/src/OpIterator.ts +0 -106
- package/custom/node_modules/quill-delta/tsconfig.json +0 -15
- package/dist/custom/async-queue.ts +0 -31
- package/dist/custom/package-lock.json +0 -74
- package/dist/custom/package.json +0 -15
- package/dist/custom/quillEditor.vue +0 -560
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import Delta, { OpIterator } from 'quill-delta';
|
|
2
|
-
import Module from '../core/module.js';
|
|
3
|
-
const parseCellIdentity = identity => {
|
|
4
|
-
const parts = identity.split(':');
|
|
5
|
-
return [Number(parts[0]) - 1, Number(parts[1]) - 1];
|
|
6
|
-
};
|
|
7
|
-
const stringifyCellIdentity = (row, column) => `${row + 1}:${column + 1}`;
|
|
8
|
-
export const composePosition = (delta, index) => {
|
|
9
|
-
let newIndex = index;
|
|
10
|
-
const thisIter = new OpIterator(delta.ops);
|
|
11
|
-
let offset = 0;
|
|
12
|
-
while (thisIter.hasNext() && offset <= newIndex) {
|
|
13
|
-
const length = thisIter.peekLength();
|
|
14
|
-
const nextType = thisIter.peekType();
|
|
15
|
-
thisIter.next();
|
|
16
|
-
switch (nextType) {
|
|
17
|
-
case 'delete':
|
|
18
|
-
if (length > newIndex - offset) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
newIndex -= length;
|
|
22
|
-
break;
|
|
23
|
-
case 'insert':
|
|
24
|
-
newIndex += length;
|
|
25
|
-
offset += length;
|
|
26
|
-
break;
|
|
27
|
-
default:
|
|
28
|
-
offset += length;
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return newIndex;
|
|
33
|
-
};
|
|
34
|
-
const compactCellData = _ref => {
|
|
35
|
-
let {
|
|
36
|
-
content,
|
|
37
|
-
attributes
|
|
38
|
-
} = _ref;
|
|
39
|
-
const data = {};
|
|
40
|
-
if (content.length() > 0) {
|
|
41
|
-
data.content = content.ops;
|
|
42
|
-
}
|
|
43
|
-
if (attributes && Object.keys(attributes).length > 0) {
|
|
44
|
-
data.attributes = attributes;
|
|
45
|
-
}
|
|
46
|
-
return Object.keys(data).length > 0 ? data : null;
|
|
47
|
-
};
|
|
48
|
-
const compactTableData = _ref2 => {
|
|
49
|
-
let {
|
|
50
|
-
rows,
|
|
51
|
-
columns,
|
|
52
|
-
cells
|
|
53
|
-
} = _ref2;
|
|
54
|
-
const data = {};
|
|
55
|
-
if (rows.length() > 0) {
|
|
56
|
-
data.rows = rows.ops;
|
|
57
|
-
}
|
|
58
|
-
if (columns.length() > 0) {
|
|
59
|
-
data.columns = columns.ops;
|
|
60
|
-
}
|
|
61
|
-
if (Object.keys(cells).length) {
|
|
62
|
-
data.cells = cells;
|
|
63
|
-
}
|
|
64
|
-
return data;
|
|
65
|
-
};
|
|
66
|
-
const reindexCellIdentities = (cells, _ref3) => {
|
|
67
|
-
let {
|
|
68
|
-
rows,
|
|
69
|
-
columns
|
|
70
|
-
} = _ref3;
|
|
71
|
-
const reindexedCells = {};
|
|
72
|
-
Object.keys(cells).forEach(identity => {
|
|
73
|
-
let [row, column] = parseCellIdentity(identity);
|
|
74
|
-
|
|
75
|
-
// @ts-expect-error Fix me later
|
|
76
|
-
row = composePosition(rows, row);
|
|
77
|
-
// @ts-expect-error Fix me later
|
|
78
|
-
column = composePosition(columns, column);
|
|
79
|
-
if (row !== null && column !== null) {
|
|
80
|
-
const newPosition = stringifyCellIdentity(row, column);
|
|
81
|
-
reindexedCells[newPosition] = cells[identity];
|
|
82
|
-
}
|
|
83
|
-
}, false);
|
|
84
|
-
return reindexedCells;
|
|
85
|
-
};
|
|
86
|
-
export const tableHandler = {
|
|
87
|
-
compose(a, b, keepNull) {
|
|
88
|
-
const rows = new Delta(a.rows || []).compose(new Delta(b.rows || []));
|
|
89
|
-
const columns = new Delta(a.columns || []).compose(new Delta(b.columns || []));
|
|
90
|
-
const cells = reindexCellIdentities(a.cells || {}, {
|
|
91
|
-
rows: new Delta(b.rows || []),
|
|
92
|
-
columns: new Delta(b.columns || [])
|
|
93
|
-
});
|
|
94
|
-
Object.keys(b.cells || {}).forEach(identity => {
|
|
95
|
-
const aCell = cells[identity] || {};
|
|
96
|
-
// @ts-expect-error Fix me later
|
|
97
|
-
const bCell = b.cells[identity];
|
|
98
|
-
const content = new Delta(aCell.content || []).compose(new Delta(bCell.content || []));
|
|
99
|
-
const attributes = Delta.AttributeMap.compose(aCell.attributes, bCell.attributes, keepNull);
|
|
100
|
-
const cell = compactCellData({
|
|
101
|
-
content,
|
|
102
|
-
attributes
|
|
103
|
-
});
|
|
104
|
-
if (cell) {
|
|
105
|
-
cells[identity] = cell;
|
|
106
|
-
} else {
|
|
107
|
-
delete cells[identity];
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return compactTableData({
|
|
111
|
-
rows,
|
|
112
|
-
columns,
|
|
113
|
-
cells
|
|
114
|
-
});
|
|
115
|
-
},
|
|
116
|
-
transform(a, b, priority) {
|
|
117
|
-
const aDeltas = {
|
|
118
|
-
rows: new Delta(a.rows || []),
|
|
119
|
-
columns: new Delta(a.columns || [])
|
|
120
|
-
};
|
|
121
|
-
const bDeltas = {
|
|
122
|
-
rows: new Delta(b.rows || []),
|
|
123
|
-
columns: new Delta(b.columns || [])
|
|
124
|
-
};
|
|
125
|
-
const rows = aDeltas.rows.transform(bDeltas.rows, priority);
|
|
126
|
-
const columns = aDeltas.columns.transform(bDeltas.columns, priority);
|
|
127
|
-
const cells = reindexCellIdentities(b.cells || {}, {
|
|
128
|
-
rows: bDeltas.rows.transform(aDeltas.rows, !priority),
|
|
129
|
-
columns: bDeltas.columns.transform(aDeltas.columns, !priority)
|
|
130
|
-
});
|
|
131
|
-
Object.keys(a.cells || {}).forEach(identity => {
|
|
132
|
-
let [row, column] = parseCellIdentity(identity);
|
|
133
|
-
// @ts-expect-error Fix me later
|
|
134
|
-
row = composePosition(rows, row);
|
|
135
|
-
// @ts-expect-error Fix me later
|
|
136
|
-
column = composePosition(columns, column);
|
|
137
|
-
if (row !== null && column !== null) {
|
|
138
|
-
const newIdentity = stringifyCellIdentity(row, column);
|
|
139
|
-
|
|
140
|
-
// @ts-expect-error Fix me later
|
|
141
|
-
const aCell = a.cells[identity];
|
|
142
|
-
const bCell = cells[newIdentity];
|
|
143
|
-
if (bCell) {
|
|
144
|
-
const content = new Delta(aCell.content || []).transform(new Delta(bCell.content || []), priority);
|
|
145
|
-
const attributes = Delta.AttributeMap.transform(aCell.attributes, bCell.attributes, priority);
|
|
146
|
-
const cell = compactCellData({
|
|
147
|
-
content,
|
|
148
|
-
attributes
|
|
149
|
-
});
|
|
150
|
-
if (cell) {
|
|
151
|
-
cells[newIdentity] = cell;
|
|
152
|
-
} else {
|
|
153
|
-
delete cells[newIdentity];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
return compactTableData({
|
|
159
|
-
rows,
|
|
160
|
-
columns,
|
|
161
|
-
cells
|
|
162
|
-
});
|
|
163
|
-
},
|
|
164
|
-
invert(change, base) {
|
|
165
|
-
const rows = new Delta(change.rows || []).invert(new Delta(base.rows || []));
|
|
166
|
-
const columns = new Delta(change.columns || []).invert(new Delta(base.columns || []));
|
|
167
|
-
const cells = reindexCellIdentities(change.cells || {}, {
|
|
168
|
-
rows,
|
|
169
|
-
columns
|
|
170
|
-
});
|
|
171
|
-
Object.keys(cells).forEach(identity => {
|
|
172
|
-
const changeCell = cells[identity] || {};
|
|
173
|
-
const baseCell = (base.cells || {})[identity] || {};
|
|
174
|
-
const content = new Delta(changeCell.content || []).invert(new Delta(baseCell.content || []));
|
|
175
|
-
const attributes = Delta.AttributeMap.invert(changeCell.attributes, baseCell.attributes);
|
|
176
|
-
const cell = compactCellData({
|
|
177
|
-
content,
|
|
178
|
-
attributes
|
|
179
|
-
});
|
|
180
|
-
if (cell) {
|
|
181
|
-
cells[identity] = cell;
|
|
182
|
-
} else {
|
|
183
|
-
delete cells[identity];
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
// Cells may be removed when their row or column is removed
|
|
188
|
-
// by row/column deltas. We should add them back.
|
|
189
|
-
Object.keys(base.cells || {}).forEach(identity => {
|
|
190
|
-
const [row, column] = parseCellIdentity(identity);
|
|
191
|
-
if (composePosition(new Delta(change.rows || []), row) === null || composePosition(new Delta(change.columns || []), column) === null) {
|
|
192
|
-
// @ts-expect-error Fix me later
|
|
193
|
-
cells[identity] = base.cells[identity];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
return compactTableData({
|
|
197
|
-
rows,
|
|
198
|
-
columns,
|
|
199
|
-
cells
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
class TableEmbed extends Module {
|
|
204
|
-
static register() {
|
|
205
|
-
Delta.registerEmbed('table-embed', tableHandler);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
export default TableEmbed;
|
|
209
|
-
//# sourceMappingURL=tableEmbed.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableEmbed.js","names":["Delta","OpIterator","Module","parseCellIdentity","identity","parts","split","Number","stringifyCellIdentity","row","column","composePosition","delta","index","newIndex","thisIter","ops","offset","hasNext","length","peekLength","nextType","peekType","next","compactCellData","_ref","content","attributes","data","Object","keys","compactTableData","_ref2","rows","columns","cells","reindexCellIdentities","_ref3","reindexedCells","forEach","newPosition","tableHandler","compose","a","b","keepNull","aCell","bCell","AttributeMap","cell","transform","priority","aDeltas","bDeltas","newIdentity","invert","change","base","changeCell","baseCell","TableEmbed","register","registerEmbed"],"sources":["../../src/modules/tableEmbed.ts"],"sourcesContent":["import Delta, { OpIterator } from 'quill-delta';\nimport type { Op, AttributeMap } from 'quill-delta';\nimport Module from '../core/module.js';\n\nexport type CellData = {\n content?: Delta['ops'];\n attributes?: Record<string, unknown>;\n};\n\nexport type TableRowColumnOp = Omit<Op, 'insert'> & {\n insert?: { id: string };\n};\n\nexport interface TableData {\n rows?: Delta['ops'];\n columns?: Delta['ops'];\n cells?: Record<string, CellData>;\n}\n\nconst parseCellIdentity = (identity: string) => {\n const parts = identity.split(':');\n return [Number(parts[0]) - 1, Number(parts[1]) - 1];\n};\n\nconst stringifyCellIdentity = (row: number, column: number) =>\n `${row + 1}:${column + 1}`;\n\nexport const composePosition = (delta: Delta, index: number) => {\n let newIndex = index;\n const thisIter = new OpIterator(delta.ops);\n let offset = 0;\n while (thisIter.hasNext() && offset <= newIndex) {\n const length = thisIter.peekLength();\n const nextType = thisIter.peekType();\n thisIter.next();\n switch (nextType) {\n case 'delete':\n if (length > newIndex - offset) {\n return null;\n }\n newIndex -= length;\n break;\n case 'insert':\n newIndex += length;\n offset += length;\n break;\n default:\n offset += length;\n break;\n }\n }\n return newIndex;\n};\n\nconst compactCellData = ({\n content,\n attributes,\n}: {\n content: Delta;\n attributes: AttributeMap | undefined;\n}) => {\n const data: CellData = {};\n if (content.length() > 0) {\n data.content = content.ops;\n }\n if (attributes && Object.keys(attributes).length > 0) {\n data.attributes = attributes;\n }\n return Object.keys(data).length > 0 ? data : null;\n};\n\nconst compactTableData = ({\n rows,\n columns,\n cells,\n}: {\n rows: Delta;\n columns: Delta;\n cells: Record<string, CellData>;\n}) => {\n const data: TableData = {};\n if (rows.length() > 0) {\n data.rows = rows.ops;\n }\n\n if (columns.length() > 0) {\n data.columns = columns.ops;\n }\n\n if (Object.keys(cells).length) {\n data.cells = cells;\n }\n\n return data;\n};\n\nconst reindexCellIdentities = (\n cells: Record<string, CellData>,\n { rows, columns }: { rows: Delta; columns: Delta },\n) => {\n const reindexedCells: Record<string, CellData> = {};\n Object.keys(cells).forEach((identity) => {\n let [row, column] = parseCellIdentity(identity);\n\n // @ts-expect-error Fix me later\n row = composePosition(rows, row);\n // @ts-expect-error Fix me later\n column = composePosition(columns, column);\n\n if (row !== null && column !== null) {\n const newPosition = stringifyCellIdentity(row, column);\n reindexedCells[newPosition] = cells[identity];\n }\n }, false);\n return reindexedCells;\n};\n\nexport const tableHandler = {\n compose(a: TableData, b: TableData, keepNull?: boolean) {\n const rows = new Delta(a.rows || []).compose(new Delta(b.rows || []));\n const columns = new Delta(a.columns || []).compose(\n new Delta(b.columns || []),\n );\n\n const cells = reindexCellIdentities(a.cells || {}, {\n rows: new Delta(b.rows || []),\n columns: new Delta(b.columns || []),\n });\n\n Object.keys(b.cells || {}).forEach((identity) => {\n const aCell = cells[identity] || {};\n // @ts-expect-error Fix me later\n const bCell = b.cells[identity];\n\n const content = new Delta(aCell.content || []).compose(\n new Delta(bCell.content || []),\n );\n\n const attributes = Delta.AttributeMap.compose(\n aCell.attributes,\n bCell.attributes,\n keepNull,\n );\n\n const cell = compactCellData({ content, attributes });\n if (cell) {\n cells[identity] = cell;\n } else {\n delete cells[identity];\n }\n });\n\n return compactTableData({ rows, columns, cells });\n },\n transform(a: TableData, b: TableData, priority: boolean) {\n const aDeltas = {\n rows: new Delta(a.rows || []),\n columns: new Delta(a.columns || []),\n };\n\n const bDeltas = {\n rows: new Delta(b.rows || []),\n columns: new Delta(b.columns || []),\n };\n\n const rows = aDeltas.rows.transform(bDeltas.rows, priority);\n const columns = aDeltas.columns.transform(bDeltas.columns, priority);\n\n const cells = reindexCellIdentities(b.cells || {}, {\n rows: bDeltas.rows.transform(aDeltas.rows, !priority),\n columns: bDeltas.columns.transform(aDeltas.columns, !priority),\n });\n\n Object.keys(a.cells || {}).forEach((identity) => {\n let [row, column] = parseCellIdentity(identity);\n // @ts-expect-error Fix me later\n row = composePosition(rows, row);\n // @ts-expect-error Fix me later\n column = composePosition(columns, column);\n\n if (row !== null && column !== null) {\n const newIdentity = stringifyCellIdentity(row, column);\n\n // @ts-expect-error Fix me later\n const aCell = a.cells[identity];\n const bCell = cells[newIdentity];\n if (bCell) {\n const content = new Delta(aCell.content || []).transform(\n new Delta(bCell.content || []),\n priority,\n );\n\n const attributes = Delta.AttributeMap.transform(\n aCell.attributes,\n bCell.attributes,\n priority,\n );\n\n const cell = compactCellData({ content, attributes });\n if (cell) {\n cells[newIdentity] = cell;\n } else {\n delete cells[newIdentity];\n }\n }\n }\n });\n\n return compactTableData({ rows, columns, cells });\n },\n invert(change: TableData, base: TableData) {\n const rows = new Delta(change.rows || []).invert(\n new Delta(base.rows || []),\n );\n const columns = new Delta(change.columns || []).invert(\n new Delta(base.columns || []),\n );\n const cells = reindexCellIdentities(change.cells || {}, {\n rows,\n columns,\n });\n Object.keys(cells).forEach((identity) => {\n const changeCell = cells[identity] || {};\n const baseCell = (base.cells || {})[identity] || {};\n const content = new Delta(changeCell.content || []).invert(\n new Delta(baseCell.content || []),\n );\n const attributes = Delta.AttributeMap.invert(\n changeCell.attributes,\n baseCell.attributes,\n );\n const cell = compactCellData({ content, attributes });\n if (cell) {\n cells[identity] = cell;\n } else {\n delete cells[identity];\n }\n });\n\n // Cells may be removed when their row or column is removed\n // by row/column deltas. We should add them back.\n Object.keys(base.cells || {}).forEach((identity) => {\n const [row, column] = parseCellIdentity(identity);\n if (\n composePosition(new Delta(change.rows || []), row) === null ||\n composePosition(new Delta(change.columns || []), column) === null\n ) {\n // @ts-expect-error Fix me later\n cells[identity] = base.cells[identity];\n }\n });\n\n return compactTableData({ rows, columns, cells });\n },\n};\n\nclass TableEmbed extends Module {\n static register() {\n Delta.registerEmbed('table-embed', tableHandler);\n }\n}\n\nexport default TableEmbed;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,aAAa;AAE/C,OAAOC,MAAM,MAAM,mBAAmB;AAiBtC,MAAMC,iBAAiB,GAAIC,QAAgB,IAAK;EAC9C,MAAMC,KAAK,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EACjC,OAAO,CAACC,MAAM,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAEE,MAAM,CAACF,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AACrD,CAAC;AAED,MAAMG,qBAAqB,GAAGA,CAACC,GAAW,EAAEC,MAAc,KACvD,GAAED,GAAG,GAAG,CAAE,IAAGC,MAAM,GAAG,CAAE,EAAC;AAE5B,OAAO,MAA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D,IAAIsB,IAAI,EAAE;QACRd,KAAK,CAAC/B,QAAQ,CAAC,GAAG6C,IAAI;MACxB,CAAC,MAAM;QACL,OAAOd,KAAK,CAAC/B,QAAQ,CAAC;MACxB;IACF,CAAC,CAAC;;IAEF;IACA;IACAyB,MAAM,CAACC,IAAI,CAAC2B,IAAI,CAACtB,KAAK,IAAI,CAAC,CAAC,CAAC,CAACI,OAAO,CAAEnC,QAAQ,IAAK;MAClD,MAAM,CAACK,GAAG,EAAEC,MAAM,CAAC,GAAGP,iBAAiB,CAACC,QAAQ,CAAC;MACjD,IACEO,eAAe,CAAC,IAAIX,KAAK,CAACwD,MAAM,CAACvB,IAAI,IAAI,EAAE,CAAC,EAAExB,GAAG,CAAC,KAAK,IAAI,IAC3DE,eAAe,CAAC,IAAIX,KAAK,CAACwD,MAAM,CAACtB,OAAO,IAAI,EAAE,CAAC,EAAExB,MAAM,CAAC,KAAK,IAAI,EACjE;QACA;QACAyB,KAAK,CAAC/B,QAAQ,CAAC,GAAGqD,IAAI,CAACtB,KAAK,CAAC/B,QAAQ,CAAC;MACxC;IACF,CAAC,CAAC;IAEF,OAAO2B,gBAAgB,CAAC;MAAEE,IAAI;MAAEC,OAAO;MAAEC;IAAM,CAAC,CAAC;EACnD;AACF,CAAC;AAED,MAAMyB,UAAU,SAAS1D,MAAM,CAAC;EAC9B,OAAO2D,QAAQA,CAAA,EAAG;IAChB7D,KAAK,CAAC8D,aAAa,CAAC,aAAa,EAAErB,YAAY,CAAC;EAClD;AACF;AAEA,eAAemB,UAAU","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import Quill from '../core/quill.js';
|
|
2
|
-
import Module from '../core/module.js';
|
|
3
|
-
import type { Range } from '../core/selection.js';
|
|
4
|
-
type Handler = (this: Toolbar, value: any) => void;
|
|
5
|
-
export type ToolbarConfig = Array<string[] | Array<string | Record<string, unknown>>>;
|
|
6
|
-
export interface ToolbarProps {
|
|
7
|
-
container?: HTMLElement | ToolbarConfig | null;
|
|
8
|
-
handlers?: Record<string, Handler>;
|
|
9
|
-
option?: number;
|
|
10
|
-
module?: boolean;
|
|
11
|
-
theme?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare class Toolbar extends Module<ToolbarProps> {
|
|
14
|
-
static DEFAULTS: ToolbarProps;
|
|
15
|
-
container?: HTMLElement | null;
|
|
16
|
-
controls: [string, HTMLElement][];
|
|
17
|
-
handlers: Record<string, Handler>;
|
|
18
|
-
constructor(quill: Quill, options: Partial<ToolbarProps>);
|
|
19
|
-
addHandler(format: string, handler: Handler): void;
|
|
20
|
-
attach(input: HTMLElement): void;
|
|
21
|
-
update(range: Range | null): void;
|
|
22
|
-
}
|
|
23
|
-
declare function addControls(container: HTMLElement, groups: (string | Record<string, unknown>)[][] | (string | Record<string, unknown>)[]): void;
|
|
24
|
-
export { Toolbar as default, addControls };
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import Delta from 'quill-delta';
|
|
2
|
-
import { EmbedBlot, Scope } from 'parchment';
|
|
3
|
-
import Quill from '../core/quill.js';
|
|
4
|
-
import logger from '../core/logger.js';
|
|
5
|
-
import Module from '../core/module.js';
|
|
6
|
-
const debug = logger('quill:toolbar');
|
|
7
|
-
class Toolbar extends Module {
|
|
8
|
-
constructor(quill, options) {
|
|
9
|
-
super(quill, options);
|
|
10
|
-
if (Array.isArray(this.options.container)) {
|
|
11
|
-
const container = document.createElement('div');
|
|
12
|
-
container.setAttribute('role', 'toolbar');
|
|
13
|
-
addControls(container, this.options.container);
|
|
14
|
-
quill.container?.parentNode?.insertBefore(container, quill.container);
|
|
15
|
-
this.container = container;
|
|
16
|
-
} else if (typeof this.options.container === 'string') {
|
|
17
|
-
this.container = document.querySelector(this.options.container);
|
|
18
|
-
} else {
|
|
19
|
-
this.container = this.options.container;
|
|
20
|
-
}
|
|
21
|
-
if (!(this.container instanceof HTMLElement)) {
|
|
22
|
-
debug.error('Container required for toolbar', this.options);
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
this.container.classList.add('ql-toolbar');
|
|
26
|
-
this.controls = [];
|
|
27
|
-
this.handlers = {};
|
|
28
|
-
if (this.options.handlers) {
|
|
29
|
-
Object.keys(this.options.handlers).forEach(format => {
|
|
30
|
-
const handler = this.options.handlers?.[format];
|
|
31
|
-
if (handler) {
|
|
32
|
-
this.addHandler(format, handler);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
Array.from(this.container.querySelectorAll('button, select')).forEach(input => {
|
|
37
|
-
// @ts-expect-error
|
|
38
|
-
this.attach(input);
|
|
39
|
-
});
|
|
40
|
-
this.quill.on(Quill.events.EDITOR_CHANGE, () => {
|
|
41
|
-
const [range] = this.quill.selection.getRange(); // quill.getSelection triggers update
|
|
42
|
-
this.update(range);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
addHandler(format, handler) {
|
|
46
|
-
this.handlers[format] = handler;
|
|
47
|
-
}
|
|
48
|
-
attach(input) {
|
|
49
|
-
let format = Array.from(input.classList).find(className => {
|
|
50
|
-
return className.indexOf('ql-') === 0;
|
|
51
|
-
});
|
|
52
|
-
if (!format) return;
|
|
53
|
-
format = format.slice('ql-'.length);
|
|
54
|
-
if (input.tagName === 'BUTTON') {
|
|
55
|
-
input.setAttribute('type', 'button');
|
|
56
|
-
}
|
|
57
|
-
if (this.handlers[format] == null && this.quill.scroll.query(format) == null) {
|
|
58
|
-
debug.warn('ignoring attaching to nonexistent format', format, input);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const eventName = input.tagName === 'SELECT' ? 'change' : 'click';
|
|
62
|
-
input.addEventListener(eventName, e => {
|
|
63
|
-
let value;
|
|
64
|
-
if (input.tagName === 'SELECT') {
|
|
65
|
-
// @ts-expect-error
|
|
66
|
-
if (input.selectedIndex < 0) return;
|
|
67
|
-
// @ts-expect-error
|
|
68
|
-
const selected = input.options[input.selectedIndex];
|
|
69
|
-
if (selected.hasAttribute('selected')) {
|
|
70
|
-
value = false;
|
|
71
|
-
} else {
|
|
72
|
-
value = selected.value || false;
|
|
73
|
-
}
|
|
74
|
-
} else {
|
|
75
|
-
if (input.classList.contains('ql-active')) {
|
|
76
|
-
value = false;
|
|
77
|
-
} else {
|
|
78
|
-
// @ts-expect-error
|
|
79
|
-
value = input.value || !input.hasAttribute('value');
|
|
80
|
-
}
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
}
|
|
83
|
-
this.quill.focus();
|
|
84
|
-
const [range] = this.quill.selection.getRange();
|
|
85
|
-
if (this.handlers[format] != null) {
|
|
86
|
-
this.handlers[format].call(this, value);
|
|
87
|
-
} else if (
|
|
88
|
-
// @ts-expect-error
|
|
89
|
-
this.quill.scroll.query(format).prototype instanceof EmbedBlot) {
|
|
90
|
-
value = prompt(`Enter ${format}`); // eslint-disable-line no-alert
|
|
91
|
-
if (!value) return;
|
|
92
|
-
this.quill.updateContents(new Delta()
|
|
93
|
-
// @ts-expect-error Fix me later
|
|
94
|
-
.retain(range.index)
|
|
95
|
-
// @ts-expect-error Fix me later
|
|
96
|
-
.delete(range.length).insert({
|
|
97
|
-
[format]: value
|
|
98
|
-
}), Quill.sources.USER);
|
|
99
|
-
} else {
|
|
100
|
-
this.quill.format(format, value, Quill.sources.USER);
|
|
101
|
-
}
|
|
102
|
-
this.update(range);
|
|
103
|
-
});
|
|
104
|
-
this.controls.push([format, input]);
|
|
105
|
-
}
|
|
106
|
-
update(range) {
|
|
107
|
-
const formats = range == null ? {} : this.quill.getFormat(range);
|
|
108
|
-
this.controls.forEach(pair => {
|
|
109
|
-
const [format, input] = pair;
|
|
110
|
-
if (input.tagName === 'SELECT') {
|
|
111
|
-
let option = null;
|
|
112
|
-
if (range == null) {
|
|
113
|
-
option = null;
|
|
114
|
-
} else if (formats[format] == null) {
|
|
115
|
-
option = input.querySelector('option[selected]');
|
|
116
|
-
} else if (!Array.isArray(formats[format])) {
|
|
117
|
-
let value = formats[format];
|
|
118
|
-
if (typeof value === 'string') {
|
|
119
|
-
value = value.replace(/"/g, '\\"');
|
|
120
|
-
}
|
|
121
|
-
option = input.querySelector(`option[value="${value}"]`);
|
|
122
|
-
}
|
|
123
|
-
if (option == null) {
|
|
124
|
-
// @ts-expect-error TODO fix me later
|
|
125
|
-
input.value = ''; // TODO make configurable?
|
|
126
|
-
// @ts-expect-error TODO fix me later
|
|
127
|
-
input.selectedIndex = -1;
|
|
128
|
-
} else {
|
|
129
|
-
option.selected = true;
|
|
130
|
-
}
|
|
131
|
-
} else if (range == null) {
|
|
132
|
-
input.classList.remove('ql-active');
|
|
133
|
-
input.setAttribute('aria-pressed', 'false');
|
|
134
|
-
} else if (input.hasAttribute('value')) {
|
|
135
|
-
// both being null should match (default values)
|
|
136
|
-
// '1' should match with 1 (headers)
|
|
137
|
-
const value = formats[format];
|
|
138
|
-
const isActive = value === input.getAttribute('value') || value != null && value.toString() === input.getAttribute('value') || value == null && !input.getAttribute('value');
|
|
139
|
-
input.classList.toggle('ql-active', isActive);
|
|
140
|
-
input.setAttribute('aria-pressed', isActive.toString());
|
|
141
|
-
} else {
|
|
142
|
-
const isActive = formats[format] != null;
|
|
143
|
-
input.classList.toggle('ql-active', isActive);
|
|
144
|
-
input.setAttribute('aria-pressed', isActive.toString());
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
Toolbar.DEFAULTS = {};
|
|
150
|
-
function addButton(container, format, value) {
|
|
151
|
-
const input = document.createElement('button');
|
|
152
|
-
input.setAttribute('type', 'button');
|
|
153
|
-
input.classList.add(`ql-${format}`);
|
|
154
|
-
input.setAttribute('aria-pressed', 'false');
|
|
155
|
-
if (value != null) {
|
|
156
|
-
input.value = value;
|
|
157
|
-
input.setAttribute('aria-label', `${format}: ${value}`);
|
|
158
|
-
} else {
|
|
159
|
-
input.setAttribute('aria-label', format);
|
|
160
|
-
}
|
|
161
|
-
container.appendChild(input);
|
|
162
|
-
}
|
|
163
|
-
function addControls(container, groups) {
|
|
164
|
-
if (!Array.isArray(groups[0])) {
|
|
165
|
-
// @ts-expect-error
|
|
166
|
-
groups = [groups];
|
|
167
|
-
}
|
|
168
|
-
groups.forEach(controls => {
|
|
169
|
-
const group = document.createElement('span');
|
|
170
|
-
group.classList.add('ql-formats');
|
|
171
|
-
controls.forEach(control => {
|
|
172
|
-
if (typeof control === 'string') {
|
|
173
|
-
addButton(group, control);
|
|
174
|
-
} else {
|
|
175
|
-
const format = Object.keys(control)[0];
|
|
176
|
-
const value = control[format];
|
|
177
|
-
if (Array.isArray(value)) {
|
|
178
|
-
addSelect(group, format, value);
|
|
179
|
-
} else {
|
|
180
|
-
addButton(group, format, value);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
container.appendChild(group);
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
function addSelect(container, format, values) {
|
|
188
|
-
const input = document.createElement('select');
|
|
189
|
-
input.classList.add(`ql-${format}`);
|
|
190
|
-
values.forEach(value => {
|
|
191
|
-
const option = document.createElement('option');
|
|
192
|
-
if (value !== false) {
|
|
193
|
-
option.setAttribute('value', String(value));
|
|
194
|
-
} else {
|
|
195
|
-
option.setAttribute('selected', 'selected');
|
|
196
|
-
}
|
|
197
|
-
input.appendChild(option);
|
|
198
|
-
});
|
|
199
|
-
container.appendChild(input);
|
|
200
|
-
}
|
|
201
|
-
Toolbar.DEFAULTS = {
|
|
202
|
-
container: null,
|
|
203
|
-
handlers: {
|
|
204
|
-
clean() {
|
|
205
|
-
const range = this.quill.getSelection();
|
|
206
|
-
if (range == null) return;
|
|
207
|
-
if (range.length === 0) {
|
|
208
|
-
const formats = this.quill.getFormat();
|
|
209
|
-
Object.keys(formats).forEach(name => {
|
|
210
|
-
// Clean functionality in existing apps only clean inline formats
|
|
211
|
-
if (this.quill.scroll.query(name, Scope.INLINE) != null) {
|
|
212
|
-
this.quill.format(name, false, Quill.sources.USER);
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
} else {
|
|
216
|
-
this.quill.removeFormat(range.index, range.length, Quill.sources.USER);
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
direction(value) {
|
|
220
|
-
const {
|
|
221
|
-
align
|
|
222
|
-
} = this.quill.getFormat();
|
|
223
|
-
if (value === 'rtl' && align == null) {
|
|
224
|
-
this.quill.format('align', 'right', Quill.sources.USER);
|
|
225
|
-
} else if (!value && align === 'right') {
|
|
226
|
-
this.quill.format('align', false, Quill.sources.USER);
|
|
227
|
-
}
|
|
228
|
-
this.quill.format('direction', value, Quill.sources.USER);
|
|
229
|
-
},
|
|
230
|
-
indent(value) {
|
|
231
|
-
const range = this.quill.getSelection();
|
|
232
|
-
// @ts-expect-error
|
|
233
|
-
const formats = this.quill.getFormat(range);
|
|
234
|
-
// @ts-expect-error
|
|
235
|
-
const indent = parseInt(formats.indent || 0, 10);
|
|
236
|
-
if (value === '+1' || value === '-1') {
|
|
237
|
-
let modifier = value === '+1' ? 1 : -1;
|
|
238
|
-
if (formats.direction === 'rtl') modifier *= -1;
|
|
239
|
-
this.quill.format('indent', indent + modifier, Quill.sources.USER);
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
link(value) {
|
|
243
|
-
if (value === true) {
|
|
244
|
-
value = prompt('Enter link URL:'); // eslint-disable-line no-alert
|
|
245
|
-
}
|
|
246
|
-
this.quill.format('link', value, Quill.sources.USER);
|
|
247
|
-
},
|
|
248
|
-
list(value) {
|
|
249
|
-
const range = this.quill.getSelection();
|
|
250
|
-
// @ts-expect-error
|
|
251
|
-
const formats = this.quill.getFormat(range);
|
|
252
|
-
if (value === 'check') {
|
|
253
|
-
if (formats.list === 'checked' || formats.list === 'unchecked') {
|
|
254
|
-
this.quill.format('list', false, Quill.sources.USER);
|
|
255
|
-
} else {
|
|
256
|
-
this.quill.format('list', 'unchecked', Quill.sources.USER);
|
|
257
|
-
}
|
|
258
|
-
} else {
|
|
259
|
-
this.quill.format('list', value, Quill.sources.USER);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
export { Toolbar as default, addControls };
|
|
265
|
-
//# sourceMappingURL=toolbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.js","names":["Delta","EmbedBlot","Scope","Quill","logger","Module","debug","Toolbar","constructor","quill","options","Array","isArray","container","document","createElement","setAttribute","addControls","parentNode","insertBefore","querySelector","HTMLElement","error","classList","add","controls","handlers","Object","keys","forEach","format","handler","addHandler","from","querySelectorAll","input","attach","on","events","EDITOR_CHANGE","range","selection","getRange","update","find","className","indexOf","slice","length","tagName","scroll","query","warn","eventName","addEventListener","e","value","selectedIndex","selected","hasAttribute","contains","preventDefault","focus","call","prototype","prompt","updateContents","retain","index","delete","insert","sources","USER","push","formats","getFormat","pair","option","replace","remove","isActive","getAttribute","toString","toggle","DEFAULTS","addButton","appendChild","groups","group","control","addSelect","values","String","clean","getSelection","name","INLINE","removeFormat","direction","align","indent","parseInt","modifier","link","list","default"],"sources":["../../src/modules/toolbar.ts"],"sourcesContent":["import Delta from 'quill-delta';\nimport { EmbedBlot, Scope } from 'parchment';\nimport Quill from '../core/quill.js';\nimport logger from '../core/logger.js';\nimport Module from '../core/module.js';\nimport type { Range } from '../core/selection.js';\n\nconst debug = logger('quill:toolbar');\n\ntype Handler = (this: Toolbar, value: any) => void;\n\nexport type ToolbarConfig = Array<\n string[] | Array<string | Record<string, unknown>>\n>;\nexport interface ToolbarProps {\n container?: HTMLElement | ToolbarConfig | null;\n handlers?: Record<string, Handler>;\n option?: number;\n module?: boolean;\n theme?: boolean;\n}\n\nclass Toolbar extends Module<ToolbarProps> {\n static DEFAULTS: ToolbarProps;\n\n container?: HTMLElement | null;\n controls: [string, HTMLElement][];\n handlers: Record<string, Handler>;\n\n constructor(quill: Quill, options: Partial<ToolbarProps>) {\n super(quill, options);\n if (Array.isArray(this.options.container)) {\n const container = document.createElement('div');\n container.setAttribute('role', 'toolbar');\n addControls(container, this.options.container);\n quill.container?.parentNode?.insertBefore(container, quill.container);\n this.container = container;\n } else if (typeof this.options.container === 'string') {\n this.container = document.querySelector(this.options.container);\n } else {\n this.container = this.options.container;\n }\n if (!(this.container instanceof HTMLElement)) {\n debug.error('Container required for toolbar', this.options);\n return;\n }\n this.container.classList.add('ql-toolbar');\n this.controls = [];\n this.handlers = {};\n if (this.options.handlers) {\n Object.keys(this.options.handlers).forEach((format) => {\n const handler = this.options.handlers?.[format];\n if (handler) {\n this.addHandler(format, handler);\n }\n });\n }\n Array.from(this.container.querySelectorAll('button, select')).forEach(\n (input) => {\n // @ts-expect-error\n this.attach(input);\n },\n );\n this.quill.on(Quill.events.EDITOR_CHANGE, () => {\n const [range] = this.quill.selection.getRange(); // quill.getSelection triggers update\n this.update(range);\n });\n }\n\n addHandler(format: string, handler: Handler) {\n this.handlers[format] = handler;\n }\n\n attach(input: HTMLElement) {\n let format = Array.from(input.classList).find((className) => {\n return className.indexOf('ql-') === 0;\n });\n if (!format) return;\n format = format.slice('ql-'.length);\n if (input.tagName === 'BUTTON') {\n input.setAttribute('type', 'button');\n }\n if (\n this.handlers[format] == null &&\n this.quill.scroll.query(format) == null\n ) {\n debug.warn('ignoring attaching to nonexistent format', format, input);\n return;\n }\n const eventName = input.tagName === 'SELECT' ? 'change' : 'click';\n input.addEventListener(eventName, (e) => {\n let value;\n if (input.tagName === 'SELECT') {\n // @ts-expect-error\n if (input.selectedIndex < 0) return;\n // @ts-expect-error\n const selected = input.options[input.selectedIndex];\n if (selected.hasAttribute('selected')) {\n value = false;\n } else {\n value = selected.value || false;\n }\n } else {\n if (input.classList.contains('ql-active')) {\n value = false;\n } else {\n // @ts-expect-error\n value = input.value || !input.hasAttribute('value');\n }\n e.preventDefault();\n }\n this.quill.focus();\n const [range] = this.quill.selection.getRange();\n if (this.handlers[format] != null) {\n this.handlers[format].call(this, value);\n } else if (\n // @ts-expect-error\n this.quill.scroll.query(format).prototype instanceof EmbedBlot\n ) {\n value = prompt(`Enter ${format}`); // eslint-disable-line no-alert\n if (!value) return;\n this.quill.updateContents(\n new Delta()\n // @ts-expect-error Fix me later\n .retain(range.index)\n // @ts-expect-error Fix me later\n .delete(range.length)\n .insert({ [format]: value }),\n Quill.sources.USER,\n );\n } else {\n this.quill.format(format, value, Quill.sources.USER);\n }\n this.update(range);\n });\n this.controls.push([format, input]);\n }\n\n update(range: Range | null) {\n const formats = range == null ? {} : this.quill.getFormat(range);\n this.controls.forEach((pair) => {\n const [format, input] = pair;\n if (input.tagName === 'SELECT') {\n let option: HTMLOptionElement | null = null;\n if (range == null) {\n option = null;\n } else if (formats[format] == null) {\n option = input.querySelector('option[selected]');\n } else if (!Array.isArray(formats[format])) {\n let value = formats[format];\n if (typeof value === 'string') {\n value = value.replace(/\"/g, '\\\\\"');\n }\n option = input.querySelector(`option[value=\"${value}\"]`);\n }\n if (option == null) {\n // @ts-expect-error TODO fix me later\n input.value = ''; // TODO make configurable?\n // @ts-expect-error TODO fix me later\n input.selectedIndex = -1;\n } else {\n option.selected = true;\n }\n } else if (range == null) {\n input.classList.remove('ql-active');\n input.setAttribute('aria-pressed', 'false');\n } else if (input.hasAttribute('value')) {\n // both being null should match (default values)\n // '1' should match with 1 (headers)\n const value = formats[format] as boolean | number | string | object;\n const isActive =\n value === input.getAttribute('value') ||\n (value != null && value.toString() === input.getAttribute('value')) ||\n (value == null && !input.getAttribute('value'));\n input.classList.toggle('ql-active', isActive);\n input.setAttribute('aria-pressed', isActive.toString());\n } else {\n const isActive = formats[format] != null;\n input.classList.toggle('ql-active', isActive);\n input.setAttribute('aria-pressed', isActive.toString());\n }\n });\n }\n}\nToolbar.DEFAULTS = {};\n\nfunction addButton(container: HTMLElement, format: string, value?: string) {\n const input = document.createElement('button');\n input.setAttribute('type', 'button');\n input.classList.add(`ql-${format}`);\n input.setAttribute('aria-pressed', 'false');\n if (value != null) {\n input.value = value;\n input.setAttribute('aria-label', `${format}: ${value}`);\n } else {\n input.setAttribute('aria-label', format);\n }\n container.appendChild(input);\n}\n\nfunction addControls(\n container: HTMLElement,\n groups:\n | (string | Record<string, unknown>)[][]\n | (string | Record<string, unknown>)[],\n) {\n if (!Array.isArray(groups[0])) {\n // @ts-expect-error\n groups = [groups];\n }\n groups.forEach((controls: any) => {\n const group = document.createElement('span');\n group.classList.add('ql-formats');\n controls.forEach((control: any) => {\n if (typeof control === 'string') {\n addButton(group, control);\n } else {\n const format = Object.keys(control)[0];\n const value = control[format];\n if (Array.isArray(value)) {\n addSelect(group, format, value);\n } else {\n addButton(group, format, value);\n }\n }\n });\n container.appendChild(group);\n });\n}\n\nfunction addSelect(\n container: HTMLElement,\n format: string,\n values: Array<string | boolean>,\n) {\n const input = document.createElement('select');\n input.classList.add(`ql-${format}`);\n values.forEach((value) => {\n const option = document.createElement('option');\n if (value !== false) {\n option.setAttribute('value', String(value));\n } else {\n option.setAttribute('selected', 'selected');\n }\n input.appendChild(option);\n });\n container.appendChild(input);\n}\n\nToolbar.DEFAULTS = {\n container: null,\n handlers: {\n clean() {\n const range = this.quill.getSelection();\n if (range == null) return;\n if (range.length === 0) {\n const formats = this.quill.getFormat();\n Object.keys(formats).forEach((name) => {\n // Clean functionality in existing apps only clean inline formats\n if (this.quill.scroll.query(name, Scope.INLINE) != null) {\n this.quill.format(name, false, Quill.sources.USER);\n }\n });\n } else {\n this.quill.removeFormat(range.index, range.length, Quill.sources.USER);\n }\n },\n direction(value) {\n const { align } = this.quill.getFormat();\n if (value === 'rtl' && align == null) {\n this.quill.format('align', 'right', Quill.sources.USER);\n } else if (!value && align === 'right') {\n this.quill.format('align', false, Quill.sources.USER);\n }\n this.quill.format('direction', value, Quill.sources.USER);\n },\n indent(value) {\n const range = this.quill.getSelection();\n // @ts-expect-error\n const formats = this.quill.getFormat(range);\n // @ts-expect-error\n const indent = parseInt(formats.indent || 0, 10);\n if (value === '+1' || value === '-1') {\n let modifier = value === '+1' ? 1 : -1;\n if (formats.direction === 'rtl') modifier *= -1;\n this.quill.format('indent', indent + modifier, Quill.sources.USER);\n }\n },\n link(value) {\n if (value === true) {\n value = prompt('Enter link URL:'); // eslint-disable-line no-alert\n }\n this.quill.format('link', value, Quill.sources.USER);\n },\n list(value) {\n const range = this.quill.getSelection();\n // @ts-expect-error\n const formats = this.quill.getFormat(range);\n if (value === 'check') {\n if (formats.list === 'checked' || formats.list === 'unchecked') {\n this.quill.format('list', false, Quill.sources.USER);\n } else {\n this.quill.format('list', 'unchecked', Quill.sources.USER);\n }\n } else {\n this.quill.format('list', value, Quill.sources.USER);\n }\n },\n },\n};\n\nexport { Toolbar as default, addControls };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,aAAa;AAC/B,SAASC,SAAS,EAAEC,KAAK,QAAQ,WAAW;AAC5C,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,MAAM,MAAM,mBAAmB;AAGtC,MAAMC,KAAK,GAAGF,MAAM,CAAC,eAAe,CAAC;AAerC,MAAMG,OAAO,SAASF,MAAM,CAAe;EAOzCG,WAAWA,CAACC,KAAY,EAAEC,OAA8B,EAAE;IACxD,KAAK,CAACD,KAAK,EAAEC,OAAO,CAAC;IACrB,IAAIC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACF,OAAO,CAACG,SAAS,CAAC,EAAE;MACzC,MAAMA,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;MAC/CF,SAAS,CAACG,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC;MACzCC,WAAW,CAACJ,SAAS,EAAE,IAAI,CAACH,OAAO,CAACG,SAAS,CAAC;MAC9CJ,KAAK,CAACI,SAAS,EAAEK,UAAU,EAAEC,YAAY,CAACN,SAAS,EAAEJ,KAAK,CAACI,SAAS,CAAC;MACrE,IAAI,CAACA,SAAS,GAAGA,SAAS;IAC5B,CAAC,MAAM,IAAI,OAAO,IAAI,CAACH,OAAO,CAACG,SAAS,KAAK,QAAQ,EAAE;MACrD,IAAI,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KAAK,EAAE3B,KAAK,CAACoE,OAAO,CAACC,IAAI,CAAC;QACtD,CAAC,MAAM;UACL,IAAI,CAAC/D,KAAK,CAACqB,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE3B,KAAK,CAACoE,OAAO,CAACC,IAAI,CAAC;QAC5D;MACF,CAAC,MAAM;QACL,IAAI,CAAC/D,KAAK,CAACqB,MAAM,CAAC,MAAM,EAAE0B,KAAK,EAAErD,KAAK,CAACoE,OAAO,CAACC,IAAI,CAAC;MACtD;IACF;EACF;AACF,CAAC;AAED,SAASjE,OAAO,IAAIkG,OAAO,EAAExF,WAAW","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Module from '../core/module.js';
|
|
2
|
-
import Quill from '../core/quill.js';
|
|
3
|
-
export declare const TTL_FOR_VALID_SELECTION_CHANGE = 100;
|
|
4
|
-
declare class UINode extends Module {
|
|
5
|
-
isListening: boolean;
|
|
6
|
-
selectionChangeDeadline: number;
|
|
7
|
-
constructor(quill: Quill, options: Record<string, never>);
|
|
8
|
-
private handleArrowKeys;
|
|
9
|
-
private handleNavigationShortcuts;
|
|
10
|
-
/**
|
|
11
|
-
* We only listen to the `selectionchange` event when
|
|
12
|
-
* there is an intention of moving the caret to the beginning using shortcuts.
|
|
13
|
-
* This is primarily implemented to prevent infinite loops, as we are changing
|
|
14
|
-
* the selection within the handler of a `selectionchange` event.
|
|
15
|
-
*/
|
|
16
|
-
private ensureListeningToSelectionChange;
|
|
17
|
-
private handleSelectionChange;
|
|
18
|
-
}
|
|
19
|
-
export default UINode;
|