@ethlete/core 4.30.0 → 4.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { SafeHtml } from '@angular/platform-browser';
2
2
  import * as _ethlete_types from '@ethlete/types';
3
3
  import { JsonLD, ParticipantViewUnion, MatchListView, MatchRankingView, StageType } from '@ethlete/types';
4
4
  import * as i0 from '@angular/core';
5
- import { Type, QueryList, InjectionToken, OnInit, AfterViewInit, ElementRef, ComponentRef, StaticProvider, OnDestroy, EventEmitter, AfterContentInit, Signal, PipeTransform, TrackByFunction, WritableSignal, DestroyRef, TemplateRef, Injector, EffectRef } from '@angular/core';
5
+ import { QueryList, Type, InjectionToken, OnInit, AfterViewInit, ElementRef, ComponentRef, StaticProvider, OnDestroy, EventEmitter, AfterContentInit, Signal, PipeTransform, TrackByFunction, WritableSignal, DestroyRef, TemplateRef, Injector, Provider, InjectOptions, EffectRef } from '@angular/core';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable, Subject } from 'rxjs';
8
8
  import * as i1 from '@angular/common';
@@ -1381,6 +1381,53 @@ declare const getFormGroupValue: <T extends FormGroup>(formGroup: T) => Record<s
1381
1381
 
1382
1382
  declare const injectHostElement: <T = HTMLElement>() => T;
1383
1383
  declare const injectTemplateRef: <C = unknown>() => TemplateRef<C>;
1384
+ type CreateProviderOptions = {
1385
+ /**
1386
+ * Optional name for the provider, useful for debugging.
1387
+ * If not provided, the name will be a generated string.
1388
+ */
1389
+ name?: string;
1390
+ /**
1391
+ * Optional existing InjectionToken to also provide the created provider under.
1392
+ */
1393
+ extraInjectionToken?: InjectionToken<unknown>;
1394
+ };
1395
+ type ProviderResult<T> = readonly [
1396
+ provide: () => Provider[],
1397
+ inject: {
1398
+ (): T;
1399
+ (options: InjectOptions & {
1400
+ optional?: false;
1401
+ }): T;
1402
+ (options: InjectOptions): T | null;
1403
+ },
1404
+ token: InjectionToken<T>
1405
+ ];
1406
+ type StaticProviderResult<T> = readonly [
1407
+ provide: (valueOverride?: Partial<T>) => Provider[],
1408
+ inject: {
1409
+ (): T;
1410
+ (options: InjectOptions & {
1411
+ optional?: false;
1412
+ }): T;
1413
+ (options: InjectOptions): T | null;
1414
+ },
1415
+ token: InjectionToken<T>
1416
+ ];
1417
+ type RootProviderResult<T> = readonly [
1418
+ inject: {
1419
+ (): T;
1420
+ (options: InjectOptions & {
1421
+ optional?: false;
1422
+ }): T;
1423
+ (options: InjectOptions): T | null;
1424
+ },
1425
+ token: InjectionToken<T>
1426
+ ];
1427
+ declare const createProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
1428
+ declare const createRootProvider: <T>(factory: () => T, options?: CreateProviderOptions) => ProviderResult<T>;
1429
+ declare const createStaticProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
1430
+ declare const createStaticRootProvider: <T>(defaultValue?: T, options?: CreateProviderOptions) => StaticProviderResult<T>;
1384
1431
 
1385
1432
  declare const getIntersectionInfo: (intersections: IntersectionObserverEntry[]) => {
1386
1433
  partial: {
@@ -1798,8 +1845,15 @@ declare const injectRouteData: () => Signal<_angular_router.Data>;
1798
1845
  declare const injectRouteTitle: <T = string | null>(config?: InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1799
1846
  /** Inject all currently available path parameters as a signal */
1800
1847
  declare const injectPathParams: () => Signal<_angular_router.Params>;
1848
+ type InjectQueryParamConfig<T> = InjectUtilTransformConfig<string | null, T> & {
1849
+ /**
1850
+ * If true, the initial value will be read from the browser's url.
1851
+ * Note that this will not work with arrays or complex objects.
1852
+ */
1853
+ requireSync?: boolean;
1854
+ };
1801
1855
  /** Inject a specific query parameter as a signal */
1802
- declare const injectQueryParam: <T = string | null>(key: string, config?: InjectUtilTransformConfig<string | null, T>) => Signal<T>;
1856
+ declare const injectQueryParam: <T = string | null>(key: string, config?: InjectQueryParamConfig<T>) => Signal<T>;
1803
1857
  /** Inject a specific route data item as a signal */
1804
1858
  declare const injectRouteDataItem: <T = unknown>(key: string, config?: InjectUtilTransformConfig<unknown, T>) => Signal<T>;
1805
1859
  /** Inject a specific path parameter as a signal */
@@ -1964,5 +2018,5 @@ declare const Validators: {
1964
2018
  readonly ValidateAtLeastOneRequired: (config: ValidateAtLeastOneRequiredConfig) => _angular_forms.ValidatorFn;
1965
2019
  };
1966
2020
 
1967
- export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, ActiveSelectionModel, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, CURSOR_DRAG_SCROLLING_CLASS, CURSOR_DRAG_SCROLLING_PREPARED_CLASS, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEBUG_TOKEN, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DISABLE_LOGGER_PARAM, DebugDirective, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_ELEMENT, IS_EMAIL, InferMimeTypePipe, IntersectionObserverFactory, IntersectionObserverService, IsActiveElementDirective, IsArrayNotEmpty, IsElementDirective, IsEmail, KeyPressManager, LetContext, LetDirective, MUST_MATCH, MatchStateType, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, OBSERVE_VISIBILITY_TOKEN, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, ObserveVisibilityDirective, PropsDirective, ROOT_BOUNDARY_TOKEN, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RootBoundaryDirective, RouterStateService, RuntimeError, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SelectionModel, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, ValidateAtLeastOneRequired, Validators, ViewportService, areScrollStatesEqual, bindProps, boundingClientRectToElementRect, buildSignalEffects, clamp, clone, cloneFormGroup, computedTillFalsy, computedTillTruthy, controlValueSignal, controlValueSignalWithPrevious, createCanAnimateSignal, createComponentId, createDependencyStash, createDestroy, createElementDictionary, createElementDimensions, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createLogger, createMediaQueryObservable, createMutationObservable, createPropHandlers, createProps, createReactiveBindings, createResizeObservable, createSetup, debouncedControlValueSignal, deferredSignal, deleteCookie, elementCanScroll, equal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getIntersectionInfo, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectBreakpointIsMatched, injectCanHover, injectCurrentBreakpoint, injectDeviceInputType, injectDisplayOrientation, injectFragment, injectHasPrecisionInput, injectHasTouchInput, injectHostElement, injectIs2Xl, injectIsLandscape, injectIsLg, injectIsMd, injectIsPortrait, injectIsSm, injectIsXl, injectIsXs, injectObserveBreakpoint, injectPathParam, injectPathParamChanges, injectPathParams, injectQueryParam, injectQueryParamChanges, injectQueryParams, injectRoute, injectRouteData, injectRouteDataItem, injectRouteTitle, injectRouterEvent, injectRouterState, injectTemplateRef, injectUrl, isArray, isElementVisible, isEmptyArray, isGroupMatch, isKnockoutMatch, isObject, isObjectArray, isPrimitiveArray, maybeSignalValue, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementLastScrollDirection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementLastScrollDirection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, signalVisibilityChangeClasses, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, transformOrReturn, unbindProps, useCursorDragScroll };
1968
- export type { AlternateLink, AnimatedLifecycleState, AnimatedOverlayComponentBase, AnyTemplateType, BindPropsOptions, Breakpoint, BuildMediaQueryOptions, BuildSignalEffectsConfig, ComponentTemplate, ComponentTypeWithInputs, ControlValueSignalOptions, CreateLoggerConfig, CreatePropsOptions, CurrentElementVisibility, CursorDragScrollDirection, CursorDragScrollOptions, DebouncedControlValueSignalOptions, ElementDimensions, ElementLastScrollDirection, ElementLastScrollDirectionType, ElementRect, ElementScrollState, ElementSize, FacebookCard, FlipAnimationConfig, HostDirective, HostProps, InjectUtilConfig, InjectUtilTransformConfig, IsElementVisibleOptions, LogicalSize, MapLike, MaybeObservable, MaybeSignal, MemoConfig, MemoResolver, NgClassType, NgTemplateTemplate, NormalizedGameResultType, NormalizedMatchParticipant, NormalizedMatchParticipants, NormalizedMatchScore, NullableElementDimensions, ObserveVisibilityChange, ObservedScrollableChild, OpenGraph, Primitive, PropHandlers, Props, PropsAttachedElements, PropsAttachedElementsInternal, PropsInternal, ReactiveAttributes, ReactiveBindingResult, Reference, RouterDisableScrollTopConfig, RouterState, ScrollEnhancementsConfig, ScrollObserverScrollState, ScrollToElementOptions, SelectionModelBinding, SelectionModelOptionValueFn, SelectionModelPropertyPath, SelectionModelTypes, SeoConfig, SignalElementIntersectionOptions, SignalElementScrollStateOptions, Size, StringTemplate, SyncSignalOptions, TemplateRefWithContext, Translatable, TwitterCard, UnbindPropsOptions, ValidateAtLeastOneRequiredConfig, Vec2, ViewportConfig };
2021
+ export { ANIMATABLE_TOKEN, ANIMATED_IF_TOKEN, ANIMATED_LIFECYCLE_TOKEN, AT_LEAST_ONE_REQUIRED, ActiveSelectionModel, AnimatableDirective, AnimatedIfDirective, AnimatedLifecycleDirective, AnimatedOverlayDirective, CURSOR_DRAG_SCROLLING_CLASS, CURSOR_DRAG_SCROLLING_PREPARED_CLASS, ClickObserverFactory, ClickObserverService, ClickOutsideDirective, ContentObserverService, CursorDragScrollDirective, DEBUG_TOKEN, DEFAULT_VIEWPORT_CONFIG, DELAYABLE_TOKEN, DISABLE_LOGGER_PARAM, DebugDirective, DelayableDirective, ET_PROPERTY_REMOVED, FocusVisibleService, IS_ACTIVE_ELEMENT, IS_ARRAY_NOT_EMPTY, IS_ELEMENT, IS_EMAIL, InferMimeTypePipe, IntersectionObserverFactory, IntersectionObserverService, IsActiveElementDirective, IsArrayNotEmpty, IsElementDirective, IsEmail, KeyPressManager, LetContext, LetDirective, MUST_MATCH, MatchStateType, Memo, MustMatch, MutationObserverFactory, NormalizeGameResultTypePipe, NormalizeMatchParticipantsPipe, NormalizeMatchScorePipe, NormalizeMatchStatePipe, NormalizeMatchTypePipe, OBSERVE_SCROLL_STATE, OBSERVE_VISIBILITY_TOKEN, ObserveContentDirective, ObserveResizeDirective, ObserveScrollStateDirective, ObserveVisibilityDirective, PropsDirective, ROOT_BOUNDARY_TOKEN, RUNTIME_ERROR_NO_DATA, RepeatDirective, ResizeObserverFactory, ResizeObserverService, RootBoundaryDirective, RouterStateService, RuntimeError, SCROLL_OBSERVER_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_IGNORE_TARGET_CLASS, SCROLL_OBSERVER_LAST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_FIRST_ELEMENT_CLASS, SCROLL_OBSERVER_OBSERVING_LAST_ELEMENT_CLASS, SEO_DIRECTIVE_TOKEN, ScrollObserverFirstElementDirective, ScrollObserverIgnoreTargetDirective, ScrollObserverLastElementDirective, SelectionModel, SeoDirective, SmartBlockScrollStrategy, StructuredDataComponent, ToArrayPipe, TypedQueryList, VIEWPORT_CONFIG, ValidateAtLeastOneRequired, Validators, ViewportService, areScrollStatesEqual, bindProps, boundingClientRectToElementRect, buildSignalEffects, clamp, clone, cloneFormGroup, computedTillFalsy, computedTillTruthy, controlValueSignal, controlValueSignalWithPrevious, createCanAnimateSignal, createComponentId, createDependencyStash, createDestroy, createElementDictionary, createElementDimensions, createFlipAnimation, createFlipAnimationGroup, createHostProps, createIsRenderedSignal, createLogger, createMediaQueryObservable, createMutationObservable, createPropHandlers, createProps, createProvider, createReactiveBindings, createResizeObservable, createRootProvider, createSetup, createStaticProvider, createStaticRootProvider, debouncedControlValueSignal, deferredSignal, deleteCookie, elementCanScroll, equal, forceReflow, formatRuntimeError, fromNextFrame, getCookie, getDomain, getElementScrollCoordinates, getFormGroupValue, getGroupMatchPoints, getGroupMatchScore, getIntersectionInfo, getKnockoutMatchScore, getMatchScoreSubLine, getObjectProperty, hasCookie, inferMimeType, injectBreakpointIsMatched, injectCanHover, injectCurrentBreakpoint, injectDeviceInputType, injectDisplayOrientation, injectFragment, injectHasPrecisionInput, injectHasTouchInput, injectHostElement, injectIs2Xl, injectIsLandscape, injectIsLg, injectIsMd, injectIsPortrait, injectIsSm, injectIsXl, injectIsXs, injectObserveBreakpoint, injectPathParam, injectPathParamChanges, injectPathParams, injectQueryParam, injectQueryParamChanges, injectQueryParams, injectRoute, injectRouteData, injectRouteDataItem, injectRouteTitle, injectRouterEvent, injectRouterState, injectTemplateRef, injectUrl, isArray, isElementVisible, isEmptyArray, isGroupMatch, isKnockoutMatch, isObject, isObjectArray, isPrimitiveArray, maybeSignalValue, mergeSeoConfig, nextFrame, normalizeGameResultType, normalizeMatchParticipant, normalizeMatchParticipants, normalizeMatchScore, normalizeMatchState, normalizeMatchType, previousSignalValue, provideViewportConfig, round, routerDisableScrollTop, scrollToElement, setCookie, signalAttributes, signalClasses, signalElementChildren, signalElementDimensions, signalElementIntersection, signalElementLastScrollDirection, signalElementMutations, signalElementScrollState, signalHostAttributes, signalHostClasses, signalHostElementDimensions, signalHostElementIntersection, signalHostElementLastScrollDirection, signalHostElementMutations, signalHostElementScrollState, signalHostStyles, signalIsRendered, signalStyles, signalVisibilityChangeClasses, switchQueryListChanges, syncSignal, templateComputed, toArray, toArrayTrackByFn, transformOrReturn, unbindProps, useCursorDragScroll };
2022
+ export type { AlternateLink, AnimatedLifecycleState, AnimatedOverlayComponentBase, AnyTemplateType, BindPropsOptions, Breakpoint, BuildMediaQueryOptions, BuildSignalEffectsConfig, ComponentTemplate, ComponentTypeWithInputs, ControlValueSignalOptions, CreateLoggerConfig, CreatePropsOptions, CreateProviderOptions, CurrentElementVisibility, CursorDragScrollDirection, CursorDragScrollOptions, DebouncedControlValueSignalOptions, ElementDimensions, ElementLastScrollDirection, ElementLastScrollDirectionType, ElementRect, ElementScrollState, ElementSize, FacebookCard, FlipAnimationConfig, HostDirective, HostProps, InjectQueryParamConfig, InjectUtilConfig, InjectUtilTransformConfig, IsElementVisibleOptions, LogicalSize, MapLike, MaybeObservable, MaybeSignal, MemoConfig, MemoResolver, NgClassType, NgTemplateTemplate, NormalizedGameResultType, NormalizedMatchParticipant, NormalizedMatchParticipants, NormalizedMatchScore, NullableElementDimensions, ObserveVisibilityChange, ObservedScrollableChild, OpenGraph, Primitive, PropHandlers, Props, PropsAttachedElements, PropsAttachedElementsInternal, PropsInternal, ProviderResult, ReactiveAttributes, ReactiveBindingResult, Reference, RootProviderResult, RouterDisableScrollTopConfig, RouterState, ScrollEnhancementsConfig, ScrollObserverScrollState, ScrollToElementOptions, SelectionModelBinding, SelectionModelOptionValueFn, SelectionModelPropertyPath, SelectionModelTypes, SeoConfig, SignalElementIntersectionOptions, SignalElementScrollStateOptions, Size, StaticProviderResult, StringTemplate, SyncSignalOptions, TemplateRefWithContext, Translatable, TwitterCard, UnbindPropsOptions, ValidateAtLeastOneRequiredConfig, Vec2, ViewportConfig };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@ethlete/core",
3
- "version": "4.30.0",
3
+ "version": "4.32.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
- "@angular/cdk": "20.2.2",
8
- "@angular/common": "20.3.0",
9
- "@angular/core": "20.3.0",
10
- "@angular/forms": "20.3.0",
11
- "@angular/platform-browser": "20.3.0",
12
- "@angular/router": "20.3.0",
7
+ "@angular/cdk": "20.2.9",
8
+ "@angular/common": "20.3.6",
9
+ "@angular/core": "20.3.6",
10
+ "@angular/forms": "20.3.6",
11
+ "@angular/platform-browser": "20.3.6",
12
+ "@angular/router": "20.3.6",
13
13
  "@ethlete/types": "^1.6.2",
14
14
  "@floating-ui/dom": "1.7.4",
15
15
  "rxjs": "7.8.2"