@luciq/react-native 18.0.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 (239) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/FONTS_SETUP_GUIDE.md +521 -0
  3. package/Gemfile +1 -0
  4. package/Gemfile.lock +11 -0
  5. package/LICENSE +21 -0
  6. package/README.md +148 -0
  7. package/RNLuciq.podspec +21 -0
  8. package/android/build.gradle +88 -0
  9. package/android/gradle.properties +4 -0
  10. package/android/jacoco.gradle +52 -0
  11. package/android/native.gradle +7 -0
  12. package/android/proguard-rules.txt +1 -0
  13. package/android/sourcemaps.gradle +255 -0
  14. package/android/src/main/AndroidManifest.xml +4 -0
  15. package/android/src/main/java/ai/luciq/reactlibrary/ArgsRegistry.java +278 -0
  16. package/android/src/main/java/ai/luciq/reactlibrary/Constants.java +20 -0
  17. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciq.java +328 -0
  18. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqAPMModule.java +392 -0
  19. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqBugReportingModule.java +444 -0
  20. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqCrashReportingModule.java +169 -0
  21. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqFeatureRequestsModule.java +98 -0
  22. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqNetworkLoggerModule.java +195 -0
  23. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqReactnativeModule.java +1611 -0
  24. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqReactnativePackage.java +41 -0
  25. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqRepliesModule.java +298 -0
  26. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqSessionReplayModule.java +213 -0
  27. package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqSurveysModule.java +237 -0
  28. package/android/src/main/java/ai/luciq/reactlibrary/utils/ArrayUtil.java +167 -0
  29. package/android/src/main/java/ai/luciq/reactlibrary/utils/EventEmitterModule.java +35 -0
  30. package/android/src/main/java/ai/luciq/reactlibrary/utils/LuciqUtil.java +58 -0
  31. package/android/src/main/java/ai/luciq/reactlibrary/utils/MainThreadHandler.java +13 -0
  32. package/android/src/main/java/ai/luciq/reactlibrary/utils/MapUtil.java +171 -0
  33. package/android/src/main/java/ai/luciq/reactlibrary/utils/RNTouchedViewExtractor.java +167 -0
  34. package/android/src/main/java/ai/luciq/reactlibrary/utils/ReportUtil.java +67 -0
  35. package/app.plugin.js +1 -0
  36. package/babel.config.js +3 -0
  37. package/bin/commands/MigrateCommand.d.ts +6 -0
  38. package/bin/commands/UploadEasUpdatesSourcemaps.d.ts +2 -0
  39. package/bin/commands/UploadSoFiles.d.ts +6 -0
  40. package/bin/commands/UploadSourcemaps.d.ts +2 -0
  41. package/bin/config/migration-config.json +125 -0
  42. package/bin/index.d.ts +2 -0
  43. package/bin/index.js +19179 -0
  44. package/bin/upload/index.d.ts +4 -0
  45. package/bin/upload/migrate.d.ts +14 -0
  46. package/bin/upload/uploadEasUpdatesSourcemaps.d.ts +21 -0
  47. package/bin/upload/uploadSoFiles.d.ts +21 -0
  48. package/bin/upload/uploadSourcemaps.d.ts +21 -0
  49. package/cli/commands/MigrateCommand.ts +32 -0
  50. package/cli/commands/UploadEasUpdatesSourcemaps.ts +34 -0
  51. package/cli/commands/UploadSoFiles.ts +38 -0
  52. package/cli/commands/UploadSourcemaps.ts +40 -0
  53. package/cli/config/migration-config.json +125 -0
  54. package/cli/index.ts +21 -0
  55. package/cli/upload/index.ts +4 -0
  56. package/cli/upload/migrate.ts +271 -0
  57. package/cli/upload/uploadEasUpdatesSourcemaps.ts +74 -0
  58. package/cli/upload/uploadSoFiles.ts +112 -0
  59. package/cli/upload/uploadSourcemaps.ts +73 -0
  60. package/dangerfile.ts +44 -0
  61. package/dist/index.d.ts +19 -0
  62. package/dist/index.js +14 -0
  63. package/dist/models/FeatureFlag.d.ts +11 -0
  64. package/dist/models/FeatureFlag.js +1 -0
  65. package/dist/models/LuciqConfig.d.ts +42 -0
  66. package/dist/models/LuciqConfig.js +1 -0
  67. package/dist/models/NonFatalOptions.d.ts +15 -0
  68. package/dist/models/NonFatalOptions.js +1 -0
  69. package/dist/models/OverAirUpdate.d.ts +12 -0
  70. package/dist/models/OverAirUpdate.js +1 -0
  71. package/dist/models/Report.d.ts +70 -0
  72. package/dist/models/Report.js +109 -0
  73. package/dist/models/ReproConfig.d.ts +27 -0
  74. package/dist/models/ReproConfig.js +1 -0
  75. package/dist/models/SessionMetadata.d.ts +55 -0
  76. package/dist/models/SessionMetadata.js +1 -0
  77. package/dist/models/ThemeConfig.d.ts +27 -0
  78. package/dist/models/ThemeConfig.js +1 -0
  79. package/dist/models/W3cExternalTraceAttributes.d.ts +22 -0
  80. package/dist/models/W3cExternalTraceAttributes.js +1 -0
  81. package/dist/modules/APM.d.ts +77 -0
  82. package/dist/modules/APM.js +104 -0
  83. package/dist/modules/BugReporting.d.ts +138 -0
  84. package/dist/modules/BugReporting.js +202 -0
  85. package/dist/modules/CrashReporting.d.ts +19 -0
  86. package/dist/modules/CrashReporting.js +40 -0
  87. package/dist/modules/FeatureRequests.d.ts +20 -0
  88. package/dist/modules/FeatureRequests.js +28 -0
  89. package/dist/modules/Luciq.d.ts +362 -0
  90. package/dist/modules/Luciq.js +797 -0
  91. package/dist/modules/NetworkLogger.d.ts +52 -0
  92. package/dist/modules/NetworkLogger.js +208 -0
  93. package/dist/modules/Replies.d.ts +78 -0
  94. package/dist/modules/Replies.js +121 -0
  95. package/dist/modules/SessionReplay.d.ts +78 -0
  96. package/dist/modules/SessionReplay.js +98 -0
  97. package/dist/modules/Surveys.d.ts +75 -0
  98. package/dist/modules/Surveys.js +101 -0
  99. package/dist/native/NativeAPM.d.ts +18 -0
  100. package/dist/native/NativeAPM.js +4 -0
  101. package/dist/native/NativeBugReporting.d.ts +32 -0
  102. package/dist/native/NativeBugReporting.js +10 -0
  103. package/dist/native/NativeConstants.d.ts +182 -0
  104. package/dist/native/NativeConstants.js +1 -0
  105. package/dist/native/NativeCrashReporting.d.ts +18 -0
  106. package/dist/native/NativeCrashReporting.js +2 -0
  107. package/dist/native/NativeFeatureRequests.d.ts +8 -0
  108. package/dist/native/NativeFeatureRequests.js +2 -0
  109. package/dist/native/NativeLuciq.d.ts +86 -0
  110. package/dist/native/NativeLuciq.js +10 -0
  111. package/dist/native/NativeNetworkLogger.d.ts +21 -0
  112. package/dist/native/NativeNetworkLogger.js +14 -0
  113. package/dist/native/NativePackage.d.ts +21 -0
  114. package/dist/native/NativePackage.js +2 -0
  115. package/dist/native/NativeReplies.d.ts +21 -0
  116. package/dist/native/NativeReplies.js +8 -0
  117. package/dist/native/NativeSessionReplay.d.ts +16 -0
  118. package/dist/native/NativeSessionReplay.js +8 -0
  119. package/dist/native/NativeSurveys.d.ts +22 -0
  120. package/dist/native/NativeSurveys.js +9 -0
  121. package/dist/utils/AppStatesHandler.d.ts +3 -0
  122. package/dist/utils/AppStatesHandler.js +16 -0
  123. package/dist/utils/Enums.d.ts +244 -0
  124. package/dist/utils/Enums.js +266 -0
  125. package/dist/utils/FeatureFlags.d.ts +7 -0
  126. package/dist/utils/FeatureFlags.js +24 -0
  127. package/dist/utils/LuciqConstants.d.ts +14 -0
  128. package/dist/utils/LuciqConstants.js +15 -0
  129. package/dist/utils/LuciqUtils.d.ts +97 -0
  130. package/dist/utils/LuciqUtils.js +301 -0
  131. package/dist/utils/UnhandledRejectionTracking.d.ts +9 -0
  132. package/dist/utils/UnhandledRejectionTracking.js +99 -0
  133. package/dist/utils/XhrNetworkInterceptor.d.ts +39 -0
  134. package/dist/utils/XhrNetworkInterceptor.js +253 -0
  135. package/dist/utils/config.d.ts +5 -0
  136. package/dist/utils/config.js +6 -0
  137. package/dist/utils/logger.d.ts +10 -0
  138. package/dist/utils/logger.js +39 -0
  139. package/expo.d.ts +1 -0
  140. package/expo.js +1 -0
  141. package/ios/RNLuciq/ArgsRegistry.h +32 -0
  142. package/ios/RNLuciq/ArgsRegistry.m +276 -0
  143. package/ios/RNLuciq/LuciqAPMBridge.h +26 -0
  144. package/ios/RNLuciq/LuciqAPMBridge.m +99 -0
  145. package/ios/RNLuciq/LuciqBugReportingBridge.h +60 -0
  146. package/ios/RNLuciq/LuciqBugReportingBridge.m +241 -0
  147. package/ios/RNLuciq/LuciqCrashReportingBridge.h +18 -0
  148. package/ios/RNLuciq/LuciqCrashReportingBridge.m +68 -0
  149. package/ios/RNLuciq/LuciqFeatureRequestsBridge.h +30 -0
  150. package/ios/RNLuciq/LuciqFeatureRequestsBridge.m +61 -0
  151. package/ios/RNLuciq/LuciqNetworkLoggerBridge.h +44 -0
  152. package/ios/RNLuciq/LuciqNetworkLoggerBridge.m +206 -0
  153. package/ios/RNLuciq/LuciqReactBridge.h +151 -0
  154. package/ios/RNLuciq/LuciqReactBridge.m +548 -0
  155. package/ios/RNLuciq/LuciqRepliesBridge.h +40 -0
  156. package/ios/RNLuciq/LuciqRepliesBridge.m +80 -0
  157. package/ios/RNLuciq/LuciqSessionReplayBridge.h +32 -0
  158. package/ios/RNLuciq/LuciqSessionReplayBridge.m +107 -0
  159. package/ios/RNLuciq/LuciqSurveysBridge.h +46 -0
  160. package/ios/RNLuciq/LuciqSurveysBridge.m +107 -0
  161. package/ios/RNLuciq/RCTConvert+LuciqEnums.h +18 -0
  162. package/ios/RNLuciq/RCTConvert+LuciqEnums.m +127 -0
  163. package/ios/RNLuciq/RNLuciq.h +35 -0
  164. package/ios/RNLuciq/RNLuciq.m +107 -0
  165. package/ios/RNLuciq/Util/LCQAPM+PrivateAPIs.h +15 -0
  166. package/ios/RNLuciq/Util/LCQCrashReporting+CP.h +13 -0
  167. package/ios/RNLuciq/Util/LCQNetworkLogger+CP.h +68 -0
  168. package/ios/RNLuciq/Util/Luciq+CP.h +12 -0
  169. package/ios/RNLuciq.xcodeproj/project.pbxproj +352 -0
  170. package/ios/native.rb +12 -0
  171. package/ios/sourcemaps.sh +120 -0
  172. package/migrate.js +569 -0
  173. package/package.json +92 -0
  174. package/plugin/build/index.js +42078 -0
  175. package/plugin/src/index.ts +5 -0
  176. package/plugin/src/pluginProps.ts +6 -0
  177. package/plugin/src/withLuciq.ts +51 -0
  178. package/plugin/src/withLuciqAndroid.ts +99 -0
  179. package/plugin/src/withLuciqIOS.ts +109 -0
  180. package/plugin/tsconfig.json +7 -0
  181. package/react-native.config.js +16 -0
  182. package/scripts/customize-ios-endpoints.sh +28 -0
  183. package/scripts/dream-11-delete-unused-features.sh +62 -0
  184. package/scripts/find-token.js +58 -0
  185. package/scripts/find-token.sh +70 -0
  186. package/scripts/notify-github.sh +15 -0
  187. package/scripts/replace.js +58 -0
  188. package/scripts/snapshot-comment.md +15 -0
  189. package/scripts/snapshot-version.sh +11 -0
  190. package/src/index.ts +40 -0
  191. package/src/models/FeatureFlag.ts +12 -0
  192. package/src/models/LuciqConfig.ts +48 -0
  193. package/src/models/NonFatalOptions.ts +16 -0
  194. package/src/models/OverAirUpdate.ts +14 -0
  195. package/src/models/Report.ts +124 -0
  196. package/src/models/ReproConfig.ts +31 -0
  197. package/src/models/SessionMetadata.ts +57 -0
  198. package/src/models/ThemeConfig.ts +34 -0
  199. package/src/models/W3cExternalTraceAttributes.ts +22 -0
  200. package/src/modules/APM.ts +117 -0
  201. package/src/modules/BugReporting.ts +254 -0
  202. package/src/modules/CrashReporting.ts +54 -0
  203. package/src/modules/FeatureRequests.ts +32 -0
  204. package/src/modules/Luciq.ts +934 -0
  205. package/src/modules/NetworkLogger.ts +270 -0
  206. package/src/modules/Replies.ts +137 -0
  207. package/src/modules/SessionReplay.ts +111 -0
  208. package/src/modules/Surveys.ts +118 -0
  209. package/src/native/NativeAPM.ts +51 -0
  210. package/src/native/NativeBugReporting.ts +70 -0
  211. package/src/native/NativeConstants.ts +215 -0
  212. package/src/native/NativeCrashReporting.ts +29 -0
  213. package/src/native/NativeFeatureRequests.ts +12 -0
  214. package/src/native/NativeLuciq.ts +179 -0
  215. package/src/native/NativeNetworkLogger.ts +42 -0
  216. package/src/native/NativePackage.ts +25 -0
  217. package/src/native/NativeReplies.ts +34 -0
  218. package/src/native/NativeSessionReplay.ts +21 -0
  219. package/src/native/NativeSurveys.ts +34 -0
  220. package/src/promise.d.ts +11 -0
  221. package/src/utils/AppStatesHandler.ts +19 -0
  222. package/src/utils/Enums.ts +266 -0
  223. package/src/utils/FeatureFlags.ts +33 -0
  224. package/src/utils/LuciqConstants.ts +24 -0
  225. package/src/utils/LuciqUtils.ts +417 -0
  226. package/src/utils/UnhandledRejectionTracking.ts +118 -0
  227. package/src/utils/XhrNetworkInterceptor.ts +333 -0
  228. package/src/utils/config.ts +7 -0
  229. package/src/utils/logger.ts +54 -0
  230. package/tsconfig.json +32 -0
  231. package/tsconfig.test.json +4 -0
  232. package/tsconfig.upload.json +10 -0
  233. package/upload/index.d.ts +4 -0
  234. package/upload/index.js +17314 -0
  235. package/upload/migrate.d.ts +14 -0
  236. package/upload/package.json +5 -0
  237. package/upload/uploadEasUpdatesSourcemaps.d.ts +21 -0
  238. package/upload/uploadSoFiles.d.ts +21 -0
  239. package/upload/uploadSourcemaps.d.ts +21 -0
@@ -0,0 +1,16 @@
1
+ import { NativeEventEmitter } from 'react-native';
2
+ import type { NativeModule } from 'react-native';
3
+ export interface SessionReplayNativeModule extends NativeModule {
4
+ setEnabled(isEnabled: boolean): void;
5
+ setNetworkLogsEnabled(isEnabled: boolean): void;
6
+ setLuciqLogsEnabled(isEnabled: boolean): void;
7
+ setUserStepsEnabled(isEnabled: boolean): void;
8
+ getSessionReplayLink(): Promise<string>;
9
+ setSyncCallback(): Promise<void>;
10
+ evaluateSync(shouldSync: boolean): void;
11
+ }
12
+ export declare const NativeSessionReplay: SessionReplayNativeModule;
13
+ export declare enum NativeEvents {
14
+ SESSION_REPLAY_ON_SYNC_CALLBACK_INVOCATION = "LCQSessionReplayOnSyncCallback"
15
+ }
16
+ export declare const emitter: NativeEventEmitter;
@@ -0,0 +1,8 @@
1
+ import { NativeEventEmitter } from 'react-native';
2
+ import { NativeModules } from './NativePackage';
3
+ export const NativeSessionReplay = NativeModules.LCQSessionReplay;
4
+ export var NativeEvents;
5
+ (function (NativeEvents) {
6
+ NativeEvents["SESSION_REPLAY_ON_SYNC_CALLBACK_INVOCATION"] = "LCQSessionReplayOnSyncCallback";
7
+ })(NativeEvents || (NativeEvents = {}));
8
+ export const emitter = new NativeEventEmitter(NativeSessionReplay);
@@ -0,0 +1,22 @@
1
+ import { NativeEventEmitter, NativeModule } from 'react-native';
2
+ export interface Survey {
3
+ title: string;
4
+ }
5
+ export interface SurveysNativeModule extends NativeModule {
6
+ setEnabled(isEnabled: boolean): void;
7
+ setAutoShowingEnabled(autoShowingSurveysEnabled: boolean): void;
8
+ showSurvey(surveyToken: string): void;
9
+ showSurveysIfAvailable(): void;
10
+ getAvailableSurveys(): Promise<Survey[]>;
11
+ hasRespondedToSurvey(surveyToken: string): Promise<boolean>;
12
+ setShouldShowWelcomeScreen(shouldShowWelcomeScreen: boolean): void;
13
+ setAppStoreURL(appStoreURL: string): void;
14
+ setOnShowHandler(onShowHandler: () => void): void;
15
+ setOnDismissHandler(onDismissHandler: () => void): void;
16
+ }
17
+ export declare const NativeSurveys: SurveysNativeModule;
18
+ export declare enum NativeEvents {
19
+ WILL_SHOW_SURVEY_HANDLER = "LCQWillShowSurvey",
20
+ DID_DISMISS_SURVEY_HANDLER = "LCQDidDismissSurvey"
21
+ }
22
+ export declare const emitter: NativeEventEmitter;
@@ -0,0 +1,9 @@
1
+ import { NativeEventEmitter } from 'react-native';
2
+ import { NativeModules } from './NativePackage';
3
+ export const NativeSurveys = NativeModules.LCQSurveys;
4
+ export var NativeEvents;
5
+ (function (NativeEvents) {
6
+ NativeEvents["WILL_SHOW_SURVEY_HANDLER"] = "LCQWillShowSurvey";
7
+ NativeEvents["DID_DISMISS_SURVEY_HANDLER"] = "LCQDidDismissSurvey";
8
+ })(NativeEvents || (NativeEvents = {}));
9
+ export const emitter = new NativeEventEmitter(NativeSurveys);
@@ -0,0 +1,3 @@
1
+ import { type AppStateStatus } from 'react-native';
2
+ export declare const addAppStateListener: (handleAppStateChange: (state: AppStateStatus) => void) => void;
3
+ export declare const removeAppStateListener: () => void;
@@ -0,0 +1,16 @@
1
+ import { AppState } from 'react-native';
2
+ let subscription = null;
3
+ // Register the event listener manually
4
+ export const addAppStateListener = (handleAppStateChange) => {
5
+ if (!subscription) {
6
+ subscription = AppState.addEventListener('change', handleAppStateChange);
7
+ }
8
+ };
9
+ // Unregister the event listener manually
10
+ //todo: find where to Unregister appState listener
11
+ export const removeAppStateListener = () => {
12
+ if (subscription) {
13
+ subscription.remove();
14
+ subscription = null;
15
+ }
16
+ };
@@ -0,0 +1,244 @@
1
+ /**
2
+ * Verbosity level of the SDK debug logs. This has nothing to do with `Luciq.log`,
3
+ * and only affect the logs used to debug the SDK itself.
4
+ */
5
+ export declare enum LogLevel {
6
+ verbose,
7
+ debug,
8
+ error,
9
+ none
10
+ }
11
+ /**
12
+ * Enum representing the available user consent action types.
13
+ *
14
+ */
15
+ export declare enum userConsentActionType {
16
+ dropAutoCapturedMedia,
17
+ dropLogs,
18
+ noChat
19
+ }
20
+ /**
21
+ * The event used to invoke the feedback form.
22
+ */
23
+ export declare enum InvocationEvent {
24
+ none,
25
+ shake,
26
+ screenshot,
27
+ twoFingersSwipe,
28
+ floatingButton
29
+ }
30
+ /**
31
+ * The network interceptor to use.
32
+ */
33
+ export declare enum NetworkInterceptionMode {
34
+ javascript = 0,
35
+ native = 1
36
+ }
37
+ /**
38
+ * Options added while invoking bug reporting.
39
+ */
40
+ export declare enum InvocationOption {
41
+ emailFieldHidden,
42
+ emailFieldOptional,
43
+ commentFieldRequired,
44
+ disablePostSendingDialog
45
+ }
46
+ /**
47
+ * The color theme of the different UI elements.
48
+ */
49
+ export declare enum ColorTheme {
50
+ light,
51
+ dark
52
+ }
53
+ /**
54
+ * Floating button positions.
55
+ */
56
+ export declare enum FloatingButtonPosition {
57
+ left,
58
+ right
59
+ }
60
+ /**
61
+ * Video recording button positions.
62
+ */
63
+ export declare enum RecordingButtonPosition {
64
+ bottomRight,
65
+ topRight,
66
+ bottomLeft,
67
+ topLeft
68
+ }
69
+ /**
70
+ * The welcome message mode.
71
+ */
72
+ export declare enum WelcomeMessageMode {
73
+ live,
74
+ beta,
75
+ disabled
76
+ }
77
+ /**
78
+ * Type of the report either feedback or bug.
79
+ */
80
+ export declare enum ReportType {
81
+ bug,
82
+ feedback,
83
+ question
84
+ }
85
+ /**
86
+ * Type of SDK dismiss.
87
+ */
88
+ export declare enum DismissType {
89
+ submit,
90
+ cancel,
91
+ addAttachment
92
+ }
93
+ /**
94
+ * Types of possible actions inside Feature Requests.
95
+ */
96
+ export declare enum ActionType {
97
+ all,
98
+ reportBug,
99
+ requestNewFeature,
100
+ addCommentToFeature
101
+ }
102
+ /**
103
+ * The extended bug report mode.
104
+ */
105
+ export declare enum ExtendedBugReportMode {
106
+ enabledWithRequiredFields,
107
+ enabledWithOptionalFields,
108
+ disabled
109
+ }
110
+ /**
111
+ * The user steps option.
112
+ */
113
+ export declare enum ReproStepsMode {
114
+ enabledWithNoScreenshots,
115
+ enabled,
116
+ disabled
117
+ }
118
+ /**
119
+ * The non fatal error level.
120
+ */
121
+ export declare enum NonFatalErrorLevel {
122
+ error,
123
+ critical,
124
+ info,
125
+ warning
126
+ }
127
+ /**
128
+ * Supported locales
129
+ */
130
+ export declare enum Locale {
131
+ arabic,
132
+ azerbaijani,
133
+ chineseSimplified,
134
+ chineseTraditional,
135
+ czech,
136
+ danish,
137
+ dutch,
138
+ english,
139
+ french,
140
+ german,
141
+ italian,
142
+ japanese,
143
+ korean,
144
+ polish,
145
+ portugueseBrazil,
146
+ romanian,
147
+ russian,
148
+ spanish,
149
+ swedish,
150
+ turkish
151
+ }
152
+ /**
153
+ * Overridable strings in Luciq's UI
154
+ */
155
+ export declare enum StringKey {
156
+ addAttachmentButtonTitleStringName,
157
+ addExtraScreenshot,
158
+ addImageFromGallery,
159
+ addVideoMessage,
160
+ addVoiceMessage,
161
+ audio,
162
+ audioRecordingPermissionDeniedMessage,
163
+ audioRecordingPermissionDeniedTitle,
164
+ cancelButtonText,
165
+ collectingDataText,
166
+ commentFieldHintForBugReport,
167
+ commentFieldHintForFeedback,
168
+ commentFieldHintForQuestion,
169
+ conversationsHeaderTitle,
170
+ conversationTextFieldHint,
171
+ discardAlertDiscard,
172
+ discardAlertStay,
173
+ discardAlertMessage,
174
+ discardAlertTitle,
175
+ edgeSwipeStartHint,
176
+ emailFieldHint,
177
+ image,
178
+ insufficientContentMessage,
179
+ /** iOS only */
180
+ insufficientContentTitle,
181
+ invalidEmailMessage,
182
+ invalidEmailTitle,
183
+ invocationHeader,
184
+ messagesNotification,
185
+ messagesNotificationAndOthers,
186
+ microphonePermissionAlertSettingsButtonText,
187
+ okButtonText,
188
+ recordingMessageToHoldText,
189
+ recordingMessageToReleaseText,
190
+ reportBug,
191
+ reportBugDescription,
192
+ reportFeedback,
193
+ reportFeedbackDescription,
194
+ reportQuestion,
195
+ reportQuestionDescription,
196
+ reportReproStepsDisclaimerBody,
197
+ reportReproStepsDisclaimerLink,
198
+ reproStepsListDescription,
199
+ reproStepsListEmptyStateDescription,
200
+ reproStepsListHeader,
201
+ reproStepsListItemNumberingTitle,
202
+ reproStepsProgressDialogBody,
203
+ requestFeatureDescription,
204
+ screenRecording,
205
+ screenshotHeaderTitle,
206
+ shakeHint,
207
+ startAlertText,
208
+ surveysStoreRatingThanksSubtitle,
209
+ surveysStoreRatingThanksTitle,
210
+ swipeHint,
211
+ team,
212
+ thankYouAlertText,
213
+ thankYouText,
214
+ videoPressRecord,
215
+ welcomeMessageBetaFinishStepContent,
216
+ welcomeMessageBetaFinishStepTitle,
217
+ welcomeMessageBetaHowToReportStepContent,
218
+ welcomeMessageBetaHowToReportStepTitle,
219
+ welcomeMessageBetaWelcomeStepContent,
220
+ welcomeMessageBetaWelcomeStepTitle,
221
+ welcomeMessageLiveWelcomeStepContent,
222
+ welcomeMessageLiveWelcomeStepTitle
223
+ }
224
+ export declare enum LaunchType {
225
+ cold,
226
+ unknown,
227
+ /**
228
+ * Android only
229
+ */
230
+ warm
231
+ }
232
+ /**
233
+ * Over Air Update Service
234
+ */
235
+ export declare enum OverAirUpdateServices {
236
+ codePush,
237
+ expo
238
+ }
239
+ export declare enum AutoMaskingType {
240
+ labels,
241
+ textInputs,
242
+ media,
243
+ none
244
+ }
@@ -0,0 +1,266 @@
1
+ import { NativeLuciq } from '../native/NativeLuciq';
2
+ const constants = NativeLuciq.getConstants();
3
+ /**
4
+ * Verbosity level of the SDK debug logs. This has nothing to do with `Luciq.log`,
5
+ * and only affect the logs used to debug the SDK itself.
6
+ */
7
+ export var LogLevel;
8
+ (function (LogLevel) {
9
+ LogLevel[LogLevel["verbose"] = constants.sdkDebugLogsLevelVerbose] = "verbose";
10
+ LogLevel[LogLevel["debug"] = constants.sdkDebugLogsLevelDebug] = "debug";
11
+ LogLevel[LogLevel["error"] = constants.sdkDebugLogsLevelError] = "error";
12
+ LogLevel[LogLevel["none"] = constants.sdkDebugLogsLevelNone] = "none";
13
+ })(LogLevel || (LogLevel = {}));
14
+ /**
15
+ * Enum representing the available user consent action types.
16
+ *
17
+ */
18
+ export var userConsentActionType;
19
+ (function (userConsentActionType) {
20
+ userConsentActionType[userConsentActionType["dropAutoCapturedMedia"] = constants.dropAutoCapturedMedia] = "dropAutoCapturedMedia";
21
+ userConsentActionType[userConsentActionType["dropLogs"] = constants.dropLogs] = "dropLogs";
22
+ userConsentActionType[userConsentActionType["noChat"] = constants.noChat] = "noChat";
23
+ })(userConsentActionType || (userConsentActionType = {}));
24
+ /**
25
+ * The event used to invoke the feedback form.
26
+ */
27
+ export var InvocationEvent;
28
+ (function (InvocationEvent) {
29
+ InvocationEvent[InvocationEvent["none"] = constants.invocationEventNone] = "none";
30
+ InvocationEvent[InvocationEvent["shake"] = constants.invocationEventShake] = "shake";
31
+ InvocationEvent[InvocationEvent["screenshot"] = constants.invocationEventScreenshot] = "screenshot";
32
+ InvocationEvent[InvocationEvent["twoFingersSwipe"] = constants.invocationEventTwoFingersSwipeLeft] = "twoFingersSwipe";
33
+ InvocationEvent[InvocationEvent["floatingButton"] = constants.invocationEventFloatingButton] = "floatingButton";
34
+ })(InvocationEvent || (InvocationEvent = {}));
35
+ /**
36
+ * The network interceptor to use.
37
+ */
38
+ export var NetworkInterceptionMode;
39
+ (function (NetworkInterceptionMode) {
40
+ NetworkInterceptionMode[NetworkInterceptionMode["javascript"] = 0] = "javascript";
41
+ NetworkInterceptionMode[NetworkInterceptionMode["native"] = 1] = "native";
42
+ })(NetworkInterceptionMode || (NetworkInterceptionMode = {}));
43
+ /**
44
+ * Options added while invoking bug reporting.
45
+ */
46
+ export var InvocationOption;
47
+ (function (InvocationOption) {
48
+ InvocationOption[InvocationOption["emailFieldHidden"] = constants.optionEmailFieldHidden] = "emailFieldHidden";
49
+ InvocationOption[InvocationOption["emailFieldOptional"] = constants.optionEmailFieldOptional] = "emailFieldOptional";
50
+ InvocationOption[InvocationOption["commentFieldRequired"] = constants.optionCommentFieldRequired] = "commentFieldRequired";
51
+ InvocationOption[InvocationOption["disablePostSendingDialog"] = constants.optionDisablePostSendingDialog] = "disablePostSendingDialog";
52
+ })(InvocationOption || (InvocationOption = {}));
53
+ /**
54
+ * The color theme of the different UI elements.
55
+ */
56
+ export var ColorTheme;
57
+ (function (ColorTheme) {
58
+ ColorTheme[ColorTheme["light"] = constants.colorThemeLight] = "light";
59
+ ColorTheme[ColorTheme["dark"] = constants.colorThemeDark] = "dark";
60
+ })(ColorTheme || (ColorTheme = {}));
61
+ /**
62
+ * Floating button positions.
63
+ */
64
+ export var FloatingButtonPosition;
65
+ (function (FloatingButtonPosition) {
66
+ FloatingButtonPosition[FloatingButtonPosition["left"] = constants.rectMinXEdge] = "left";
67
+ FloatingButtonPosition[FloatingButtonPosition["right"] = constants.rectMaxXEdge] = "right";
68
+ })(FloatingButtonPosition || (FloatingButtonPosition = {}));
69
+ /**
70
+ * Video recording button positions.
71
+ */
72
+ export var RecordingButtonPosition;
73
+ (function (RecordingButtonPosition) {
74
+ RecordingButtonPosition[RecordingButtonPosition["bottomRight"] = constants.bottomRight] = "bottomRight";
75
+ RecordingButtonPosition[RecordingButtonPosition["topRight"] = constants.topRight] = "topRight";
76
+ RecordingButtonPosition[RecordingButtonPosition["bottomLeft"] = constants.bottomLeft] = "bottomLeft";
77
+ RecordingButtonPosition[RecordingButtonPosition["topLeft"] = constants.topLeft] = "topLeft";
78
+ })(RecordingButtonPosition || (RecordingButtonPosition = {}));
79
+ /**
80
+ * The welcome message mode.
81
+ */
82
+ export var WelcomeMessageMode;
83
+ (function (WelcomeMessageMode) {
84
+ WelcomeMessageMode[WelcomeMessageMode["live"] = constants.welcomeMessageModeLive] = "live";
85
+ WelcomeMessageMode[WelcomeMessageMode["beta"] = constants.welcomeMessageModeBeta] = "beta";
86
+ WelcomeMessageMode[WelcomeMessageMode["disabled"] = constants.welcomeMessageModeDisabled] = "disabled";
87
+ })(WelcomeMessageMode || (WelcomeMessageMode = {}));
88
+ /**
89
+ * Type of the report either feedback or bug.
90
+ */
91
+ export var ReportType;
92
+ (function (ReportType) {
93
+ ReportType[ReportType["bug"] = constants.bugReportingReportTypeBug] = "bug";
94
+ ReportType[ReportType["feedback"] = constants.bugReportingReportTypeFeedback] = "feedback";
95
+ ReportType[ReportType["question"] = constants.bugReportingReportTypeQuestion] = "question";
96
+ })(ReportType || (ReportType = {}));
97
+ /**
98
+ * Type of SDK dismiss.
99
+ */
100
+ export var DismissType;
101
+ (function (DismissType) {
102
+ DismissType[DismissType["submit"] = constants.dismissTypeSubmit] = "submit";
103
+ DismissType[DismissType["cancel"] = constants.dismissTypeCancel] = "cancel";
104
+ DismissType[DismissType["addAttachment"] = constants.dismissTypeAddAttachment] = "addAttachment";
105
+ })(DismissType || (DismissType = {}));
106
+ /**
107
+ * Types of possible actions inside Feature Requests.
108
+ */
109
+ export var ActionType;
110
+ (function (ActionType) {
111
+ ActionType[ActionType["all"] = constants.allActions] = "all";
112
+ ActionType[ActionType["reportBug"] = constants.reportBugAction] = "reportBug";
113
+ ActionType[ActionType["requestNewFeature"] = constants.requestNewFeature] = "requestNewFeature";
114
+ ActionType[ActionType["addCommentToFeature"] = constants.addCommentToFeature] = "addCommentToFeature";
115
+ })(ActionType || (ActionType = {}));
116
+ /**
117
+ * The extended bug report mode.
118
+ */
119
+ export var ExtendedBugReportMode;
120
+ (function (ExtendedBugReportMode) {
121
+ ExtendedBugReportMode[ExtendedBugReportMode["enabledWithRequiredFields"] = constants.enabledWithRequiredFields] = "enabledWithRequiredFields";
122
+ ExtendedBugReportMode[ExtendedBugReportMode["enabledWithOptionalFields"] = constants.enabledWithOptionalFields] = "enabledWithOptionalFields";
123
+ ExtendedBugReportMode[ExtendedBugReportMode["disabled"] = constants.disabled] = "disabled";
124
+ })(ExtendedBugReportMode || (ExtendedBugReportMode = {}));
125
+ /**
126
+ * The user steps option.
127
+ */
128
+ export var ReproStepsMode;
129
+ (function (ReproStepsMode) {
130
+ ReproStepsMode[ReproStepsMode["enabledWithNoScreenshots"] = constants.reproStepsEnabledWithNoScreenshots] = "enabledWithNoScreenshots";
131
+ ReproStepsMode[ReproStepsMode["enabled"] = constants.reproStepsEnabled] = "enabled";
132
+ ReproStepsMode[ReproStepsMode["disabled"] = constants.reproStepsDisabled] = "disabled";
133
+ })(ReproStepsMode || (ReproStepsMode = {}));
134
+ /**
135
+ * The non fatal error level.
136
+ */
137
+ export var NonFatalErrorLevel;
138
+ (function (NonFatalErrorLevel) {
139
+ NonFatalErrorLevel[NonFatalErrorLevel["error"] = constants.nonFatalErrorLevelError] = "error";
140
+ NonFatalErrorLevel[NonFatalErrorLevel["critical"] = constants.nonFatalErrorLevelCritical] = "critical";
141
+ NonFatalErrorLevel[NonFatalErrorLevel["info"] = constants.nonFatalErrorLevelInfo] = "info";
142
+ NonFatalErrorLevel[NonFatalErrorLevel["warning"] = constants.nonFatalErrorLevelWarning] = "warning";
143
+ })(NonFatalErrorLevel || (NonFatalErrorLevel = {}));
144
+ /**
145
+ * Supported locales
146
+ */
147
+ export var Locale;
148
+ (function (Locale) {
149
+ Locale[Locale["arabic"] = constants.localeArabic] = "arabic";
150
+ Locale[Locale["azerbaijani"] = constants.localeAzerbaijani] = "azerbaijani";
151
+ Locale[Locale["chineseSimplified"] = constants.localeChineseSimplified] = "chineseSimplified";
152
+ Locale[Locale["chineseTraditional"] = constants.localeChineseTraditional] = "chineseTraditional";
153
+ Locale[Locale["czech"] = constants.localeCzech] = "czech";
154
+ Locale[Locale["danish"] = constants.localeDanish] = "danish";
155
+ Locale[Locale["dutch"] = constants.localeDutch] = "dutch";
156
+ Locale[Locale["english"] = constants.localeEnglish] = "english";
157
+ Locale[Locale["french"] = constants.localeFrench] = "french";
158
+ Locale[Locale["german"] = constants.localeGerman] = "german";
159
+ Locale[Locale["italian"] = constants.localeItalian] = "italian";
160
+ Locale[Locale["japanese"] = constants.localeJapanese] = "japanese";
161
+ Locale[Locale["korean"] = constants.localeKorean] = "korean";
162
+ Locale[Locale["polish"] = constants.localePolish] = "polish";
163
+ Locale[Locale["portugueseBrazil"] = constants.localePortugueseBrazil] = "portugueseBrazil";
164
+ Locale[Locale["romanian"] = constants.localeRomanian] = "romanian";
165
+ Locale[Locale["russian"] = constants.localeRussian] = "russian";
166
+ Locale[Locale["spanish"] = constants.localeSpanish] = "spanish";
167
+ Locale[Locale["swedish"] = constants.localeSwedish] = "swedish";
168
+ Locale[Locale["turkish"] = constants.localeTurkish] = "turkish";
169
+ })(Locale || (Locale = {}));
170
+ /**
171
+ * Overridable strings in Luciq's UI
172
+ */
173
+ export var StringKey;
174
+ (function (StringKey) {
175
+ StringKey[StringKey["addAttachmentButtonTitleStringName"] = constants.addAttachmentButtonTitleStringName] = "addAttachmentButtonTitleStringName";
176
+ StringKey[StringKey["addExtraScreenshot"] = constants.addExtraScreenshot] = "addExtraScreenshot";
177
+ StringKey[StringKey["addImageFromGallery"] = constants.addImageFromGallery] = "addImageFromGallery";
178
+ StringKey[StringKey["addVideoMessage"] = constants.addVideoMessage] = "addVideoMessage";
179
+ StringKey[StringKey["addVoiceMessage"] = constants.addVoiceMessage] = "addVoiceMessage";
180
+ StringKey[StringKey["audio"] = constants.audio] = "audio";
181
+ StringKey[StringKey["audioRecordingPermissionDeniedMessage"] = constants.audioRecordingPermissionDeniedMessage] = "audioRecordingPermissionDeniedMessage";
182
+ StringKey[StringKey["audioRecordingPermissionDeniedTitle"] = constants.audioRecordingPermissionDeniedTitle] = "audioRecordingPermissionDeniedTitle";
183
+ StringKey[StringKey["cancelButtonText"] = constants.cancelButtonTitle] = "cancelButtonText";
184
+ StringKey[StringKey["collectingDataText"] = constants.collectingDataText] = "collectingDataText";
185
+ StringKey[StringKey["commentFieldHintForBugReport"] = constants.commentFieldHintForBugReport] = "commentFieldHintForBugReport";
186
+ StringKey[StringKey["commentFieldHintForFeedback"] = constants.commentFieldHintForFeedback] = "commentFieldHintForFeedback";
187
+ StringKey[StringKey["commentFieldHintForQuestion"] = constants.commentFieldHintForQuestion] = "commentFieldHintForQuestion";
188
+ StringKey[StringKey["conversationsHeaderTitle"] = constants.conversationsHeaderTitle] = "conversationsHeaderTitle";
189
+ StringKey[StringKey["conversationTextFieldHint"] = constants.conversationTextFieldHint] = "conversationTextFieldHint";
190
+ StringKey[StringKey["discardAlertDiscard"] = constants.discardAlertDiscard] = "discardAlertDiscard";
191
+ StringKey[StringKey["discardAlertStay"] = constants.discardAlertStay] = "discardAlertStay";
192
+ StringKey[StringKey["discardAlertMessage"] = constants.discardAlertMessage] = "discardAlertMessage";
193
+ StringKey[StringKey["discardAlertTitle"] = constants.discardAlertTitle] = "discardAlertTitle";
194
+ StringKey[StringKey["edgeSwipeStartHint"] = constants.edgeSwipeStartHint] = "edgeSwipeStartHint";
195
+ StringKey[StringKey["emailFieldHint"] = constants.emailFieldHint] = "emailFieldHint";
196
+ StringKey[StringKey["image"] = constants.image] = "image";
197
+ StringKey[StringKey["insufficientContentMessage"] = constants.insufficientContentMessage] = "insufficientContentMessage";
198
+ /** iOS only */
199
+ StringKey[StringKey["insufficientContentTitle"] = constants.insufficientContentTitle] = "insufficientContentTitle";
200
+ StringKey[StringKey["invalidEmailMessage"] = constants.invalidEmailMessage] = "invalidEmailMessage";
201
+ StringKey[StringKey["invalidEmailTitle"] = constants.invalidEmailTitle] = "invalidEmailTitle";
202
+ StringKey[StringKey["invocationHeader"] = constants.invocationHeader] = "invocationHeader";
203
+ StringKey[StringKey["messagesNotification"] = constants.messagesNotification] = "messagesNotification";
204
+ StringKey[StringKey["messagesNotificationAndOthers"] = constants.messagesNotificationAndOthers] = "messagesNotificationAndOthers";
205
+ StringKey[StringKey["microphonePermissionAlertSettingsButtonText"] = constants.microphonePermissionAlertSettingsButtonTitle] = "microphonePermissionAlertSettingsButtonText";
206
+ StringKey[StringKey["okButtonText"] = constants.okButtonTitle] = "okButtonText";
207
+ StringKey[StringKey["recordingMessageToHoldText"] = constants.recordingMessageToHoldText] = "recordingMessageToHoldText";
208
+ StringKey[StringKey["recordingMessageToReleaseText"] = constants.recordingMessageToReleaseText] = "recordingMessageToReleaseText";
209
+ StringKey[StringKey["reportBug"] = constants.reportBug] = "reportBug";
210
+ StringKey[StringKey["reportBugDescription"] = constants.reportBugDescription] = "reportBugDescription";
211
+ StringKey[StringKey["reportFeedback"] = constants.reportFeedback] = "reportFeedback";
212
+ StringKey[StringKey["reportFeedbackDescription"] = constants.reportFeedbackDescription] = "reportFeedbackDescription";
213
+ StringKey[StringKey["reportQuestion"] = constants.reportQuestion] = "reportQuestion";
214
+ StringKey[StringKey["reportQuestionDescription"] = constants.reportQuestionDescription] = "reportQuestionDescription";
215
+ StringKey[StringKey["reportReproStepsDisclaimerBody"] = constants.reportReproStepsDisclaimerBody] = "reportReproStepsDisclaimerBody";
216
+ StringKey[StringKey["reportReproStepsDisclaimerLink"] = constants.reportReproStepsDisclaimerLink] = "reportReproStepsDisclaimerLink";
217
+ StringKey[StringKey["reproStepsListDescription"] = constants.reproStepsListDescription] = "reproStepsListDescription";
218
+ StringKey[StringKey["reproStepsListEmptyStateDescription"] = constants.reproStepsListEmptyStateDescription] = "reproStepsListEmptyStateDescription";
219
+ StringKey[StringKey["reproStepsListHeader"] = constants.reproStepsListHeader] = "reproStepsListHeader";
220
+ StringKey[StringKey["reproStepsListItemNumberingTitle"] = constants.reproStepsListItemNumberingTitle] = "reproStepsListItemNumberingTitle";
221
+ StringKey[StringKey["reproStepsProgressDialogBody"] = constants.reproStepsProgressDialogBody] = "reproStepsProgressDialogBody";
222
+ StringKey[StringKey["requestFeatureDescription"] = constants.requestFeatureDescription] = "requestFeatureDescription";
223
+ StringKey[StringKey["screenRecording"] = constants.screenRecording] = "screenRecording";
224
+ StringKey[StringKey["screenshotHeaderTitle"] = constants.screenshotHeaderTitle] = "screenshotHeaderTitle";
225
+ StringKey[StringKey["shakeHint"] = constants.shakeHint] = "shakeHint";
226
+ StringKey[StringKey["startAlertText"] = constants.startAlertText] = "startAlertText";
227
+ StringKey[StringKey["surveysStoreRatingThanksSubtitle"] = constants.surveysStoreRatingThanksSubtitle] = "surveysStoreRatingThanksSubtitle";
228
+ StringKey[StringKey["surveysStoreRatingThanksTitle"] = constants.surveysStoreRatingThanksTitle] = "surveysStoreRatingThanksTitle";
229
+ StringKey[StringKey["swipeHint"] = constants.swipeHint] = "swipeHint";
230
+ StringKey[StringKey["team"] = constants.team] = "team";
231
+ StringKey[StringKey["thankYouAlertText"] = constants.thankYouAlertText] = "thankYouAlertText";
232
+ StringKey[StringKey["thankYouText"] = constants.thankYouText] = "thankYouText";
233
+ StringKey[StringKey["videoPressRecord"] = constants.videoPressRecord] = "videoPressRecord";
234
+ StringKey[StringKey["welcomeMessageBetaFinishStepContent"] = constants.welcomeMessageBetaFinishStepContent] = "welcomeMessageBetaFinishStepContent";
235
+ StringKey[StringKey["welcomeMessageBetaFinishStepTitle"] = constants.welcomeMessageBetaFinishStepTitle] = "welcomeMessageBetaFinishStepTitle";
236
+ StringKey[StringKey["welcomeMessageBetaHowToReportStepContent"] = constants.welcomeMessageBetaHowToReportStepContent] = "welcomeMessageBetaHowToReportStepContent";
237
+ StringKey[StringKey["welcomeMessageBetaHowToReportStepTitle"] = constants.welcomeMessageBetaHowToReportStepTitle] = "welcomeMessageBetaHowToReportStepTitle";
238
+ StringKey[StringKey["welcomeMessageBetaWelcomeStepContent"] = constants.welcomeMessageBetaWelcomeStepContent] = "welcomeMessageBetaWelcomeStepContent";
239
+ StringKey[StringKey["welcomeMessageBetaWelcomeStepTitle"] = constants.welcomeMessageBetaWelcomeStepTitle] = "welcomeMessageBetaWelcomeStepTitle";
240
+ StringKey[StringKey["welcomeMessageLiveWelcomeStepContent"] = constants.welcomeMessageLiveWelcomeStepContent] = "welcomeMessageLiveWelcomeStepContent";
241
+ StringKey[StringKey["welcomeMessageLiveWelcomeStepTitle"] = constants.welcomeMessageLiveWelcomeStepTitle] = "welcomeMessageLiveWelcomeStepTitle";
242
+ })(StringKey || (StringKey = {}));
243
+ export var LaunchType;
244
+ (function (LaunchType) {
245
+ LaunchType[LaunchType["cold"] = constants.cold] = "cold";
246
+ LaunchType[LaunchType["unknown"] = constants.unknown] = "unknown";
247
+ /**
248
+ * Android only
249
+ */
250
+ LaunchType[LaunchType["warm"] = constants.warm] = "warm";
251
+ })(LaunchType || (LaunchType = {}));
252
+ /**
253
+ * Over Air Update Service
254
+ */
255
+ export var OverAirUpdateServices;
256
+ (function (OverAirUpdateServices) {
257
+ OverAirUpdateServices[OverAirUpdateServices["codePush"] = constants.codePush] = "codePush";
258
+ OverAirUpdateServices[OverAirUpdateServices["expo"] = constants.expo] = "expo";
259
+ })(OverAirUpdateServices || (OverAirUpdateServices = {}));
260
+ export var AutoMaskingType;
261
+ (function (AutoMaskingType) {
262
+ AutoMaskingType[AutoMaskingType["labels"] = constants.labels] = "labels";
263
+ AutoMaskingType[AutoMaskingType["textInputs"] = constants.textInputs] = "textInputs";
264
+ AutoMaskingType[AutoMaskingType["media"] = constants.media] = "media";
265
+ AutoMaskingType[AutoMaskingType["none"] = constants.none] = "none";
266
+ })(AutoMaskingType || (AutoMaskingType = {}));
@@ -0,0 +1,7 @@
1
+ export declare const FeatureFlags: {
2
+ isW3ExternalTraceID: () => Promise<boolean>;
3
+ isW3ExternalGeneratedHeader: () => Promise<boolean>;
4
+ isW3CaughtHeader: () => Promise<boolean>;
5
+ networkLogLimit: () => Promise<number>;
6
+ };
7
+ export declare const registerFeatureFlagsListener: () => void;
@@ -0,0 +1,24 @@
1
+ import { NativeLuciq } from '../native/NativeLuciq';
2
+ import { _registerFeatureFlagsChangeListener } from '../modules/Luciq';
3
+ export const FeatureFlags = {
4
+ isW3ExternalTraceID: () => NativeLuciq.isW3ExternalTraceIDEnabled(),
5
+ isW3ExternalGeneratedHeader: () => NativeLuciq.isW3ExternalGeneratedHeaderEnabled(),
6
+ isW3CaughtHeader: () => NativeLuciq.isW3CaughtHeaderEnabled(),
7
+ networkLogLimit: () => NativeLuciq.getNetworkBodyMaxSize(),
8
+ };
9
+ export const registerFeatureFlagsListener = () => {
10
+ _registerFeatureFlagsChangeListener((res) => {
11
+ FeatureFlags.isW3ExternalTraceID = async () => {
12
+ return res.isW3ExternalTraceIDEnabled;
13
+ };
14
+ FeatureFlags.isW3ExternalGeneratedHeader = async () => {
15
+ return res.isW3ExternalGeneratedHeaderEnabled;
16
+ };
17
+ FeatureFlags.isW3CaughtHeader = async () => {
18
+ return res.isW3CaughtHeaderEnabled;
19
+ };
20
+ FeatureFlags.networkLogLimit = async () => {
21
+ return res.networkBodyLimit;
22
+ };
23
+ });
24
+ };
@@ -0,0 +1,14 @@
1
+ declare const LuciqConstants: {
2
+ GRAPHQL_HEADER: string;
3
+ MAX_NETWORK_BODY_SIZE_IN_BYTES: number;
4
+ MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE: string;
5
+ MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE: string;
6
+ SET_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE: string;
7
+ REMOVE_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE: string;
8
+ DEFAULT_METRO_PORT: string;
9
+ LCQ_APM_TAG: string;
10
+ SWITCHED_TO_NATIVE_INTERCEPTION_MESSAGE: string;
11
+ PLUGIN_NOT_INSTALLED_MESSAGE: string;
12
+ NATIVE_INTERCEPTION_DISABLED_MESSAGE: string;
13
+ };
14
+ export default LuciqConstants;
@@ -0,0 +1,15 @@
1
+ const LuciqConstants = {
2
+ GRAPHQL_HEADER: 'lcq-graphql-header',
3
+ // TODO: dyanmically get the max size from the native SDK and update the error message to reflect the dynamic size.
4
+ MAX_NETWORK_BODY_SIZE_IN_BYTES: 1024 * 10,
5
+ MAX_RESPONSE_BODY_SIZE_EXCEEDED_MESSAGE: 'The response body has not been logged because it exceeds the maximum size of ',
6
+ MAX_REQUEST_BODY_SIZE_EXCEEDED_MESSAGE: 'The request body has not been logged because it exceeds the maximum size of ',
7
+ SET_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE: 'LCQ-RN: Expected key and value passed to setUserAttribute to be of type string',
8
+ REMOVE_USER_ATTRIBUTES_ERROR_TYPE_MESSAGE: 'LCQ-RN: Expected key and value passed to removeUserAttribute to be of type string',
9
+ DEFAULT_METRO_PORT: '8081',
10
+ LCQ_APM_TAG: 'LCQ-APM: ',
11
+ SWITCHED_TO_NATIVE_INTERCEPTION_MESSAGE: 'Android Plugin Detected. Switched to Native Interception.',
12
+ PLUGIN_NOT_INSTALLED_MESSAGE: 'Network Spans will not be captured as Android Plugin is not installed. Disabling Native Interception to minimize data loss.',
13
+ NATIVE_INTERCEPTION_DISABLED_MESSAGE: 'Network Spans capture is disabled by Luciq. Disabling native interception to avoid data loss.',
14
+ };
15
+ export default LuciqConstants;