@studiometa/js-toolkit 3.9.0 → 4.0.0-alpha.1
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/README.md +26 -101
- package/dist/Base.d.ts +371 -0
- package/dist/Base.js +907 -0
- package/dist/Base.js.map +1 -0
- package/dist/attribute-namespaces.d.ts +67 -0
- package/dist/attribute-namespaces.js +97 -0
- package/dist/attribute-namespaces.js.map +1 -0
- package/dist/attributes.d.ts +137 -0
- package/dist/attributes.js +166 -0
- package/dist/attributes.js.map +1 -0
- package/dist/children-watchers.d.ts +23 -0
- package/dist/children-watchers.js +48 -0
- package/dist/children-watchers.js.map +1 -0
- package/dist/component-brand.d.ts +11 -0
- package/dist/component-brand.js +17 -0
- package/dist/component-brand.js.map +1 -0
- package/dist/component-declarations.d.ts +15 -0
- package/dist/component-declarations.js +31 -0
- package/dist/component-declarations.js.map +1 -0
- package/dist/context-subscription.d.ts +24 -0
- package/dist/context-subscription.js +123 -0
- package/dist/context-subscription.js.map +1 -0
- package/dist/context.d.ts +82 -0
- package/dist/context.js +173 -0
- package/dist/context.js.map +1 -0
- package/dist/decorators.d.ts +70 -0
- package/dist/decorators.js +189 -0
- package/dist/decorators.js.map +1 -0
- package/dist/diagnostic-contract.d.ts +104 -0
- package/dist/diagnostic-contract.js +66 -0
- package/dist/diagnostic-contract.js.map +1 -0
- package/dist/diagnostics.d.ts +41 -0
- package/dist/diagnostics.js +102 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/document-order.d.ts +10 -0
- package/dist/document-order.js +17 -0
- package/dist/document-order.js.map +1 -0
- package/dist/dom-mutations.d.ts +77 -0
- package/dist/dom-mutations.js +238 -0
- package/dist/dom-mutations.js.map +1 -0
- package/dist/events.d.ts +17 -0
- package/dist/events.js +19 -0
- package/dist/events.js.map +1 -0
- package/dist/group.d.ts +55 -0
- package/dist/group.js +34 -0
- package/dist/group.js.map +1 -0
- package/dist/index.d.ts +40 -7
- package/dist/index.js +38 -143
- package/dist/instances.d.ts +86 -0
- package/dist/instances.js +71 -0
- package/dist/instances.js.map +1 -0
- package/dist/manifest.d.ts +36 -0
- package/dist/manifest.js +49 -0
- package/dist/manifest.js.map +1 -0
- package/dist/mount-strategies.d.ts +46 -0
- package/dist/mount-strategies.js +213 -0
- package/dist/mount-strategies.js.map +1 -0
- package/dist/negotiated-events.d.ts +43 -0
- package/dist/negotiated-events.js +98 -0
- package/dist/negotiated-events.js.map +1 -0
- package/dist/protocol-symbols.d.ts +24 -0
- package/dist/protocol-symbols.js +26 -0
- package/dist/protocol-symbols.js.map +1 -0
- package/dist/registry.d.ts +68 -0
- package/dist/registry.js +442 -0
- package/dist/registry.js.map +1 -0
- package/dist/responsive-options.d.ts +34 -0
- package/dist/responsive-options.js +106 -0
- package/dist/responsive-options.js.map +1 -0
- package/dist/scheduler.d.ts +51 -0
- package/dist/scheduler.js +217 -0
- package/dist/scheduler.js.map +1 -0
- package/dist/services/breakpoint.d.ts +35 -0
- package/dist/services/breakpoint.js +130 -0
- package/dist/services/breakpoint.js.map +1 -0
- package/dist/services/drag.d.ts +65 -0
- package/dist/services/drag.js +271 -0
- package/dist/services/drag.js.map +1 -0
- package/dist/services/in-view.d.ts +26 -0
- package/dist/services/in-view.js +83 -0
- package/dist/services/in-view.js.map +1 -0
- package/dist/services/key.d.ts +70 -0
- package/dist/services/key.js +92 -0
- package/dist/services/key.js.map +1 -0
- package/dist/services/media.d.ts +18 -0
- package/dist/services/media.js +50 -0
- package/dist/services/media.js.map +1 -0
- package/dist/services/mixin.d.ts +82 -0
- package/dist/services/mixin.js +141 -0
- package/dist/services/mixin.js.map +1 -0
- package/dist/services/mutation.d.ts +41 -0
- package/dist/services/mutation.js +95 -0
- package/dist/services/mutation.js.map +1 -0
- package/dist/services/pointer.d.ts +49 -0
- package/dist/services/pointer.js +167 -0
- package/dist/services/pointer.js.map +1 -0
- package/dist/services/raf.d.ts +27 -0
- package/dist/services/raf.js +70 -0
- package/dist/services/raf.js.map +1 -0
- package/dist/services/resize.d.ts +38 -0
- package/dist/services/resize.js +82 -0
- package/dist/services/resize.js.map +1 -0
- package/dist/services/scroll-progress-offset.d.ts +17 -0
- package/dist/services/scroll-progress-offset.js +35 -0
- package/dist/services/scroll-progress-offset.js.map +1 -0
- package/dist/services/scroll-progress.d.ts +41 -0
- package/dist/services/scroll-progress.js +125 -0
- package/dist/services/scroll-progress.js.map +1 -0
- package/dist/services/scroll.d.ts +47 -0
- package/dist/services/scroll.js +170 -0
- package/dist/services/scroll.js.map +1 -0
- package/dist/services/service.d.ts +60 -0
- package/dist/services/service.js +110 -0
- package/dist/services/service.js.map +1 -0
- package/dist/services/toggle.d.ts +20 -0
- package/dist/services/toggle.js +42 -0
- package/dist/services/toggle.js.map +1 -0
- package/dist/services/until.d.ts +11 -0
- package/dist/services/until.js +25 -0
- package/dist/services/until.js.map +1 -0
- package/dist/shared-runtime.d.ts +8 -0
- package/dist/shared-runtime.js +43 -0
- package/dist/shared-runtime.js.map +1 -0
- package/dist/storage/createStorage.d.ts +12 -0
- package/dist/storage/createStorage.js +120 -0
- package/dist/storage/createStorage.js.map +1 -0
- package/dist/storage/index.d.ts +28 -0
- package/dist/storage/index.js +50 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/providers.d.ts +52 -0
- package/dist/storage/providers.js +172 -0
- package/dist/storage/providers.js.map +1 -0
- package/dist/storage/serializers.d.ts +10 -0
- package/dist/storage/serializers.js +14 -0
- package/dist/storage/serializers.js.map +1 -0
- package/dist/storage/sync.d.ts +19 -0
- package/dist/storage/sync.js +39 -0
- package/dist/storage/sync.js.map +1 -0
- package/dist/storage/types.d.ts +65 -0
- package/dist/storage/types.js +0 -0
- package/dist/subpaths/BREAKPOINTS.d.ts +2 -0
- package/dist/subpaths/BREAKPOINTS.js +2 -0
- package/dist/subpaths/Base.d.ts +2 -1
- package/dist/subpaths/Base.js +2 -6
- package/dist/subpaths/DIAGNOSTICS.d.ts +2 -0
- package/dist/subpaths/DIAGNOSTICS.js +2 -0
- package/dist/subpaths/DRAG_MODES.d.ts +2 -0
- package/dist/subpaths/DRAG_MODES.js +2 -0
- package/dist/subpaths/EVENTS.d.ts +2 -0
- package/dist/subpaths/EVENTS.js +2 -0
- package/dist/subpaths/MOUNT_ATTRIBUTE.d.ts +2 -0
- package/dist/subpaths/MOUNT_ATTRIBUTE.js +2 -0
- package/dist/subpaths/SWAP_MODES.d.ts +2 -0
- package/dist/subpaths/SWAP_MODES.js +2 -0
- package/dist/subpaths/children.d.ts +2 -0
- package/dist/subpaths/children.js +2 -0
- package/dist/subpaths/component.d.ts +2 -0
- package/dist/subpaths/component.js +2 -0
- package/dist/subpaths/createContext.d.ts +2 -0
- package/dist/subpaths/createContext.js +2 -0
- package/dist/subpaths/createFallbackProvider.d.ts +2 -0
- package/dist/subpaths/createFallbackProvider.js +2 -0
- package/dist/subpaths/createGroup.d.ts +2 -0
- package/dist/subpaths/createGroup.js +2 -0
- package/dist/subpaths/createLocalStorage.d.ts +2 -0
- package/dist/subpaths/createLocalStorage.js +2 -0
- package/dist/subpaths/createMemoryStorageProvider.d.ts +2 -0
- package/dist/subpaths/createMemoryStorageProvider.js +2 -0
- package/dist/subpaths/createService.d.ts +2 -0
- package/dist/subpaths/createService.js +2 -0
- package/dist/subpaths/createServiceMixin.d.ts +2 -0
- package/dist/subpaths/createServiceMixin.js +2 -0
- package/dist/subpaths/createSessionStorage.d.ts +2 -0
- package/dist/subpaths/createSessionStorage.js +2 -0
- package/dist/subpaths/createStorage.d.ts +2 -0
- package/dist/subpaths/createStorage.js +2 -0
- package/dist/subpaths/createUrlSearchParamsInHashProvider.d.ts +2 -0
- package/dist/subpaths/createUrlSearchParamsInHashProvider.js +2 -0
- package/dist/subpaths/createUrlSearchParamsInHashStorage.d.ts +2 -0
- package/dist/subpaths/createUrlSearchParamsInHashStorage.js +2 -0
- package/dist/subpaths/createUrlSearchParamsProvider.d.ts +2 -0
- package/dist/subpaths/createUrlSearchParamsProvider.js +2 -0
- package/dist/subpaths/createUrlSearchParamsStorage.d.ts +2 -0
- package/dist/subpaths/createUrlSearchParamsStorage.js +2 -0
- package/dist/subpaths/defaultScheduler.d.ts +2 -0
- package/dist/subpaths/defaultScheduler.js +2 -0
- package/dist/subpaths/defineManifest.d.ts +2 -1
- package/dist/subpaths/defineManifest.js +2 -6
- package/dist/subpaths/domUpdate.d.ts +2 -0
- package/dist/subpaths/domUpdate.js +2 -0
- package/dist/subpaths/emitExtendable.d.ts +2 -0
- package/dist/subpaths/emitExtendable.js +2 -0
- package/dist/subpaths/fromMetaGlob.d.ts +2 -1
- package/dist/subpaths/fromMetaGlob.js +2 -6
- package/dist/subpaths/fromWebpackContext.d.ts +2 -1
- package/dist/subpaths/fromWebpackContext.js +2 -6
- package/dist/subpaths/getBreakpoints.d.ts +2 -0
- package/dist/subpaths/getBreakpoints.js +2 -0
- package/dist/subpaths/getInstance.d.ts +2 -0
- package/dist/subpaths/getInstance.js +2 -0
- package/dist/subpaths/getInstances.d.ts +2 -1
- package/dist/subpaths/getInstances.js +2 -6
- package/dist/subpaths/getMountedInstances.d.ts +2 -0
- package/dist/subpaths/getMountedInstances.js +2 -0
- package/dist/subpaths/getUnmountedInstances.d.ts +2 -0
- package/dist/subpaths/getUnmountedInstances.js +2 -0
- package/dist/subpaths/inject.d.ts +2 -0
- package/dist/subpaths/inject.js +2 -0
- package/dist/subpaths/injectContext.d.ts +2 -0
- package/dist/subpaths/injectContext.js +2 -0
- package/dist/subpaths/injectContextSync.d.ts +2 -0
- package/dist/subpaths/injectContextSync.js +2 -0
- package/dist/subpaths/jsonSerializer.d.ts +2 -0
- package/dist/subpaths/jsonSerializer.js +2 -0
- package/dist/subpaths/localStorageProvider.d.ts +2 -0
- package/dist/subpaths/localStorageProvider.js +2 -0
- package/dist/subpaths/memoryStorageProvider.d.ts +2 -0
- package/dist/subpaths/memoryStorageProvider.js +2 -0
- package/dist/subpaths/namespaceQualifier.d.ts +2 -0
- package/dist/subpaths/namespaceQualifier.js +2 -0
- package/dist/subpaths/nextFrame.d.ts +2 -0
- package/dist/subpaths/nextFrame.js +2 -0
- package/dist/subpaths/on.d.ts +2 -0
- package/dist/subpaths/on.js +2 -0
- package/dist/subpaths/perTarget.d.ts +2 -0
- package/dist/subpaths/perTarget.js +2 -0
- package/dist/subpaths/provide.d.ts +2 -0
- package/dist/subpaths/provide.js +2 -0
- package/dist/subpaths/provideContext.d.ts +2 -0
- package/dist/subpaths/provideContext.js +2 -0
- package/dist/subpaths/provideRootContext.d.ts +2 -0
- package/dist/subpaths/provideRootContext.js +2 -0
- package/dist/subpaths/read.d.ts +2 -0
- package/dist/subpaths/read.js +2 -0
- package/dist/subpaths/registerComponent.d.ts +2 -1
- package/dist/subpaths/registerComponent.js +2 -6
- package/dist/subpaths/registerComponents.d.ts +2 -1
- package/dist/subpaths/registerComponents.js +2 -6
- package/dist/subpaths/registerManifest.d.ts +2 -1
- package/dist/subpaths/registerManifest.js +2 -6
- package/dist/subpaths/reportDiagnostic.d.ts +2 -0
- package/dist/subpaths/reportDiagnostic.js +2 -0
- package/dist/subpaths/sessionStorageProvider.d.ts +2 -0
- package/dist/subpaths/sessionStorageProvider.js +2 -0
- package/dist/subpaths/setBreakpoints.d.ts +2 -0
- package/dist/subpaths/setBreakpoints.js +2 -0
- package/dist/subpaths/signal.d.ts +2 -0
- package/dist/subpaths/signal.js +2 -0
- package/dist/subpaths/subscribeContext.d.ts +2 -0
- package/dist/subpaths/subscribeContext.js +2 -0
- package/dist/subpaths/swap.d.ts +2 -0
- package/dist/subpaths/swap.js +2 -0
- package/dist/subpaths/toggle.d.ts +2 -0
- package/dist/subpaths/toggle.js +2 -0
- package/dist/subpaths/until.d.ts +2 -0
- package/dist/subpaths/until.js +2 -0
- package/dist/subpaths/urlSearchParamsInHashProvider.d.ts +2 -0
- package/dist/subpaths/urlSearchParamsInHashProvider.js +2 -0
- package/dist/subpaths/urlSearchParamsProvider.d.ts +2 -0
- package/dist/subpaths/urlSearchParamsProvider.js +2 -0
- package/dist/subpaths/useBreakpoint.d.ts +2 -0
- package/dist/subpaths/useBreakpoint.js +2 -0
- package/dist/subpaths/useDrag.d.ts +2 -1
- package/dist/subpaths/useDrag.js +2 -6
- package/dist/subpaths/useInView.d.ts +2 -0
- package/dist/subpaths/useInView.js +2 -0
- package/dist/subpaths/useKey.d.ts +2 -1
- package/dist/subpaths/useKey.js +2 -6
- package/dist/subpaths/useMediaQuery.d.ts +2 -0
- package/dist/subpaths/useMediaQuery.js +2 -0
- package/dist/subpaths/useMutation.d.ts +2 -1
- package/dist/subpaths/useMutation.js +2 -6
- package/dist/subpaths/usePointer.d.ts +2 -1
- package/dist/subpaths/usePointer.js +2 -6
- package/dist/subpaths/usePrefersReducedMotion.d.ts +2 -0
- package/dist/subpaths/usePrefersReducedMotion.js +2 -0
- package/dist/subpaths/useRaf.d.ts +2 -1
- package/dist/subpaths/useRaf.js +2 -6
- package/dist/subpaths/useResize.d.ts +2 -1
- package/dist/subpaths/useResize.js +2 -6
- package/dist/subpaths/useScroll.d.ts +2 -1
- package/dist/subpaths/useScroll.js +2 -6
- package/dist/subpaths/useScrollProgress.d.ts +2 -0
- package/dist/subpaths/useScrollProgress.js +2 -0
- package/dist/subpaths/useWindowScroll.d.ts +2 -0
- package/dist/subpaths/useWindowScroll.js +2 -0
- package/dist/subpaths/useWindowSize.d.ts +2 -0
- package/dist/subpaths/useWindowSize.js +2 -0
- package/dist/subpaths/utils/DEFAULT_DAMP_FACTOR.d.ts +2 -0
- package/dist/subpaths/utils/DEFAULT_DAMP_FACTOR.js +2 -0
- package/dist/subpaths/utils/INERTIA_FRAME.d.ts +2 -0
- package/dist/subpaths/utils/INERTIA_FRAME.js +2 -0
- package/dist/subpaths/utils/MAX_SPRING_RATIO.d.ts +2 -0
- package/dist/subpaths/utils/MAX_SPRING_RATIO.js +2 -0
- package/dist/subpaths/utils/SCROLL_ALIGNMENTS.d.ts +2 -0
- package/dist/subpaths/utils/SCROLL_ALIGNMENTS.js +2 -0
- package/dist/subpaths/utils/SCROLL_AXES.d.ts +2 -0
- package/dist/subpaths/utils/SCROLL_AXES.js +2 -0
- package/dist/subpaths/utils/TRANSFORM_PROPS.d.ts +2 -0
- package/dist/subpaths/utils/TRANSFORM_PROPS.js +2 -0
- package/dist/subpaths/utils/TRANSITION_OPTIONS.d.ts +2 -0
- package/dist/subpaths/utils/TRANSITION_OPTIONS.js +2 -0
- package/dist/subpaths/utils/camelCase.d.ts +2 -1
- package/dist/subpaths/utils/camelCase.js +2 -6
- package/dist/subpaths/utils/capitalize.d.ts +2 -0
- package/dist/subpaths/utils/capitalize.js +2 -0
- package/dist/subpaths/utils/clamp.d.ts +2 -1
- package/dist/subpaths/utils/clamp.js +2 -6
- package/dist/subpaths/utils/clamp01.d.ts +2 -1
- package/dist/subpaths/utils/clamp01.js +2 -6
- package/dist/subpaths/utils/clampDampFactor.d.ts +2 -0
- package/dist/subpaths/utils/clampDampFactor.js +2 -0
- package/dist/subpaths/utils/createEaseInOut.d.ts +2 -1
- package/dist/subpaths/utils/createEaseInOut.js +2 -6
- package/dist/subpaths/utils/createEaseOut.d.ts +2 -1
- package/dist/subpaths/utils/createEaseOut.js +2 -6
- package/dist/subpaths/utils/createElement.d.ts +2 -1
- package/dist/subpaths/utils/createElement.js +2 -6
- package/dist/subpaths/utils/createRange.d.ts +2 -1
- package/dist/subpaths/utils/createRange.js +2 -6
- package/dist/subpaths/utils/damp.d.ts +2 -1
- package/dist/subpaths/utils/damp.js +2 -6
- package/dist/subpaths/utils/debounce.d.ts +2 -1
- package/dist/subpaths/utils/debounce.js +2 -6
- package/dist/subpaths/utils/decayOver.d.ts +2 -0
- package/dist/subpaths/utils/decayOver.js +2 -0
- package/dist/subpaths/utils/deepmerge.d.ts +2 -0
- package/dist/subpaths/utils/deepmerge.js +2 -0
- package/dist/subpaths/utils/easeInCirc.d.ts +2 -1
- package/dist/subpaths/utils/easeInCirc.js +2 -6
- package/dist/subpaths/utils/easeInCubic.d.ts +2 -1
- package/dist/subpaths/utils/easeInCubic.js +2 -6
- package/dist/subpaths/utils/easeInExpo.d.ts +2 -1
- package/dist/subpaths/utils/easeInExpo.js +2 -6
- package/dist/subpaths/utils/easeInOutCirc.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutCirc.js +2 -6
- package/dist/subpaths/utils/easeInOutCubic.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutCubic.js +2 -6
- package/dist/subpaths/utils/easeInOutExpo.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutExpo.js +2 -6
- package/dist/subpaths/utils/easeInOutQuad.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutQuad.js +2 -6
- package/dist/subpaths/utils/easeInOutQuart.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutQuart.js +2 -6
- package/dist/subpaths/utils/easeInOutQuint.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutQuint.js +2 -6
- package/dist/subpaths/utils/easeInOutSine.d.ts +2 -1
- package/dist/subpaths/utils/easeInOutSine.js +2 -6
- package/dist/subpaths/utils/easeInQuad.d.ts +2 -1
- package/dist/subpaths/utils/easeInQuad.js +2 -6
- package/dist/subpaths/utils/easeInQuart.d.ts +2 -1
- package/dist/subpaths/utils/easeInQuart.js +2 -6
- package/dist/subpaths/utils/easeInQuint.d.ts +2 -1
- package/dist/subpaths/utils/easeInQuint.js +2 -6
- package/dist/subpaths/utils/easeInSine.d.ts +2 -1
- package/dist/subpaths/utils/easeInSine.js +2 -6
- package/dist/subpaths/utils/easeLinear.d.ts +2 -1
- package/dist/subpaths/utils/easeLinear.js +2 -6
- package/dist/subpaths/utils/easeOutCirc.d.ts +2 -1
- package/dist/subpaths/utils/easeOutCirc.js +2 -6
- package/dist/subpaths/utils/easeOutCubic.d.ts +2 -1
- package/dist/subpaths/utils/easeOutCubic.js +2 -6
- package/dist/subpaths/utils/easeOutExpo.d.ts +2 -1
- package/dist/subpaths/utils/easeOutExpo.js +2 -6
- package/dist/subpaths/utils/easeOutQuad.d.ts +2 -1
- package/dist/subpaths/utils/easeOutQuad.js +2 -6
- package/dist/subpaths/utils/easeOutQuart.d.ts +2 -1
- package/dist/subpaths/utils/easeOutQuart.js +2 -6
- package/dist/subpaths/utils/easeOutQuint.d.ts +2 -1
- package/dist/subpaths/utils/easeOutQuint.js +2 -6
- package/dist/subpaths/utils/easeOutSine.d.ts +2 -1
- package/dist/subpaths/utils/easeOutSine.js +2 -6
- package/dist/subpaths/utils/enterTransition.d.ts +2 -0
- package/dist/subpaths/utils/enterTransition.js +2 -0
- package/dist/subpaths/utils/fold.d.ts +2 -1
- package/dist/subpaths/utils/fold.js +2 -6
- package/dist/subpaths/utils/getOffsetSizes.d.ts +2 -1
- package/dist/subpaths/utils/getOffsetSizes.js +2 -6
- package/dist/subpaths/utils/historyPush.d.ts +2 -1
- package/dist/subpaths/utils/historyPush.js +2 -6
- package/dist/subpaths/utils/historyReplace.d.ts +2 -1
- package/dist/subpaths/utils/historyReplace.js +2 -6
- package/dist/subpaths/utils/inertiaDecay.d.ts +2 -0
- package/dist/subpaths/utils/inertiaDecay.js +2 -0
- package/dist/subpaths/utils/inertiaFinalValue.d.ts +2 -1
- package/dist/subpaths/utils/inertiaFinalValue.js +2 -6
- package/dist/subpaths/utils/inertiaStep.d.ts +2 -0
- package/dist/subpaths/utils/inertiaStep.js +2 -0
- package/dist/subpaths/utils/inertiaTimeConstant.d.ts +2 -0
- package/dist/subpaths/utils/inertiaTimeConstant.js +2 -0
- package/dist/subpaths/utils/isBoolean.d.ts +2 -1
- package/dist/subpaths/utils/isBoolean.js +2 -6
- package/dist/subpaths/utils/isDefined.d.ts +2 -1
- package/dist/subpaths/utils/isDefined.js +2 -6
- package/dist/subpaths/utils/isFunction.d.ts +2 -1
- package/dist/subpaths/utils/isFunction.js +2 -6
- package/dist/subpaths/utils/isNull.d.ts +2 -1
- package/dist/subpaths/utils/isNull.js +2 -6
- package/dist/subpaths/utils/isNumber.d.ts +2 -1
- package/dist/subpaths/utils/isNumber.js +2 -6
- package/dist/subpaths/utils/isObject.d.ts +2 -1
- package/dist/subpaths/utils/isObject.js +2 -6
- package/dist/subpaths/utils/isString.d.ts +2 -1
- package/dist/subpaths/utils/isString.js +2 -6
- package/dist/subpaths/utils/kebabCase.d.ts +2 -0
- package/dist/subpaths/utils/kebabCase.js +2 -0
- package/dist/subpaths/utils/leaveTransition.d.ts +2 -0
- package/dist/subpaths/utils/leaveTransition.js +2 -0
- package/dist/subpaths/utils/lerp.d.ts +2 -1
- package/dist/subpaths/utils/lerp.js +2 -6
- package/dist/subpaths/utils/loadImage.d.ts +2 -1
- package/dist/subpaths/utils/loadImage.js +2 -6
- package/dist/subpaths/utils/loadLink.d.ts +2 -1
- package/dist/subpaths/utils/loadLink.js +2 -6
- package/dist/subpaths/utils/loadScript.d.ts +2 -1
- package/dist/subpaths/utils/loadScript.js +2 -6
- package/dist/subpaths/utils/lockScroll.d.ts +2 -0
- package/dist/subpaths/utils/lockScroll.js +2 -0
- package/dist/subpaths/utils/lowerCase.d.ts +2 -1
- package/dist/subpaths/utils/lowerCase.js +2 -6
- package/dist/subpaths/utils/map.d.ts +2 -1
- package/dist/subpaths/utils/map.js +2 -6
- package/dist/subpaths/utils/matrix.d.ts +2 -1
- package/dist/subpaths/utils/matrix.js +2 -6
- package/dist/subpaths/utils/mean.d.ts +2 -1
- package/dist/subpaths/utils/mean.js +2 -6
- package/dist/subpaths/utils/memo.d.ts +2 -1
- package/dist/subpaths/utils/memo.js +2 -6
- package/dist/subpaths/utils/noop.d.ts +2 -1
- package/dist/subpaths/utils/noop.js +2 -6
- package/dist/subpaths/utils/noopValue.d.ts +2 -1
- package/dist/subpaths/utils/noopValue.js +2 -6
- package/dist/subpaths/utils/objectToURLSearchParams.d.ts +2 -1
- package/dist/subpaths/utils/objectToURLSearchParams.js +2 -6
- package/dist/subpaths/utils/pascalCase.d.ts +2 -1
- package/dist/subpaths/utils/pascalCase.js +2 -6
- package/dist/subpaths/utils/random.d.ts +2 -1
- package/dist/subpaths/utils/random.js +2 -6
- package/dist/subpaths/utils/randomInt.d.ts +2 -1
- package/dist/subpaths/utils/randomInt.js +2 -6
- package/dist/subpaths/utils/randomItem.d.ts +2 -1
- package/dist/subpaths/utils/randomItem.js +2 -6
- package/dist/subpaths/utils/round.d.ts +2 -1
- package/dist/subpaths/utils/round.js +2 -6
- package/dist/subpaths/utils/saveActiveElement.d.ts +2 -1
- package/dist/subpaths/utils/saveActiveElement.js +2 -6
- package/dist/subpaths/utils/scrollPosition.d.ts +2 -0
- package/dist/subpaths/utils/scrollPosition.js +2 -0
- package/dist/subpaths/utils/scrollTo.d.ts +2 -1
- package/dist/subpaths/utils/scrollTo.js +2 -6
- package/dist/subpaths/utils/selectorFor.d.ts +2 -0
- package/dist/subpaths/utils/selectorFor.js +2 -0
- package/dist/subpaths/utils/setClassesOrStyles.d.ts +2 -0
- package/dist/subpaths/utils/setClassesOrStyles.js +2 -0
- package/dist/subpaths/utils/smoothTo.d.ts +2 -1
- package/dist/subpaths/utils/smoothTo.js +2 -6
- package/dist/subpaths/utils/snakeCase.d.ts +2 -1
- package/dist/subpaths/utils/snakeCase.js +2 -6
- package/dist/subpaths/utils/spring.d.ts +2 -1
- package/dist/subpaths/utils/spring.js +2 -6
- package/dist/subpaths/utils/throttle.d.ts +2 -1
- package/dist/subpaths/utils/throttle.js +2 -6
- package/dist/subpaths/utils/transform.d.ts +2 -1
- package/dist/subpaths/utils/transform.js +2 -6
- package/dist/subpaths/utils/transition.d.ts +2 -1
- package/dist/subpaths/utils/transition.js +2 -6
- package/dist/subpaths/utils/trapFocus.d.ts +2 -1
- package/dist/subpaths/utils/trapFocus.js +2 -6
- package/dist/subpaths/utils/untrapFocus.d.ts +2 -1
- package/dist/subpaths/utils/untrapFocus.js +2 -6
- package/dist/subpaths/utils/upperCase.d.ts +2 -1
- package/dist/subpaths/utils/upperCase.js +2 -6
- package/dist/subpaths/utils/wait.d.ts +2 -1
- package/dist/subpaths/utils/wait.js +2 -6
- package/dist/subpaths/utils/withLeadingCharacters.d.ts +2 -1
- package/dist/subpaths/utils/withLeadingCharacters.js +2 -6
- package/dist/subpaths/utils/withLeadingSlash.d.ts +2 -1
- package/dist/subpaths/utils/withLeadingSlash.js +2 -6
- package/dist/subpaths/utils/withTrailingCharacters.d.ts +2 -1
- package/dist/subpaths/utils/withTrailingCharacters.js +2 -6
- package/dist/subpaths/utils/withTrailingSlash.d.ts +2 -1
- package/dist/subpaths/utils/withTrailingSlash.js +2 -6
- package/dist/subpaths/utils/withoutLeadingCharacters.d.ts +2 -1
- package/dist/subpaths/utils/withoutLeadingCharacters.js +2 -6
- package/dist/subpaths/utils/withoutLeadingCharactersRecursive.d.ts +2 -1
- package/dist/subpaths/utils/withoutLeadingCharactersRecursive.js +2 -6
- package/dist/subpaths/utils/withoutLeadingSlash.d.ts +2 -1
- package/dist/subpaths/utils/withoutLeadingSlash.js +2 -6
- package/dist/subpaths/utils/withoutTrailingCharacters.d.ts +2 -1
- package/dist/subpaths/utils/withoutTrailingCharacters.js +2 -6
- package/dist/subpaths/utils/withoutTrailingCharactersRecursive.d.ts +2 -1
- package/dist/subpaths/utils/withoutTrailingCharactersRecursive.js +2 -6
- package/dist/subpaths/utils/withoutTrailingSlash.d.ts +2 -1
- package/dist/subpaths/utils/withoutTrailingSlash.js +2 -6
- package/dist/subpaths/utils/wrap.d.ts +2 -1
- package/dist/subpaths/utils/wrap.js +2 -6
- package/dist/subpaths/viewTransition.d.ts +2 -0
- package/dist/subpaths/viewTransition.js +2 -0
- package/dist/subpaths/warn.d.ts +2 -0
- package/dist/subpaths/warn.js +2 -0
- package/dist/subpaths/watchAttributeNamespace.d.ts +2 -0
- package/dist/subpaths/watchAttributeNamespace.js +2 -0
- package/dist/subpaths/watchAttributes.d.ts +2 -0
- package/dist/subpaths/watchAttributes.js +2 -0
- package/dist/subpaths/whenDOMSettled.d.ts +2 -0
- package/dist/subpaths/whenDOMSettled.js +2 -0
- package/dist/subpaths/withDrag.d.ts +2 -1
- package/dist/subpaths/withDrag.js +2 -6
- package/dist/subpaths/withInView.d.ts +2 -0
- package/dist/subpaths/withInView.js +2 -0
- package/dist/subpaths/withKey.d.ts +2 -0
- package/dist/subpaths/withKey.js +2 -0
- package/dist/subpaths/withMutation.d.ts +2 -1
- package/dist/subpaths/withMutation.js +2 -6
- package/dist/subpaths/withPointer.d.ts +2 -0
- package/dist/subpaths/withPointer.js +2 -0
- package/dist/subpaths/withRaf.d.ts +2 -0
- package/dist/subpaths/withRaf.js +2 -0
- package/dist/subpaths/withResize.d.ts +2 -0
- package/dist/subpaths/withResize.js +2 -0
- package/dist/subpaths/withScroll.d.ts +2 -0
- package/dist/subpaths/withScroll.js +2 -0
- package/dist/subpaths/withScrollProgress.d.ts +2 -0
- package/dist/subpaths/withScrollProgress.js +2 -0
- package/dist/subpaths/write.d.ts +2 -0
- package/dist/subpaths/write.js +2 -0
- package/dist/swap.d.ts +45 -0
- package/dist/swap.js +84 -0
- package/dist/swap.js.map +1 -0
- package/dist/test/index.d.ts +205 -0
- package/dist/test/index.js +249 -0
- package/dist/test/index.js.map +1 -0
- package/dist/utils/deepmerge.d.ts +31 -0
- package/dist/utils/deepmerge.js +76 -0
- package/dist/utils/deepmerge.js.map +1 -0
- package/dist/utils/dom.d.ts +51 -0
- package/dist/utils/dom.js +55 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/easings.d.ts +130 -0
- package/dist/utils/easings.js +148 -0
- package/dist/utils/easings.js.map +1 -0
- package/dist/utils/focus.d.ts +18 -0
- package/dist/utils/focus.js +63 -0
- package/dist/utils/focus.js.map +1 -0
- package/dist/utils/history.d.ts +29 -28
- package/dist/utils/history.js +60 -64
- package/dist/utils/history.js.map +1 -7
- package/dist/utils/index.d.ts +20 -29
- package/dist/utils/index.js +18 -281
- package/dist/utils/is.d.ts +29 -40
- package/dist/utils/is.js +59 -36
- package/dist/utils/is.js.map +1 -7
- package/dist/utils/load.d.ts +46 -0
- package/dist/utils/load.js +144 -0
- package/dist/utils/load.js.map +1 -0
- package/dist/utils/maths.d.ts +122 -0
- package/dist/utils/maths.js +177 -0
- package/dist/utils/maths.js.map +1 -0
- package/dist/utils/memo.d.ts +14 -4
- package/dist/utils/memo.js +33 -12
- package/dist/utils/memo.js.map +1 -7
- package/dist/utils/noop.d.ts +10 -6
- package/dist/utils/noop.js +16 -8
- package/dist/utils/noop.js.map +1 -7
- package/dist/utils/random.d.ts +17 -19
- package/dist/utils/random.js +22 -13
- package/dist/utils/random.js.map +1 -7
- package/dist/utils/scroll-lock.d.ts +27 -0
- package/dist/utils/scroll-lock.js +58 -0
- package/dist/utils/scroll-lock.js.map +1 -0
- package/dist/utils/scrollTo.d.ts +82 -29
- package/dist/utils/scrollTo.js +158 -106
- package/dist/utils/scrollTo.js.map +1 -7
- package/dist/utils/selectors.d.ts +19 -0
- package/dist/utils/selectors.js +25 -0
- package/dist/utils/selectors.js.map +1 -0
- package/dist/utils/smoothTo.d.ts +77 -0
- package/dist/utils/smoothTo.js +93 -0
- package/dist/utils/smoothTo.js.map +1 -0
- package/dist/utils/strings.d.ts +101 -0
- package/dist/utils/strings.js +169 -0
- package/dist/utils/strings.js.map +1 -0
- package/dist/utils/timing.d.ts +21 -0
- package/dist/utils/timing.js +41 -0
- package/dist/utils/timing.js.map +1 -0
- package/dist/utils/transform.d.ts +67 -0
- package/dist/utils/transform.js +74 -0
- package/dist/utils/transform.js.map +1 -0
- package/dist/utils/transition.d.ts +61 -0
- package/dist/utils/transition.js +134 -0
- package/dist/utils/transition.js.map +1 -0
- package/dist/viewTransition.d.ts +17 -0
- package/dist/viewTransition.js +52 -0
- package/dist/viewTransition.js.map +1 -0
- package/package.json +520 -870
- package/dist/Base/Base.d.ts +0 -278
- package/dist/Base/Base.js +0 -535
- package/dist/Base/Base.js.map +0 -7
- package/dist/Base/features.d.ts +0 -16
- package/dist/Base/features.js +0 -36
- package/dist/Base/features.js.map +0 -7
- package/dist/Base/index.d.ts +0 -2
- package/dist/Base/index.js +0 -9
- package/dist/Base/index.js.map +0 -7
- package/dist/Base/managers/AbstractManager.d.ts +0 -30
- package/dist/Base/managers/AbstractManager.js +0 -38
- package/dist/Base/managers/AbstractManager.js.map +0 -7
- package/dist/Base/managers/ChildrenManager.d.ts +0 -81
- package/dist/Base/managers/ChildrenManager.js +0 -168
- package/dist/Base/managers/ChildrenManager.js.map +0 -7
- package/dist/Base/managers/EventsManager.d.ts +0 -109
- package/dist/Base/managers/EventsManager.js +0 -254
- package/dist/Base/managers/EventsManager.js.map +0 -7
- package/dist/Base/managers/OptionsManager.d.ts +0 -80
- package/dist/Base/managers/OptionsManager.js +0 -163
- package/dist/Base/managers/OptionsManager.js.map +0 -7
- package/dist/Base/managers/RefsManager.d.ts +0 -34
- package/dist/Base/managers/RefsManager.js +0 -101
- package/dist/Base/managers/RefsManager.js.map +0 -7
- package/dist/Base/managers/ResponsiveOptionsManager.d.ts +0 -33
- package/dist/Base/managers/ResponsiveOptionsManager.js +0 -67
- package/dist/Base/managers/ResponsiveOptionsManager.js.map +0 -7
- package/dist/Base/managers/ServicesManager.d.ts +0 -85
- package/dist/Base/managers/ServicesManager.js +0 -137
- package/dist/Base/managers/ServicesManager.js.map +0 -7
- package/dist/Base/managers/index.d.ts +0 -7
- package/dist/Base/managers/index.js +0 -17
- package/dist/Base/managers/index.js.map +0 -7
- package/dist/Base/types.d.ts +0 -1682
- package/dist/Base/types.js +0 -1
- package/dist/Base/types.js.map +0 -7
- package/dist/Base/utils.d.ts +0 -54
- package/dist/Base/utils.js +0 -172
- package/dist/Base/utils.js.map +0 -7
- package/dist/autoload/autoload.d.ts +0 -37
- package/dist/autoload/autoload.js +0 -29
- package/dist/autoload/autoload.js.map +0 -7
- package/dist/autoload/define-manifest.d.ts +0 -60
- package/dist/autoload/define-manifest.js +0 -51
- package/dist/autoload/define-manifest.js.map +0 -7
- package/dist/autoload/index.d.ts +0 -6
- package/dist/autoload/index.js +0 -34
- package/dist/autoload/index.js.map +0 -7
- package/dist/autoload/loader.d.ts +0 -108
- package/dist/autoload/loader.js +0 -381
- package/dist/autoload/loader.js.map +0 -7
- package/dist/autoload/modules.d.ts +0 -31
- package/dist/autoload/modules.js +0 -21
- package/dist/autoload/modules.js.map +0 -7
- package/dist/autoload/runtime.d.ts +0 -93
- package/dist/autoload/runtime.js +0 -100
- package/dist/autoload/runtime.js.map +0 -7
- package/dist/autoload/types.d.ts +0 -49
- package/dist/autoload/types.js +0 -1
- package/dist/autoload/types.js.map +0 -7
- package/dist/decorators/index.d.ts +0 -15
- package/dist/decorators/index.js +0 -51
- package/dist/decorators/index.js.map +0 -7
- package/dist/decorators/withBreakpointManager.d.ts +0 -7
- package/dist/decorators/withBreakpointManager.js +0 -82
- package/dist/decorators/withBreakpointManager.js.map +0 -7
- package/dist/decorators/withBreakpointObserver.d.ts +0 -15
- package/dist/decorators/withBreakpointObserver.js +0 -112
- package/dist/decorators/withBreakpointObserver.js.map +0 -7
- package/dist/decorators/withDrag.d.ts +0 -14
- package/dist/decorators/withDrag.js +0 -36
- package/dist/decorators/withDrag.js.map +0 -7
- package/dist/decorators/withExtraConfig.d.ts +0 -8
- package/dist/decorators/withExtraConfig.js +0 -18
- package/dist/decorators/withExtraConfig.js.map +0 -7
- package/dist/decorators/withFreezedOptions.d.ts +0 -10
- package/dist/decorators/withFreezedOptions.js +0 -28
- package/dist/decorators/withFreezedOptions.js.map +0 -7
- package/dist/decorators/withGroup.d.ts +0 -39
- package/dist/decorators/withGroup.js +0 -81
- package/dist/decorators/withGroup.js.map +0 -7
- package/dist/decorators/withIntersectionObserver.d.ts +0 -17
- package/dist/decorators/withIntersectionObserver.js +0 -45
- package/dist/decorators/withIntersectionObserver.js.map +0 -7
- package/dist/decorators/withMountOnMediaQuery.d.ts +0 -18
- package/dist/decorators/withMountOnMediaQuery.js +0 -62
- package/dist/decorators/withMountOnMediaQuery.js.map +0 -7
- package/dist/decorators/withMountWhenInView.d.ts +0 -22
- package/dist/decorators/withMountWhenInView.js +0 -68
- package/dist/decorators/withMountWhenInView.js.map +0 -7
- package/dist/decorators/withMountWhenPrefersMotion.d.ts +0 -6
- package/dist/decorators/withMountWhenPrefersMotion.js +0 -8
- package/dist/decorators/withMountWhenPrefersMotion.js.map +0 -7
- package/dist/decorators/withMutation.d.ts +0 -14
- package/dist/decorators/withMutation.js +0 -36
- package/dist/decorators/withMutation.js.map +0 -7
- package/dist/decorators/withName.d.ts +0 -6
- package/dist/decorators/withName.js +0 -12
- package/dist/decorators/withName.js.map +0 -7
- package/dist/decorators/withRelativePointer.d.ts +0 -14
- package/dist/decorators/withRelativePointer.js +0 -34
- package/dist/decorators/withRelativePointer.js.map +0 -7
- package/dist/decorators/withResponsiveOptions.d.ts +0 -9
- package/dist/decorators/withResponsiveOptions.js +0 -39
- package/dist/decorators/withResponsiveOptions.js.map +0 -7
- package/dist/decorators/withScrolledInView/index.d.ts +0 -2
- package/dist/decorators/withScrolledInView/index.js +0 -7
- package/dist/decorators/withScrolledInView/index.js.map +0 -7
- package/dist/decorators/withScrolledInView/types.d.ts +0 -2
- package/dist/decorators/withScrolledInView/types.js +0 -1
- package/dist/decorators/withScrolledInView/types.js.map +0 -7
- package/dist/decorators/withScrolledInView/utils.d.ts +0 -28
- package/dist/decorators/withScrolledInView/utils.js +0 -78
- package/dist/decorators/withScrolledInView/utils.js.map +0 -7
- package/dist/decorators/withScrolledInView/withScrolledInView.d.ts +0 -59
- package/dist/decorators/withScrolledInView/withScrolledInView.js +0 -176
- package/dist/decorators/withScrolledInView/withScrolledInView.js.map +0 -7
- package/dist/helpers/createApp.d.ts +0 -11
- package/dist/helpers/createApp.js +0 -38
- package/dist/helpers/createApp.js.map +0 -7
- package/dist/helpers/defineFeatures.d.ts +0 -7
- package/dist/helpers/defineFeatures.js +0 -21
- package/dist/helpers/defineFeatures.js.map +0 -7
- package/dist/helpers/getClosestParent.d.ts +0 -6
- package/dist/helpers/getClosestParent.js +0 -13
- package/dist/helpers/getClosestParent.js.map +0 -7
- package/dist/helpers/getDirectChildren.d.ts +0 -23
- package/dist/helpers/getDirectChildren.js +0 -31
- package/dist/helpers/getDirectChildren.js.map +0 -7
- package/dist/helpers/getInstanceFromElement.d.ts +0 -6
- package/dist/helpers/getInstanceFromElement.js +0 -10
- package/dist/helpers/getInstanceFromElement.js.map +0 -7
- package/dist/helpers/importOnInteraction.d.ts +0 -19
- package/dist/helpers/importOnInteraction.js +0 -27
- package/dist/helpers/importOnInteraction.js.map +0 -7
- package/dist/helpers/importOnMediaQuery.d.ts +0 -15
- package/dist/helpers/importOnMediaQuery.js +0 -22
- package/dist/helpers/importOnMediaQuery.js.map +0 -7
- package/dist/helpers/importWhenIdle.d.ts +0 -19
- package/dist/helpers/importWhenIdle.js +0 -24
- package/dist/helpers/importWhenIdle.js.map +0 -7
- package/dist/helpers/importWhenPrefersMotion.d.ts +0 -12
- package/dist/helpers/importWhenPrefersMotion.js +0 -8
- package/dist/helpers/importWhenPrefersMotion.js.map +0 -7
- package/dist/helpers/importWhenVisible.d.ts +0 -19
- package/dist/helpers/importWhenVisible.js +0 -21
- package/dist/helpers/importWhenVisible.js.map +0 -7
- package/dist/helpers/index.d.ts +0 -14
- package/dist/helpers/index.js +0 -38
- package/dist/helpers/index.js.map +0 -7
- package/dist/helpers/logTree.d.ts +0 -17
- package/dist/helpers/logTree.js +0 -59
- package/dist/helpers/logTree.js.map +0 -7
- package/dist/helpers/queryComponent.d.ts +0 -28
- package/dist/helpers/queryComponent.js +0 -88
- package/dist/helpers/queryComponent.js.map +0 -7
- package/dist/helpers/registerComponent.d.ts +0 -24
- package/dist/helpers/registerComponent.js +0 -30
- package/dist/helpers/registerComponent.js.map +0 -7
- package/dist/helpers/registerComponents.d.ts +0 -22
- package/dist/helpers/registerComponents.js +0 -21
- package/dist/helpers/registerComponents.js.map +0 -7
- package/dist/helpers/utils.d.ts +0 -10
- package/dist/helpers/utils.js +0 -15
- package/dist/helpers/utils.js.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/services/AbstractService.d.ts +0 -98
- package/dist/services/AbstractService.js +0 -114
- package/dist/services/AbstractService.js.map +0 -7
- package/dist/services/DragService.d.ts +0 -138
- package/dist/services/DragService.js +0 -227
- package/dist/services/DragService.js.map +0 -7
- package/dist/services/KeyService.d.ts +0 -30
- package/dist/services/KeyService.js +0 -48
- package/dist/services/KeyService.js.map +0 -7
- package/dist/services/LoadService.d.ts +0 -16
- package/dist/services/LoadService.js +0 -19
- package/dist/services/LoadService.js.map +0 -7
- package/dist/services/MutationService.d.ts +0 -21
- package/dist/services/MutationService.js +0 -34
- package/dist/services/MutationService.js.map +0 -7
- package/dist/services/PointerService.d.ts +0 -57
- package/dist/services/PointerService.js +0 -129
- package/dist/services/PointerService.js.map +0 -7
- package/dist/services/RafService.d.ts +0 -27
- package/dist/services/RafService.js +0 -60
- package/dist/services/RafService.js.map +0 -7
- package/dist/services/ResizeService.d.ts +0 -30
- package/dist/services/ResizeService.js +0 -70
- package/dist/services/ResizeService.js.map +0 -7
- package/dist/services/ScrollService.d.ts +0 -87
- package/dist/services/ScrollService.js +0 -142
- package/dist/services/ScrollService.js.map +0 -7
- package/dist/services/index.d.ts +0 -9
- package/dist/services/index.js +0 -53
- package/dist/services/index.js.map +0 -7
- package/dist/services/utils.d.ts +0 -14
- package/dist/services/utils.js +0 -11
- package/dist/services/utils.js.map +0 -7
- package/dist/subpaths/AbstractService.d.ts +0 -1
- package/dist/subpaths/AbstractService.js +0 -6
- package/dist/subpaths/AbstractService.js.map +0 -7
- package/dist/subpaths/AutoloadHandle.d.ts +0 -1
- package/dist/subpaths/AutoloadHandle.js +0 -1
- package/dist/subpaths/AutoloadHandle.js.map +0 -7
- package/dist/subpaths/AutoloadOptions.d.ts +0 -1
- package/dist/subpaths/AutoloadOptions.js +0 -1
- package/dist/subpaths/AutoloadOptions.js.map +0 -7
- package/dist/subpaths/AutoloadRuntime.d.ts +0 -1
- package/dist/subpaths/AutoloadRuntime.js +0 -1
- package/dist/subpaths/AutoloadRuntime.js.map +0 -7
- package/dist/subpaths/Base.js.map +0 -7
- package/dist/subpaths/BaseAsyncConstructor.d.ts +0 -1
- package/dist/subpaths/BaseAsyncConstructor.js +0 -1
- package/dist/subpaths/BaseAsyncConstructor.js.map +0 -7
- package/dist/subpaths/BaseChildren.d.ts +0 -1
- package/dist/subpaths/BaseChildren.js +0 -1
- package/dist/subpaths/BaseChildren.js.map +0 -7
- package/dist/subpaths/BaseConfig.d.ts +0 -1
- package/dist/subpaths/BaseConfig.js +0 -1
- package/dist/subpaths/BaseConfig.js.map +0 -7
- package/dist/subpaths/BaseConfigComponents.d.ts +0 -1
- package/dist/subpaths/BaseConfigComponents.js +0 -1
- package/dist/subpaths/BaseConfigComponents.js.map +0 -7
- package/dist/subpaths/BaseConstructor.d.ts +0 -1
- package/dist/subpaths/BaseConstructor.js +0 -1
- package/dist/subpaths/BaseConstructor.js.map +0 -7
- package/dist/subpaths/BaseDecorator.d.ts +0 -1
- package/dist/subpaths/BaseDecorator.js +0 -1
- package/dist/subpaths/BaseDecorator.js.map +0 -7
- package/dist/subpaths/BaseEl.d.ts +0 -1
- package/dist/subpaths/BaseEl.js +0 -1
- package/dist/subpaths/BaseEl.js.map +0 -7
- package/dist/subpaths/BaseEventHookParams.d.ts +0 -1
- package/dist/subpaths/BaseEventHookParams.js +0 -1
- package/dist/subpaths/BaseEventHookParams.js.map +0 -7
- package/dist/subpaths/BaseInterface.d.ts +0 -1
- package/dist/subpaths/BaseInterface.js +0 -1
- package/dist/subpaths/BaseInterface.js.map +0 -7
- package/dist/subpaths/BaseOptions.d.ts +0 -1
- package/dist/subpaths/BaseOptions.js +0 -1
- package/dist/subpaths/BaseOptions.js.map +0 -7
- package/dist/subpaths/BaseProps.d.ts +0 -1
- package/dist/subpaths/BaseProps.js +0 -1
- package/dist/subpaths/BaseProps.js.map +0 -7
- package/dist/subpaths/BaseRefs.d.ts +0 -1
- package/dist/subpaths/BaseRefs.js +0 -1
- package/dist/subpaths/BaseRefs.js.map +0 -7
- package/dist/subpaths/ComponentLoadStrategy.d.ts +0 -1
- package/dist/subpaths/ComponentLoadStrategy.js +0 -1
- package/dist/subpaths/ComponentLoadStrategy.js.map +0 -7
- package/dist/subpaths/ComponentLoader.d.ts +0 -1
- package/dist/subpaths/ComponentLoader.js +0 -6
- package/dist/subpaths/ComponentLoader.js.map +0 -7
- package/dist/subpaths/ComponentLoaderOptions.d.ts +0 -1
- package/dist/subpaths/ComponentLoaderOptions.js +0 -1
- package/dist/subpaths/ComponentLoaderOptions.js.map +0 -7
- package/dist/subpaths/ComponentLoaderStartOptions.d.ts +0 -1
- package/dist/subpaths/ComponentLoaderStartOptions.js +0 -1
- package/dist/subpaths/ComponentLoaderStartOptions.js.map +0 -7
- package/dist/subpaths/ComponentManifest.d.ts +0 -1
- package/dist/subpaths/ComponentManifest.js +0 -1
- package/dist/subpaths/ComponentManifest.js.map +0 -7
- package/dist/subpaths/ComponentManifestEntry.d.ts +0 -1
- package/dist/subpaths/ComponentManifestEntry.js +0 -1
- package/dist/subpaths/ComponentManifestEntry.js.map +0 -7
- package/dist/subpaths/ComponentOverride.d.ts +0 -1
- package/dist/subpaths/ComponentOverride.js +0 -1
- package/dist/subpaths/ComponentOverride.js.map +0 -7
- package/dist/subpaths/CreateAppOptions.d.ts +0 -1
- package/dist/subpaths/CreateAppOptions.js +0 -1
- package/dist/subpaths/CreateAppOptions.js.map +0 -7
- package/dist/subpaths/DEFAULT_DIAGNOSTIC_PREFIX.d.ts +0 -1
- package/dist/subpaths/DEFAULT_DIAGNOSTIC_PREFIX.js +0 -6
- package/dist/subpaths/DEFAULT_DIAGNOSTIC_PREFIX.js.map +0 -7
- package/dist/subpaths/DefineManifestOptions.d.ts +0 -1
- package/dist/subpaths/DefineManifestOptions.js +0 -1
- package/dist/subpaths/DefineManifestOptions.js.map +0 -7
- package/dist/subpaths/DragDecoratorOptions.d.ts +0 -1
- package/dist/subpaths/DragDecoratorOptions.js +0 -1
- package/dist/subpaths/DragDecoratorOptions.js.map +0 -7
- package/dist/subpaths/DragService.d.ts +0 -1
- package/dist/subpaths/DragService.js +0 -6
- package/dist/subpaths/DragService.js.map +0 -7
- package/dist/subpaths/DragServiceInterface.d.ts +0 -1
- package/dist/subpaths/DragServiceInterface.js +0 -1
- package/dist/subpaths/DragServiceInterface.js.map +0 -7
- package/dist/subpaths/DragServiceOptions.d.ts +0 -1
- package/dist/subpaths/DragServiceOptions.js +0 -1
- package/dist/subpaths/DragServiceOptions.js.map +0 -7
- package/dist/subpaths/DragServiceProps.d.ts +0 -1
- package/dist/subpaths/DragServiceProps.js +0 -1
- package/dist/subpaths/DragServiceProps.js.map +0 -7
- package/dist/subpaths/IDLE_TIMEOUT.d.ts +0 -1
- package/dist/subpaths/IDLE_TIMEOUT.js +0 -6
- package/dist/subpaths/IDLE_TIMEOUT.js.map +0 -7
- package/dist/subpaths/KeyService.d.ts +0 -1
- package/dist/subpaths/KeyService.js +0 -6
- package/dist/subpaths/KeyService.js.map +0 -7
- package/dist/subpaths/KeyServiceInterface.d.ts +0 -1
- package/dist/subpaths/KeyServiceInterface.js +0 -1
- package/dist/subpaths/KeyServiceInterface.js.map +0 -7
- package/dist/subpaths/KeyServiceProps.d.ts +0 -1
- package/dist/subpaths/KeyServiceProps.js +0 -1
- package/dist/subpaths/KeyServiceProps.js.map +0 -7
- package/dist/subpaths/LoadService.d.ts +0 -1
- package/dist/subpaths/LoadService.js +0 -6
- package/dist/subpaths/LoadService.js.map +0 -7
- package/dist/subpaths/LoadServiceInterface.d.ts +0 -1
- package/dist/subpaths/LoadServiceInterface.js +0 -1
- package/dist/subpaths/LoadServiceInterface.js.map +0 -7
- package/dist/subpaths/LoadServiceProps.d.ts +0 -1
- package/dist/subpaths/LoadServiceProps.js +0 -1
- package/dist/subpaths/LoadServiceProps.js.map +0 -7
- package/dist/subpaths/LoaderDependencies.d.ts +0 -1
- package/dist/subpaths/LoaderDependencies.js +0 -1
- package/dist/subpaths/LoaderDependencies.js.map +0 -7
- package/dist/subpaths/Managers.d.ts +0 -1
- package/dist/subpaths/Managers.js +0 -1
- package/dist/subpaths/Managers.js.map +0 -7
- package/dist/subpaths/ModuleRecord.d.ts +0 -1
- package/dist/subpaths/ModuleRecord.js +0 -1
- package/dist/subpaths/ModuleRecord.js.map +0 -7
- package/dist/subpaths/MutationDecoratorOptions.d.ts +0 -1
- package/dist/subpaths/MutationDecoratorOptions.js +0 -1
- package/dist/subpaths/MutationDecoratorOptions.js.map +0 -7
- package/dist/subpaths/MutationService.d.ts +0 -1
- package/dist/subpaths/MutationService.js +0 -6
- package/dist/subpaths/MutationService.js.map +0 -7
- package/dist/subpaths/MutationServiceInterface.d.ts +0 -1
- package/dist/subpaths/MutationServiceInterface.js +0 -1
- package/dist/subpaths/MutationServiceInterface.js.map +0 -7
- package/dist/subpaths/MutationServiceOptions.d.ts +0 -1
- package/dist/subpaths/MutationServiceOptions.js +0 -1
- package/dist/subpaths/MutationServiceOptions.js.map +0 -7
- package/dist/subpaths/MutationServiceProps.d.ts +0 -1
- package/dist/subpaths/MutationServiceProps.js +0 -1
- package/dist/subpaths/MutationServiceProps.js.map +0 -7
- package/dist/subpaths/NormalizedOffset.d.ts +0 -1
- package/dist/subpaths/NormalizedOffset.js +0 -1
- package/dist/subpaths/NormalizedOffset.js.map +0 -7
- package/dist/subpaths/OffsetValue.d.ts +0 -1
- package/dist/subpaths/OffsetValue.js +0 -1
- package/dist/subpaths/OffsetValue.js.map +0 -7
- package/dist/subpaths/PointerService.d.ts +0 -1
- package/dist/subpaths/PointerService.js +0 -6
- package/dist/subpaths/PointerService.js.map +0 -7
- package/dist/subpaths/PointerServiceInterface.d.ts +0 -1
- package/dist/subpaths/PointerServiceInterface.js +0 -1
- package/dist/subpaths/PointerServiceInterface.js.map +0 -7
- package/dist/subpaths/PointerServiceProps.d.ts +0 -1
- package/dist/subpaths/PointerServiceProps.js +0 -1
- package/dist/subpaths/PointerServiceProps.js.map +0 -7
- package/dist/subpaths/QueryOptions.d.ts +0 -1
- package/dist/subpaths/QueryOptions.js +0 -1
- package/dist/subpaths/QueryOptions.js.map +0 -7
- package/dist/subpaths/RafService.d.ts +0 -1
- package/dist/subpaths/RafService.js +0 -6
- package/dist/subpaths/RafService.js.map +0 -7
- package/dist/subpaths/RafServiceInterface.d.ts +0 -1
- package/dist/subpaths/RafServiceInterface.js +0 -1
- package/dist/subpaths/RafServiceInterface.js.map +0 -7
- package/dist/subpaths/RafServiceProps.d.ts +0 -1
- package/dist/subpaths/RafServiceProps.js +0 -1
- package/dist/subpaths/RafServiceProps.js.map +0 -7
- package/dist/subpaths/RegisterManifestOptions.d.ts +0 -1
- package/dist/subpaths/RegisterManifestOptions.js +0 -1
- package/dist/subpaths/RegisterManifestOptions.js.map +0 -7
- package/dist/subpaths/RelativePointerDecoratorOptions.d.ts +0 -1
- package/dist/subpaths/RelativePointerDecoratorOptions.js +0 -1
- package/dist/subpaths/RelativePointerDecoratorOptions.js.map +0 -7
- package/dist/subpaths/RelativePointerInterface.d.ts +0 -1
- package/dist/subpaths/RelativePointerInterface.js +0 -1
- package/dist/subpaths/RelativePointerInterface.js.map +0 -7
- package/dist/subpaths/ResizeService.d.ts +0 -1
- package/dist/subpaths/ResizeService.js +0 -6
- package/dist/subpaths/ResizeService.js.map +0 -7
- package/dist/subpaths/ResizeServiceInterface.d.ts +0 -1
- package/dist/subpaths/ResizeServiceInterface.js +0 -1
- package/dist/subpaths/ResizeServiceInterface.js.map +0 -7
- package/dist/subpaths/ResizeServiceProps.d.ts +0 -1
- package/dist/subpaths/ResizeServiceProps.js +0 -1
- package/dist/subpaths/ResizeServiceProps.js.map +0 -7
- package/dist/subpaths/ScrollInViewProps.d.ts +0 -1
- package/dist/subpaths/ScrollInViewProps.js +0 -1
- package/dist/subpaths/ScrollInViewProps.js.map +0 -7
- package/dist/subpaths/ScrollService.d.ts +0 -1
- package/dist/subpaths/ScrollService.js +0 -6
- package/dist/subpaths/ScrollService.js.map +0 -7
- package/dist/subpaths/ScrollServiceInterface.d.ts +0 -1
- package/dist/subpaths/ScrollServiceInterface.js +0 -1
- package/dist/subpaths/ScrollServiceInterface.js.map +0 -7
- package/dist/subpaths/ScrollServiceProps.d.ts +0 -1
- package/dist/subpaths/ScrollServiceProps.js +0 -1
- package/dist/subpaths/ScrollServiceProps.js.map +0 -7
- package/dist/subpaths/ServiceConfig.d.ts +0 -1
- package/dist/subpaths/ServiceConfig.js +0 -1
- package/dist/subpaths/ServiceConfig.js.map +0 -7
- package/dist/subpaths/ServiceInterface.d.ts +0 -1
- package/dist/subpaths/ServiceInterface.js +0 -1
- package/dist/subpaths/ServiceInterface.js.map +0 -7
- package/dist/subpaths/VISIBLE_ROOT_MARGIN.d.ts +0 -1
- package/dist/subpaths/VISIBLE_ROOT_MARGIN.js +0 -6
- package/dist/subpaths/VISIBLE_ROOT_MARGIN.js.map +0 -7
- package/dist/subpaths/WebpackContextLike.d.ts +0 -1
- package/dist/subpaths/WebpackContextLike.js +0 -1
- package/dist/subpaths/WebpackContextLike.js.map +0 -7
- package/dist/subpaths/WithBreakpointObserverInterface.d.ts +0 -1
- package/dist/subpaths/WithBreakpointObserverInterface.js +0 -1
- package/dist/subpaths/WithBreakpointObserverInterface.js.map +0 -7
- package/dist/subpaths/WithBreakpointObserverProps.d.ts +0 -1
- package/dist/subpaths/WithBreakpointObserverProps.js +0 -1
- package/dist/subpaths/WithBreakpointObserverProps.js.map +0 -7
- package/dist/subpaths/WithDragInterface.d.ts +0 -1
- package/dist/subpaths/WithDragInterface.js +0 -1
- package/dist/subpaths/WithDragInterface.js.map +0 -7
- package/dist/subpaths/WithFreezedOptionsInterface.d.ts +0 -1
- package/dist/subpaths/WithFreezedOptionsInterface.js +0 -1
- package/dist/subpaths/WithFreezedOptionsInterface.js.map +0 -7
- package/dist/subpaths/WithGroupInterface.d.ts +0 -1
- package/dist/subpaths/WithGroupInterface.js +0 -1
- package/dist/subpaths/WithGroupInterface.js.map +0 -7
- package/dist/subpaths/WithGroupOptions.d.ts +0 -1
- package/dist/subpaths/WithGroupOptions.js +0 -1
- package/dist/subpaths/WithGroupOptions.js.map +0 -7
- package/dist/subpaths/WithGroupProps.d.ts +0 -1
- package/dist/subpaths/WithGroupProps.js +0 -1
- package/dist/subpaths/WithGroupProps.js.map +0 -7
- package/dist/subpaths/WithIntersectionObserverInterface.d.ts +0 -1
- package/dist/subpaths/WithIntersectionObserverInterface.js +0 -1
- package/dist/subpaths/WithIntersectionObserverInterface.js.map +0 -7
- package/dist/subpaths/WithIntersectionObserverProps.d.ts +0 -1
- package/dist/subpaths/WithIntersectionObserverProps.js +0 -1
- package/dist/subpaths/WithIntersectionObserverProps.js.map +0 -7
- package/dist/subpaths/WithMountWhenInViewInterface.d.ts +0 -1
- package/dist/subpaths/WithMountWhenInViewInterface.js +0 -1
- package/dist/subpaths/WithMountWhenInViewInterface.js.map +0 -7
- package/dist/subpaths/WithMountWhenInViewProps.d.ts +0 -1
- package/dist/subpaths/WithMountWhenInViewProps.js +0 -1
- package/dist/subpaths/WithMountWhenInViewProps.js.map +0 -7
- package/dist/subpaths/WithMutationInterface.d.ts +0 -1
- package/dist/subpaths/WithMutationInterface.js +0 -1
- package/dist/subpaths/WithMutationInterface.js.map +0 -7
- package/dist/subpaths/WithScrolledInViewInterface.d.ts +0 -1
- package/dist/subpaths/WithScrolledInViewInterface.js +0 -1
- package/dist/subpaths/WithScrolledInViewInterface.js.map +0 -7
- package/dist/subpaths/WithScrolledInViewOptions.d.ts +0 -1
- package/dist/subpaths/WithScrolledInViewOptions.js +0 -1
- package/dist/subpaths/WithScrolledInViewOptions.js.map +0 -7
- package/dist/subpaths/WithScrolledInViewProps.d.ts +0 -1
- package/dist/subpaths/WithScrolledInViewProps.js +0 -1
- package/dist/subpaths/WithScrolledInViewProps.js.map +0 -7
- package/dist/subpaths/autoload.d.ts +0 -1
- package/dist/subpaths/autoload.js +0 -6
- package/dist/subpaths/autoload.js.map +0 -7
- package/dist/subpaths/closestComponent.d.ts +0 -1
- package/dist/subpaths/closestComponent.js +0 -6
- package/dist/subpaths/closestComponent.js.map +0 -7
- package/dist/subpaths/composeManifests.d.ts +0 -1
- package/dist/subpaths/composeManifests.js +0 -6
- package/dist/subpaths/composeManifests.js.map +0 -7
- package/dist/subpaths/createApp.d.ts +0 -1
- package/dist/subpaths/createApp.js +0 -6
- package/dist/subpaths/createApp.js.map +0 -7
- package/dist/subpaths/defineFeatures.d.ts +0 -1
- package/dist/subpaths/defineFeatures.js +0 -6
- package/dist/subpaths/defineFeatures.js.map +0 -7
- package/dist/subpaths/defineManifest.js.map +0 -7
- package/dist/subpaths/fromMetaGlob.js.map +0 -7
- package/dist/subpaths/fromWebpackContext.js.map +0 -7
- package/dist/subpaths/getClosestParent.d.ts +0 -1
- package/dist/subpaths/getClosestParent.js +0 -6
- package/dist/subpaths/getClosestParent.js.map +0 -7
- package/dist/subpaths/getDirectChildren.d.ts +0 -1
- package/dist/subpaths/getDirectChildren.js +0 -6
- package/dist/subpaths/getDirectChildren.js.map +0 -7
- package/dist/subpaths/getInstanceFromElement.d.ts +0 -1
- package/dist/subpaths/getInstanceFromElement.js +0 -6
- package/dist/subpaths/getInstanceFromElement.js.map +0 -7
- package/dist/subpaths/getInstances.js.map +0 -7
- package/dist/subpaths/getScopedGroups.d.ts +0 -1
- package/dist/subpaths/getScopedGroups.js +0 -6
- package/dist/subpaths/getScopedGroups.js.map +0 -7
- package/dist/subpaths/importOnInteraction.d.ts +0 -1
- package/dist/subpaths/importOnInteraction.js +0 -6
- package/dist/subpaths/importOnInteraction.js.map +0 -7
- package/dist/subpaths/importOnMediaQuery.d.ts +0 -1
- package/dist/subpaths/importOnMediaQuery.js +0 -6
- package/dist/subpaths/importOnMediaQuery.js.map +0 -7
- package/dist/subpaths/importWhenIdle.d.ts +0 -1
- package/dist/subpaths/importWhenIdle.js +0 -6
- package/dist/subpaths/importWhenIdle.js.map +0 -7
- package/dist/subpaths/importWhenPrefersMotion.d.ts +0 -1
- package/dist/subpaths/importWhenPrefersMotion.js +0 -6
- package/dist/subpaths/importWhenPrefersMotion.js.map +0 -7
- package/dist/subpaths/importWhenVisible.d.ts +0 -1
- package/dist/subpaths/importWhenVisible.js +0 -6
- package/dist/subpaths/importWhenVisible.js.map +0 -7
- package/dist/subpaths/isDirectChild.d.ts +0 -1
- package/dist/subpaths/isDirectChild.js +0 -6
- package/dist/subpaths/isDirectChild.js.map +0 -7
- package/dist/subpaths/logTree.d.ts +0 -1
- package/dist/subpaths/logTree.js +0 -6
- package/dist/subpaths/logTree.js.map +0 -7
- package/dist/subpaths/queryComponent.d.ts +0 -1
- package/dist/subpaths/queryComponent.js +0 -6
- package/dist/subpaths/queryComponent.js.map +0 -7
- package/dist/subpaths/queryComponentAll.d.ts +0 -1
- package/dist/subpaths/queryComponentAll.js +0 -6
- package/dist/subpaths/queryComponentAll.js.map +0 -7
- package/dist/subpaths/readEagerTokens.d.ts +0 -1
- package/dist/subpaths/readEagerTokens.js +0 -6
- package/dist/subpaths/readEagerTokens.js.map +0 -7
- package/dist/subpaths/registerComponent.js.map +0 -7
- package/dist/subpaths/registerComponents.js.map +0 -7
- package/dist/subpaths/registerManifest.js.map +0 -7
- package/dist/subpaths/registerManifests.d.ts +0 -1
- package/dist/subpaths/registerManifests.js +0 -6
- package/dist/subpaths/registerManifests.js.map +0 -7
- package/dist/subpaths/useDrag.js.map +0 -7
- package/dist/subpaths/useKey.js.map +0 -7
- package/dist/subpaths/useLoad.d.ts +0 -1
- package/dist/subpaths/useLoad.js +0 -6
- package/dist/subpaths/useLoad.js.map +0 -7
- package/dist/subpaths/useMutation.js.map +0 -7
- package/dist/subpaths/usePointer.js.map +0 -7
- package/dist/subpaths/useRaf.js.map +0 -7
- package/dist/subpaths/useResize.js.map +0 -7
- package/dist/subpaths/useScroll.js.map +0 -7
- package/dist/subpaths/utils/Animate.1.d.ts +0 -1
- package/dist/subpaths/utils/Animate.1.js +0 -1
- package/dist/subpaths/utils/Animate.1.js.map +0 -7
- package/dist/subpaths/utils/AnimateOptions.d.ts +0 -1
- package/dist/subpaths/utils/AnimateOptions.js +0 -1
- package/dist/subpaths/utils/AnimateOptions.js.map +0 -7
- package/dist/subpaths/utils/CSSCustomPropertyName.d.ts +0 -1
- package/dist/subpaths/utils/CSSCustomPropertyName.js +0 -1
- package/dist/subpaths/utils/CSSCustomPropertyName.js.map +0 -7
- package/dist/subpaths/utils/EasingFunction.d.ts +0 -1
- package/dist/subpaths/utils/EasingFunction.js +0 -1
- package/dist/subpaths/utils/EasingFunction.js.map +0 -7
- package/dist/subpaths/utils/Keyframe.d.ts +0 -1
- package/dist/subpaths/utils/Keyframe.js +0 -1
- package/dist/subpaths/utils/Keyframe.js.map +0 -7
- package/dist/subpaths/utils/LoadElementsOptions.d.ts +0 -1
- package/dist/subpaths/utils/LoadElementsOptions.js +0 -1
- package/dist/subpaths/utils/LoadElementsOptions.js.map +0 -7
- package/dist/subpaths/utils/LoadElementsReturnType.d.ts +0 -1
- package/dist/subpaths/utils/LoadElementsReturnType.js +0 -1
- package/dist/subpaths/utils/LoadElementsReturnType.js.map +0 -7
- package/dist/subpaths/utils/LoadableElements.d.ts +0 -1
- package/dist/subpaths/utils/LoadableElements.js +0 -1
- package/dist/subpaths/utils/LoadableElements.js.map +0 -7
- package/dist/subpaths/utils/LoadableElementsNames.d.ts +0 -1
- package/dist/subpaths/utils/LoadableElementsNames.js +0 -1
- package/dist/subpaths/utils/LoadableElementsNames.js.map +0 -7
- package/dist/subpaths/utils/NormalizedKeyframe.d.ts +0 -1
- package/dist/subpaths/utils/NormalizedKeyframe.js +0 -1
- package/dist/subpaths/utils/NormalizedKeyframe.js.map +0 -7
- package/dist/subpaths/utils/Queue.d.ts +0 -1
- package/dist/subpaths/utils/Queue.js +0 -6
- package/dist/subpaths/utils/Queue.js.map +0 -7
- package/dist/subpaths/utils/SmartQueue.d.ts +0 -1
- package/dist/subpaths/utils/SmartQueue.js +0 -6
- package/dist/subpaths/utils/SmartQueue.js.map +0 -7
- package/dist/subpaths/utils/StorageInstance.d.ts +0 -1
- package/dist/subpaths/utils/StorageInstance.js +0 -1
- package/dist/subpaths/utils/StorageInstance.js.map +0 -7
- package/dist/subpaths/utils/StorageOptions.d.ts +0 -1
- package/dist/subpaths/utils/StorageOptions.js +0 -1
- package/dist/subpaths/utils/StorageOptions.js.map +0 -7
- package/dist/subpaths/utils/StorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/StorageProvider.js +0 -1
- package/dist/subpaths/utils/StorageProvider.js.map +0 -7
- package/dist/subpaths/utils/StorageSerializer.d.ts +0 -1
- package/dist/subpaths/utils/StorageSerializer.js +0 -1
- package/dist/subpaths/utils/StorageSerializer.js.map +0 -7
- package/dist/subpaths/utils/TransformProps.d.ts +0 -1
- package/dist/subpaths/utils/TransformProps.js +0 -1
- package/dist/subpaths/utils/TransformProps.js.map +0 -7
- package/dist/subpaths/utils/UrlProviderOptions.d.ts +0 -1
- package/dist/subpaths/utils/UrlProviderOptions.js +0 -1
- package/dist/subpaths/utils/UrlProviderOptions.js.map +0 -7
- package/dist/subpaths/utils/addClass.d.ts +0 -1
- package/dist/subpaths/utils/addClass.js +0 -6
- package/dist/subpaths/utils/addClass.js.map +0 -7
- package/dist/subpaths/utils/addStyle.d.ts +0 -1
- package/dist/subpaths/utils/addStyle.js +0 -6
- package/dist/subpaths/utils/addStyle.js.map +0 -7
- package/dist/subpaths/utils/animate.d.ts +0 -1
- package/dist/subpaths/utils/animate.js +0 -6
- package/dist/subpaths/utils/animate.js.map +0 -7
- package/dist/subpaths/utils/boundingRectToCircle.d.ts +0 -1
- package/dist/subpaths/utils/boundingRectToCircle.js +0 -6
- package/dist/subpaths/utils/boundingRectToCircle.js.map +0 -7
- package/dist/subpaths/utils/cache.d.ts +0 -1
- package/dist/subpaths/utils/cache.js +0 -6
- package/dist/subpaths/utils/cache.js.map +0 -7
- package/dist/subpaths/utils/camelCase.js.map +0 -7
- package/dist/subpaths/utils/clamp.js.map +0 -7
- package/dist/subpaths/utils/clamp01.js.map +0 -7
- package/dist/subpaths/utils/collideCircleCircle.d.ts +0 -1
- package/dist/subpaths/utils/collideCircleCircle.js +0 -6
- package/dist/subpaths/utils/collideCircleCircle.js.map +0 -7
- package/dist/subpaths/utils/collideCircleRect.d.ts +0 -1
- package/dist/subpaths/utils/collideCircleRect.js +0 -6
- package/dist/subpaths/utils/collideCircleRect.js.map +0 -7
- package/dist/subpaths/utils/collidePointCircle.d.ts +0 -1
- package/dist/subpaths/utils/collidePointCircle.js +0 -6
- package/dist/subpaths/utils/collidePointCircle.js.map +0 -7
- package/dist/subpaths/utils/collidePointRect.d.ts +0 -1
- package/dist/subpaths/utils/collidePointRect.js +0 -6
- package/dist/subpaths/utils/collidePointRect.js.map +0 -7
- package/dist/subpaths/utils/collideRectRect.d.ts +0 -1
- package/dist/subpaths/utils/collideRectRect.js +0 -6
- package/dist/subpaths/utils/collideRectRect.js.map +0 -7
- package/dist/subpaths/utils/createEaseInOut.js.map +0 -7
- package/dist/subpaths/utils/createEaseOut.js.map +0 -7
- package/dist/subpaths/utils/createElement.js.map +0 -7
- package/dist/subpaths/utils/createLocalStorage.d.ts +0 -1
- package/dist/subpaths/utils/createLocalStorage.js +0 -6
- package/dist/subpaths/utils/createLocalStorage.js.map +0 -7
- package/dist/subpaths/utils/createLocalStorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/createLocalStorageProvider.js +0 -6
- package/dist/subpaths/utils/createLocalStorageProvider.js.map +0 -7
- package/dist/subpaths/utils/createMemoryStorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/createMemoryStorageProvider.js +0 -6
- package/dist/subpaths/utils/createMemoryStorageProvider.js.map +0 -7
- package/dist/subpaths/utils/createNoopProvider.d.ts +0 -1
- package/dist/subpaths/utils/createNoopProvider.js +0 -6
- package/dist/subpaths/utils/createNoopProvider.js.map +0 -7
- package/dist/subpaths/utils/createRange.js.map +0 -7
- package/dist/subpaths/utils/createSessionStorage.d.ts +0 -1
- package/dist/subpaths/utils/createSessionStorage.js +0 -6
- package/dist/subpaths/utils/createSessionStorage.js.map +0 -7
- package/dist/subpaths/utils/createSessionStorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/createSessionStorageProvider.js +0 -6
- package/dist/subpaths/utils/createSessionStorageProvider.js.map +0 -7
- package/dist/subpaths/utils/createStorage.d.ts +0 -1
- package/dist/subpaths/utils/createStorage.js +0 -6
- package/dist/subpaths/utils/createStorage.js.map +0 -7
- package/dist/subpaths/utils/createUrlSearchParamsInHashProvider.d.ts +0 -1
- package/dist/subpaths/utils/createUrlSearchParamsInHashProvider.js +0 -6
- package/dist/subpaths/utils/createUrlSearchParamsInHashProvider.js.map +0 -7
- package/dist/subpaths/utils/createUrlSearchParamsInHashStorage.d.ts +0 -1
- package/dist/subpaths/utils/createUrlSearchParamsInHashStorage.js +0 -6
- package/dist/subpaths/utils/createUrlSearchParamsInHashStorage.js.map +0 -7
- package/dist/subpaths/utils/createUrlSearchParamsProvider.d.ts +0 -1
- package/dist/subpaths/utils/createUrlSearchParamsProvider.js +0 -6
- package/dist/subpaths/utils/createUrlSearchParamsProvider.js.map +0 -7
- package/dist/subpaths/utils/createUrlSearchParamsStorage.d.ts +0 -1
- package/dist/subpaths/utils/createUrlSearchParamsStorage.js +0 -6
- package/dist/subpaths/utils/createUrlSearchParamsStorage.js.map +0 -7
- package/dist/subpaths/utils/damp.js.map +0 -7
- package/dist/subpaths/utils/dashCase.d.ts +0 -1
- package/dist/subpaths/utils/dashCase.js +0 -6
- package/dist/subpaths/utils/dashCase.js.map +0 -7
- package/dist/subpaths/utils/debounce.js.map +0 -7
- package/dist/subpaths/utils/domScheduler.d.ts +0 -1
- package/dist/subpaths/utils/domScheduler.js +0 -6
- package/dist/subpaths/utils/domScheduler.js.map +0 -7
- package/dist/subpaths/utils/ease.d.ts +0 -1
- package/dist/subpaths/utils/ease.js +0 -6
- package/dist/subpaths/utils/ease.js.map +0 -7
- package/dist/subpaths/utils/easeInCirc.js.map +0 -7
- package/dist/subpaths/utils/easeInCubic.js.map +0 -7
- package/dist/subpaths/utils/easeInExpo.js.map +0 -7
- package/dist/subpaths/utils/easeInOutCirc.js.map +0 -7
- package/dist/subpaths/utils/easeInOutCubic.js.map +0 -7
- package/dist/subpaths/utils/easeInOutExpo.js.map +0 -7
- package/dist/subpaths/utils/easeInOutQuad.js.map +0 -7
- package/dist/subpaths/utils/easeInOutQuart.js.map +0 -7
- package/dist/subpaths/utils/easeInOutQuint.js.map +0 -7
- package/dist/subpaths/utils/easeInOutSine.js.map +0 -7
- package/dist/subpaths/utils/easeInQuad.js.map +0 -7
- package/dist/subpaths/utils/easeInQuart.js.map +0 -7
- package/dist/subpaths/utils/easeInQuint.js.map +0 -7
- package/dist/subpaths/utils/easeInSine.js.map +0 -7
- package/dist/subpaths/utils/easeLinear.js.map +0 -7
- package/dist/subpaths/utils/easeOutCirc.js.map +0 -7
- package/dist/subpaths/utils/easeOutCubic.js.map +0 -7
- package/dist/subpaths/utils/easeOutExpo.js.map +0 -7
- package/dist/subpaths/utils/easeOutQuad.js.map +0 -7
- package/dist/subpaths/utils/easeOutQuart.js.map +0 -7
- package/dist/subpaths/utils/easeOutQuint.js.map +0 -7
- package/dist/subpaths/utils/easeOutSine.js.map +0 -7
- package/dist/subpaths/utils/endsWith.d.ts +0 -1
- package/dist/subpaths/utils/endsWith.js +0 -6
- package/dist/subpaths/utils/endsWith.js.map +0 -7
- package/dist/subpaths/utils/fold.js.map +0 -7
- package/dist/subpaths/utils/getAncestorWhere.d.ts +0 -1
- package/dist/subpaths/utils/getAncestorWhere.js +0 -6
- package/dist/subpaths/utils/getAncestorWhere.js.map +0 -7
- package/dist/subpaths/utils/getAncestorWhereUntil.d.ts +0 -1
- package/dist/subpaths/utils/getAncestorWhereUntil.js +0 -6
- package/dist/subpaths/utils/getAncestorWhereUntil.js.map +0 -7
- package/dist/subpaths/utils/getComponentResolver.d.ts +0 -1
- package/dist/subpaths/utils/getComponentResolver.js +0 -6
- package/dist/subpaths/utils/getComponentResolver.js.map +0 -7
- package/dist/subpaths/utils/getOffsetSizes.js.map +0 -7
- package/dist/subpaths/utils/hasWindow.d.ts +0 -1
- package/dist/subpaths/utils/hasWindow.js +0 -6
- package/dist/subpaths/utils/hasWindow.js.map +0 -7
- package/dist/subpaths/utils/historyPush.js.map +0 -7
- package/dist/subpaths/utils/historyReplace.js.map +0 -7
- package/dist/subpaths/utils/inertiaFinalValue.js.map +0 -7
- package/dist/subpaths/utils/isArray.d.ts +0 -1
- package/dist/subpaths/utils/isArray.js +0 -6
- package/dist/subpaths/utils/isArray.js.map +0 -7
- package/dist/subpaths/utils/isBoolean.js.map +0 -7
- package/dist/subpaths/utils/isDefined.js.map +0 -7
- package/dist/subpaths/utils/isDev.d.ts +0 -1
- package/dist/subpaths/utils/isDev.js +0 -6
- package/dist/subpaths/utils/isDev.js.map +0 -7
- package/dist/subpaths/utils/isEmpty.d.ts +0 -1
- package/dist/subpaths/utils/isEmpty.js +0 -6
- package/dist/subpaths/utils/isEmpty.js.map +0 -7
- package/dist/subpaths/utils/isEmptyString.d.ts +0 -1
- package/dist/subpaths/utils/isEmptyString.js +0 -6
- package/dist/subpaths/utils/isEmptyString.js.map +0 -7
- package/dist/subpaths/utils/isFunction.js.map +0 -7
- package/dist/subpaths/utils/isNull.js.map +0 -7
- package/dist/subpaths/utils/isNumber.js.map +0 -7
- package/dist/subpaths/utils/isObject.js.map +0 -7
- package/dist/subpaths/utils/isString.js.map +0 -7
- package/dist/subpaths/utils/keyCodes.d.ts +0 -1
- package/dist/subpaths/utils/keyCodes.js +0 -6
- package/dist/subpaths/utils/keyCodes.js.map +0 -7
- package/dist/subpaths/utils/lerp.js.map +0 -7
- package/dist/subpaths/utils/loadElement.d.ts +0 -1
- package/dist/subpaths/utils/loadElement.js +0 -6
- package/dist/subpaths/utils/loadElement.js.map +0 -7
- package/dist/subpaths/utils/loadIframe.d.ts +0 -1
- package/dist/subpaths/utils/loadIframe.js +0 -6
- package/dist/subpaths/utils/loadIframe.js.map +0 -7
- package/dist/subpaths/utils/loadImage.js.map +0 -7
- package/dist/subpaths/utils/loadLink.js.map +0 -7
- package/dist/subpaths/utils/loadScript.js.map +0 -7
- package/dist/subpaths/utils/localStorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/localStorageProvider.js +0 -6
- package/dist/subpaths/utils/localStorageProvider.js.map +0 -7
- package/dist/subpaths/utils/lowerCase.js.map +0 -7
- package/dist/subpaths/utils/map.js.map +0 -7
- package/dist/subpaths/utils/matrix.js.map +0 -7
- package/dist/subpaths/utils/mean.js.map +0 -7
- package/dist/subpaths/utils/memo.js.map +0 -7
- package/dist/subpaths/utils/memoize.d.ts +0 -1
- package/dist/subpaths/utils/memoize.js +0 -6
- package/dist/subpaths/utils/memoize.js.map +0 -7
- package/dist/subpaths/utils/memoryStorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/memoryStorageProvider.js +0 -6
- package/dist/subpaths/utils/memoryStorageProvider.js.map +0 -7
- package/dist/subpaths/utils/nextFrame.d.ts +0 -1
- package/dist/subpaths/utils/nextFrame.js +0 -6
- package/dist/subpaths/utils/nextFrame.js.map +0 -7
- package/dist/subpaths/utils/nextMicrotask.d.ts +0 -1
- package/dist/subpaths/utils/nextMicrotask.js +0 -6
- package/dist/subpaths/utils/nextMicrotask.js.map +0 -7
- package/dist/subpaths/utils/nextTick.d.ts +0 -1
- package/dist/subpaths/utils/nextTick.js +0 -6
- package/dist/subpaths/utils/nextTick.js.map +0 -7
- package/dist/subpaths/utils/noop.js.map +0 -7
- package/dist/subpaths/utils/noopValue.js.map +0 -7
- package/dist/subpaths/utils/objectToURLSearchParams.js.map +0 -7
- package/dist/subpaths/utils/pascalCase.js.map +0 -7
- package/dist/subpaths/utils/random.js.map +0 -7
- package/dist/subpaths/utils/randomInt.js.map +0 -7
- package/dist/subpaths/utils/randomItem.js.map +0 -7
- package/dist/subpaths/utils/removeClass.d.ts +0 -1
- package/dist/subpaths/utils/removeClass.js +0 -6
- package/dist/subpaths/utils/removeClass.js.map +0 -7
- package/dist/subpaths/utils/removeStyle.d.ts +0 -1
- package/dist/subpaths/utils/removeStyle.js +0 -6
- package/dist/subpaths/utils/removeStyle.js.map +0 -7
- package/dist/subpaths/utils/round.js.map +0 -7
- package/dist/subpaths/utils/saveActiveElement.js.map +0 -7
- package/dist/subpaths/utils/scrollTo.js.map +0 -7
- package/dist/subpaths/utils/sessionStorageProvider.d.ts +0 -1
- package/dist/subpaths/utils/sessionStorageProvider.js +0 -6
- package/dist/subpaths/utils/sessionStorageProvider.js.map +0 -7
- package/dist/subpaths/utils/smoothTo.js.map +0 -7
- package/dist/subpaths/utils/snakeCase.js.map +0 -7
- package/dist/subpaths/utils/spring.js.map +0 -7
- package/dist/subpaths/utils/startsWith.d.ts +0 -1
- package/dist/subpaths/utils/startsWith.js +0 -6
- package/dist/subpaths/utils/startsWith.js.map +0 -7
- package/dist/subpaths/utils/throttle.js.map +0 -7
- package/dist/subpaths/utils/toggleClass.d.ts +0 -1
- package/dist/subpaths/utils/toggleClass.js +0 -6
- package/dist/subpaths/utils/toggleClass.js.map +0 -7
- package/dist/subpaths/utils/transform.js.map +0 -7
- package/dist/subpaths/utils/transition.js.map +0 -7
- package/dist/subpaths/utils/trapFocus.js.map +0 -7
- package/dist/subpaths/utils/tween.d.ts +0 -1
- package/dist/subpaths/utils/tween.js +0 -6
- package/dist/subpaths/utils/tween.js.map +0 -7
- package/dist/subpaths/utils/untrapFocus.js.map +0 -7
- package/dist/subpaths/utils/upperCase.js.map +0 -7
- package/dist/subpaths/utils/urlSearchParamsInHashProvider.d.ts +0 -1
- package/dist/subpaths/utils/urlSearchParamsInHashProvider.js +0 -6
- package/dist/subpaths/utils/urlSearchParamsInHashProvider.js.map +0 -7
- package/dist/subpaths/utils/urlSearchParamsProvider.d.ts +0 -1
- package/dist/subpaths/utils/urlSearchParamsProvider.js +0 -6
- package/dist/subpaths/utils/urlSearchParamsProvider.js.map +0 -7
- package/dist/subpaths/utils/useScheduler.d.ts +0 -1
- package/dist/subpaths/utils/useScheduler.js +0 -6
- package/dist/subpaths/utils/useScheduler.js.map +0 -7
- package/dist/subpaths/utils/wait.js.map +0 -7
- package/dist/subpaths/utils/withLeadingCharacters.js.map +0 -7
- package/dist/subpaths/utils/withLeadingSlash.js.map +0 -7
- package/dist/subpaths/utils/withTrailingCharacters.js.map +0 -7
- package/dist/subpaths/utils/withTrailingSlash.js.map +0 -7
- package/dist/subpaths/utils/withoutLeadingCharacters.js.map +0 -7
- package/dist/subpaths/utils/withoutLeadingCharactersRecursive.js.map +0 -7
- package/dist/subpaths/utils/withoutLeadingSlash.js.map +0 -7
- package/dist/subpaths/utils/withoutTrailingCharacters.js.map +0 -7
- package/dist/subpaths/utils/withoutTrailingCharactersRecursive.js.map +0 -7
- package/dist/subpaths/utils/withoutTrailingSlash.js.map +0 -7
- package/dist/subpaths/utils/wrap.js.map +0 -7
- package/dist/subpaths/version.d.ts +0 -1
- package/dist/subpaths/version.js +0 -6
- package/dist/subpaths/version.js.map +0 -7
- package/dist/subpaths/withBreakpointManager.d.ts +0 -1
- package/dist/subpaths/withBreakpointManager.js +0 -6
- package/dist/subpaths/withBreakpointManager.js.map +0 -7
- package/dist/subpaths/withBreakpointObserver.d.ts +0 -1
- package/dist/subpaths/withBreakpointObserver.js +0 -6
- package/dist/subpaths/withBreakpointObserver.js.map +0 -7
- package/dist/subpaths/withDrag.js.map +0 -7
- package/dist/subpaths/withExtraConfig.d.ts +0 -1
- package/dist/subpaths/withExtraConfig.js +0 -6
- package/dist/subpaths/withExtraConfig.js.map +0 -7
- package/dist/subpaths/withFreezedOptions.d.ts +0 -1
- package/dist/subpaths/withFreezedOptions.js +0 -6
- package/dist/subpaths/withFreezedOptions.js.map +0 -7
- package/dist/subpaths/withGroup.d.ts +0 -1
- package/dist/subpaths/withGroup.js +0 -6
- package/dist/subpaths/withGroup.js.map +0 -7
- package/dist/subpaths/withIntersectionObserver.d.ts +0 -1
- package/dist/subpaths/withIntersectionObserver.js +0 -6
- package/dist/subpaths/withIntersectionObserver.js.map +0 -7
- package/dist/subpaths/withMountOnMediaQuery.d.ts +0 -1
- package/dist/subpaths/withMountOnMediaQuery.js +0 -6
- package/dist/subpaths/withMountOnMediaQuery.js.map +0 -7
- package/dist/subpaths/withMountOnMediaQueryInterface.d.ts +0 -1
- package/dist/subpaths/withMountOnMediaQueryInterface.js +0 -1
- package/dist/subpaths/withMountOnMediaQueryInterface.js.map +0 -7
- package/dist/subpaths/withMountOnMediaQueryProps.d.ts +0 -1
- package/dist/subpaths/withMountOnMediaQueryProps.js +0 -1
- package/dist/subpaths/withMountOnMediaQueryProps.js.map +0 -7
- package/dist/subpaths/withMountWhenInView.d.ts +0 -1
- package/dist/subpaths/withMountWhenInView.js +0 -6
- package/dist/subpaths/withMountWhenInView.js.map +0 -7
- package/dist/subpaths/withMountWhenPrefersMotion.d.ts +0 -1
- package/dist/subpaths/withMountWhenPrefersMotion.js +0 -6
- package/dist/subpaths/withMountWhenPrefersMotion.js.map +0 -7
- package/dist/subpaths/withMutation.js.map +0 -7
- package/dist/subpaths/withName.d.ts +0 -1
- package/dist/subpaths/withName.js +0 -6
- package/dist/subpaths/withName.js.map +0 -7
- package/dist/subpaths/withRelativePointer.d.ts +0 -1
- package/dist/subpaths/withRelativePointer.js +0 -6
- package/dist/subpaths/withRelativePointer.js.map +0 -7
- package/dist/subpaths/withResponsiveOptions.d.ts +0 -1
- package/dist/subpaths/withResponsiveOptions.js +0 -6
- package/dist/subpaths/withResponsiveOptions.js.map +0 -7
- package/dist/subpaths/withScrolledInView.d.ts +0 -1
- package/dist/subpaths/withScrolledInView.js +0 -6
- package/dist/subpaths/withScrolledInView.js.map +0 -7
- package/dist/utils/Queue.d.ts +0 -44
- package/dist/utils/Queue.js +0 -71
- package/dist/utils/Queue.js.map +0 -7
- package/dist/utils/SmartQueue.d.ts +0 -25
- package/dist/utils/SmartQueue.js +0 -41
- package/dist/utils/SmartQueue.js.map +0 -7
- package/dist/utils/cache.d.ts +0 -5
- package/dist/utils/cache.js +0 -19
- package/dist/utils/cache.js.map +0 -7
- package/dist/utils/collide/boundingRectToCircle.d.ts +0 -24
- package/dist/utils/collide/boundingRectToCircle.js +0 -14
- package/dist/utils/collide/boundingRectToCircle.js.map +0 -7
- package/dist/utils/collide/collideCircleCircle.d.ts +0 -16
- package/dist/utils/collide/collideCircleCircle.js +0 -13
- package/dist/utils/collide/collideCircleCircle.js.map +0 -7
- package/dist/utils/collide/collideCircleRect.d.ts +0 -23
- package/dist/utils/collide/collideCircleRect.js +0 -25
- package/dist/utils/collide/collideCircleRect.js.map +0 -7
- package/dist/utils/collide/collidePointCircle.d.ts +0 -21
- package/dist/utils/collide/collidePointCircle.js +0 -10
- package/dist/utils/collide/collidePointCircle.js.map +0 -7
- package/dist/utils/collide/collidePointRect.d.ts +0 -22
- package/dist/utils/collide/collidePointRect.js +0 -10
- package/dist/utils/collide/collidePointRect.js.map +0 -7
- package/dist/utils/collide/collideRectRect.d.ts +0 -17
- package/dist/utils/collide/collideRectRect.js +0 -10
- package/dist/utils/collide/collideRectRect.js.map +0 -7
- package/dist/utils/collide/index.d.ts +0 -9
- package/dist/utils/collide/index.js +0 -15
- package/dist/utils/collide/index.js.map +0 -7
- package/dist/utils/css/animate.d.ts +0 -46
- package/dist/utils/css/animate.js +0 -279
- package/dist/utils/css/animate.js.map +0 -7
- package/dist/utils/css/classes.d.ts +0 -15
- package/dist/utils/css/classes.js +0 -29
- package/dist/utils/css/classes.js.map +0 -7
- package/dist/utils/css/getOffsetSizes.d.ts +0 -14
- package/dist/utils/css/getOffsetSizes.js +0 -26
- package/dist/utils/css/getOffsetSizes.js.map +0 -7
- package/dist/utils/css/index.d.ts +0 -8
- package/dist/utils/css/index.js +0 -22
- package/dist/utils/css/index.js.map +0 -7
- package/dist/utils/css/matrix.d.ts +0 -28
- package/dist/utils/css/matrix.js +0 -8
- package/dist/utils/css/matrix.js.map +0 -7
- package/dist/utils/css/styles.d.ts +0 -10
- package/dist/utils/css/styles.js +0 -23
- package/dist/utils/css/styles.js.map +0 -7
- package/dist/utils/css/transform.d.ts +0 -22
- package/dist/utils/css/transform.js +0 -69
- package/dist/utils/css/transform.js.map +0 -7
- package/dist/utils/css/transition.d.ts +0 -20
- package/dist/utils/css/transition.js +0 -113
- package/dist/utils/css/transition.js.map +0 -7
- package/dist/utils/css/utils.d.ts +0 -1
- package/dist/utils/css/utils.js +0 -10
- package/dist/utils/css/utils.js.map +0 -7
- package/dist/utils/debounce.d.ts +0 -11
- package/dist/utils/debounce.js +0 -13
- package/dist/utils/debounce.js.map +0 -7
- package/dist/utils/dom/ancestors.d.ts +0 -8
- package/dist/utils/dom/ancestors.js +0 -15
- package/dist/utils/dom/ancestors.js.map +0 -7
- package/dist/utils/dom/createElement.d.ts +0 -33
- package/dist/utils/dom/createElement.js +0 -27
- package/dist/utils/dom/createElement.js.map +0 -7
- package/dist/utils/dom/index.d.ts +0 -2
- package/dist/utils/dom/index.js +0 -8
- package/dist/utils/dom/index.js.map +0 -7
- package/dist/utils/getComponentResolver.d.ts +0 -7
- package/dist/utils/getComponentResolver.js +0 -16
- package/dist/utils/getComponentResolver.js.map +0 -7
- package/dist/utils/has.d.ts +0 -4
- package/dist/utils/has.js +0 -7
- package/dist/utils/has.js.map +0 -7
- package/dist/utils/index.js.map +0 -7
- package/dist/utils/keyCodes.d.ts +0 -13
- package/dist/utils/keyCodes.js +0 -14
- package/dist/utils/keyCodes.js.map +0 -7
- package/dist/utils/loadElement.d.ts +0 -47
- package/dist/utils/loadElement.js +0 -33
- package/dist/utils/loadElement.js.map +0 -7
- package/dist/utils/math/clamp.d.ts +0 -5
- package/dist/utils/math/clamp.js +0 -7
- package/dist/utils/math/clamp.js.map +0 -7
- package/dist/utils/math/clamp01.d.ts +0 -5
- package/dist/utils/math/clamp01.js +0 -8
- package/dist/utils/math/clamp01.js.map +0 -7
- package/dist/utils/math/createEases.d.ts +0 -23
- package/dist/utils/math/createEases.js +0 -11
- package/dist/utils/math/createEases.js.map +0 -7
- package/dist/utils/math/createRange.d.ts +0 -5
- package/dist/utils/math/createRange.js +0 -13
- package/dist/utils/math/createRange.js.map +0 -7
- package/dist/utils/math/damp.d.ts +0 -11
- package/dist/utils/math/damp.js +0 -7
- package/dist/utils/math/damp.js.map +0 -7
- package/dist/utils/math/ease.d.ts +0 -71
- package/dist/utils/math/ease.js +0 -62
- package/dist/utils/math/ease.js.map +0 -7
- package/dist/utils/math/fold.d.ts +0 -5
- package/dist/utils/math/fold.js +0 -14
- package/dist/utils/math/fold.js.map +0 -7
- package/dist/utils/math/index.d.ts +0 -16
- package/dist/utils/math/index.js +0 -80
- package/dist/utils/math/index.js.map +0 -7
- package/dist/utils/math/inertiaFinalValue.d.ts +0 -10
- package/dist/utils/math/inertiaFinalValue.js +0 -15
- package/dist/utils/math/inertiaFinalValue.js.map +0 -7
- package/dist/utils/math/lerp.d.ts +0 -10
- package/dist/utils/math/lerp.js +0 -7
- package/dist/utils/math/lerp.js.map +0 -7
- package/dist/utils/math/map.d.ts +0 -12
- package/dist/utils/math/map.js +0 -7
- package/dist/utils/math/map.js.map +0 -7
- package/dist/utils/math/mean.d.ts +0 -4
- package/dist/utils/math/mean.js +0 -17
- package/dist/utils/math/mean.js.map +0 -7
- package/dist/utils/math/round.d.ts +0 -9
- package/dist/utils/math/round.js +0 -7
- package/dist/utils/math/round.js.map +0 -7
- package/dist/utils/math/smoothTo.d.ts +0 -69
- package/dist/utils/math/smoothTo.js +0 -56
- package/dist/utils/math/smoothTo.js.map +0 -7
- package/dist/utils/math/spring.d.ts +0 -13
- package/dist/utils/math/spring.js +0 -11
- package/dist/utils/math/spring.js.map +0 -7
- package/dist/utils/math/wrap.d.ts +0 -5
- package/dist/utils/math/wrap.js +0 -11
- package/dist/utils/math/wrap.js.map +0 -7
- package/dist/utils/memoize.d.ts +0 -21
- package/dist/utils/memoize.js +0 -26
- package/dist/utils/memoize.js.map +0 -7
- package/dist/utils/nextFrame.d.ts +0 -8
- package/dist/utils/nextFrame.js +0 -12
- package/dist/utils/nextFrame.js.map +0 -7
- package/dist/utils/nextMicrotask.d.ts +0 -8
- package/dist/utils/nextMicrotask.js +0 -8
- package/dist/utils/nextMicrotask.js.map +0 -7
- package/dist/utils/nextTick.d.ts +0 -8
- package/dist/utils/nextTick.js +0 -9
- package/dist/utils/nextTick.js.map +0 -7
- package/dist/utils/object/getAllProperties.d.ts +0 -11
- package/dist/utils/object/getAllProperties.js +0 -19
- package/dist/utils/object/getAllProperties.js.map +0 -7
- package/dist/utils/scheduler.d.ts +0 -15
- package/dist/utils/scheduler.js +0 -53
- package/dist/utils/scheduler.js.map +0 -7
- package/dist/utils/storage/createLocalStorageProvider.d.ts +0 -2
- package/dist/utils/storage/createLocalStorageProvider.js +0 -32
- package/dist/utils/storage/createLocalStorageProvider.js.map +0 -7
- package/dist/utils/storage/createMemoryStorageProvider.d.ts +0 -2
- package/dist/utils/storage/createMemoryStorageProvider.js +0 -27
- package/dist/utils/storage/createMemoryStorageProvider.js.map +0 -7
- package/dist/utils/storage/createNoopProvider.d.ts +0 -2
- package/dist/utils/storage/createNoopProvider.js +0 -23
- package/dist/utils/storage/createNoopProvider.js.map +0 -7
- package/dist/utils/storage/createSessionStorageProvider.d.ts +0 -2
- package/dist/utils/storage/createSessionStorageProvider.js +0 -31
- package/dist/utils/storage/createSessionStorageProvider.js.map +0 -7
- package/dist/utils/storage/createStorage.d.ts +0 -2
- package/dist/utils/storage/createStorage.js +0 -96
- package/dist/utils/storage/createStorage.js.map +0 -7
- package/dist/utils/storage/createUrlSearchParamsInHashProvider.d.ts +0 -2
- package/dist/utils/storage/createUrlSearchParamsInHashProvider.js +0 -57
- package/dist/utils/storage/createUrlSearchParamsInHashProvider.js.map +0 -7
- package/dist/utils/storage/createUrlSearchParamsProvider.d.ts +0 -2
- package/dist/utils/storage/createUrlSearchParamsProvider.js +0 -41
- package/dist/utils/storage/createUrlSearchParamsProvider.js.map +0 -7
- package/dist/utils/storage/getBrowserContext.d.ts +0 -1
- package/dist/utils/storage/getBrowserContext.js +0 -17
- package/dist/utils/storage/getBrowserContext.js.map +0 -7
- package/dist/utils/storage/getGlobalStorage.d.ts +0 -1
- package/dist/utils/storage/getGlobalStorage.js +0 -7
- package/dist/utils/storage/getGlobalStorage.js.map +0 -7
- package/dist/utils/storage/getStorageKeys.d.ts +0 -1
- package/dist/utils/storage/getStorageKeys.js +0 -12
- package/dist/utils/storage/getStorageKeys.js.map +0 -7
- package/dist/utils/storage/index.d.ts +0 -8
- package/dist/utils/storage/index.js +0 -62
- package/dist/utils/storage/index.js.map +0 -7
- package/dist/utils/storage/providers.d.ts +0 -11
- package/dist/utils/storage/providers.js +0 -30
- package/dist/utils/storage/providers.js.map +0 -7
- package/dist/utils/storage/serializers.d.ts +0 -2
- package/dist/utils/storage/serializers.js +0 -14
- package/dist/utils/storage/serializers.js.map +0 -7
- package/dist/utils/storage/types.d.ts +0 -33
- package/dist/utils/storage/types.js +0 -1
- package/dist/utils/storage/types.js.map +0 -7
- package/dist/utils/storage.d.ts +0 -1
- package/dist/utils/storage.js +0 -37
- package/dist/utils/storage.js.map +0 -7
- package/dist/utils/string/changeCase.d.ts +0 -30
- package/dist/utils/string/changeCase.js +0 -47
- package/dist/utils/string/changeCase.js.map +0 -7
- package/dist/utils/string/endsWith.d.ts +0 -9
- package/dist/utils/string/endsWith.js +0 -13
- package/dist/utils/string/endsWith.js.map +0 -7
- package/dist/utils/string/index.d.ts +0 -13
- package/dist/utils/string/index.js +0 -34
- package/dist/utils/string/index.js.map +0 -7
- package/dist/utils/string/startsWith.d.ts +0 -9
- package/dist/utils/string/startsWith.js +0 -13
- package/dist/utils/string/startsWith.js.map +0 -7
- package/dist/utils/string/withLeadingCharacters.d.ts +0 -9
- package/dist/utils/string/withLeadingCharacters.js +0 -8
- package/dist/utils/string/withLeadingCharacters.js.map +0 -7
- package/dist/utils/string/withLeadingSlash.d.ts +0 -8
- package/dist/utils/string/withLeadingSlash.js +0 -8
- package/dist/utils/string/withLeadingSlash.js.map +0 -7
- package/dist/utils/string/withTrailingCharacters.d.ts +0 -9
- package/dist/utils/string/withTrailingCharacters.js +0 -8
- package/dist/utils/string/withTrailingCharacters.js.map +0 -7
- package/dist/utils/string/withTrailingSlash.d.ts +0 -8
- package/dist/utils/string/withTrailingSlash.js +0 -8
- package/dist/utils/string/withTrailingSlash.js.map +0 -7
- package/dist/utils/string/withoutLeadingCharacters.d.ts +0 -9
- package/dist/utils/string/withoutLeadingCharacters.js +0 -7
- package/dist/utils/string/withoutLeadingCharacters.js.map +0 -7
- package/dist/utils/string/withoutLeadingCharactersRecursive.d.ts +0 -9
- package/dist/utils/string/withoutLeadingCharactersRecursive.js +0 -13
- package/dist/utils/string/withoutLeadingCharactersRecursive.js.map +0 -7
- package/dist/utils/string/withoutLeadingSlash.d.ts +0 -8
- package/dist/utils/string/withoutLeadingSlash.js +0 -8
- package/dist/utils/string/withoutLeadingSlash.js.map +0 -7
- package/dist/utils/string/withoutTrailingCharacters.d.ts +0 -9
- package/dist/utils/string/withoutTrailingCharacters.js +0 -7
- package/dist/utils/string/withoutTrailingCharacters.js.map +0 -7
- package/dist/utils/string/withoutTrailingCharactersRecursive.d.ts +0 -9
- package/dist/utils/string/withoutTrailingCharactersRecursive.js +0 -13
- package/dist/utils/string/withoutTrailingCharactersRecursive.js.map +0 -7
- package/dist/utils/string/withoutTrailingSlash.d.ts +0 -8
- package/dist/utils/string/withoutTrailingSlash.js +0 -8
- package/dist/utils/string/withoutTrailingSlash.js.map +0 -7
- package/dist/utils/throttle.d.ts +0 -9
- package/dist/utils/throttle.js +0 -15
- package/dist/utils/throttle.js.map +0 -7
- package/dist/utils/trapFocus.d.ts +0 -17
- package/dist/utils/trapFocus.js +0 -57
- package/dist/utils/trapFocus.js.map +0 -7
- package/dist/utils/tween.d.ts +0 -83
- package/dist/utils/tween.js +0 -119
- package/dist/utils/tween.js.map +0 -7
- package/dist/utils/wait.d.ts +0 -1
- package/dist/utils/wait.js +0 -9
- package/dist/utils/wait.js.map +0 -7
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -5
- package/dist/version.js.map +0 -7
package/dist/autoload/runtime.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { autoload } from "./autoload.js";
|
|
2
|
-
import { version } from "../version.js";
|
|
3
|
-
const PACKAGE_NAME = "@studiometa/js-toolkit";
|
|
4
|
-
const RUNTIME_KEY = Symbol.for("@studiometa/js-toolkit/autoload/runtime");
|
|
5
|
-
const DIAGNOSTIC_PREFIX = "[@studiometa/js-toolkit/autoload]";
|
|
6
|
-
const EAGER_META_SELECTOR = 'meta[name="js-toolkit:eager"]';
|
|
7
|
-
function resolveOptions(options) {
|
|
8
|
-
const documentObject = options.document ?? document;
|
|
9
|
-
return {
|
|
10
|
-
documentObject,
|
|
11
|
-
globalObject: options.globalObject ?? globalThis,
|
|
12
|
-
version: options.version ?? version,
|
|
13
|
-
root: options.root ?? documentObject,
|
|
14
|
-
dependencies: options.dependencies,
|
|
15
|
-
logger: options.console ?? console,
|
|
16
|
-
scheduleMicrotask: options.scheduleMicrotask ?? ((callback) => queueMicrotask(callback))
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function readEagerTokens(documentObject) {
|
|
20
|
-
const metas = [...documentObject.querySelectorAll(EAGER_META_SELECTOR)];
|
|
21
|
-
return [
|
|
22
|
-
...new Set(
|
|
23
|
-
metas.flatMap((meta) => (meta.getAttribute("content") ?? "").split(",")).map((token) => token.trim()).filter(Boolean)
|
|
24
|
-
)
|
|
25
|
-
];
|
|
26
|
-
}
|
|
27
|
-
function ensureRuntime(resolved) {
|
|
28
|
-
const host = resolved.globalObject;
|
|
29
|
-
const existing = host[RUNTIME_KEY];
|
|
30
|
-
if (existing) {
|
|
31
|
-
if (existing.packageName === PACKAGE_NAME && existing.version === resolved.version) {
|
|
32
|
-
return existing;
|
|
33
|
-
}
|
|
34
|
-
resolved.logger.warn(
|
|
35
|
-
`${DIAGNOSTIC_PREFIX} A conflicting runtime (version ${existing.version}) is already active; version ${resolved.version} was ignored.`
|
|
36
|
-
);
|
|
37
|
-
return void 0;
|
|
38
|
-
}
|
|
39
|
-
const runtime = {
|
|
40
|
-
packageName: PACKAGE_NAME,
|
|
41
|
-
version: resolved.version,
|
|
42
|
-
manifests: [],
|
|
43
|
-
pending: false
|
|
44
|
-
};
|
|
45
|
-
host[RUNTIME_KEY] = runtime;
|
|
46
|
-
return runtime;
|
|
47
|
-
}
|
|
48
|
-
function flushStart(runtime) {
|
|
49
|
-
runtime.pending = false;
|
|
50
|
-
const resolved = runtime.__pendingOptions;
|
|
51
|
-
if (!resolved) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
const manifests = [...runtime.manifests];
|
|
55
|
-
const eager = readEagerTokens(resolved.documentObject);
|
|
56
|
-
runtime.handle?.stop();
|
|
57
|
-
runtime.handle = autoload({
|
|
58
|
-
manifests,
|
|
59
|
-
root: resolved.root,
|
|
60
|
-
eager,
|
|
61
|
-
dependencies: {
|
|
62
|
-
document: resolved.documentObject,
|
|
63
|
-
diagnosticPrefix: DIAGNOSTIC_PREFIX,
|
|
64
|
-
...resolved.dependencies
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function scheduleStart(runtime, resolved) {
|
|
69
|
-
runtime.__pendingOptions = resolved;
|
|
70
|
-
if (runtime.pending) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
runtime.pending = true;
|
|
74
|
-
resolved.scheduleMicrotask(() => flushStart(runtime));
|
|
75
|
-
}
|
|
76
|
-
function registerManifest(manifest, options = {}) {
|
|
77
|
-
const resolved = resolveOptions(options);
|
|
78
|
-
const runtime = ensureRuntime(resolved);
|
|
79
|
-
if (!runtime) {
|
|
80
|
-
return void 0;
|
|
81
|
-
}
|
|
82
|
-
if (!runtime.manifests.includes(manifest)) {
|
|
83
|
-
runtime.manifests.push(manifest);
|
|
84
|
-
}
|
|
85
|
-
scheduleStart(runtime, resolved);
|
|
86
|
-
return runtime;
|
|
87
|
-
}
|
|
88
|
-
function registerManifests(...manifests) {
|
|
89
|
-
let runtime;
|
|
90
|
-
for (const manifest of manifests) {
|
|
91
|
-
runtime = registerManifest(manifest);
|
|
92
|
-
}
|
|
93
|
-
return runtime;
|
|
94
|
-
}
|
|
95
|
-
export {
|
|
96
|
-
readEagerTokens,
|
|
97
|
-
registerManifest,
|
|
98
|
-
registerManifests
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=runtime.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/js-toolkit/autoload/runtime.ts"],
|
|
4
|
-
"sourcesContent": ["import { autoload, type AutoloadHandle } from './autoload.js';\nimport type { LoaderDependencies } from './loader.js';\nimport type { ComponentManifest } from './types.js';\nimport { version } from '../version.js';\n\n/** The identity every copy of this package advertises on the shared global runtime. */\nconst PACKAGE_NAME = '@studiometa/js-toolkit';\n/**\n * The `globalThis` key the shared runtime is stored under. `Symbol.for` guarantees the same symbol\n * across module graphs and bundle copies, so multiple side-effect entries \u2014 even from duplicated\n * copies of this package \u2014 coordinate through a single runtime object.\n */\nconst RUNTIME_KEY = Symbol.for('@studiometa/js-toolkit/autoload/runtime');\n/** The prefix prepended to every diagnostic message emitted by the shared runtime. */\nconst DIAGNOSTIC_PREFIX = '[@studiometa/js-toolkit/autoload]';\n/** The `<meta>` element carrying the comma-separated list of tokens to mount eagerly. */\nconst EAGER_META_SELECTOR = 'meta[name=\"js-toolkit:eager\"]';\n\n/** Options accepted by {@link registerManifest}; every seam is optional and testability-oriented. */\nexport interface RegisterManifestOptions {\n /** The document to scan and to read the eager `<meta>` from. Defaults to the global `document`. */\n document?: Document;\n /** The object the shared runtime is stored on. Defaults to `globalThis`. */\n globalObject?: object;\n /** The identity used by the duplicate/conflict guard. Defaults to this package's version. */\n version?: string;\n /** The DOM scope handed to the loader. Defaults to the resolved document. */\n root?: Document | Element;\n /** Loader dependency-injection seams, forwarded to {@link autoload}. */\n dependencies?: Partial<LoaderDependencies>;\n /** The logger used by the duplicate/conflict guard. Defaults to the global `console`. */\n console?: Pick<Console, 'warn'>;\n /** Schedules the single coalesced start. Defaults to `queueMicrotask`. */\n scheduleMicrotask?: (callback: () => void) => void;\n}\n\n/** The shared, cross-copy runtime object stored on `globalThis` under {@link RUNTIME_KEY}. */\nexport interface AutoloadRuntime {\n /** The owning package name, used by the conflict guard. */\n readonly packageName: typeof PACKAGE_NAME;\n /** The version that first claimed this runtime; conflicting versions are ignored. */\n readonly version: string;\n /** Every manifest registered so far, in registration order. */\n manifests: ComponentManifest[];\n /** The active autoload handle, present once a start has flushed. */\n handle?: AutoloadHandle;\n /** True while a (re)start is scheduled through a microtask but has not flushed yet. */\n pending: boolean;\n /**\n * The resolved options for the next flush. The freshest registration wins so a late import can\n * refresh the document/root before the coalesced start runs.\n *\n * @private\n */\n __pendingOptions?: ResolvedOptions;\n}\n\ninterface ResolvedOptions {\n documentObject: Document;\n globalObject: object;\n version: string;\n root: Document | Element;\n dependencies?: Partial<LoaderDependencies>;\n logger: Pick<Console, 'warn'>;\n scheduleMicrotask: (callback: () => void) => void;\n}\n\nfunction resolveOptions(options: RegisterManifestOptions): ResolvedOptions {\n const documentObject = options.document ?? document;\n return {\n documentObject,\n globalObject: options.globalObject ?? globalThis,\n version: options.version ?? version,\n root: options.root ?? documentObject,\n dependencies: options.dependencies,\n logger: options.console ?? console,\n scheduleMicrotask: options.scheduleMicrotask ?? ((callback) => queueMicrotask(callback)),\n };\n}\n\n/**\n * Read the eager tokens declared by `<meta name=\"js-toolkit:eager\" content=\"A, B, C\">`.\n *\n * The `content` values of every matching meta (in document order) are concatenated, split on\n * commas, trimmed, stripped of empties and deduplicated. When no such meta exists the list is\n * empty.\n */\nexport function readEagerTokens(documentObject: Document): string[] {\n const metas = [...documentObject.querySelectorAll(EAGER_META_SELECTOR)];\n return [\n ...new Set(\n metas\n .flatMap((meta) => (meta.getAttribute('content') ?? '').split(','))\n .map((token) => token.trim())\n .filter(Boolean),\n ),\n ];\n}\n\nfunction ensureRuntime(resolved: ResolvedOptions): AutoloadRuntime | undefined {\n const host = resolved.globalObject as Record<PropertyKey, unknown>;\n const existing = host[RUNTIME_KEY] as AutoloadRuntime | undefined;\n if (existing) {\n if (existing.packageName === PACKAGE_NAME && existing.version === resolved.version) {\n return existing;\n }\n\n resolved.logger.warn(\n `${DIAGNOSTIC_PREFIX} A conflicting runtime (version ${existing.version}) is already active; version ${resolved.version} was ignored.`,\n );\n return undefined;\n }\n\n const runtime: AutoloadRuntime = {\n packageName: PACKAGE_NAME,\n version: resolved.version,\n manifests: [],\n pending: false,\n };\n host[RUNTIME_KEY] = runtime;\n return runtime;\n}\n\nfunction flushStart(runtime: AutoloadRuntime): void {\n runtime.pending = false;\n const resolved = runtime.__pendingOptions;\n if (!resolved) {\n return;\n }\n\n const manifests = [...runtime.manifests];\n const eager = readEagerTokens(resolved.documentObject);\n\n // A previous flush may already have produced a loader when a manifest is registered late (after\n // the coalescing microtask fired). Stop it and start a fresh loader over the accumulated set:\n // js-toolkit's `$register` reuses the instance already mounted on an element, so re-scanning never\n // double-mounts, while a single active loader keeps exactly one MutationObserver on the DOM.\n runtime.handle?.stop();\n runtime.handle = autoload({\n manifests,\n root: resolved.root,\n eager,\n dependencies: {\n document: resolved.documentObject,\n diagnosticPrefix: DIAGNOSTIC_PREFIX,\n ...resolved.dependencies,\n },\n });\n}\n\nfunction scheduleStart(runtime: AutoloadRuntime, resolved: ResolvedOptions): void {\n // The freshest registration wins so a late import can refresh the document/root before the flush.\n runtime.__pendingOptions = resolved;\n if (runtime.pending) {\n return;\n }\n runtime.pending = true;\n resolved.scheduleMicrotask(() => flushStart(runtime));\n}\n\n/**\n * Register a component manifest with the shared runtime and ensure the autoloader starts.\n *\n * This is the shared engine behind side-effect entries that activate a manifest. It is safe to call\n * from several entries and several bundle copies at once:\n *\n * - The first registration schedules a single start through a microtask. Because every ES module\n * import in a graph evaluates before microtasks flush, importing several manifest-activating\n * entries at the top of a module registers every manifest synchronously and results in exactly\n * ONE {@link autoload} call over the COMPOSED set \u2014 never two loaders both scanning the DOM.\n * - A manifest registered after the start already fired is not dropped: it triggers a fresh start\n * over the accumulated manifests. The previous loader is stopped first, so a single loader stays\n * active, and js-toolkit's idempotent `$register` prevents any double-mount.\n * - A conflicting activation \u2014 a different {@link RegisterManifestOptions.version} claiming an\n * already-owned runtime \u2014 warns and no-ops.\n *\n * Returns the shared runtime, or `undefined` when a conflicting version already owns it.\n */\nexport function registerManifest(\n manifest: ComponentManifest,\n options: RegisterManifestOptions = {},\n): AutoloadRuntime | undefined {\n const resolved = resolveOptions(options);\n const runtime = ensureRuntime(resolved);\n if (!runtime) {\n return undefined;\n }\n\n if (!runtime.manifests.includes(manifest)) {\n runtime.manifests.push(manifest);\n }\n scheduleStart(runtime, resolved);\n return runtime;\n}\n\n/**\n * Register several manifests with the shared runtime in order, then let the single coalesced start\n * flush over the composed set.\n *\n * This is the convenience wrapper an app uses to layer its own components on top of the packaged\n * ones: `registerManifests(baseManifest, custom)`. Because {@link registerManifest} pushes each\n * manifest onto the shared runtime in call order and the loader composes them later-wins, the LAST\n * manifest wins on token collisions \u2014 so a custom manifest passed last can override any component\n * that shares a token.\n *\n * Returns the shared runtime from the final registration, or `undefined` when a conflicting version\n * already owns the runtime (or when no manifest was passed).\n */\nexport function registerManifests(...manifests: ComponentManifest[]): AutoloadRuntime | undefined {\n let runtime: AutoloadRuntime | undefined;\n for (const manifest of manifests) {\n runtime = registerManifest(manifest);\n }\n return runtime;\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,gBAAqC;AAG9C,SAAS,eAAe;AAGxB,MAAM,eAAe;AAMrB,MAAM,cAAc,OAAO,IAAI,yCAAyC;AAExE,MAAM,oBAAoB;AAE1B,MAAM,sBAAsB;AAmD5B,SAAS,eAAe,SAAmD;AACzE,QAAM,iBAAiB,QAAQ,YAAY;AAC3C,SAAO;AAAA,IACL;AAAA,IACA,cAAc,QAAQ,gBAAgB;AAAA,IACtC,SAAS,QAAQ,WAAW;AAAA,IAC5B,MAAM,QAAQ,QAAQ;AAAA,IACtB,cAAc,QAAQ;AAAA,IACtB,QAAQ,QAAQ,WAAW;AAAA,IAC3B,mBAAmB,QAAQ,sBAAsB,CAAC,aAAa,eAAe,QAAQ;AAAA,EACxF;AACF;AASO,SAAS,gBAAgB,gBAAoC;AAClE,QAAM,QAAQ,CAAC,GAAG,eAAe,iBAAiB,mBAAmB,CAAC;AACtE,SAAO;AAAA,IACL,GAAG,IAAI;AAAA,MACL,MACG,QAAQ,CAAC,UAAU,KAAK,aAAa,SAAS,KAAK,IAAI,MAAM,GAAG,CAAC,EACjE,IAAI,CAAC,UAAU,MAAM,KAAK,CAAC,EAC3B,OAAO,OAAO;AAAA,IACnB;AAAA,EACF;AACF;AAEA,SAAS,cAAc,UAAwD;AAC7E,QAAM,OAAO,SAAS;AACtB,QAAM,WAAW,KAAK,WAAW;AACjC,MAAI,UAAU;AACZ,QAAI,SAAS,gBAAgB,gBAAgB,SAAS,YAAY,SAAS,SAAS;AAClF,aAAO;AAAA,IACT;AAEA,aAAS,OAAO;AAAA,MACd,GAAG,iBAAiB,mCAAmC,SAAS,OAAO,gCAAgC,SAAS,OAAO;AAAA,IACzH;AACA,WAAO;AAAA,EACT;AAEA,QAAM,UAA2B;AAAA,IAC/B,aAAa;AAAA,IACb,SAAS,SAAS;AAAA,IAClB,WAAW,CAAC;AAAA,IACZ,SAAS;AAAA,EACX;AACA,OAAK,WAAW,IAAI;AACpB,SAAO;AACT;AAEA,SAAS,WAAW,SAAgC;AAClD,UAAQ,UAAU;AAClB,QAAM,WAAW,QAAQ;AACzB,MAAI,CAAC,UAAU;AACb;AAAA,EACF;AAEA,QAAM,YAAY,CAAC,GAAG,QAAQ,SAAS;AACvC,QAAM,QAAQ,gBAAgB,SAAS,cAAc;AAMrD,UAAQ,QAAQ,KAAK;AACrB,UAAQ,SAAS,SAAS;AAAA,IACxB;AAAA,IACA,MAAM,SAAS;AAAA,IACf;AAAA,IACA,cAAc;AAAA,MACZ,UAAU,SAAS;AAAA,MACnB,kBAAkB;AAAA,MAClB,GAAG,SAAS;AAAA,IACd;AAAA,EACF,CAAC;AACH;AAEA,SAAS,cAAc,SAA0B,UAAiC;AAEhF,UAAQ,mBAAmB;AAC3B,MAAI,QAAQ,SAAS;AACnB;AAAA,EACF;AACA,UAAQ,UAAU;AAClB,WAAS,kBAAkB,MAAM,WAAW,OAAO,CAAC;AACtD;AAoBO,SAAS,iBACd,UACA,UAAmC,CAAC,GACP;AAC7B,QAAM,WAAW,eAAe,OAAO;AACvC,QAAM,UAAU,cAAc,QAAQ;AACtC,MAAI,CAAC,SAAS;AACZ,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,QAAQ,UAAU,SAAS,QAAQ,GAAG;AACzC,YAAQ,UAAU,KAAK,QAAQ;AAAA,EACjC;AACA,gBAAc,SAAS,QAAQ;AAC/B,SAAO;AACT;AAeO,SAAS,qBAAqB,WAA6D;AAChG,MAAI;AACJ,aAAW,YAAY,WAAW;AAChC,cAAU,iBAAiB,QAAQ;AAAA,EACrC;AACA,SAAO;AACT;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/autoload/types.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { BaseConstructor } from '../Base/Base.js';
|
|
2
|
-
/**
|
|
3
|
-
* The load strategy that controls when a component's constructor is imported and registered.
|
|
4
|
-
*
|
|
5
|
-
* These four values are deliberately richer than a plain eager/lazy split: `eager` loads
|
|
6
|
-
* immediately, while `visible`, `idle` and `interaction` defer the import until the matching
|
|
7
|
-
* browser signal fires. A `data-load` attribute may override the default per element.
|
|
8
|
-
*/
|
|
9
|
-
export type ComponentLoadStrategy = 'eager' | 'visible' | 'idle' | 'interaction';
|
|
10
|
-
/**
|
|
11
|
-
* A single entry of a component manifest: everything the loader needs to discover a
|
|
12
|
-
* `data-component` token and load its constructor on demand.
|
|
13
|
-
*/
|
|
14
|
-
export interface ComponentManifestEntry {
|
|
15
|
-
/** The `data-component` token that identifies this component in the DOM. */
|
|
16
|
-
token: string;
|
|
17
|
-
/**
|
|
18
|
-
* The npm package the component is exported from. Optional informational metadata: the loader
|
|
19
|
-
* never reads it, so hand-authored or helper-built manifests may omit it.
|
|
20
|
-
*/
|
|
21
|
-
packageName?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The package subpath the component is exported from. Optional informational metadata never read
|
|
24
|
-
* by the loader.
|
|
25
|
-
*/
|
|
26
|
-
subpath?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The named export resolved by {@link ComponentManifestEntry.load}. Optional informational
|
|
29
|
-
* metadata never read by the loader.
|
|
30
|
-
*/
|
|
31
|
-
exportName?: string;
|
|
32
|
-
/** The default load strategy for this component, overridable per element with `data-load`. */
|
|
33
|
-
strategy: ComponentLoadStrategy;
|
|
34
|
-
/**
|
|
35
|
-
* A grouping key shared by every component of the same family. Optional informational metadata
|
|
36
|
-
* never read by the loader.
|
|
37
|
-
*/
|
|
38
|
-
group?: string;
|
|
39
|
-
/** The tokens of the constructor's configured child components, for recursive registration. */
|
|
40
|
-
children?: readonly string[];
|
|
41
|
-
/** Stylesheet paths associated with this component (informational). */
|
|
42
|
-
styles?: readonly string[];
|
|
43
|
-
/** Optional integration keys associated with this component (informational). */
|
|
44
|
-
integrations?: readonly string[];
|
|
45
|
-
/** Imports and resolves the component's `Base` constructor. */
|
|
46
|
-
load: () => Promise<BaseConstructor>;
|
|
47
|
-
}
|
|
48
|
-
/** A map of `data-component` tokens to their manifest entries. */
|
|
49
|
-
export type ComponentManifest = Record<string, ComponentManifestEntry>;
|
package/dist/autoload/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export { withBreakpointManager } from './withBreakpointManager.js';
|
|
2
|
-
export { withBreakpointObserver, type WithBreakpointObserverInterface, type WithBreakpointObserverProps, } from './withBreakpointObserver.js';
|
|
3
|
-
export { withDrag, type DragDecoratorOptions, type WithDragInterface } from './withDrag.js';
|
|
4
|
-
export { withExtraConfig } from './withExtraConfig.js';
|
|
5
|
-
export { withFreezedOptions, type WithFreezedOptionsInterface } from './withFreezedOptions.js';
|
|
6
|
-
export { withIntersectionObserver, type WithIntersectionObserverInterface, type WithIntersectionObserverProps, } from './withIntersectionObserver.js';
|
|
7
|
-
export { withMountOnMediaQuery, type withMountOnMediaQueryInterface, type withMountOnMediaQueryProps, } from './withMountOnMediaQuery.js';
|
|
8
|
-
export { withMountWhenInView, type WithMountWhenInViewInterface, type WithMountWhenInViewProps, } from './withMountWhenInView.js';
|
|
9
|
-
export { withMountWhenPrefersMotion } from './withMountWhenPrefersMotion.js';
|
|
10
|
-
export { withMutation, type MutationDecoratorOptions, type WithMutationInterface, } from './withMutation.js';
|
|
11
|
-
export { withName } from './withName.js';
|
|
12
|
-
export { withRelativePointer, type RelativePointerDecoratorOptions, type RelativePointerInterface, } from './withRelativePointer.js';
|
|
13
|
-
export { withResponsiveOptions } from './withResponsiveOptions.js';
|
|
14
|
-
export { withScrolledInView, type NormalizedOffset, type OffsetValue, type ScrollInViewProps, type WithScrolledInViewInterface, type WithScrolledInViewOptions, type WithScrolledInViewProps, } from './withScrolledInView/index.js';
|
|
15
|
-
export { getScopedGroups, withGroup, type WithGroupInterface, type WithGroupOptions, type WithGroupProps, } from './withGroup.js';
|
package/dist/decorators/index.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { withBreakpointManager } from "./withBreakpointManager.js";
|
|
2
|
-
import {
|
|
3
|
-
withBreakpointObserver
|
|
4
|
-
} from "./withBreakpointObserver.js";
|
|
5
|
-
import { withDrag } from "./withDrag.js";
|
|
6
|
-
import { withExtraConfig } from "./withExtraConfig.js";
|
|
7
|
-
import { withFreezedOptions } from "./withFreezedOptions.js";
|
|
8
|
-
import {
|
|
9
|
-
withIntersectionObserver
|
|
10
|
-
} from "./withIntersectionObserver.js";
|
|
11
|
-
import {
|
|
12
|
-
withMountOnMediaQuery
|
|
13
|
-
} from "./withMountOnMediaQuery.js";
|
|
14
|
-
import {
|
|
15
|
-
withMountWhenInView
|
|
16
|
-
} from "./withMountWhenInView.js";
|
|
17
|
-
import { withMountWhenPrefersMotion } from "./withMountWhenPrefersMotion.js";
|
|
18
|
-
import {
|
|
19
|
-
withMutation
|
|
20
|
-
} from "./withMutation.js";
|
|
21
|
-
import { withName } from "./withName.js";
|
|
22
|
-
import {
|
|
23
|
-
withRelativePointer
|
|
24
|
-
} from "./withRelativePointer.js";
|
|
25
|
-
import { withResponsiveOptions } from "./withResponsiveOptions.js";
|
|
26
|
-
import {
|
|
27
|
-
withScrolledInView
|
|
28
|
-
} from "./withScrolledInView/index.js";
|
|
29
|
-
import {
|
|
30
|
-
getScopedGroups,
|
|
31
|
-
withGroup
|
|
32
|
-
} from "./withGroup.js";
|
|
33
|
-
export {
|
|
34
|
-
getScopedGroups,
|
|
35
|
-
withBreakpointManager,
|
|
36
|
-
withBreakpointObserver,
|
|
37
|
-
withDrag,
|
|
38
|
-
withExtraConfig,
|
|
39
|
-
withFreezedOptions,
|
|
40
|
-
withGroup,
|
|
41
|
-
withIntersectionObserver,
|
|
42
|
-
withMountOnMediaQuery,
|
|
43
|
-
withMountWhenInView,
|
|
44
|
-
withMountWhenPrefersMotion,
|
|
45
|
-
withMutation,
|
|
46
|
-
withName,
|
|
47
|
-
withRelativePointer,
|
|
48
|
-
withResponsiveOptions,
|
|
49
|
-
withScrolledInView
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/js-toolkit/decorators/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { withBreakpointManager } from './withBreakpointManager.js';\nexport {\n withBreakpointObserver,\n type WithBreakpointObserverInterface,\n type WithBreakpointObserverProps,\n} from './withBreakpointObserver.js';\nexport { withDrag, type DragDecoratorOptions, type WithDragInterface } from './withDrag.js';\nexport { withExtraConfig } from './withExtraConfig.js';\nexport { withFreezedOptions, type WithFreezedOptionsInterface } from './withFreezedOptions.js';\nexport {\n withIntersectionObserver,\n type WithIntersectionObserverInterface,\n type WithIntersectionObserverProps,\n} from './withIntersectionObserver.js';\nexport {\n withMountOnMediaQuery,\n type withMountOnMediaQueryInterface,\n type withMountOnMediaQueryProps,\n} from './withMountOnMediaQuery.js';\nexport {\n withMountWhenInView,\n type WithMountWhenInViewInterface,\n type WithMountWhenInViewProps,\n} from './withMountWhenInView.js';\nexport { withMountWhenPrefersMotion } from './withMountWhenPrefersMotion.js';\nexport {\n withMutation,\n type MutationDecoratorOptions,\n type WithMutationInterface,\n} from './withMutation.js';\nexport { withName } from './withName.js';\nexport {\n withRelativePointer,\n type RelativePointerDecoratorOptions,\n type RelativePointerInterface,\n} from './withRelativePointer.js';\nexport { withResponsiveOptions } from './withResponsiveOptions.js';\nexport {\n withScrolledInView,\n type NormalizedOffset,\n type OffsetValue,\n type ScrollInViewProps,\n type WithScrolledInViewInterface,\n type WithScrolledInViewOptions,\n type WithScrolledInViewProps,\n} from './withScrolledInView/index.js';\nexport {\n getScopedGroups,\n withGroup,\n type WithGroupInterface,\n type WithGroupOptions,\n type WithGroupProps,\n} from './withGroup.js';\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,OAGK;AACP,SAAS,gBAAmE;AAC5E,SAAS,uBAAuB;AAChC,SAAS,0BAA4D;AACrE;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP;AAAA,EACE;AAAA,OAGK;AACP,SAAS,kCAAkC;AAC3C;AAAA,EACE;AAAA,OAGK;AACP,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,OAGK;AACP,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,OAOK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Base, BaseConstructor } from '../Base/Base.js';
|
|
2
|
-
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
|
|
3
|
-
/**
|
|
4
|
-
* BreakpointManager class.
|
|
5
|
-
* @link https://js-toolkit.studiometa.dev/api/decorators/withBreakpointManager.html
|
|
6
|
-
*/
|
|
7
|
-
export declare function withBreakpointManager<S extends Base>(BaseClass: typeof Base, breakpoints: Array<[string, BaseConstructor<Base>]>): BaseDecorator<BaseInterface, S>;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { useResize } from "../services/ResizeService.js";
|
|
2
|
-
import { isArray, isDev } from "../utils/is.js";
|
|
3
|
-
function testBreakpoints(breakpoints) {
|
|
4
|
-
const { breakpoint } = useResize().props();
|
|
5
|
-
for (const [breakpointKeys, instance] of breakpoints) {
|
|
6
|
-
if (breakpointKeys.includes(breakpoint) && !instance.$isMounted) {
|
|
7
|
-
setTimeout(() => instance.$mount(), 0);
|
|
8
|
-
} else if (!breakpointKeys.includes(breakpoint) && instance.$isMounted) {
|
|
9
|
-
instance.$destroy();
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
function mountComponents(instance, breakpoints) {
|
|
14
|
-
return breakpoints.map(([bk, ComponentClass]) => {
|
|
15
|
-
const child = new ComponentClass(instance.$el);
|
|
16
|
-
Object.defineProperty(child, "$parent", { get: () => instance.__parent });
|
|
17
|
-
return [bk.split(" "), child];
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
const instances = /* @__PURE__ */ new WeakMap();
|
|
21
|
-
function withBreakpointManager(BaseClass, breakpoints) {
|
|
22
|
-
if (!isArray(breakpoints)) {
|
|
23
|
-
if (isDev) {
|
|
24
|
-
throw new Error("[withBreakpointManager] The `breakpoints` parameter must be an array.");
|
|
25
|
-
}
|
|
26
|
-
return BaseClass;
|
|
27
|
-
}
|
|
28
|
-
if (breakpoints.length < 2) {
|
|
29
|
-
if (isDev) {
|
|
30
|
-
throw new Error("[withBreakpointManager] You must define at least 2 breakpoints.");
|
|
31
|
-
}
|
|
32
|
-
return BaseClass;
|
|
33
|
-
}
|
|
34
|
-
const { add, props } = useResize();
|
|
35
|
-
if (!props().breakpoint) {
|
|
36
|
-
if (isDev) {
|
|
37
|
-
throw new Error("The `BreakpointManager` class requires breakpoints to be defined.");
|
|
38
|
-
}
|
|
39
|
-
return BaseClass;
|
|
40
|
-
}
|
|
41
|
-
class WithBreakpointManager extends BaseClass {
|
|
42
|
-
/**
|
|
43
|
-
* Watch for the document resize to test the breakpoints.
|
|
44
|
-
*/
|
|
45
|
-
constructor(element) {
|
|
46
|
-
super(element);
|
|
47
|
-
if (!instances.has(this)) {
|
|
48
|
-
instances.set(this, mountComponents(this, breakpoints));
|
|
49
|
-
}
|
|
50
|
-
add(`BreakpointManager-${this.$id}`, () => {
|
|
51
|
-
testBreakpoints(instances.get(this));
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Override the default $mount method to prevent component's from being
|
|
56
|
-
* mounted when they should not.
|
|
57
|
-
*/
|
|
58
|
-
async $mount() {
|
|
59
|
-
await super.$mount();
|
|
60
|
-
testBreakpoints(instances.get(this));
|
|
61
|
-
return this;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Destroy all instances when the main one is destroyed.
|
|
65
|
-
*/
|
|
66
|
-
async $destroy() {
|
|
67
|
-
const promises = [];
|
|
68
|
-
if (isArray(instances.get(this))) {
|
|
69
|
-
for (const [, instance] of instances.get(this)) {
|
|
70
|
-
promises.push(instance.$destroy());
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
await Promise.all(promises);
|
|
74
|
-
return super.$destroy();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return WithBreakpointManager;
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
withBreakpointManager
|
|
81
|
-
};
|
|
82
|
-
//# sourceMappingURL=withBreakpointManager.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/js-toolkit/decorators/withBreakpointManager.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Base, BaseConstructor, BaseProps } from '../Base/Base.js';\nimport type { BaseDecorator, BaseInterface } from '../Base/types.js';\nimport { useResize } from '../services/ResizeService.js';\nimport { isArray, isDev } from '../utils/is.js';\n\n/**\n * Test the breakpoins of the given Base instance and return the hook to call.\n */\nfunction testBreakpoints(breakpoints: Array<[string[], Base]>) {\n const { breakpoint } = useResize().props();\n for (const [breakpointKeys, instance] of breakpoints) {\n if (breakpointKeys.includes(breakpoint) && !instance.$isMounted) {\n setTimeout(() => instance.$mount(), 0);\n } else if (!breakpointKeys.includes(breakpoint) && instance.$isMounted) {\n instance.$destroy();\n }\n }\n}\n\n/**\n * Prepare the components.\n */\nfunction mountComponents(\n instance: Base,\n breakpoints: Array<[string, BaseConstructor]>,\n): Array<[string[], Base]> {\n return breakpoints.map(([bk, ComponentClass]) => {\n const child = new ComponentClass(instance.$el);\n Object.defineProperty(child, '$parent', { get: () => instance.__parent });\n return [bk.split(' '), child];\n });\n}\n\n/**\n * A cache object to hold each Base sub-instances.\n */\nconst instances: WeakMap<Base, Array<[string[], Base]>> = new WeakMap();\n\n/**\n * BreakpointManager class.\n * @link https://js-toolkit.studiometa.dev/api/decorators/withBreakpointManager.html\n */\nexport function withBreakpointManager<S extends Base>(\n BaseClass: typeof Base,\n breakpoints: Array<[string, BaseConstructor<Base>]>,\n): BaseDecorator<BaseInterface, S> {\n if (!isArray(breakpoints)) {\n if (isDev) {\n throw new Error('[withBreakpointManager] The `breakpoints` parameter must be an array.');\n }\n\n // @ts-ignore\n return BaseClass;\n }\n\n if (breakpoints.length < 2) {\n if (isDev) {\n throw new Error('[withBreakpointManager] You must define at least 2 breakpoints.');\n }\n\n // @ts-ignore\n return BaseClass;\n }\n\n const { add, props } = useResize();\n\n // Do nothing if no breakpoint has been defined.\n // @link https://js-toolkit.studiometa.dev/api/services/useResize.html#breakpoint\n if (!props().breakpoint) {\n if (isDev) {\n throw new Error('The `BreakpointManager` class requires breakpoints to be defined.');\n }\n\n // @ts-ignore\n return BaseClass;\n }\n\n /**\n * Class.\n */\n class WithBreakpointManager<T extends BaseProps = BaseProps> extends BaseClass<T> {\n /**\n * Watch for the document resize to test the breakpoints.\n */\n constructor(element: HTMLElement) {\n super(element);\n\n if (!instances.has(this)) {\n instances.set(this, mountComponents(this, breakpoints));\n }\n\n add(`BreakpointManager-${this.$id}`, () => {\n testBreakpoints(instances.get(this));\n });\n }\n\n /**\n * Override the default $mount method to prevent component's from being\n * mounted when they should not.\n */\n async $mount() {\n await super.$mount();\n\n testBreakpoints(instances.get(this));\n\n return this;\n }\n\n /**\n * Destroy all instances when the main one is destroyed.\n */\n async $destroy() {\n const promises = [];\n if (isArray(instances.get(this))) {\n for (const [, instance] of instances.get(this)) {\n promises.push(instance.$destroy());\n }\n }\n\n await Promise.all(promises);\n\n return super.$destroy();\n }\n }\n\n // @ts-ignore\n return WithBreakpointManager;\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,iBAAiB;AAC1B,SAAS,SAAS,aAAa;AAK/B,SAAS,gBAAgB,aAAsC;AAC7D,QAAM,EAAE,WAAW,IAAI,UAAU,EAAE,MAAM;AACzC,aAAW,CAAC,gBAAgB,QAAQ,KAAK,aAAa;AACpD,QAAI,eAAe,SAAS,UAAU,KAAK,CAAC,SAAS,YAAY;AAC/D,iBAAW,MAAM,SAAS,OAAO,GAAG,CAAC;AAAA,IACvC,WAAW,CAAC,eAAe,SAAS,UAAU,KAAK,SAAS,YAAY;AACtE,eAAS,SAAS;AAAA,IACpB;AAAA,EACF;AACF;AAKA,SAAS,gBACP,UACA,aACyB;AACzB,SAAO,YAAY,IAAI,CAAC,CAAC,IAAI,cAAc,MAAM;AAC/C,UAAM,QAAQ,IAAI,eAAe,SAAS,GAAG;AAC7C,WAAO,eAAe,OAAO,WAAW,EAAE,KAAK,MAAM,SAAS,SAAS,CAAC;AACxE,WAAO,CAAC,GAAG,MAAM,GAAG,GAAG,KAAK;AAAA,EAC9B,CAAC;AACH;AAKA,MAAM,YAAoD,oBAAI,QAAQ;AAM/D,SAAS,sBACd,WACA,aACiC;AACjC,MAAI,CAAC,QAAQ,WAAW,GAAG;AACzB,QAAI,OAAO;AACT,YAAM,IAAI,MAAM,uEAAuE;AAAA,IACzF;AAGA,WAAO;AAAA,EACT;AAEA,MAAI,YAAY,SAAS,GAAG;AAC1B,QAAI,OAAO;AACT,YAAM,IAAI,MAAM,iEAAiE;AAAA,IACnF;AAGA,WAAO;AAAA,EACT;AAEA,QAAM,EAAE,KAAK,MAAM,IAAI,UAAU;AAIjC,MAAI,CAAC,MAAM,EAAE,YAAY;AACvB,QAAI,OAAO;AACT,YAAM,IAAI,MAAM,mEAAmE;AAAA,IACrF;AAGA,WAAO;AAAA,EACT;AAAA,EAKA,MAAM,8BAA+D,UAAa;AAAA;AAAA;AAAA;AAAA,IAIhF,YAAY,SAAsB;AAChC,YAAM,OAAO;AAEb,UAAI,CAAC,UAAU,IAAI,IAAI,GAAG;AACxB,kBAAU,IAAI,MAAM,gBAAgB,MAAM,WAAW,CAAC;AAAA,MACxD;AAEA,UAAI,qBAAqB,KAAK,GAAG,IAAI,MAAM;AACzC,wBAAgB,UAAU,IAAI,IAAI,CAAC;AAAA,MACrC,CAAC;AAAA,IACH;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAM,SAAS;AACb,YAAM,MAAM,OAAO;AAEnB,sBAAgB,UAAU,IAAI,IAAI,CAAC;AAEnC,aAAO;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAKA,MAAM,WAAW;AACf,YAAM,WAAW,CAAC;AAClB,UAAI,QAAQ,UAAU,IAAI,IAAI,CAAC,GAAG;AAChC,mBAAW,CAAC,EAAE,QAAQ,KAAK,UAAU,IAAI,IAAI,GAAG;AAC9C,mBAAS,KAAK,SAAS,SAAS,CAAC;AAAA,QACnC;AAAA,MACF;AAEA,YAAM,QAAQ,IAAI,QAAQ;AAE1B,aAAO,MAAM,SAAS;AAAA,IACxB;AAAA,EACF;AAGA,SAAO;AACT;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Base, BaseProps } from '../Base/Base.js';
|
|
2
|
-
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
|
|
3
|
-
export interface WithBreakpointObserverProps extends BaseProps {
|
|
4
|
-
$options: {
|
|
5
|
-
activeBreakpoints?: string;
|
|
6
|
-
inactiveBreakpoints?: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export interface WithBreakpointObserverInterface extends BaseInterface {
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* BreakpointObserver class.
|
|
13
|
-
* @link https://js-toolkit.studiometa.dev/api/decorators/withBreakpointObserver.html
|
|
14
|
-
*/
|
|
15
|
-
export declare function withBreakpointObserver<S extends Base>(BaseClass: typeof Base): BaseDecorator<WithBreakpointObserverInterface, S, WithBreakpointObserverProps>;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { useResize } from "../services/ResizeService.js";
|
|
2
|
-
import { isDev } from "../utils/is.js";
|
|
3
|
-
import { startsWith } from "../utils/string/startsWith.js";
|
|
4
|
-
import { features } from "../Base/features.js";
|
|
5
|
-
function testBreakpoints(instance, breakpoint = useResize().props().breakpoint) {
|
|
6
|
-
const { activeBreakpoints, inactiveBreakpoints } = instance.$options;
|
|
7
|
-
const isInActiveBreakpoint = activeBreakpoints && activeBreakpoints.split(" ").includes(breakpoint);
|
|
8
|
-
const isInInactiveBreakpoint = inactiveBreakpoints && inactiveBreakpoints.split(" ").includes(breakpoint);
|
|
9
|
-
if (activeBreakpoints && isInActiveBreakpoint || inactiveBreakpoints && !isInInactiveBreakpoint) {
|
|
10
|
-
return "$mount";
|
|
11
|
-
}
|
|
12
|
-
return "$destroy";
|
|
13
|
-
}
|
|
14
|
-
function hasBreakpointConfiguration(instance) {
|
|
15
|
-
const { activeBreakpoints, inactiveBreakpoints } = instance.$options;
|
|
16
|
-
return Boolean(activeBreakpoints || inactiveBreakpoints);
|
|
17
|
-
}
|
|
18
|
-
function testConflictingBreakpointConfiguration(instance) {
|
|
19
|
-
const { activeBreakpoints, inactiveBreakpoints, name } = instance.$options;
|
|
20
|
-
if (activeBreakpoints && inactiveBreakpoints) {
|
|
21
|
-
throw new Error(
|
|
22
|
-
`[${name}] Incorrect configuration: the \`activeBreakpoints\` and \`inactiveBreakpoints\` are not compatible.`
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function createResizeCallback(instance) {
|
|
27
|
-
return ({ breakpoint }) => {
|
|
28
|
-
const action = testBreakpoints(instance, breakpoint);
|
|
29
|
-
if (action === "$destroy" && instance.$isMounted) {
|
|
30
|
-
instance[action]();
|
|
31
|
-
} else if (action === "$mount" && !instance.$isMounted) {
|
|
32
|
-
setTimeout(() => instance[action](), 0);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function addToResize(key, instance) {
|
|
37
|
-
if (isDev) {
|
|
38
|
-
testConflictingBreakpointConfiguration(instance);
|
|
39
|
-
}
|
|
40
|
-
const { add, has, props } = useResize();
|
|
41
|
-
if (!has(key)) {
|
|
42
|
-
const callback = createResizeCallback(instance);
|
|
43
|
-
add(key, callback);
|
|
44
|
-
callback(props());
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function withBreakpointObserver(BaseClass) {
|
|
48
|
-
class WithBreakpointObserver extends BaseClass {
|
|
49
|
-
/**
|
|
50
|
-
* Config.
|
|
51
|
-
*/
|
|
52
|
-
static config = {
|
|
53
|
-
...BaseClass.config,
|
|
54
|
-
options: {
|
|
55
|
-
activeBreakpoints: String,
|
|
56
|
-
inactiveBreakpoints: String
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Watch for the document resize to test the breakpoints.
|
|
61
|
-
*/
|
|
62
|
-
constructor(element) {
|
|
63
|
-
super(element);
|
|
64
|
-
const { remove, props } = useResize();
|
|
65
|
-
const { name } = this.$options;
|
|
66
|
-
if (!props().breakpoint) {
|
|
67
|
-
if (isDev) {
|
|
68
|
-
throw new Error(
|
|
69
|
-
`[${name}] The \`BreakpointObserver\` class requires breakpoints to be defined.`
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const key = `BreakpointObserver-${this.$id}`;
|
|
75
|
-
const attributes = features.get("attributes");
|
|
76
|
-
const mutationObserver = new MutationObserver(([mutation]) => {
|
|
77
|
-
if (mutation.type === "attributes" && startsWith(mutation.attributeName, `${attributes.option}-`)) {
|
|
78
|
-
if (!hasBreakpointConfiguration(this)) {
|
|
79
|
-
this.$mount();
|
|
80
|
-
remove(key);
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
addToResize(key, this);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
mutationObserver.observe(this.$el, { attributes: true });
|
|
87
|
-
if (!hasBreakpointConfiguration(this)) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
addToResize(key, this);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Override the default $mount method to prevent component's from being
|
|
94
|
-
* mounted when they should not.
|
|
95
|
-
*/
|
|
96
|
-
async $mount() {
|
|
97
|
-
if (!hasBreakpointConfiguration(this)) {
|
|
98
|
-
return super.$mount();
|
|
99
|
-
}
|
|
100
|
-
const action = testBreakpoints(this);
|
|
101
|
-
if (action === "$mount") {
|
|
102
|
-
return super.$mount();
|
|
103
|
-
}
|
|
104
|
-
return this;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return WithBreakpointObserver;
|
|
108
|
-
}
|
|
109
|
-
export {
|
|
110
|
-
withBreakpointObserver
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=withBreakpointObserver.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/js-toolkit/decorators/withBreakpointObserver.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Base, BaseConfig, BaseProps } from '../Base/Base.js';\nimport type { BaseDecorator, BaseInterface } from '../Base/types.js';\nimport { type ResizeServiceProps, useResize } from '../services/ResizeService.js';\nimport { isDev } from '../utils/is.js';\nimport { startsWith } from '../utils/string/startsWith.js';\nimport { features } from '../Base/features.js';\n\nexport interface WithBreakpointObserverProps extends BaseProps {\n $options: {\n activeBreakpoints?: string;\n inactiveBreakpoints?: string;\n };\n}\n\nexport interface WithBreakpointObserverInterface extends BaseInterface {}\n\n/**\n * Test the breakpoins of the given Base instance and return the hook to call.\n *\n * @param {Base<WithBreakpointObserverProps>} instance The component's instance.\n * @param {string} [breakpoint] The breakpoint to test.\n * @return {string} The action to trigger.\n */\nfunction testBreakpoints(\n instance: Base<WithBreakpointObserverProps>,\n breakpoint: string = useResize().props().breakpoint,\n): string {\n const { activeBreakpoints, inactiveBreakpoints } = instance.$options;\n const isInActiveBreakpoint =\n activeBreakpoints && activeBreakpoints.split(' ').includes(breakpoint);\n const isInInactiveBreakpoint =\n inactiveBreakpoints && inactiveBreakpoints.split(' ').includes(breakpoint);\n\n if (\n (activeBreakpoints && isInActiveBreakpoint) ||\n (inactiveBreakpoints && !isInInactiveBreakpoint)\n ) {\n return '$mount';\n }\n\n return '$destroy';\n}\n\n/**\n * Test if the given instance is configured for breakpoints.\n *\n * @param {Base<WithBreakpointObserverProps>} instance A Base class instance.\n * @return {boolean} True if configured correctly, false otherwise.\n */\nfunction hasBreakpointConfiguration(instance: Base<WithBreakpointObserverProps>): boolean {\n const { activeBreakpoints, inactiveBreakpoints } = instance.$options;\n return Boolean(activeBreakpoints || inactiveBreakpoints);\n}\n\n/**\n * Test if the given instance has a conflicting configuration for breakpoints.\n *\n * @param {Base<WithBreakpointObserverProps>} instance A Base class instance.\n * @return {void}\n */\nfunction testConflictingBreakpointConfiguration(instance: Base<WithBreakpointObserverProps>): void {\n const { activeBreakpoints, inactiveBreakpoints, name } = instance.$options;\n if (activeBreakpoints && inactiveBreakpoints) {\n throw new Error(\n `[${name}] Incorrect configuration: the \\`activeBreakpoints\\` and \\`inactiveBreakpoints\\` are not compatible.`,\n );\n }\n}\n\n/**\n * Callback triggered when the window is resized.\n */\nfunction createResizeCallback(\n instance: Base<WithBreakpointObserverProps>,\n): (resizeProps: ResizeServiceProps) => void {\n return ({ breakpoint }) => {\n const action = testBreakpoints(instance, breakpoint);\n\n // Always destroy before mounting\n if (action === '$destroy' && instance.$isMounted) {\n instance[action]();\n } else if (action === '$mount' && !instance.$isMounted) {\n setTimeout(() => instance[action](), 0);\n }\n };\n}\n\n/**\n * Add the current instance to the resize service.\n *\n * @param {string} key The key for the resize service callback.\n * @param {Base} instance The instance to observe.\n */\nfunction addToResize(key, instance) {\n if (isDev) {\n testConflictingBreakpointConfiguration(instance);\n }\n\n const { add, has, props } = useResize();\n\n if (!has(key)) {\n const callback = createResizeCallback(instance);\n add(key, callback);\n callback(props());\n }\n}\n\n/**\n * BreakpointObserver class.\n * @link https://js-toolkit.studiometa.dev/api/decorators/withBreakpointObserver.html\n */\nexport function withBreakpointObserver<S extends Base>(\n BaseClass: typeof Base,\n): BaseDecorator<WithBreakpointObserverInterface, S, WithBreakpointObserverProps> {\n /**\n * Class.\n */\n class WithBreakpointObserver<T extends BaseProps = BaseProps> extends BaseClass<\n T & WithBreakpointObserverProps\n > {\n /**\n * Config.\n */\n static config: BaseConfig = {\n ...BaseClass.config,\n options: {\n activeBreakpoints: String,\n inactiveBreakpoints: String,\n },\n };\n\n /**\n * Watch for the document resize to test the breakpoints.\n */\n constructor(element: HTMLElement) {\n super(element);\n\n const { remove, props } = useResize();\n const { name } = this.$options;\n\n // Do nothing if no breakpoint has been defined.\n // @link https://js-toolkit.studiometa.dev/api/services/useResize.html#breakpoint\n if (!props().breakpoint) {\n if (isDev) {\n throw new Error(\n `[${name}] The \\`BreakpointObserver\\` class requires breakpoints to be defined.`,\n );\n }\n return;\n }\n\n const key = `BreakpointObserver-${this.$id}`;\n const attributes = features.get('attributes');\n\n // Watch change on the `data-options` attribute to emit the `set:options` event.\n const mutationObserver = new MutationObserver(([mutation]) => {\n if (\n mutation.type === 'attributes' &&\n startsWith(mutation.attributeName, `${attributes.option}-`)\n ) {\n // Stop here silently when no breakpoint configuration given.\n if (!hasBreakpointConfiguration(this)) {\n this.$mount();\n remove(key);\n return;\n }\n\n addToResize(key, this);\n }\n });\n mutationObserver.observe(this.$el, { attributes: true });\n\n // Stop here silently when no breakpoint configuration given.\n if (!hasBreakpointConfiguration(this)) {\n return;\n }\n\n addToResize(key, this);\n }\n\n /**\n * Override the default $mount method to prevent component's from being\n * mounted when they should not.\n */\n async $mount() {\n // Execute normal behavior when no breakpoint configuration given.\n if (!hasBreakpointConfiguration(this)) {\n return super.$mount();\n }\n\n const action = testBreakpoints(this);\n if (action === '$mount') {\n return super.$mount();\n }\n\n return this;\n }\n }\n\n // @ts-ignore\n return WithBreakpointObserver;\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAkC,iBAAiB;AACnD,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AAkBzB,SAAS,gBACP,UACA,aAAqB,UAAU,EAAE,MAAM,EAAE,YACjC;AACR,QAAM,EAAE,mBAAmB,oBAAoB,IAAI,SAAS;AAC5D,QAAM,uBACJ,qBAAqB,kBAAkB,MAAM,GAAG,EAAE,SAAS,UAAU;AACvE,QAAM,yBACJ,uBAAuB,oBAAoB,MAAM,GAAG,EAAE,SAAS,UAAU;AAE3E,MACG,qBAAqB,wBACrB,uBAAuB,CAAC,wBACzB;AACA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAQA,SAAS,2BAA2B,UAAsD;AACxF,QAAM,EAAE,mBAAmB,oBAAoB,IAAI,SAAS;AAC5D,SAAO,QAAQ,qBAAqB,mBAAmB;AACzD;AAQA,SAAS,uCAAuC,UAAmD;AACjG,QAAM,EAAE,mBAAmB,qBAAqB,KAAK,IAAI,SAAS;AAClE,MAAI,qBAAqB,qBAAqB;AAC5C,UAAM,IAAI;AAAA,MACR,IAAI,IAAI;AAAA,IACV;AAAA,EACF;AACF;AAKA,SAAS,qBACP,UAC2C;AAC3C,SAAO,CAAC,EAAE,WAAW,MAAM;AACzB,UAAM,SAAS,gBAAgB,UAAU,UAAU;AAGnD,QAAI,WAAW,cAAc,SAAS,YAAY;AAChD,eAAS,MAAM,EAAE;AAAA,IACnB,WAAW,WAAW,YAAY,CAAC,SAAS,YAAY;AACtD,iBAAW,MAAM,SAAS,MAAM,EAAE,GAAG,CAAC;AAAA,IACxC;AAAA,EACF;AACF;AAQA,SAAS,YAAY,KAAK,UAAU;AAClC,MAAI,OAAO;AACT,2CAAuC,QAAQ;AAAA,EACjD;AAEA,QAAM,EAAE,KAAK,KAAK,MAAM,IAAI,UAAU;AAEtC,MAAI,CAAC,IAAI,GAAG,GAAG;AACb,UAAM,WAAW,qBAAqB,QAAQ;AAC9C,QAAI,KAAK,QAAQ;AACjB,aAAS,MAAM,CAAC;AAAA,EAClB;AACF;AAMO,SAAS,uBACd,WACgF;AAAA,EAIhF,MAAM,+BAAgE,UAEpE;AAAA;AAAA;AAAA;AAAA,IAIA,OAAO,SAAqB;AAAA,MAC1B,GAAG,UAAU;AAAA,MACb,SAAS;AAAA,QACP,mBAAmB;AAAA,QACnB,qBAAqB;AAAA,MACvB;AAAA,IACF;AAAA;AAAA;AAAA;AAAA,IAKA,YAAY,SAAsB;AAChC,YAAM,OAAO;AAEb,YAAM,EAAE,QAAQ,MAAM,IAAI,UAAU;AACpC,YAAM,EAAE,KAAK,IAAI,KAAK;AAItB,UAAI,CAAC,MAAM,EAAE,YAAY;AACvB,YAAI,OAAO;AACT,gBAAM,IAAI;AAAA,YACR,IAAI,IAAI;AAAA,UACV;AAAA,QACF;AACA;AAAA,MACF;AAEA,YAAM,MAAM,sBAAsB,KAAK,GAAG;AAC1C,YAAM,aAAa,SAAS,IAAI,YAAY;AAG5C,YAAM,mBAAmB,IAAI,iBAAiB,CAAC,CAAC,QAAQ,MAAM;AAC5D,YACE,SAAS,SAAS,gBAClB,WAAW,SAAS,eAAe,GAAG,WAAW,MAAM,GAAG,GAC1D;AAEA,cAAI,CAAC,2BAA2B,IAAI,GAAG;AACrC,iBAAK,OAAO;AACZ,mBAAO,GAAG;AACV;AAAA,UACF;AAEA,sBAAY,KAAK,IAAI;AAAA,QACvB;AAAA,MACF,CAAC;AACD,uBAAiB,QAAQ,KAAK,KAAK,EAAE,YAAY,KAAK,CAAC;AAGvD,UAAI,CAAC,2BAA2B,IAAI,GAAG;AACrC;AAAA,MACF;AAEA,kBAAY,KAAK,IAAI;AAAA,IACvB;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAM,SAAS;AAEb,UAAI,CAAC,2BAA2B,IAAI,GAAG;AACrC,eAAO,MAAM,OAAO;AAAA,MACtB;AAEA,YAAM,SAAS,gBAAgB,IAAI;AACnC,UAAI,WAAW,UAAU;AACvB,eAAO,MAAM,OAAO;AAAA,MACtB;AAEA,aAAO;AAAA,IACT;AAAA,EACF;AAGA,SAAO;AACT;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Base } from '../Base/Base.js';
|
|
2
|
-
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
|
|
3
|
-
import { type DragServiceOptions, type DragServiceProps } from '../services/DragService.js';
|
|
4
|
-
export type DragDecoratorOptions = DragServiceOptions & {
|
|
5
|
-
target?: (this: Base, instance: Base) => HTMLElement;
|
|
6
|
-
};
|
|
7
|
-
export interface WithDragInterface extends BaseInterface {
|
|
8
|
-
dragged?(props: DragServiceProps): void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Add dragging capabilities to a component.
|
|
12
|
-
* @link https://js-toolkit.studiometa.dev/api/decorators/withDrag.html
|
|
13
|
-
*/
|
|
14
|
-
export declare function withDrag<S extends Base>(BaseClass: typeof Base, { target, ...options }?: DragDecoratorOptions): BaseDecorator<BaseInterface, S>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useDrag
|
|
3
|
-
} from "../services/DragService.js";
|
|
4
|
-
function withDrag(BaseClass, { target = (instance) => instance.$el, ...options } = {}) {
|
|
5
|
-
class WithDrag extends BaseClass {
|
|
6
|
-
/**
|
|
7
|
-
* Config.
|
|
8
|
-
*/
|
|
9
|
-
static config = {
|
|
10
|
-
...BaseClass.config,
|
|
11
|
-
emits: ["dragged"]
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Class constructor.
|
|
15
|
-
*/
|
|
16
|
-
constructor(element) {
|
|
17
|
-
super(element);
|
|
18
|
-
this.$on("mounted", () => {
|
|
19
|
-
this.$services.register(
|
|
20
|
-
"dragged",
|
|
21
|
-
useDrag.bind(void 0, target.call(this, this), options)
|
|
22
|
-
);
|
|
23
|
-
this.$services.enable("dragged");
|
|
24
|
-
});
|
|
25
|
-
this.$on("destroyed", () => {
|
|
26
|
-
this.$services.disable("dragged");
|
|
27
|
-
this.$services.unregister("dragged");
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return WithDrag;
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
withDrag
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=withDrag.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/js-toolkit/decorators/withDrag.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Base, BaseConfig, BaseProps } from '../Base/Base.js';\nimport type { BaseDecorator, BaseInterface } from '../Base/types.js';\nimport {\n type DragServiceOptions,\n type DragServiceProps,\n useDrag,\n} from '../services/DragService.js';\n\nexport type DragDecoratorOptions = DragServiceOptions & {\n target?: (this: Base, instance: Base) => HTMLElement;\n};\n\nexport interface WithDragInterface extends BaseInterface {\n dragged?(props: DragServiceProps): void;\n}\n\n/**\n * Add dragging capabilities to a component.\n * @link https://js-toolkit.studiometa.dev/api/decorators/withDrag.html\n */\nexport function withDrag<S extends Base>(\n BaseClass: typeof Base,\n { target = (instance) => instance.$el, ...options }: DragDecoratorOptions = {},\n): BaseDecorator<BaseInterface, S> {\n /**\n * Class.\n */\n class WithDrag<T extends BaseProps = BaseProps> extends BaseClass<T & WithDragInterface> {\n /**\n * Config.\n */\n static config: BaseConfig = {\n ...BaseClass.config,\n emits: ['dragged'],\n };\n\n /**\n * Class constructor.\n */\n constructor(element: HTMLElement) {\n super(element);\n\n this.$on('mounted', () => {\n this.$services.register(\n 'dragged',\n useDrag.bind(undefined, target.call(this, this), options),\n );\n this.$services.enable('dragged');\n });\n\n this.$on('destroyed', () => {\n this.$services.disable('dragged');\n this.$services.unregister('dragged');\n });\n }\n }\n\n // @ts-ignore\n return WithDrag;\n}\n"],
|
|
5
|
-
"mappings": "AAEA;AAAA,EAGE;AAAA,OACK;AAcA,SAAS,SACd,WACA,EAAE,SAAS,CAAC,aAAa,SAAS,KAAK,GAAG,QAAQ,IAA0B,CAAC,GAC5C;AAAA,EAIjC,MAAM,iBAAkD,UAAiC;AAAA;AAAA;AAAA;AAAA,IAIvF,OAAO,SAAqB;AAAA,MAC1B,GAAG,UAAU;AAAA,MACb,OAAO,CAAC,SAAS;AAAA,IACnB;AAAA;AAAA;AAAA;AAAA,IAKA,YAAY,SAAsB;AAChC,YAAM,OAAO;AAEb,WAAK,IAAI,WAAW,MAAM;AACxB,aAAK,UAAU;AAAA,UACb;AAAA,UACA,QAAQ,KAAK,QAAW,OAAO,KAAK,MAAM,IAAI,GAAG,OAAO;AAAA,QAC1D;AACA,aAAK,UAAU,OAAO,SAAS;AAAA,MACjC,CAAC;AAED,WAAK,IAAI,aAAa,MAAM;AAC1B,aAAK,UAAU,QAAQ,SAAS;AAChC,aAAK,UAAU,WAAW,SAAS;AAAA,MACrC,CAAC;AAAA,IACH;AAAA,EACF;AAGA,SAAO;AACT;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Base, BaseConfig } from '../Base/Base.js';
|
|
2
|
-
import type { Options as DeepmergeOptions } from 'deepmerge';
|
|
3
|
-
import type { BaseDecorator, BaseInterface } from '../Base/types.js';
|
|
4
|
-
/**
|
|
5
|
-
* Extends the configuration of an existing class.
|
|
6
|
-
* @link https://js-toolkit.studiometa.dev/api/decorators/withExtraConfig.html
|
|
7
|
-
*/
|
|
8
|
-
export declare function withExtraConfig<S extends Base>(BaseClass: typeof Base, config: Partial<BaseConfig>, options?: DeepmergeOptions): BaseDecorator<BaseInterface, S>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import merge from "deepmerge";
|
|
2
|
-
function withExtraConfig(BaseClass, config, options = {}) {
|
|
3
|
-
const newConfig = merge(BaseClass.config, config, options);
|
|
4
|
-
if (newConfig.name === BaseClass.config.name) {
|
|
5
|
-
newConfig.name = `${BaseClass.config.name}WithExtraConfig`;
|
|
6
|
-
}
|
|
7
|
-
class WithExtraConfig extends BaseClass {
|
|
8
|
-
/**
|
|
9
|
-
* Config.
|
|
10
|
-
*/
|
|
11
|
-
static config = newConfig;
|
|
12
|
-
}
|
|
13
|
-
return WithExtraConfig;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
withExtraConfig
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=withExtraConfig.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../packages/js-toolkit/decorators/withExtraConfig.ts"],
|
|
4
|
-
"sourcesContent": ["import merge from 'deepmerge';\nimport type { Base, BaseConfig, BaseProps } from '../Base/Base.js';\nimport type { Options as DeepmergeOptions } from 'deepmerge';\nimport type { BaseDecorator, BaseInterface } from '../Base/types.js';\n\n/**\n * Extends the configuration of an existing class.\n * @link https://js-toolkit.studiometa.dev/api/decorators/withExtraConfig.html\n */\nexport function withExtraConfig<S extends Base>(\n BaseClass: typeof Base,\n config: Partial<BaseConfig>,\n options: DeepmergeOptions = {},\n): BaseDecorator<BaseInterface, S> {\n const newConfig = merge(BaseClass.config, config, options);\n\n if (newConfig.name === BaseClass.config.name) {\n newConfig.name = `${BaseClass.config.name}WithExtraConfig`;\n }\n\n /**\n * Class.\n */\n class WithExtraConfig<T extends BaseProps = BaseProps> extends BaseClass<T> {\n /**\n * Config.\n */\n static config: BaseConfig = newConfig;\n }\n\n // @ts-ignore\n return WithExtraConfig;\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AASX,SAAS,gBACd,WACA,QACA,UAA4B,CAAC,GACI;AACjC,QAAM,YAAY,MAAM,UAAU,QAAQ,QAAQ,OAAO;AAEzD,MAAI,UAAU,SAAS,UAAU,OAAO,MAAM;AAC5C,cAAU,OAAO,GAAG,UAAU,OAAO,IAAI;AAAA,EAC3C;AAAA,EAKA,MAAM,wBAAyD,UAAa;AAAA;AAAA;AAAA;AAAA,IAI1E,OAAO,SAAqB;AAAA,EAC9B;AAGA,SAAO;AACT;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|