@korsolutions/guidon 1.0.16 → 1.0.18

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 (85) hide show
  1. package/README.md +72 -167
  2. package/dist/commonjs/components/GuidonOverlay.js +9 -20
  3. package/dist/commonjs/components/GuidonOverlay.js.map +1 -1
  4. package/dist/commonjs/components/GuidonProvider.js +11 -77
  5. package/dist/commonjs/components/GuidonProvider.js.map +1 -1
  6. package/dist/commonjs/components/GuidonTooltip.js +48 -55
  7. package/dist/commonjs/components/GuidonTooltip.js.map +1 -1
  8. package/dist/commonjs/components/index.js +2 -2
  9. package/dist/commonjs/components/index.js.map +1 -1
  10. package/dist/commonjs/hooks/useGuidonRef.js +38 -7
  11. package/dist/commonjs/hooks/useGuidonRef.js.map +1 -1
  12. package/dist/commonjs/index.js.map +1 -1
  13. package/dist/commonjs/store.js +27 -70
  14. package/dist/commonjs/store.js.map +1 -1
  15. package/dist/module/components/GuidonOverlay.js +14 -25
  16. package/dist/module/components/GuidonOverlay.js.map +1 -1
  17. package/dist/module/components/GuidonProvider.js +12 -78
  18. package/dist/module/components/GuidonProvider.js.map +1 -1
  19. package/dist/module/components/GuidonTooltip.js +53 -60
  20. package/dist/module/components/GuidonTooltip.js.map +1 -1
  21. package/dist/module/components/index.js +2 -2
  22. package/dist/module/components/index.js.map +1 -1
  23. package/dist/module/hooks/useGuidonRef.js +38 -7
  24. package/dist/module/hooks/useGuidonRef.js.map +1 -1
  25. package/dist/module/index.js.map +1 -1
  26. package/dist/module/store.js +27 -70
  27. package/dist/module/store.js.map +1 -1
  28. package/dist/typescript/commonjs/components/GuidonOverlay.d.ts +2 -2
  29. package/dist/typescript/commonjs/components/GuidonOverlay.d.ts.map +1 -1
  30. package/dist/typescript/commonjs/components/GuidonProvider.d.ts +4 -4
  31. package/dist/typescript/commonjs/components/GuidonProvider.d.ts.map +1 -1
  32. package/dist/typescript/commonjs/components/GuidonTarget.d.ts +1 -1
  33. package/dist/typescript/commonjs/components/GuidonTarget.d.ts.map +1 -1
  34. package/dist/typescript/commonjs/components/GuidonTooltip.d.ts +2 -2
  35. package/dist/typescript/commonjs/components/GuidonTooltip.d.ts.map +1 -1
  36. package/dist/typescript/commonjs/components/index.d.ts +4 -4
  37. package/dist/typescript/commonjs/components/index.d.ts.map +1 -1
  38. package/dist/typescript/commonjs/hooks/useGuidonRef.d.ts +1 -0
  39. package/dist/typescript/commonjs/hooks/useGuidonRef.d.ts.map +1 -1
  40. package/dist/typescript/commonjs/index.d.ts +1 -1
  41. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  42. package/dist/typescript/commonjs/store.d.ts +11 -23
  43. package/dist/typescript/commonjs/store.d.ts.map +1 -1
  44. package/dist/typescript/commonjs/types.d.ts +29 -14
  45. package/dist/typescript/commonjs/types.d.ts.map +1 -1
  46. package/dist/typescript/module/components/GuidonOverlay.d.ts +2 -2
  47. package/dist/typescript/module/components/GuidonOverlay.d.ts.map +1 -1
  48. package/dist/typescript/module/components/GuidonProvider.d.ts +4 -4
  49. package/dist/typescript/module/components/GuidonProvider.d.ts.map +1 -1
  50. package/dist/typescript/module/components/GuidonTarget.d.ts +1 -1
  51. package/dist/typescript/module/components/GuidonTarget.d.ts.map +1 -1
  52. package/dist/typescript/module/components/GuidonTooltip.d.ts +2 -2
  53. package/dist/typescript/module/components/GuidonTooltip.d.ts.map +1 -1
  54. package/dist/typescript/module/components/index.d.ts +4 -4
  55. package/dist/typescript/module/components/index.d.ts.map +1 -1
  56. package/dist/typescript/module/hooks/useGuidonRef.d.ts +1 -0
  57. package/dist/typescript/module/hooks/useGuidonRef.d.ts.map +1 -1
  58. package/dist/typescript/module/index.d.ts +1 -1
  59. package/dist/typescript/module/index.d.ts.map +1 -1
  60. package/dist/typescript/module/store.d.ts +11 -23
  61. package/dist/typescript/module/store.d.ts.map +1 -1
  62. package/dist/typescript/module/types.d.ts +29 -14
  63. package/dist/typescript/module/types.d.ts.map +1 -1
  64. package/package.json +1 -1
  65. package/src/components/GuidonOverlay.tsx +28 -29
  66. package/src/components/GuidonProvider.tsx +46 -111
  67. package/src/components/GuidonTooltip.tsx +125 -91
  68. package/src/components/index.ts +4 -4
  69. package/src/hooks/useGuidonRef.ts +67 -9
  70. package/src/index.ts +1 -0
  71. package/src/store.ts +44 -75
  72. package/src/types.ts +30 -14
  73. package/dist/commonjs/babel.config.js +0 -15
  74. package/dist/commonjs/babel.config.js.map +0 -1
  75. package/dist/commonjs/bob.config.js +0 -11
  76. package/dist/commonjs/bob.config.js.map +0 -1
  77. package/dist/commonjs/tsconfig.json +0 -32
  78. package/dist/module/babel.config.js +0 -15
  79. package/dist/module/babel.config.js.map +0 -1
  80. package/dist/module/bob.config.js +0 -11
  81. package/dist/module/bob.config.js.map +0 -1
  82. package/dist/module/tsconfig.json +0 -32
  83. package/src/babel.config.js +0 -18
  84. package/src/bob.config.js +0 -14
  85. package/src/tsconfig.json +0 -32
package/src/store.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  import { create } from "zustand";
2
2
  import { useShallow } from "zustand/react/shallow";
3
- import type { GuidonConfig, GuidonStore, GuidonTours, GuidonToursConfig, GuidonTheme, TargetMeasurements } from "./types";
3
+ import type {
4
+ GuidonConfig,
5
+ GuidonStore,
6
+ GuidonTheme,
7
+ GuidonTours,
8
+ GuidonToursConfig,
9
+ TargetMeasurements,
10
+ } from "./types";
4
11
 
5
12
  const initialState = {
6
13
  tours: {} as GuidonTours,
@@ -21,67 +28,44 @@ const initialState = {
21
28
  export const useGuidonStore = create<GuidonStore>((set, get) => ({
22
29
  ...initialState,
23
30
 
24
- configure: (config: GuidonConfig) => {
25
- const { config: existingConfig } = get();
26
-
27
- // Skip if same config reference (prevents re-renders from resetting)
28
- if (existingConfig === config) {
29
- return;
30
- }
31
-
32
- console.log("[Guidon] configure() called - resetting to step 0");
33
- set({ config, currentStepIndex: 0, isCompleted: false });
34
- },
35
-
36
- configureTours: (config: GuidonToursConfig | GuidonTours) => {
37
- // Support both new GuidonToursConfig format and legacy GuidonTours format
38
- const isNewFormat = 'tours' in config && typeof config.tours === 'object';
39
-
40
- const tours = isNewFormat
41
- ? (config as GuidonToursConfig).tours
42
- : config as GuidonTours;
43
- const globalTheme = isNewFormat
44
- ? (config as GuidonToursConfig).theme
45
- : undefined;
46
- const globalAnimationDuration = isNewFormat
47
- ? (config as GuidonToursConfig).animationDuration
48
- : undefined;
49
-
31
+ configureTours: (config: GuidonToursConfig) => {
50
32
  const { tours: existingTours } = get();
51
33
 
52
34
  // Skip if same tours reference (prevents re-renders from resetting)
53
- if (existingTours === tours) {
35
+ if (existingTours === config.tours) {
54
36
  return;
55
37
  }
56
38
 
57
- console.log("[Guidon] configureTours() called with tours:", Object.keys(tours));
58
- set({ tours, globalTheme, globalAnimationDuration });
39
+ console.log(
40
+ "[Guidon] configureTours() called with tours:",
41
+ Object.keys(config.tours),
42
+ );
43
+ set({
44
+ tours: config.tours,
45
+ globalTheme: config.theme,
46
+ globalAnimationDuration: config.animationDuration,
47
+ });
59
48
  },
60
49
 
61
- start: (tourId?: string) => {
62
- const { tours, config: legacyConfig, globalTheme, globalAnimationDuration } = get();
50
+ start: (tourId: string) => {
51
+ const { tours, globalTheme, globalAnimationDuration } = get();
63
52
 
64
- // If tourId provided, use that tour from the tours collection
65
- let config: GuidonConfig | null = null;
66
- if (tourId) {
67
- const tourConfig = tours[tourId] ?? null;
68
- if (!tourConfig) {
69
- console.log(`[Guidon] start() - tour "${tourId}" not found`);
70
- return;
71
- }
72
- // Merge global theme/duration with tour-specific settings
73
- config = {
74
- ...tourConfig,
75
- theme: { ...globalTheme, ...tourConfig.theme },
76
- animationDuration: tourConfig.animationDuration ?? globalAnimationDuration,
77
- };
78
- } else {
79
- // Fall back to legacy single config
80
- config = legacyConfig;
53
+ const tourConfig = tours[tourId] ?? null;
54
+ if (!tourConfig) {
55
+ console.log(`[Guidon] start() - tour "${tourId}" not found`);
56
+ return;
81
57
  }
82
58
 
59
+ // Merge global theme/duration with tour-specific settings
60
+ const config: GuidonConfig = {
61
+ ...tourConfig,
62
+ theme: { ...globalTheme, ...tourConfig.theme },
63
+ animationDuration:
64
+ tourConfig.animationDuration ?? globalAnimationDuration,
65
+ };
66
+
83
67
  console.log("[Guidon] start() called", {
84
- tourId: tourId ?? "legacy",
68
+ tourId,
85
69
  hasConfig: !!config,
86
70
  stepCount: config?.steps.length ?? 0,
87
71
  });
@@ -100,7 +84,7 @@ export const useGuidonStore = create<GuidonStore>((set, get) => ({
100
84
  activeTourId: tourId ?? null,
101
85
  isActive: true,
102
86
  currentStepIndex: 0,
103
- isCompleted: false
87
+ isCompleted: false,
104
88
  });
105
89
 
106
90
  // Call onStepEnter for the first step
@@ -268,17 +252,8 @@ export const useGuidonStore = create<GuidonStore>((set, get) => ({
268
252
  */
269
253
  export const Guidon = {
270
254
  /**
271
- * Configure a single walkthrough (legacy API)
272
- */
273
- configure: (config: GuidonConfig) => {
274
- useGuidonStore.getState().configure(config);
275
- },
276
-
277
- /**
278
- * Configure multiple named tours.
279
- * Accepts either GuidonToursConfig (with global theme) or legacy GuidonTours format.
255
+ * Configure multiple named tours with optional global theme.
280
256
  * @example
281
- * // New format with global theme
282
257
  * Guidon.configureTours({
283
258
  * theme: { primaryColor: '#007AFF' },
284
259
  * tours: {
@@ -286,24 +261,17 @@ export const Guidon = {
286
261
  * profile: { id: 'profile', steps: [...] },
287
262
  * },
288
263
  * });
289
- *
290
- * // Legacy format (still supported)
291
- * Guidon.configureTours({
292
- * explore: { id: 'explore', steps: [...] },
293
- * profile: { id: 'profile', steps: [...] },
294
- * });
295
264
  */
296
- configureTours: (config: GuidonToursConfig | GuidonTours) => {
265
+ configureTours: (config: GuidonToursConfig) => {
297
266
  useGuidonStore.getState().configureTours(config);
298
267
  },
299
268
 
300
269
  /**
301
- * Start a tour by ID, or the legacy single config if no ID provided
270
+ * Start a tour by ID
302
271
  * @example
303
272
  * Guidon.start('explore'); // Start the 'explore' tour
304
- * Guidon.start(); // Start legacy single config
305
273
  */
306
- start: (tourId?: string) => {
274
+ start: (tourId: string) => {
307
275
  useGuidonStore.getState().start(tourId);
308
276
  },
309
277
 
@@ -371,7 +339,7 @@ export const Guidon = {
371
339
  },
372
340
 
373
341
  /**
374
- * Get the currently active tour ID (null if using legacy single config)
342
+ * Get the currently active tour ID
375
343
  */
376
344
  getActiveTourId: () => {
377
345
  return useGuidonStore.getState().activeTourId;
@@ -439,7 +407,7 @@ export const useTargetMeasurements = (targetId: string) =>
439
407
  useGuidonStore((state: GuidonStore) => state.targetMeasurements[targetId]);
440
408
 
441
409
  /**
442
- * Hook to check if the guidon is waiting for a target element to mount
410
+ * Hook to check if the Guidon is waiting for a target element to mount
443
411
  * Returns null if not active, not waiting, or if it's a floating step
444
412
  */
445
413
  export const useWaitingState = () =>
@@ -450,7 +418,7 @@ export const useWaitingState = () =>
450
418
  const currentStep = state.config.steps[state.currentStepIndex];
451
419
  const targetId = currentStep?.targetId;
452
420
 
453
- // Floating step (no targetId) - not waiting
421
+ // Floating step therefore not waiting
454
422
  if (!targetId) return null;
455
423
 
456
424
  const hasMeasurements = !!state.targetMeasurements[targetId];
@@ -464,7 +432,8 @@ export const useWaitingState = () =>
464
432
  );
465
433
 
466
434
  /**
467
- * Hook to check if the current step is a floating step (no target element)
435
+ * Hook to check if the current step is a floating step,
436
+ * i.e. has no targetId and is centered on device
468
437
  */
469
438
  export const useIsFloatingStep = () =>
470
439
  useGuidonStore((state: GuidonStore) => {
package/src/types.ts CHANGED
@@ -59,6 +59,27 @@ export interface GuidonStep {
59
59
  waitingMessage?: string;
60
60
  /** Timeout in ms before auto-skipping this step (0 = no timeout) */
61
61
  waitTimeout?: number;
62
+ /**
63
+ * Whether to scroll the target element into view when this step becomes active.
64
+ * On web: uses native scrollIntoView()
65
+ * On mobile: requires a registered scroll container
66
+ * @default true
67
+ */
68
+ scrollIntoView?: boolean;
69
+ }
70
+
71
+ /**
72
+ * Scroll behavior configuration
73
+ */
74
+ export interface GuidonScrollOptions {
75
+ /** Scroll behavior: 'smooth' for animated, 'instant' for immediate */
76
+ behavior?: 'smooth' | 'instant';
77
+ /** Vertical alignment of target in viewport */
78
+ block?: 'start' | 'center' | 'end' | 'nearest';
79
+ /** Horizontal alignment of target in viewport */
80
+ inline?: 'start' | 'center' | 'end' | 'nearest';
81
+ /** Extra padding when scrolling (ensures element isn't at edge) */
82
+ padding?: number;
62
83
  }
63
84
 
64
85
  /**
@@ -87,6 +108,8 @@ export interface GuidonTheme {
87
108
  spotlightBorderRadius?: number;
88
109
  /** Padding around the highlighted element */
89
110
  spotlightPadding?: number;
111
+ /** Global scroll options when navigating to steps */
112
+ scrollOptions?: GuidonScrollOptions;
90
113
  }
91
114
 
92
115
  /**
@@ -186,10 +209,8 @@ export interface GuidonTooltipRenderProps {
186
209
  */
187
210
  export interface GuidonProviderProps {
188
211
  children: ReactNode;
189
- /** Configuration for the guidon (optional when using configureTours) */
190
- config?: GuidonConfig;
191
- /** Whether to auto-start when the component mounts */
192
- autoStart?: boolean;
212
+ /** Tour ID to auto-start when the provider mounts */
213
+ autoStart?: string;
193
214
  /** Condition function to determine if guidon should start */
194
215
  shouldStart?: () => boolean | Promise<boolean>;
195
216
  /** Persistence adapter for saving/loading progress */
@@ -279,7 +300,7 @@ export interface GuidonState {
279
300
  globalAnimationDuration?: number;
280
301
  /** ID of the currently active tour */
281
302
  activeTourId: string | null;
282
- /** Currently active guidon config (derived from tours + activeTourId, or legacy single config) */
303
+ /** Currently active guidon config (derived from tours + activeTourId) */
283
304
  config: GuidonConfig | null;
284
305
  /** Whether the guidon is currently active */
285
306
  isActive: boolean;
@@ -303,15 +324,10 @@ export interface GuidonState {
303
324
  * Internal store actions
304
325
  */
305
326
  export interface GuidonActions {
306
- /** Configure a single guidon (legacy API, still supported) */
307
- configure: (config: GuidonConfig) => void;
308
- /**
309
- * Configure multiple named tours.
310
- * Accepts either GuidonToursConfig (with global theme) or legacy GuidonTours format.
311
- */
312
- configureTours: (config: GuidonToursConfig | GuidonTours) => void;
313
- /** Start a tour by ID, or the legacy single config if no ID provided */
314
- start: (tourId?: string) => void;
327
+ /** Configure multiple named tours with global theme support */
328
+ configureTours: (config: GuidonToursConfig) => void;
329
+ /** Start a tour by ID */
330
+ start: (tourId: string) => void;
315
331
  /** Stop the current tour without completing it */
316
332
  stop: () => void;
317
333
  /** Go to the next step */
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (api) {
4
- api.cache(true);
5
- return {
6
- presets: ["module:react-native-builder-bob/babel-preset"],
7
- plugins: [[require.resolve("babel-plugin-module-resolver"), {
8
- root: ["./src"],
9
- alias: {
10
- "@": "./src"
11
- }
12
- }]]
13
- };
14
- };
15
- //# sourceMappingURL=babel.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["module","exports","api","cache","presets","plugins","require","resolve","root","alias"],"sourceRoot":"../../src","sources":["babel.config.js"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG,UAAUC,GAAG,EAAE;EAC9BA,GAAG,CAACC,KAAK,CAAC,IAAI,CAAC;EAEf,OAAO;IACLC,OAAO,EAAE,CAAC,8CAA8C,CAAC;IACzDC,OAAO,EAAE,CACP,CACEC,OAAO,CAACC,OAAO,CAAC,8BAA8B,CAAC,EAC/C;MACEC,IAAI,EAAE,CAAC,OAAO,CAAC;MACfC,KAAK,EAAE;QACL,GAAG,EAAE;MACP;IACF,CAAC,CACF;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = {
4
- source: "src",
5
- output: "dist",
6
- targets: [["module", {
7
- esm: true,
8
- configFile: true
9
- }], "typescript"]
10
- };
11
- //# sourceMappingURL=bob.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["module","exports","source","output","targets","esm","configFile"],"sourceRoot":"../../src","sources":["bob.config.js"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACfC,MAAM,EAAE,KAAK;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,CACP,CACE,QAAQ,EACR;IACEC,GAAG,EAAE,IAAI;IACTC,UAAU,EAAE;EACd,CAAC,CACF,EACD,YAAY;AAEhB,CAAC","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "customConditions": ["dev-source", "react-native", "react-native-strict-api"],
4
- "allowJs": true,
5
- "esModuleInterop": true,
6
- "jsx": "react-native",
7
- "lib": ["DOM", "ESNext"],
8
- "module": "preserve",
9
- "moduleDetection": "force",
10
- "moduleResolution": "bundler",
11
- "noEmit": true,
12
- "resolveJsonModule": true,
13
- "skipLibCheck": true,
14
- "target": "ESNext",
15
- "strict": true,
16
- "verbatimModuleSyntax": true,
17
- "allowUnreachableCode": false,
18
- "allowUnusedLabels": false,
19
- "forceConsistentCasingInFileNames": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noImplicitReturns": true,
22
- "noImplicitUseStrict": false,
23
- "noStrictGenericChecks": false,
24
- "noUncheckedIndexedAccess": true,
25
- "noUnusedLocals": true,
26
- "noUnusedParameters": true,
27
- "paths": {
28
- "@/*": ["./src/*"]
29
- }
30
- },
31
- "exclude": ["node_modules", "dist"]
32
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (api) {
4
- api.cache(true);
5
- return {
6
- presets: ["module:react-native-builder-bob/babel-preset"],
7
- plugins: [[require.resolve("babel-plugin-module-resolver"), {
8
- root: ["./src"],
9
- alias: {
10
- "@": "./src"
11
- }
12
- }]]
13
- };
14
- };
15
- //# sourceMappingURL=babel.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["module","exports","api","cache","presets","plugins","require","resolve","root","alias"],"sourceRoot":"../../src","sources":["babel.config.js"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG,UAAUC,GAAG,EAAE;EAC9BA,GAAG,CAACC,KAAK,CAAC,IAAI,CAAC;EAEf,OAAO;IACLC,OAAO,EAAE,CAAC,8CAA8C,CAAC;IACzDC,OAAO,EAAE,CACP,CACEC,OAAO,CAACC,OAAO,CAAC,8BAA8B,CAAC,EAC/C;MACEC,IAAI,EAAE,CAAC,OAAO,CAAC;MACfC,KAAK,EAAE;QACL,GAAG,EAAE;MACP;IACF,CAAC,CACF;EAEL,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = {
4
- source: "src",
5
- output: "dist",
6
- targets: [["module", {
7
- esm: true,
8
- configFile: true
9
- }], "typescript"]
10
- };
11
- //# sourceMappingURL=bob.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["module","exports","source","output","targets","esm","configFile"],"sourceRoot":"../../src","sources":["bob.config.js"],"mappings":";;AAAAA,MAAM,CAACC,OAAO,GAAG;EACfC,MAAM,EAAE,KAAK;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,CACP,CACE,QAAQ,EACR;IACEC,GAAG,EAAE,IAAI;IACTC,UAAU,EAAE;EACd,CAAC,CACF,EACD,YAAY;AAEhB,CAAC","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "customConditions": ["dev-source", "react-native", "react-native-strict-api"],
4
- "allowJs": true,
5
- "esModuleInterop": true,
6
- "jsx": "react-native",
7
- "lib": ["DOM", "ESNext"],
8
- "module": "preserve",
9
- "moduleDetection": "force",
10
- "moduleResolution": "bundler",
11
- "noEmit": true,
12
- "resolveJsonModule": true,
13
- "skipLibCheck": true,
14
- "target": "ESNext",
15
- "strict": true,
16
- "verbatimModuleSyntax": true,
17
- "allowUnreachableCode": false,
18
- "allowUnusedLabels": false,
19
- "forceConsistentCasingInFileNames": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noImplicitReturns": true,
22
- "noImplicitUseStrict": false,
23
- "noStrictGenericChecks": false,
24
- "noUncheckedIndexedAccess": true,
25
- "noUnusedLocals": true,
26
- "noUnusedParameters": true,
27
- "paths": {
28
- "@/*": ["./src/*"]
29
- }
30
- },
31
- "exclude": ["node_modules", "dist"]
32
- }
@@ -1,18 +0,0 @@
1
- module.exports = function (api) {
2
- api.cache(true);
3
-
4
- return {
5
- presets: ["module:react-native-builder-bob/babel-preset"],
6
- plugins: [
7
- [
8
- require.resolve("babel-plugin-module-resolver"),
9
- {
10
- root: ["./src"],
11
- alias: {
12
- "@": "./src",
13
- },
14
- },
15
- ],
16
- ],
17
- };
18
- };
package/src/bob.config.js DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- source: "src",
3
- output: "dist",
4
- targets: [
5
- [
6
- "module",
7
- {
8
- esm: true,
9
- configFile: true,
10
- },
11
- ],
12
- "typescript",
13
- ],
14
- };
package/src/tsconfig.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "customConditions": ["dev-source", "react-native", "react-native-strict-api"],
4
- "allowJs": true,
5
- "esModuleInterop": true,
6
- "jsx": "react-native",
7
- "lib": ["DOM", "ESNext"],
8
- "module": "preserve",
9
- "moduleDetection": "force",
10
- "moduleResolution": "bundler",
11
- "noEmit": true,
12
- "resolveJsonModule": true,
13
- "skipLibCheck": true,
14
- "target": "ESNext",
15
- "strict": true,
16
- "verbatimModuleSyntax": true,
17
- "allowUnreachableCode": false,
18
- "allowUnusedLabels": false,
19
- "forceConsistentCasingInFileNames": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noImplicitReturns": true,
22
- "noImplicitUseStrict": false,
23
- "noStrictGenericChecks": false,
24
- "noUncheckedIndexedAccess": true,
25
- "noUnusedLocals": true,
26
- "noUnusedParameters": true,
27
- "paths": {
28
- "@/*": ["./src/*"]
29
- }
30
- },
31
- "exclude": ["node_modules", "dist"]
32
- }