data-primals-engine 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,8 @@ export const UIProvider = ({ children }) => {
11
11
  const [isTourOpen, setIsTourOpen] = useState(false);
12
12
  const [allTourSteps, setAllTourSteps] = useState({});
13
13
 
14
+ const [chartToAdd, setChartToAdd] = useState(null);
15
+
14
16
  const [currentTour, setCurrentTour] = useLocalStorage("spotlight-tour", null);
15
17
  // This is the single source of truth for tours that have been launched.
16
18
  // It correctly reads from localStorage on initial load and persists any changes.
@@ -36,14 +38,15 @@ export const UIProvider = ({ children }) => {
36
38
  launchedTours, setLaunchedTours, addLaunchedTour,
37
39
  currentTour, setCurrentTour,
38
40
  isTourOpen, setIsTourOpen, setAllTourSteps, allTourSteps,
39
- tourStepIndex, setTourStepIndex
41
+ tourStepIndex, setTourStepIndex, chartToAdd, setChartToAdd
40
42
  }), [isLocked,
41
43
  setLocked,
42
44
  currentTourSteps, setCurrentTourSteps,
43
45
  launchedTours,setLaunchedTours,
44
46
  currentTour, setCurrentTour,
45
47
  isTourOpen, setIsTourOpen, setAllTourSteps, allTourSteps,
46
- tourStepIndex, setTourStepIndex, addLaunchedTour]);
48
+ tourStepIndex, setTourStepIndex, addLaunchedTour,
49
+ chartToAdd, setChartToAdd]);
47
50
 
48
51
  return (
49
52
  <UIContext.Provider value={contextValue}>