@sigx/lynx-notifications 0.1.2 → 0.4.1

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/README.md CHANGED
@@ -8,14 +8,7 @@ Local push notifications for sigx-lynx. `UNUserNotificationCenter` on iOS, `Noti
8
8
  pnpm add @sigx/lynx-notifications
9
9
  ```
10
10
 
11
- ```ts
12
- // sigx.lynx.config.ts
13
- export default defineLynxConfig({
14
- modules: ['@sigx/lynx-notifications'],
15
- });
16
- ```
17
-
18
- `sigx prebuild` auto-links the native module and adds `android.permission.POST_NOTIFICATIONS` (Android 13+). iOS notification permission is requested at runtime via `requestPermission()`.
11
+ `sigx prebuild` auto-discovers the package, links the native module, and adds `android.permission.POST_NOTIFICATIONS` (Android 13+). iOS notification permission is requested at runtime via `requestPermission()`.
19
12
 
20
13
  > **Android pairs with `@sigx/lynx-permissions`** — needed for the runtime permission prompt on Android 13+.
21
14
 
@@ -25,13 +25,13 @@ export interface ScheduleOptions {
25
25
  * ```
26
26
  */
27
27
  export declare const Notifications: {
28
- readonly schedule: (content: NotificationContent, options?: ScheduleOptions) => Promise<string>;
29
- readonly cancel: (notificationId: string) => Promise<void>;
30
- readonly cancelAll: () => Promise<void>;
28
+ schedule(content: NotificationContent, options?: ScheduleOptions): Promise<string>;
29
+ cancel(notificationId: string): Promise<void>;
30
+ cancelAll(): Promise<void>;
31
31
  /** Request notification permission, showing the OS dialog if needed. */
32
- readonly requestPermission: () => Promise<PermissionResponse>;
32
+ requestPermission(): Promise<PermissionResponse>;
33
33
  /** Check current notification permission status without prompting. */
34
- readonly getPermissionStatus: () => Promise<PermissionResponse>;
35
- readonly isAvailable: () => boolean;
34
+ getPermissionStatus(): Promise<PermissionResponse>;
35
+ isAvailable(): boolean;
36
36
  };
37
37
  //# sourceMappingURL=notifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"A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QAAQ,UAAU,mBAAmB,YAAW,eAAe,GAAQ,OAAO,CAAC,MAAM,CAAC;IAItF,MAAM,iBAAiB,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1B,wEAAwE;IACxE,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAIhD,sEAAsE;IACtE,mBAAmB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAIlD,WAAW,IAAI,OAAO;CAGhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAG/D,MAAM,MAAM,GAAG,eAAe,CAAC;AAgB/B;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,QAAQ,CAAC,OAA4B,EAAE,UAA2B,EAAE;QAChE,OAAO,SAAS,CAAS,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,cAAsB;QACzB,OAAO,SAAS,CAAO,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC7D,CAAC;IAED,SAAS;QACL,OAAO,SAAS,CAAO,MAAM,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC;IAED,wEAAwE;IACxE,iBAAiB;QACb,OAAO,SAAS,CAAqB,MAAM,EAAE,mBAAmB,CAAC,CAAC;IACtE,CAAC;IAED,sEAAsE;IACtE,mBAAmB;QACf,OAAO,SAAS,CAAqB,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACxE,CAAC;IAED,WAAW;QACP,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACK,CAAC"}
1
+ {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAG/D,MAAM,MAAM,GAAG,eAAe,CAAC;AAgB/B;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,QAAQ,CAAC,OAA4B,EAAE,OAAO,GAAoB,EAAE;QAChE,OAAO,SAAS,CAAS,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,cAAsB;QACzB,OAAO,SAAS,CAAO,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC7D,CAAC;IAED,SAAS;QACL,OAAO,SAAS,CAAO,MAAM,EAAE,WAAW,CAAC,CAAC;IAChD,CAAC;IAED,wEAAwE;IACxE,iBAAiB;QACb,OAAO,SAAS,CAAqB,MAAM,EAAE,mBAAmB,CAAC,CAAC;IACtE,CAAC;IAED,sEAAsE;IACtE,mBAAmB;QACf,OAAO,SAAS,CAAqB,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACxE,CAAC;IAED,WAAW;QACP,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;CACK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx-notifications",
3
- "version": "0.1.2",
3
+ "version": "0.4.1",
4
4
  "description": "Local push notifications for sigx-lynx",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -10,18 +10,19 @@
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
12
  },
13
- "./sigx-module.json": "./sigx-module.json"
13
+ "./signalx-module.json": "./signalx-module.json"
14
14
  },
15
15
  "files": [
16
16
  "dist",
17
17
  "ios",
18
18
  "android",
19
- "sigx-module.json"
19
+ "signalx-module.json"
20
20
  ],
21
21
  "dependencies": {
22
- "@sigx/lynx-core": "^0.1.4"
22
+ "@sigx/lynx-core": "^0.4.1"
23
23
  },
24
24
  "devDependencies": {
25
+ "@typescript/native-preview": "7.0.0-dev.20260511.1",
25
26
  "typescript": "^6.0.3"
26
27
  },
27
28
  "author": "Andreas Ekdahl",
@@ -48,7 +49,8 @@
48
49
  "notifications"
49
50
  ],
50
51
  "scripts": {
51
- "build": "tsc",
52
- "dev": "tsc --watch"
52
+ "build": "node ../../scripts/clean.mjs dist && tsgo",
53
+ "dev": "tsgo --watch",
54
+ "clean": "node ../../scripts/clean.mjs dist .turbo"
53
55
  }
54
56
  }
File without changes