@hook-sdk/template 0.11.0 → 0.13.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.cjs +276 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -2
- package/dist/index.d.ts +15 -2
- package/dist/index.js +236 -129
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -118,6 +118,16 @@ interface PushPromptTexts {
|
|
|
118
118
|
iosInstallCta?: string;
|
|
119
119
|
deniedTitle: string;
|
|
120
120
|
deniedBody: string;
|
|
121
|
+
/**
|
|
122
|
+
* Audit Wave 3 — Fix #33: per-platform recovery copy shown when permission
|
|
123
|
+
* is denied. All four are optional; if the matching platform's copy is
|
|
124
|
+
* missing the recovery paragraph is omitted (back-compat for callers that
|
|
125
|
+
* haven't supplied them yet).
|
|
126
|
+
*/
|
|
127
|
+
deniedRecoveryIos?: string;
|
|
128
|
+
deniedRecoveryAndroid?: string;
|
|
129
|
+
deniedRecoveryDesktop?: string;
|
|
130
|
+
deniedRecoveryInApp?: string;
|
|
121
131
|
unsupportedBody: string;
|
|
122
132
|
}
|
|
123
133
|
interface PushPromptProps {
|
|
@@ -534,6 +544,8 @@ type PushUiState = {
|
|
|
534
544
|
kind: 'subscribed';
|
|
535
545
|
} | {
|
|
536
546
|
kind: 'denied';
|
|
547
|
+
} | {
|
|
548
|
+
kind: 'dismissed';
|
|
537
549
|
} | {
|
|
538
550
|
kind: 'error';
|
|
539
551
|
code: string;
|
|
@@ -543,6 +555,7 @@ declare function usePush(): {
|
|
|
543
555
|
state: PushUiState;
|
|
544
556
|
subscribe: () => Promise<void>;
|
|
545
557
|
unsubscribe: () => Promise<void>;
|
|
558
|
+
dismiss: () => void;
|
|
546
559
|
};
|
|
547
560
|
|
|
548
561
|
declare function useReminders(): {
|
|
@@ -560,7 +573,7 @@ declare function useReminders(): {
|
|
|
560
573
|
sendAt: string | Date;
|
|
561
574
|
title: string;
|
|
562
575
|
body: string;
|
|
563
|
-
url
|
|
576
|
+
url: string;
|
|
564
577
|
}>) => Promise<{
|
|
565
578
|
accepted: number;
|
|
566
579
|
rejected: number;
|
|
@@ -572,7 +585,7 @@ declare function useReminders(): {
|
|
|
572
585
|
slot: string;
|
|
573
586
|
title: string;
|
|
574
587
|
body: string;
|
|
575
|
-
url
|
|
588
|
+
url: string;
|
|
576
589
|
}>) => Promise<void>>[0]) => Promise<void>;
|
|
577
590
|
};
|
|
578
591
|
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,16 @@ interface PushPromptTexts {
|
|
|
118
118
|
iosInstallCta?: string;
|
|
119
119
|
deniedTitle: string;
|
|
120
120
|
deniedBody: string;
|
|
121
|
+
/**
|
|
122
|
+
* Audit Wave 3 — Fix #33: per-platform recovery copy shown when permission
|
|
123
|
+
* is denied. All four are optional; if the matching platform's copy is
|
|
124
|
+
* missing the recovery paragraph is omitted (back-compat for callers that
|
|
125
|
+
* haven't supplied them yet).
|
|
126
|
+
*/
|
|
127
|
+
deniedRecoveryIos?: string;
|
|
128
|
+
deniedRecoveryAndroid?: string;
|
|
129
|
+
deniedRecoveryDesktop?: string;
|
|
130
|
+
deniedRecoveryInApp?: string;
|
|
121
131
|
unsupportedBody: string;
|
|
122
132
|
}
|
|
123
133
|
interface PushPromptProps {
|
|
@@ -534,6 +544,8 @@ type PushUiState = {
|
|
|
534
544
|
kind: 'subscribed';
|
|
535
545
|
} | {
|
|
536
546
|
kind: 'denied';
|
|
547
|
+
} | {
|
|
548
|
+
kind: 'dismissed';
|
|
537
549
|
} | {
|
|
538
550
|
kind: 'error';
|
|
539
551
|
code: string;
|
|
@@ -543,6 +555,7 @@ declare function usePush(): {
|
|
|
543
555
|
state: PushUiState;
|
|
544
556
|
subscribe: () => Promise<void>;
|
|
545
557
|
unsubscribe: () => Promise<void>;
|
|
558
|
+
dismiss: () => void;
|
|
546
559
|
};
|
|
547
560
|
|
|
548
561
|
declare function useReminders(): {
|
|
@@ -560,7 +573,7 @@ declare function useReminders(): {
|
|
|
560
573
|
sendAt: string | Date;
|
|
561
574
|
title: string;
|
|
562
575
|
body: string;
|
|
563
|
-
url
|
|
576
|
+
url: string;
|
|
564
577
|
}>) => Promise<{
|
|
565
578
|
accepted: number;
|
|
566
579
|
rejected: number;
|
|
@@ -572,7 +585,7 @@ declare function useReminders(): {
|
|
|
572
585
|
slot: string;
|
|
573
586
|
title: string;
|
|
574
587
|
body: string;
|
|
575
|
-
url
|
|
588
|
+
url: string;
|
|
576
589
|
}>) => Promise<void>>[0]) => Promise<void>;
|
|
577
590
|
};
|
|
578
591
|
|