react-onesignal 3.2.0 → 3.2.2
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/.eslintignore +2 -0
- package/.eslintrc.cjs +7 -2
- package/CHANGELOG.md +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +174 -180
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.test.d.ts +1 -0
- package/index.test.ts +50 -0
- package/index.ts +26 -17
- package/package.json +12 -9
- package/tsconfig.json +3 -2
- package/vitest.config.ts +8 -0
- package/.babelrc +0 -9
package/.eslintignore
ADDED
package/.eslintrc.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
+
root: true,
|
|
2
3
|
env: {
|
|
3
4
|
browser: true,
|
|
4
5
|
es6: true,
|
|
@@ -12,7 +13,10 @@ module.exports = {
|
|
|
12
13
|
},
|
|
13
14
|
},
|
|
14
15
|
},
|
|
15
|
-
extends: [
|
|
16
|
+
extends: [
|
|
17
|
+
'plugin:react/recommended',
|
|
18
|
+
'plugin:@typescript-eslint/recommended',
|
|
19
|
+
],
|
|
16
20
|
parser: '@typescript-eslint/parser',
|
|
17
21
|
parserOptions: {
|
|
18
22
|
ecmaFeatures: {
|
|
@@ -25,13 +29,14 @@ module.exports = {
|
|
|
25
29
|
rules: {
|
|
26
30
|
'react/jsx-filename-extension': [1, { extensions: ['.tsx', '.jsx'] }],
|
|
27
31
|
'react/jsx-props-no-spreading': 0,
|
|
32
|
+
'@typescript-eslint/no-unused-vars': ['error'],
|
|
33
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
28
34
|
'prefer-destructuring': 0,
|
|
29
35
|
'no-param-reassign': 0,
|
|
30
36
|
'import/extensions': 0,
|
|
31
37
|
'dot-notation': 0,
|
|
32
38
|
'no-continue': 0,
|
|
33
39
|
'no-unused-vars': 'off',
|
|
34
|
-
'@typescript-eslint/no-unused-vars': ['error'],
|
|
35
40
|
'no-unused-expressions': [
|
|
36
41
|
'error',
|
|
37
42
|
{ allowShortCircuit: true, allowTernary: true },
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.2.2](https://github.com/OneSignal/react-onesignal/compare/3.2.1...3.2.2) (2025-03-28)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* add promise reject for init call ([daadfa8](https://github.com/OneSignal/react-onesignal/commit/daadfa8de3ba98a2b9bd81a497187c4ef07cbc30))
|
|
8
|
+
* add promise reject for init call ([f951175](https://github.com/OneSignal/react-onesignal/commit/f9511751b930cc65ec78e355f07056c54ac997be))
|
|
9
|
+
|
|
10
|
+
## [3.2.1](https://github.com/OneSignal/react-onesignal/compare/3.2.0...3.2.1) (2025-03-27)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* lower node engines range ([216c428](https://github.com/OneSignal/react-onesignal/commit/216c4280ecf1aea2722676e5f59f5797b75abbed))
|
|
15
|
+
|
|
3
16
|
## [3.2.0](https://github.com/OneSignal/react-onesignal/compare/3.1.1...3.2.0) (2025-03-24)
|
|
4
17
|
|
|
5
18
|
### Features
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type SubscriptionChangeEvent = {
|
|
|
41
41
|
current: PushSubscriptionNamespaceProperties;
|
|
42
42
|
};
|
|
43
43
|
export type NotificationEventName = 'click' | 'foregroundWillDisplay' | 'dismiss' | 'permissionChange' | 'permissionPromptDisplay';
|
|
44
|
-
export type SlidedownEventName = 'slidedownShown';
|
|
44
|
+
export type SlidedownEventName = 'slidedownAllowClick' | 'slidedownCancelClick' | 'slidedownClosed' | 'slidedownQueued' | 'slidedownShown';
|
|
45
45
|
export type OneSignalDeferredLoadedCallback = (onesignal: IOneSignalOneSignal) => void;
|
|
46
46
|
export interface IOSNotification {
|
|
47
47
|
/**
|