@descope-ui/descope-timer 0.0.5 → 0.0.7
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 +13 -0
- package/package.json +4 -4
- package/src/component/TimerClass.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.0.7](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-timer-0.0.6...@descope-ui/descope-timer-0.0.7) (2025-06-03)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@descope-ui/descope-icon` updated to version `0.0.8`
|
|
10
|
+
## [0.0.6](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-timer-0.0.5...@descope-ui/descope-timer-0.0.6) (2025-05-28)
|
|
11
|
+
|
|
12
|
+
### Dependency Updates
|
|
13
|
+
|
|
14
|
+
* `e2e-utils` updated to version `0.0.1`
|
|
15
|
+
* `@descope-ui/common` updated to version `0.0.12`
|
|
16
|
+
* `@descope-ui/theme-globals` updated to version `0.0.12`
|
|
17
|
+
* `@descope-ui/descope-icon` updated to version `0.0.7`
|
|
5
18
|
## [0.0.5](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-timer-0.0.4...@descope-ui/descope-timer-0.0.5) (2025-04-29)
|
|
6
19
|
|
|
7
20
|
### Dependency Updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope-ui/descope-timer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./src/component/index.js"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"test-drivers": "0.0.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@descope-ui/common": "0.0.
|
|
22
|
-
"@descope-ui/theme-globals": "0.0.
|
|
23
|
-
"@descope-ui/descope-icon": "0.0.
|
|
21
|
+
"@descope-ui/common": "0.0.12",
|
|
22
|
+
"@descope-ui/theme-globals": "0.0.12",
|
|
23
|
+
"@descope-ui/descope-icon": "0.0.8"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"link-workspace-packages": false
|
|
@@ -38,7 +38,7 @@ class RawTimer extends BaseClass {
|
|
|
38
38
|
|
|
39
39
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
|
40
40
|
<div class="wrapper">
|
|
41
|
-
<descope-icon src
|
|
41
|
+
<descope-icon src="${clockIcon}" class="icon"></descope-icon>
|
|
42
42
|
<div class="timer"></div>
|
|
43
43
|
</div>
|
|
44
44
|
`;
|
|
@@ -138,7 +138,7 @@ class RawTimer extends BaseClass {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
#toggleIcon(val) {
|
|
141
|
-
this.icon.classList.toggle('hidden', val
|
|
141
|
+
this.icon.classList.toggle('hidden', val);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
#handlePause(paused) {
|
|
@@ -162,7 +162,7 @@ class RawTimer extends BaseClass {
|
|
|
162
162
|
this.reset();
|
|
163
163
|
}
|
|
164
164
|
if (attrName === 'hide-icon') {
|
|
165
|
-
this.#toggleIcon(newValue);
|
|
165
|
+
this.#toggleIcon(newValue === 'true');
|
|
166
166
|
}
|
|
167
167
|
if (attrName === 'paused') {
|
|
168
168
|
this.#handlePause(newValue === 'true');
|