@wcstack/notification 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +23 -21
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,19 +1,3 @@
1
- interface ITagNames {
2
- readonly notify: string;
3
- }
4
- interface IWritableTagNames {
5
- notify?: string;
6
- }
7
- interface IConfig {
8
- readonly tagNames: ITagNames;
9
- readonly autoTrigger: boolean;
10
- readonly triggerAttribute: string;
11
- }
12
- interface IWritableConfig {
13
- tagNames?: IWritableTagNames;
14
- autoTrigger?: boolean;
15
- triggerAttribute?: string;
16
- }
17
1
  interface IWcBindableProperty {
18
2
  readonly name: string;
19
3
  readonly event: string;
@@ -29,11 +13,29 @@ interface IWcBindableCommand {
29
13
  }
30
14
  interface IWcBindable {
31
15
  readonly protocol: "wc-bindable";
32
- readonly version: number;
33
- readonly properties: IWcBindableProperty[];
34
- readonly inputs?: IWcBindableInput[];
35
- 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 notify: string;
36
24
  }
25
+ interface IWritableTagNames {
26
+ notify?: string;
27
+ }
28
+ interface IConfig {
29
+ readonly tagNames: ITagNames;
30
+ readonly autoTrigger: boolean;
31
+ readonly triggerAttribute: string;
32
+ }
33
+ interface IWritableConfig {
34
+ tagNames?: IWritableTagNames;
35
+ autoTrigger?: boolean;
36
+ triggerAttribute?: string;
37
+ }
38
+
37
39
  /**
38
40
  * Permission state mirroring the Permissions API `PermissionState`
39
41
  * (`"prompt"` / `"granted"` / `"denied"`) plus `"unsupported"` for environments
@@ -97,7 +99,7 @@ interface WcsNotifySwMessage {
97
99
  }
98
100
  /**
99
101
  * Value types for NotificationCore (headless) — the observable state properties.
100
- * Use with `bind()` from `@wc-bindable/core` for compile-time type checking.
102
+ * Use with `bind()` from `a wc-bindable binding core` for compile-time type checking.
101
103
  */
102
104
  interface WcsNotifyCoreValues {
103
105
  permission: PermissionStateOrUnsupported;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/notification",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Declarative desktop-notification component for Web Components. Framework-agnostic Notifications API wrapper via wc-bindable-protocol, with Service Worker support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",