@robertlinde/react-tour-kit 0.5.6 → 0.5.9
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/react-native-platform/components/index.js +2 -7
- package/dist/react-native-platform/components/index.js.map +1 -1
- package/dist/react-native-platform/components/tour-overlay.js +9 -12
- package/dist/react-native-platform/components/tour-overlay.js.map +1 -1
- package/dist/react-native-platform/components/tour-tooltip.js +6 -9
- package/dist/react-native-platform/components/tour-tooltip.js.map +1 -1
- package/dist/react-native-platform/hooks/index.js +1 -5
- package/dist/react-native-platform/hooks/index.js.map +1 -1
- package/dist/react-native-platform/hooks/use-tour-target.js +7 -10
- package/dist/react-native-platform/hooks/use-tour-target.js.map +1 -1
- package/dist/react-native-platform/index.js +6 -15
- package/dist/react-native-platform/index.js.map +1 -1
- package/dist/react-native-platform/platform-adapter.js +3 -6
- package/dist/react-native-platform/platform-adapter.js.map +1 -1
- package/dist/react-native-platform/target-registry.js +1 -4
- package/dist/react-native-platform/target-registry.js.map +1 -1
- package/dist/react-native-platform/tour-provider.js +33 -36
- package/dist/react-native-platform/tour-provider.js.map +1 -1
- package/dist/react-native-platform/types/tour-provider.props.type.d.ts +1 -1
- package/dist/react-native-platform/types/tour-provider.props.type.js +1 -2
- package/dist/react-native.js +6 -18
- package/dist/react-native.js.map +1 -1
- package/dist/react-platform/components/index.js +2 -7
- package/dist/react-platform/components/index.js.map +1 -1
- package/dist/react-platform/components/tour-overlay.js +5 -8
- package/dist/react-platform/components/tour-overlay.js.map +1 -1
- package/dist/react-platform/components/tour-tooltip.js +7 -10
- package/dist/react-platform/components/tour-tooltip.js.map +1 -1
- package/dist/react-platform/index.js +5 -13
- package/dist/react-platform/index.js.map +1 -1
- package/dist/react-platform/platform-adapter.js +5 -8
- package/dist/react-platform/platform-adapter.js.map +1 -1
- package/dist/react-platform/tour-provider.js +37 -40
- package/dist/react-platform/tour-provider.js.map +1 -1
- package/dist/react-platform/types/tour-provider.props.type.d.ts +1 -1
- package/dist/react-platform/types/tour-provider.props.type.js +1 -2
- package/dist/react-platform/utils/find-visible-element.util.js +1 -4
- package/dist/react-platform/utils/find-visible-element.util.js.map +1 -1
- package/dist/react-platform/utils/index.js +1 -5
- package/dist/react-platform/utils/index.js.map +1 -1
- package/dist/react.js +6 -17
- package/dist/react.js.map +1 -1
- package/dist/shared/context/index.js +1 -6
- package/dist/shared/context/index.js.map +1 -1
- package/dist/shared/context/tour-context.js +3 -6
- package/dist/shared/context/tour-context.js.map +1 -1
- package/dist/shared/hooks/index.js +1 -5
- package/dist/shared/hooks/index.js.map +1 -1
- package/dist/shared/hooks/use-tour.hook.js +4 -7
- package/dist/shared/hooks/use-tour.hook.js.map +1 -1
- package/dist/shared/index.js +4 -13
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/types/index.js +1 -6
- package/dist/shared/types/index.js.map +1 -1
- package/dist/shared/types/platform-adapter.type.js +1 -2
- package/dist/shared/types/rect.type.js +1 -2
- package/dist/shared/types/tour-context.type.js +1 -2
- package/dist/shared/types/tour-i18n.type.js +1 -2
- package/dist/shared/types/tour-overlay-props.type.js +1 -2
- package/dist/shared/types/tour-step.type.js +1 -2
- package/dist/shared/types/tour-theme.type.js +4 -8
- package/dist/shared/types/tour-theme.type.js.map +1 -1
- package/dist/shared/types/tour-tooltip-props.type.js +1 -2
- package/dist/shared/utils/calculate-tooltip-position.util.js +1 -4
- package/dist/shared/utils/calculate-tooltip-position.util.js.map +1 -1
- package/dist/shared/utils/index.js +1 -5
- package/dist/shared/utils/index.js.map +1 -1
- package/package.json +8 -7
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultTheme = void 0;
|
|
4
|
-
exports.resolveTheme = resolveTheme;
|
|
5
|
-
exports.defaultTheme = {
|
|
1
|
+
export const defaultTheme = {
|
|
6
2
|
primaryColor: '#3b82f6',
|
|
7
3
|
tooltipBackground: '#ffffff',
|
|
8
4
|
titleColor: '#1f2937',
|
|
9
5
|
contentColor: '#4b5563',
|
|
10
6
|
overlayColor: 'rgba(0, 0, 0, 0.5)',
|
|
11
7
|
};
|
|
12
|
-
function resolveTheme(theme) {
|
|
8
|
+
export function resolveTheme(theme) {
|
|
13
9
|
if (!theme) {
|
|
14
|
-
return
|
|
10
|
+
return defaultTheme;
|
|
15
11
|
}
|
|
16
12
|
return {
|
|
17
|
-
...
|
|
13
|
+
...defaultTheme,
|
|
18
14
|
...theme,
|
|
19
15
|
};
|
|
20
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tour-theme.type.js","sourceRoot":"","sources":["../../../src/shared/types/tour-theme.type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tour-theme.type.js","sourceRoot":"","sources":["../../../src/shared/types/tour-theme.type.ts"],"names":[],"mappings":"AAsCA,MAAM,CAAC,MAAM,YAAY,GAAwB;IAC/C,YAAY,EAAE,SAAS;IACvB,iBAAiB,EAAE,SAAS;IAC5B,UAAU,EAAE,SAAS;IACrB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,oBAAoB;CACnC,CAAC;AAKF,MAAM,UAAU,YAAY,CAAC,KAAiB;IAC5C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,OAAO;QACL,GAAG,YAAY;QACf,GAAG,KAAK;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateTooltipPosition = calculateTooltipPosition;
|
|
4
1
|
const tooltipWidthDesktop = 400;
|
|
5
2
|
const tooltipWidthMobile = 320;
|
|
6
3
|
const mobileBreakpoint = 640;
|
|
7
4
|
const defaultTooltipHeight = 200;
|
|
8
5
|
const tooltipPadding = 16;
|
|
9
|
-
function calculateTooltipPosition(targetRect, placement, tooltipDimensions, viewportDimensions) {
|
|
6
|
+
export function calculateTooltipPosition(targetRect, placement, tooltipDimensions, viewportDimensions) {
|
|
10
7
|
const viewportWidth = viewportDimensions.width;
|
|
11
8
|
const viewportHeight = viewportDimensions.height;
|
|
12
9
|
const isMobile = viewportWidth < mobileBreakpoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculate-tooltip-position.util.js","sourceRoot":"","sources":["../../../src/shared/utils/calculate-tooltip-position.util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calculate-tooltip-position.util.js","sourceRoot":"","sources":["../../../src/shared/utils/calculate-tooltip-position.util.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,cAAc,GAAG,EAAE,CAAC;AAiB1B,MAAM,UAAU,wBAAwB,CACtC,UAAgB,EAChB,SAA8C,EAC9C,iBAAoC,EACpC,kBAAsC;IAEtC,MAAM,aAAa,GAAG,kBAAkB,CAAC,KAAK,CAAC;IAC/C,MAAM,cAAc,GAAG,kBAAkB,CAAC,MAAM,CAAC;IACjD,MAAM,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;IAClD,MAAM,YAAY,GAAG,QAAQ;QAC3B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,aAAa,GAAG,cAAc,GAAG,CAAC,CAAC;QAClE,CAAC,CAAC,mBAAmB,CAAC;IACxB,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC;IAC1F,MAAM,aAAa,GAAG,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAA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,CAAC;IACvD,CAAC;IAED,IAAI,GAAG,GAAG,cAAc,EAAE,CAAC;QACzB,GAAG,GAAG,UAAU,CAAC,MAAM,GAAG,cAAc,CAAC;IAC3C,CAAC;IAED,IAAI,GAAG,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,EAAE,CAAC;QAC1D,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,aAAa,GAAG,cAAc,CAAC;IACxD,CAAC;IAED,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateTooltipPosition = void 0;
|
|
4
|
-
var calculate_tooltip_position_util_1 = require("./calculate-tooltip-position.util");
|
|
5
|
-
Object.defineProperty(exports, "calculateTooltipPosition", { enumerable: true, get: function () { return calculate_tooltip_position_util_1.calculateTooltipPosition; } });
|
|
1
|
+
export { calculateTooltipPosition } from './calculate-tooltip-position.util';
|
|
6
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,mCAAmC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robertlinde/react-tour-kit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Cross-platform guided tour library for React and React Native. Build interactive onboarding experiences with customizable tooltips, smart positioning, cross-page navigation, and async step actions. Fully themeable with TypeScript support.",
|
|
5
6
|
"author": "Robert Linde",
|
|
6
7
|
"license": "MIT",
|
|
@@ -59,10 +60,10 @@
|
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@commitlint/cli": "20.
|
|
63
|
-
"@commitlint/config-conventional": "20.
|
|
63
|
+
"@commitlint/cli": "20.5.0",
|
|
64
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
64
65
|
"@estruyf/github-actions-reporter": "1.11.0",
|
|
65
|
-
"@playwright/test": "1.
|
|
66
|
+
"@playwright/test": "1.59.1",
|
|
66
67
|
"@types/react": "19.2.14",
|
|
67
68
|
"@types/react-dom": "19.2.3",
|
|
68
69
|
"@types/react-native": "0.73.0",
|
|
@@ -71,8 +72,8 @@
|
|
|
71
72
|
"prettier": "3.8.1",
|
|
72
73
|
"react": "19.2.4",
|
|
73
74
|
"react-dom": "19.2.4",
|
|
74
|
-
"typescript": "
|
|
75
|
-
"xo": "
|
|
75
|
+
"typescript": "6.0.2",
|
|
76
|
+
"xo": "2.0.2"
|
|
76
77
|
},
|
|
77
78
|
"keywords": [
|
|
78
79
|
"react",
|
|
@@ -87,6 +88,6 @@
|
|
|
87
88
|
"product-tour"
|
|
88
89
|
],
|
|
89
90
|
"engines": {
|
|
90
|
-
"node": "
|
|
91
|
+
"node": ">=20.0.0"
|
|
91
92
|
}
|
|
92
93
|
}
|