UNPKG

@ckeditor/ckeditor5-utils

Version:

Miscellaneous utilities used by CKEditor 5.

81 lines (80 loc) 6.36 kB
/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ /** * @module utils/index */ export { env, getUserAgent as _getUserAgent, isMac as _isMac, isWindows as _isWindows, isGecko as _isGecko, isSafari as _isSafari, isiOS as _isiOS, isAndroid as _isAndroid, isBlink as _isBlink, isRegExpUnicodePropertySupported as _isRegExpUnicodePropertySupported, isMediaForcedColors as _isMediaForcedColors, isMotionReduced as _isMotionReduced, type EnvType, type EnvFeaturesType } from "./env.js"; export { diff, type Diff, type DiffResult } from "./diff.js"; export { fastDiff } from "./fastdiff.js"; export { diffToChanges, type InsertChange, type DeleteChange, type Change } from "./difftochanges.js"; export { areConnectedThroughProperties } from "./areconnectedthroughproperties.js"; export type { Constructor, Mixed } from "./mix.js"; export { _getEmitterListenedTo, _setEmitterId, _getEmitterId, EmitterMixin, type Emitter, type EmitterMixinConstructor, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from "./emittermixin.js"; export { EventInfo } from "./eventinfo.js"; export { ObservableMixin, type Observable, type ObservableMixinConstructor, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent, type ObservableSingleBindChain, type ObservableDualBindChain, type ObservableMultiBindChain, type ObservableWithProperty } from "./observablemixin.js"; export { CKEditorError, logError, logWarning, DOCUMENTATION_URL } from "./ckeditorerror.js"; export { ElementReplacer } from "./elementreplacer.js"; export { abortableDebounce, type AbortableFunc } from "./abortabledebounce.js"; export { count } from "./count.js"; export { compareArrays, type ArrayRelation } from "./comparearrays.js"; export { createElement, type HTMLElementAttributes, type SVGElementAttributes, type ChildrenElements } from "./dom/createelement.js"; export { Config, type GetSubConfig, type OnlyObject } from "./config.js"; export { isIterable } from "./isiterable.js"; export { DomEmitterMixin, type DomEmitter, type DomEmitterMixinConstructor, type DomEventMap } from "./dom/emittermixin.js"; export { findClosestScrollableAncestor } from "./dom/findclosestscrollableancestor.js"; export { global, type GlobalType } from "./dom/global.js"; export { getAncestors } from "./dom/getancestors.js"; export { getDataFromElement } from "./dom/getdatafromelement.js"; export { getBorderWidths, type BorderWidths } from "./dom/getborderwidths.js"; export { getRangeFromMouseEvent } from "./dom/getrangefrommouseevent.js"; export { getCommonAncestor } from "./dom/getcommonancestor.js"; export { getPositionedAncestor } from "./dom/getpositionedancestor.js"; export { isText } from "./dom/istext.js"; export { isWindow } from "./dom/iswindow.js"; export { Rect, type RectSource, type DomRectLike } from "./dom/rect.js"; export { ResizeObserver } from "./dom/resizeobserver.js"; export { setDataInElement } from "./dom/setdatainelement.js"; export { toUnit, type ToUnitHelper } from "./dom/tounit.js"; export { indexOf } from "./dom/indexof.js"; export { insertAt } from "./dom/insertat.js"; export { isComment } from "./dom/iscomment.js"; export { isNode } from "./dom/isnode.js"; export { isRange } from "./dom/isrange.js"; export { isValidAttributeName } from "./dom/isvalidattributename.js"; export { isVisible } from "./dom/isvisible.js"; export { getOptimalPosition, getConstrainedViewportRect, type DomOptimalPositionOptions, type PositioningFunction, type DomPoint, type DomPositioningFunctionResult } from "./dom/position.js"; export { remove } from "./dom/remove.js"; export { getVisualViewportOffset } from "./dom/getvisualviewportoffset.js"; export { scrollAncestorsToShowTarget, scrollViewportToShowTarget, type IfTrue } from "./dom/scroll.js"; export { type ArrowKeyCodeDirection, type KeystrokeInfo, keyCodes, getCode, parseKeystroke, getEnvKeystrokeText, isArrowKeyCode, getLocalizedArrowKeyCodeDirection, isForwardArrowKeyCode } from "./keyboard.js"; export { type LanguageDirection, getLanguageDirection } from "./language.js"; export { Locale, type LocaleTranslate, type Translations } from "./locale.js"; export { Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent, type CollectionChangeEventData, type CollectionBindToChain } from "./collection.js"; export { first } from "./first.js"; export { nth } from "./nth.js"; export { FocusTracker, type ViewWithFocusTracker, isViewWithFocusTracker } from "./focustracker.js"; export { KeystrokeHandler, type KeystrokeHandlerOptions } from "./keystrokehandler.js"; export { toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from "./toarray.js"; export { toMap } from "./tomap.js"; export { mapsEqual } from "./mapsequal.js"; export { objectToMap } from "./objecttomap.js"; export { add, _translate, _clear as _clearTranslations, _unifyTranslations, type Message } from "./translation-service.js"; export { priorities, type PriorityString, type PrioritiesType } from "./priorities.js"; export { retry, exponentialDelay } from "./retry.js"; export { insertToPriorityArray, type ObjectWithPriority } from "./inserttopriorityarray.js"; export { spliceArray } from "./splicearray.js"; export { uid } from "./uid.js"; export { delay, type DelayedFunc } from "./delay.js"; export { wait } from "./wait.js"; export { parseBase64EncodedObject } from "./parsebase64encodedobject.js"; export { crc32, type CRCData, type CRCValue } from "./crc32.js"; export { collectStylesheets } from "./collectstylesheets.js"; export { formatHtml } from "./formathtml.js"; export { spy } from "./spy.js"; export { isCombiningMark, isHighSurrogateHalf, isLowSurrogateHalf, isInsideSurrogatePair, isInsideCombinedSymbol, isInsideEmojiSequence } from "./unicode.js"; export { decodeLicenseKey } from "./decodelicensekey.js"; export { isFeatureBlockedByLicenseKey } from "./isfeatureblockedbylicensekey.js"; export { tryParseDimensionWithUnit as _tryParseDimensionWithUnit, tryCastDimensionsToUnit as _tryCastDimensionsToUnit, type DimensionWithUnit as _DimensionWithUnit } from "./parsedimensionwithunit.js"; export { version, releaseDate } from "./version.js";