posthog-react-native 3.11.2 → 3.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.
Files changed (73) hide show
  1. package/lib/posthog-core/src/featureFlagUtils.d.ts +34 -0
  2. package/lib/posthog-core/src/featureFlagUtils.js +1 -0
  3. package/lib/posthog-core/src/featureFlagUtils.js.map +1 -0
  4. package/lib/posthog-core/src/index.d.ts +44 -11
  5. package/lib/posthog-core/src/index.js +1 -1
  6. package/lib/posthog-core/src/index.js.map +1 -1
  7. package/lib/posthog-core/src/surveys-types.d.ts +197 -0
  8. package/lib/posthog-core/src/surveys-types.js +1 -0
  9. package/lib/posthog-core/src/surveys-types.js.map +1 -0
  10. package/lib/posthog-core/src/types.d.ts +110 -17
  11. package/lib/posthog-core/src/types.js +1 -1
  12. package/lib/posthog-core/src/types.js.map +1 -1
  13. package/lib/posthog-core/src/utils.js +1 -1
  14. package/lib/posthog-core/src/utils.js.map +1 -1
  15. package/lib/posthog-react-native/index.d.ts +1 -0
  16. package/lib/posthog-react-native/index.js +1 -1
  17. package/lib/posthog-react-native/index.js.map +1 -1
  18. package/lib/posthog-react-native/src/hooks/useFeatureFlag.d.ts +3 -3
  19. package/lib/posthog-react-native/src/native-deps.d.ts +1 -0
  20. package/lib/posthog-react-native/src/native-deps.js +1 -1
  21. package/lib/posthog-react-native/src/native-deps.js.map +1 -1
  22. package/lib/posthog-react-native/src/optional/OptionalReactNativeSafeArea.d.ts +2 -0
  23. package/lib/posthog-react-native/src/optional/OptionalReactNativeSafeArea.js +1 -0
  24. package/lib/posthog-react-native/src/optional/OptionalReactNativeSafeArea.js.map +1 -0
  25. package/lib/posthog-react-native/src/posthog-rn.d.ts +4 -0
  26. package/lib/posthog-react-native/src/posthog-rn.js +1 -1
  27. package/lib/posthog-react-native/src/posthog-rn.js.map +1 -1
  28. package/lib/posthog-react-native/src/surveys/PostHogSurveyProvider.d.ts +16 -0
  29. package/lib/posthog-react-native/src/surveys/PostHogSurveyProvider.js +1 -0
  30. package/lib/posthog-react-native/src/surveys/PostHogSurveyProvider.js.map +1 -0
  31. package/lib/posthog-react-native/src/surveys/components/BottomSection.d.ts +9 -0
  32. package/lib/posthog-react-native/src/surveys/components/BottomSection.js +1 -0
  33. package/lib/posthog-react-native/src/surveys/components/BottomSection.js.map +1 -0
  34. package/lib/posthog-react-native/src/surveys/components/Cancel.d.ts +6 -0
  35. package/lib/posthog-react-native/src/surveys/components/Cancel.js +1 -0
  36. package/lib/posthog-react-native/src/surveys/components/Cancel.js.map +1 -0
  37. package/lib/posthog-react-native/src/surveys/components/ConfirmationMessage.d.ts +13 -0
  38. package/lib/posthog-react-native/src/surveys/components/ConfirmationMessage.js +1 -0
  39. package/lib/posthog-react-native/src/surveys/components/ConfirmationMessage.js.map +1 -0
  40. package/lib/posthog-react-native/src/surveys/components/QuestionHeader.d.ts +7 -0
  41. package/lib/posthog-react-native/src/surveys/components/QuestionHeader.js +1 -0
  42. package/lib/posthog-react-native/src/surveys/components/QuestionHeader.js.map +1 -0
  43. package/lib/posthog-react-native/src/surveys/components/QuestionTypes.d.ts +27 -0
  44. package/lib/posthog-react-native/src/surveys/components/QuestionTypes.js +1 -0
  45. package/lib/posthog-react-native/src/surveys/components/QuestionTypes.js.map +1 -0
  46. package/lib/posthog-react-native/src/surveys/components/SurveyModal.d.ts +10 -0
  47. package/lib/posthog-react-native/src/surveys/components/SurveyModal.js +1 -0
  48. package/lib/posthog-react-native/src/surveys/components/SurveyModal.js.map +1 -0
  49. package/lib/posthog-react-native/src/surveys/components/Surveys.d.ts +14 -0
  50. package/lib/posthog-react-native/src/surveys/components/Surveys.js +1 -0
  51. package/lib/posthog-react-native/src/surveys/components/Surveys.js.map +1 -0
  52. package/lib/posthog-react-native/src/surveys/getActiveMatchingSurveys.d.ts +3 -0
  53. package/lib/posthog-react-native/src/surveys/getActiveMatchingSurveys.js +1 -0
  54. package/lib/posthog-react-native/src/surveys/getActiveMatchingSurveys.js.map +1 -0
  55. package/lib/posthog-react-native/src/surveys/icons.d.ts +8 -0
  56. package/lib/posthog-react-native/src/surveys/icons.js +1 -0
  57. package/lib/posthog-react-native/src/surveys/icons.js.map +1 -0
  58. package/lib/posthog-react-native/src/surveys/index.d.ts +6 -0
  59. package/lib/posthog-react-native/src/surveys/index.js +1 -0
  60. package/lib/posthog-react-native/src/surveys/index.js.map +1 -0
  61. package/lib/posthog-react-native/src/surveys/surveys-utils.d.ts +13 -0
  62. package/lib/posthog-react-native/src/surveys/surveys-utils.js +1 -0
  63. package/lib/posthog-react-native/src/surveys/surveys-utils.js.map +1 -0
  64. package/lib/posthog-react-native/src/surveys/useActivatedSurveys.d.ts +3 -0
  65. package/lib/posthog-react-native/src/surveys/useActivatedSurveys.js +1 -0
  66. package/lib/posthog-react-native/src/surveys/useActivatedSurveys.js.map +1 -0
  67. package/lib/posthog-react-native/src/surveys/useSurveyStorage.d.ts +8 -0
  68. package/lib/posthog-react-native/src/surveys/useSurveyStorage.js +1 -0
  69. package/lib/posthog-react-native/src/surveys/useSurveyStorage.js.map +1 -0
  70. package/lib/posthog-react-native/src/version.d.ts +1 -1
  71. package/lib/posthog-react-native/src/version.js +1 -1
  72. package/lib/posthog-react-native/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +17 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-react-native",
3
- "version": "3.11.2",
3
+ "version": "3.13.0",
4
4
  "main": "lib/posthog-react-native/index.js",
5
5
  "files": [
6
6
  "lib/"
@@ -27,25 +27,30 @@
27
27
  "expo-application": "^4.0.0",
28
28
  "expo-device": "^4.0.0",
29
29
  "expo-file-system": "^13.0.0",
30
- "expo-localization": "~11.0.0",
30
+ "expo-localization": "^11.0.0",
31
31
  "jest-expo": "^46.0.1",
32
32
  "react": "18.2.0",
33
33
  "react-native": "^0.69.1",
34
34
  "react-native-device-info": "^10.3.0",
35
35
  "react-native-navigation": "^6.0.0",
36
36
  "react-native-localize": "^3.0.0",
37
- "posthog-react-native-session-replay": "^1.0.0"
37
+ "posthog-react-native-session-replay": "^1.0.0",
38
+ "react-native-safe-area-context": "^4.10.1",
39
+ "react-native-svg": "^15.0.0"
38
40
  },
39
41
  "peerDependencies": {
40
42
  "@react-native-async-storage/async-storage": ">=1.0.0",
41
- "@react-navigation/native": ">= 5.0.10",
43
+ "@react-navigation/native": ">= 5.0.0",
42
44
  "expo-application": ">= 4.0.0",
43
45
  "expo-device": ">= 4.0.0",
44
46
  "expo-file-system": ">= 13.0.0",
45
47
  "expo-localization": ">= 11.0.0",
46
48
  "react-native-device-info": ">= 10.0.0",
47
- "react-native-navigation": ">=6.0.0",
48
- "posthog-react-native-session-replay": "^1.0.0"
49
+ "react-native-navigation": ">= 6.0.0",
50
+ "react-native-localize": ">= 3.0.0",
51
+ "posthog-react-native-session-replay": ">= 1.0.0",
52
+ "react-native-safe-area-context": ">= 4.0.0",
53
+ "react-native-svg": ">= 15.0.0"
49
54
  },
50
55
  "peerDependenciesMeta": {
51
56
  "@react-native-async-storage/async-storage": {
@@ -72,8 +77,14 @@
72
77
  "react-native-navigation": {
73
78
  "optional": true
74
79
  },
80
+ "react-native-localize": {
81
+ "optional": true
82
+ },
75
83
  "posthog-react-native-session-replay": {
76
84
  "optional": true
85
+ },
86
+ "react-native-safe-area-context": {
87
+ "optional": true
77
88
  }
78
89
  }
79
90
  }