@usecrow/ui 0.1.76 → 0.1.77
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.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4745,7 +4745,7 @@ function CrowWidget({
|
|
|
4745
4745
|
const [onboardingChecked, setOnboardingChecked] = React3.useState(false);
|
|
4746
4746
|
const [onboardingPhase, setOnboardingPhase] = React3.useState("intro");
|
|
4747
4747
|
React3.useEffect(() => {
|
|
4748
|
-
if (
|
|
4748
|
+
if (!isLoadingStyles && !onboardingChecked && (forceOnboarding || onboardingEnabled)) {
|
|
4749
4749
|
setIsOnboarding(true);
|
|
4750
4750
|
setOnboardingChecked(true);
|
|
4751
4751
|
}
|
|
@@ -4996,6 +4996,7 @@ function CrowWidget({
|
|
|
4996
4996
|
}
|
|
4997
4997
|
if (prevOnboardingRef.current && !isOnboarding) {
|
|
4998
4998
|
chat.resetMessages();
|
|
4999
|
+
endWorkflow(0);
|
|
4999
5000
|
}
|
|
5000
5001
|
prevOnboardingRef.current = isOnboarding;
|
|
5001
5002
|
}, [isOnboarding]);
|
|
@@ -5369,7 +5370,7 @@ function CrowWidget({
|
|
|
5369
5370
|
onClose: handleCloseConversationList
|
|
5370
5371
|
}
|
|
5371
5372
|
) }),
|
|
5372
|
-
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: activeWorkflow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5373
|
+
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: activeWorkflow && !isOnboarding && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5373
5374
|
WorkflowPanel,
|
|
5374
5375
|
{
|
|
5375
5376
|
workflow: activeWorkflow,
|
|
@@ -5880,7 +5881,7 @@ function CrowCopilot({
|
|
|
5880
5881
|
const [onboardingChecked, setOnboardingChecked] = React3.useState(false);
|
|
5881
5882
|
const [onboardingPhase, setOnboardingPhase] = React3.useState("intro");
|
|
5882
5883
|
React3.useEffect(() => {
|
|
5883
|
-
if (
|
|
5884
|
+
if (!isLoadingStyles && !onboardingChecked && (forceOnboarding || onboardingEnabled)) {
|
|
5884
5885
|
setIsOnboarding(true);
|
|
5885
5886
|
setOnboardingChecked(true);
|
|
5886
5887
|
}
|
|
@@ -6313,6 +6314,7 @@ function CrowCopilot({
|
|
|
6313
6314
|
}
|
|
6314
6315
|
if (prevOnboardingRef.current && !isOnboarding) {
|
|
6315
6316
|
chat.resetMessages();
|
|
6317
|
+
endWorkflow(0);
|
|
6316
6318
|
}
|
|
6317
6319
|
prevOnboardingRef.current = isOnboarding;
|
|
6318
6320
|
}, [isOnboarding]);
|
|
@@ -6915,7 +6917,7 @@ function CrowCopilot({
|
|
|
6915
6917
|
}
|
|
6916
6918
|
)
|
|
6917
6919
|
] }),
|
|
6918
|
-
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: activeWorkflow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6920
|
+
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { children: activeWorkflow && !isOnboarding && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6919
6921
|
WorkflowPanel,
|
|
6920
6922
|
{
|
|
6921
6923
|
workflow: activeWorkflow,
|