@ethlete/core 5.0.0-next.55 → 5.0.0-next.56

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,16 @@
1
1
  # @ethlete/core
2
2
 
3
+ ## 5.0.0-next.56
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3075](https://github.com/ethlete-io/ethdk/pull/3075) [`1d38e7e`](https://github.com/ethlete-io/ethdk/commit/1d38e7e0a025769f065d8ca7d506cb75ad89139a) Thanks [@github-actions](https://github.com/apps/github-actions)! - `et update` moves the `@ethlete/*` packages to a newer version, runs the codemods those versions
8
+ declare in their own `migrations.json`, and reports what needs a decision or an agent.
9
+
10
+ - [#3075](https://github.com/ethlete-io/ethdk/pull/3075) [`f19d4ae`](https://github.com/ethlete-io/ethdk/commit/f19d4ae835dc5171f328c660d44870aaf3bc8f77) Thanks [@github-actions](https://github.com/apps/github-actions)! - Let overlay content handle `Escape` first, so the command palette clears its query
11
+ before closing. A `strategies` array without a breakpoint-less entry now falls back
12
+ to its smallest one instead of throwing.
13
+
3
14
  ## 5.0.0-next.55
4
15
 
5
16
  ### Patch Changes
@@ -8141,7 +8141,9 @@ const OVERLAY_RUNTIME_DEF = /* @__PURE__ */ defineRootProvider(() => {
8141
8141
  const closeOnEscape = config.closeOnEscape ?? true;
8142
8142
  if (closeOnEscape) {
8143
8143
  const onKeyDown = (event) => {
8144
- if (event.key !== 'Escape' || !isTopMost(overlayRef)) {
8144
+ if (event.key !== 'Escape' ||
8145
+ event.defaultPrevented ||
8146
+ !isTopMost(overlayRef)) {
8145
8147
  return;
8146
8148
  }
8147
8149
  if (!interactiveCloseReady) {
@@ -8151,8 +8153,9 @@ const OVERLAY_RUNTIME_DEF = /* @__PURE__ */ defineRootProvider(() => {
8151
8153
  event.preventDefault();
8152
8154
  overlayRef.close(undefined, 'escape');
8153
8155
  };
8154
- targetDocument.addEventListener('keydown', onKeyDown, true);
8155
- cleanupFns.push(() => targetDocument.removeEventListener('keydown', onKeyDown, true));
8156
+ // bubble phase so content inside the overlay can preventDefault or stopPropagation an Escape first
8157
+ targetDocument.addEventListener('keydown', onKeyDown);
8158
+ cleanupFns.push(() => targetDocument.removeEventListener('keydown', onKeyDown));
8156
8159
  }
8157
8160
  const closeOnOutsidePointer = config.closeOnOutsidePointer ?? config.modal === false;
8158
8161
  if (closeOnOutsidePointer) {
@@ -10160,7 +10163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
10160
10163
 
10161
10164
  // Generated from package.json by tools/scripts/generate-version.js - do not edit.
10162
10165
  /** The version of `@ethlete/core` this build was cut from. */
10163
- const CORE_VERSION = '5.0.0-next.55';
10166
+ const CORE_VERSION = '5.0.0-next.56';
10164
10167
 
10165
10168
  /**
10166
10169
  * Generated bundle index. Do not edit.