@robertlinde/react-tour-kit 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +838 -0
  3. package/dist/react-native-platform/components/index.d.ts +2 -0
  4. package/dist/react-native-platform/components/index.js +8 -0
  5. package/dist/react-native-platform/components/index.js.map +1 -0
  6. package/dist/react-native-platform/components/tour-overlay.d.ts +3 -0
  7. package/dist/react-native-platform/components/tour-overlay.js +83 -0
  8. package/dist/react-native-platform/components/tour-overlay.js.map +1 -0
  9. package/dist/react-native-platform/components/tour-tooltip.d.ts +3 -0
  10. package/dist/react-native-platform/components/tour-tooltip.js +138 -0
  11. package/dist/react-native-platform/components/tour-tooltip.js.map +1 -0
  12. package/dist/react-native-platform/hooks/index.d.ts +1 -0
  13. package/dist/react-native-platform/hooks/index.js +6 -0
  14. package/dist/react-native-platform/hooks/index.js.map +1 -0
  15. package/dist/react-native-platform/hooks/use-tour-target.d.ts +2 -0
  16. package/dist/react-native-platform/hooks/use-tour-target.js +16 -0
  17. package/dist/react-native-platform/hooks/use-tour-target.js.map +1 -0
  18. package/dist/react-native-platform/index.d.ts +7 -0
  19. package/dist/react-native-platform/index.js +16 -0
  20. package/dist/react-native-platform/index.js.map +1 -0
  21. package/dist/react-native-platform/platform-adapter.d.ts +2 -0
  22. package/dist/react-native-platform/platform-adapter.js +87 -0
  23. package/dist/react-native-platform/platform-adapter.js.map +1 -0
  24. package/dist/react-native-platform/target-registry.d.ts +10 -0
  25. package/dist/react-native-platform/target-registry.js +20 -0
  26. package/dist/react-native-platform/target-registry.js.map +1 -0
  27. package/dist/react-native-platform/tour-provider.d.ts +3 -0
  28. package/dist/react-native-platform/tour-provider.js +200 -0
  29. package/dist/react-native-platform/tour-provider.js.map +1 -0
  30. package/dist/react-native-platform/types/tour-provider.props.type.d.ts +10 -0
  31. package/dist/react-native-platform/types/tour-provider.props.type.js +3 -0
  32. package/dist/react-native-platform/types/tour-provider.props.type.js.map +1 -0
  33. package/dist/react-native.d.ts +8 -0
  34. package/dist/react-native.js +19 -0
  35. package/dist/react-native.js.map +1 -0
  36. package/dist/react-platform/components/index.d.ts +2 -0
  37. package/dist/react-platform/components/index.js +8 -0
  38. package/dist/react-platform/components/index.js.map +1 -0
  39. package/dist/react-platform/components/tour-overlay.d.ts +3 -0
  40. package/dist/react-platform/components/tour-overlay.js +31 -0
  41. package/dist/react-platform/components/tour-overlay.js.map +1 -0
  42. package/dist/react-platform/components/tour-tooltip.d.ts +2 -0
  43. package/dist/react-platform/components/tour-tooltip.js +126 -0
  44. package/dist/react-platform/components/tour-tooltip.js.map +1 -0
  45. package/dist/react-platform/index.d.ts +6 -0
  46. package/dist/react-platform/index.js +14 -0
  47. package/dist/react-platform/index.js.map +1 -0
  48. package/dist/react-platform/platform-adapter.d.ts +2 -0
  49. package/dist/react-platform/platform-adapter.js +95 -0
  50. package/dist/react-platform/platform-adapter.js.map +1 -0
  51. package/dist/react-platform/tour-provider.d.ts +3 -0
  52. package/dist/react-platform/tour-provider.js +207 -0
  53. package/dist/react-platform/tour-provider.js.map +1 -0
  54. package/dist/react-platform/types/tour-provider.props.type.d.ts +10 -0
  55. package/dist/react-platform/types/tour-provider.props.type.js +3 -0
  56. package/dist/react-platform/types/tour-provider.props.type.js.map +1 -0
  57. package/dist/react-platform/utils/find-visible-element.util.d.ts +1 -0
  58. package/dist/react-platform/utils/find-visible-element.util.js +14 -0
  59. package/dist/react-platform/utils/find-visible-element.util.js.map +1 -0
  60. package/dist/react-platform/utils/index.d.ts +1 -0
  61. package/dist/react-platform/utils/index.js +6 -0
  62. package/dist/react-platform/utils/index.js.map +1 -0
  63. package/dist/react.d.ts +8 -0
  64. package/dist/react.js +18 -0
  65. package/dist/react.js.map +1 -0
  66. package/dist/shared/context/index.d.ts +1 -0
  67. package/dist/shared/context/index.js +7 -0
  68. package/dist/shared/context/index.js.map +1 -0
  69. package/dist/shared/context/tour-context.d.ts +3 -0
  70. package/dist/shared/context/tour-context.js +17 -0
  71. package/dist/shared/context/tour-context.js.map +1 -0
  72. package/dist/shared/hooks/index.d.ts +1 -0
  73. package/dist/shared/hooks/index.js +6 -0
  74. package/dist/shared/hooks/index.js.map +1 -0
  75. package/dist/shared/hooks/use-tour.hook.d.ts +2 -0
  76. package/dist/shared/hooks/use-tour.hook.js +10 -0
  77. package/dist/shared/hooks/use-tour.hook.js.map +1 -0
  78. package/dist/shared/index.d.ts +5 -0
  79. package/dist/shared/index.js +14 -0
  80. package/dist/shared/index.js.map +1 -0
  81. package/dist/shared/types/index.d.ts +8 -0
  82. package/dist/shared/types/index.js +7 -0
  83. package/dist/shared/types/index.js.map +1 -0
  84. package/dist/shared/types/platform-adapter.type.d.ts +24 -0
  85. package/dist/shared/types/platform-adapter.type.js +3 -0
  86. package/dist/shared/types/platform-adapter.type.js.map +1 -0
  87. package/dist/shared/types/rect.type.d.ts +10 -0
  88. package/dist/shared/types/rect.type.js +3 -0
  89. package/dist/shared/types/rect.type.js.map +1 -0
  90. package/dist/shared/types/tour-context.type.d.ts +12 -0
  91. package/dist/shared/types/tour-context.type.js +3 -0
  92. package/dist/shared/types/tour-context.type.js.map +1 -0
  93. package/dist/shared/types/tour-overlay-props.type.d.ts +7 -0
  94. package/dist/shared/types/tour-overlay-props.type.js +3 -0
  95. package/dist/shared/types/tour-overlay-props.type.js.map +1 -0
  96. package/dist/shared/types/tour-step.type.d.ts +8 -0
  97. package/dist/shared/types/tour-step.type.js +3 -0
  98. package/dist/shared/types/tour-step.type.js.map +1 -0
  99. package/dist/shared/types/tour-theme.type.d.ts +9 -0
  100. package/dist/shared/types/tour-theme.type.js +21 -0
  101. package/dist/shared/types/tour-theme.type.js.map +1 -0
  102. package/dist/shared/types/tour-tooltip-props.type.d.ts +17 -0
  103. package/dist/shared/types/tour-tooltip-props.type.js +3 -0
  104. package/dist/shared/types/tour-tooltip-props.type.js.map +1 -0
  105. package/dist/shared/utils/calculate-tooltip-position.util.d.ts +14 -0
  106. package/dist/shared/utils/calculate-tooltip-position.util.js +56 -0
  107. package/dist/shared/utils/calculate-tooltip-position.util.js.map +1 -0
  108. package/dist/shared/utils/index.d.ts +1 -0
  109. package/dist/shared/utils/index.js +6 -0
  110. package/dist/shared/utils/index.js.map +1 -0
  111. package/package.json +88 -0
@@ -0,0 +1,2 @@
1
+ export { TourOverlay } from './tour-overlay';
2
+ export { TourTooltip } from './tour-tooltip';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TourTooltip = exports.TourOverlay = void 0;
4
+ var tour_overlay_1 = require("./tour-overlay");
5
+ Object.defineProperty(exports, "TourOverlay", { enumerable: true, get: function () { return tour_overlay_1.TourOverlay; } });
6
+ var tour_tooltip_1 = require("./tour-tooltip");
7
+ Object.defineProperty(exports, "TourTooltip", { enumerable: true, get: function () { return tour_tooltip_1.TourTooltip; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react-native-platform/components/index.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAAnC,2GAAA,WAAW,OAAA;AAEnB,+CAA2C;AAAnC,2GAAA,WAAW,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type TourOverlayProps } from '../../shared';
3
+ export declare function TourOverlay({ highlightRect, onClose, theme }: TourOverlayProps): ReactNode;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TourOverlay = TourOverlay;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const { View, StyleSheet, TouchableWithoutFeedback } = require('react-native');
7
+ const highlightPadding = 8;
8
+ const highlightBorderRadius = 8;
9
+ function TourOverlay({ highlightRect, onClose, theme }) {
10
+ const cutoutTop = highlightRect.top - highlightPadding;
11
+ const cutoutLeft = highlightRect.left - highlightPadding;
12
+ const cutoutWidth = highlightRect.width + highlightPadding * 2;
13
+ const cutoutHeight = highlightRect.height + highlightPadding * 2;
14
+ const themedStyles = (0, react_1.useMemo)(() => ({
15
+ overlay: {
16
+ backgroundColor: theme.overlayColor,
17
+ },
18
+ highlightBorder: {
19
+ borderColor: theme.primaryColor,
20
+ },
21
+ }), [theme]);
22
+ return ((0, jsx_runtime_1.jsx)(TouchableWithoutFeedback, { onPress: onClose, children: (0, jsx_runtime_1.jsxs)(View, { style: styles.container, children: [(0, jsx_runtime_1.jsx)(View, { style: [
23
+ styles.overlay,
24
+ themedStyles.overlay,
25
+ {
26
+ top: 0,
27
+ left: 0,
28
+ right: 0,
29
+ height: cutoutTop,
30
+ },
31
+ ] }), (0, jsx_runtime_1.jsx)(View, { style: [
32
+ styles.overlay,
33
+ themedStyles.overlay,
34
+ {
35
+ top: cutoutTop,
36
+ left: 0,
37
+ width: cutoutLeft,
38
+ height: cutoutHeight,
39
+ },
40
+ ] }), (0, jsx_runtime_1.jsx)(View, { style: [
41
+ styles.overlay,
42
+ themedStyles.overlay,
43
+ {
44
+ top: cutoutTop,
45
+ left: cutoutLeft + cutoutWidth,
46
+ right: 0,
47
+ height: cutoutHeight,
48
+ },
49
+ ] }), (0, jsx_runtime_1.jsx)(View, { style: [
50
+ styles.overlay,
51
+ themedStyles.overlay,
52
+ {
53
+ top: cutoutTop + cutoutHeight,
54
+ left: 0,
55
+ right: 0,
56
+ bottom: 0,
57
+ },
58
+ ] }), (0, jsx_runtime_1.jsx)(View, { style: [
59
+ styles.highlightBorder,
60
+ themedStyles.highlightBorder,
61
+ {
62
+ top: cutoutTop,
63
+ left: cutoutLeft,
64
+ width: cutoutWidth,
65
+ height: cutoutHeight,
66
+ borderRadius: highlightBorderRadius,
67
+ },
68
+ ] })] }) }));
69
+ }
70
+ const styles = StyleSheet.create({
71
+ container: {
72
+ ...StyleSheet.absoluteFill,
73
+ },
74
+ overlay: {
75
+ position: 'absolute',
76
+ },
77
+ highlightBorder: {
78
+ position: 'absolute',
79
+ borderWidth: 2,
80
+ backgroundColor: 'transparent',
81
+ },
82
+ });
83
+ //# sourceMappingURL=tour-overlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tour-overlay.js","sourceRoot":"","sources":["../../../src/react-native-platform/components/tour-overlay.tsx"],"names":[],"mappings":";;AAaA,kCA8FC;;AA3GD,iCAA8C;AAI9C,MAAM,EAAC,IAAI,EAAE,UAAU,EAAE,wBAAwB,EAAC,GAAG,OAAO,CAAC,cAAc,CAAkC,CAAC;AAE9G,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAMhC,SAAgB,WAAW,CAAC,EAAC,aAAa,EAAE,OAAO,EAAE,KAAK,EAAmB;IAC3E,MAAM,SAAS,GAAG,aAAa,CAAC,GAAG,GAAG,gBAAgB,CAAC;IACvD,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,GAAG,gBAAgB,CAAC;IACzD,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,GAAG,gBAAgB,GAAG,CAAC,CAAC;IAC/D,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,GAAG,gBAAgB,GAAG,CAAC,CAAC;IAEjE,MAAM,YAAY,GAAG,IAAA,eAAO,EAC1B,GAAqD,EAAE,CAAC,CAAC;QACvD,OAAO,EAAE;YACP,eAAe,EAAE,KAAK,CAAC,YAAY;SACpC;QACD,eAAe,EAAE;YACf,WAAW,EAAE,KAAK,CAAC,YAAY;SAChC;KACF,CAAC,EACF,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,OAAO,CACL,uBAAC,wBAAwB,IAAC,OAAO,EAAE,OAAO,YACxC,wBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,aAE3B,uBAAC,IAAI,IACH,KAAK,EAAE;wBACL,MAAM,CAAC,OAAO;wBACd,YAAY,CAAC,OAAO;wBACpB;4BACE,GAAG,EA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C;QACd,eAAe,EAAE,aAAa;KAC/B;CACF,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { View as ViewType } from 'react-native';
2
+ import { type TourTooltipProps } from '../../shared';
3
+ export declare const TourTooltip: import("react").ForwardRefExoticComponent<TourTooltipProps & import("react").RefAttributes<ViewType>>;
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TourTooltip = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const { View, Text, TouchableOpacity, StyleSheet } = require('react-native');
7
+ exports.TourTooltip = (0, react_1.forwardRef)(function TourTooltip({ title, content, currentStep, totalSteps, position, isPositioned, onClose, onNext, onPrev, theme }, ref) {
8
+ const isFirstStep = currentStep === 0;
9
+ const isLastStep = currentStep === totalSteps - 1;
10
+ const themedStyles = (0, react_1.useMemo)(() => ({
11
+ container: {
12
+ backgroundColor: theme.tooltipBackground,
13
+ },
14
+ stepBadge: {
15
+ backgroundColor: theme.primaryColor,
16
+ },
17
+ closeButtonText: {
18
+ color: theme.contentColor,
19
+ },
20
+ title: {
21
+ color: theme.titleColor,
22
+ },
23
+ content: {
24
+ color: theme.contentColor,
25
+ },
26
+ nextButton: {
27
+ backgroundColor: theme.primaryColor,
28
+ },
29
+ dotActive: {
30
+ backgroundColor: theme.primaryColor,
31
+ },
32
+ }), [theme]);
33
+ return ((0, jsx_runtime_1.jsxs)(View, { ref: ref, style: [
34
+ styles.container,
35
+ themedStyles.container,
36
+ {
37
+ top: position.top,
38
+ left: position.left,
39
+ opacity: isPositioned ? 1 : 0,
40
+ },
41
+ ], children: [(0, jsx_runtime_1.jsxs)(View, { style: styles.header, children: [(0, jsx_runtime_1.jsx)(View, { style: [styles.stepBadge, themedStyles.stepBadge], children: (0, jsx_runtime_1.jsxs)(Text, { style: styles.stepBadgeText, children: ["Step ", currentStep + 1, " of ", totalSteps] }) }), (0, jsx_runtime_1.jsx)(TouchableOpacity, { style: styles.closeButton, onPress: onClose, children: (0, jsx_runtime_1.jsx)(Text, { style: [styles.closeButtonText, themedStyles.closeButtonText], children: "\u00D7" }) })] }), (0, jsx_runtime_1.jsxs)(View, { style: styles.body, children: [(0, jsx_runtime_1.jsx)(Text, { style: [styles.title, themedStyles.title], children: title }), (0, jsx_runtime_1.jsx)(Text, { style: [styles.content, themedStyles.content], children: content })] }), (0, jsx_runtime_1.jsxs)(View, { style: styles.footer, children: [(0, jsx_runtime_1.jsx)(TouchableOpacity, { disabled: isFirstStep, style: [styles.navButton, styles.prevButton, isFirstStep && styles.buttonDisabled], onPress: onPrev, children: (0, jsx_runtime_1.jsx)(Text, { style: [styles.prevButtonText, isFirstStep && styles.buttonTextDisabled], children: "Back" }) }), (0, jsx_runtime_1.jsx)(View, { style: styles.dots, children: Array.from({ length: totalSteps }).map((_, index) => ((0, jsx_runtime_1.jsx)(View, { style: [styles.dot, index === currentStep && themedStyles.dotActive] }, index))) }), (0, jsx_runtime_1.jsx)(TouchableOpacity, { style: [styles.navButton, themedStyles.nextButton], onPress: onNext, children: (0, jsx_runtime_1.jsx)(Text, { style: styles.nextButtonText, children: isLastStep ? 'Done' : 'Next' }) })] })] }));
42
+ });
43
+ const styles = StyleSheet.create({
44
+ container: {
45
+ position: 'absolute',
46
+ width: 320,
47
+ borderRadius: 12,
48
+ shadowColor: '#000',
49
+ shadowOffset: { width: 0, height: 4 },
50
+ shadowOpacity: 0.15,
51
+ shadowRadius: 12,
52
+ elevation: 8,
53
+ },
54
+ header: {
55
+ flexDirection: 'row',
56
+ justifyContent: 'space-between',
57
+ alignItems: 'center',
58
+ paddingHorizontal: 16,
59
+ paddingTop: 16,
60
+ paddingBottom: 12,
61
+ borderBottomWidth: 1,
62
+ borderBottomColor: '#e5e7eb',
63
+ },
64
+ stepBadge: {
65
+ paddingHorizontal: 10,
66
+ paddingVertical: 4,
67
+ borderRadius: 6,
68
+ },
69
+ stepBadgeText: {
70
+ color: '#ffffff',
71
+ fontSize: 12,
72
+ fontWeight: '600',
73
+ },
74
+ closeButton: {
75
+ padding: 4,
76
+ },
77
+ closeButtonText: {
78
+ fontSize: 24,
79
+ lineHeight: 24,
80
+ },
81
+ body: {
82
+ padding: 16,
83
+ },
84
+ title: {
85
+ fontSize: 18,
86
+ fontWeight: '600',
87
+ marginBottom: 8,
88
+ },
89
+ content: {
90
+ fontSize: 14,
91
+ lineHeight: 20,
92
+ },
93
+ footer: {
94
+ flexDirection: 'row',
95
+ justifyContent: 'space-between',
96
+ alignItems: 'center',
97
+ paddingHorizontal: 16,
98
+ paddingBottom: 16,
99
+ paddingTop: 8,
100
+ },
101
+ navButton: {
102
+ paddingHorizontal: 16,
103
+ paddingVertical: 10,
104
+ borderRadius: 8,
105
+ minWidth: 80,
106
+ alignItems: 'center',
107
+ },
108
+ prevButton: {
109
+ backgroundColor: '#f3f4f6',
110
+ },
111
+ prevButtonText: {
112
+ fontSize: 14,
113
+ fontWeight: '500',
114
+ color: '#1f2937',
115
+ },
116
+ nextButtonText: {
117
+ fontSize: 14,
118
+ fontWeight: '500',
119
+ color: '#ffffff',
120
+ },
121
+ buttonDisabled: {
122
+ opacity: 0.5,
123
+ },
124
+ buttonTextDisabled: {
125
+ color: '#9ca3af',
126
+ },
127
+ dots: {
128
+ flexDirection: 'row',
129
+ gap: 6,
130
+ },
131
+ dot: {
132
+ width: 8,
133
+ height: 8,
134
+ borderRadius: 4,
135
+ backgroundColor: '#d1d5db',
136
+ },
137
+ });
138
+ //# sourceMappingURL=tour-tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tour-tooltip.js","sourceRoot":"","sources":["../../../src/react-native-platform/components/tour-tooltip.tsx"],"names":[],"mappings":";;;;AAAA,iCAA6E;AAI7E,MAAM,EAAC,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAC,GAAG,OAAO,CAAC,cAAc,CAAkC,CAAC;AAO/F,QAAA,WAAW,GAAG,IAAA,kBAAU,EAAC,S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Q,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,CAAC;KAChB;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;KACf;IACD,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,EAAE;QACrB,aAAa,EAAE,EAAE;QACjB,UAAU,EAAE,CAAC;KACd;IACD,SAAS,EAAE;QACT,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,EAAE;QACnB,YAAY,EAAE,CAAC;QACf,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,QAAQ;KACrB;IACD,UAAU,EAAE;QACV,eAAe,EAAE,SAAS;KAC3B;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,SAAS;KACjB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,SAAS;KACjB;IACD,cAAc,EAAE;QACd,OAAO,EAAE,GAAG;KACb;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,SAAS;KACjB;IACD,IAAI,EAAE;QACJ,aAAa,EAAE,KAAK;QACpB,GAAG,EAAE,CAAC;KACP;IACD,GAAG,EAAE;QACH,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,YAAY,EAAE,CAAC;QACf,eAAe,EAAE,SAAS;KAC3B;CACF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export { useTourTarget } from './use-tour-target';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTourTarget = void 0;
4
+ var use_tour_target_1 = require("./use-tour-target");
5
+ Object.defineProperty(exports, "useTourTarget", { enumerable: true, get: function () { return use_tour_target_1.useTourTarget; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react-native-platform/hooks/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAxC,gHAAA,aAAa,OAAA"}
@@ -0,0 +1,2 @@
1
+ import { type RefObject } from 'react';
2
+ export declare function useTourTarget<T = unknown>(id: string): RefObject<T | undefined>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTourTarget = useTourTarget;
4
+ const react_1 = require("react");
5
+ const target_registry_1 = require("../target-registry");
6
+ function useTourTarget(id) {
7
+ const ref = (0, react_1.useRef)(undefined);
8
+ (0, react_1.useEffect)(() => {
9
+ target_registry_1.targetRegistry.register(id, ref);
10
+ return () => {
11
+ target_registry_1.targetRegistry.unregister(id);
12
+ };
13
+ }, [id]);
14
+ return ref;
15
+ }
16
+ //# sourceMappingURL=use-tour-target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-tour-target.js","sourceRoot":"","sources":["../../../src/react-native-platform/hooks/use-tour-target.ts"],"names":[],"mappings":";;AAuBA,sCAYC;AAnCD,iCAAwD;AACxD,wDAAkD;AAsBlD,SAAgB,aAAa,CAAc,EAAU;IACnD,MAAM,GAAG,GAAG,IAAA,cAAM,EAAgB,SAAS,CAAC,CAAC;IAE7C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,gCAAc,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAyB,CAAC,CAAC;QAEvD,OAAO,GAAS,EAAE;YAChB,gCAAc,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { TourProvider } from './tour-provider';
2
+ export type { TourProviderProps } from './types/tour-provider.props.type';
3
+ export { TourOverlay } from './components/tour-overlay';
4
+ export { TourTooltip } from './components/tour-tooltip';
5
+ export { useTourTarget } from './hooks';
6
+ export { nativePlatformAdapter } from './platform-adapter';
7
+ export { targetRegistry } from './target-registry';
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.targetRegistry = exports.nativePlatformAdapter = exports.useTourTarget = exports.TourTooltip = exports.TourOverlay = exports.TourProvider = void 0;
4
+ var tour_provider_1 = require("./tour-provider");
5
+ Object.defineProperty(exports, "TourProvider", { enumerable: true, get: function () { return tour_provider_1.TourProvider; } });
6
+ var tour_overlay_1 = require("./components/tour-overlay");
7
+ Object.defineProperty(exports, "TourOverlay", { enumerable: true, get: function () { return tour_overlay_1.TourOverlay; } });
8
+ var tour_tooltip_1 = require("./components/tour-tooltip");
9
+ Object.defineProperty(exports, "TourTooltip", { enumerable: true, get: function () { return tour_tooltip_1.TourTooltip; } });
10
+ var hooks_1 = require("./hooks");
11
+ Object.defineProperty(exports, "useTourTarget", { enumerable: true, get: function () { return hooks_1.useTourTarget; } });
12
+ var platform_adapter_1 = require("./platform-adapter");
13
+ Object.defineProperty(exports, "nativePlatformAdapter", { enumerable: true, get: function () { return platform_adapter_1.nativePlatformAdapter; } });
14
+ var target_registry_1 = require("./target-registry");
15
+ Object.defineProperty(exports, "targetRegistry", { enumerable: true, get: function () { return target_registry_1.targetRegistry; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react-native-platform/index.ts"],"names":[],"mappings":";;;AAEA,iDAA6C;AAArC,6GAAA,YAAY,OAAA;AAGpB,0DAAsD;AAA9C,2GAAA,WAAW,OAAA;AAEnB,0DAAsD;AAA9C,2GAAA,WAAW,OAAA;AAInB,iCAAsC;AAA9B,sGAAA,aAAa,OAAA;AAIrB,uDAAyD;AAAjD,yHAAA,qBAAqB,OAAA;AAE7B,qDAAiD;AAAzC,iHAAA,cAAc,OAAA"}
@@ -0,0 +1,2 @@
1
+ import { type PlatformAdapter } from '../shared/index.js';
2
+ export declare const nativePlatformAdapter: PlatformAdapter;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nativePlatformAdapter = void 0;
4
+ const target_registry_1 = require("./target-registry");
5
+ function resolveTarget(target) {
6
+ if (typeof target === 'string') {
7
+ return target_registry_1.targetRegistry.get(target);
8
+ }
9
+ return target;
10
+ }
11
+ async function measureNativeElement(ref) {
12
+ return new Promise((resolve) => {
13
+ const component = ref.current;
14
+ if (!component) {
15
+ resolve(undefined);
16
+ return;
17
+ }
18
+ const measureable = component;
19
+ if (typeof measureable.measure !== 'function') {
20
+ resolve(undefined);
21
+ return;
22
+ }
23
+ measureable.measure((_x, _y, width, height, pageX, pageY) => {
24
+ resolve({
25
+ top: pageY,
26
+ left: pageX,
27
+ width,
28
+ height,
29
+ bottom: pageY + height,
30
+ right: pageX + width,
31
+ });
32
+ });
33
+ });
34
+ }
35
+ exports.nativePlatformAdapter = {
36
+ async measureElement(target) {
37
+ const ref = resolveTarget(target);
38
+ if (!ref) {
39
+ return undefined;
40
+ }
41
+ return measureNativeElement(ref);
42
+ },
43
+ measureTooltip() {
44
+ return { width: 0, height: 0 };
45
+ },
46
+ getViewportDimensions() {
47
+ const { Dimensions } = require('react-native');
48
+ const { width, height } = Dimensions.get('window');
49
+ return { width, height };
50
+ },
51
+ async scrollToElement() {
52
+ await Promise.resolve();
53
+ },
54
+ subscribeToKeyboard(handlers) {
55
+ const { BackHandler, Platform } = require('react-native');
56
+ if (Platform.OS === 'android') {
57
+ const backHandler = () => {
58
+ handlers.onEscape();
59
+ return true;
60
+ };
61
+ const subscription = BackHandler.addEventListener('hardwareBackPress', backHandler);
62
+ return () => {
63
+ subscription.remove();
64
+ };
65
+ }
66
+ return () => {
67
+ };
68
+ },
69
+ subscribeToLayout(callback) {
70
+ const { Dimensions } = require('react-native');
71
+ const subscription = Dimensions.addEventListener('change', callback);
72
+ return () => {
73
+ subscription.remove();
74
+ };
75
+ },
76
+ scheduleFrame(callback) {
77
+ return requestAnimationFrame(callback);
78
+ },
79
+ cancelFrame(id) {
80
+ cancelAnimationFrame(id);
81
+ },
82
+ findElement(target) {
83
+ const ref = resolveTarget(target);
84
+ return ref?.current ?? undefined;
85
+ },
86
+ };
87
+ //# sourceMappingURL=platform-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-adapter.js","sourceRoot":"","sources":["../../src/react-native-platform/platform-adapter.ts"],"names":[],"mappings":";;;AAEA,uDAAiD;AAMjD,SAAS,aAAa,CAAC,MAAkB;IACvC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,gCAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAMD,KAAK,UAAU,oBAAoB,CAAC,GAAuB;IACzD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,CAAC,SAAS,CAAC,CAAC;YACnB,OAAO;QACT,CAAC;QASD,MAAM,WAAW,GAAG,SAAmC,CAAC;QACxD,IAAI,OAAO,WAAW,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;YAC9C,OAAO,CAAC,SAAS,CAAC,CAAC;YACnB,OAAO;QACT,CAAC;QAED,WAAW,CAAC,OAAO,CAAC,CAAC,EAAU,EAAE,EAAU,EAAE,KAAa,EAAE,MAAc,EAAE,KAAa,EAAE,KAAa,EAAE,EAAE;YAC1G,OAAO,CAAC;gBACN,GAAG,EAAE,KAAK;gBACV,IAAI,EAAE,KAAK;gBACX,KAAK;gBACL,MAAM;gBACN,MAAM,EAAE,KAAK,GAAG,MAAM;gBACtB,KAAK,EAAE,KAAK,GAAG,KAAK;aACrB,CAAC,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ED,iBAAiB,CAAC,QAAoB;QACpC,MAAM,EAAC,UAAU,EAAC,GAAG,OAAO,CAAC,cAAc,CAAkC,CAAC;QAE9E,MAAM,YAAY,GAAG,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAErE,OAAO,GAAS,EAAE;YAChB,YAAY,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,QAAoB;QAChC,OAAO,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;IAED,WAAW,CAAC,EAAU;QACpB,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;IAED,WAAW,CAAC,MAAkB;QAC5B,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;QAClC,OAAO,GAAG,EAAE,OAAO,IAAI,SAAS,CAAC;IACnC,CAAC;CACF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type RefObject } from 'react';
2
+ declare class TargetRegistry {
3
+ private readonly targets;
4
+ register(id: string, ref: RefObject<unknown>): void;
5
+ unregister(id: string): void;
6
+ get(id: string): RefObject<unknown> | undefined;
7
+ clear(): void;
8
+ }
9
+ export declare const targetRegistry: TargetRegistry;
10
+ export {};
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.targetRegistry = void 0;
4
+ class TargetRegistry {
5
+ targets = new Map();
6
+ register(id, ref) {
7
+ this.targets.set(id, ref);
8
+ }
9
+ unregister(id) {
10
+ this.targets.delete(id);
11
+ }
12
+ get(id) {
13
+ return this.targets.get(id);
14
+ }
15
+ clear() {
16
+ this.targets.clear();
17
+ }
18
+ }
19
+ exports.targetRegistry = new TargetRegistry();
20
+ //# sourceMappingURL=target-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target-registry.js","sourceRoot":"","sources":["../../src/react-native-platform/target-registry.ts"],"names":[],"mappings":";;;AAMA,MAAM,cAAc;IACD,OAAO,GAAG,IAAI,GAAG,EAA8B,CAAC;IAOjE,QAAQ,CAAC,EAAU,EAAE,GAAuB;QAC1C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IAC5B,CAAC;IAMD,UAAU,CAAC,EAAU;QACnB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC;IAOD,GAAG,CAAC,EAAU;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC9B,CAAC;IAKD,KAAK;QACH,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF;AAMY,QAAA,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type JSX } from 'react';
2
+ import { TourProviderProps } from './types/tour-provider.props.type';
3
+ export declare function TourProvider({ children, TooltipComponent, OverlayComponent, onTourEnd, theme, platform, }: TourProviderProps): JSX.Element;