@studiometa/js-toolkit 4.0.0-alpha.1 → 4.0.0-alpha.3
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 +10 -0
- package/dist/Base.d.ts +0 -2
- package/dist/Base.js +1 -2
- package/dist/Base.js.map +1 -1
- package/dist/attribute-namespaces.d.ts +0 -2
- package/dist/attribute-namespaces.js +1 -2
- package/dist/attributes.d.ts +0 -2
- package/dist/attributes.js +1 -2
- package/dist/children-watchers.d.ts +0 -2
- package/dist/children-watchers.js +1 -2
- package/dist/component-brand.d.ts +0 -2
- package/dist/component-brand.js +1 -2
- package/dist/component-declarations.d.ts +0 -2
- package/dist/component-declarations.js +1 -2
- package/dist/context-subscription.d.ts +0 -2
- package/dist/context-subscription.js +1 -2
- package/dist/context.d.ts +0 -2
- package/dist/context.js +1 -2
- package/dist/decorators.d.ts +0 -2
- package/dist/decorators.js +1 -2
- package/dist/diagnostic-contract.d.ts +0 -2
- package/dist/diagnostic-contract.js +1 -2
- package/dist/diagnostics.d.ts +0 -2
- package/dist/diagnostics.js +1 -2
- package/dist/document-order.d.ts +0 -2
- package/dist/document-order.js +1 -2
- package/dist/dom-mutations.d.ts +0 -2
- package/dist/dom-mutations.js +1 -2
- package/dist/events.d.ts +0 -2
- package/dist/events.js +1 -2
- package/dist/group.d.ts +0 -2
- package/dist/group.js +1 -2
- package/dist/instances.d.ts +0 -2
- package/dist/instances.js +1 -2
- package/dist/manifest.d.ts +0 -2
- package/dist/manifest.js +1 -2
- package/dist/mount-strategies.d.ts +0 -2
- package/dist/mount-strategies.js +1 -2
- package/dist/negotiated-events.d.ts +0 -2
- package/dist/negotiated-events.js +1 -2
- package/dist/protocol-symbols.d.ts +0 -2
- package/dist/protocol-symbols.js +1 -2
- package/dist/registry.d.ts +0 -2
- package/dist/registry.js +1 -2
- package/dist/responsive-options.d.ts +0 -2
- package/dist/responsive-options.js +1 -2
- package/dist/scheduler.d.ts +0 -2
- package/dist/scheduler.js +1 -2
- package/dist/scheduler.js.map +1 -1
- package/dist/services/breakpoint.d.ts +0 -2
- package/dist/services/breakpoint.js +1 -2
- package/dist/services/drag.d.ts +0 -2
- package/dist/services/drag.js +1 -2
- package/dist/services/in-view.d.ts +0 -2
- package/dist/services/in-view.js +1 -2
- package/dist/services/key.d.ts +0 -2
- package/dist/services/key.js +1 -2
- package/dist/services/media.d.ts +0 -2
- package/dist/services/media.js +1 -2
- package/dist/services/mixin.d.ts +0 -2
- package/dist/services/mixin.js +1 -2
- package/dist/services/mutation.d.ts +0 -2
- package/dist/services/mutation.js +1 -2
- package/dist/services/pointer.d.ts +0 -2
- package/dist/services/pointer.js +1 -2
- package/dist/services/raf.d.ts +0 -2
- package/dist/services/raf.js +1 -2
- package/dist/services/resize.d.ts +0 -2
- package/dist/services/resize.js +1 -2
- package/dist/services/scroll-progress-offset.d.ts +0 -2
- package/dist/services/scroll-progress-offset.js +1 -2
- package/dist/services/scroll-progress.d.ts +0 -2
- package/dist/services/scroll-progress.js +1 -2
- package/dist/services/scroll.d.ts +0 -2
- package/dist/services/scroll.js +1 -2
- package/dist/services/service.d.ts +0 -2
- package/dist/services/service.js +1 -2
- package/dist/services/toggle.d.ts +0 -2
- package/dist/services/toggle.js +1 -2
- package/dist/services/until.d.ts +0 -2
- package/dist/services/until.js +1 -2
- package/dist/shared-runtime.d.ts +0 -2
- package/dist/shared-runtime.js +1 -2
- package/dist/storage/createStorage.d.ts +0 -2
- package/dist/storage/createStorage.js +1 -2
- package/dist/storage/index.d.ts +0 -2
- package/dist/storage/index.js +1 -2
- package/dist/storage/providers.d.ts +0 -2
- package/dist/storage/providers.js +1 -2
- package/dist/storage/serializers.d.ts +0 -2
- package/dist/storage/serializers.js +1 -2
- package/dist/storage/sync.d.ts +0 -2
- package/dist/storage/sync.js +1 -2
- package/dist/storage/types.d.ts +0 -2
- package/dist/subpaths/BREAKPOINTS.js +1 -2
- package/dist/subpaths/Base.js +1 -2
- package/dist/subpaths/DIAGNOSTICS.js +1 -2
- package/dist/subpaths/DRAG_MODES.js +1 -2
- package/dist/subpaths/EVENTS.js +1 -2
- package/dist/subpaths/MOUNT_ATTRIBUTE.js +1 -2
- package/dist/subpaths/SWAP_MODES.js +1 -2
- package/dist/subpaths/children.js +1 -2
- package/dist/subpaths/component.js +1 -2
- package/dist/subpaths/createContext.js +1 -2
- package/dist/subpaths/createFallbackProvider.js +1 -2
- package/dist/subpaths/createGroup.js +1 -2
- package/dist/subpaths/createLocalStorage.js +1 -2
- package/dist/subpaths/createMemoryStorageProvider.js +1 -2
- package/dist/subpaths/createService.js +1 -2
- package/dist/subpaths/createServiceMixin.js +1 -2
- package/dist/subpaths/createSessionStorage.js +1 -2
- package/dist/subpaths/createStorage.js +1 -2
- package/dist/subpaths/createUrlSearchParamsInHashProvider.js +1 -2
- package/dist/subpaths/createUrlSearchParamsInHashStorage.js +1 -2
- package/dist/subpaths/createUrlSearchParamsProvider.js +1 -2
- package/dist/subpaths/createUrlSearchParamsStorage.js +1 -2
- package/dist/subpaths/defaultScheduler.js +1 -2
- package/dist/subpaths/defineManifest.js +1 -2
- package/dist/subpaths/domUpdate.js +1 -2
- package/dist/subpaths/emitExtendable.js +1 -2
- package/dist/subpaths/fromMetaGlob.js +1 -2
- package/dist/subpaths/fromWebpackContext.js +1 -2
- package/dist/subpaths/getBreakpoints.js +1 -2
- package/dist/subpaths/getInstance.js +1 -2
- package/dist/subpaths/getInstances.js +1 -2
- package/dist/subpaths/getMountedInstances.js +1 -2
- package/dist/subpaths/getUnmountedInstances.js +1 -2
- package/dist/subpaths/inject.js +1 -2
- package/dist/subpaths/injectContext.js +1 -2
- package/dist/subpaths/injectContextSync.js +1 -2
- package/dist/subpaths/jsonSerializer.js +1 -2
- package/dist/subpaths/localStorageProvider.js +1 -2
- package/dist/subpaths/memoryStorageProvider.js +1 -2
- package/dist/subpaths/namespaceQualifier.js +1 -2
- package/dist/subpaths/nextFrame.js +1 -2
- package/dist/subpaths/on.js +1 -2
- package/dist/subpaths/perTarget.js +1 -2
- package/dist/subpaths/provide.js +1 -2
- package/dist/subpaths/provideContext.js +1 -2
- package/dist/subpaths/provideRootContext.js +1 -2
- package/dist/subpaths/read.js +1 -2
- package/dist/subpaths/registerComponent.js +1 -2
- package/dist/subpaths/registerComponents.js +1 -2
- package/dist/subpaths/registerManifest.js +1 -2
- package/dist/subpaths/reportDiagnostic.js +1 -2
- package/dist/subpaths/sessionStorageProvider.js +1 -2
- package/dist/subpaths/setBreakpoints.js +1 -2
- package/dist/subpaths/signal.js +1 -2
- package/dist/subpaths/subscribeContext.js +1 -2
- package/dist/subpaths/swap.js +1 -2
- package/dist/subpaths/toggle.js +1 -2
- package/dist/subpaths/until.js +1 -2
- package/dist/subpaths/urlSearchParamsInHashProvider.js +1 -2
- package/dist/subpaths/urlSearchParamsProvider.js +1 -2
- package/dist/subpaths/useBreakpoint.js +1 -2
- package/dist/subpaths/useDrag.js +1 -2
- package/dist/subpaths/useInView.js +1 -2
- package/dist/subpaths/useKey.js +1 -2
- package/dist/subpaths/useMediaQuery.js +1 -2
- package/dist/subpaths/useMutation.js +1 -2
- package/dist/subpaths/usePointer.js +1 -2
- package/dist/subpaths/usePrefersReducedMotion.js +1 -2
- package/dist/subpaths/useRaf.js +1 -2
- package/dist/subpaths/useResize.js +1 -2
- package/dist/subpaths/useScroll.js +1 -2
- package/dist/subpaths/useScrollProgress.js +1 -2
- package/dist/subpaths/useWindowScroll.js +1 -2
- package/dist/subpaths/useWindowSize.js +1 -2
- package/dist/subpaths/utils/DEFAULT_DAMP_FACTOR.js +1 -2
- package/dist/subpaths/utils/INERTIA_FRAME.js +1 -2
- package/dist/subpaths/utils/MAX_SPRING_RATIO.js +1 -2
- package/dist/subpaths/utils/SCROLL_ALIGNMENTS.js +1 -2
- package/dist/subpaths/utils/SCROLL_AXES.js +1 -2
- package/dist/subpaths/utils/TRANSFORM_PROPS.js +1 -2
- package/dist/subpaths/utils/TRANSITION_OPTIONS.js +1 -2
- package/dist/subpaths/utils/camelCase.js +1 -2
- package/dist/subpaths/utils/capitalize.js +1 -2
- package/dist/subpaths/utils/clamp.js +1 -2
- package/dist/subpaths/utils/clamp01.js +1 -2
- package/dist/subpaths/utils/clampDampFactor.js +1 -2
- package/dist/subpaths/utils/createEaseInOut.js +1 -2
- package/dist/subpaths/utils/createEaseOut.js +1 -2
- package/dist/subpaths/utils/createElement.js +1 -2
- package/dist/subpaths/utils/createRange.js +1 -2
- package/dist/subpaths/utils/damp.js +1 -2
- package/dist/subpaths/utils/debounce.js +1 -2
- package/dist/subpaths/utils/decayOver.js +1 -2
- package/dist/subpaths/utils/deepmerge.js +1 -2
- package/dist/subpaths/utils/easeInCirc.js +1 -2
- package/dist/subpaths/utils/easeInCubic.js +1 -2
- package/dist/subpaths/utils/easeInExpo.js +1 -2
- package/dist/subpaths/utils/easeInOutCirc.js +1 -2
- package/dist/subpaths/utils/easeInOutCubic.js +1 -2
- package/dist/subpaths/utils/easeInOutExpo.js +1 -2
- package/dist/subpaths/utils/easeInOutQuad.js +1 -2
- package/dist/subpaths/utils/easeInOutQuart.js +1 -2
- package/dist/subpaths/utils/easeInOutQuint.js +1 -2
- package/dist/subpaths/utils/easeInOutSine.js +1 -2
- package/dist/subpaths/utils/easeInQuad.js +1 -2
- package/dist/subpaths/utils/easeInQuart.js +1 -2
- package/dist/subpaths/utils/easeInQuint.js +1 -2
- package/dist/subpaths/utils/easeInSine.js +1 -2
- package/dist/subpaths/utils/easeLinear.js +1 -2
- package/dist/subpaths/utils/easeOutCirc.js +1 -2
- package/dist/subpaths/utils/easeOutCubic.js +1 -2
- package/dist/subpaths/utils/easeOutExpo.js +1 -2
- package/dist/subpaths/utils/easeOutQuad.js +1 -2
- package/dist/subpaths/utils/easeOutQuart.js +1 -2
- package/dist/subpaths/utils/easeOutQuint.js +1 -2
- package/dist/subpaths/utils/easeOutSine.js +1 -2
- package/dist/subpaths/utils/enterTransition.js +1 -2
- package/dist/subpaths/utils/fold.js +1 -2
- package/dist/subpaths/utils/getOffsetSizes.js +1 -2
- package/dist/subpaths/utils/historyPush.js +1 -2
- package/dist/subpaths/utils/historyReplace.js +1 -2
- package/dist/subpaths/utils/inertiaDecay.js +1 -2
- package/dist/subpaths/utils/inertiaFinalValue.js +1 -2
- package/dist/subpaths/utils/inertiaStep.js +1 -2
- package/dist/subpaths/utils/inertiaTimeConstant.js +1 -2
- package/dist/subpaths/utils/isBoolean.js +1 -2
- package/dist/subpaths/utils/isDefined.js +1 -2
- package/dist/subpaths/utils/isFunction.js +1 -2
- package/dist/subpaths/utils/isNull.js +1 -2
- package/dist/subpaths/utils/isNumber.js +1 -2
- package/dist/subpaths/utils/isObject.js +1 -2
- package/dist/subpaths/utils/isString.js +1 -2
- package/dist/subpaths/utils/kebabCase.js +1 -2
- package/dist/subpaths/utils/leaveTransition.js +1 -2
- package/dist/subpaths/utils/lerp.js +1 -2
- package/dist/subpaths/utils/loadImage.js +1 -2
- package/dist/subpaths/utils/loadLink.js +1 -2
- package/dist/subpaths/utils/loadScript.js +1 -2
- package/dist/subpaths/utils/lockScroll.js +1 -2
- package/dist/subpaths/utils/lowerCase.js +1 -2
- package/dist/subpaths/utils/map.js +1 -2
- package/dist/subpaths/utils/matrix.js +1 -2
- package/dist/subpaths/utils/mean.js +1 -2
- package/dist/subpaths/utils/memo.js +1 -2
- package/dist/subpaths/utils/noop.js +1 -2
- package/dist/subpaths/utils/noopValue.js +1 -2
- package/dist/subpaths/utils/objectToURLSearchParams.js +1 -2
- package/dist/subpaths/utils/pascalCase.js +1 -2
- package/dist/subpaths/utils/random.js +1 -2
- package/dist/subpaths/utils/randomInt.js +1 -2
- package/dist/subpaths/utils/randomItem.js +1 -2
- package/dist/subpaths/utils/round.js +1 -2
- package/dist/subpaths/utils/saveActiveElement.js +1 -2
- package/dist/subpaths/utils/scrollPosition.js +1 -2
- package/dist/subpaths/utils/scrollTo.js +1 -2
- package/dist/subpaths/utils/selectorFor.js +1 -2
- package/dist/subpaths/utils/setClassesOrStyles.js +1 -2
- package/dist/subpaths/utils/smoothTo.js +1 -2
- package/dist/subpaths/utils/snakeCase.js +1 -2
- package/dist/subpaths/utils/spring.js +1 -2
- package/dist/subpaths/utils/throttle.js +1 -2
- package/dist/subpaths/utils/transform.js +1 -2
- package/dist/subpaths/utils/transition.js +1 -2
- package/dist/subpaths/utils/trapFocus.js +1 -2
- package/dist/subpaths/utils/untrapFocus.js +1 -2
- package/dist/subpaths/utils/upperCase.js +1 -2
- package/dist/subpaths/utils/wait.js +1 -2
- package/dist/subpaths/utils/withLeadingCharacters.js +1 -2
- package/dist/subpaths/utils/withLeadingSlash.js +1 -2
- package/dist/subpaths/utils/withTrailingCharacters.js +1 -2
- package/dist/subpaths/utils/withTrailingSlash.js +1 -2
- package/dist/subpaths/utils/withoutLeadingCharacters.js +1 -2
- package/dist/subpaths/utils/withoutLeadingCharactersRecursive.js +1 -2
- package/dist/subpaths/utils/withoutLeadingSlash.js +1 -2
- package/dist/subpaths/utils/withoutTrailingCharacters.js +1 -2
- package/dist/subpaths/utils/withoutTrailingCharactersRecursive.js +1 -2
- package/dist/subpaths/utils/withoutTrailingSlash.js +1 -2
- package/dist/subpaths/utils/wrap.js +1 -2
- package/dist/subpaths/viewTransition.js +1 -2
- package/dist/subpaths/warn.js +1 -2
- package/dist/subpaths/watchAttributeNamespace.js +1 -2
- package/dist/subpaths/watchAttributes.js +1 -2
- package/dist/subpaths/whenDOMSettled.js +1 -2
- package/dist/subpaths/withDrag.js +1 -2
- package/dist/subpaths/withInView.js +1 -2
- package/dist/subpaths/withKey.js +1 -2
- package/dist/subpaths/withMutation.js +1 -2
- package/dist/subpaths/withPointer.js +1 -2
- package/dist/subpaths/withRaf.js +1 -2
- package/dist/subpaths/withResize.js +1 -2
- package/dist/subpaths/withScroll.js +1 -2
- package/dist/subpaths/withScrollProgress.js +1 -2
- package/dist/subpaths/write.js +1 -2
- package/dist/swap.d.ts +0 -2
- package/dist/swap.js +1 -2
- package/dist/test/index.d.ts +0 -2
- package/dist/test/index.js +1 -2
- package/dist/utils/deepmerge.d.ts +0 -2
- package/dist/utils/deepmerge.js +1 -2
- package/dist/utils/dom.d.ts +0 -2
- package/dist/utils/dom.js +1 -2
- package/dist/utils/easings.d.ts +0 -2
- package/dist/utils/easings.js +1 -2
- package/dist/utils/focus.d.ts +0 -2
- package/dist/utils/focus.js +1 -2
- package/dist/utils/history.d.ts +0 -2
- package/dist/utils/history.js +1 -2
- package/dist/utils/is.d.ts +0 -2
- package/dist/utils/is.js +1 -2
- package/dist/utils/load.d.ts +0 -2
- package/dist/utils/load.js +1 -2
- package/dist/utils/maths.d.ts +0 -2
- package/dist/utils/maths.js +1 -2
- package/dist/utils/memo.d.ts +0 -2
- package/dist/utils/memo.js +1 -2
- package/dist/utils/noop.d.ts +0 -2
- package/dist/utils/noop.js +1 -2
- package/dist/utils/random.d.ts +0 -2
- package/dist/utils/random.js +1 -2
- package/dist/utils/scroll-lock.d.ts +0 -2
- package/dist/utils/scroll-lock.js +1 -2
- package/dist/utils/scrollTo.d.ts +0 -2
- package/dist/utils/scrollTo.js +1 -2
- package/dist/utils/selectors.d.ts +0 -2
- package/dist/utils/selectors.js +1 -2
- package/dist/utils/smoothTo.d.ts +0 -2
- package/dist/utils/smoothTo.js +1 -2
- package/dist/utils/strings.d.ts +0 -2
- package/dist/utils/strings.js +1 -2
- package/dist/utils/timing.d.ts +0 -2
- package/dist/utils/timing.js +1 -2
- package/dist/utils/transform.d.ts +0 -2
- package/dist/utils/transform.js +1 -2
- package/dist/utils/transition.d.ts +0 -2
- package/dist/utils/transition.js +1 -2
- package/dist/viewTransition.d.ts +0 -2
- package/dist/viewTransition.js +1 -2
- package/package.json +6 -3
- package/skills/studiometa-js-toolkit/SKILL.md +87 -0
- package/skills/studiometa-js-toolkit/references/api/configuration.md +169 -0
- package/skills/studiometa-js-toolkit/references/api/context/createContext.md +46 -0
- package/skills/studiometa-js-toolkit/references/api/context/createGroup.md +67 -0
- package/skills/studiometa-js-toolkit/references/api/context/index.md +69 -0
- package/skills/studiometa-js-toolkit/references/api/context/injectContext.md +58 -0
- package/skills/studiometa-js-toolkit/references/api/context/injectContextSync.md +44 -0
- package/skills/studiometa-js-toolkit/references/api/context/provideContext.md +61 -0
- package/skills/studiometa-js-toolkit/references/api/context/provideRootContext.md +42 -0
- package/skills/studiometa-js-toolkit/references/api/context/signal.md +85 -0
- package/skills/studiometa-js-toolkit/references/api/context/subscribeContext.md +71 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/children.md +92 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/component.md +75 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/index.md +41 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/inject.md +73 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/on.md +149 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/provide.md +77 -0
- package/skills/studiometa-js-toolkit/references/api/decorators/read-write.md +93 -0
- package/skills/studiometa-js-toolkit/references/api/diagnostics/DIAGNOSTICS.md +137 -0
- package/skills/studiometa-js-toolkit/references/api/diagnostics/EVENTS.md +45 -0
- package/skills/studiometa-js-toolkit/references/api/diagnostics/index.md +58 -0
- package/skills/studiometa-js-toolkit/references/api/diagnostics/reportDiagnostic.md +67 -0
- package/skills/studiometa-js-toolkit/references/api/diagnostics/warn.md +54 -0
- package/skills/studiometa-js-toolkit/references/api/dom/breakpoints.md +81 -0
- package/skills/studiometa-js-toolkit/references/api/dom/domUpdate.md +70 -0
- package/skills/studiometa-js-toolkit/references/api/dom/emitExtendable.md +68 -0
- package/skills/studiometa-js-toolkit/references/api/dom/index.md +26 -0
- package/skills/studiometa-js-toolkit/references/api/dom/swap.md +105 -0
- package/skills/studiometa-js-toolkit/references/api/dom/watchAttributeNamespace.md +96 -0
- package/skills/studiometa-js-toolkit/references/api/dom/watchAttributes.md +56 -0
- package/skills/studiometa-js-toolkit/references/api/dom/whenDOMSettled.md +41 -0
- package/skills/studiometa-js-toolkit/references/api/html/data-component.md +105 -0
- package/skills/studiometa-js-toolkit/references/api/html/data-mount.md +69 -0
- package/skills/studiometa-js-toolkit/references/api/html/data-option.md +106 -0
- package/skills/studiometa-js-toolkit/references/api/html/data-ref.md +63 -0
- package/skills/studiometa-js-toolkit/references/api/html/index.md +32 -0
- package/skills/studiometa-js-toolkit/references/api/index.md +73 -0
- package/skills/studiometa-js-toolkit/references/api/instance-events.md +75 -0
- package/skills/studiometa-js-toolkit/references/api/instance-methods.md +267 -0
- package/skills/studiometa-js-toolkit/references/api/instance-properties.md +90 -0
- package/skills/studiometa-js-toolkit/references/api/methods-hooks-events.md +149 -0
- package/skills/studiometa-js-toolkit/references/api/methods-hooks-lifecycle.md +90 -0
- package/skills/studiometa-js-toolkit/references/api/methods-hooks-options.md +96 -0
- package/skills/studiometa-js-toolkit/references/api/methods-hooks-services.md +164 -0
- package/skills/studiometa-js-toolkit/references/api/registry/defineManifest.md +57 -0
- package/skills/studiometa-js-toolkit/references/api/registry/fromMetaGlob.md +33 -0
- package/skills/studiometa-js-toolkit/references/api/registry/fromWebpackContext.md +37 -0
- package/skills/studiometa-js-toolkit/references/api/registry/getInstance.md +52 -0
- package/skills/studiometa-js-toolkit/references/api/registry/getInstances.md +48 -0
- package/skills/studiometa-js-toolkit/references/api/registry/getMountedInstances.md +39 -0
- package/skills/studiometa-js-toolkit/references/api/registry/getUnmountedInstances.md +46 -0
- package/skills/studiometa-js-toolkit/references/api/registry/index.md +49 -0
- package/skills/studiometa-js-toolkit/references/api/registry/registerComponent.md +93 -0
- package/skills/studiometa-js-toolkit/references/api/registry/registerComponents.md +37 -0
- package/skills/studiometa-js-toolkit/references/api/registry/registerManifest.md +72 -0
- package/skills/studiometa-js-toolkit/references/api/scheduler/defaultScheduler.md +104 -0
- package/skills/studiometa-js-toolkit/references/api/scheduler/index.md +27 -0
- package/skills/studiometa-js-toolkit/references/api/scheduler/nextFrame.md +31 -0
- package/skills/studiometa-js-toolkit/references/api/scheduler/viewTransition.md +53 -0
- package/skills/studiometa-js-toolkit/references/api/services/createService.md +95 -0
- package/skills/studiometa-js-toolkit/references/api/services/createServiceMixin.md +81 -0
- package/skills/studiometa-js-toolkit/references/api/services/index.md +94 -0
- package/skills/studiometa-js-toolkit/references/api/services/mixins.md +148 -0
- package/skills/studiometa-js-toolkit/references/api/services/perTarget.md +65 -0
- package/skills/studiometa-js-toolkit/references/api/services/toggle.md +80 -0
- package/skills/studiometa-js-toolkit/references/api/services/until.md +44 -0
- package/skills/studiometa-js-toolkit/references/api/services/useBreakpoint.md +42 -0
- package/skills/studiometa-js-toolkit/references/api/services/useDrag.md +119 -0
- package/skills/studiometa-js-toolkit/references/api/services/useInView.md +64 -0
- package/skills/studiometa-js-toolkit/references/api/services/useKey.md +105 -0
- package/skills/studiometa-js-toolkit/references/api/services/useMediaQuery.md +45 -0
- package/skills/studiometa-js-toolkit/references/api/services/useMutation.md +69 -0
- package/skills/studiometa-js-toolkit/references/api/services/usePointer.md +91 -0
- package/skills/studiometa-js-toolkit/references/api/services/usePrefersReducedMotion.md +42 -0
- package/skills/studiometa-js-toolkit/references/api/services/useRaf.md +91 -0
- package/skills/studiometa-js-toolkit/references/api/services/useResize.md +60 -0
- package/skills/studiometa-js-toolkit/references/api/services/useScroll.md +88 -0
- package/skills/studiometa-js-toolkit/references/api/services/useScrollProgress.md +88 -0
- package/skills/studiometa-js-toolkit/references/api/services/useWindowScroll.md +25 -0
- package/skills/studiometa-js-toolkit/references/api/services/useWindowSize.md +25 -0
- package/skills/studiometa-js-toolkit/references/api/storage/createStorage.md +126 -0
- package/skills/studiometa-js-toolkit/references/api/storage/index.md +33 -0
- package/skills/studiometa-js-toolkit/references/api/storage/presets.md +58 -0
- package/skills/studiometa-js-toolkit/references/api/storage/providers.md +109 -0
- package/skills/studiometa-js-toolkit/references/api/test/index.md +214 -0
- package/skills/studiometa-js-toolkit/references/guide/concepts/attribute-grammar.md +93 -0
- package/skills/studiometa-js-toolkit/references/guide/concepts/mutation-engine.md +71 -0
- package/skills/studiometa-js-toolkit/references/guide/concepts/philosophy.md +78 -0
- package/skills/studiometa-js-toolkit/references/guide/concepts/the-registry.md +110 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/autoloading.md +104 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/handling-diagnostics.md +104 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/mount-strategies.md +95 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/scheduling-work.md +124 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/sharing-state.md +218 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/swapping-content.md +92 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/testing-components.md +137 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/typing-components.md +190 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/using-decorators.md +168 -0
- package/skills/studiometa-js-toolkit/references/guide/going-further/using-storage.md +125 -0
- package/skills/studiometa-js-toolkit/references/guide/index.md +163 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/installation.md +144 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/lifecycle-hooks.md +174 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/managing-components.md +229 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/managing-options.md +235 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/managing-refs.md +174 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/using-services.md +218 -0
- package/skills/studiometa-js-toolkit/references/guide/introduction/working-with-events.md +251 -0
- package/skills/studiometa-js-toolkit/references/guide/migration/v3-to-v4.md +373 -0
- package/skills/studiometa-js-toolkit/references/utils/css.md +98 -0
- package/skills/studiometa-js-toolkit/references/utils/dom.md +54 -0
- package/skills/studiometa-js-toolkit/references/utils/easings.md +217 -0
- package/skills/studiometa-js-toolkit/references/utils/focus.md +84 -0
- package/skills/studiometa-js-toolkit/references/utils/history.md +69 -0
- package/skills/studiometa-js-toolkit/references/utils/index.md +53 -0
- package/skills/studiometa-js-toolkit/references/utils/is.md +84 -0
- package/skills/studiometa-js-toolkit/references/utils/load.md +59 -0
- package/skills/studiometa-js-toolkit/references/utils/math.md +129 -0
- package/skills/studiometa-js-toolkit/references/utils/motion.md +218 -0
- package/skills/studiometa-js-toolkit/references/utils/objects.md +68 -0
- package/skills/studiometa-js-toolkit/references/utils/scroll.md +128 -0
- package/skills/studiometa-js-toolkit/references/utils/strings.md +176 -0
- package/skills/studiometa-js-toolkit/references/utils/timing.md +111 -0
- package/skills/studiometa-js-toolkit/references/utils/transitions.md +122 -0
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { fold as default, fold };
|
|
1
|
+
export { fold as default, fold } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { getOffsetSizes as default, getOffsetSizes };
|
|
1
|
+
export { getOffsetSizes as default, getOffsetSizes } from "../../utils/dom.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { historyPush as default, historyPush };
|
|
1
|
+
export { historyPush as default, historyPush } from "../../utils/history.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { historyReplace as default, historyReplace };
|
|
1
|
+
export { historyReplace as default, historyReplace } from "../../utils/history.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { inertiaDecay as default, inertiaDecay };
|
|
1
|
+
export { inertiaDecay as default, inertiaDecay } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { inertiaFinalValue as default, inertiaFinalValue };
|
|
1
|
+
export { inertiaFinalValue as default, inertiaFinalValue } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { inertiaStep as default, inertiaStep };
|
|
1
|
+
export { inertiaStep as default, inertiaStep } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { inertiaTimeConstant as default, inertiaTimeConstant };
|
|
1
|
+
export { inertiaTimeConstant as default, inertiaTimeConstant } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isBoolean as default, isBoolean };
|
|
1
|
+
export { isBoolean as default, isBoolean } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isDefined as default, isDefined };
|
|
1
|
+
export { isDefined as default, isDefined } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isFunction as default, isFunction };
|
|
1
|
+
export { isFunction as default, isFunction } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isNull as default, isNull };
|
|
1
|
+
export { isNull as default, isNull } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isNumber as default, isNumber };
|
|
1
|
+
export { isNumber as default, isNumber } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isObject as default, isObject };
|
|
1
|
+
export { isObject as default, isObject } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { isString as default, isString };
|
|
1
|
+
export { isString as default, isString } from "../../utils/is.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { kebabCase as default, kebabCase };
|
|
1
|
+
export { kebabCase as default, kebabCase } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { leaveTransition as default, leaveTransition };
|
|
1
|
+
export { leaveTransition as default, leaveTransition } from "../../utils/transition.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { lerp as default, lerp };
|
|
1
|
+
export { lerp as default, lerp } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { loadImage as default, loadImage };
|
|
1
|
+
export { loadImage as default, loadImage } from "../../utils/load.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { loadLink as default, loadLink };
|
|
1
|
+
export { loadLink as default, loadLink } from "../../utils/load.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { loadScript as default, loadScript };
|
|
1
|
+
export { loadScript as default, loadScript } from "../../utils/load.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { lockScroll as default, lockScroll };
|
|
1
|
+
export { lockScroll as default, lockScroll } from "../../utils/scroll-lock.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { lowerCase as default, lowerCase };
|
|
1
|
+
export { lowerCase as default, lowerCase } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { map as default, map };
|
|
1
|
+
export { map as default, map } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { matrix as default, matrix };
|
|
1
|
+
export { matrix as default, matrix } from "../../utils/transform.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { mean as default, mean };
|
|
1
|
+
export { mean as default, mean } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { memo as default, memo };
|
|
1
|
+
export { memo as default, memo } from "../../utils/memo.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { noop as default, noop };
|
|
1
|
+
export { noop as default, noop } from "../../utils/noop.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { noopValue as default, noopValue };
|
|
1
|
+
export { noopValue as default, noopValue } from "../../utils/noop.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { objectToURLSearchParams as default, objectToURLSearchParams };
|
|
1
|
+
export { objectToURLSearchParams as default, objectToURLSearchParams } from "../../utils/history.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { pascalCase as default, pascalCase };
|
|
1
|
+
export { pascalCase as default, pascalCase } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { random as default, random };
|
|
1
|
+
export { random as default, random } from "../../utils/random.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { randomInt as default, randomInt };
|
|
1
|
+
export { randomInt as default, randomInt } from "../../utils/random.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { randomItem as default, randomItem };
|
|
1
|
+
export { randomItem as default, randomItem } from "../../utils/random.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { round as default, round };
|
|
1
|
+
export { round as default, round } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { saveActiveElement as default, saveActiveElement };
|
|
1
|
+
export { saveActiveElement as default, saveActiveElement } from "../../utils/focus.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { scrollPosition as default, scrollPosition };
|
|
1
|
+
export { scrollPosition as default, scrollPosition } from "../../utils/scrollTo.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { scrollTo as default, scrollTo };
|
|
1
|
+
export { scrollTo as default, scrollTo } from "../../utils/scrollTo.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { selectorFor as default, selectorFor };
|
|
1
|
+
export { selectorFor as default, selectorFor } from "../../utils/selectors.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { setClassesOrStyles as default, setClassesOrStyles };
|
|
1
|
+
export { setClassesOrStyles as default, setClassesOrStyles } from "../../utils/transition.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { smoothTo as default, smoothTo };
|
|
1
|
+
export { smoothTo as default, smoothTo } from "../../utils/smoothTo.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { snakeCase as default, snakeCase };
|
|
1
|
+
export { snakeCase as default, snakeCase } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { spring as default, spring };
|
|
1
|
+
export { spring as default, spring } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { throttle as default, throttle };
|
|
1
|
+
export { throttle as default, throttle } from "../../utils/timing.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { transform as default, transform };
|
|
1
|
+
export { transform as default, transform } from "../../utils/transform.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { transition as default, transition };
|
|
1
|
+
export { transition as default, transition } from "../../utils/transition.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { trapFocus as default, trapFocus };
|
|
1
|
+
export { trapFocus as default, trapFocus } from "../../utils/focus.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { untrapFocus as default, untrapFocus };
|
|
1
|
+
export { untrapFocus as default, untrapFocus } from "../../utils/focus.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { upperCase as default, upperCase };
|
|
1
|
+
export { upperCase as default, upperCase } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { wait as default, wait };
|
|
1
|
+
export { wait as default, wait } from "../../utils/timing.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withLeadingCharacters as default, withLeadingCharacters };
|
|
1
|
+
export { withLeadingCharacters as default, withLeadingCharacters } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withLeadingSlash as default, withLeadingSlash };
|
|
1
|
+
export { withLeadingSlash as default, withLeadingSlash } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withTrailingCharacters as default, withTrailingCharacters };
|
|
1
|
+
export { withTrailingCharacters as default, withTrailingCharacters } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withTrailingSlash as default, withTrailingSlash };
|
|
1
|
+
export { withTrailingSlash as default, withTrailingSlash } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withoutLeadingCharacters as default, withoutLeadingCharacters };
|
|
1
|
+
export { withoutLeadingCharacters as default, withoutLeadingCharacters } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withoutLeadingCharactersRecursive as default, withoutLeadingCharactersRecursive };
|
|
1
|
+
export { withoutLeadingCharactersRecursive as default, withoutLeadingCharactersRecursive } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withoutLeadingSlash as default, withoutLeadingSlash };
|
|
1
|
+
export { withoutLeadingSlash as default, withoutLeadingSlash } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withoutTrailingCharacters as default, withoutTrailingCharacters };
|
|
1
|
+
export { withoutTrailingCharacters as default, withoutTrailingCharacters } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withoutTrailingCharactersRecursive as default, withoutTrailingCharactersRecursive };
|
|
1
|
+
export { withoutTrailingCharactersRecursive as default, withoutTrailingCharactersRecursive } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withoutTrailingSlash as default, withoutTrailingSlash };
|
|
1
|
+
export { withoutTrailingSlash as default, withoutTrailingSlash } from "../../utils/strings.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { wrap as default, wrap };
|
|
1
|
+
export { wrap as default, wrap } from "../../utils/maths.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { viewTransition as default, viewTransition };
|
|
1
|
+
export { viewTransition as default, viewTransition } from "../viewTransition.js";
|
package/dist/subpaths/warn.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { warn as default, warn };
|
|
1
|
+
export { warn as default, warn } from "../diagnostics.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { watchAttributeNamespace as default, watchAttributeNamespace };
|
|
1
|
+
export { watchAttributeNamespace as default, watchAttributeNamespace } from "../attribute-namespaces.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { watchAttributes as default, watchAttributes };
|
|
1
|
+
export { watchAttributes as default, watchAttributes } from "../dom-mutations.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { whenDOMSettled as default, whenDOMSettled };
|
|
1
|
+
export { whenDOMSettled as default, whenDOMSettled } from "../dom-mutations.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withDrag as default, withDrag };
|
|
1
|
+
export { withDrag as default, withDrag } from "../services/drag.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withInView as default, withInView };
|
|
1
|
+
export { withInView as default, withInView } from "../services/in-view.js";
|
package/dist/subpaths/withKey.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withKey as default, withKey };
|
|
1
|
+
export { withKey as default, withKey } from "../services/key.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withMutation as default, withMutation };
|
|
1
|
+
export { withMutation as default, withMutation } from "../services/mutation.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withPointer as default, withPointer };
|
|
1
|
+
export { withPointer as default, withPointer } from "../services/pointer.js";
|
package/dist/subpaths/withRaf.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withRaf as default, withRaf };
|
|
1
|
+
export { withRaf as default, withRaf } from "../services/raf.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withResize as default, withResize };
|
|
1
|
+
export { withResize as default, withResize } from "../services/resize.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withScroll as default, withScroll };
|
|
1
|
+
export { withScroll as default, withScroll } from "../services/scroll.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { withScrollProgress as default, withScrollProgress };
|
|
1
|
+
export { withScrollProgress as default, withScrollProgress } from "../services/scroll-progress.js";
|
package/dist/subpaths/write.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { write as default, write };
|
|
1
|
+
export { write as default, write } from "../decorators.js";
|
package/dist/swap.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/swap.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Named content swap modes.
|
|
4
3
|
* @link https://js-toolkit-v4.studiometa.dev/api/dom/swap.html
|
|
@@ -41,5 +40,4 @@ interface SwapOptions {
|
|
|
41
40
|
* @link https://js-toolkit-v4.studiometa.dev/api/dom/swap.html
|
|
42
41
|
*/
|
|
43
42
|
declare function swap(target: Element, content: SwapContent, options?: SwapOptions): Promise<void>;
|
|
44
|
-
//#endregion
|
|
45
43
|
export { SWAP_MODES, SwapContent, SwapMode, SwapOptions, SwapWrap, swap };
|
package/dist/swap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warn } from "./diagnostics.js";
|
|
2
2
|
import { whenDOMSettled } from "./dom-mutations.js";
|
|
3
3
|
import morphdom from "morphdom";
|
|
4
|
-
|
|
4
|
+
// src/swap.ts
|
|
5
5
|
/**
|
|
6
6
|
* Named content swap modes.
|
|
7
7
|
* @link https://js-toolkit-v4.studiometa.dev/api/dom/swap.html
|
|
@@ -78,7 +78,6 @@ function adoptScripts(root, knownScripts) {
|
|
|
78
78
|
script.replaceWith(adopted);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
//#endregion
|
|
82
81
|
export { SWAP_MODES, swap };
|
|
83
82
|
|
|
84
83
|
//# sourceMappingURL=swap.js.map
|
package/dist/test/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ToolkitDiagnosticDetail } from "../diagnostic-contract.js";
|
|
2
2
|
import { resetRegistry } from "../registry.js";
|
|
3
|
-
//#region src/test/index.d.ts
|
|
4
3
|
/** Options for {@link waitFor}. */
|
|
5
4
|
interface WaitForOptions {
|
|
6
5
|
/** How long to poll before throwing, in milliseconds. Defaults to `1000`. */
|
|
@@ -201,5 +200,4 @@ declare function recordEvents(target: EventTarget, ...types: string[]): EventRec
|
|
|
201
200
|
* into the next test.
|
|
202
201
|
*/
|
|
203
202
|
declare function resetDom(): Promise<void>;
|
|
204
|
-
//#endregion
|
|
205
203
|
export { DiagnosticCapture, EventRecording, RecordedEvent, WaitForOptions, captureDiagnostics, countRequestedFrames, frames, mount, recordEvents, resetDom, resetRegistry, settle, waitFor };
|
package/dist/test/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultScheduler, nextFrame } from "../scheduler.js";
|
|
2
2
|
import { EVENTS } from "../events.js";
|
|
3
3
|
import { resetRegistry } from "../registry.js";
|
|
4
|
-
|
|
4
|
+
// src/test/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* Wait until every pending mount and every scheduled write has landed.
|
|
7
7
|
*
|
|
@@ -243,7 +243,6 @@ async function resetDom() {
|
|
|
243
243
|
document.body.innerHTML = "";
|
|
244
244
|
await settle();
|
|
245
245
|
}
|
|
246
|
-
//#endregion
|
|
247
246
|
export { captureDiagnostics, countRequestedFrames, frames, mount, recordEvents, resetDom, resetRegistry, settle, waitFor };
|
|
248
247
|
|
|
249
248
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/deepmerge.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Merge plain objects, source over target.
|
|
4
3
|
*
|
|
@@ -27,5 +26,4 @@
|
|
|
27
26
|
* @link https://js-toolkit-v4.studiometa.dev/utils/objects.html#deepmerge
|
|
28
27
|
*/
|
|
29
28
|
declare function deepmerge(...layers: Record<string, unknown>[]): Record<string, unknown>;
|
|
30
|
-
//#endregion
|
|
31
29
|
export { deepmerge };
|
package/dist/utils/deepmerge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/deepmerge.ts
|
|
2
2
|
/**
|
|
3
3
|
* Merge plain objects, source over target.
|
|
4
4
|
*
|
|
@@ -70,7 +70,6 @@ function merge(target, source) {
|
|
|
70
70
|
function deepmerge(...layers) {
|
|
71
71
|
return layers.reduce(merge, {});
|
|
72
72
|
}
|
|
73
|
-
//#endregion
|
|
74
73
|
export { deepmerge };
|
|
75
74
|
|
|
76
75
|
//# sourceMappingURL=deepmerge.js.map
|
package/dist/utils/dom.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/dom.d.ts
|
|
2
1
|
interface AnyHTMLElementTagNameMap extends HTMLElementTagNameMap {
|
|
3
2
|
[key: string]: HTMLElement;
|
|
4
3
|
}
|
|
@@ -47,5 +46,4 @@ interface OffsetSizes {
|
|
|
47
46
|
* @link https://js-toolkit-v4.studiometa.dev/utils/css.html#getoffsetsizes
|
|
48
47
|
*/
|
|
49
48
|
declare function getOffsetSizes(element: HTMLElement): OffsetSizes;
|
|
50
|
-
//#endregion
|
|
51
49
|
export { CreateElementAttributes, CreateElementChildren, OffsetSizes, createElement, getOffsetSizes };
|
package/dist/utils/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { kebabCase } from "./strings.js";
|
|
2
2
|
import { isObject, isString } from "./is.js";
|
|
3
|
-
|
|
3
|
+
// src/utils/dom.ts
|
|
4
4
|
function createElement(tag, attributes = {}, children = null) {
|
|
5
5
|
const element = document.createElement(tag ?? "div");
|
|
6
6
|
let content = children;
|
|
@@ -49,7 +49,6 @@ function getOffsetSizes(element) {
|
|
|
49
49
|
left: x
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { createElement, getOffsetSizes };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=dom.js.map
|
package/dist/utils/easings.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/easings.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Easing functions: they shape a `0 → 1` progress and answer in the same
|
|
4
3
|
* range. The `in` form is the source, and the `out` and `in-out` forms are
|
|
@@ -126,5 +125,4 @@ declare const easeOutExpo: EasingFunction;
|
|
|
126
125
|
* @link https://js-toolkit-v4.studiometa.dev/utils/easings.html#easeinoutexpo
|
|
127
126
|
*/
|
|
128
127
|
declare const easeInOutExpo: EasingFunction;
|
|
129
|
-
//#endregion
|
|
130
128
|
export { EasingFunction, createEaseInOut, createEaseOut, easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeLinear, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine };
|
package/dist/utils/easings.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/easings.ts
|
|
2
2
|
/**
|
|
3
3
|
* Mirror an ease-in function into its ease-out counterpart.
|
|
4
4
|
* @link https://js-toolkit-v4.studiometa.dev/utils/easings.html#createeaseout
|
|
@@ -142,7 +142,6 @@ const easeOutExpo = /* @__PURE__ */ createEaseOut(easeInExpo);
|
|
|
142
142
|
* @link https://js-toolkit-v4.studiometa.dev/utils/easings.html#easeinoutexpo
|
|
143
143
|
*/
|
|
144
144
|
const easeInOutExpo = /* @__PURE__ */ createEaseInOut(easeInExpo);
|
|
145
|
-
//#endregion
|
|
146
145
|
export { createEaseInOut, createEaseOut, easeInCirc, easeInCubic, easeInExpo, easeInOutCirc, easeInOutCubic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeLinear, easeOutCirc, easeOutCubic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine };
|
|
147
146
|
|
|
148
147
|
//# sourceMappingURL=easings.js.map
|
package/dist/utils/focus.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/focus.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Remember what had the focus, to restore it later.
|
|
4
3
|
* @link https://js-toolkit-v4.studiometa.dev/utils/focus.html#saveactiveelement
|
|
@@ -14,5 +13,4 @@ declare function trapFocus(el: HTMLElement, event: KeyboardEvent): void;
|
|
|
14
13
|
* @link https://js-toolkit-v4.studiometa.dev/utils/focus.html#untrapfocus
|
|
15
14
|
*/
|
|
16
15
|
declare function untrapFocus(): void;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { saveActiveElement, trapFocus, untrapFocus };
|
package/dist/utils/focus.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getSharedRuntimeSlot } from "../shared-runtime.js";
|
|
2
|
-
|
|
2
|
+
// src/utils/focus.ts
|
|
3
3
|
/** What tab navigation can reach, in document order. */
|
|
4
4
|
const FOCUSABLE = [
|
|
5
5
|
"a[href]:not([tabindex^=\"-\"]):not([inert])",
|
|
@@ -57,7 +57,6 @@ function untrapFocus() {
|
|
|
57
57
|
if (state.focusedBefore instanceof HTMLElement) state.focusedBefore.focus();
|
|
58
58
|
state.focusedBefore = null;
|
|
59
59
|
}
|
|
60
|
-
//#endregion
|
|
61
60
|
export { saveActiveElement, trapFocus, untrapFocus };
|
|
62
61
|
|
|
63
62
|
//# sourceMappingURL=focus.js.map
|
package/dist/utils/history.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/history.d.ts
|
|
2
1
|
/** Update the URL without navigating, from the parts of it a component owns. */
|
|
3
2
|
interface HistoryOptions {
|
|
4
3
|
/** The pathname. Defaults to the current one. */
|
|
@@ -33,5 +32,4 @@ declare function historyPush(options: HistoryOptions, data?: unknown, title?: st
|
|
|
33
32
|
* @link https://js-toolkit-v4.studiometa.dev/utils/history.html#historyreplace
|
|
34
33
|
*/
|
|
35
34
|
declare function historyReplace(options: HistoryOptions, data?: unknown, title?: string): void;
|
|
36
|
-
//#endregion
|
|
37
35
|
export { HistoryOptions, SearchParamInput, historyPush, historyReplace, objectToURLSearchParams };
|