@react-native-firebase/in-app-messaging 24.1.1 → 25.0.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/module/index.js +23 -0
  3. package/dist/module/index.js.map +1 -0
  4. package/dist/module/modular.js +80 -0
  5. package/dist/module/modular.js.map +1 -0
  6. package/{lib/index.js → dist/module/namespaced.js} +11 -31
  7. package/dist/module/namespaced.js.map +1 -0
  8. package/dist/module/package.json +1 -0
  9. package/dist/module/types/in-app-messaging.js +4 -0
  10. package/dist/module/types/in-app-messaging.js.map +1 -0
  11. package/dist/module/types/internal.js +4 -0
  12. package/dist/module/types/internal.js.map +1 -0
  13. package/dist/module/types/namespaced.js +62 -0
  14. package/dist/module/types/namespaced.js.map +1 -0
  15. package/dist/module/version.js +5 -0
  16. package/dist/module/version.js.map +1 -0
  17. package/dist/typescript/lib/index.d.ts +6 -0
  18. package/dist/typescript/lib/index.d.ts.map +1 -0
  19. package/dist/typescript/lib/modular.d.ts +36 -0
  20. package/dist/typescript/lib/modular.d.ts.map +1 -0
  21. package/dist/typescript/lib/namespaced.d.ts +12 -0
  22. package/dist/typescript/lib/namespaced.d.ts.map +1 -0
  23. package/dist/typescript/lib/types/in-app-messaging.d.ts +33 -0
  24. package/dist/typescript/lib/types/in-app-messaging.d.ts.map +1 -0
  25. package/dist/typescript/lib/types/internal.d.ts +27 -0
  26. package/dist/typescript/lib/types/internal.d.ts.map +1 -0
  27. package/dist/typescript/lib/types/namespaced.d.ts +107 -0
  28. package/dist/typescript/lib/types/namespaced.d.ts.map +1 -0
  29. package/dist/typescript/lib/version.d.ts +2 -0
  30. package/dist/typescript/lib/version.d.ts.map +1 -0
  31. package/dist/typescript/package.json +1 -0
  32. package/lib/index.ts +25 -0
  33. package/lib/modular.ts +101 -0
  34. package/lib/namespaced.ts +117 -0
  35. package/lib/types/in-app-messaging.ts +55 -0
  36. package/lib/types/internal.ts +54 -0
  37. package/lib/types/namespaced.ts +137 -0
  38. package/lib/version.ts +2 -0
  39. package/package.json +42 -8
  40. package/tsconfig.json +16 -0
  41. package/typedoc.json +1 -2
  42. package/lib/index.d.ts +0 -194
  43. package/lib/modular/index.d.ts +0 -89
  44. package/lib/modular/index.js +0 -57
  45. package/lib/version.js +0 -2
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [25.0.1](https://github.com/invertase/react-native-firebase/compare/v25.0.0...v25.0.1) (2026-06-23)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/in-app-messaging
9
+
10
+ ## [25.0.0](https://github.com/invertase/react-native-firebase/compare/v24.0.0...v25.0.0) (2026-06-23)
11
+
12
+ **Note:** Version bump only for package @react-native-firebase/in-app-messaging
13
+
6
14
  ## [24.1.1](https://github.com/invertase/react-native-firebase/compare/v24.1.0...v24.1.1) (2026-06-10)
7
15
 
8
16
  **Note:** Version bump only for package @react-native-firebase/in-app-messaging
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ export * from "./modular.js";
21
+ export * from "./namespaced.js";
22
+ export { default } from "./namespaced.js";
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["default"],"sourceRoot":"../../lib","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,cAAc,cAAW;AAEzB,cAAc,iBAAc;AAC5B,SAASA,OAAO,QAAQ,iBAAc","ignoreList":[]}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import { getApp } from '@react-native-firebase/app';
21
+ import { MODULAR_DEPRECATION_ARG, withModularFlag } from '@react-native-firebase/app/dist/module/common';
22
+ function withModularDeprecationArg(inAppMessaging) {
23
+ return inAppMessaging;
24
+ }
25
+
26
+ /**
27
+ * Returns the {@link InAppMessaging} instance for the default app.
28
+ */
29
+ export function getInAppMessaging() {
30
+ return getApp().inAppMessaging();
31
+ }
32
+
33
+ /**
34
+ * Determines whether messages are suppressed or not.
35
+ */
36
+ export function isMessagesDisplaySuppressed(inAppMessaging) {
37
+ return withModularFlag(() => inAppMessaging.isMessagesDisplaySuppressed);
38
+ }
39
+
40
+ /**
41
+ * Enable or disable suppression of Firebase In App Messaging messages.
42
+ *
43
+ * When enabled, no in app messages will be rendered until either you disable suppression, or the app
44
+ * restarts. This state is not persisted between app restarts.
45
+ */
46
+ export function setMessagesDisplaySuppressed(inAppMessaging, enabled) {
47
+ const internalInAppMessaging = withModularDeprecationArg(inAppMessaging);
48
+ return internalInAppMessaging.setMessagesDisplaySuppressed.call(internalInAppMessaging, enabled, MODULAR_DEPRECATION_ARG);
49
+ }
50
+
51
+ /**
52
+ * Determines whether automatic data collection is enabled or not.
53
+ */
54
+ export function isAutomaticDataCollectionEnabled(inAppMessaging) {
55
+ return withModularFlag(() => inAppMessaging.isAutomaticDataCollectionEnabled);
56
+ }
57
+
58
+ /**
59
+ * Enable or disable automatic data collection for Firebase In-App Messaging.
60
+ *
61
+ * When enabled, generates a registration token on app startup if there is no valid one and
62
+ * generates a new token when it is deleted (which prevents `deleteInstanceId()` from stopping the
63
+ * periodic sending of data).
64
+ *
65
+ * This setting is persisted across app restarts and overrides the setting specified in your
66
+ * manifest/plist file.
67
+ */
68
+ export function setAutomaticDataCollectionEnabled(inAppMessaging, enabled) {
69
+ const internalInAppMessaging = withModularDeprecationArg(inAppMessaging);
70
+ return internalInAppMessaging.setAutomaticDataCollectionEnabled.call(internalInAppMessaging, enabled, MODULAR_DEPRECATION_ARG);
71
+ }
72
+
73
+ /**
74
+ * Trigger in-app messages programmatically.
75
+ */
76
+ export function triggerEvent(inAppMessaging, eventId) {
77
+ const internalInAppMessaging = withModularDeprecationArg(inAppMessaging);
78
+ return internalInAppMessaging.triggerEvent.call(internalInAppMessaging, eventId, MODULAR_DEPRECATION_ARG);
79
+ }
80
+ //# sourceMappingURL=modular.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getApp","MODULAR_DEPRECATION_ARG","withModularFlag","withModularDeprecationArg","inAppMessaging","getInAppMessaging","isMessagesDisplaySuppressed","setMessagesDisplaySuppressed","enabled","internalInAppMessaging","call","isAutomaticDataCollectionEnabled","setAutomaticDataCollectionEnabled","triggerEvent","eventId"],"sourceRoot":"../../lib","sources":["modular.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,4BAA4B;AACnD,SACEC,uBAAuB,EACvBC,eAAe,QACV,+CAA+C;AAItD,SAASC,yBAAyBA,CAACC,cAA8B,EAAoC;EACnG,OAAOA,cAAc;AACvB;;AAEA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAAA,EAAmB;EAClD,OAAOL,MAAM,CAAC,CAAC,CAACI,cAAc,CAAC,CAAC;AAClC;;AAEA;AACA;AACA;AACA,OAAO,SAASE,2BAA2BA,CAACF,cAA8B,EAAW;EACnF,OAAOF,eAAe,CAAC,MAAME,cAAc,CAACE,2BAA2B,CAAC;AAC1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,4BAA4BA,CAC1CH,cAA8B,EAC9BI,OAAgB,EACD;EACf,MAAMC,sBAAsB,GAAGN,yBAAyB,CAACC,cAAc,CAAC;EACxE,OAAOK,sBAAsB,CAACF,4BAA4B,CAACG,IAAI,CAC7DD,sBAAsB,EACtBD,OAAO,EACPP,uBACF,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,SAASU,gCAAgCA,CAACP,cAA8B,EAAW;EACxF,OAAOF,eAAe,CAAC,MAAME,cAAc,CAACO,gCAAgC,CAAC;AAC/E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iCAAiCA,CAC/CR,cAA8B,EAC9BI,OAAgB,EACD;EACf,MAAMC,sBAAsB,GAAGN,yBAAyB,CAACC,cAAc,CAAC;EACxE,OAAOK,sBAAsB,CAACG,iCAAiC,CAACF,IAAI,CAClED,sBAAsB,EACtBD,OAAO,EACPP,uBACF,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,SAASY,YAAYA,CAACT,cAA8B,EAAEU,OAAe,EAAiB;EAC3F,MAAML,sBAAsB,GAAGN,yBAAyB,CAACC,cAAc,CAAC;EACxE,OAAOK,sBAAsB,CAACI,YAAY,CAACH,IAAI,CAC7CD,sBAAsB,EACtBK,OAAO,EACPb,uBACF,CAAC;AACH","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  /*
2
4
  * Copyright (c) 2016-present Invertase Limited & Contributors
3
5
  *
@@ -16,56 +18,38 @@
16
18
  */
17
19
 
18
20
  import { isBoolean, isString } from '@react-native-firebase/app/dist/module/common';
19
- import {
20
- createModuleNamespace,
21
- FirebaseModule,
22
- getFirebaseRoot,
23
- } from '@react-native-firebase/app/dist/module/internal';
24
- import version from './version';
25
-
21
+ import { createModuleNamespace, FirebaseModule, getFirebaseRoot } from '@react-native-firebase/app/dist/module/internal';
22
+ import "./types/internal.js";
23
+ import { version } from "./version.js";
26
24
  const statics = {};
27
-
28
25
  const namespace = 'inAppMessaging';
29
-
30
26
  const nativeModuleName = 'RNFBFiamModule';
31
-
32
27
  class FirebaseFiamModule extends FirebaseModule {
33
28
  constructor(...args) {
34
29
  super(...args);
35
30
  this._isMessagesDisplaySuppressed = this.native.isMessagesDisplaySuppressed;
36
31
  this._isAutomaticDataCollectionEnabled = this.native.isAutomaticDataCollectionEnabled;
37
32
  }
38
-
39
33
  get isMessagesDisplaySuppressed() {
40
34
  return this._isMessagesDisplaySuppressed;
41
35
  }
42
-
43
36
  get isAutomaticDataCollectionEnabled() {
44
37
  return this._isAutomaticDataCollectionEnabled;
45
38
  }
46
-
47
39
  setMessagesDisplaySuppressed(enabled) {
48
40
  if (!isBoolean(enabled)) {
49
- throw new Error(
50
- "firebase.inAppMessaging().setMessagesDisplaySuppressed(*) 'enabled' must be a boolean.",
51
- );
41
+ throw new Error("firebase.inAppMessaging().setMessagesDisplaySuppressed(*) 'enabled' must be a boolean.");
52
42
  }
53
-
54
43
  this._isMessagesDisplaySuppressed = enabled;
55
44
  return this.native.setMessagesDisplaySuppressed(enabled);
56
45
  }
57
-
58
46
  setAutomaticDataCollectionEnabled(enabled) {
59
47
  if (!isBoolean(enabled)) {
60
- throw new Error(
61
- "firebase.inAppMessaging().setAutomaticDataCollectionEnabled(*) 'enabled' must be a boolean.",
62
- );
48
+ throw new Error("firebase.inAppMessaging().setAutomaticDataCollectionEnabled(*) 'enabled' must be a boolean.");
63
49
  }
64
-
65
50
  this._isAutomaticDataCollectionEnabled = enabled;
66
51
  return this.native.setAutomaticDataCollectionEnabled(enabled);
67
52
  }
68
-
69
53
  triggerEvent(eventId) {
70
54
  if (!isString(eventId)) {
71
55
  throw new Error("firebase.inAppMessaging().triggerEvent(*) 'eventId' must be a string.");
@@ -73,15 +57,9 @@ class FirebaseFiamModule extends FirebaseModule {
73
57
  return this.native.triggerEvent(eventId);
74
58
  }
75
59
  }
76
-
77
- export * from './modular';
78
-
79
60
  // import { SDK_VERSION } from '@react-native-firebase/in-app-messaging';
80
61
  export const SDK_VERSION = version;
81
-
82
- // import inAppMessaging from '@react-native-firebase/in-app-messaging';
83
- // inAppMessaging().X(...);
84
- export default createModuleNamespace({
62
+ const defaultExport = createModuleNamespace({
85
63
  statics,
86
64
  version,
87
65
  namespace,
@@ -89,10 +67,12 @@ export default createModuleNamespace({
89
67
  nativeEvents: false,
90
68
  hasMultiAppSupport: false,
91
69
  hasCustomUrlOrRegionSupport: false,
92
- ModuleClass: FirebaseFiamModule,
70
+ ModuleClass: FirebaseFiamModule
93
71
  });
72
+ export default defaultExport;
94
73
 
95
74
  // import inAppMessaging, { firebase } from '@react-native-firebase/in-app-messaging';
96
75
  // inAppMessaging().X(...);
97
76
  // firebase.inAppMessaging().X(...);
98
77
  export const firebase = getFirebaseRoot();
78
+ //# sourceMappingURL=namespaced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isBoolean","isString","createModuleNamespace","FirebaseModule","getFirebaseRoot","version","statics","namespace","nativeModuleName","FirebaseFiamModule","constructor","args","_isMessagesDisplaySuppressed","native","isMessagesDisplaySuppressed","_isAutomaticDataCollectionEnabled","isAutomaticDataCollectionEnabled","setMessagesDisplaySuppressed","enabled","Error","setAutomaticDataCollectionEnabled","triggerEvent","eventId","SDK_VERSION","defaultExport","nativeEvents","hasMultiAppSupport","hasCustomUrlOrRegionSupport","ModuleClass","firebase"],"sourceRoot":"../../lib","sources":["namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,+CAA+C;AACnF,SACEC,qBAAqB,EACrBC,cAAc,EACdC,eAAe,QACV,iDAAiD;AAGxD,OAAO,qBAAkB;AAEzB,SAASC,OAAO,QAAQ,cAAW;AAEnC,MAAMC,OAAO,GAAG,CAAC,CAAC;AAElB,MAAMC,SAAS,GAAG,gBAAgB;AAElC,MAAMC,gBAAgB,GAAG,gBAAgB;AAEzC,MAAMC,kBAAkB,SAASN,cAAc,CAA0B;EAIvEO,WAAWA,CAAC,GAAGC,IAAkD,EAAE;IACjE,KAAK,CAAC,GAAGA,IAAI,CAAC;IACd,IAAI,CAACC,4BAA4B,GAAG,IAAI,CAACC,MAAM,CAACC,2BAA2B;IAC3E,IAAI,CAACC,iCAAiC,GAAG,IAAI,CAACF,MAAM,CAACG,gCAAgC;EACvF;EAEA,IAAIF,2BAA2BA,CAAA,EAAY;IACzC,OAAO,IAAI,CAACF,4BAA4B;EAC1C;EAEA,IAAII,gCAAgCA,CAAA,EAAY;IAC9C,OAAO,IAAI,CAACD,iCAAiC;EAC/C;EAEAE,4BAA4BA,CAACC,OAAgB,EAAiB;IAC5D,IAAI,CAAClB,SAAS,CAACkB,OAAO,CAAC,EAAE;MACvB,MAAM,IAAIC,KAAK,CACb,wFACF,CAAC;IACH;IAEA,IAAI,CAACP,4BAA4B,GAAGM,OAAO;IAC3C,OAAO,IAAI,CAACL,MAAM,CAACI,4BAA4B,CAACC,OAAO,CAAC;EAC1D;EAEAE,iCAAiCA,CAACF,OAAgB,EAAiB;IACjE,IAAI,CAAClB,SAAS,CAACkB,OAAO,CAAC,EAAE;MACvB,MAAM,IAAIC,KAAK,CACb,6FACF,CAAC;IACH;IAEA,IAAI,CAACJ,iCAAiC,GAAGG,OAAO;IAChD,OAAO,IAAI,CAACL,MAAM,CAACO,iCAAiC,CAACF,OAAO,CAAC;EAC/D;EAEAG,YAAYA,CAACC,OAAe,EAAiB;IAC3C,IAAI,CAACrB,QAAQ,CAACqB,OAAO,CAAC,EAAE;MACtB,MAAM,IAAIH,KAAK,CAAC,uEAAuE,CAAC;IAC1F;IACA,OAAO,IAAI,CAACN,MAAM,CAACQ,YAAY,CAACC,OAAO,CAAC;EAC1C;AACF;AAUA;AACA,OAAO,MAAMC,WAAW,GAAGlB,OAAO;AAElC,MAAMmB,aAAa,GAAGtB,qBAAqB,CAAC;EAC1CI,OAAO;EACPD,OAAO;EACPE,SAAS;EACTC,gBAAgB;EAChBiB,YAAY,EAAE,KAAK;EACnBC,kBAAkB,EAAE,KAAK;EACzBC,2BAA2B,EAAE,KAAK;EAClCC,WAAW,EAAEnB;AACf,CAAC,CAAuC;AAExC,eAAee,aAAa;;AAE5B;AACA;AACA;AACA,OAAO,MAAMK,QAAQ,GACnBzB,eAAe,CAAC,CAKf","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=in-app-messaging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../lib","sources":["types/in-app-messaging.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../lib","sources":["types/internal.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+ /**
20
+ * Firebase In-App Messaging package for React Native.
21
+ *
22
+ * #### Example 1
23
+ *
24
+ * Access the firebase export from the `inAppMessaging` package:
25
+ *
26
+ * ```js
27
+ * import { firebase } from '@react-native-firebase/in-app-messaging';
28
+ *
29
+ * // firebase.inAppMessaging().X
30
+ * ```
31
+ *
32
+ * #### Example 2
33
+ *
34
+ * Using the default export from the `in-app-messaging` package:
35
+ *
36
+ * ```js
37
+ * import inAppMessaging from '@react-native-firebase/in-app-messaging';
38
+ *
39
+ * // inAppMessaging().X
40
+ * ```
41
+ *
42
+ * #### Example 3
43
+ *
44
+ * Using the default export from the `app` package:
45
+ *
46
+ * ```js
47
+ * import firebase from '@react-native-firebase/app';
48
+ * import '@react-native-firebase/in-app-messaging';
49
+ *
50
+ * // firebase.inAppMessaging().X
51
+ * ```
52
+ *
53
+ * @firebase in-app-messaging
54
+ */
55
+ /**
56
+ * @deprecated Use the exported types directly instead.
57
+ * FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
58
+ */
59
+ /* eslint-disable @typescript-eslint/no-namespace */
60
+ export let FirebaseInAppMessagingTypes;
61
+ /* eslint-enable @typescript-eslint/no-namespace */
62
+ //# sourceMappingURL=namespaced.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FirebaseInAppMessagingTypes"],"sourceRoot":"../../../lib","sources":["types/namespaced.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,WACiBA,2BAA2B;AA4E5C","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ // Generated by genversion.
4
+ export const version = '25.0.1';
5
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["version"],"sourceRoot":"../../lib","sources":["version.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,OAAO,GAAG,QAAQ","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ export type { InAppMessaging } from './types/in-app-messaging';
2
+ export type { FirebaseInAppMessagingTypes } from './types/namespaced';
3
+ export * from './modular';
4
+ export * from './namespaced';
5
+ export { default } from './namespaced';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/index.ts"],"names":[],"mappings":"AAiBA,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,YAAY,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEtE,cAAc,WAAW,CAAC;AAE1B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { InAppMessaging } from './types/in-app-messaging';
2
+ /**
3
+ * Returns the {@link InAppMessaging} instance for the default app.
4
+ */
5
+ export declare function getInAppMessaging(): InAppMessaging;
6
+ /**
7
+ * Determines whether messages are suppressed or not.
8
+ */
9
+ export declare function isMessagesDisplaySuppressed(inAppMessaging: InAppMessaging): boolean;
10
+ /**
11
+ * Enable or disable suppression of Firebase In App Messaging messages.
12
+ *
13
+ * When enabled, no in app messages will be rendered until either you disable suppression, or the app
14
+ * restarts. This state is not persisted between app restarts.
15
+ */
16
+ export declare function setMessagesDisplaySuppressed(inAppMessaging: InAppMessaging, enabled: boolean): Promise<null>;
17
+ /**
18
+ * Determines whether automatic data collection is enabled or not.
19
+ */
20
+ export declare function isAutomaticDataCollectionEnabled(inAppMessaging: InAppMessaging): boolean;
21
+ /**
22
+ * Enable or disable automatic data collection for Firebase In-App Messaging.
23
+ *
24
+ * When enabled, generates a registration token on app startup if there is no valid one and
25
+ * generates a new token when it is deleted (which prevents `deleteInstanceId()` from stopping the
26
+ * periodic sending of data).
27
+ *
28
+ * This setting is persisted across app restarts and overrides the setting specified in your
29
+ * manifest/plist file.
30
+ */
31
+ export declare function setAutomaticDataCollectionEnabled(inAppMessaging: InAppMessaging, enabled: boolean): Promise<null>;
32
+ /**
33
+ * Trigger in-app messages programmatically.
34
+ */
35
+ export declare function triggerEvent(inAppMessaging: InAppMessaging, eventId: string): Promise<null>;
36
+ //# sourceMappingURL=modular.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../../../lib/modular.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAO/D;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAEnF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAExF;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAOf;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAO3F"}
@@ -0,0 +1,12 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ import './types/internal';
3
+ import type { FirebaseInAppMessagingTypes } from './types/namespaced';
4
+ type InAppMessagingNamespace = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp<FirebaseInAppMessagingTypes.Module, FirebaseInAppMessagingTypes.Statics> & {
5
+ firebase: ReactNativeFirebase.Module;
6
+ app(name?: string): ReactNativeFirebase.FirebaseApp;
7
+ };
8
+ export declare const SDK_VERSION = "25.0.1";
9
+ declare const defaultExport: InAppMessagingNamespace;
10
+ export default defaultExport;
11
+ export declare const firebase: ReactNativeFirebase.FirebaseNamespacedExport<"inAppMessaging", FirebaseInAppMessagingTypes.Module, FirebaseInAppMessagingTypes.Statics, false>;
12
+ //# sourceMappingURL=namespaced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../lib/namespaced.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAyDtE,KAAK,uBAAuB,GAAG,mBAAmB,CAAC,+BAA+B,CAChF,2BAA2B,CAAC,MAAM,EAClC,2BAA2B,CAAC,OAAO,CACpC,GAAG;IACF,QAAQ,EAAE,mBAAmB,CAAC,MAAM,CAAC;IACrC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC,WAAW,CAAC;CACrD,CAAC;AAGF,eAAO,MAAM,WAAW,WAAU,CAAC;AAEnC,QAAA,MAAM,aAAa,EASF,uBAAuB,CAAC;AAEzC,eAAe,aAAa,CAAC;AAK7B,eAAO,MAAM,QAAQ,EACa,mBAAmB,CAAC,wBAAwB,CAC1E,gBAAgB,EAChB,2BAA2B,CAAC,MAAM,EAClC,2BAA2B,CAAC,OAAO,EACnC,KAAK,CACN,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { FirebaseApp } from '@react-native-firebase/app';
2
+ /**
3
+ * Firebase In-App Messaging service instance for the modular API.
4
+ *
5
+ * Current Firebase JS SDK releases do not ship a `firebase/in-app-messaging` modular entry point;
6
+ * this interface follows the same modular service-instance pattern used elsewhere in React Native
7
+ * Firebase.
8
+ */
9
+ export interface InAppMessaging {
10
+ /** The FirebaseApp this module is associated with. */
11
+ app: FirebaseApp;
12
+ /** Whether Firebase In-App Messaging message rendering is currently suppressed. */
13
+ isMessagesDisplaySuppressed: boolean;
14
+ /** Whether automatic data collection is enabled for Firebase In-App Messaging. */
15
+ isAutomaticDataCollectionEnabled: boolean;
16
+ /**
17
+ * Enable or disable suppression of Firebase In-App Messaging messages.
18
+ *
19
+ * When enabled, no in-app messages will be rendered until either suppression is disabled or the
20
+ * app restarts. This state is not persisted between app restarts.
21
+ */
22
+ setMessagesDisplaySuppressed(enabled: boolean): Promise<null>;
23
+ /**
24
+ * Enable or disable automatic data collection for Firebase In-App Messaging.
25
+ *
26
+ * When enabled, generates a registration token on app startup if there is no valid one and
27
+ * generates a new token when it is deleted.
28
+ */
29
+ setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null>;
30
+ /** Trigger in-app messages programmatically for the given event id. */
31
+ triggerEvent(eventId: string): Promise<null>;
32
+ }
33
+ //# sourceMappingURL=in-app-messaging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in-app-messaging.d.ts","sourceRoot":"","sources":["../../../../lib/types/in-app-messaging.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,GAAG,EAAE,WAAW,CAAC;IAEjB,mFAAmF;IACnF,2BAA2B,EAAE,OAAO,CAAC;IAErC,kFAAkF;IAClF,gCAAgC,EAAE,OAAO,CAAC;IAE1C;;;;;OAKG;IACH,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D;;;;;OAKG;IACH,iCAAiC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE,uEAAuE;IACvE,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C"}
@@ -0,0 +1,27 @@
1
+ import type { InAppMessaging } from './in-app-messaging';
2
+ /** Optional final argument passed by modular API wrappers (MODULAR_DEPRECATION_ARG). */
3
+ export type InAppMessagingModularDeprecationArg = string;
4
+ /**
5
+ * Wrapped native module contract for `RNFBFiamModule`.
6
+ */
7
+ export interface RNFBFiamModule {
8
+ isMessagesDisplaySuppressed: boolean;
9
+ isAutomaticDataCollectionEnabled: boolean;
10
+ setMessagesDisplaySuppressed(enabled: boolean): Promise<null>;
11
+ setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null>;
12
+ triggerEvent(eventId: string): Promise<null>;
13
+ }
14
+ declare module '@react-native-firebase/app/dist/module/internal/NativeModules' {
15
+ interface ReactNativeFirebaseNativeModules {
16
+ RNFBFiamModule: RNFBFiamModule;
17
+ }
18
+ }
19
+ export interface InAppMessagingInternal extends InAppMessaging {
20
+ readonly native: RNFBFiamModule;
21
+ }
22
+ export type InAppMessagingWithDeprecationArg = InAppMessagingInternal & {
23
+ setMessagesDisplaySuppressed(enabled: boolean, _depArg: InAppMessagingModularDeprecationArg): Promise<null>;
24
+ setAutomaticDataCollectionEnabled(enabled: boolean, _depArg: InAppMessagingModularDeprecationArg): Promise<null>;
25
+ triggerEvent(eventId: string, _depArg: InAppMessagingModularDeprecationArg): Promise<null>;
26
+ };
27
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../lib/types/internal.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,wFAAwF;AACxF,MAAM,MAAM,mCAAmC,GAAG,MAAM,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,2BAA2B,EAAE,OAAO,CAAC;IACrC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,iCAAiC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C;AAED,OAAO,QAAQ,+DAA+D,CAAC;IAC7E,UAAU,gCAAgC;QACxC,cAAc,EAAE,cAAc,CAAC;KAChC;CACF;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC;AAED,MAAM,MAAM,gCAAgC,GAAG,sBAAsB,GAAG;IACtE,4BAA4B,CAC1B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,iCAAiC,CAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,mCAAmC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5F,CAAC"}
@@ -0,0 +1,107 @@
1
+ import type { ReactNativeFirebase } from '@react-native-firebase/app';
2
+ /**
3
+ * Firebase In-App Messaging package for React Native.
4
+ *
5
+ * #### Example 1
6
+ *
7
+ * Access the firebase export from the `inAppMessaging` package:
8
+ *
9
+ * ```js
10
+ * import { firebase } from '@react-native-firebase/in-app-messaging';
11
+ *
12
+ * // firebase.inAppMessaging().X
13
+ * ```
14
+ *
15
+ * #### Example 2
16
+ *
17
+ * Using the default export from the `in-app-messaging` package:
18
+ *
19
+ * ```js
20
+ * import inAppMessaging from '@react-native-firebase/in-app-messaging';
21
+ *
22
+ * // inAppMessaging().X
23
+ * ```
24
+ *
25
+ * #### Example 3
26
+ *
27
+ * Using the default export from the `app` package:
28
+ *
29
+ * ```js
30
+ * import firebase from '@react-native-firebase/app';
31
+ * import '@react-native-firebase/in-app-messaging';
32
+ *
33
+ * // firebase.inAppMessaging().X
34
+ * ```
35
+ *
36
+ * @firebase in-app-messaging
37
+ */
38
+ /**
39
+ * @deprecated Use the exported types directly instead.
40
+ * FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
41
+ */
42
+ export declare namespace FirebaseInAppMessagingTypes {
43
+ /**
44
+ * @deprecated Use the exported types directly instead. FirebaseInAppMessagingTypes namespace is kept for backwards compatibility.
45
+ */
46
+ type FirebaseModule = ReactNativeFirebase.FirebaseModule;
47
+ /**
48
+ * @deprecated Use the default export statics instead.
49
+ */
50
+ export interface Statics {
51
+ /** @deprecated Use the default export statics instead. */
52
+ SDK_VERSION: string;
53
+ }
54
+ /**
55
+ * @deprecated Use the exported `InAppMessaging` type instead.
56
+ */
57
+ export interface Module extends FirebaseModule {
58
+ /**
59
+ * @deprecated Use the exported `InAppMessaging` type instead.
60
+ *
61
+ * The current `FirebaseApp` instance for this Firebase service.
62
+ */
63
+ app: ReactNativeFirebase.FirebaseApp;
64
+ /**
65
+ * @deprecated Use the exported `InAppMessaging` type instead.
66
+ *
67
+ * Determines whether messages are suppressed or not.
68
+ */
69
+ isMessagesDisplaySuppressed: boolean;
70
+ /**
71
+ * @deprecated Use the exported `InAppMessaging` type instead.
72
+ *
73
+ * Determines whether automatic data collection is enabled or not.
74
+ */
75
+ isAutomaticDataCollectionEnabled: boolean;
76
+ /**
77
+ * @deprecated Use the exported `InAppMessaging` type instead.
78
+ *
79
+ * Enable or disable suppression of Firebase In App Messaging messages.
80
+ */
81
+ setMessagesDisplaySuppressed(enabled: boolean): Promise<null>;
82
+ /**
83
+ * @deprecated Use the exported `InAppMessaging` type instead.
84
+ *
85
+ * Enable or disable automatic data collection for Firebase In-App Messaging.
86
+ */
87
+ setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null>;
88
+ /**
89
+ * @deprecated Use the exported `InAppMessaging` type instead.
90
+ *
91
+ * Trigger in-app messages programmatically.
92
+ */
93
+ triggerEvent(eventId: string): Promise<null>;
94
+ }
95
+ export {};
96
+ }
97
+ declare module '@react-native-firebase/app' {
98
+ namespace ReactNativeFirebase {
99
+ interface Module {
100
+ inAppMessaging: FirebaseModuleWithStaticsAndApp<FirebaseInAppMessagingTypes.Module, FirebaseInAppMessagingTypes.Statics>;
101
+ }
102
+ interface FirebaseApp {
103
+ inAppMessaging(): FirebaseInAppMessagingTypes.Module;
104
+ }
105
+ }
106
+ }
107
+ //# sourceMappingURL=namespaced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaced.d.ts","sourceRoot":"","sources":["../../../../lib/types/namespaced.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;;;GAGG;AAEH,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,KAAK,cAAc,GAAG,mBAAmB,CAAC,cAAc,CAAC;IAEzD;;OAEG;IACH,MAAM,WAAW,OAAO;QACtB,0DAA0D;QAC1D,WAAW,EAAE,MAAM,CAAC;KACrB;IAED;;OAEG;IACH,MAAM,WAAW,MAAO,SAAQ,cAAc;QAC5C;;;;WAIG;QACH,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC;QAErC;;;;WAIG;QACH,2BAA2B,EAAE,OAAO,CAAC;QAErC;;;;WAIG;QACH,gCAAgC,EAAE,OAAO,CAAC;QAE1C;;;;WAIG;QACH,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAE9D;;;;WAIG;QACH,iCAAiC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnE;;;;WAIG;QACH,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9C;;CACF;AAED,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,mBAAmB,CAAC;QAC5B,UAAU,MAAM;YACd,cAAc,EAAE,+BAA+B,CAC7C,2BAA2B,CAAC,MAAM,EAClC,2BAA2B,CAAC,OAAO,CACpC,CAAC;SACH;QAED,UAAU,WAAW;YACnB,cAAc,IAAI,2BAA2B,CAAC,MAAM,CAAC;SACtD;KACF;CACF"}
@@ -0,0 +1,2 @@
1
+ export declare const version = "25.0.1";
2
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../lib/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/lib/index.ts ADDED
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) 2016-present Invertase Limited & Contributors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this library except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ *
16
+ */
17
+
18
+ export type { InAppMessaging } from './types/in-app-messaging';
19
+
20
+ export type { FirebaseInAppMessagingTypes } from './types/namespaced';
21
+
22
+ export * from './modular';
23
+
24
+ export * from './namespaced';
25
+ export { default } from './namespaced';