@ethlete/core 5.0.0-next.2 → 5.0.0-next.4

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/core
2
2
 
3
+ ## 5.0.0-next.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2923](https://github.com/ethlete-io/ethdk/pull/2923) [`5c5fc57`](https://github.com/ethlete-io/ethdk/commit/5c5fc57e2e45b5fd78f0d20bacf0ec310cc84e2b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Support inferring mime types from data uris
8
+
9
+ ## 5.0.0-next.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`58525cd`](https://github.com/ethlete-io/ethdk/commit/58525cd7123c8e20739b0841b2f0abf5920296f1) Thanks [@TomTomB](https://github.com/TomTomB)! - Fix error NG0600 created by using the focus visible provider
14
+
3
15
  ## 5.0.0-next.2
4
16
 
5
17
  ### Patch Changes
@@ -2407,20 +2407,20 @@ const [provideFocusVisibleTracker, injectFocusVisibleTracker, FOCUS_VISIBLE_TRAC
2407
2407
  const onKeyDown = (e) => {
2408
2408
  if (e.key === 'Tab' || e.key === 'Shift' || e.key === 'Meta' || e.key === 'Alt' || e.key === 'Control') {
2409
2409
  hadKeyboardEvent = true;
2410
- isFocusVisible.set(true);
2410
+ queueMicrotask(() => isFocusVisible.set(true));
2411
2411
  }
2412
2412
  };
2413
2413
  const onPointerDown = () => {
2414
2414
  hadKeyboardEvent = false;
2415
- isFocusVisible.set(false);
2415
+ queueMicrotask(() => isFocusVisible.set(false));
2416
2416
  };
2417
2417
  const onFocus = () => {
2418
2418
  if (hadKeyboardEvent) {
2419
- isFocusVisible.set(true);
2419
+ queueMicrotask(() => isFocusVisible.set(true));
2420
2420
  }
2421
2421
  };
2422
2422
  const onBlur = () => {
2423
- isFocusVisible.set(false);
2423
+ queueMicrotask(() => isFocusVisible.set(false));
2424
2424
  };
2425
2425
  document.addEventListener('keydown', onKeyDown, true);
2426
2426
  document.addEventListener('mousedown', onPointerDown, true);
@@ -3759,6 +3759,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
3759
3759
  const inferMimeType = (srcset) => {
3760
3760
  if (!srcset)
3761
3761
  return null;
3762
+ if (srcset.startsWith('data:')) {
3763
+ const match = /^data:([^;,]+)/.exec(srcset);
3764
+ return match?.[1] ?? null;
3765
+ }
3762
3766
  const urls = srcset.split(',');
3763
3767
  const firstUrl = urls[0];
3764
3768
  if (!firstUrl)