impact-ui 3.7.26-alpha.11 → 3.7.26-alpha.13
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/KeyboardShortCuts/KeyboardShortcuts.styles.scss +1 -0
- package/src/components/KeyboardShortCuts/index.js +4 -0
- package/src/components/KeyboardShortCuts/tutorial.js +0 -26
- package/src/components/TableOld/AgGridHeader.js +2 -0
package/package.json
CHANGED
|
@@ -190,6 +190,10 @@ export const KeyboardShortcuts = ({
|
|
|
190
190
|
</>
|
|
191
191
|
)}
|
|
192
192
|
|
|
193
|
+
{showTutorialModal && (
|
|
194
|
+
<div aria-hidden="true" className="tutorial-overlay"></div>
|
|
195
|
+
)}
|
|
196
|
+
|
|
193
197
|
{showTutorialModal && (
|
|
194
198
|
<TutorialModal
|
|
195
199
|
setShowTutorialModal={setShowTutorialModal}
|
|
@@ -80,8 +80,6 @@ export const TutorialModal = ({
|
|
|
80
80
|
const [tutorialStep, setTutorialStep] = useState(0);
|
|
81
81
|
const step = tutorialSteps[tutorialStep];
|
|
82
82
|
const [showLottie, setShowLottie] = useState(false);
|
|
83
|
-
const [showOverlay, setShowOverlay] = useState(true);
|
|
84
|
-
const overlayTimerRef = useRef(null);
|
|
85
83
|
const modalRef = useRef(null);
|
|
86
84
|
const [step2Position, setStep2Position] = useState(null);
|
|
87
85
|
|
|
@@ -106,14 +104,6 @@ export const TutorialModal = ({
|
|
|
106
104
|
onSkipClick?.();
|
|
107
105
|
};
|
|
108
106
|
|
|
109
|
-
// On mount, fade out overlay after 1 second
|
|
110
|
-
useEffect(() => {
|
|
111
|
-
overlayTimerRef.current = setTimeout(() => {
|
|
112
|
-
setShowOverlay(false);
|
|
113
|
-
}, 1000);
|
|
114
|
-
return () => clearTimeout(overlayTimerRef.current);
|
|
115
|
-
}, []);
|
|
116
|
-
|
|
117
107
|
useShortcut("mod+b", (e) => {
|
|
118
108
|
ShortcutManager.getInstance().trigger('sidebar-toggle-mod-b', e);
|
|
119
109
|
if (tutorialStep === 0) {
|
|
@@ -122,12 +112,6 @@ export const TutorialModal = ({
|
|
|
122
112
|
setTimeout(() => {
|
|
123
113
|
setTutorialStep(1);
|
|
124
114
|
setShowLottie(false);
|
|
125
|
-
// Re-show overlay after step transition, then fade out after 1s
|
|
126
|
-
clearTimeout(overlayTimerRef.current);
|
|
127
|
-
setShowOverlay(true);
|
|
128
|
-
overlayTimerRef.current = setTimeout(() => {
|
|
129
|
-
setShowOverlay(false);
|
|
130
|
-
}, 1000);
|
|
131
115
|
}, 1000);
|
|
132
116
|
}, {
|
|
133
117
|
id: "tutorial-step-0-mod-b",
|
|
@@ -143,12 +127,6 @@ export const TutorialModal = ({
|
|
|
143
127
|
setTimeout(() => {
|
|
144
128
|
setTutorialStep(2);
|
|
145
129
|
setShowLottie(false);
|
|
146
|
-
// Re-show overlay after step transition, then fade out after 1s
|
|
147
|
-
clearTimeout(overlayTimerRef.current);
|
|
148
|
-
setShowOverlay(true);
|
|
149
|
-
overlayTimerRef.current = setTimeout(() => {
|
|
150
|
-
setShowOverlay(false);
|
|
151
|
-
}, 1000);
|
|
152
130
|
}, 1000);
|
|
153
131
|
},
|
|
154
132
|
{
|
|
@@ -175,10 +153,6 @@ export const TutorialModal = ({
|
|
|
175
153
|
|
|
176
154
|
return (
|
|
177
155
|
<>
|
|
178
|
-
<div
|
|
179
|
-
aria-hidden="true"
|
|
180
|
-
className={`tutorial-overlay${showOverlay ? "" : " overlay--hidden"}`}
|
|
181
|
-
></div>
|
|
182
156
|
<div
|
|
183
157
|
ref={modalRef}
|
|
184
158
|
className={`tutorial-modal-wrapper tutorial-modal--step-${tutorialStep} tutorial-modal--arrow-${step.arrowPosition}${
|