mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Chore/v2/onboarding flow cleanup (#5065)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Desktop Override: Onboarding Configuration
|
||||
*
|
||||
* This version modifies the onboarding config for the desktop app:
|
||||
* - Sets isDesktopApp to true in the default runtime state
|
||||
* - This causes desktop-install step to be skipped
|
||||
*
|
||||
* All other step definitions and logic remain the same.
|
||||
*/
|
||||
|
||||
// Re-export everything from core
|
||||
export {
|
||||
ONBOARDING_STEPS,
|
||||
getStepById,
|
||||
getStepIndex,
|
||||
} from '@core/components/onboarding/orchestrator/onboardingConfig';
|
||||
|
||||
export type {
|
||||
OnboardingStepId,
|
||||
OnboardingStepType,
|
||||
OnboardingStep,
|
||||
OnboardingRuntimeState,
|
||||
OnboardingConditionContext,
|
||||
} from '@core/components/onboarding/orchestrator/onboardingConfig';
|
||||
|
||||
// Import and override the default runtime state
|
||||
import { DEFAULT_RUNTIME_STATE as CORE_DEFAULT_RUNTIME_STATE } from '@core/components/onboarding/orchestrator/onboardingConfig';
|
||||
import type { OnboardingRuntimeState } from '@core/components/onboarding/orchestrator/onboardingConfig';
|
||||
|
||||
/**
|
||||
* Desktop default runtime state
|
||||
* Sets isDesktopApp to true so desktop-install step is skipped
|
||||
*/
|
||||
export const DEFAULT_RUNTIME_STATE: OnboardingRuntimeState = {
|
||||
...CORE_DEFAULT_RUNTIME_STATE,
|
||||
isDesktopApp: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user