@descope-ui/descope-image 2.2.12 → 2.2.13
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 +2 -0
- package/package.json +5 -5
- package/src/component/ImageClass.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.2.13](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.12...web-components-ui-2.2.13) (2025-12-21)
|
|
6
|
+
|
|
5
7
|
## [2.2.12](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.11...web-components-ui-2.2.12) (2025-12-18)
|
|
6
8
|
|
|
7
9
|
## [2.2.11](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.10...web-components-ui-2.2.11) (2025-12-02)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope-ui/descope-image",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.13",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./src/component/index.js"
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@playwright/test": "1.38.1",
|
|
17
|
-
"e2e-utils": "2.2.
|
|
18
|
-
"test-assets": "2.2.
|
|
17
|
+
"e2e-utils": "2.2.13",
|
|
18
|
+
"test-assets": "2.2.13"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"dompurify": "^3.1.6",
|
|
22
|
-
"@descope-ui/common": "2.2.
|
|
23
|
-
"@descope-ui/theme-globals": "2.2.
|
|
22
|
+
"@descope-ui/common": "2.2.13",
|
|
23
|
+
"@descope-ui/theme-globals": "2.2.13"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"link-workspace-packages": false
|
|
@@ -56,7 +56,7 @@ class RawImage extends createBaseClass({
|
|
|
56
56
|
|
|
57
57
|
init() {
|
|
58
58
|
super.init?.();
|
|
59
|
-
this.toggleVisibility(this.
|
|
59
|
+
this.toggleVisibility(this.getSrc);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
onThemeChange() {
|
|
@@ -83,7 +83,7 @@ class RawImage extends createBaseClass({
|
|
|
83
83
|
return this.getAttribute(`src-${this.currentThemeName}`);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
get
|
|
86
|
+
get getSrc() {
|
|
87
87
|
return this.themeSrc || this.legacySrc;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -103,9 +103,9 @@ class RawImage extends createBaseClass({
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
renderImage() {
|
|
106
|
-
this.toggleVisibility(this.
|
|
106
|
+
this.toggleVisibility(this.getSrc);
|
|
107
107
|
|
|
108
|
-
createImage(this.
|
|
108
|
+
createImage(this.getSrc, this.altText).then((res) => {
|
|
109
109
|
this.innerHTML = '';
|
|
110
110
|
if (res) {
|
|
111
111
|
this.updateFillColor(res);
|
|
@@ -117,7 +117,7 @@ class RawImage extends createBaseClass({
|
|
|
117
117
|
// render only when src attribute matches current theme
|
|
118
118
|
shouldRender(src) {
|
|
119
119
|
const srcVal = this.getAttribute(src);
|
|
120
|
-
return this.
|
|
120
|
+
return this.getSrc === srcVal;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
attributeChangedCallback(attrName, oldValue, newValue) {
|