@wcstack/permission 1.14.0 → 1.15.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.
- package/dist/index.d.ts +19 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
interface ITagNames {
|
|
2
|
-
readonly permission: string;
|
|
3
|
-
}
|
|
4
|
-
interface IWritableTagNames {
|
|
5
|
-
permission?: string;
|
|
6
|
-
}
|
|
7
|
-
interface IConfig {
|
|
8
|
-
readonly tagNames: ITagNames;
|
|
9
|
-
}
|
|
10
|
-
interface IWritableConfig {
|
|
11
|
-
tagNames?: IWritableTagNames;
|
|
12
|
-
}
|
|
13
1
|
interface IWcBindableProperty {
|
|
14
2
|
readonly name: string;
|
|
15
3
|
readonly event: string;
|
|
@@ -25,11 +13,25 @@ interface IWcBindableCommand {
|
|
|
25
13
|
}
|
|
26
14
|
interface IWcBindable {
|
|
27
15
|
readonly protocol: "wc-bindable";
|
|
28
|
-
readonly version:
|
|
29
|
-
readonly properties: IWcBindableProperty[];
|
|
30
|
-
readonly inputs?: IWcBindableInput[];
|
|
31
|
-
readonly commands?: IWcBindableCommand[];
|
|
16
|
+
readonly version: 1;
|
|
17
|
+
readonly properties: readonly IWcBindableProperty[];
|
|
18
|
+
readonly inputs?: readonly IWcBindableInput[];
|
|
19
|
+
readonly commands?: readonly IWcBindableCommand[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface ITagNames {
|
|
23
|
+
readonly permission: string;
|
|
32
24
|
}
|
|
25
|
+
interface IWritableTagNames {
|
|
26
|
+
permission?: string;
|
|
27
|
+
}
|
|
28
|
+
interface IConfig {
|
|
29
|
+
readonly tagNames: ITagNames;
|
|
30
|
+
}
|
|
31
|
+
interface IWritableConfig {
|
|
32
|
+
tagNames?: IWritableTagNames;
|
|
33
|
+
}
|
|
34
|
+
|
|
33
35
|
/**
|
|
34
36
|
* Permission state mirroring the Permissions API `PermissionState`
|
|
35
37
|
* (`"prompt"` / `"granted"` / `"denied"`) plus `"unsupported"` for environments
|
|
@@ -56,7 +58,7 @@ interface WcsPermissionDescriptor {
|
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
58
60
|
* Value types for PermissionCore (headless) — the observable state properties.
|
|
59
|
-
* Use with `bind()` from
|
|
61
|
+
* Use with `bind()` from `a wc-bindable binding core` for compile-time type checking.
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* ```typescript
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wcstack/permission",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Declarative permission-state component for Web Components. Framework-agnostic Permissions API monitor via wc-bindable-protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.esm.js",
|