react-onesignal
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "react-onesignal", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "React OneSignal Module: Make it easy to integrate OneSignal with your React App!", | ||
@@ -5,0 +5,0 @@ "author": "pedro-lb", |
@@ -41,2 +41,3 @@ # React OneSignal | ||
```js | ||
safari_web_id?: string; | ||
subdomainName?: string; | ||
@@ -55,2 +56,15 @@ allowLocalhostAsSecureOrigin?: boolean; | ||
showCredit?: boolean; | ||
prenotify?: boolean; | ||
theme?: 'default' | 'inverse'; | ||
offset?: { | ||
bottom?: string; | ||
right?: string; | ||
left?: string; | ||
}, | ||
text?: { | ||
[key: string]: string; | ||
}; | ||
colors?: { | ||
[key: string]: string; | ||
}; | ||
} | ||
@@ -57,0 +71,0 @@ ``` |
@@ -42,3 +42,3 @@ // eslint-disable-next-line no-unused-vars | ||
if (key.includes('.')) { | ||
key = `"${key}"` | ||
key = `"${key}"`; | ||
} | ||
@@ -45,0 +45,0 @@ |
export interface IOneSignal { | ||
notificationPermission: string[], | ||
registerForPushNotifications: () => Promise<any>, | ||
getNotificationPermission: () => Promise<string>, | ||
setEmail: (email: string) => Promise<string>, | ||
getEmailId: () => Promise<string>, | ||
getUserId: () => Promise<string>, | ||
setExternalUserId: (externalUserId: string | number) => Promise<void>, | ||
getExternalUserId: () => Promise<any>, | ||
initialized: boolean, | ||
notificationPermission: string[]; | ||
registerForPushNotifications: () => Promise<any>; | ||
getNotificationPermission: () => Promise<string>; | ||
setEmail: (email: string) => Promise<string>; | ||
getEmailId: () => Promise<string>; | ||
getUserId: () => Promise<string>; | ||
setExternalUserId: (externalUserId: string | number) => Promise<void>; | ||
getExternalUserId: () => Promise<any>; | ||
initialized: boolean; | ||
sendTag: (key: string, val: string) => Promise<string>; | ||
@@ -16,3 +16,4 @@ sendTags: (keyValues: object) => Promise<any>; | ||
export interface OneSignalOptions { | ||
safari_web_id?: string, | ||
// eslint-disable-next-line camelcase | ||
safari_web_id?: string; | ||
subdomainName?: string; | ||
@@ -37,3 +38,3 @@ allowLocalhostAsSecureOrigin?: boolean; | ||
left?: string; | ||
}, | ||
}; | ||
text?: { | ||
@@ -40,0 +41,0 @@ [key: string]: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79016
1255
204