@descope-ui/descope-timer 0.0.5 → 0.0.6

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
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [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)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `e2e-utils` updated to version `0.0.1`
10
+ * `@descope-ui/common` updated to version `0.0.12`
11
+ * `@descope-ui/theme-globals` updated to version `0.0.12`
12
+ * `@descope-ui/descope-icon` updated to version `0.0.7`
5
13
  ## [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
14
 
7
15
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-timer",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
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.11",
22
- "@descope-ui/theme-globals": "0.0.11",
23
- "@descope-ui/descope-icon": "0.0.6"
21
+ "@descope-ui/common": "0.0.12",
22
+ "@descope-ui/theme-globals": "0.0.12",
23
+ "@descope-ui/descope-icon": "0.0.7"
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=${clockIcon} class="icon"></descope-icon>
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 === 'true');
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');