@hook-sdk/template 0.14.0 → 0.14.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/dist/index.cjs +224 -159
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +199 -134
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -61,6 +61,14 @@ type AppConfig = {
|
|
|
61
61
|
branding: {
|
|
62
62
|
primaryColor: string;
|
|
63
63
|
logoUrl: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optional. When set, InstallSplash uses this as the app icon (vs.
|
|
66
|
+
* falling back to logoUrl, then to the "first letter of name"
|
|
67
|
+
* generic). Apps that have a distinct app-icon asset should set
|
|
68
|
+
* this; apps where logoUrl already serves both roles can leave it
|
|
69
|
+
* unset (logoUrl is used as the icon).
|
|
70
|
+
*/
|
|
71
|
+
iconUrl?: string;
|
|
64
72
|
};
|
|
65
73
|
authFlow: AuthFlowConfig;
|
|
66
74
|
paywall: PaywallConfig;
|
|
@@ -656,7 +664,7 @@ type Platform = 'android' | 'ios-safari' | 'ios-other' | 'in-app' | 'desktop' |
|
|
|
656
664
|
type IOSBrowser = 'safari' | 'chrome' | 'firefox' | 'edge' | 'other';
|
|
657
665
|
type AndroidBrowser = 'chrome' | 'firefox' | 'opera' | 'samsung' | 'edge' | 'other';
|
|
658
666
|
type InAppApp = 'instagram' | 'facebook' | 'tiktok' | 'whatsapp' | 'twitter' | 'linkedin' | 'telegram' | 'line' | 'snapchat' | 'pinterest' | 'wechat' | 'other';
|
|
659
|
-
type InstallVariant = 'android-native' | 'android-manual' | 'ios-safari' | 'ios-other' | 'in-app' | 'desktop' | 'none';
|
|
667
|
+
type InstallVariant = 'android-native' | 'android-manual' | 'android-pending' | 'ios-safari' | 'ios-other' | 'in-app' | 'desktop' | 'none';
|
|
660
668
|
interface BeforeInstallPromptEvent extends Event {
|
|
661
669
|
prompt: () => Promise<void>;
|
|
662
670
|
userChoice: Promise<{
|
|
@@ -789,6 +797,7 @@ declare const AppConfigSchema: z.ZodObject<{
|
|
|
789
797
|
branding: z.ZodObject<{
|
|
790
798
|
primaryColor: z.ZodString;
|
|
791
799
|
logoUrl: z.ZodString;
|
|
800
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
792
801
|
}, z.core.$strip>;
|
|
793
802
|
authFlow: z.ZodObject<{
|
|
794
803
|
minPassword: z.ZodNumber;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,14 @@ type AppConfig = {
|
|
|
61
61
|
branding: {
|
|
62
62
|
primaryColor: string;
|
|
63
63
|
logoUrl: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optional. When set, InstallSplash uses this as the app icon (vs.
|
|
66
|
+
* falling back to logoUrl, then to the "first letter of name"
|
|
67
|
+
* generic). Apps that have a distinct app-icon asset should set
|
|
68
|
+
* this; apps where logoUrl already serves both roles can leave it
|
|
69
|
+
* unset (logoUrl is used as the icon).
|
|
70
|
+
*/
|
|
71
|
+
iconUrl?: string;
|
|
64
72
|
};
|
|
65
73
|
authFlow: AuthFlowConfig;
|
|
66
74
|
paywall: PaywallConfig;
|
|
@@ -656,7 +664,7 @@ type Platform = 'android' | 'ios-safari' | 'ios-other' | 'in-app' | 'desktop' |
|
|
|
656
664
|
type IOSBrowser = 'safari' | 'chrome' | 'firefox' | 'edge' | 'other';
|
|
657
665
|
type AndroidBrowser = 'chrome' | 'firefox' | 'opera' | 'samsung' | 'edge' | 'other';
|
|
658
666
|
type InAppApp = 'instagram' | 'facebook' | 'tiktok' | 'whatsapp' | 'twitter' | 'linkedin' | 'telegram' | 'line' | 'snapchat' | 'pinterest' | 'wechat' | 'other';
|
|
659
|
-
type InstallVariant = 'android-native' | 'android-manual' | 'ios-safari' | 'ios-other' | 'in-app' | 'desktop' | 'none';
|
|
667
|
+
type InstallVariant = 'android-native' | 'android-manual' | 'android-pending' | 'ios-safari' | 'ios-other' | 'in-app' | 'desktop' | 'none';
|
|
660
668
|
interface BeforeInstallPromptEvent extends Event {
|
|
661
669
|
prompt: () => Promise<void>;
|
|
662
670
|
userChoice: Promise<{
|
|
@@ -789,6 +797,7 @@ declare const AppConfigSchema: z.ZodObject<{
|
|
|
789
797
|
branding: z.ZodObject<{
|
|
790
798
|
primaryColor: z.ZodString;
|
|
791
799
|
logoUrl: z.ZodString;
|
|
800
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
792
801
|
}, z.core.$strip>;
|
|
793
802
|
authFlow: z.ZodObject<{
|
|
794
803
|
minPassword: z.ZodNumber;
|