@unicom-cloud/utils 0.1.22 → 0.1.24
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/case-name/index.js +8 -7
- package/caseName.js +8 -7
- package/class-name/index.js +1 -0
- package/className.js +1 -0
- package/clipboard-copy/index.js +8 -8
- package/clipboardCopy.js +3 -3
- package/constant/address.js +1 -0
- package/constant/chineseCharacters.js +1 -0
- package/constant/constellations.js +1 -0
- package/constant/domain.js +1 -0
- package/constant/emoji.js +1 -0
- package/constant/identity.js +1 -0
- package/constant/index.js +1 -0
- package/constant/keyboardCode.js +1 -0
- package/constant/licensePlate.js +1 -0
- package/constant/name.js +1 -0
- package/constant/platform.js +12 -11
- package/constant/protocol.js +1 -0
- package/constant/ui.js +1 -0
- package/constant.js +1 -0
- package/content-disposition/index.js +3 -3
- package/contentDisposition.js +6 -6
- package/cookie/index.js +1 -0
- package/cookie/src/index.js +1 -0
- package/cookie.js +1 -0
- package/date/convertTime.js +1 -0
- package/date/convertToDuration.js +18 -0
- package/date/index.js +10 -19
- package/date.js +8 -6
- package/decimal/decimal.js +3 -2
- package/decimal/index.js +1 -0
- package/decimal.js +1 -0
- package/dom-helpers/activeElement.js +13 -0
- package/dom-helpers/addClass.js +11 -0
- package/dom-helpers/addEventListener.js +34 -0
- package/dom-helpers/animate.js +51 -0
- package/dom-helpers/animationFrame.js +21 -0
- package/dom-helpers/attribute.js +11 -0
- package/dom-helpers/camelize.js +8 -0
- package/dom-helpers/camelizeStyle.js +9 -0
- package/dom-helpers/canUseDOM.js +5 -0
- package/dom-helpers/childElements.js +7 -0
- package/dom-helpers/childNodes.js +8 -0
- package/dom-helpers/clear.js +12 -0
- package/dom-helpers/closest.js +14 -0
- package/dom-helpers/collectElements.js +11 -0
- package/dom-helpers/collectSiblings.js +15 -0
- package/dom-helpers/contains.js +9 -0
- package/dom-helpers/css.js +16 -0
- package/dom-helpers/filterEventHandler.js +12 -0
- package/dom-helpers/getComputedStyle.js +8 -0
- package/dom-helpers/getScrollAccessor.js +15 -0
- package/dom-helpers/hasClass.js +9 -0
- package/dom-helpers/height.js +10 -0
- package/dom-helpers/hyphenate.js +8 -0
- package/dom-helpers/hyphenateStyle.js +9 -0
- package/dom-helpers/index.js +140 -0
- package/dom-helpers/insertAfter.js +7 -0
- package/dom-helpers/isDocument.js +7 -0
- package/dom-helpers/isInput.js +8 -0
- package/dom-helpers/isTransform.js +8 -0
- package/dom-helpers/isVisible.js +7 -0
- package/dom-helpers/isWindow.js +8 -0
- package/dom-helpers/listen.js +11 -0
- package/dom-helpers/matches.js +12 -0
- package/dom-helpers/nextUntil.js +8 -0
- package/dom-helpers/offset.js +19 -0
- package/dom-helpers/offsetParent.js +14 -0
- package/dom-helpers/ownerDocument.js +7 -0
- package/dom-helpers/ownerWindow.js +9 -0
- package/dom-helpers/parents.js +8 -0
- package/dom-helpers/position.js +29 -0
- package/dom-helpers/prepend.js +7 -0
- package/dom-helpers/querySelectorAll.js +8 -0
- package/dom-helpers/reflow.js +26 -0
- package/dom-helpers/remove.js +7 -0
- package/dom-helpers/removeClass.js +19 -0
- package/dom-helpers/removeEventListener.js +8 -0
- package/dom-helpers/scrollLeft.js +6 -0
- package/dom-helpers/scrollParent.js +17 -0
- package/dom-helpers/scrollTo.js +27 -0
- package/dom-helpers/scrollTop.js +6 -0
- package/dom-helpers/scrollbarSize.js +13 -0
- package/dom-helpers/siblings.js +11 -0
- package/dom-helpers/text.js +9 -0
- package/dom-helpers/toggleClass.js +10 -0
- package/dom-helpers/transitionEnd.js +34 -0
- package/dom-helpers/triggerEvent.js +10 -0
- package/dom-helpers/types.js +1 -0
- package/dom-helpers/width.js +10 -0
- package/domHelpers.js +94 -0
- package/emitter/index.js +1 -0
- package/emitter/src/index.js +1 -0
- package/emitter.js +1 -0
- package/file/fileToURL.js +11 -11
- package/file/index.js +1 -0
- package/file/saveAs.js +1 -0
- package/file.js +1 -0
- package/filesize/types/constants.d.ts +30 -0
- package/filesize/types/helpers.d.ts +130 -0
- package/idb/index.js +103 -0
- package/idb.js +5 -0
- package/index.js +1 -0
- package/invariant/index.js +1 -0
- package/invariant.js +1 -0
- package/is/index.js +119 -119
- package/is.js +38 -37
- package/js-cookie/index.js +1 -0
- package/js-cookie/src/api.js +1 -0
- package/js-cookie/src/assign.js +1 -0
- package/js-cookie/src/converter.js +1 -0
- package/jsCookie.js +1 -0
- package/lunar/index.js +1 -0
- package/lunar/lib/Holiday.js +1 -0
- package/lunar/lib/HolidayUtil.js +1 -0
- package/lunar/lib/I18n.js +1 -0
- package/lunar/lib/JieQi.js +1 -0
- package/lunar/lib/Lunar.js +1 -0
- package/lunar/lib/LunarMonth.js +1 -0
- package/lunar/lib/LunarTime.js +1 -0
- package/lunar/lib/LunarUtil.js +1 -0
- package/lunar/lib/LunarYear.js +1 -0
- package/lunar/lib/ShouXingUtil.js +1 -0
- package/lunar/lib/Solar.js +1 -0
- package/lunar/lib/SolarHalfYear.js +1 -0
- package/lunar/lib/SolarMonth.js +1 -0
- package/lunar/lib/SolarSeason.js +1 -0
- package/lunar/lib/SolarUtil.js +1 -0
- package/lunar/lib/SolarWeek.js +1 -0
- package/lunar/lib/SolarYear.js +1 -0
- package/lunar/lib/index.js +1 -0
- package/lunar.js +1 -0
- package/math/index.js +1 -0
- package/math.js +1 -0
- package/md5/index.js +1 -0
- package/md5.js +1 -0
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -0
- package/mock.js +1 -0
- package/normalize-wheel/ExecutionEnvironment.js +4 -2
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -0
- package/normalize-wheel/index.js +1 -0
- package/normalize-wheel/isEventSupported.js +1 -0
- package/normalizeWheel.js +1 -0
- package/number-to-chinese/index.js +1 -0
- package/numberToChinese.js +1 -0
- package/nzh/cn.js +1 -0
- package/nzh/hk.js +1 -0
- package/nzh/index.js +1 -0
- package/nzh/nzh.js +1 -0
- package/nzh/src/autoGet.js +1 -0
- package/nzh/src/index.js +1 -0
- package/nzh/src/langs/cn_b.js +1 -0
- package/nzh/src/langs/cn_s.js +1 -0
- package/nzh/src/langs/hk_b.js +1 -0
- package/nzh/src/langs/hk_s.js +1 -0
- package/nzh/src/utils.js +1 -0
- package/nzh.js +1 -0
- package/object-keys-sort/index.js +1 -0
- package/objectKeysSort.js +1 -0
- package/package.json +1 -1
- package/pinyin/index.js +1 -0
- package/pinyin/simplified.js +1 -0
- package/pinyin/src/core.js +44 -42
- package/pinyin/src/simplified.js +6 -5
- package/pinyin/src/simplified_dict.js +3 -3
- package/pinyin/src/traditional.js +4 -3
- package/pinyin/src/traditional_dict.js +3 -3
- package/pinyin/traditional.js +1 -0
- package/pinyin.js +1 -0
- package/query-string/base.d.ts +102 -12
- package/query-string/base.js +76 -67
- package/query-string/index.js +1 -0
- package/query-string/splitOnFirst.js +1 -0
- package/queryString.js +1 -0
- package/random/address.js +1 -0
- package/random/constellation.js +1 -0
- package/random/image.js +1 -0
- package/random/index.js +6 -5
- package/random/licensePlate.js +1 -0
- package/random/name.js +1 -0
- package/random/number.js +1 -0
- package/random/text.js +1 -0
- package/random/time.js +1 -0
- package/random/web.js +1 -0
- package/random.js +1 -0
- package/screenfull/index.js +47 -117
- package/screenfull.js +1 -0
- package/sleep/index.js +7 -0
- package/sleep.js +5 -0
- package/snapdom/index.js +1 -0
- package/snapdom/src/api/preCache.js +63 -35
- package/snapdom/src/api/snapdom.js +84 -106
- package/snapdom/src/core/cache.js +28 -5
- package/snapdom/src/core/capture.js +341 -68
- package/snapdom/src/core/clone.js +296 -93
- package/snapdom/src/core/context.js +57 -0
- package/snapdom/src/core/prepare.js +125 -126
- package/snapdom/src/exporters/download.js +16 -0
- package/snapdom/src/exporters/toBlob.js +21 -0
- package/snapdom/src/exporters/toCanvas.js +106 -0
- package/snapdom/src/exporters/toImg.js +36 -0
- package/snapdom/src/modules/CSSVar.js +61 -0
- package/snapdom/src/modules/background.js +52 -29
- package/snapdom/src/modules/changeCSS.js +61 -0
- package/snapdom/src/modules/counter.js +165 -0
- package/snapdom/src/modules/fonts.js +640 -179
- package/snapdom/src/modules/iconFonts.js +1 -0
- package/snapdom/src/modules/images.js +48 -13
- package/snapdom/src/modules/lineClamp.js +42 -0
- package/snapdom/src/modules/pseudo.js +194 -62
- package/snapdom/src/modules/rasterize.js +10 -0
- package/snapdom/src/modules/snapFetch.js +263 -0
- package/snapdom/src/modules/styles.js +144 -23
- package/snapdom/src/modules/svgDefs.js +1 -0
- package/snapdom/src/utils/browser.js +13 -0
- package/snapdom/src/utils/css.js +191 -0
- package/snapdom/src/utils/helpers.js +25 -234
- package/snapdom/src/utils/image.js +39 -0
- package/snapdom/types/snapdom.d.ts +291 -99
- package/snapdom.js +1 -0
- package/tinycolor/index.js +2 -1
- package/tinycolor/src/conversion.js +2 -1
- package/tinycolor/src/css-color-names.js +1 -0
- package/tinycolor/src/format-input.js +2 -1
- package/tinycolor/src/from-ratio.js +2 -1
- package/tinycolor/src/index.js +2 -1
- package/tinycolor/src/random.js +1 -0
- package/tinycolor/src/readability.js +1 -0
- package/tinycolor/src/to-ms-filter.js +1 -0
- package/tinycolor/src/{util.js → utils.js} +1 -0
- package/tinycolor.js +2 -1
- package/tree/index.js +69 -65
- package/tree/search/index.js +55 -66
- package/tree.js +11 -7
- package/types/date/convertToDuration.d.ts +2 -0
- package/types/date/index.d.ts +2 -2
- package/types/dom-helpers/activeElement.d.ts +6 -0
- package/types/dom-helpers/addClass.d.ts +7 -0
- package/types/dom-helpers/addEventListener.d.ts +16 -0
- package/types/dom-helpers/animate.d.ts +19 -0
- package/types/dom-helpers/animationFrame.d.ts +2 -0
- package/types/dom-helpers/attribute.d.ts +8 -0
- package/types/dom-helpers/camelize.d.ts +1 -0
- package/types/dom-helpers/camelizeStyle.d.ts +2 -0
- package/types/dom-helpers/canUseDOM.d.ts +2 -0
- package/types/dom-helpers/childElements.d.ts +6 -0
- package/types/dom-helpers/childNodes.d.ts +6 -0
- package/types/dom-helpers/clear.d.ts +6 -0
- package/types/dom-helpers/closest.d.ts +8 -0
- package/types/dom-helpers/collectElements.d.ts +3 -0
- package/types/dom-helpers/collectSiblings.d.ts +1 -0
- package/types/dom-helpers/contains.d.ts +7 -0
- package/types/dom-helpers/css.d.ts +3 -0
- package/types/dom-helpers/filterEventHandler.d.ts +2 -0
- package/types/dom-helpers/getComputedStyle.d.ts +7 -0
- package/types/dom-helpers/getScrollAccessor.d.ts +1 -0
- package/types/dom-helpers/hasClass.d.ts +7 -0
- package/types/dom-helpers/height.d.ts +7 -0
- package/types/dom-helpers/hyphenate.d.ts +1 -0
- package/types/dom-helpers/hyphenateStyle.d.ts +7 -0
- package/types/dom-helpers/index.d.ts +93 -0
- package/types/dom-helpers/insertAfter.d.ts +7 -0
- package/types/dom-helpers/isDocument.d.ts +1 -0
- package/types/dom-helpers/isInput.d.ts +6 -0
- package/types/dom-helpers/isTransform.d.ts +2 -0
- package/types/dom-helpers/isVisible.d.ts +6 -0
- package/types/dom-helpers/isWindow.d.ts +1 -0
- package/types/dom-helpers/listen.d.ts +3 -0
- package/types/dom-helpers/matches.d.ts +7 -0
- package/types/dom-helpers/nextUntil.d.ts +7 -0
- package/types/dom-helpers/offset.d.ts +11 -0
- package/types/dom-helpers/offsetParent.d.ts +1 -0
- package/types/dom-helpers/ownerDocument.d.ts +6 -0
- package/types/dom-helpers/ownerWindow.d.ts +6 -0
- package/types/dom-helpers/parents.d.ts +6 -0
- package/types/dom-helpers/position.d.ts +23 -0
- package/types/dom-helpers/prepend.d.ts +7 -0
- package/types/dom-helpers/querySelectorAll.d.ts +7 -0
- package/types/dom-helpers/reflow.d.ts +2 -0
- package/types/dom-helpers/remove.d.ts +6 -0
- package/types/dom-helpers/removeClass.d.ts +7 -0
- package/types/dom-helpers/removeEventListener.d.ts +11 -0
- package/types/dom-helpers/scrollLeft.d.ts +8 -0
- package/types/dom-helpers/scrollParent.d.ts +7 -0
- package/types/dom-helpers/scrollTo.d.ts +1 -0
- package/types/dom-helpers/scrollTop.d.ts +8 -0
- package/types/dom-helpers/scrollbarSize.d.ts +1 -0
- package/types/dom-helpers/siblings.d.ts +6 -0
- package/types/dom-helpers/text.d.ts +8 -0
- package/types/dom-helpers/toggleClass.d.ts +7 -0
- package/types/dom-helpers/transitionEnd.d.ts +2 -0
- package/types/dom-helpers/triggerEvent.d.ts +9 -0
- package/types/dom-helpers/types.d.ts +4 -0
- package/types/dom-helpers/width.d.ts +7 -0
- package/types/filesize/benchmarks/basic-performance.d.ts +1 -0
- package/types/filesize/benchmarks/index.d.ts +2 -0
- package/types/filesize/benchmarks/options-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/partial-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/stress-test.d.ts +1 -0
- package/types/filesize/src/constants.d.ts +5 -0
- package/types/filesize/src/helpers.d.ts +55 -0
- package/types/idb/index.d.ts +21 -0
- package/types/index.d.ts +1 -1
- package/types/is/index.d.ts +37 -37
- package/types/lodash/_DataView.d.ts +2 -0
- package/types/lodash/_Hash.d.ts +29 -0
- package/types/lodash/_LazyWrapper.d.ts +26 -0
- package/types/lodash/_ListCache.d.ts +29 -0
- package/types/lodash/_LodashWrapper.d.ts +24 -0
- package/types/lodash/_Map.d.ts +2 -0
- package/types/lodash/_MapCache.d.ts +29 -0
- package/types/lodash/_Promise.d.ts +2 -0
- package/types/lodash/_Set.d.ts +2 -0
- package/types/lodash/_SetCache.d.ts +28 -0
- package/types/lodash/_Stack.d.ts +32 -0
- package/types/lodash/_Symbol.d.ts +3 -0
- package/types/lodash/_Uint8Array.d.ts +3 -0
- package/types/lodash/_WeakMap.d.ts +2 -0
- package/types/lodash/_addMapEntry.d.ts +10 -0
- package/types/lodash/_addSetEntry.d.ts +10 -0
- package/types/lodash/_apply.d.ts +12 -0
- package/types/lodash/_arrayAggregator.d.ts +12 -0
- package/types/lodash/_arrayEach.d.ts +11 -0
- package/types/lodash/_arrayEachRight.d.ts +11 -0
- package/types/lodash/_arrayEvery.d.ts +12 -0
- package/types/lodash/_arrayFilter.d.ts +11 -0
- package/types/lodash/_arrayIncludes.d.ts +11 -0
- package/types/lodash/_arrayIncludesWith.d.ts +11 -0
- package/types/lodash/_arrayLikeKeys.d.ts +10 -0
- package/types/lodash/_arrayMap.d.ts +11 -0
- package/types/lodash/_arrayPush.d.ts +10 -0
- package/types/lodash/_arrayReduce.d.ts +14 -0
- package/types/lodash/_arrayReduceRight.d.ts +14 -0
- package/types/lodash/_arraySample.d.ts +9 -0
- package/types/lodash/_arraySampleSize.d.ts +10 -0
- package/types/lodash/_arrayShuffle.d.ts +9 -0
- package/types/lodash/_arraySome.d.ts +12 -0
- package/types/lodash/_asciiSize.d.ts +9 -0
- package/types/lodash/_asciiToArray.d.ts +9 -0
- package/types/lodash/_asciiWords.d.ts +9 -0
- package/types/lodash/_assignMergeValue.d.ts +11 -0
- package/types/lodash/_assignValue.d.ts +12 -0
- package/types/lodash/_assocIndexOf.d.ts +10 -0
- package/types/lodash/_baseAggregator.d.ts +13 -0
- package/types/lodash/_baseAssign.d.ts +11 -0
- package/types/lodash/_baseAssignIn.d.ts +11 -0
- package/types/lodash/_baseAssignValue.d.ts +11 -0
- package/types/lodash/_baseAt.d.ts +10 -0
- package/types/lodash/_baseClamp.d.ts +11 -0
- package/types/lodash/_baseClone.d.ts +18 -0
- package/types/lodash/_baseConforms.d.ts +9 -0
- package/types/lodash/_baseConformsTo.d.ts +10 -0
- package/types/lodash/_baseCreate.d.ts +2 -0
- package/types/lodash/_baseDelay.d.ts +12 -0
- package/types/lodash/_baseDifference.d.ts +13 -0
- package/types/lodash/_baseEach.d.ts +10 -0
- package/types/lodash/_baseEachRight.d.ts +10 -0
- package/types/lodash/_baseEvery.d.ts +11 -0
- package/types/lodash/_baseExtremum.d.ts +12 -0
- package/types/lodash/_baseFill.d.ts +12 -0
- package/types/lodash/_baseFilter.d.ts +10 -0
- package/types/lodash/_baseFindIndex.d.ts +13 -0
- package/types/lodash/_baseFindKey.d.ts +13 -0
- package/types/lodash/_baseFlatten.d.ts +13 -0
- package/types/lodash/_baseFor.d.ts +13 -0
- package/types/lodash/_baseForOwn.d.ts +10 -0
- package/types/lodash/_baseForOwnRight.d.ts +10 -0
- package/types/lodash/_baseForRight.d.ts +12 -0
- package/types/lodash/_baseFunctions.d.ts +11 -0
- package/types/lodash/_baseGet.d.ts +10 -0
- package/types/lodash/_baseGetAllKeys.d.ts +13 -0
- package/types/lodash/_baseGetTag.d.ts +9 -0
- package/types/lodash/_baseGt.d.ts +11 -0
- package/types/lodash/_baseHas.d.ts +10 -0
- package/types/lodash/_baseHasIn.d.ts +10 -0
- package/types/lodash/_baseInRange.d.ts +11 -0
- package/types/lodash/_baseIndexOf.d.ts +11 -0
- package/types/lodash/_baseIndexOfWith.d.ts +12 -0
- package/types/lodash/_baseIntersection.d.ts +12 -0
- package/types/lodash/_baseInverter.d.ts +13 -0
- package/types/lodash/_baseInvoke.d.ts +12 -0
- package/types/lodash/_baseIsArguments.d.ts +9 -0
- package/types/lodash/_baseIsArrayBuffer.d.ts +9 -0
- package/types/lodash/_baseIsDate.d.ts +9 -0
- package/types/lodash/_baseIsEqual.d.ts +16 -0
- package/types/lodash/_baseIsEqualDeep.d.ts +16 -0
- package/types/lodash/_baseIsMap.d.ts +9 -0
- package/types/lodash/_baseIsMatch.d.ts +12 -0
- package/types/lodash/_baseIsNaN.d.ts +9 -0
- package/types/lodash/_baseIsNative.d.ts +10 -0
- package/types/lodash/_baseIsRegExp.d.ts +9 -0
- package/types/lodash/_baseIsSet.d.ts +9 -0
- package/types/lodash/_baseIsTypedArray.d.ts +9 -0
- package/types/lodash/_baseIteratee.d.ts +9 -0
- package/types/lodash/_baseKeys.d.ts +9 -0
- package/types/lodash/_baseKeysIn.d.ts +9 -0
- package/types/lodash/_baseLodash.d.ts +7 -0
- package/types/lodash/_baseLt.d.ts +11 -0
- package/types/lodash/_baseMap.d.ts +10 -0
- package/types/lodash/_baseMatches.d.ts +9 -0
- package/types/lodash/_baseMatchesProperty.d.ts +10 -0
- package/types/lodash/_baseMean.d.ts +11 -0
- package/types/lodash/_baseMerge.d.ts +13 -0
- package/types/lodash/_baseMergeDeep.d.ts +17 -0
- package/types/lodash/_baseNth.d.ts +10 -0
- package/types/lodash/_baseOrderBy.d.ts +11 -0
- package/types/lodash/_basePick.d.ts +11 -0
- package/types/lodash/_basePickBy.d.ts +11 -0
- package/types/lodash/_baseProperty.d.ts +9 -0
- package/types/lodash/_basePropertyDeep.d.ts +9 -0
- package/types/lodash/_basePropertyOf.d.ts +9 -0
- package/types/lodash/_basePullAll.d.ts +13 -0
- package/types/lodash/_basePullAt.d.ts +11 -0
- package/types/lodash/_baseRandom.d.ts +11 -0
- package/types/lodash/_baseRange.d.ts +13 -0
- package/types/lodash/_baseReduce.d.ts +15 -0
- package/types/lodash/_baseRepeat.d.ts +10 -0
- package/types/lodash/_baseRest.d.ts +10 -0
- package/types/lodash/_baseSample.d.ts +9 -0
- package/types/lodash/_baseSampleSize.d.ts +10 -0
- package/types/lodash/_baseSet.d.ts +12 -0
- package/types/lodash/_baseSetData.d.ts +2 -0
- package/types/lodash/_baseSetToString.d.ts +2 -0
- package/types/lodash/_baseShuffle.d.ts +9 -0
- package/types/lodash/_baseSlice.d.ts +11 -0
- package/types/lodash/_baseSome.d.ts +11 -0
- package/types/lodash/_baseSortBy.d.ts +12 -0
- package/types/lodash/_baseSortedIndex.d.ts +14 -0
- package/types/lodash/_baseSortedIndexBy.d.ts +15 -0
- package/types/lodash/_baseSortedUniq.d.ts +11 -0
- package/types/lodash/_baseSum.d.ts +11 -0
- package/types/lodash/_baseTimes.d.ts +11 -0
- package/types/lodash/_baseToNumber.d.ts +10 -0
- package/types/lodash/_baseToPairs.d.ts +11 -0
- package/types/lodash/_baseToString.d.ts +10 -0
- package/types/lodash/_baseTrim.d.ts +9 -0
- package/types/lodash/_baseUnary.d.ts +9 -0
- package/types/lodash/_baseUniq.d.ts +11 -0
- package/types/lodash/_baseUnset.d.ts +10 -0
- package/types/lodash/_baseUpdate.d.ts +12 -0
- package/types/lodash/_baseValues.d.ts +12 -0
- package/types/lodash/_baseWhile.d.ts +13 -0
- package/types/lodash/_baseWrapperValue.d.ts +12 -0
- package/types/lodash/_baseXor.d.ts +12 -0
- package/types/lodash/_baseZipObject.d.ts +11 -0
- package/types/lodash/_cacheHas.d.ts +10 -0
- package/types/lodash/_castArrayLikeObject.d.ts +9 -0
- package/types/lodash/_castFunction.d.ts +9 -0
- package/types/lodash/_castPath.d.ts +10 -0
- package/types/lodash/_castRest.d.ts +11 -0
- package/types/lodash/_castSlice.d.ts +11 -0
- package/types/lodash/_charsEndIndex.d.ts +11 -0
- package/types/lodash/_charsStartIndex.d.ts +11 -0
- package/types/lodash/_cloneArrayBuffer.d.ts +9 -0
- package/types/lodash/_cloneBuffer.d.ts +10 -0
- package/types/lodash/_cloneDataView.d.ts +10 -0
- package/types/lodash/_cloneMap.d.ts +11 -0
- package/types/lodash/_cloneRegExp.d.ts +9 -0
- package/types/lodash/_cloneSet.d.ts +11 -0
- package/types/lodash/_cloneSymbol.d.ts +9 -0
- package/types/lodash/_cloneTypedArray.d.ts +10 -0
- package/types/lodash/_compareAscending.d.ts +10 -0
- package/types/lodash/_compareMultiple.d.ts +16 -0
- package/types/lodash/_composeArgs.d.ts +13 -0
- package/types/lodash/_composeArgsRight.d.ts +13 -0
- package/types/lodash/_copyArray.d.ts +10 -0
- package/types/lodash/_copyObject.d.ts +12 -0
- package/types/lodash/_copySymbols.d.ts +10 -0
- package/types/lodash/_copySymbolsIn.d.ts +10 -0
- package/types/lodash/_coreJsData.d.ts +3 -0
- package/types/lodash/_countHolders.d.ts +10 -0
- package/types/lodash/_createAggregator.d.ts +10 -0
- package/types/lodash/_createAssigner.d.ts +9 -0
- package/types/lodash/_createBaseEach.d.ts +10 -0
- package/types/lodash/_createBaseFor.d.ts +9 -0
- package/types/lodash/_createBind.d.ts +12 -0
- package/types/lodash/_createCaseFirst.d.ts +9 -0
- package/types/lodash/_createCompounder.d.ts +9 -0
- package/types/lodash/_createCtor.d.ts +10 -0
- package/types/lodash/_createCurry.d.ts +11 -0
- package/types/lodash/_createFind.d.ts +9 -0
- package/types/lodash/_createFlow.d.ts +9 -0
- package/types/lodash/_createHybrid.d.ts +21 -0
- package/types/lodash/_createInverter.d.ts +10 -0
- package/types/lodash/_createMathOperation.d.ts +10 -0
- package/types/lodash/_createOver.d.ts +9 -0
- package/types/lodash/_createPadding.d.ts +11 -0
- package/types/lodash/_createPartial.d.ts +14 -0
- package/types/lodash/_createRange.d.ts +9 -0
- package/types/lodash/_createRecurry.d.ts +19 -0
- package/types/lodash/_createRelationalOperation.d.ts +9 -0
- package/types/lodash/_createRound.d.ts +9 -0
- package/types/lodash/_createSet.d.ts +2 -0
- package/types/lodash/_createToPairs.d.ts +9 -0
- package/types/lodash/_createWrap.d.ts +27 -0
- package/types/lodash/_customDefaultsAssignIn.d.ts +14 -0
- package/types/lodash/_customDefaultsMerge.d.ts +16 -0
- package/types/lodash/_customOmitClone.d.ts +11 -0
- package/types/lodash/_deburrLetter.d.ts +10 -0
- package/types/lodash/_defineProperty.d.ts +2 -0
- package/types/lodash/_equalArrays.d.ts +15 -0
- package/types/lodash/_equalByTag.d.ts +19 -0
- package/types/lodash/_equalObjects.d.ts +15 -0
- package/types/lodash/_escapeHtmlChar.d.ts +9 -0
- package/types/lodash/_escapeStringChar.d.ts +9 -0
- package/types/lodash/_flatRest.d.ts +9 -0
- package/types/lodash/_freeGlobal.d.ts +3 -0
- package/types/lodash/_getAllKeys.d.ts +9 -0
- package/types/lodash/_getAllKeysIn.d.ts +10 -0
- package/types/lodash/_getData.d.ts +2 -0
- package/types/lodash/_getFuncName.d.ts +9 -0
- package/types/lodash/_getHolder.d.ts +9 -0
- package/types/lodash/_getMapData.d.ts +10 -0
- package/types/lodash/_getMatchData.d.ts +9 -0
- package/types/lodash/_getNative.d.ts +10 -0
- package/types/lodash/_getPrototype.d.ts +3 -0
- package/types/lodash/_getRawTag.d.ts +9 -0
- package/types/lodash/_getSymbols.d.ts +2 -0
- package/types/lodash/_getSymbolsIn.d.ts +2 -0
- package/types/lodash/_getTag.d.ts +10 -0
- package/types/lodash/_getValue.d.ts +10 -0
- package/types/lodash/_getView.d.ts +12 -0
- package/types/lodash/_getWrapDetails.d.ts +9 -0
- package/types/lodash/_hasPath.d.ts +11 -0
- package/types/lodash/_hasUnicode.d.ts +9 -0
- package/types/lodash/_hasUnicodeWord.d.ts +9 -0
- package/types/lodash/_hashClear.d.ts +13 -0
- package/types/lodash/_hashDelete.d.ts +12 -0
- package/types/lodash/_hashGet.d.ts +11 -0
- package/types/lodash/_hashHas.d.ts +11 -0
- package/types/lodash/_hashSet.d.ts +12 -0
- package/types/lodash/_initCloneArray.d.ts +9 -0
- package/types/lodash/_initCloneByTag.d.ts +14 -0
- package/types/lodash/_initCloneObject.d.ts +9 -0
- package/types/lodash/_insertWrapDetails.d.ts +10 -0
- package/types/lodash/_isFlattenable.d.ts +9 -0
- package/types/lodash/_isIndex.d.ts +10 -0
- package/types/lodash/_isIterateeCall.d.ts +12 -0
- package/types/lodash/_isKey.d.ts +10 -0
- package/types/lodash/_isKeyable.d.ts +9 -0
- package/types/lodash/_isLaziable.d.ts +10 -0
- package/types/lodash/_isMaskable.d.ts +10 -0
- package/types/lodash/_isMasked.d.ts +9 -0
- package/types/lodash/_isPrototype.d.ts +9 -0
- package/types/lodash/_isStrictComparable.d.ts +10 -0
- package/types/lodash/_iteratorToArray.d.ts +9 -0
- package/types/lodash/_lazyClone.d.ts +10 -0
- package/types/lodash/_lazyReverse.d.ts +10 -0
- package/types/lodash/_lazyValue.d.ts +10 -0
- package/types/lodash/_listCacheClear.d.ts +13 -0
- package/types/lodash/_listCacheDelete.d.ts +11 -0
- package/types/lodash/_listCacheGet.d.ts +11 -0
- package/types/lodash/_listCacheHas.d.ts +11 -0
- package/types/lodash/_listCacheSet.d.ts +12 -0
- package/types/lodash/_mapCacheClear.d.ts +18 -0
- package/types/lodash/_mapCacheDelete.d.ts +11 -0
- package/types/lodash/_mapCacheGet.d.ts +11 -0
- package/types/lodash/_mapCacheHas.d.ts +11 -0
- package/types/lodash/_mapCacheSet.d.ts +12 -0
- package/types/lodash/_mapToArray.d.ts +9 -0
- package/types/lodash/_matchesStrictComparable.d.ts +11 -0
- package/types/lodash/_memoizeCapped.d.ts +10 -0
- package/types/lodash/_mergeData.d.ts +18 -0
- package/types/lodash/_metaMap.d.ts +3 -0
- package/types/lodash/_nativeCreate.d.ts +2 -0
- package/types/lodash/_nativeKeys.d.ts +2 -0
- package/types/lodash/_nativeKeysIn.d.ts +11 -0
- package/types/lodash/_nodeUtil.d.ts +3 -0
- package/types/lodash/_objectToString.d.ts +9 -0
- package/types/lodash/_overArg.d.ts +10 -0
- package/types/lodash/_overRest.d.ts +11 -0
- package/types/lodash/_parent.d.ts +10 -0
- package/types/lodash/_reEscape.d.ts +3 -0
- package/types/lodash/_reEvaluate.d.ts +3 -0
- package/types/lodash/_reInterpolate.d.ts +3 -0
- package/types/lodash/_realNames.d.ts +3 -0
- package/types/lodash/_reorder.d.ts +12 -0
- package/types/lodash/_replaceHolders.d.ts +11 -0
- package/types/lodash/_root.d.ts +3 -0
- package/types/lodash/_safeGet.d.ts +10 -0
- package/types/lodash/_setCacheAdd.d.ts +12 -0
- package/types/lodash/_setCacheHas.d.ts +11 -0
- package/types/lodash/_setData.d.ts +16 -0
- package/types/lodash/_setToArray.d.ts +9 -0
- package/types/lodash/_setToPairs.d.ts +9 -0
- package/types/lodash/_setToString.d.ts +10 -0
- package/types/lodash/_setWrapToString.d.ts +12 -0
- package/types/lodash/_shortOut.d.ts +11 -0
- package/types/lodash/_shuffleSelf.d.ts +10 -0
- package/types/lodash/_stackClear.d.ts +14 -0
- package/types/lodash/_stackDelete.d.ts +24 -0
- package/types/lodash/_stackGet.d.ts +11 -0
- package/types/lodash/_stackHas.d.ts +11 -0
- package/types/lodash/_stackSet.d.ts +28 -0
- package/types/lodash/_strictIndexOf.d.ts +12 -0
- package/types/lodash/_strictLastIndexOf.d.ts +12 -0
- package/types/lodash/_stringSize.d.ts +9 -0
- package/types/lodash/_stringToArray.d.ts +9 -0
- package/types/lodash/_stringToPath.d.ts +9 -0
- package/types/lodash/_toKey.d.ts +9 -0
- package/types/lodash/_toSource.d.ts +9 -0
- package/types/lodash/_trimmedEndIndex.d.ts +10 -0
- package/types/lodash/_unescapeHtmlChar.d.ts +9 -0
- package/types/lodash/_unicodeSize.d.ts +9 -0
- package/types/lodash/_unicodeToArray.d.ts +9 -0
- package/types/lodash/_unicodeWords.d.ts +9 -0
- package/types/lodash/_updateWrapDetails.d.ts +10 -0
- package/types/lodash/_wrapperClone.d.ts +9 -0
- package/types/lodash/add.d.ts +17 -0
- package/types/lodash/after.d.ts +26 -0
- package/types/lodash/array.d.ts +66 -0
- package/types/lodash/array.default.d.ts +133 -0
- package/types/lodash/ary.d.ts +19 -0
- package/types/lodash/assign.d.ts +34 -0
- package/types/lodash/assignIn.d.ts +33 -0
- package/types/lodash/assignInWith.d.ts +31 -0
- package/types/lodash/assignWith.d.ts +30 -0
- package/types/lodash/at.d.ts +19 -0
- package/types/lodash/attempt.d.ts +24 -0
- package/types/lodash/before.d.ts +19 -0
- package/types/lodash/bind.d.ts +37 -0
- package/types/lodash/bindAll.d.ts +28 -0
- package/types/lodash/bindKey.d.ts +47 -0
- package/types/lodash/camelCase.d.ts +22 -0
- package/types/lodash/capitalize.d.ts +17 -0
- package/types/lodash/castArray.d.ts +35 -0
- package/types/lodash/ceil.d.ts +23 -0
- package/types/lodash/chain.d.ts +31 -0
- package/types/lodash/chunk.d.ts +23 -0
- package/types/lodash/clamp.d.ts +21 -0
- package/types/lodash/clone.d.ts +28 -0
- package/types/lodash/cloneDeep.d.ts +20 -0
- package/types/lodash/cloneDeepWith.d.ts +30 -0
- package/types/lodash/cloneWith.d.ts +33 -0
- package/types/lodash/collection.d.ts +29 -0
- package/types/lodash/collection.default.d.ts +59 -0
- package/types/lodash/commit.d.ts +28 -0
- package/types/lodash/compact.d.ts +17 -0
- package/types/lodash/concat.d.ts +24 -0
- package/types/lodash/cond.d.ts +31 -0
- package/types/lodash/conforms.d.ts +26 -0
- package/types/lodash/conformsTo.d.ts +26 -0
- package/types/lodash/constant.d.ts +21 -0
- package/types/lodash/countBy.d.ts +24 -0
- package/types/lodash/create.d.ts +36 -0
- package/types/lodash/curry.d.ts +46 -0
- package/types/lodash/curryRight.d.ts +43 -0
- package/types/lodash/date.d.ts +2 -0
- package/types/lodash/date.default.d.ts +5 -0
- package/types/lodash/debounce.d.ts +60 -0
- package/types/lodash/deburr.d.ts +20 -0
- package/types/lodash/defaultTo.d.ts +22 -0
- package/types/lodash/defaults.d.ts +23 -0
- package/types/lodash/defaultsDeep.d.ts +21 -0
- package/types/lodash/defer.d.ts +20 -0
- package/types/lodash/delay.d.ts +21 -0
- package/types/lodash/difference.d.ts +23 -0
- package/types/lodash/differenceBy.d.ts +28 -0
- package/types/lodash/differenceWith.d.ts +25 -0
- package/types/lodash/divide.d.ts +17 -0
- package/types/lodash/drop.d.ts +27 -0
- package/types/lodash/dropRight.d.ts +27 -0
- package/types/lodash/dropRightWhile.d.ts +37 -0
- package/types/lodash/dropWhile.d.ts +37 -0
- package/types/lodash/each.d.ts +1 -0
- package/types/lodash/eachRight.d.ts +1 -0
- package/types/lodash/endsWith.d.ts +25 -0
- package/types/lodash/entries.d.ts +1 -0
- package/types/lodash/entriesIn.d.ts +1 -0
- package/types/lodash/eq.d.ts +34 -0
- package/types/lodash/escape.d.ts +30 -0
- package/types/lodash/escapeRegExp.d.ts +17 -0
- package/types/lodash/every.d.ts +43 -0
- package/types/lodash/extend.d.ts +1 -0
- package/types/lodash/extendWith.d.ts +1 -0
- package/types/lodash/fill.d.ts +31 -0
- package/types/lodash/filter.d.ts +43 -0
- package/types/lodash/find.d.ts +38 -0
- package/types/lodash/findIndex.d.ts +37 -0
- package/types/lodash/findKey.d.ts +37 -0
- package/types/lodash/findLast.d.ts +21 -0
- package/types/lodash/findLastIndex.d.ts +37 -0
- package/types/lodash/findLastKey.d.ts +37 -0
- package/types/lodash/first.d.ts +1 -0
- package/types/lodash/flatMap.d.ts +23 -0
- package/types/lodash/flatMapDeep.d.ts +22 -0
- package/types/lodash/flatMapDepth.d.ts +23 -0
- package/types/lodash/flatten.d.ts +16 -0
- package/types/lodash/flattenDeep.d.ts +16 -0
- package/types/lodash/flattenDepth.d.ts +22 -0
- package/types/lodash/flip.d.ts +20 -0
- package/types/lodash/floor.d.ts +23 -0
- package/types/lodash/flow.d.ts +24 -0
- package/types/lodash/flowRight.d.ts +23 -0
- package/types/lodash/forEach.d.ts +32 -0
- package/types/lodash/forEachRight.d.ts +22 -0
- package/types/lodash/forIn.d.ts +30 -0
- package/types/lodash/forInRight.d.ts +28 -0
- package/types/lodash/forOwn.d.ts +30 -0
- package/types/lodash/forOwnRight.d.ts +28 -0
- package/types/lodash/fromPairs.d.ts +17 -0
- package/types/lodash/function.d.ts +24 -0
- package/types/lodash/function.default.d.ts +49 -0
- package/types/lodash/functions.d.ts +25 -0
- package/types/lodash/functionsIn.d.ts +25 -0
- package/types/lodash/get.d.ts +27 -0
- package/types/lodash/groupBy.d.ts +25 -0
- package/types/lodash/gt.d.ts +25 -0
- package/types/lodash/gte.d.ts +25 -0
- package/types/lodash/has.d.ts +29 -0
- package/types/lodash/hasIn.d.ts +28 -0
- package/types/lodash/head.d.ts +20 -0
- package/types/lodash/identity.d.ts +18 -0
- package/types/lodash/inRange.d.ts +40 -0
- package/types/lodash/includes.d.ts +32 -0
- package/types/lodash/index.d.ts +3 -0
- package/types/lodash/indexOf.d.ts +25 -0
- package/types/lodash/initial.d.ts +16 -0
- package/types/lodash/intersection.d.ts +19 -0
- package/types/lodash/intersectionBy.d.ts +25 -0
- package/types/lodash/intersectionWith.d.ts +23 -0
- package/types/lodash/invert.d.ts +20 -0
- package/types/lodash/invertBy.d.ts +28 -0
- package/types/lodash/invoke.d.ts +20 -0
- package/types/lodash/invokeMap.d.ts +25 -0
- package/types/lodash/isArguments.d.ts +2 -0
- package/types/lodash/isArray.d.ts +25 -0
- package/types/lodash/isArrayBuffer.d.ts +19 -0
- package/types/lodash/isArrayLike.d.ts +27 -0
- package/types/lodash/isArrayLikeObject.d.ts +27 -0
- package/types/lodash/isBoolean.d.ts +19 -0
- package/types/lodash/isBuffer.d.ts +19 -0
- package/types/lodash/isDate.d.ts +19 -0
- package/types/lodash/isElement.d.ts +19 -0
- package/types/lodash/isEmpty.d.ts +35 -0
- package/types/lodash/isEqual.d.ts +30 -0
- package/types/lodash/isEqualWith.d.ts +34 -0
- package/types/lodash/isError.d.ts +20 -0
- package/types/lodash/isFinite.d.ts +28 -0
- package/types/lodash/isFunction.d.ts +19 -0
- package/types/lodash/isInteger.d.ts +28 -0
- package/types/lodash/isLength.d.ts +28 -0
- package/types/lodash/isMap.d.ts +19 -0
- package/types/lodash/isMatch.d.ts +30 -0
- package/types/lodash/isMatchWith.d.ts +34 -0
- package/types/lodash/isNaN.d.ts +30 -0
- package/types/lodash/isNative.d.ts +28 -0
- package/types/lodash/isNil.d.ts +22 -0
- package/types/lodash/isNull.d.ts +19 -0
- package/types/lodash/isNumber.d.ts +28 -0
- package/types/lodash/isObject.d.ts +27 -0
- package/types/lodash/isObjectLike.d.ts +26 -0
- package/types/lodash/isPlainObject.d.ts +30 -0
- package/types/lodash/isPromise.d.ts +2 -0
- package/types/lodash/isRegExp.d.ts +19 -0
- package/types/lodash/isSafeInteger.d.ts +29 -0
- package/types/lodash/isSet.d.ts +19 -0
- package/types/lodash/isString.d.ts +19 -0
- package/types/lodash/isSymbol.d.ts +19 -0
- package/types/lodash/isTypedArray.d.ts +19 -0
- package/types/lodash/isUndefined.d.ts +19 -0
- package/types/lodash/isWeakMap.d.ts +19 -0
- package/types/lodash/isWeakSet.d.ts +19 -0
- package/types/lodash/iteratee.d.ts +44 -0
- package/types/lodash/join.d.ts +17 -0
- package/types/lodash/kebabCase.d.ts +23 -0
- package/types/lodash/keyBy.d.ts +30 -0
- package/types/lodash/keys.d.ts +30 -0
- package/types/lodash/keysIn.d.ts +25 -0
- package/types/lodash/lang.d.ts +57 -0
- package/types/lodash/lang.default.d.ts +115 -0
- package/types/lodash/last.d.ts +16 -0
- package/types/lodash/lastIndexOf.d.ts +23 -0
- package/types/lodash/lodash.d.ts +317 -0
- package/types/lodash/lodash.default.d.ts +2 -0
- package/types/lodash/lowerCase.d.ts +22 -0
- package/types/lodash/lowerFirst.d.ts +19 -0
- package/types/lodash/lt.d.ts +25 -0
- package/types/lodash/lte.d.ts +25 -0
- package/types/lodash/map.d.ts +44 -0
- package/types/lodash/mapKeys.d.ts +23 -0
- package/types/lodash/mapValues.d.ts +30 -0
- package/types/lodash/matches.d.ts +37 -0
- package/types/lodash/matchesProperty.d.ts +35 -0
- package/types/lodash/math.d.ts +16 -0
- package/types/lodash/math.default.d.ts +33 -0
- package/types/lodash/max.d.ts +20 -0
- package/types/lodash/maxBy.d.ts +25 -0
- package/types/lodash/mean.d.ts +16 -0
- package/types/lodash/meanBy.d.ts +25 -0
- package/types/lodash/memoize.d.ts +50 -0
- package/types/lodash/merge.d.ts +33 -0
- package/types/lodash/mergeWith.d.ts +33 -0
- package/types/lodash/method.d.ts +26 -0
- package/types/lodash/methodOf.d.ts +25 -0
- package/types/lodash/min.d.ts +20 -0
- package/types/lodash/minBy.d.ts +25 -0
- package/types/lodash/mixin.d.ts +40 -0
- package/types/lodash/multiply.d.ts +17 -0
- package/types/lodash/negate.d.ts +22 -0
- package/types/lodash/next.d.ts +27 -0
- package/types/lodash/noop.d.ts +14 -0
- package/types/lodash/now.d.ts +18 -0
- package/types/lodash/nth.d.ts +23 -0
- package/types/lodash/nthArg.d.ts +22 -0
- package/types/lodash/number.d.ts +4 -0
- package/types/lodash/number.default.d.ts +9 -0
- package/types/lodash/object.d.ts +48 -0
- package/types/lodash/object.default.d.ts +97 -0
- package/types/lodash/omit.d.ts +22 -0
- package/types/lodash/omitBy.d.ts +22 -0
- package/types/lodash/once.d.ts +20 -0
- package/types/lodash/orderBy.d.ts +31 -0
- package/types/lodash/over.d.ts +20 -0
- package/types/lodash/overArgs.d.ts +33 -0
- package/types/lodash/overEvery.d.ts +30 -0
- package/types/lodash/overSome.d.ts +33 -0
- package/types/lodash/pad.d.ts +25 -0
- package/types/lodash/padEnd.d.ts +25 -0
- package/types/lodash/padStart.d.ts +25 -0
- package/types/lodash/parseInt.d.ts +26 -0
- package/types/lodash/partial.d.ts +35 -0
- package/types/lodash/partialRight.d.ts +34 -0
- package/types/lodash/partition.d.ts +38 -0
- package/types/lodash/pick.d.ts +19 -0
- package/types/lodash/pickBy.d.ts +20 -0
- package/types/lodash/plant.d.ts +26 -0
- package/types/lodash/property.d.ts +24 -0
- package/types/lodash/propertyOf.d.ts +23 -0
- package/types/lodash/pull.d.ts +25 -0
- package/types/lodash/pullAll.d.ts +22 -0
- package/types/lodash/pullAllBy.d.ts +25 -0
- package/types/lodash/pullAllWith.d.ts +25 -0
- package/types/lodash/pullAt.d.ts +26 -0
- package/types/lodash/random.d.ts +33 -0
- package/types/lodash/range.d.ts +43 -0
- package/types/lodash/rangeRight.d.ts +38 -0
- package/types/lodash/rearg.d.ts +24 -0
- package/types/lodash/reduce.d.ts +39 -0
- package/types/lodash/reduceRight.d.ts +24 -0
- package/types/lodash/reject.d.ts +36 -0
- package/types/lodash/remove.d.ts +30 -0
- package/types/lodash/repeat.d.ts +24 -0
- package/types/lodash/replace.d.ts +21 -0
- package/types/lodash/rest.d.ts +27 -0
- package/types/lodash/result.d.ts +31 -0
- package/types/lodash/reverse.d.ts +25 -0
- package/types/lodash/round.d.ts +23 -0
- package/types/lodash/sample.d.ts +16 -0
- package/types/lodash/sampleSize.d.ts +22 -0
- package/types/lodash/seq.d.ts +15 -0
- package/types/lodash/seq.default.d.ts +31 -0
- package/types/lodash/set.d.ts +30 -0
- package/types/lodash/setWith.d.ts +26 -0
- package/types/lodash/shuffle.d.ts +17 -0
- package/types/lodash/size.d.ts +23 -0
- package/types/lodash/slice.d.ts +18 -0
- package/types/lodash/snakeCase.d.ts +23 -0
- package/types/lodash/some.d.ts +38 -0
- package/types/lodash/sortBy.d.ts +31 -0
- package/types/lodash/sortedIndex.d.ts +19 -0
- package/types/lodash/sortedIndexBy.d.ts +27 -0
- package/types/lodash/sortedIndexOf.d.ts +18 -0
- package/types/lodash/sortedLastIndex.d.ts +20 -0
- package/types/lodash/sortedLastIndexBy.d.ts +27 -0
- package/types/lodash/sortedLastIndexOf.d.ts +18 -0
- package/types/lodash/sortedUniq.d.ts +17 -0
- package/types/lodash/sortedUniqBy.d.ts +18 -0
- package/types/lodash/split.d.ts +21 -0
- package/types/lodash/spread.d.ts +36 -0
- package/types/lodash/startCase.d.ts +23 -0
- package/types/lodash/startsWith.d.ts +25 -0
- package/types/lodash/string.d.ts +32 -0
- package/types/lodash/string.default.d.ts +65 -0
- package/types/lodash/stubArray.d.ts +20 -0
- package/types/lodash/stubFalse.d.ts +15 -0
- package/types/lodash/stubObject.d.ts +20 -0
- package/types/lodash/stubString.d.ts +15 -0
- package/types/lodash/stubTrue.d.ts +15 -0
- package/types/lodash/subtract.d.ts +17 -0
- package/types/lodash/sum.d.ts +16 -0
- package/types/lodash/sumBy.d.ts +25 -0
- package/types/lodash/tail.d.ts +16 -0
- package/types/lodash/take.d.ts +27 -0
- package/types/lodash/takeRight.d.ts +27 -0
- package/types/lodash/takeRightWhile.d.ts +37 -0
- package/types/lodash/takeWhile.d.ts +37 -0
- package/types/lodash/tap.d.ts +25 -0
- package/types/lodash/template.d.ts +113 -0
- package/types/lodash/templateSettings.d.ts +11 -0
- package/types/lodash/throttle.d.ts +49 -0
- package/types/lodash/thru.d.ts +25 -0
- package/types/lodash/times.d.ts +21 -0
- package/types/lodash/toArray.d.ts +25 -0
- package/types/lodash/toFinite.d.ts +25 -0
- package/types/lodash/toInteger.d.ts +28 -0
- package/types/lodash/toIterator.d.ts +20 -0
- package/types/lodash/toJSON.d.ts +1 -0
- package/types/lodash/toLength.d.ts +29 -0
- package/types/lodash/toLower.d.ts +23 -0
- package/types/lodash/toNumber.d.ts +25 -0
- package/types/lodash/toPairs.d.ts +26 -0
- package/types/lodash/toPairsIn.d.ts +26 -0
- package/types/lodash/toPath.d.ts +19 -0
- package/types/lodash/toPlainObject.d.ts +26 -0
- package/types/lodash/toSafeInteger.d.ts +26 -0
- package/types/lodash/toString.d.ts +23 -0
- package/types/lodash/toUpper.d.ts +23 -0
- package/types/lodash/transform.d.ts +32 -0
- package/types/lodash/trim.d.ts +24 -0
- package/types/lodash/trimEnd.d.ts +21 -0
- package/types/lodash/trimStart.d.ts +21 -0
- package/types/lodash/truncate.d.ts +43 -0
- package/types/lodash/unary.d.ts +17 -0
- package/types/lodash/unescape.d.ts +21 -0
- package/types/lodash/union.d.ts +18 -0
- package/types/lodash/unionBy.d.ts +25 -0
- package/types/lodash/unionWith.d.ts +23 -0
- package/types/lodash/uniq.d.ts +20 -0
- package/types/lodash/uniqBy.d.ts +25 -0
- package/types/lodash/uniqWith.d.ts +22 -0
- package/types/lodash/uniqueId.d.ts +19 -0
- package/types/lodash/unset.d.ts +29 -0
- package/types/lodash/unzip.d.ts +21 -0
- package/types/lodash/unzipWith.d.ts +23 -0
- package/types/lodash/update.d.ts +29 -0
- package/types/lodash/updateWith.d.ts +26 -0
- package/types/lodash/upperCase.d.ts +22 -0
- package/types/lodash/upperFirst.d.ts +19 -0
- package/types/lodash/util.d.ts +33 -0
- package/types/lodash/util.default.d.ts +67 -0
- package/types/lodash/value.d.ts +1 -0
- package/types/lodash/valueOf.d.ts +1 -0
- package/types/lodash/values.d.ts +28 -0
- package/types/lodash/valuesIn.d.ts +26 -0
- package/types/lodash/without.d.ts +22 -0
- package/types/lodash/words.d.ts +21 -0
- package/types/lodash/wrap.d.ts +24 -0
- package/types/lodash/wrapperAt.d.ts +18 -0
- package/types/lodash/wrapperChain.d.ts +29 -0
- package/types/lodash/wrapperLodash.d.ts +239 -0
- package/types/lodash/wrapperReverse.d.ts +22 -0
- package/types/lodash/wrapperValue.d.ts +16 -0
- package/types/lodash/xor.d.ts +20 -0
- package/types/lodash/xorBy.d.ts +25 -0
- package/types/lodash/xorWith.d.ts +23 -0
- package/types/lodash/zip.d.ts +18 -0
- package/types/lodash/zipObject.d.ts +18 -0
- package/types/lodash/zipObjectDeep.d.ts +17 -0
- package/types/lodash/zipWith.d.ts +22 -0
- package/types/random/index.d.ts +4 -4
- package/types/screenfull/index.d.ts +1 -7
- package/types/sleep/index.d.ts +2 -0
- package/types/snapdom/src/api/preCache.d.ts +26 -3
- package/types/snapdom/src/api/snapdom.d.ts +86 -21
- package/types/snapdom/src/core/cache.d.ts +27 -12
- package/types/snapdom/src/core/capture.d.ts +18 -2
- package/types/snapdom/src/core/clone.d.ts +1 -10
- package/types/snapdom/src/core/context.d.ts +67 -0
- package/types/snapdom/src/core/prepare.d.ts +1 -2
- package/types/snapdom/src/exporters/download.d.ts +16 -0
- package/types/snapdom/src/exporters/toBlob.d.ts +14 -0
- package/types/snapdom/src/exporters/toCanvas.d.ts +14 -0
- package/types/snapdom/src/exporters/toImg.d.ts +11 -0
- package/types/snapdom/src/modules/CSSVar.d.ts +9 -0
- package/types/snapdom/src/modules/background.d.ts +6 -1
- package/types/snapdom/src/modules/changeCSS.d.ts +14 -0
- package/types/snapdom/src/modules/counter.d.ts +72 -0
- package/types/snapdom/src/modules/fonts.d.ts +67 -11
- package/types/snapdom/src/modules/images.d.ts +10 -4
- package/types/snapdom/src/modules/lineClamp.d.ts +13 -0
- package/types/snapdom/src/modules/pseudo.d.ts +4 -4
- package/types/snapdom/src/modules/rasterize.d.ts +16 -0
- package/types/snapdom/src/modules/snapFetch.d.ts +93 -0
- package/types/snapdom/src/modules/styles.d.ts +2 -1
- package/types/snapdom/src/utils/browser.d.ts +12 -0
- package/types/snapdom/src/utils/css.d.ts +68 -0
- package/types/snapdom/src/utils/helpers.d.ts +0 -61
- package/types/snapdom/src/utils/image.d.ts +21 -0
- package/types/snapdom/src/utils/index.d.ts +4 -0
- package/types/tinycolor/src/public_api.d.ts +1 -1
- package/types/tree/index.d.ts +6 -6
- package/ui-color/compareColorByRange.js +1 -0
- package/ui-color/index.js +1 -0
- package/uiColor.js +1 -0
- package/url-toolkit/index.js +1 -0
- package/url-toolkit/src/url-toolkit.js +1 -0
- package/urlToolkit.js +1 -0
- package/version/index.js +1 -0
- package/version.js +1 -0
- package/filesize/index.js +0 -8
- package/filesize/src/constants.js +0 -71
- package/filesize/src/filesize.js +0 -87
- package/filesize.js +0 -8
- package/snapdom/src/utils/cssTools.js +0 -118
- package/turbo-stream/index.js +0 -6
- package/turbo-stream/src/decode.js +0 -284
- package/turbo-stream/src/encode.js +0 -357
- package/turbo-stream/src/shared.js +0 -267
- package/turboStream.js +0 -6
- package/types/filesize/index.d.ts +0 -2
- package/types/snapdom/src/utils/cssTools.d.ts +0 -29
- package/types/turbo-stream/index.d.ts +0 -1
- package/types/turbo-stream/src/decode.d.ts +0 -7
- package/types/turbo-stream/src/encode.d.ts +0 -27
- package/types/turbo-stream/src/shared.d.ts +0 -107
- package/types/turbo-stream/src/turbo-stream.d.ts +0 -4
- /package/types/tinycolor/src/{util.d.ts → utils.d.ts} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default xorWith;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.xor` except that it accepts `comparator` which is
|
|
4
|
+
* invoked to compare elements of `arrays`. The order of result values is
|
|
5
|
+
* determined by the order they occur in the arrays. The comparator is invoked
|
|
6
|
+
* with two arguments: (arrVal, othVal).
|
|
7
|
+
*
|
|
8
|
+
* @static
|
|
9
|
+
* @memberOf _
|
|
10
|
+
* @since 4.0.0
|
|
11
|
+
* @category Array
|
|
12
|
+
* @param {...Array} [arrays] The arrays to inspect.
|
|
13
|
+
* @param {Function} [comparator] The comparator invoked per element.
|
|
14
|
+
* @returns {Array} Returns the new array of filtered values.
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
|
|
18
|
+
* var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
|
|
19
|
+
*
|
|
20
|
+
* _.xorWith(objects, others, _.isEqual);
|
|
21
|
+
* // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
|
|
22
|
+
*/
|
|
23
|
+
declare var xorWith: Function;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default zip;
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array of grouped elements, the first of which contains the
|
|
4
|
+
* first elements of the given arrays, the second of which contains the
|
|
5
|
+
* second elements of the given arrays, and so on.
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 0.1.0
|
|
10
|
+
* @category Array
|
|
11
|
+
* @param {...Array} [arrays] The arrays to process.
|
|
12
|
+
* @returns {Array} Returns the new array of grouped elements.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* _.zip(['a', 'b'], [1, 2], [true, false]);
|
|
16
|
+
* // => [['a', 1, true], ['b', 2, false]]
|
|
17
|
+
*/
|
|
18
|
+
declare var zip: Function;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default zipObject;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.fromPairs` except that it accepts two arrays,
|
|
4
|
+
* one of property identifiers and one of corresponding values.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 0.4.0
|
|
9
|
+
* @category Array
|
|
10
|
+
* @param {Array} [props=[]] The property identifiers.
|
|
11
|
+
* @param {Array} [values=[]] The property values.
|
|
12
|
+
* @returns {Object} Returns the new object.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* _.zipObject(['a', 'b'], [1, 2]);
|
|
16
|
+
* // => { 'a': 1, 'b': 2 }
|
|
17
|
+
*/
|
|
18
|
+
declare function zipObject(props?: any[], values?: any[]): Object;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default zipObjectDeep;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.zipObject` except that it supports property paths.
|
|
4
|
+
*
|
|
5
|
+
* @static
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 4.1.0
|
|
8
|
+
* @category Array
|
|
9
|
+
* @param {Array} [props=[]] The property identifiers.
|
|
10
|
+
* @param {Array} [values=[]] The property values.
|
|
11
|
+
* @returns {Object} Returns the new object.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
|
|
15
|
+
* // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
|
|
16
|
+
*/
|
|
17
|
+
declare function zipObjectDeep(props?: any[], values?: any[]): Object;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default zipWith;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.zip` except that it accepts `iteratee` to specify
|
|
4
|
+
* how grouped values should be combined. The iteratee is invoked with the
|
|
5
|
+
* elements of each group: (...group).
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 3.8.0
|
|
10
|
+
* @category Array
|
|
11
|
+
* @param {...Array} [arrays] The arrays to process.
|
|
12
|
+
* @param {Function} [iteratee=_.identity] The function to combine
|
|
13
|
+
* grouped values.
|
|
14
|
+
* @returns {Array} Returns the new array of grouped elements.
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
|
|
18
|
+
* return a + b + c;
|
|
19
|
+
* });
|
|
20
|
+
* // => [111, 222]
|
|
21
|
+
*/
|
|
22
|
+
declare var zipWith: Function;
|
package/types/random/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
+
export { address };
|
|
2
3
|
export function county(p: any): string;
|
|
3
4
|
export function company(): string;
|
|
4
5
|
export function project(): string;
|
|
@@ -9,23 +10,22 @@ declare namespace _default {
|
|
|
9
10
|
export function id(): number;
|
|
10
11
|
export function increment(step: any): number;
|
|
11
12
|
export { image };
|
|
12
|
-
export { address };
|
|
13
13
|
export { web };
|
|
14
14
|
export { name };
|
|
15
15
|
export { text };
|
|
16
|
+
export { number };
|
|
16
17
|
export function boolean(): boolean;
|
|
17
18
|
export function sex(): string;
|
|
18
19
|
export { sample as pick };
|
|
19
|
-
export { number };
|
|
20
20
|
}
|
|
21
21
|
export default _default;
|
|
22
|
+
import address from './address';
|
|
22
23
|
import time from './time';
|
|
23
24
|
import constellation from './constellation';
|
|
24
25
|
import licensePlate from './licensePlate';
|
|
25
26
|
import image from './image';
|
|
26
|
-
import address from './address';
|
|
27
27
|
import web from './web';
|
|
28
28
|
import name from './name';
|
|
29
29
|
import text from './text';
|
|
30
|
-
import sample from 'lodash/sample';
|
|
31
30
|
import number from './number';
|
|
31
|
+
import sample from 'lodash/sample';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export default screenfull;
|
|
2
2
|
declare namespace screenfull {
|
|
3
|
-
|
|
4
|
-
export function exit(): Promise<any>;
|
|
5
|
-
export function toggle(element: any, options: any): any;
|
|
6
|
-
export function on(event: any, callback: any): void;
|
|
7
|
-
export function off(event: any, callback: any): void;
|
|
8
|
-
export { nativeAPI as raw };
|
|
3
|
+
let isEnabled: boolean;
|
|
9
4
|
}
|
|
10
|
-
declare const nativeAPI: {};
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Preloads images, background images, and optionally fonts into cache before DOM capture.
|
|
3
|
-
*
|
|
2
|
+
* Preloads images, background images, and (optionally) fonts into cache before DOM capture.
|
|
3
|
+
* @param {Element|Document} [root=document]
|
|
4
|
+
* @param {Object} [options={}]
|
|
5
|
+
* @param {boolean} [options.embedFonts=true]
|
|
6
|
+
* @param {'full'|'soft'|'auto'|'disabled'} [options.cache='full']
|
|
7
|
+
* @param {string} [options.useProxy=""]
|
|
8
|
+
* @param {{family:string,src:string,weight?:string|number,style?:string,stretchPct?:number}[]} [options.localFonts=[]]
|
|
9
|
+
* @param {{families?:string[], domains?:string[], subsets?:string[]}} [options.excludeFonts]
|
|
10
|
+
* @returns {Promise<void>}
|
|
4
11
|
*/
|
|
5
|
-
export function preCache(root?: Document, options?: {
|
|
12
|
+
export function preCache(root?: Element | Document, options?: {
|
|
13
|
+
embedFonts?: boolean | undefined;
|
|
14
|
+
cache?: "auto" | "soft" | "full" | "disabled" | undefined;
|
|
15
|
+
useProxy?: string | undefined;
|
|
16
|
+
localFonts?: {
|
|
17
|
+
family: string;
|
|
18
|
+
src: string;
|
|
19
|
+
weight?: string | number;
|
|
20
|
+
style?: string;
|
|
21
|
+
stretchPct?: number;
|
|
22
|
+
}[] | undefined;
|
|
23
|
+
excludeFonts?: {
|
|
24
|
+
families?: string[];
|
|
25
|
+
domains?: string[];
|
|
26
|
+
subsets?: string[];
|
|
27
|
+
} | undefined;
|
|
28
|
+
}): Promise<void>;
|
|
@@ -1,26 +1,91 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Main
|
|
3
|
-
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @
|
|
6
|
-
* @
|
|
2
|
+
* Main function that captures a DOM element and returns export utilities.
|
|
3
|
+
* @param {HTMLElement} element - The DOM element to capture.
|
|
4
|
+
* @param {object} userOptions - Options for rendering/exporting.
|
|
5
|
+
* @returns {Promise<object>} Object with exporter methods:
|
|
6
|
+
* @deprecated toImg()
|
|
7
|
+
* - url: The raw data URL
|
|
8
|
+
* - toRaw(): Gets raw data URL
|
|
9
|
+
* - toImg(): Converts to Svg format
|
|
10
|
+
* - toSvg(): Converts to Svg format
|
|
11
|
+
* - toCanvas(): Converts to HTMLCanvasElement
|
|
12
|
+
* - toBlob(): Converts to Blob
|
|
13
|
+
* - toPng(): Converts to PNG format
|
|
14
|
+
* - toJpg(): Converts to JPEG format
|
|
15
|
+
* - toWebp(): Converts to WebP format
|
|
16
|
+
* - download(): Triggers file download
|
|
7
17
|
*/
|
|
8
|
-
export function snapdom(element:
|
|
18
|
+
export function snapdom(element: HTMLElement, userOptions: object): Promise<object>;
|
|
9
19
|
export namespace snapdom {
|
|
10
20
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @param {
|
|
14
|
-
* @param {
|
|
15
|
-
* @
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function
|
|
21
|
+
* Internal capture method that returns helper methods for transformation/export.
|
|
22
|
+
* @private
|
|
23
|
+
* @param {HTMLElement} el - The DOM element to capture.
|
|
24
|
+
* @param {object} context - Normalized context options.
|
|
25
|
+
* @param {symbol} _token - Internal security token.
|
|
26
|
+
* @returns {Promise<object>} Exporter functions.
|
|
27
|
+
*/
|
|
28
|
+
function capture(el: HTMLElement, context: object, _token: symbol): Promise<object>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the raw data URL from a captured element.
|
|
31
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
32
|
+
* @param {object} [options] - Rendering options.
|
|
33
|
+
* @returns {Promise<string>} Raw data URL.
|
|
34
|
+
*/
|
|
35
|
+
function toRaw(el: HTMLElement, options?: object): Promise<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Returns an HTMLImageElement from a captured element.
|
|
38
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
39
|
+
* @param {object} [options] - Rendering options.
|
|
40
|
+
* @returns {Promise<HTMLImageElement>} Loaded image element.
|
|
41
|
+
*/
|
|
42
|
+
function toImg(el: HTMLElement, options?: object): Promise<HTMLImageElement>;
|
|
43
|
+
function toSvg(el: any, options: any): Promise<any>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a Canvas element from a captured element.
|
|
46
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
47
|
+
* @param {object} [options] - Rendering options.
|
|
48
|
+
* @returns {Promise<HTMLCanvasElement>} Rendered canvas element.
|
|
49
|
+
*/
|
|
50
|
+
function toCanvas(el: HTMLElement, options?: object): Promise<HTMLCanvasElement>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns a Blob from a captured element.
|
|
53
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
54
|
+
* @param {object} [options] - Rendering options.
|
|
55
|
+
* @returns {Promise<Blob>} Image blob.
|
|
56
|
+
*/
|
|
57
|
+
function toBlob(el: HTMLElement, options?: object): Promise<Blob>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns a PNG image from a captured element.
|
|
60
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
61
|
+
* @param {object} [options] - Rendering options.
|
|
62
|
+
* @returns {Promise<HTMLImageElement>} PNG image element.
|
|
63
|
+
*/
|
|
64
|
+
function toPng(el: HTMLElement, options?: object): Promise<HTMLImageElement>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a JPEG image from a captured element.
|
|
67
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
68
|
+
* @param {object} [options] - Rendering options.
|
|
69
|
+
* @returns {Promise<HTMLImageElement>} JPEG image element.
|
|
70
|
+
*/
|
|
71
|
+
function toJpg(el: HTMLElement, options?: object): Promise<HTMLImageElement>;
|
|
72
|
+
/**
|
|
73
|
+
* Returns a WebP image from a captured element.
|
|
74
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
75
|
+
* @param {object} [options] - Rendering options.
|
|
76
|
+
* @returns {Promise<HTMLImageElement>} WebP image element.
|
|
77
|
+
*/
|
|
78
|
+
function toWebp(el: HTMLElement, options?: object): Promise<HTMLImageElement>;
|
|
79
|
+
/**
|
|
80
|
+
* Downloads the captured image in the specified format.
|
|
81
|
+
* @param {HTMLElement} el - DOM element to capture.
|
|
82
|
+
* @param {object} options - Download options including filename.
|
|
83
|
+
* @param {string} options.filename - Name for the downloaded file.
|
|
84
|
+
* @param {string} [options.format='png'] - Image format ('png', 'jpeg', 'webp', 'svg').
|
|
85
|
+
* @returns {Promise<void>}
|
|
86
|
+
*/
|
|
87
|
+
function download(el: HTMLElement, options: {
|
|
88
|
+
filename: string;
|
|
89
|
+
format?: string | undefined;
|
|
90
|
+
}): Promise<void>;
|
|
26
91
|
}
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes shorthand values to canonical cache policies.
|
|
3
|
+
* - true => "soft"
|
|
4
|
+
* - false => "disabled"
|
|
5
|
+
* - "auto" => "auto"
|
|
6
|
+
* - "full" => "full"
|
|
7
|
+
* @param {unknown} v
|
|
8
|
+
* @returns {"soft"|"auto"|"full"|"disabled"}
|
|
9
|
+
*/
|
|
10
|
+
export function normalizeCachePolicy(v: unknown): "soft" | "auto" | "full" | "disabled";
|
|
11
|
+
/**
|
|
12
|
+
* Applies the cache policy.
|
|
13
|
+
* @param {"soft"|"auto"|"full"|"disabled"} policy
|
|
14
|
+
*/
|
|
15
|
+
export function applyCachePolicy(policy?: "soft" | "auto" | "full" | "disabled"): void;
|
|
1
16
|
export namespace cache {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
let image: Map<any, any>;
|
|
18
|
+
let background: Map<any, any>;
|
|
19
|
+
let resource: Map<any, any>;
|
|
20
|
+
let defaultStyle: Map<any, any>;
|
|
21
|
+
let baseStyle: Map<any, any>;
|
|
22
|
+
let computedStyle: WeakMap<WeakKey, any>;
|
|
23
|
+
let font: Set<any>;
|
|
24
|
+
namespace session {
|
|
25
|
+
let styleMap: Map<any, any>;
|
|
26
|
+
let styleCache: WeakMap<WeakKey, any>;
|
|
27
|
+
let nodeMap: Map<any, any>;
|
|
28
|
+
}
|
|
12
29
|
}
|
|
13
|
-
declare function resetCache(): void;
|
|
14
|
-
export {};
|
|
@@ -3,19 +3,35 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param {Element} element - DOM element to capture
|
|
5
5
|
* @param {Object} [options={}] - Capture options
|
|
6
|
-
* @param {boolean} [options.compress=true] - Whether to compress style keys
|
|
7
6
|
* @param {boolean} [options.embedFonts=false] - Whether to embed custom fonts
|
|
8
7
|
* @param {boolean} [options.fast=true] - Whether to skip idle delay for faster results
|
|
9
8
|
* @param {number} [options.scale=1] - Output scale multiplier
|
|
10
9
|
* @param {string[]} [options.exclude] - CSS selectors for elements to exclude
|
|
11
10
|
* @param {Function} [options.filter] - Custom filter function
|
|
11
|
+
* @param {boolean} [options.straighten=false] - Normalize root by removing translate*rotate* (keep scale/skew)
|
|
12
|
+
* @param {boolean} [options.noShadows=false] - Do not expand bleed for shadows/blur/outline on root (and strip root shadows visually)
|
|
13
|
+
* @returns {Promise<string>} Promise that resolves to an SVG data URL
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Captures an HTML element as an SVG data URL, inlining styles, images, backgrounds, and optionally fonts.
|
|
17
|
+
*
|
|
18
|
+
* @param {Element} element - DOM element to capture
|
|
19
|
+
* @param {Object} [options={}] - Capture options
|
|
20
|
+
* @param {boolean} [options.embedFonts=false] - Whether to embed custom fonts
|
|
21
|
+
* @param {boolean} [options.fast=true] - Whether to skip idle delay for faster results
|
|
22
|
+
* @param {number} [options.scale=1] - Output scale multiplier
|
|
23
|
+
* @param {string[]} [options.exclude] - CSS selectors for elements to exclude
|
|
24
|
+
* @param {Function} [options.filter] - Custom filter function
|
|
25
|
+
* @param {boolean} [options.straighten=false] - Normalize root by removing translate/rotate (keep scale/skew)
|
|
26
|
+
* @param {boolean} [options.noShadows=false] - Do not expand bleed for shadows/blur/outline on root (and strip root shadows visually)
|
|
12
27
|
* @returns {Promise<string>} Promise that resolves to an SVG data URL
|
|
13
28
|
*/
|
|
14
29
|
export function captureDOM(element: Element, options?: {
|
|
15
|
-
compress?: boolean | undefined;
|
|
16
30
|
embedFonts?: boolean | undefined;
|
|
17
31
|
fast?: boolean | undefined;
|
|
18
32
|
scale?: number | undefined;
|
|
19
33
|
exclude?: string[] | undefined;
|
|
20
34
|
filter?: Function | undefined;
|
|
35
|
+
straighten?: boolean | undefined;
|
|
36
|
+
noShadows?: boolean | undefined;
|
|
21
37
|
}): Promise<string>;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Creates a deep clone of a DOM node, including styles, shadow DOM, and special handling for excluded/placeholder/canvas nodes.
|
|
3
|
-
*
|
|
4
|
-
* @param {Node} node - Node to clone
|
|
5
|
-
* @param {boolean} compress - Whether to compress style keys
|
|
6
|
-
* @param {Object} [options={}] - Capture options including exclude and filter
|
|
7
|
-
* @param {Node} [originalRoot] - Original root element being captured
|
|
8
|
-
* @returns {Node|null} Cloned node with styles and shadow DOM content, or null for empty text nodes or filtered elements
|
|
9
|
-
*/
|
|
10
|
-
export function deepClone(node: Node, styleMap: any, styleCache: any, nodeMap: any, compress: boolean, options?: Object, originalRoot?: Node): Node | null;
|
|
1
|
+
export function deepClone(node: any, sessionCache: any, options: any): Promise<any>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {"disabled"|"full"|"auto"|"soft"} CachePolicy
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Normalizes `options.cache` into a canonical policy.
|
|
6
|
+
* Accepted strings: "disabled" | "full" | "auto" | "soft"
|
|
7
|
+
* Default: "soft"
|
|
8
|
+
* @param {unknown} v
|
|
9
|
+
* @returns {CachePolicy}
|
|
10
|
+
*/
|
|
11
|
+
export function normalizeCachePolicy(v: unknown): CachePolicy;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a normalized capture context for SnapDOM.
|
|
14
|
+
* @param {Object} [options={}]
|
|
15
|
+
* @param {boolean} [options.debug]
|
|
16
|
+
* @param {boolean} [options.fast]
|
|
17
|
+
* @param {number} [options.scale]
|
|
18
|
+
* @param {Array<string|RegExp>} [options.exclude]
|
|
19
|
+
* @param {string} [options.excludeMode]
|
|
20
|
+
* @param {(node: Node)=>boolean} [options.filter]
|
|
21
|
+
* @param {string} [options.filterMode]
|
|
22
|
+
* @param {boolean} [options.embedFonts]
|
|
23
|
+
* @param {string|string[]} [options.iconFonts]
|
|
24
|
+
* @param {string[]} [options.localFonts]
|
|
25
|
+
* @param {string[]|undefined} [options.excludeFonts]
|
|
26
|
+
* @param {string|function} [options.fallbackURL]
|
|
27
|
+
* @param {string} [options.useProxy]
|
|
28
|
+
* @param {number|null} [options.width]
|
|
29
|
+
* @param {number|null} [options.height]
|
|
30
|
+
* @param {"png"|"jpg"|"jpeg"|"webp"|"svg"} [options.format]
|
|
31
|
+
* @param {"svg"|"img"|"canvas"|"blob"} [options.type]
|
|
32
|
+
* @param {number} [options.quality]
|
|
33
|
+
* @param {number} [options.dpr]
|
|
34
|
+
* @param {string|null} [options.backgroundColor]
|
|
35
|
+
* @param {string} [options.filename]
|
|
36
|
+
* @param {unknown} [options.cache] // "disabled"|"full"|"auto"|"soft"
|
|
37
|
+
* @param {boolean} [options.straighten] // NEW
|
|
38
|
+
* @param {boolean} [options.noShadows] // NEW
|
|
39
|
+
* @returns {Object}
|
|
40
|
+
*/
|
|
41
|
+
export function createContext(options?: {
|
|
42
|
+
debug?: boolean | undefined;
|
|
43
|
+
fast?: boolean | undefined;
|
|
44
|
+
scale?: number | undefined;
|
|
45
|
+
exclude?: (string | RegExp)[] | undefined;
|
|
46
|
+
excludeMode?: string | undefined;
|
|
47
|
+
filter?: ((node: Node) => boolean) | undefined;
|
|
48
|
+
filterMode?: string | undefined;
|
|
49
|
+
embedFonts?: boolean | undefined;
|
|
50
|
+
iconFonts?: string | string[] | undefined;
|
|
51
|
+
localFonts?: string[] | undefined;
|
|
52
|
+
excludeFonts?: string[] | undefined;
|
|
53
|
+
fallbackURL?: string | Function | undefined;
|
|
54
|
+
useProxy?: string | undefined;
|
|
55
|
+
width?: number | null | undefined;
|
|
56
|
+
height?: number | null | undefined;
|
|
57
|
+
format?: "svg" | "png" | "jpg" | "jpeg" | "webp" | undefined;
|
|
58
|
+
type?: "canvas" | "img" | "svg" | "blob" | undefined;
|
|
59
|
+
quality?: number | undefined;
|
|
60
|
+
dpr?: number | undefined;
|
|
61
|
+
backgroundColor?: string | null | undefined;
|
|
62
|
+
filename?: string | undefined;
|
|
63
|
+
cache?: unknown;
|
|
64
|
+
straighten?: boolean | undefined;
|
|
65
|
+
noShadows?: boolean | undefined;
|
|
66
|
+
}): Object;
|
|
67
|
+
export type CachePolicy = "disabled" | "full" | "auto" | "soft";
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
* Prepares a clone of an element for capture, inlining pseudo-elements and generating CSS classes.
|
|
3
3
|
*
|
|
4
4
|
* @param {Element} element - Element to clone
|
|
5
|
-
* @param {boolean} [compress=false] - Whether to compress style keys
|
|
6
5
|
* @param {boolean} [embedFonts=false] - Whether to embed custom fonts
|
|
7
6
|
* @param {Object} [options={}] - Capture options
|
|
8
7
|
* @param {string[]} [options.exclude] - CSS selectors for elements to exclude
|
|
9
8
|
* @param {Function} [options.filter] - Custom filter function
|
|
10
9
|
* @returns {Promise<Object>} Object containing the clone, generated CSS, and style cache
|
|
11
10
|
*/
|
|
12
|
-
export function prepareClone(element: Element,
|
|
11
|
+
export function prepareClone(element: Element, options?: {
|
|
13
12
|
exclude?: string[] | undefined;
|
|
14
13
|
filter?: Function | undefined;
|
|
15
14
|
}): Promise<Object>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Triggers download of the generated image.
|
|
3
|
+
* @param {string} url - Image data URL.
|
|
4
|
+
* @param {object} options - Context including format, quality, filename.
|
|
5
|
+
* @param {string} options.format - Output format ('png', 'jpeg', 'webp', 'svg').
|
|
6
|
+
* @param {string} options.filename - Download filename.
|
|
7
|
+
* @param {number} [options.quality] - Image quality for lossy formats.
|
|
8
|
+
* @param {string} [options.backgroundColor] - Optional background color.
|
|
9
|
+
* @returns {Promise<void>}
|
|
10
|
+
*/
|
|
11
|
+
export function download(url: string, options: {
|
|
12
|
+
format: string;
|
|
13
|
+
filename: string;
|
|
14
|
+
quality?: number | undefined;
|
|
15
|
+
backgroundColor?: string | undefined;
|
|
16
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts the rendered output to a Blob.
|
|
3
|
+
* @param {string} url - Image data URL.
|
|
4
|
+
* @param {object} options - Context including type and quality.
|
|
5
|
+
* @param {string} options.type - Image type ('png', 'jpeg', 'webp', 'svg').
|
|
6
|
+
* @param {number} [options.quality] - Image quality for lossy formats.
|
|
7
|
+
* @param {string} [options.backgroundColor] - Optional background color.
|
|
8
|
+
* @returns {Promise<Blob>} Resolves with the image Blob.
|
|
9
|
+
*/
|
|
10
|
+
export function toBlob(url: string, options: {
|
|
11
|
+
type: string;
|
|
12
|
+
quality?: number | undefined;
|
|
13
|
+
backgroundColor?: string | undefined;
|
|
14
|
+
}): Promise<Blob>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rasterize SVG into a canvas honoring width/height + scale.
|
|
3
|
+
* Uses options.meta for natural sizes (from captureDOM).
|
|
4
|
+
* @param {string} url
|
|
5
|
+
* @param {{width?:number,height?:number,scale?:number,dpr?:number,meta?:object}} options
|
|
6
|
+
* @returns {Promise<HTMLCanvasElement>}
|
|
7
|
+
*/
|
|
8
|
+
export function toCanvas(url: string, options: {
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
scale?: number;
|
|
12
|
+
dpr?: number;
|
|
13
|
+
meta?: object;
|
|
14
|
+
}): Promise<HTMLCanvasElement>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a data URL to an HTMLImageElement.
|
|
3
|
+
* @param {string} url - The data URL of the image.
|
|
4
|
+
* @param {object} options - Context options including scale.
|
|
5
|
+
* @param {number} [options.scale=1] - Scale factor for the image dimensions.
|
|
6
|
+
* @returns {Promise<HTMLImageElement>} Resolves with the loaded Image element.
|
|
7
|
+
*/
|
|
8
|
+
export function toImg(url: string, options: {
|
|
9
|
+
scale?: number | undefined;
|
|
10
|
+
}): Promise<HTMLImageElement>;
|
|
11
|
+
export { toImg as toSvg };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve any author-specified CSS variable usages (var(...)) into computed values
|
|
3
|
+
* on the cloned element. Works for HTML & SVG, inline styles and attributes,
|
|
4
|
+
* without relying on tag/attribute whitelists.
|
|
5
|
+
*
|
|
6
|
+
* @param {Element} sourceEl - Original element in live DOM
|
|
7
|
+
* @param {HTMLElement|SVGElement} cloneEl - Cloned element (detached)
|
|
8
|
+
*/
|
|
9
|
+
export function resolveCSSVars(sourceEl: Element, cloneEl: HTMLElement | SVGElement): void;
|
|
@@ -16,4 +16,9 @@
|
|
|
16
16
|
* @param {Object} [options={}] Optional parameters passed to image inlining functions.
|
|
17
17
|
* @returns {Promise<void>} Resolves when all inlining operations (including async image fetches) complete.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Inlines URL-bearing properties (background/mask/border-image)
|
|
21
|
+
* and also preserves mask positioning longhands (position/size/repeat).
|
|
22
|
+
* This fixes cases like `mask: url(...) center/60% 60% no-repeat`.
|
|
23
|
+
*/
|
|
24
|
+
export function inlineBackgroundImages(source: any, clone: any, styleCache: any, options?: {}): Promise<void>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Freeze sticky elements by converting them to absolutely-positioned overlays.
|
|
3
|
+
* Also creates an invisible absolute placeholder behind each sticky (lower z-index).
|
|
4
|
+
*
|
|
5
|
+
* Robust against sibling-index drift:
|
|
6
|
+
* - Placeholders are marked data-snap-ph="1".
|
|
7
|
+
* - Path resolution in the clone ignores those placeholders to keep indices aligned.
|
|
8
|
+
*
|
|
9
|
+
* Only processes real vertical stickies (numeric top OR bottom).
|
|
10
|
+
*
|
|
11
|
+
* @param {HTMLElement} originalRoot
|
|
12
|
+
* @param {HTMLElement} cloneRoot
|
|
13
|
+
*/
|
|
14
|
+
export function freezeSticky(originalRoot: HTMLElement, cloneRoot: HTMLElement): void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight CSS counter resolver for SnapDOM.
|
|
3
|
+
* - Supports counter(name[, style]) and counters(name, sep[, style])
|
|
4
|
+
* - counter-reset push vs replace (push if parent has that counter, replace otherwise)
|
|
5
|
+
* - Carries state across siblings in document order
|
|
6
|
+
* - Simple OL/UL indexing (start, li[value]); reversed not handled intentionally
|
|
7
|
+
*
|
|
8
|
+
* @module counters
|
|
9
|
+
*/
|
|
10
|
+
/** Detects if a content string uses counter()/counters(). */
|
|
11
|
+
export function hasCounters(input: any): boolean;
|
|
12
|
+
/** Replace every CSS string token "..." with its raw content (keeps single quotes). */
|
|
13
|
+
export function unquoteDoubleStrings(s: any): any;
|
|
14
|
+
/**
|
|
15
|
+
* Build a counter context by walking the DOM once.
|
|
16
|
+
* It stores, for each Element, a Map<counterName, number[]> (stack).
|
|
17
|
+
*
|
|
18
|
+
* Rules:
|
|
19
|
+
* - counter-reset on element:
|
|
20
|
+
* * if parent had that counter -> push (nest)
|
|
21
|
+
* * else -> replace (start a fresh stack with [value])
|
|
22
|
+
* - counter-increment on element: add to top, creating top=0 if needed
|
|
23
|
+
* - list-item: sets 'list-item' value for LI in OL/UL (supports start, li[value])
|
|
24
|
+
*
|
|
25
|
+
* @param {Document|Element} root
|
|
26
|
+
* @returns {{ get(node: Element, name: string): number, getStack(node: Element, name: string): number[] }}
|
|
27
|
+
*/
|
|
28
|
+
export function buildCounterContext(root: Document | Element): {
|
|
29
|
+
get(node: Element, name: string): number;
|
|
30
|
+
getStack(node: Element, name: string): number[];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Resolves counter()/counters() calls inside a content string for a specific node,
|
|
34
|
+
* returning a plain string suitable for textContent. Also strips double-quote tokens.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} raw
|
|
37
|
+
* @param {Element} node
|
|
38
|
+
* @param {{get(node: Element, name: string): number, getStack(node: Element, name: string): number[]}} ctx
|
|
39
|
+
*/
|
|
40
|
+
export function resolveCountersInContent(raw: string, node: Element, ctx: {
|
|
41
|
+
get(node: Element, name: string): number;
|
|
42
|
+
getStack(node: Element, name: string): number[];
|
|
43
|
+
}): any;
|
|
44
|
+
/**
|
|
45
|
+
* Create a derived counter context that applies a pseudo's counter-reset /
|
|
46
|
+
* counter-increment *for this node only*, before resolving content.
|
|
47
|
+
* Works with ::before / ::after (and any pseudo with content).
|
|
48
|
+
*
|
|
49
|
+
* @param {Element} node
|
|
50
|
+
* @param {CSSStyleDeclaration|null} pseudoStyle getComputedStyle(node, '::before' | '::after')
|
|
51
|
+
* @param {{get(node: Element, name: string): number, getStack(node: Element, name: string): number[]}} baseCtx
|
|
52
|
+
*/
|
|
53
|
+
export function deriveCounterCtxForPseudo(node: Element, pseudoStyle: CSSStyleDeclaration | null, baseCtx: {
|
|
54
|
+
get(node: Element, name: string): number;
|
|
55
|
+
getStack(node: Element, name: string): number[];
|
|
56
|
+
}): {
|
|
57
|
+
get(_node: any, name: any): any;
|
|
58
|
+
getStack(_node: any, name: any): any;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Convenience helper: resolve the final text to render for a pseudo's `content`,
|
|
62
|
+
* correctly applying the pseudo's own counter-reset/increment before evaluation.
|
|
63
|
+
*
|
|
64
|
+
* @param {Element} node
|
|
65
|
+
* @param {'::before'|'::after'} pseudo
|
|
66
|
+
* @param {{get(node: Element, name: string): number, getStack(node: Element, name: string): number[]}} baseCtx
|
|
67
|
+
* @returns {string} resolved content (without surrounding double quotes)
|
|
68
|
+
*/
|
|
69
|
+
export function resolvePseudoContent(node: Element, pseudo: "::before" | "::after", baseCtx: {
|
|
70
|
+
get(node: Element, name: string): number;
|
|
71
|
+
getStack(node: Element, name: string): number[];
|
|
72
|
+
}): string;
|