@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.js
CHANGED
|
@@ -4718,7 +4718,7 @@ function CrowWidget({
|
|
|
4718
4718
|
const [onboardingChecked, setOnboardingChecked] = useState(false);
|
|
4719
4719
|
const [onboardingPhase, setOnboardingPhase] = useState("intro");
|
|
4720
4720
|
useEffect(() => {
|
|
4721
|
-
if (
|
|
4721
|
+
if (!isLoadingStyles && !onboardingChecked && (forceOnboarding || onboardingEnabled)) {
|
|
4722
4722
|
setIsOnboarding(true);
|
|
4723
4723
|
setOnboardingChecked(true);
|
|
4724
4724
|
}
|
|
@@ -4969,6 +4969,7 @@ function CrowWidget({
|
|
|
4969
4969
|
}
|
|
4970
4970
|
if (prevOnboardingRef.current && !isOnboarding) {
|
|
4971
4971
|
chat.resetMessages();
|
|
4972
|
+
endWorkflow(0);
|
|
4972
4973
|
}
|
|
4973
4974
|
prevOnboardingRef.current = isOnboarding;
|
|
4974
4975
|
}, [isOnboarding]);
|
|
@@ -5342,7 +5343,7 @@ function CrowWidget({
|
|
|
5342
5343
|
onClose: handleCloseConversationList
|
|
5343
5344
|
}
|
|
5344
5345
|
) }),
|
|
5345
|
-
/* @__PURE__ */ jsx(AnimatePresence, { children: activeWorkflow && /* @__PURE__ */ jsx(
|
|
5346
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: activeWorkflow && !isOnboarding && /* @__PURE__ */ jsx(
|
|
5346
5347
|
WorkflowPanel,
|
|
5347
5348
|
{
|
|
5348
5349
|
workflow: activeWorkflow,
|
|
@@ -5853,7 +5854,7 @@ function CrowCopilot({
|
|
|
5853
5854
|
const [onboardingChecked, setOnboardingChecked] = useState(false);
|
|
5854
5855
|
const [onboardingPhase, setOnboardingPhase] = useState("intro");
|
|
5855
5856
|
useEffect(() => {
|
|
5856
|
-
if (
|
|
5857
|
+
if (!isLoadingStyles && !onboardingChecked && (forceOnboarding || onboardingEnabled)) {
|
|
5857
5858
|
setIsOnboarding(true);
|
|
5858
5859
|
setOnboardingChecked(true);
|
|
5859
5860
|
}
|
|
@@ -6286,6 +6287,7 @@ function CrowCopilot({
|
|
|
6286
6287
|
}
|
|
6287
6288
|
if (prevOnboardingRef.current && !isOnboarding) {
|
|
6288
6289
|
chat.resetMessages();
|
|
6290
|
+
endWorkflow(0);
|
|
6289
6291
|
}
|
|
6290
6292
|
prevOnboardingRef.current = isOnboarding;
|
|
6291
6293
|
}, [isOnboarding]);
|
|
@@ -6888,7 +6890,7 @@ function CrowCopilot({
|
|
|
6888
6890
|
}
|
|
6889
6891
|
)
|
|
6890
6892
|
] }),
|
|
6891
|
-
/* @__PURE__ */ jsx(AnimatePresence, { children: activeWorkflow && /* @__PURE__ */ jsx(
|
|
6893
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: activeWorkflow && !isOnboarding && /* @__PURE__ */ jsx(
|
|
6892
6894
|
WorkflowPanel,
|
|
6893
6895
|
{
|
|
6894
6896
|
workflow: activeWorkflow,
|