@ethlete/cdk 5.0.0-next.3 → 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 +6 -0
- package/fesm2022/ethlete-cdk.mjs +4 -1
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/cdk
|
|
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)! - Fix et picture displaying nothing if a data uri gets passed as a source
|
|
8
|
+
|
|
3
9
|
## 5.0.0-next.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/fesm2022/ethlete-cdk.mjs
CHANGED
|
@@ -17034,6 +17034,9 @@ const extractFirstImageUrl = (source) => {
|
|
|
17034
17034
|
const srcString = typeof source === 'string' ? source : source?.srcset;
|
|
17035
17035
|
if (!srcString)
|
|
17036
17036
|
return null;
|
|
17037
|
+
if (srcString.trimStart().startsWith('data:')) {
|
|
17038
|
+
return srcString.trim() || null;
|
|
17039
|
+
}
|
|
17037
17040
|
const srcsetParts = srcString.split(',').map((part) => part.trim());
|
|
17038
17041
|
if (srcsetParts.length > 0) {
|
|
17039
17042
|
const firstPart = srcsetParts[0];
|
|
@@ -17094,7 +17097,7 @@ class PictureComponent {
|
|
|
17094
17097
|
this.defaultSrcFallbackUrl = computed(() => extractFirstImageUrl(this.defaultSourceWithConfig()), ...(ngDevMode ? [{ debugName: "defaultSrcFallbackUrl" }] : []));
|
|
17095
17098
|
}
|
|
17096
17099
|
_combineWithConfig(src) {
|
|
17097
|
-
if (!this._config?.baseUrl || src.srcset.startsWith('http')) {
|
|
17100
|
+
if (!this._config?.baseUrl || src.srcset.startsWith('http') || src.srcset.startsWith('data:')) {
|
|
17098
17101
|
return src;
|
|
17099
17102
|
}
|
|
17100
17103
|
const shouldAppendSlash = !this._config.baseUrl.endsWith('/') && !src.srcset.startsWith('/');
|