drab 6.2.2 → 6.4.0

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.
@@ -4,19 +4,29 @@ export type WakeLockAttributes = BaseAttributes & {
4
4
  locked?: boolean;
5
5
  };
6
6
  /**
7
- * `WakeLock` uses the [WakeLock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API) to ensure the screen does not turn off when viewing the page on supported devices. Use your best judgement for when this is necessary, for example, if you have a timer that needs to stay on, or you are displaying a QR code.
7
+ * `WakeLock` uses the
8
+ * [WakeLock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)
9
+ * to ensure the screen does not turn off when viewing the page on supported devices.
10
+ * Use your best judgement for when this is necessary, for example, if you have a timer
11
+ * that needs to stay on, or you are displaying a QR code.
8
12
  *
9
- * - WakeLock can be toggled with a `trigger`, or will be requested if the element has a `locked` attribute when connected.
10
13
  * - Use `content` and `swap` elements to adjust the UI based on the current state.
11
14
  * - `request` and `release` methods are provided to set the WakeLock with JavaScript.
12
15
  * - `trigger` is disabled if not supported.
13
16
  * - WakeLock is released when the element is removed from the DOM.
14
17
  *
18
+ * ### Attributes
19
+ *
15
20
  * `auto-lock`
16
21
  *
17
- * - By default, the WakeLock will be released when the tab is not active. Use the `auto-lock` attribute to automatically request the WakeLock when the user views the tab again.
22
+ * By default, the WakeLock will be released when the tab is not active. Use the
23
+ * `auto-lock` attribute to automatically request the WakeLock when the user views
24
+ * the tab again.
18
25
  *
26
+ * `locked`
19
27
  *
28
+ * WakeLock can be toggled with a `trigger`, or will be requested if the element has
29
+ * a `locked` attribute when connected.
20
30
  */
21
31
  export declare class WakeLock extends Base {
22
32
  #private;
@@ -1,18 +1,28 @@
1
1
  import { Base } from "../base/index.js";
2
2
  /**
3
- * `WakeLock` uses the [WakeLock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API) to ensure the screen does not turn off when viewing the page on supported devices. Use your best judgement for when this is necessary, for example, if you have a timer that needs to stay on, or you are displaying a QR code.
3
+ * `WakeLock` uses the
4
+ * [WakeLock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)
5
+ * to ensure the screen does not turn off when viewing the page on supported devices.
6
+ * Use your best judgement for when this is necessary, for example, if you have a timer
7
+ * that needs to stay on, or you are displaying a QR code.
4
8
  *
5
- * - WakeLock can be toggled with a `trigger`, or will be requested if the element has a `locked` attribute when connected.
6
9
  * - Use `content` and `swap` elements to adjust the UI based on the current state.
7
10
  * - `request` and `release` methods are provided to set the WakeLock with JavaScript.
8
11
  * - `trigger` is disabled if not supported.
9
12
  * - WakeLock is released when the element is removed from the DOM.
10
13
  *
14
+ * ### Attributes
15
+ *
11
16
  * `auto-lock`
12
17
  *
13
- * - By default, the WakeLock will be released when the tab is not active. Use the `auto-lock` attribute to automatically request the WakeLock when the user views the tab again.
18
+ * By default, the WakeLock will be released when the tab is not active. Use the
19
+ * `auto-lock` attribute to automatically request the WakeLock when the user views
20
+ * the tab again.
14
21
  *
22
+ * `locked`
15
23
  *
24
+ * WakeLock can be toggled with a `trigger`, or will be requested if the element has
25
+ * a `locked` attribute when connected.
16
26
  */
17
27
  export class WakeLock extends Base {
18
28
  wakeLock = null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "drab",
3
3
  "description": "Interactivity for You",
4
- "version": "6.2.2",
4
+ "version": "6.4.0",
5
5
  "homepage": "https://drab.robino.dev",
6
6
  "license": "MIT",
7
7
  "author": {