@rork-ai/toolkit-sdk 0.2.54 → 0.3.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.
- package/README.md +7 -1
- package/lib/module/agent.js +73 -76
- package/lib/module/agent.js.map +1 -1
- package/lib/module/analytics-client.js +35 -0
- package/lib/module/analytics-client.js.map +1 -0
- package/lib/module/analytics-provider.js +29 -0
- package/lib/module/analytics-provider.js.map +1 -0
- package/lib/module/analytics.js +2 -59
- package/lib/module/analytics.js.map +1 -1
- package/lib/module/dev/error-boundary.js +38 -17
- package/lib/module/dev/error-boundary.js.map +1 -1
- package/lib/module/dev/safe-insets-content.web.js +6 -5
- package/lib/module/dev/safe-insets-content.web.js.map +1 -1
- package/lib/module/dev/sdk53/index.js.map +1 -1
- package/lib/module/dev/sdk53/inspector.js +71 -168
- package/lib/module/dev/sdk53/inspector.js.map +1 -1
- package/lib/module/dev/sdk53/inspector.web.js.map +1 -1
- package/lib/module/dev/sdk54/index.js.map +1 -1
- package/lib/module/dev/sdk54/inspector.js +71 -45
- package/lib/module/dev/sdk54/inspector.js.map +1 -1
- package/lib/module/dev/sdk54/inspector.web.js.map +1 -1
- package/lib/module/index.js +1 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/polyfills/fetch.js +6 -10
- package/lib/module/polyfills/fetch.js.map +1 -1
- package/lib/module/polyfills/haptics.web.js.map +1 -1
- package/lib/module/polyfills/maps.web-component.js +27 -0
- package/lib/module/polyfills/maps.web-component.js.map +1 -0
- package/lib/module/polyfills/maps.web-values.js +19 -0
- package/lib/module/polyfills/maps.web-values.js.map +1 -0
- package/lib/module/polyfills/maps.web.js +2 -34
- package/lib/module/polyfills/maps.web.js.map +1 -1
- package/lib/module/polyfills/refresh-control-component.js +48 -42
- package/lib/module/polyfills/refresh-control-component.js.map +1 -1
- package/lib/module/polyfills/secure-store.web.js.map +1 -1
- package/lib/typescript/src/agent.d.ts +34 -30
- package/lib/typescript/src/agent.d.ts.map +1 -1
- package/lib/typescript/src/analytics-client.d.ts +10 -0
- package/lib/typescript/src/analytics-client.d.ts.map +1 -0
- package/lib/typescript/src/analytics-provider.d.ts +3 -0
- package/lib/typescript/src/analytics-provider.d.ts.map +1 -0
- package/lib/typescript/src/analytics.d.ts +2 -6
- package/lib/typescript/src/analytics.d.ts.map +1 -1
- package/lib/typescript/src/dev/error-boundary.d.ts +6 -6
- package/lib/typescript/src/dev/error-boundary.d.ts.map +1 -1
- package/lib/typescript/src/dev/safe-insets-content.web.d.ts.map +1 -1
- package/lib/typescript/src/dev/sdk53/index.d.ts +2 -1
- package/lib/typescript/src/dev/sdk53/index.d.ts.map +1 -1
- package/lib/typescript/src/dev/sdk53/inspector.d.ts +23 -4
- package/lib/typescript/src/dev/sdk53/inspector.d.ts.map +1 -1
- package/lib/typescript/src/dev/sdk53/inspector.web.d.ts +2 -3
- package/lib/typescript/src/dev/sdk53/inspector.web.d.ts.map +1 -1
- package/lib/typescript/src/dev/sdk54/index.d.ts +2 -3
- package/lib/typescript/src/dev/sdk54/index.d.ts.map +1 -1
- package/lib/typescript/src/dev/sdk54/inspector.d.ts +23 -4
- package/lib/typescript/src/dev/sdk54/inspector.d.ts.map +1 -1
- package/lib/typescript/src/dev/sdk54/inspector.web.d.ts +2 -3
- package/lib/typescript/src/dev/sdk54/inspector.web.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/polyfills/alert.web.d.ts.map +1 -1
- package/lib/typescript/src/polyfills/fetch.d.ts.map +1 -1
- package/lib/typescript/src/polyfills/haptics.web.d.ts.map +1 -1
- package/lib/typescript/src/polyfills/maps.web-component.d.ts +9 -0
- package/lib/typescript/src/polyfills/maps.web-component.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/maps.web-values.d.ts +4 -0
- package/lib/typescript/src/polyfills/maps.web-values.d.ts.map +1 -0
- package/lib/typescript/src/polyfills/maps.web.d.ts +2 -6
- package/lib/typescript/src/polyfills/maps.web.d.ts.map +1 -1
- package/lib/typescript/src/polyfills/refresh-control-component.d.ts +2 -2
- package/lib/typescript/src/polyfills/refresh-control-component.d.ts.map +1 -1
- package/lib/typescript/src/polyfills/secure-store.web.d.ts.map +1 -1
- package/metro/index.js +15 -29
- package/metro/transformer.js +41 -46
- package/package.json +79 -92
- package/lib/module/api.js +0 -9
- package/lib/module/api.js.map +0 -1
- package/lib/module/bridge.js +0 -38
- package/lib/module/bridge.js.map +0 -1
- package/lib/module/integrations.js +0 -45
- package/lib/module/integrations.js.map +0 -1
- package/lib/typescript/src/api.d.ts +0 -3
- package/lib/typescript/src/api.d.ts.map +0 -1
- package/lib/typescript/src/bridge.d.ts +0 -5
- package/lib/typescript/src/bridge.d.ts.map +0 -1
- package/lib/typescript/src/integrations.d.ts +0 -18
- package/lib/typescript/src/integrations.d.ts.map +0 -1
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { TextDecoderStream, TextEncoderStream } from "@stardazed/streams-text-encoding";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
polyfillGlobal("TextEncoderStream", () => TextEncoderStream);
|
|
12
|
-
polyfillGlobal("TextDecoderStream", () => TextDecoderStream);
|
|
13
|
-
export {};
|
|
4
|
+
import { deserialize, serialize } from "@ungap/structured-clone";
|
|
5
|
+
|
|
6
|
+
// Expo 53 lacks these globals. Keep Expo 54+ and host implementations intact.
|
|
7
|
+
globalThis.TextDecoderStream ??= TextDecoderStream;
|
|
8
|
+
globalThis.TextEncoderStream ??= TextEncoderStream;
|
|
9
|
+
globalThis.structuredClone ??= value => deserialize(serialize(value));
|
|
14
10
|
//# sourceMappingURL=fetch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TextDecoderStream","TextEncoderStream","
|
|
1
|
+
{"version":3,"names":["TextDecoderStream","TextEncoderStream","deserialize","serialize","globalThis","structuredClone","value"],"sourceRoot":"../../../src","sources":["polyfills/fetch.ts"],"mappings":";;AAAA,SAASA,iBAAiB,EAAEC,iBAAiB,QAAQ,kCAAkC;AACvF,SAASC,WAAW,EAAEC,SAAS,QAAQ,yBAAyB;;AAEhE;AACAC,UAAU,CAACJ,iBAAiB,KAAKA,iBAAiB;AAClDI,UAAU,CAACH,iBAAiB,KAAKA,iBAAiB;AAClDG,UAAU,CAACC,eAAe,KAAMC,KAAK,IAAKJ,WAAW,CAACC,SAAS,CAACG,KAAK,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NotificationFeedbackType","ImpactFeedbackStyle","vibrationPatterns","Success","Warning","Error","Light","Medium","Heavy","Soft","Rigid","selection","isVibrationAvailable","window","navigator","selectionAsync","vibrate","notificationAsync","type","impactAsync","style"],"sourceRoot":"../../../src","sources":["polyfills/haptics.web.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,WAAYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AAMpC,WAAYC,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAU/B,MAAMC,
|
|
1
|
+
{"version":3,"names":["NotificationFeedbackType","ImpactFeedbackStyle","vibrationPatterns","Success","Warning","Error","Light","Medium","Heavy","Soft","Rigid","selection","isVibrationAvailable","window","navigator","selectionAsync","vibrate","notificationAsync","type","impactAsync","style"],"sourceRoot":"../../../src","sources":["polyfills/haptics.web.ts"],"mappings":";;AAAA;AACA;AACA;AACA;;AAEA,WAAYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAA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AE;IAC3B;EACF;EACAE,SAAS,CAACE,OAAO,CAACd,iBAAiB,CAACgB,IAAI,CAAC,CAAC;AAC5C;AAEA,OAAO,eAAeC,WAAWA,CAACC,KAA0B,GAAGnB,mBAAmB,CAACM,MAAM,EAAiB;EACxG,IAAI,CAACK,oBAAoB,CAAC,CAAC,EAAE;IAC3B;EACF;EACAE,SAAS,CAACE,OAAO,CAACd,iBAAiB,CAACkB,KAAK,CAAC,CAAC;AAC7C","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import WebMapView, * as WebMaps from "@teovilla/react-native-web-maps";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { PROVIDER_DEFAULT, PROVIDER_GOOGLE } from "./maps.web-values.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const GOOGLE_MAPS_API_KEY = process.env.EXPO_PUBLIC_GOOGLE_MAPS_API_KEY;
|
|
9
|
+
function MapView({
|
|
10
|
+
ref,
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
return /*#__PURE__*/_jsx(WebMapView, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
googleMapsApiKey: GOOGLE_MAPS_API_KEY,
|
|
16
|
+
...props,
|
|
17
|
+
provider: PROVIDER_GOOGLE
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
MapView.displayName = "MapView";
|
|
21
|
+
Object.assign(MapView, {
|
|
22
|
+
...WebMaps,
|
|
23
|
+
PROVIDER_GOOGLE,
|
|
24
|
+
PROVIDER_DEFAULT
|
|
25
|
+
});
|
|
26
|
+
export default MapView;
|
|
27
|
+
//# sourceMappingURL=maps.web-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WebMapView","WebMaps","React","PROVIDER_DEFAULT","PROVIDER_GOOGLE","jsx","_jsx","GOOGLE_MAPS_API_KEY","process","env","EXPO_PUBLIC_GOOGLE_MAPS_API_KEY","MapView","ref","props","googleMapsApiKey","provider","displayName","Object","assign"],"sourceRoot":"../../../src","sources":["polyfills/maps.web-component.tsx"],"mappings":";;AAAA;AACA,OAAOA,UAAU,EAAE,KAAKC,OAAO,MAAM,iCAAiC;AACtE,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,gBAAgB,EAAEC,eAAe,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtE,MAAMC,mBAAmB,GAAGC,OAAO,CAACC,GAAG,CAACC,+BAA+B;AAEvE,SAASC,OAAOA,CAAC;EAAEC,GAAG;EAAE,GAAGC;AAAM,CAAC,EAAE;EAClC,oBAAOP,IAAA,CAACN,UAAU;IAACY,GAAG,EAAEA,GAAI;IAACE,gBAAgB,EAAEP,mBAAoB;IAAA,GAAKM,KAAK;IAAEE,QAAQ,EAAEX;EAAgB,CAAE,CAAC;AAC9G;AAEAO,OAAO,CAACK,WAAW,GAAG,SAAS;AAE/BC,MAAM,CAACC,MAAM,CAACP,OAAO,EAAE;EACrB,GAAGV,OAAO;EACVG,eAAe;EACfD;AACF,CAAC,CAAC;AAEF,eAAeQ,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
import * as WebMaps from "@teovilla/react-native-web-maps";
|
|
5
|
+
export const PROVIDER_GOOGLE = "google";
|
|
6
|
+
export const PROVIDER_DEFAULT = undefined;
|
|
7
|
+
export const {
|
|
8
|
+
Marker,
|
|
9
|
+
Callout,
|
|
10
|
+
Polyline,
|
|
11
|
+
Polygon,
|
|
12
|
+
Circle,
|
|
13
|
+
Overlay,
|
|
14
|
+
Heatmap,
|
|
15
|
+
UrlTile,
|
|
16
|
+
WMSTile,
|
|
17
|
+
LocalTile
|
|
18
|
+
} = WebMaps;
|
|
19
|
+
//# sourceMappingURL=maps.web-values.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["WebMaps","PROVIDER_GOOGLE","PROVIDER_DEFAULT","undefined","Marker","Callout","Polyline","Polygon","Circle","Overlay","Heatmap","UrlTile","WMSTile","LocalTile"],"sourceRoot":"../../../src","sources":["polyfills/maps.web-values.ts"],"mappings":";;AAAA;AACA,OAAO,KAAKA,OAAO,MAAM,iCAAiC;AAE1D,OAAO,MAAMC,eAAe,GAAG,QAAQ;AACvC,OAAO,MAAMC,gBAAgB,GAAGC,SAAS;AAEzC,OAAO,MAAM;EAAEC,MAAM;EAAEC,OAAO;EAAEC,QAAQ;EAAEC,OAAO;EAAEC,MAAM;EAAEC,OAAO;EAAEC,OAAO;EAAEC,OAAO;EAAEC,OAAO;EAAEC;AAAU,CAAC,GAAGb,OAAO","ignoreList":[]}
|
|
@@ -1,37 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import React from "react";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export const PROVIDER_GOOGLE = "google";
|
|
8
|
-
export const PROVIDER_DEFAULT = undefined;
|
|
9
|
-
const GOOGLE_MAPS_API_KEY = process.env.EXPO_PUBLIC_GOOGLE_MAPS_API_KEY;
|
|
10
|
-
const MapView = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
11
|
-
return /*#__PURE__*/_jsx(WebMapView, {
|
|
12
|
-
ref: ref,
|
|
13
|
-
googleMapsApiKey: GOOGLE_MAPS_API_KEY,
|
|
14
|
-
...props,
|
|
15
|
-
provider: PROVIDER_GOOGLE
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
MapView.displayName = "MapView";
|
|
19
|
-
Object.assign(MapView, {
|
|
20
|
-
...WebMaps,
|
|
21
|
-
PROVIDER_GOOGLE,
|
|
22
|
-
PROVIDER_DEFAULT
|
|
23
|
-
});
|
|
24
|
-
export const {
|
|
25
|
-
Marker,
|
|
26
|
-
Callout,
|
|
27
|
-
Polyline,
|
|
28
|
-
Polygon,
|
|
29
|
-
Circle,
|
|
30
|
-
Overlay,
|
|
31
|
-
Heatmap,
|
|
32
|
-
UrlTile,
|
|
33
|
-
WMSTile,
|
|
34
|
-
LocalTile
|
|
35
|
-
} = WebMaps;
|
|
36
|
-
export default MapView;
|
|
3
|
+
export { default } from "./maps.web-component.js";
|
|
4
|
+
export * from "./maps.web-values.js";
|
|
37
5
|
//# sourceMappingURL=maps.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["default"],"sourceRoot":"../../../src","sources":["polyfills/maps.web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAsB;AAC9C,cAAc,sBAAmB","ignoreList":[]}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
// @ts-nocheck
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
import { cloneElement, Component, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
5
6
|
// Import from react-native-web directly to avoid infinite loop
|
|
6
7
|
// (metro redirects "react-native" to our polyfill on web)
|
|
7
8
|
import { ActivityIndicator, Animated, PanResponder, View } from "react-native-web";
|
|
8
9
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
+
const animatedComponentCache = new WeakMap();
|
|
9
12
|
export default function WebRefreshControl({
|
|
10
13
|
refreshing,
|
|
11
14
|
tintColor,
|
|
@@ -28,9 +31,9 @@ export default function WebRefreshControl({
|
|
|
28
31
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
32
|
const containerRef = useRef(null);
|
|
30
33
|
const pullPosReachedState = useRef(0);
|
|
31
|
-
const pullDownSwipeMargin =
|
|
34
|
+
const [pullDownSwipeMargin] = useState(() => new Animated.Value(0));
|
|
32
35
|
useEffect(() => {
|
|
33
|
-
Animated.timing(pullDownSwipeMargin
|
|
36
|
+
Animated.timing(pullDownSwipeMargin, {
|
|
34
37
|
toValue: refreshing ? 50 : 0,
|
|
35
38
|
duration: 350,
|
|
36
39
|
useNativeDriver: false
|
|
@@ -38,46 +41,50 @@ export default function WebRefreshControl({
|
|
|
38
41
|
if (refreshing) {
|
|
39
42
|
pullPosReachedState.current = 0;
|
|
40
43
|
}
|
|
41
|
-
}, [refreshing]);
|
|
44
|
+
}, [pullDownSwipeMargin, refreshing]);
|
|
42
45
|
const onPanResponderFinish = useCallback(() => {
|
|
43
46
|
if (pullPosReachedState.current && onRefreshRef.current) {
|
|
44
47
|
onRefreshRef.current();
|
|
45
48
|
}
|
|
46
49
|
if (!pullPosReachedState.current) {
|
|
47
|
-
Animated.timing(pullDownSwipeMargin
|
|
50
|
+
Animated.timing(pullDownSwipeMargin, {
|
|
48
51
|
toValue: 0,
|
|
49
52
|
duration: 350,
|
|
50
53
|
useNativeDriver: false
|
|
51
54
|
}).start();
|
|
52
55
|
}
|
|
56
|
+
}, [pullDownSwipeMargin]);
|
|
57
|
+
const shouldSetPanResponder = useCallback((_, gestureState) => {
|
|
58
|
+
if (!containerRef.current) return false;
|
|
59
|
+
// React 19 fix: use direct DOM traversal instead of findNodeHandle
|
|
60
|
+
const scrollContainer = containerRef.current?.firstChild;
|
|
61
|
+
if (!scrollContainer) return false;
|
|
62
|
+
return scrollContainer.scrollTop === 0 && Math.abs(gestureState.dy) > Math.abs(gestureState.dx) * 2 && Math.abs(gestureState.vy) > Math.abs(gestureState.vx) * 2.5;
|
|
53
63
|
}, []);
|
|
54
|
-
const
|
|
64
|
+
const handlePanResponderMove = useCallback((_, gestureState) => {
|
|
65
|
+
if (enabledRef.current !== undefined && !enabledRef.current) return;
|
|
66
|
+
const adjustedDy = gestureState.dy <= 0 ? 0 : gestureState.dy * 150 / (gestureState.dy + 120);
|
|
67
|
+
pullDownSwipeMargin.setValue(adjustedDy);
|
|
68
|
+
const newValue = adjustedDy > 45 ? 1 : 0;
|
|
69
|
+
if (newValue !== pullPosReachedState.current) {
|
|
70
|
+
pullPosReachedState.current = newValue;
|
|
71
|
+
}
|
|
72
|
+
}, [pullDownSwipeMargin]);
|
|
73
|
+
|
|
74
|
+
// oxlint-disable-next-line react/refs -- PanResponder.create stores handlers without invoking them during initialization.
|
|
75
|
+
const [panResponder] = useState(() => PanResponder.create({
|
|
55
76
|
onStartShouldSetPanResponder: () => false,
|
|
56
77
|
onStartShouldSetPanResponderCapture: () => false,
|
|
57
|
-
onMoveShouldSetPanResponder:
|
|
58
|
-
if (!containerRef.current) return false;
|
|
59
|
-
// React 19 fix: use direct DOM traversal instead of findNodeHandle
|
|
60
|
-
const scrollContainer = containerRef.current?.firstChild;
|
|
61
|
-
if (!scrollContainer) return false;
|
|
62
|
-
return scrollContainer.scrollTop === 0 && Math.abs(gestureState.dy) > Math.abs(gestureState.dx) * 2 && Math.abs(gestureState.vy) > Math.abs(gestureState.vx) * 2.5;
|
|
63
|
-
},
|
|
78
|
+
onMoveShouldSetPanResponder: shouldSetPanResponder,
|
|
64
79
|
onMoveShouldSetPanResponderCapture: () => false,
|
|
65
|
-
onPanResponderMove:
|
|
66
|
-
if (enabledRef.current !== undefined && !enabledRef.current) return;
|
|
67
|
-
const adjustedDy = gestureState.dy <= 0 ? 0 : gestureState.dy * 150 / (gestureState.dy + 120); // Diminishing returns function
|
|
68
|
-
pullDownSwipeMargin.current.setValue(adjustedDy);
|
|
69
|
-
const newValue = adjustedDy > 45 ? 1 : 0;
|
|
70
|
-
if (newValue !== pullPosReachedState.current) {
|
|
71
|
-
pullPosReachedState.current = newValue;
|
|
72
|
-
}
|
|
73
|
-
},
|
|
80
|
+
onPanResponderMove: handlePanResponderMove,
|
|
74
81
|
onPanResponderTerminationRequest: () => true,
|
|
75
82
|
onPanResponderRelease: onPanResponderFinish,
|
|
76
83
|
onPanResponderTerminate: onPanResponderFinish
|
|
77
84
|
}));
|
|
78
85
|
const refreshIndicatorColor = useMemo(() => tintColor ? tintColor : colors && colors.length ? colors[0] : null, [colors, tintColor]);
|
|
79
86
|
const containerStyle = useMemo(() => [style,
|
|
80
|
-
// @ts-
|
|
87
|
+
// @ts-expect-error overflowY is not in RN ViewStyle but is valid on web
|
|
81
88
|
{
|
|
82
89
|
overflowY: "hidden",
|
|
83
90
|
overflow: "hidden",
|
|
@@ -90,34 +97,27 @@ export default function WebRefreshControl({
|
|
|
90
97
|
marginTop: -40,
|
|
91
98
|
height: 40,
|
|
92
99
|
transform: [{
|
|
93
|
-
translateY: pullDownSwipeMargin
|
|
100
|
+
translateY: pullDownSwipeMargin
|
|
94
101
|
}]
|
|
95
|
-
}), []);
|
|
96
|
-
|
|
97
|
-
// This is messing with react-native-web's internal implementation
|
|
98
|
-
// Will probably break if anything changes on their end
|
|
99
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
-
const AnimatedContentContainer = useMemo(() => {
|
|
101
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
102
|
-
const childElement = children;
|
|
103
|
-
if (!childElement?.props?.children?.type) return null;
|
|
104
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
|
-
return withAnimated(childProps => /*#__PURE__*/React.createElement(childElement.props.children.type, childProps));
|
|
106
|
-
}, [children]);
|
|
102
|
+
}), [pullDownSwipeMargin]);
|
|
107
103
|
|
|
108
104
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
105
|
const childElement = children;
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
107
|
+
const contentContainerType = childElement?.props?.children?.type;
|
|
108
|
+
// oxlint-disable react/static-components -- Module-level caching preserves component identity for each wrapped type.
|
|
109
|
+
const AnimatedContentContainer = contentContainerType ? withAnimated(contentContainerType) : null;
|
|
110
110
|
const newContentContainerStyle = useMemo(() => [childElement?.props?.children?.props?.style, {
|
|
111
111
|
transform: [{
|
|
112
|
-
translateY: pullDownSwipeMargin
|
|
112
|
+
translateY: pullDownSwipeMargin
|
|
113
113
|
}]
|
|
114
|
-
}], [childElement?.props?.children?.props?.style]);
|
|
114
|
+
}], [childElement?.props?.children?.props?.style, pullDownSwipeMargin]);
|
|
115
115
|
if (!childElement || !AnimatedContentContainer) {
|
|
116
116
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
117
117
|
children: children
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
const newChildren = /*#__PURE__*/
|
|
120
|
+
const newChildren = /*#__PURE__*/cloneElement(childElement, {}, /*#__PURE__*/_jsxs(_Fragment, {
|
|
121
121
|
children: [/*#__PURE__*/_jsx(Animated.View, {
|
|
122
122
|
style: indicatorTransformStyle,
|
|
123
123
|
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
@@ -129,20 +129,24 @@ export default function WebRefreshControl({
|
|
|
129
129
|
style: newContentContainerStyle
|
|
130
130
|
})]
|
|
131
131
|
}));
|
|
132
|
+
// oxlint-enable react/static-components
|
|
133
|
+
|
|
132
134
|
return /*#__PURE__*/_jsx(View, {
|
|
133
135
|
ref: containerRef,
|
|
134
136
|
style: containerStyle,
|
|
135
|
-
...panResponder.
|
|
137
|
+
...panResponder.panHandlers,
|
|
136
138
|
children: newChildren
|
|
137
139
|
});
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
141
143
|
function withAnimated(WrappedComponent) {
|
|
144
|
+
const cachedComponent = animatedComponentCache.get(WrappedComponent);
|
|
145
|
+
if (cachedComponent) return cachedComponent;
|
|
142
146
|
const displayName = WrappedComponent.displayName || WrappedComponent.name || "Component";
|
|
143
147
|
|
|
144
148
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
145
|
-
class WithAnimated extends
|
|
149
|
+
class WithAnimated extends Component {
|
|
146
150
|
static displayName = `WithAnimated(${displayName})`;
|
|
147
151
|
render() {
|
|
148
152
|
return /*#__PURE__*/_jsx(WrappedComponent, {
|
|
@@ -150,6 +154,8 @@ function withAnimated(WrappedComponent) {
|
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
156
|
}
|
|
153
|
-
|
|
157
|
+
const AnimatedComponent = Animated.createAnimatedComponent(WithAnimated);
|
|
158
|
+
animatedComponentCache.set(WrappedComponent, AnimatedComponent);
|
|
159
|
+
return AnimatedComponent;
|
|
154
160
|
}
|
|
155
161
|
//# sourceMappingURL=refresh-control-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["cloneElement","Component","useCallback","useEffect","useMemo","useRef","useState","ActivityIndicator","Animated","PanResponder","View","Fragment","_Fragment","jsx","_jsx","jsxs","_jsxs","animatedComponentCache","WeakMap","WebRefreshControl","refreshing","tintColor","colors","style","progressViewOffset","children","onRefresh","enabled","onRefreshRef","current","enabledRef","containerRef","pullPosReachedState","pullDownSwipeMargin","Value","timing","toValue","duration","useNativeDriver","start","onPanResponderFinish","shouldSetPanResponder","_","gestureState","scrollContainer","firstChild","scrollTop","Math","abs","dy","dx","vy","vx","handlePanResponderMove","undefined","adjustedDy","setValue","newValue","panResponder","create","onStartShouldSetPanResponder","onStartShouldSetPanResponderCapture","onMoveShouldSetPanResponder","onMoveShouldSetPanResponderCapture","onPanResponderMove","onPanResponderTerminationRequest","onPanResponderRelease","onPanResponderTerminate","refreshIndicatorColor","length","containerStyle","overflowY","overflow","paddingTop","indicatorTransformStyle","alignSelf","justifyContent","alignItems","marginTop","height","transform","translateY","childElement","contentContainerType","props","type","AnimatedContentContainer","withAnimated","newContentContainerStyle","newChildren","color","size","ref","panHandlers","WrappedComponent","cachedComponent","get","displayName","name","WithAnimated","render","AnimatedComponent","createAnimatedComponent","set"],"sourceRoot":"../../../src","sources":["polyfills/refresh-control-component.tsx"],"mappings":";;AAAA;;AAEA,SAASA,YAAY,EAAEC,SAAS,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAA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IS_DEVICE_ONLY","isValidValue","value","Blob","size","console","warn","getStorageKey","key","isAvailableAsync","testKey","localStorage","setItem","getItem","removeItem","deleteItemAsync","_options","getItemAsync","setItemAsync","Error","canUseBiometricAuthentication"],"sourceRoot":"../../../src","sources":["polyfills/secure-store.web.ts"],"mappings":";;AAAA,MAAMA,iBAAiB,GAAG,IAAI;AAE9B,MAAMC,kBAAkB,GAAG;EACzBC,kBAAkB,EAAE,CAAC;EACrBC,mCAAmC,EAAE,CAAC;EACtCC,MAAM,EAAE,CAAC;EACTC,kCAAkC,EAAE,CAAC;EACrCC,uBAAuB,EAAE,CAAC;EAC1BC,aAAa,EAAE,CAAC;EAChBC,8BAA8B,EAAE;AAClC,CAAC;AAGD,OAAO,MAAM;EACXN,kBAAkB;EAClBC,mCAAmC;EACnCC,MAAM;EACNC,kCAAkC;EAClCC,uBAAuB;EACvBC,aAAa;EACbC;AACF,CAAC,GAAGP,kBAAkB;AAStB,SAASQ,YAAYA,CAACC,KAAa,EAAE;EACnC,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAO,KAAK;EACd;EACA,IAAI,IAAIC,IAAI,CAAC,CAACD,KAAK,CAAC,CAAC,CAACE,IAAI,GAAGZ,iBAAiB,EAAE;IAC9C;IACAa,OAAO,CAACC,IAAI,CACV,oDAAoDd,iBAAiB,+CACvE,CAAC;EACH;EACA,OAAO,IAAI;AACb;AAEA,SAASe,aAAaA,CAACC,GAAW,EAAU;EAC1C,OAAO,wBAAwBA,GAAG,EAAE;AACtC;AAEA,OAAO,eAAeC,gBAAgBA,CAAA,EAAqB;EACzD,MAAMC,OAAO,GAAG,wCAAwC;EACxD,IAAI;IACFC,YAAY,CAACC,OAAO,CAACF,OAAO,EAAE,MAAM,CAAC;IACrC,IAAIC,YAAY,CAACE,OAAO,CAACH,OAAO,CAAC,KAAK,MAAM,EAAE;MAC5C,OAAO,KAAK;IACd;IACAC,YAAY,CAACG,UAAU,CAACJ,OAAO,CAAC;IAChC,OAAOC,YAAY,CAACE,OAAO,CAACH,OAAO,CAAC,KAAK,IAAI;EAC/C,CAAC,CAAC,MAAM;IACN,OAAO,KAAK;EACd;AACF;AAEA,OAAO,eAAeK,eAAeA,
|
|
1
|
+
{"version":3,"names":["VALUE_BYTES_LIMIT","KEYCHAIN_CONSTANTS","AFTER_FIRST_UNLOCK","AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY","ALWAYS","WHEN_PASSCODE_SET_THIS_DEVICE_ONLY","ALWAYS_THIS_DEVICE_ONLY","WHEN_UNLOCKED","WHEN_UNLOCKED_THIS_DEVICE_ONLY","isValidValue","value","Blob","size","console","warn","getStorageKey","key","isAvailableAsync","testKey","localStorage","setItem","getItem","removeItem","deleteItemAsync","_options","getItemAsync","setItemAsync","Error","canUseBiometricAuthentication"],"sourceRoot":"../../../src","sources":["polyfills/secure-store.web.ts"],"mappings":";;AAAA,MAAMA,iBAAiB,GAAG,IAAI;AAE9B,MAAMC,kBAAkB,GAAG;EACzBC,kBAAkB,EAAE,CAAC;EACrBC,mCAAmC,EAAE,CAAC;EACtCC,MAAM,EAAE,CAAC;EACTC,kCAAkC,EAAE,CAAC;EACrCC,uBAAuB,EAAE,CAAC;EAC1BC,aAAa,EAAE,CAAC;EAChBC,8BAA8B,EAAE;AAClC,CAAC;AAGD,OAAO,MAAM;EACXN,kBAAkB;EAClBC,mCAAmC;EACnCC,MAAM;EACNC,kCAAkC;EAClCC,uBAAuB;EACvBC,aAAa;EACbC;AACF,CAAC,GAAGP,kBAAkB;AAStB,SAASQ,YAAYA,CAACC,KAAa,EAAE;EACnC,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAO,KAAK;EACd;EACA,IAAI,IAAIC,IAAI,CAAC,CAACD,KAAK,CAAC,CAAC,CAACE,IAAI,GAAGZ,iBAAiB,EAAE;IAC9C;IACAa,OAAO,CAACC,IAAI,CACV,oDAAoDd,iBAAiB,+CACvE,CAAC;EACH;EACA,OAAO,IAAI;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ACAR,YAAY,CAACC,OAAO,CAACL,aAAa,CAACC,GAAG,CAAC,EAAEN,KAAK,CAAC;AACjD;AAEA,OAAO,SAASW,OAAOA,CAACL,GAAW,EAAEQ,QAA4B,GAAG,CAAC,CAAC,EAAiB;EACrF,OAAOL,YAAY,CAACE,OAAO,CAACN,aAAa,CAACC,GAAG,CAAC,CAAC;AACjD;AAEA,OAAO,SAASY,6BAA6BA,CAAA,EAAY;EACvD,OAAO,KAAK;AACd","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ type Tool<T extends z.ZodType = z.ZodType> = {
|
|
|
7
7
|
zodSchema: T;
|
|
8
8
|
execute?: (input: z.infer<T>) => Promise<string> | string;
|
|
9
9
|
};
|
|
10
|
+
/** Compatibility API for existing apps. Use an official AI SDK for new apps. */
|
|
10
11
|
export declare function createRorkTool<T extends z.ZodType>(tool: Tool<T>): Tool<T>;
|
|
11
12
|
type TextPart = {
|
|
12
13
|
type: "text";
|
|
@@ -24,24 +25,30 @@ type AssistantMessage = {
|
|
|
24
25
|
role: "assistant";
|
|
25
26
|
content: string | TextPart[];
|
|
26
27
|
};
|
|
28
|
+
/** Compatibility API for existing apps. Use Toolkit v2 for new apps. */
|
|
27
29
|
export declare function generateObject<T extends z.ZodType>(params: {
|
|
28
30
|
messages: (UserMessage | AssistantMessage)[];
|
|
29
31
|
schema: T;
|
|
30
32
|
}): Promise<z.infer<T>>;
|
|
33
|
+
/** Compatibility API for existing apps. Use Toolkit v2 for new apps. */
|
|
31
34
|
export declare function generateText(params: string | {
|
|
32
35
|
messages: (UserMessage | AssistantMessage)[];
|
|
33
36
|
}): Promise<string>;
|
|
37
|
+
/** Compatibility API for existing apps. Use an official AI SDK with Toolkit v2 for new apps. */
|
|
34
38
|
export declare function useRorkAgent<T extends Record<string, Tool<z.ZodType>>>(options: Omit<UseChatOptions<UIMessage>, "transport"> & {
|
|
35
39
|
tools: T;
|
|
36
40
|
}): {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
role?: "user" | "assistant" | "system" | undefined;
|
|
40
|
-
} & {
|
|
41
|
-
text?: never;
|
|
42
|
-
files?: never;
|
|
41
|
+
status: import("ai").ChatStatus;
|
|
42
|
+
regenerate: ({ messageId, ...options }?: {
|
|
43
43
|
messageId?: string;
|
|
44
|
-
})
|
|
44
|
+
} & import("ai").ChatRequestOptions) => Promise<void>;
|
|
45
|
+
resumeStream: (options?: import("ai").ChatRequestOptions) => Promise<void>;
|
|
46
|
+
clearError: () => void;
|
|
47
|
+
stop: () => Promise<void>;
|
|
48
|
+
id: string;
|
|
49
|
+
setMessages: (messages: UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>[] | ((messages: UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>[]) => UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>[])) => void;
|
|
50
|
+
error: Error | undefined;
|
|
51
|
+
sendMessage: (message: string | Parameters<(message?: {
|
|
45
52
|
text: string;
|
|
46
53
|
files?: FileList | import("ai").FileUIPart[];
|
|
47
54
|
metadata?: unknown;
|
|
@@ -52,53 +59,60 @@ export declare function useRorkAgent<T extends Record<string, Tool<z.ZodType>>>(
|
|
|
52
59
|
metadata?: unknown;
|
|
53
60
|
parts?: never;
|
|
54
61
|
messageId?: string;
|
|
55
|
-
} |
|
|
62
|
+
} | (Omit<UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>, "id" | "role"> & {
|
|
63
|
+
id?: string | undefined;
|
|
64
|
+
role?: "assistant" | "system" | "user" | undefined;
|
|
65
|
+
} & {
|
|
66
|
+
text?: never;
|
|
67
|
+
files?: never;
|
|
68
|
+
messageId?: string;
|
|
69
|
+
}) | undefined, options?: import("ai").ChatRequestOptions) => Promise<void>>[0]) => void;
|
|
56
70
|
messages: {
|
|
71
|
+
id: string;
|
|
72
|
+
role: 'system' | 'user' | 'assistant';
|
|
73
|
+
metadata?: unknown;
|
|
57
74
|
parts: (import("ai").TextUIPart | {
|
|
58
|
-
type: "tool";
|
|
59
|
-
toolName: string;
|
|
60
75
|
toolCallId: string;
|
|
61
76
|
providerExecuted?: boolean;
|
|
62
|
-
state:
|
|
77
|
+
state: 'input-streaming';
|
|
63
78
|
input: unknown;
|
|
64
79
|
output?: never;
|
|
65
80
|
errorText?: never;
|
|
66
|
-
} | {
|
|
67
81
|
type: "tool";
|
|
68
82
|
toolName: string;
|
|
83
|
+
} | {
|
|
69
84
|
toolCallId: string;
|
|
70
85
|
providerExecuted?: boolean;
|
|
71
|
-
state:
|
|
86
|
+
state: 'input-available';
|
|
72
87
|
input: unknown;
|
|
73
88
|
output?: never;
|
|
74
89
|
errorText?: never;
|
|
75
90
|
callProviderMetadata?: import("ai").ProviderMetadata;
|
|
76
|
-
} | {
|
|
77
91
|
type: "tool";
|
|
78
92
|
toolName: string;
|
|
93
|
+
} | {
|
|
79
94
|
toolCallId: string;
|
|
80
95
|
providerExecuted?: boolean;
|
|
81
|
-
state:
|
|
96
|
+
state: 'output-available';
|
|
82
97
|
input: unknown;
|
|
83
98
|
output: unknown;
|
|
84
99
|
errorText?: never;
|
|
85
100
|
callProviderMetadata?: import("ai").ProviderMetadata;
|
|
86
101
|
preliminary?: boolean;
|
|
87
|
-
} | {
|
|
88
102
|
type: "tool";
|
|
89
103
|
toolName: string;
|
|
104
|
+
} | {
|
|
90
105
|
toolCallId: string;
|
|
91
106
|
providerExecuted?: boolean;
|
|
92
|
-
state:
|
|
107
|
+
state: 'output-error';
|
|
93
108
|
input: unknown;
|
|
94
109
|
rawInput?: unknown;
|
|
95
110
|
output?: never;
|
|
96
111
|
errorText: string;
|
|
97
112
|
callProviderMetadata?: import("ai").ProviderMetadata;
|
|
113
|
+
type: "tool";
|
|
114
|
+
toolName: string;
|
|
98
115
|
})[];
|
|
99
|
-
id: string;
|
|
100
|
-
role: "system" | "user" | "assistant";
|
|
101
|
-
metadata?: unknown;
|
|
102
116
|
}[];
|
|
103
117
|
addToolResult: <TOOL extends string>({ state, tool, toolCallId, output, errorText, }: {
|
|
104
118
|
state?: "output-available";
|
|
@@ -113,15 +127,6 @@ export declare function useRorkAgent<T extends Record<string, Tool<z.ZodType>>>(
|
|
|
113
127
|
output?: never;
|
|
114
128
|
errorText: string;
|
|
115
129
|
}) => Promise<void>;
|
|
116
|
-
id: string;
|
|
117
|
-
setMessages: (messages: UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>[] | ((messages: UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>[]) => UIMessage<unknown, import("ai").UIDataTypes, import("ai").UITools>[])) => void;
|
|
118
|
-
error: Error | undefined;
|
|
119
|
-
stop: () => Promise<void>;
|
|
120
|
-
status: import("ai").ChatStatus;
|
|
121
|
-
regenerate: ({ messageId, ...options }?: {
|
|
122
|
-
messageId?: string;
|
|
123
|
-
} & import("ai").ChatRequestOptions) => Promise<void>;
|
|
124
|
-
resumeStream: (options?: import("ai").ChatRequestOptions) => Promise<void>;
|
|
125
130
|
addToolOutput: <TOOL extends string>({ state, tool, toolCallId, output, errorText, }: {
|
|
126
131
|
state?: "output-available";
|
|
127
132
|
tool: TOOL;
|
|
@@ -135,7 +140,6 @@ export declare function useRorkAgent<T extends Record<string, Tool<z.ZodType>>>(
|
|
|
135
140
|
output?: never;
|
|
136
141
|
errorText: string;
|
|
137
142
|
}) => Promise<void>;
|
|
138
|
-
clearError: () => void;
|
|
139
143
|
};
|
|
140
144
|
export {};
|
|
141
145
|
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAmF,KAAK,SAAS,EAAE,MAAM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,wEAAwE;AACxE,wBAAsB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,CAAC,WAAW,GAAG,gBAAgB,CAAC,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAIrH;AAED,gGAAgG;AAChG,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,EACpE,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,GAAG;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;;2BA2CtC,MAAM,GAAG,UAAU;;;;;;;;;;;;;;;;;;gFAAyB,CAAC,CAAC,CAAC,KAAG,IAAI;;;;;;;;;;;;kBAN9B,MAAM;;;;;;;;;;kBAAN,MAAM;;;;;;;;;;;kBAAN,MAAM;;;;;;;;;;;kBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PostHog from "posthog-react-native";
|
|
2
|
+
export declare const analyticsGroups: {
|
|
3
|
+
project: any;
|
|
4
|
+
team: any;
|
|
5
|
+
};
|
|
6
|
+
type EventProperties = NonNullable<Parameters<PostHog["capture"]>[1]>;
|
|
7
|
+
export declare function getPostHogClient(): PostHog | null;
|
|
8
|
+
export declare function trackEvent(name: string, properties: EventProperties): void;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=analytics-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics-client.d.ts","sourceRoot":"","sources":["../../../src/analytics-client.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAS3C,eAAO,MAAM,eAAe;IAAK,OAAO;IAAa,IAAI;CAAU,CAAC;AAGpE,KAAK,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtE,wBAAgB,gBAAgB,mBAiB/B;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,eAAe,QAEnE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
export declare function RorkAnalyticsProvider({ children }: PropsWithChildren): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
3
|
+
//# sourceMappingURL=analytics-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics-provider.d.ts","sourceRoot":"","sources":["../../../src/analytics-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2WAiBpE"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export declare function trackEvent(name: string, properties: Record<string, any>): void;
|
|
4
|
-
export declare function RorkAnalyticsProvider({ children }: {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
1
|
+
export { getPostHogClient, trackEvent } from "./analytics-client";
|
|
2
|
+
export { RorkAnalyticsProvider } from "./analytics-provider";
|
|
7
3
|
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/analytics.
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, type ErrorInfo, type ReactNode } from "react";
|
|
2
2
|
interface Props {
|
|
3
|
-
children:
|
|
4
|
-
onError?: (error: Error, errorInfo:
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
5
5
|
}
|
|
6
6
|
interface State {
|
|
7
7
|
hasError: boolean;
|
|
8
8
|
error: Error | null;
|
|
9
9
|
}
|
|
10
|
-
export declare class RorkErrorBoundary extends
|
|
10
|
+
export declare class RorkErrorBoundary extends Component<Props, State> {
|
|
11
11
|
constructor(props: Props);
|
|
12
12
|
static getDerivedStateFromError(error: Error): {
|
|
13
13
|
hasError: boolean;
|
|
14
14
|
error: Error;
|
|
15
15
|
};
|
|
16
|
-
componentDidCatch(error: Error, errorInfo:
|
|
17
|
-
render(): string | number | bigint | boolean | Iterable<
|
|
16
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
17
|
+
render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
20
20
|
//# sourceMappingURL=error-boundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../../src/dev/error-boundary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../../src/dev/error-boundary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,KAAK;IACb,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;CACxD;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AA4GD,qBAAa,iBAAkB,SAAQ,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;IAC5D,YAAY,KAAK,EAAE,KAAK,EAGvB;IAED,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK;;;MAE3C;IAED,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QAKnD;IAED,MAAM,4UAgBL;CACF"}
|