@ethlete/cdk 5.0.0-next.6 → 5.0.0-next.8

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,17 @@
1
1
  # @ethlete/cdk
2
2
 
3
+ ## 5.0.0-next.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4721513`](https://github.com/ethlete-io/ethdk/commit/47215130cd9b06aad096c441282ae4e32201e3d8) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix overlays throwing if opened from within a reactive context
8
+
9
+ ## 5.0.0-next.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`f0a47a0`](https://github.com/ethlete-io/ethdk/commit/f0a47a08b9e178c9317f28d1f4ae7daa5e3a3901) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix angular throwing NG0602 if a overlay gets opened from within a effect
14
+
3
15
  ## 5.0.0-next.6
4
16
 
5
17
  ### Minor Changes
@@ -6295,8 +6295,8 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
6295
6295
  const overlayPaneEl = cdkRef.overlayRef.overlayElement;
6296
6296
  const backdropEl = cdkRef.overlayRef.backdropElement;
6297
6297
  const overlayWrapper = cdkRef.overlayRef.hostElement;
6298
- const strategyBreakpoints = runInInjectionContext(childInjector, () => config.strategies?.() ?? []);
6299
- const breakpointMatchResults = runInInjectionContext(childInjector, () => strategyBreakpoints.map((breakpointEntry) => breakpointEntry.breakpoint
6298
+ const strategyBreakpoints = untracked(() => runInInjectionContext(childInjector, () => config.strategies?.() ?? []));
6299
+ const breakpointMatchResults = untracked(() => runInInjectionContext(childInjector, () => strategyBreakpoints.map((breakpointEntry) => breakpointEntry.breakpoint
6300
6300
  ? {
6301
6301
  isActive: breakpointObserver.observeBreakpoint({ min: breakpointEntry.breakpoint }),
6302
6302
  strategy: breakpointEntry.strategy,
@@ -6310,7 +6310,7 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
6310
6310
  isActive: signal(true),
6311
6311
  strategy: breakpointEntry.strategy,
6312
6312
  size: 0,
6313
- }));
6313
+ })));
6314
6314
  const getHighestMatchedStrategy = () => {
6315
6315
  const activeBreakpoints = breakpointMatchResults.filter((entry) => entry.isActive());
6316
6316
  return activeBreakpoints.reduce((prev, curr) => (prev.size > curr.size ? prev : curr)).strategy;
@@ -6324,7 +6324,7 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
6324
6324
  previousStrategy: prev?.source,
6325
6325
  }) });
6326
6326
  let isFirstRun = true;
6327
- effect(() => {
6327
+ untracked(() => effect(() => {
6328
6328
  const { currentStrategy, previousStrategy } = highestMatchedStrategy();
6329
6329
  if (isFirstRun) {
6330
6330
  isFirstRun = false;
@@ -6333,7 +6333,7 @@ const [provideOverlayManager, injectOverlayManager] = createRootProvider(() => {
6333
6333
  untracked(() => {
6334
6334
  applyStrategy(currentStrategy, previousStrategy, { containerEl, overlayPaneEl, backdropEl, overlayWrapper }, config, cdkRef, overlayRef);
6335
6335
  });
6336
- }, { injector: childInjector });
6336
+ }, { injector: childInjector }));
6337
6337
  };
6338
6338
  const applyStrategy = (currStrategy, prevStrategy, elements, config, cdkRef, overlayRef) => {
6339
6339
  const { containerEl, overlayPaneEl, backdropEl, overlayWrapper } = elements;