posthog-react-native 4.74.0 → 4.74.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/dist/PostHogContext.js +2 -1
- package/dist/PostHogContext.js.map +1 -1
- package/dist/PostHogErrorBoundary.js +2 -1
- package/dist/PostHogErrorBoundary.js.map +1 -1
- package/dist/PostHogMaskView.js +2 -1
- package/dist/PostHogMaskView.js.map +1 -1
- package/dist/PostHogProvider.js +2 -1
- package/dist/PostHogProvider.js.map +1 -1
- package/dist/autocapture.js +2 -1
- package/dist/autocapture.js.map +1 -1
- package/dist/error-tracking/exception-context.js +2 -1
- package/dist/error-tracking/exception-context.js.map +1 -1
- package/dist/error-tracking/index.js +2 -1
- package/dist/error-tracking/index.js.map +1 -1
- package/dist/error-tracking/utils.js +2 -1
- package/dist/error-tracking/utils.js.map +1 -1
- package/dist/frameworks/wix-navigation.js +2 -1
- package/dist/frameworks/wix-navigation.js.map +1 -1
- package/dist/hooks/useFeatureFlag.js +2 -1
- package/dist/hooks/useFeatureFlag.js.map +1 -1
- package/dist/hooks/useFeatureFlagResult.js +2 -1
- package/dist/hooks/useFeatureFlagResult.js.map +1 -1
- package/dist/hooks/useFeatureFlags.js +2 -1
- package/dist/hooks/useFeatureFlags.js.map +1 -1
- package/dist/hooks/useNavigationTracker.js +2 -1
- package/dist/hooks/useNavigationTracker.js.map +1 -1
- package/dist/hooks/usePostHog.js +2 -1
- package/dist/hooks/usePostHog.js.map +1 -1
- package/dist/hooks/utils.js +2 -1
- package/dist/hooks/utils.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/logs-defaults.js +2 -1
- package/dist/logs-defaults.js.map +1 -1
- package/dist/native-deps.js +2 -1
- package/dist/native-deps.js.map +1 -1
- package/dist/optional/OptionalAsyncStorage.js +2 -1
- package/dist/optional/OptionalAsyncStorage.js.map +1 -1
- package/dist/optional/OptionalExpoApplication.js +2 -1
- package/dist/optional/OptionalExpoApplication.js.map +1 -1
- package/dist/optional/OptionalExpoDevice.js +2 -1
- package/dist/optional/OptionalExpoDevice.js.map +1 -1
- package/dist/optional/OptionalExpoFileSystem.js +2 -1
- package/dist/optional/OptionalExpoFileSystem.js.map +1 -1
- package/dist/optional/OptionalExpoFileSystemLegacy.js +2 -1
- package/dist/optional/OptionalExpoFileSystemLegacy.js.map +1 -1
- package/dist/optional/OptionalExpoLocalization.js +2 -1
- package/dist/optional/OptionalExpoLocalization.js.map +1 -1
- package/dist/optional/OptionalExpoUpdates.js +2 -1
- package/dist/optional/OptionalExpoUpdates.js.map +1 -1
- package/dist/optional/OptionalPlugin.js +2 -1
- package/dist/optional/OptionalPlugin.js.map +1 -1
- package/dist/optional/OptionalReactNativeDeviceInfo.js +2 -1
- package/dist/optional/OptionalReactNativeDeviceInfo.js.map +1 -1
- package/dist/optional/OptionalReactNativeLocalize.js +2 -1
- package/dist/optional/OptionalReactNativeLocalize.js.map +1 -1
- package/dist/optional/OptionalReactNativeNavigation.js +2 -1
- package/dist/optional/OptionalReactNativeNavigation.js.map +1 -1
- package/dist/optional/OptionalReactNativeNavigationWix.js +2 -1
- package/dist/optional/OptionalReactNativeNavigationWix.js.map +1 -1
- package/dist/optional/OptionalReactNativeSafeArea.js +2 -1
- package/dist/optional/OptionalReactNativeSafeArea.js.map +1 -1
- package/dist/optional/OptionalReactNativeSvg.js +2 -1
- package/dist/optional/OptionalReactNativeSvg.js.map +1 -1
- package/dist/posthog-rn.js +2 -1
- package/dist/posthog-rn.js.map +1 -1
- package/dist/storage.js +2 -1
- package/dist/storage.js.map +1 -1
- package/dist/surveys/PostHogSurveyProvider.js +2 -1
- package/dist/surveys/PostHogSurveyProvider.js.map +1 -1
- package/dist/surveys/components/BottomSection.js +2 -1
- package/dist/surveys/components/BottomSection.js.map +1 -1
- package/dist/surveys/components/Cancel.js +2 -1
- package/dist/surveys/components/Cancel.js.map +1 -1
- package/dist/surveys/components/ConfirmationMessage.js +2 -1
- package/dist/surveys/components/ConfirmationMessage.js.map +1 -1
- package/dist/surveys/components/IntroMessage.js +2 -1
- package/dist/surveys/components/IntroMessage.js.map +1 -1
- package/dist/surveys/components/QuestionHeader.js +2 -1
- package/dist/surveys/components/QuestionHeader.js.map +1 -1
- package/dist/surveys/components/QuestionTypes.js +2 -1
- package/dist/surveys/components/QuestionTypes.js.map +1 -1
- package/dist/surveys/components/SurveyModal.js +2 -1
- package/dist/surveys/components/SurveyModal.js.map +1 -1
- package/dist/surveys/components/Surveys.js +2 -1
- package/dist/surveys/components/Surveys.js.map +1 -1
- package/dist/surveys/getActiveMatchingSurveys.js +2 -1
- package/dist/surveys/getActiveMatchingSurveys.js.map +1 -1
- package/dist/surveys/icons.js +2 -1
- package/dist/surveys/icons.js.map +1 -1
- package/dist/surveys/index.js +2 -1
- package/dist/surveys/index.js.map +1 -1
- package/dist/surveys/safeStyleSheet.js +2 -1
- package/dist/surveys/safeStyleSheet.js.map +1 -1
- package/dist/surveys/survey-shuffling.d.ts +2 -6
- package/dist/surveys/survey-shuffling.js +2 -1
- package/dist/surveys/survey-shuffling.js.map +1 -1
- package/dist/surveys/survey-translations.js +2 -1
- package/dist/surveys/survey-translations.js.map +1 -1
- package/dist/surveys/surveys-utils.d.ts +1 -6
- package/dist/surveys/surveys-utils.js +2 -1
- package/dist/surveys/surveys-utils.js.map +1 -1
- package/dist/surveys/useActivatedSurveys.js +2 -1
- package/dist/surveys/useActivatedSurveys.js.map +1 -1
- package/dist/surveys/useSurveyStorage.js +2 -1
- package/dist/surveys/useSurveyStorage.js.map +1 -1
- package/dist/tooling/expoconfig.js +2 -1
- package/dist/tooling/expoconfig.js.map +1 -1
- package/dist/tooling/metroconfig.js +2 -1
- package/dist/tooling/metroconfig.js.map +1 -1
- package/dist/tooling/posthogMetroSerializer.js +2 -1
- package/dist/tooling/posthogMetroSerializer.js.map +1 -1
- package/dist/tooling/utils.js +2 -1
- package/dist/tooling/utils.js.map +1 -1
- package/dist/tooling/vendor/expo/expoconfig.js +2 -1
- package/dist/tooling/vendor/expo/expoconfig.js.map +1 -1
- package/dist/tooling/vendor/metro/countLines.js +2 -1
- package/dist/tooling/vendor/metro/countLines.js.map +1 -1
- package/dist/tooling/vendor/metro/utils.js +2 -1
- package/dist/tooling/vendor/metro/utils.js.map +1 -1
- package/dist/types.js +2 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.js +2 -1
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +2 -1
- package/dist/version.js.map +1 -1
- package/package.json +8 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/tooling/vendor/metro/utils.ts"],"names":[],"mappings":"AAAA,2CAA2C;;AA+B3C,OAAO,EAAE,gBAAgB,EAAqC,MAAM,aAAa,CAAA;AAEjF,IAAI,kBAAuB,CAAA;AAC3B,IAAI,CAAC;IACH,yDAAyD;IACzD,kBAAkB,GAAG,OAAO,CAAC,qDAAqD,CAAC,CAAA;AACrF,CAAC;AAAC,WAAM,CAAC;IACP,yDAAyD;IACzD,kBAAkB,GAAG,OAAO,CAAC,iDAAiD,CAAC,CAAA;AACjF,CAAC;AAED,MAAM,YAAY,GAChB,OAAO,kBAAkB,KAAK,UAAU;IACtC,CAAC,CAAC,kBAAkB;IACpB,CAAC,CAAC,8DAA8D;QAC9D,CAAC,MAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,YAAY,mCAAI,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,OAAO,CAAC,CAAA;AAEvE,IAAI,eAA2C,CAAA;AAC/C,IAAI,CAAC;IACH,sDAAsD;IACtD,MAAM,qBAAqB,GAAG,OAAO,CAAC,wDAAwD,CAAC,CAAA;IAC/F,eAAe,GAAI,qBAAyE,CAAC,eAAe,CAAA;AAC9G,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,eAAe,GAAG,OAAO,CAAC,oDAAoD,C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AAE,CAAA;IACtB,CAAC,CAAA;AACH,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_utils","require","baseJSBundleModule","_c","baseJSBundle","_a","sourceMapString","sourceMapStringModule","e","bundleToStringModule","_d","bundleToString","_b","getSortedModules","exports","graph","_ref","createModuleId","modules","_toConsumableArray2","dependencies","values","sort","a","b","path","createDefaultMetroSerializer","entryPoint","premodules","options","bundle","serializerOptions","posthogBundleCallback","isDevServerBuild","_ref2","code","sourceMapStringFunction","_typeof2","Error","map","concat","processModuleFilter","shouldAddToIgnoreList"],"sources":["../../../../src/tooling/vendor/metro/utils.ts"],"sourcesContent":["// Vendored / modified from @facebook/metro\n\n// https://github.com/facebook/metro/commit/9b85f83c9cc837d8cd897aa7723be7da5b296067\n\n// MIT License\n\n// Copyright (c) Meta Platforms, Inc. and affiliates.\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\n// oxlint-disable-next-line import/no-extraneous-dependencies\nimport type { MixedOutput, Module, ReadOnlyGraph } from 'metro'\nimport type * as baseJSBundleType from 'metro/private/DeltaBundler/Serializers/baseJSBundle'\nimport type * as sourceMapStringType from 'metro/private/DeltaBundler/Serializers/sourceMapString'\nimport type * as bundleToStringType from 'metro/private/lib/bundleToString'\nimport { isDevServerBuild, type Bundle, type MetroSerializer } from '../../utils'\n\nlet baseJSBundleModule: any\ntry {\n // oxlint-disable-next-line typescript/no-require-imports\n baseJSBundleModule = require('metro/private/DeltaBundler/Serializers/baseJSBundle')\n} catch {\n // oxlint-disable-next-line typescript/no-require-imports\n baseJSBundleModule = require('metro/src/DeltaBundler/Serializers/baseJSBundle')\n}\n\nconst baseJSBundle: typeof baseJSBundleType =\n typeof baseJSBundleModule === 'function'\n ? baseJSBundleModule\n : // oxlint-disable-next-line typescript/no-unsafe-member-access\n (baseJSBundleModule?.baseJSBundle ?? baseJSBundleModule?.default)\n\nlet sourceMapString: typeof sourceMapStringType\ntry {\n // oxlint-disable-next-line typescript/no-var-requires\n const sourceMapStringModule = require('metro/private/DeltaBundler/Serializers/sourceMapString')\n sourceMapString = (sourceMapStringModule as { sourceMapString: typeof sourceMapStringType }).sourceMapString\n} catch (e) {\n sourceMapString = require('metro/src/DeltaBundler/Serializers/sourceMapString')\n if ('sourceMapString' in sourceMapString) {\n // Changed to named export in https://github.com/facebook/metro/commit/34148e61200a508923315fbe387b26d1da27bf4b\n // Metro 0.81.0 and 0.80.10 patch\n sourceMapString = (sourceMapString as { sourceMapString: typeof sourceMapStringType }).sourceMapString\n }\n}\n\nlet bundleToStringModule: any\ntry {\n bundleToStringModule = require('metro/private/lib/bundleToString')\n} catch {\n bundleToStringModule = require('metro/src/lib/bundleToString')\n}\n\nconst bundleToString: typeof bundleToStringType =\n typeof bundleToStringModule === 'function'\n ? bundleToStringModule\n : // oxlint-disable-next-line typescript/no-unsafe-member-access\n (bundleToStringModule?.bundleToString ?? bundleToStringModule?.default)\n\ntype NewSourceMapStringExport = {\n // Since Metro v0.80.10 https://github.com/facebook/metro/compare/v0.80.9...v0.80.10#diff-1b836d1729e527a725305eef0cec22e44605af2700fa413f4c2489ea1a03aebcL28\n sourceMapString: typeof sourceMapString\n}\n\ntype PostHogSerializerOptions = Parameters<MetroSerializer>[3] & {\n posthogBundleCallback?: (bundle: Bundle) => Bundle\n}\n\n/**\n * This function ensures that modules in source maps are sorted in the same\n * order as in a plain JS bundle.\n *\n * https://github.com/facebook/metro/blob/9b85f83c9cc837d8cd897aa7723be7da5b296067/packages/metro/src/Server.js#L984\n */\nexport const getSortedModules = (\n graph: ReadOnlyGraph,\n {\n createModuleId,\n }: {\n createModuleId: (file: string) => number\n }\n): readonly Module[] => {\n const modules = [...graph.dependencies.values()]\n // Sort by IDs\n return modules.sort(\n (a: Module<MixedOutput>, b: Module<MixedOutput>) => createModuleId(a.path) - createModuleId(b.path)\n )\n}\n\n/**\n * Creates the default Metro plain bundle serializer.\n * Because Metro exports only the intermediate serializer functions, we need to\n * assemble the final serializer ourselves. We have to work with the modules the same as Metro does\n * to avoid unexpected changes in the final bundle.\n *\n * This is used when the user does not provide a custom serializer.\n *\n * https://github.com/facebook/metro/blob/9b85f83c9cc837d8cd897aa7723be7da5b296067/packages/metro/src/Server.js#L244-L277\n */\nexport const createDefaultMetroSerializer = (): MetroSerializer => {\n return (entryPoint, premodules, graph, options) => {\n // baseJSBundle assigns IDs to modules in a consistent order\n let bundle = (baseJSBundle.default || baseJSBundle)(entryPoint, premodules, graph, options)\n const serializerOptions = options as PostHogSerializerOptions\n\n // Inject the final Chunk ID before both code rendering and source-map\n // generation so they describe the same bundle bytes.\n if (serializerOptions.posthogBundleCallback && !isDevServerBuild(graph, options)) {\n bundle = serializerOptions.posthogBundleCallback(bundle)\n }\n\n const { code } = (bundleToString.default || bundleToString)(bundle)\n if (isDevServerBuild(graph, options)) {\n // Hot means running in dev server, sourcemaps are generated on demand\n return code\n }\n\n let sourceMapStringFunction: typeof sourceMapString | undefined\n if (typeof sourceMapString === 'function') {\n sourceMapStringFunction = sourceMapString\n } else if (\n typeof sourceMapString === 'object' &&\n sourceMapString != null &&\n 'sourceMapString' in sourceMapString &&\n typeof sourceMapString['sourceMapString'] === 'function'\n ) {\n sourceMapStringFunction = (sourceMapString as NewSourceMapStringExport).sourceMapString\n } else {\n throw new Error(`\n[posthog-react-native/metro] Can't find sourceMapString function in 'metro/src/DeltaBundler/Serializers/sourceMapString'.\nPlease check the version of Metro you are using and report the issue at https://github.com/postHog/posthog-js\n`)\n }\n\n // Always generate source maps\n const map = (sourceMapStringFunction.default || sourceMapStringFunction)(\n [...premodules, ...getSortedModules(graph, options)],\n {\n processModuleFilter: options.processModuleFilter,\n shouldAddToIgnoreList: options.shouldAddToIgnoreList || (() => false),\n }\n )\n return { code, map }\n }\n}\n"],"mappings":"gZA+BA,IAAAA,MAAA,CAAAC,OAAA,gB,UAEA,GAAI,CAAAC,kBAAuB,CAC3B,GAAI,CAEFA,kBAAkB,CAAGD,OAAO,CAAC,qDAAqD,CAAC,CACrF,CAAE,MAAAE,EAAA,CAAM,CAEND,kBAAkB,CAAGD,OAAO,CAAC,iDAAiD,CAAC,CACjF,CAEA,GAAM,CAAAG,YAAY,CAChB,MAAO,CAAAF,kBAAkB,GAAK,UAAU,CACpCA,kBAAkB,CAEjB,CAAAG,EAAA,CAAAH,kBAAkB,SAAlBA,kBAAkB,iBAAlBA,kBAAkB,CAAEE,YAAY,UAAAC,EAAA,UAAAA,EAAA,CAAIH,kBAAkB,SAAlBA,kBAAkB,iBAAlBA,kBAAkB,WAAU,CAEvE,GAAI,CAAAI,eAA2C,CAC/C,GAAI,CAEF,GAAM,CAAAC,qBAAqB,CAAGN,OAAO,CAAC,wDAAwD,CAAC,CAC/FK,eAAe,CAAIC,qBAAyE,CAACD,eAAe,CAC9G,CAAE,MAAOE,CAAC,CAAE,CACVF,eAAe,CAAGL,OAAO,CAAC,oDAAoD,CAAC,CAC/E,GAAI,iBAAiB,EAAI,CAAAK,eAAe,CAAE,CAGxCA,eAAe,CAAIA,eAAmE,CAACA,eAAe,CACxG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strict";Object.defineProperty(exports,"__esModule",{value:true});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});
|
|
2
|
+
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["export type PostHogAutocaptureNavigationTrackerOptions = {\n routeToName?: (name: string, params: any) => string\n routeToProperties?: (name: string, params: any) => Record<string, any>\n}\n\n/**\n * @deprecated\n */\nexport type PostHogNavigationRef = {\n getCurrentRoute(): any | undefined\n isReady: () => boolean\n current?: PostHogNavigationRef | any | undefined\n}\n\nexport type PostHogRageClickConfig = {\n /**\n * Enable or disable rage click (rage tap) detection.\n *\n * When enabled the native SDK emits a `$rageclick` event whenever a user\n * taps the same area repeatedly in quick succession.\n *\n * @default true\n */\n enabled?: boolean\n /**\n * Number of consecutive taps required to trigger a rage click.\n *\n * @default 3\n */\n minimumTapCount?: number\n /**\n * Maximum pixel distance between consecutive taps for them to still\n * count toward a rage click.\n *\n * @default 30\n */\n thresholdPoints?: number\n /**\n * Maximum time in seconds allowed between consecutive taps.\n *\n * @default 1.0\n */\n timeoutInterval?: number\n}\n\nexport type PostHogAutocaptureOptions = {\n /**\n * Enable autocapture of touch events.\n *\n * On React Native Web this also captures `click` events — mouse, trackpad, keyboard\n * activation and programmatic clicks — emitted with `$event_type: 'click'`, since\n * browsers fire `touchend` only for touch input.\n *\n * @default false\n */\n captureTouches?: boolean\n /**\n * Custom prop name used to label elements for autocapture\n *\n * @default 'ph-label'\n */\n customLabelProp?: string\n /**\n * Prop name used to prevent autocapture on an element and its children\n *\n * @default 'ph-no-capture'\n */\n noCaptureProp?: string\n /**\n * Maximum number of elements to capture in the component tree hierarchy\n *\n * @default 20\n */\n maxElementsCaptured?: number\n /**\n * List of element labels to ignore during autocapture\n *\n * @default []\n */\n ignoreLabels?: string[]\n /**\n * List of prop names to capture from elements\n *\n * @default ['style', 'testID', 'accessibilityLabel', 'ph-label', 'children']\n */\n propsToCapture?: string[]\n\n /**\n * Capture the screen name (or route name) and properties\n *\n * Only used for expo-router, @react-navigation/native and react-native-navigation\n *\n * For react-native-navigation, you need to call initReactNativeNavigation before using this option\n * See example: https://posthog.com/docs/libraries/react-native#with-react-native-navigation-and-autocapture\n *\n * For @react-navigation/native v6 and below, you need to wrap the PostHogProvider within the NavigationContainer\n * See example: https://posthog.com/docs/libraries/react-native#with-react-navigationnative-and-autocapture\n *\n * For @react-navigation/native v7 and above, because of a library change, you'll need to capture the screens manually and disable this option\n * You can use the onStateChange callback from the NavigationContainer to capture the screens automatically using the screen capture method\n * You can use the 'usePostHog()' hook or your own posthog instance to capture the screens\n * Since captureScreens is disabled, you don't need to pass the navigationRef, the navigation mutation object is also ignored\n * See example: https://reactnavigation.org/docs/screen-tracking/ and https://posthog.com/docs/libraries/react-native#manually-capturing-screen-capture-events\n *\n * For expo-router, expo-router uses @react-navigation/native, but does not expose the NavigationContainer, you'll need to capture the screens manually and disable this option\n * expo-router always has access to a URL, you can use the URL to capture the screens automatically using the screen capture method\n * You can use the 'usePostHog()' hook or your own posthog instance to capture the screens\n * Since captureScreens is disabled, you don't need to pass the navigationRef, the navigation mutation object is also ignored\n * See example: https://docs.expo.dev/router/reference/screen-tracking/ and https://posthog.com/docs/libraries/react-native#manually-capturing-screen-capture-events\n *\n * @default true\n */\n captureScreens?: boolean\n /**\n * Used for mutating the screen name and properties\n * Only used if captureScreens is true\n *\n * @default Default to the route name and params\n */\n navigation?: PostHogAutocaptureNavigationTrackerOptions\n /**\n * If you create a navigation ref with createNavigationContainerRef, you need to pass the navigation ref\n * Only used for expo-router and @react-navigation/native if captureScreens is true\n *\n * @deprecated this is deprecated since it didn't work as expected, check out the `captureScreens` comments for capturing screen views semi-automatically\n */\n navigationRef?: PostHogNavigationRef\n}\n\nexport interface PostHogCustomAppProperties {\n /** Build number like \"1.2.2\" or \"122\" */\n $app_build?: string | null\n /** Name of the app as displayed below the icon like \"PostHog\" */\n $app_name?: string | null\n /** Namespace of the app usually like \"com.posthog.app\" */\n $app_namespace?: string | null\n /** Human friendly app version like what a user would see in the app store like \"1.2.2\" */\n $app_version?: string | null\n /** Manufacturer like \"Apple\", \"Samsung\" or \"Android\" */\n $device_manufacturer?: string | null\n /** Readable model name like \"iPhone 12\" or \"Samsung Galaxy S24\" */\n $device_name?: string | null\n /** Model identifier like \"iPhone13,2\" or \"SM-S921B\" */\n $device_model?: string | null\n /** Device type (\"Mobile\" | \"Desktop\") */\n $device_type?: string | null\n /** Operating system name like iOS or Android */\n $os_name?: string | null\n /** Operating system version \"14.0\" */\n $os_version?: string | null\n /** Locale (language) of the device like \"en-US\" */\n $locale?: string | null\n /** Timezone of the device like \"Europe/Berlin\" */\n $timezone?: string | null\n /** Whether the app is running on an emulator/simulator */\n $is_emulator?: boolean | null\n}\n\nexport type PostHogSessionReplayConfig = {\n /**\n * Capture touch coordinates in session replay. Set to false to keep screenshots\n * without recording taps that could reveal sensitive input on a known keypad layout.\n * Does not change masking or `PostHogProvider` touch autocapture.\n * Android and iOS only. Requires `@posthog/react-native-plugin` 2.9.0 or later;\n * older plugins and `posthog-react-native-session-replay` ignore this option.\n * Set before constructing PostHog. Changes after initialization do not update native state.\n *\n * @default true\n */\n captureTouches?: boolean\n /**\n * Enable masking of all text and text input fields\n *\n * @default true\n */\n maskAllTextInputs?: boolean\n /**\n * Enable masking of all images to a placeholder\n *\n * @default true\n */\n maskAllImages?: boolean\n /**\n * Enable masking of all sandboxed system views\n * These may include UIImagePickerController, PHPickerViewController and CNContactPickerViewController\n * iOS only\n *\n * @default true\n */\n maskAllSandboxedViews?: boolean\n /**\n * Enable capturing of logs as console events\n *\n * @default true\n */\n captureLog?: boolean\n /**\n * Deboucer delay used to reduce the number of snapshots captured and reduce performance impact\n * This is used for capturing the view as a screenshot\n * The lower the number more snapshots will be captured but higher the performance impact\n *\n * @default 1000\n * @deprecated please use throttleDelayMs instead\n */\n iOSdebouncerDelayMs?: number\n /**\n * Deboucer delay used to reduce the number of snapshots captured and reduce performance impact\n * This is used for capturing the view as a screenshot\n * The lower the number more snapshots will be captured but higher the performance impact\n * Ps: it was 500ms (0.5s) by default until version 3.3.7\n *\n * @default 1000\n * @deprecated please use throttleDelayMs instead\n */\n androidDebouncerDelayMs?: number\n /**\n * Throttling delay used to reduce the number of snapshots captured and reduce performance impact\n * This is used for capturing the view as a wireframe or screenshot\n * The lower the number more snapshots will be captured but higher the performance impact\n *\n * This value has precedence over iOSdebouncerDelayMs and androidDebouncerDelayMs\n * If this is not set, we will take the max number between iOSdebouncerDelayMs and androidDebouncerDelayMs for back compatibility\n *\n * @default 1000\n */\n throttleDelayMs?: number\n /**\n * Enable capturing network telemetry\n * iOS only\n *\n * @default true\n */\n captureNetworkTelemetry?: boolean\n /**\n * Verify that masks remain aligned while capturing session replay screenshots.\n * Android only. Requires `@posthog/react-native-plugin`.\n *\n * Enabling this can preserve screenshots during pixel-only redraws, including\n * continuously animated content, but performs additional view hierarchy walks\n * while a screenshot is captured.\n *\n * @default false\n */\n verifyScreenshotMaskAlignment?: boolean\n /**\n * Experimental. Multiplier for the physical width and height of screenshots, clamped to 0.1–1.0.\n * For example, 0.5 captures half the width and height, or one quarter of the pixels.\n * The logical replay viewport is unchanged. Non-finite values use the native default.\n * Android only. Requires `@posthog/react-native-plugin` 2.8.0 or later.\n * Does not enable session replay or change compression quality or color mode.\n *\n * @experimental\n * @default 1.0\n */\n screenshotScale?: number\n /**\n * Experimental. WebP compression quality, clamped to 0–100. Fractional values are truncated.\n * Higher values generally retain more detail and produce larger payloads.\n * Compression is lossy, except at quality 100 on Android 10, which uses lossless WebP.\n * Non-finite values use the native default. Does not change screenshot resolution.\n * Android only. Requires `@posthog/react-native-plugin` 2.8.0 or later.\n *\n * @experimental\n * @default 30\n */\n screenshotCompressionQuality?: number\n /**\n * Experimental. Screenshot bitmap pixel format. ARGB_8888 preserves transparency and color precision.\n * RGB_565 uses half the bitmap memory but reduces color precision and removes alpha,\n * making transparent window regions appear black. Unsupported devices fall back to ARGB_8888.\n * Android only. Requires `@posthog/react-native-plugin` 2.8.0 or later.\n *\n * @experimental\n * @default 'ARGB_8888'\n */\n screenshotColorMode?: 'ARGB_8888' | 'RGB_565'\n /**\n * Schedule screenshot image capture on a background queue.\n * iOS only\n * Experimental support\n *\n * Warning: Enabling this option will trigger Main Thread Checker warnings and may\n * briefly freeze the app the first time a screenshot is captured. Consider disabling\n * Main Thread Checker in your scheme's run diagnostics when enabling this.\n *\n * @default false\n */\n screenshotModeBackgroundCapture?: boolean\n /**\n * Session replay sample rate between 0 and 1\n * Local config has precedence over remote config when both are set.\n * If undefined, sampling is controlled by remote config (when available).\n */\n sampleRate?: number\n}\n\nexport interface PostHogCustomStorage {\n getItem: (key: string) => string | null | Promise<string | null>\n setItem: (key: string, value: string) => void | Promise<void>\n}\n\n/**\n * Mints a signed identity-verification token for a push subscription request.\n *\n * Called by the native SDK with the current `distinctId` and `appId`. Return\n * `null` to send the request without an identity token.\n */\nexport type PostHogPushIdentityProvider = (distinctId: string, appId: string) => Promise<string | null>\n"],"mappings":"","ignoreList":[]}
|
package/dist/utils.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.GLOBAL_OBJ=void 0;exports.getPlatformOS=getPlatformOS;Object.defineProperty(exports,"getRemoteConfigBool",{enumerable:true,get:function get(){return _core.getRemoteConfigBool;}});Object.defineProperty(exports,"getRemoteConfigNumber",{enumerable:true,get:function get(){return _core.getRemoteConfigNumber;}});exports.isHermes=void 0;exports.isMacOS=isMacOS;Object.defineProperty(exports,"isValidSampleRate",{enumerable:true,get:function get(){return _core.isValidSampleRate;}});exports.isWeb=isWeb;exports.isWindows=isWindows;var _reactNative=require("react-native");var _core=require("@posthog/core");var _global=typeof global!=='undefined'?global:undefined;var _globalThis=typeof globalThis!=='undefined'?globalThis:undefined;var GLOBAL_OBJ=exports.GLOBAL_OBJ=_globalThis!==null&&_globalThis!==void 0?_globalThis:_global;function getPlatformOS(){try{return _reactNative.Platform===null||_reactNative.Platform===void 0?void 0:_reactNative.Platform.OS;}catch(_a){return undefined;}}function isWeb(){return getPlatformOS()==='web';}function isMacOS(){return getPlatformOS()==='macos';}function isWindows(){return getPlatformOS()==='windows';}var isHermes=exports.isHermes=function isHermes(){return!!GLOBAL_OBJ.HermesInternal;};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.GLOBAL_OBJ=void 0;exports.getPlatformOS=getPlatformOS;Object.defineProperty(exports,"getRemoteConfigBool",{enumerable:true,get:function get(){return _core.getRemoteConfigBool;}});Object.defineProperty(exports,"getRemoteConfigNumber",{enumerable:true,get:function get(){return _core.getRemoteConfigNumber;}});exports.isHermes=void 0;exports.isMacOS=isMacOS;Object.defineProperty(exports,"isValidSampleRate",{enumerable:true,get:function get(){return _core.isValidSampleRate;}});exports.isWeb=isWeb;exports.isWindows=isWindows;var _reactNative=require("react-native");var _core=require("@posthog/core");var _global=typeof global!=='undefined'?global:undefined;var _globalThis=typeof globalThis!=='undefined'?globalThis:undefined;var GLOBAL_OBJ=exports.GLOBAL_OBJ=_globalThis!==null&&_globalThis!==void 0?_globalThis:_global;function getPlatformOS(){try{return _reactNative.Platform===null||_reactNative.Platform===void 0?void 0:_reactNative.Platform.OS;}catch(_a){return undefined;}}function isWeb(){return getPlatformOS()==='web';}function isMacOS(){return getPlatformOS()==='macos';}function isWindows(){return getPlatformOS()==='windows';}var isHermes=exports.isHermes=function isHermes(){return!!GLOBAL_OBJ.HermesInternal;};
|
|
2
|
+
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_reactNative","require","_core","_global","global","undefined","_globalThis","globalThis","GLOBAL_OBJ","exports","getPlatformOS","Platform","OS","_a","isWeb","isMacOS","isWindows","isHermes","HermesInternal"],"sources":["../src/utils.ts"],"sourcesContent":["import { Platform } from 'react-native'\n\n// Re-export remote config utilities from core\nexport { getRemoteConfigBool, getRemoteConfigNumber, isValidSampleRate } from '@posthog/core'\n\ntype ReactNativeGlobal = {\n HermesInternal?: {\n enablePromiseRejectionTracker?: (args: {\n allRejections: boolean\n onUnhandled?: (id: string, error: any) => void\n onHandled?: (id: string, error: any) => void\n }) => void\n hasPromise?: () => boolean\n }\n ErrorUtils?: {\n getGlobalHandler?: () => (error: Error, isFatal: boolean) => void\n setGlobalHandler?: (handler: (error: Error, isFatal: boolean) => void) => void\n }\n onunhandledrejection?: (event: unknown) => void\n}\n\n// fallback for older environments\nconst _global: typeof global | undefined = typeof global !== 'undefined' ? global : undefined\n\n// works after for ECMAScript 2020 (React Native >= 0.63)\nconst _globalThis: typeof globalThis | undefined = typeof globalThis !== 'undefined' ? globalThis : undefined\n\nexport const GLOBAL_OBJ = (_globalThis ?? _global) as unknown as ReactNativeGlobal\n\nexport function getPlatformOS(): string | undefined {\n try {\n return Platform?.OS\n } catch {\n return undefined\n }\n}\n\n/** Checks if the current platform is web */\nexport function isWeb(): boolean {\n return getPlatformOS() === 'web'\n}\n\n/** Checks if the current platform is macOS */\nexport function isMacOS(): boolean {\n return getPlatformOS() === 'macos'\n}\n\n/** Checks if the current platform is Windows */\nexport function isWindows(): boolean {\n return getPlatformOS() === 'windows'\n}\n\nexport const isHermes = () => !!GLOBAL_OBJ.HermesInternal\n"],"mappings":"2lBAAA,IAAAA,YAAA,CAAAC,OAAA,iBAGA,IAAAC,KAAA,CAAAD,OAAA,kBAmBA,GAAM,CAAAE,OAAO,CAA8B,MAAO,CAAAC,MAAM,GAAK,WAAW,CAAGA,MAAM,CAAGC,SAAS,CAG7F,GAAM,CAAAC,WAAW,CAAkC,MAAO,CAAAC,UAAU,GAAK,WAAW,CAAGA,UAAU,CAAGF,SAAS,CAEtG,GAAM,CAAAG,UAAU,CAAAC,OAAA,CAAAD,UAAA,CAAIF,WAAW,SAAXA,WAAW,UAAXA,WAAW,CAAIH,OAAwC,CAE5E,QAAU,CAAAO,aAAaA,CAAA,EAC3B,GAAI,CACF,MAAO,CAAAC,qBAAQ,SAARA,qBAAQ,iBAARA,qBAAQ,CAAEC,EAAE,CACrB,CAAE,MAAAC,EAAA,CAAM,CACN,MAAO,CAAAR,SAAS,CAClB,CACF,CAGM,QAAU,CAAAS,KAAKA,CAAA,EACnB,MAAO,CAAAJ,aAAa,EAAE,GAAK,KAAK,CAClC,CAGM,QAAU,CAAAK,OAAOA,CAAA,EACrB,MAAO,CAAAL,aAAa,EAAE,GAAK,OAAO,CACpC,CAGM,QAAU,CAAAM,SAASA,CAAA,EACvB,MAAO,CAAAN,aAAa,EAAE,GAAK,SAAS,CACtC,CAEO,GAAM,CAAAO,QAAQ,CAAAR,OAAA,CAAAQ,QAAA,CAAG,QAAX,CAAAA,QAAQA,CAAA,QAAS,CAAC,CAACT,UAAU,CAACU,cAAc","ignoreList":[]}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.74.
|
|
1
|
+
export declare const version = "4.74.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.74.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.74.2";
|
|
2
|
+
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","
|
|
1
|
+
{"version":3,"file":"version.js","names":["version","exports"],"sources":["../src/version.ts"],"sourcesContent":["export const version = \"4.74.2\"\n"],"mappings":"6FAAO,GAAM,CAAAA,OAAO,CAAAC,OAAA,CAAAD,OAAA,CAAG,QAAQ","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "posthog-react-native",
|
|
3
|
-
"version": "4.74.
|
|
3
|
+
"version": "4.74.2",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/PostHog/posthog-js/issues"
|
|
6
6
|
},
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"directory": "packages/react-native"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@posthog/
|
|
38
|
-
"@posthog/
|
|
37
|
+
"@posthog/types": "^1.412.1",
|
|
38
|
+
"@posthog/core": "^1.54.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/cli": "^7.19.3",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"typescript": "5.8.2",
|
|
74
74
|
"@vitest/coverage-v8": "^1.6.1",
|
|
75
75
|
"vitest": "^1.6.1",
|
|
76
|
-
"@posthog-tooling/rollup-utils": "1.1.1",
|
|
77
76
|
"@posthog-tooling/tsconfig-base": "1.1.1",
|
|
78
|
-
"@posthog/react-native-plugin": "2.9.
|
|
77
|
+
"@posthog/react-native-plugin": "2.9.4",
|
|
78
|
+
"@posthog-tooling/rollup-utils": "1.1.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@react-native-async-storage/async-storage": ">=1.0.0",
|
|
@@ -138,13 +138,15 @@
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
"scripts": {
|
|
141
|
+
"check-types": "pnpm prebuild && tsc --noEmit --project tsconfig.json",
|
|
141
142
|
"clean": "rimraf dist",
|
|
142
143
|
"lint": "oxlint --report-unused-disable-directives-severity error src test",
|
|
143
144
|
"lint:fix": "oxlint --report-unused-disable-directives-severity error src test --fix",
|
|
144
145
|
"test:unit": "vitest run",
|
|
146
|
+
"test:built": "node --test scripts/check-sourcemaps.mjs",
|
|
145
147
|
"test": "pnpm test:unit",
|
|
146
148
|
"prebuild": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > src/version.ts",
|
|
147
|
-
"build": "tsc -b && babel ./dist --out-dir dist --extensions '.js'",
|
|
149
|
+
"build": "tsc -b && babel ./dist --out-dir dist --extensions '.js' --source-maps",
|
|
148
150
|
"package": "pnpm pack --out $PACKAGE_DEST/%s.tgz",
|
|
149
151
|
"generate-references": "pnpm exec api-extractor run --config ./api-extractor.json --local && node scripts/generate-docs.cjs"
|
|
150
152
|
}
|