@broadcastingplatforms/player 1.5.8 → 1.5.10
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/dist/bp-player.js +125 -125
- package/dist/bp-player.mjs +125 -125
- package/dist/bp-player.standalone.mjs +143 -143
- package/dist/core/player-core.test.d.ts +3 -1
- package/dist/elements/nano-video.test.d.ts +2 -0
- package/dist/util/converters.d.ts +14 -0
- package/package.json +1 -1
|
@@ -11,4 +11,18 @@ import type { ComplexAttributeConverter } from 'lit';
|
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
13
|
export declare function jsonConverter<T = unknown>(): ComplexAttributeConverter<T | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a converter for boolean properties that default to true.
|
|
16
|
+
* Lit's built-in Boolean converter treats any present attribute as true,
|
|
17
|
+
* so `attr="false"` could never switch the property off. Here the string
|
|
18
|
+
* "false" parses to false; anything else (including absence) to true.
|
|
19
|
+
*
|
|
20
|
+
* @returns A ComplexAttributeConverter for use with Lit @property decorator
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* @property({ converter: defaultTrueBooleanConverter() }) hotkeys = true;
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function defaultTrueBooleanConverter(): ComplexAttributeConverter<boolean>;
|
|
14
28
|
//# sourceMappingURL=converters.d.ts.map
|