@ethlete/components 1.0.0-next.50 → 1.0.0-next.51
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-next.51
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3063](https://github.com/ethlete-io/ethdk/pull/3063) [`37067ce`](https://github.com/ethlete-io/ethdk/commit/37067cee67c5cd360360a5f59c29f58afc08e62c) Thanks [@TomTomB](https://github.com/TomTomB)! - A single-scheme app no longer needs a root `etProvideSurface`: its default surface paints `:root` unconditionally once the surface CSS is regenerated, and the outermost provider resolves it through the new `injectDefaultSurfaceTheme()` / `injectSurfaceType()`.
|
|
8
|
+
|
|
3
9
|
## 1.0.0-next.50
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, input, booleanAttribute, signal, computed, effect, untracked, Directive, inject, afterNextRender, DestroyRef, TemplateRef, ElementRef, model, linkedSignal, ViewEncapsulation, Component, numberAttribute, contentChildren, Injector, output, runInInjectionContext, contentChild, NgZone, ApplicationRef, viewChild, ViewContainerRef, createEnvironmentInjector, DOCUMENT, EnvironmentInjector, inputBinding, createComponent, isSignal, assertInInjectionContext, isDevMode as isDevMode$1, provideEnvironmentInitializer, viewChildren, afterRenderEffect, outputBinding, afterEveryRender, PLATFORM_ID } from '@angular/core';
|
|
3
3
|
import * as i1 from '@ethlete/core';
|
|
4
|
-
import { injectHostElement, RuntimeError, createComponentId, ProvideColorDirective, defineLabels, toProvideFn, toInjectFn, toToken, injectStyleManager, SurfaceInteractiveDirective, createCanAnimateSignal, ColorInteractiveDirective, injectSuccessTheme, injectWarningTheme, injectErrorTheme, injectLocale, defineStaticRootProvider, inferMimeType, injectColorThemes, injectRenderer, ProvideSurfaceDirective, COLOR_PROVIDER, SURFACE_PROVIDER, injectSurfaceThemes, injectSurfaceThemesPrefix, injectSurfaceContextTracker, injectBoundaryElement, ANIMATED_LIFECYCLE_TOKEN, resolveAppRootColorProvider, resolveSurfaceByElevation, createCssSurfaceName, provideBoundaryElement, AnimatedLifecycleDirective, injectBreakpointObserver, isHTMLElement, equal, animationDebugLog, resolveOverlayLayer, defineRootProvider, injectOverlayRuntime, anchoredOverlayPosition, enableAnchoredOverlayPositionExtras, randomId, forceReflow, nextFrame, elementCanScroll, matchesReducedMotion, createSwipeTracker, ScrollObserverDirective, signalElementScrollState, ScrollObserverStartDirective, ScrollObserverEndDirective, applyHostListener, injectQueryParam, defineProvider, fromNextFrame, injectRoute, createUnsavedChangesTracker, createDocumentElementSignal, AnimatedIfDirective, signalElementDimensions, applyInitialFocus, syncSignal, AutoSurfaceDirective, setInputSignal, injectTemplateRef, signalHostElementScrollState, applyStructuredDataBinding, typedBreakpointTransform, signalElementChildren, signalElementIntersection, signalHostAttributes, signalHostClasses, signalHostStyles, getScrollContainerTarget, getScrollItemTarget, getElementScrollCoordinates, provideBreakpointInstance, signalClasses, useCursorDragScroll, signalStyles, getScrollSnapTarget, injectPrefersReducedMotion, injectIsDocumentVisible, signalHostElementIntersection, clamp as clamp$1, copyToClipboard, injectAnimatedBlockSize, injectObserveBreakpoint, signalDeferredLoading, AnimatableDirective, ColorInteractiveContainerDirective, ColorInteractiveExcludeDirective, createFlipAnimation, createObjectUrlHandle, createFlipAnimationGroup, focusElement, isFocusable, getFocusableElements, ColorInteractiveHasFocusDirective, dragGestureFrom, injectFocusVisibleTracker, htmlToMarkdown, markdownToHtml, injectHasTouchInput, signalHostElementDimensions, DragHandleDirective, ResizeHandlesComponent, numberBreakpointTransform, applyLinkBinding, applyHeadTitleBinding, injectColorPalette, injectViewportSize, injectFileDownload, injectRouterEvent, canUseSessionMemory, createAutoSessionMemoryKey, createSessionMemory } from '@ethlete/core';
|
|
4
|
+
import { injectHostElement, RuntimeError, createComponentId, ProvideColorDirective, defineLabels, toProvideFn, toInjectFn, toToken, injectStyleManager, SurfaceInteractiveDirective, createCanAnimateSignal, ColorInteractiveDirective, injectSuccessTheme, injectWarningTheme, injectErrorTheme, injectLocale, defineStaticRootProvider, inferMimeType, injectColorThemes, injectRenderer, ProvideSurfaceDirective, COLOR_PROVIDER, SURFACE_PROVIDER, injectSurfaceThemes, injectSurfaceThemesPrefix, injectSurfaceContextTracker, injectBoundaryElement, ANIMATED_LIFECYCLE_TOKEN, resolveAppRootColorProvider, resolveSurfaceByElevation, createCssSurfaceName, provideBoundaryElement, AnimatedLifecycleDirective, injectBreakpointObserver, isHTMLElement, equal, animationDebugLog, resolveOverlayLayer, defineRootProvider, injectOverlayRuntime, anchoredOverlayPosition, enableAnchoredOverlayPositionExtras, randomId, forceReflow, nextFrame, elementCanScroll, matchesReducedMotion, createSwipeTracker, ScrollObserverDirective, signalElementScrollState, ScrollObserverStartDirective, ScrollObserverEndDirective, applyHostListener, injectQueryParam, defineProvider, fromNextFrame, injectRoute, createUnsavedChangesTracker, createDocumentElementSignal, AnimatedIfDirective, signalElementDimensions, applyInitialFocus, syncSignal, AutoSurfaceDirective, setInputSignal, injectTemplateRef, signalHostElementScrollState, applyStructuredDataBinding, typedBreakpointTransform, signalElementChildren, signalElementIntersection, signalHostAttributes, signalHostClasses, signalHostStyles, getScrollContainerTarget, getScrollItemTarget, getElementScrollCoordinates, provideBreakpointInstance, signalClasses, useCursorDragScroll, signalStyles, getScrollSnapTarget, injectPrefersReducedMotion, injectIsDocumentVisible, signalHostElementIntersection, clamp as clamp$1, copyToClipboard, injectAnimatedBlockSize, injectObserveBreakpoint, signalDeferredLoading, AnimatableDirective, ColorInteractiveContainerDirective, ColorInteractiveExcludeDirective, createFlipAnimation, createObjectUrlHandle, createFlipAnimationGroup, focusElement, isFocusable, getFocusableElements, ColorInteractiveHasFocusDirective, dragGestureFrom, injectFocusVisibleTracker, htmlToMarkdown, markdownToHtml, injectHasTouchInput, signalHostElementDimensions, DragHandleDirective, ResizeHandlesComponent, numberBreakpointTransform, applyLinkBinding, applyHeadTitleBinding, injectColorPalette, injectSurfaceType, injectViewportSize, injectFileDownload, injectRouterEvent, canUseSessionMemory, createAutoSessionMemoryKey, createSessionMemory } from '@ethlete/core';
|
|
5
5
|
import { NgTemplateOutlet, NgComponentOutlet, Location, DOCUMENT as DOCUMENT$1, isPlatformBrowser } from '@angular/common';
|
|
6
6
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
7
7
|
import { format, startOfWeek, startOfDay, endOfWeek, isBefore, addDays, endOfMonth, startOfMonth, isSameYear, isSameMonth, isSameDay, startOfYear, isAfter, addYears, addMonths, setMonth, setYear, getDate, setDate, lastDayOfMonth, getWeek, endOfYear, parse, isValid, setSeconds, setMinutes, setHours, setMilliseconds, endOfDay, eachDayOfInterval, differenceInCalendarDays, addMinutes, differenceInMinutes, addHours } from 'date-fns';
|
|
@@ -55094,6 +55094,7 @@ let nextHeadingId = 0;
|
|
|
55094
55094
|
class StreamConsentComponent {
|
|
55095
55095
|
constructor() {
|
|
55096
55096
|
this.parentSurfaceProvider = inject(SURFACE_PROVIDER, { optional: true, skipSelf: true });
|
|
55097
|
+
this.surfaceType = injectSurfaceType();
|
|
55097
55098
|
this.config = injectStreamConsentConfig();
|
|
55098
55099
|
this.labels = injectStreamLabels();
|
|
55099
55100
|
this.surfaceThemes = injectSurfaceThemes({ optional: true });
|
|
@@ -55102,7 +55103,7 @@ class StreamConsentComponent {
|
|
|
55102
55103
|
const themes = this.surfaceThemes;
|
|
55103
55104
|
if (!themes)
|
|
55104
55105
|
return null;
|
|
55105
|
-
const type = this.
|
|
55106
|
+
const type = this.surfaceType();
|
|
55106
55107
|
const elevation = (this.parentSurfaceProvider?.elevation() ?? 0) + 1;
|
|
55107
55108
|
return resolveSurfaceByElevation(themes, type, elevation)?.name ?? null;
|
|
55108
55109
|
}, /* @ts-ignore */
|
|
@@ -55176,6 +55177,7 @@ class StreamPlayerErrorComponent {
|
|
|
55176
55177
|
constructor() {
|
|
55177
55178
|
this.errorDirective = inject(STREAM_PLAYER_ERROR_TOKEN);
|
|
55178
55179
|
this.parentSurfaceProvider = inject(SURFACE_PROVIDER, { optional: true, skipSelf: true });
|
|
55180
|
+
this.surfaceType = injectSurfaceType();
|
|
55179
55181
|
this.config = injectStreamPlayerErrorConfig();
|
|
55180
55182
|
this.labels = injectStreamLabels();
|
|
55181
55183
|
this.surfaceThemes = injectSurfaceThemes({ optional: true });
|
|
@@ -55183,7 +55185,7 @@ class StreamPlayerErrorComponent {
|
|
|
55183
55185
|
const themes = this.surfaceThemes;
|
|
55184
55186
|
if (!themes)
|
|
55185
55187
|
return null;
|
|
55186
|
-
const type = this.
|
|
55188
|
+
const type = this.surfaceType();
|
|
55187
55189
|
const elevation = (this.parentSurfaceProvider?.elevation() ?? 0) + 1;
|
|
55188
55190
|
return resolveSurfaceByElevation(themes, type, elevation)?.name ?? null;
|
|
55189
55191
|
}, /* @ts-ignore */
|
|
@@ -57012,6 +57014,7 @@ class PipSlotPlaceholderComponent {
|
|
|
57012
57014
|
constructor() {
|
|
57013
57015
|
this.slotPlayerId = inject(STREAM_SLOT_PLAYER_ID_TOKEN);
|
|
57014
57016
|
this.parentSurfaceProvider = inject(SURFACE_PROVIDER, { optional: true, skipSelf: true });
|
|
57017
|
+
this.surfaceType = injectSurfaceType();
|
|
57015
57018
|
this.pipManager = injectPipManager();
|
|
57016
57019
|
this.config = injectPipSlotPlaceholderConfig();
|
|
57017
57020
|
this.labels = injectStreamLabels();
|
|
@@ -57022,7 +57025,7 @@ class PipSlotPlaceholderComponent {
|
|
|
57022
57025
|
const themes = this.surfaceThemes;
|
|
57023
57026
|
if (!themes)
|
|
57024
57027
|
return null;
|
|
57025
|
-
const type = this.
|
|
57028
|
+
const type = this.surfaceType();
|
|
57026
57029
|
const elevation = (this.parentSurfaceProvider?.elevation() ?? 0) + 1;
|
|
57027
57030
|
return resolveSurfaceByElevation(themes, type, elevation)?.name ?? null;
|
|
57028
57031
|
}, /* @ts-ignore */
|
|
@@ -57415,6 +57418,7 @@ class StreamPlayerSlotDirective {
|
|
|
57415
57418
|
this.playerComponent = inject(STREAM_PLAYER_COMPONENT_TOKEN);
|
|
57416
57419
|
this.provideSurface = inject(ProvideSurfaceDirective);
|
|
57417
57420
|
this.parentSurfaceProvider = inject(SURFACE_PROVIDER, { optional: true, skipSelf: true });
|
|
57421
|
+
this.surfaceType = injectSurfaceType();
|
|
57418
57422
|
this.surfaceThemes = injectSurfaceThemes({ optional: true });
|
|
57419
57423
|
this.styleManager = injectStyleManager();
|
|
57420
57424
|
this.streamSlotPriority = input(false, { ...(ngDevMode ? { debugName: "streamSlotPriority" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -57424,7 +57428,7 @@ class StreamPlayerSlotDirective {
|
|
|
57424
57428
|
const themes = this.surfaceThemes;
|
|
57425
57429
|
if (!themes)
|
|
57426
57430
|
return null;
|
|
57427
|
-
const type = this.
|
|
57431
|
+
const type = this.surfaceType();
|
|
57428
57432
|
const elevation = (this.parentSurfaceProvider?.elevation() ?? 0) + 1;
|
|
57429
57433
|
return resolveSurfaceByElevation(themes, type, elevation);
|
|
57430
57434
|
}, /* @ts-ignore */
|
|
@@ -66319,7 +66323,7 @@ const TREE_IMPORTS = [TreeComponent, TreeDirective, TreeNodeDirective, TreeNodeD
|
|
|
66319
66323
|
|
|
66320
66324
|
// Generated from package.json by tools/scripts/generate-version.js - do not edit.
|
|
66321
66325
|
/** The version of `@ethlete/components` this build was cut from. */
|
|
66322
|
-
const COMPONENTS_VERSION = '1.0.0-next.
|
|
66326
|
+
const COMPONENTS_VERSION = '1.0.0-next.51';
|
|
66323
66327
|
|
|
66324
66328
|
/**
|
|
66325
66329
|
* Generated bundle index. Do not edit.
|