@swan-admin/swan-web-component 1.0.4 → 1.0.6

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.d.mts CHANGED
@@ -7,7 +7,7 @@ interface Step {
7
7
  isVisible?: boolean;
8
8
  onStepComplete?: (value: any) => Promise<void> | void;
9
9
  }
10
- type StepType = "email" | "name" | "height" | "gender" | "focalLength";
10
+ type StepType = "email" | "name" | "height" | "gender";
11
11
  interface StyleConfig {
12
12
  base?: {
13
13
  brandColor?: string;
@@ -55,13 +55,19 @@ interface Config {
55
55
  logo?: string;
56
56
  loader?: string;
57
57
  }
58
+ interface FocalLengthOuput {
59
+ brandName: string;
60
+ modelName: string;
61
+ focalLength: number;
62
+ }
63
+ interface FocalLengthProps {
64
+ onComplete?: (value: FocalLengthOuput) => void;
65
+ initialValue?: any;
66
+ config?: Config;
67
+ }
58
68
 
59
69
  declare const Onboarding: React.FC<OnboardingProps>;
60
70
 
61
- /**
62
- * Ensures default style values are available even when config or nested properties are missing.
63
- * Merges deeply and memoizes the result for consistent performance.
64
- */
65
- declare const useLocalConfig: (config?: Config) => Required<Config>;
71
+ declare const FocalLength: React.FC<FocalLengthProps>;
66
72
 
67
- export { Onboarding, type OnboardingProps, useLocalConfig };
73
+ export { FocalLength, type FocalLengthProps, Onboarding, type OnboardingProps };
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ interface Step {
7
7
  isVisible?: boolean;
8
8
  onStepComplete?: (value: any) => Promise<void> | void;
9
9
  }
10
- type StepType = "email" | "name" | "height" | "gender" | "focalLength";
10
+ type StepType = "email" | "name" | "height" | "gender";
11
11
  interface StyleConfig {
12
12
  base?: {
13
13
  brandColor?: string;
@@ -55,13 +55,19 @@ interface Config {
55
55
  logo?: string;
56
56
  loader?: string;
57
57
  }
58
+ interface FocalLengthOuput {
59
+ brandName: string;
60
+ modelName: string;
61
+ focalLength: number;
62
+ }
63
+ interface FocalLengthProps {
64
+ onComplete?: (value: FocalLengthOuput) => void;
65
+ initialValue?: any;
66
+ config?: Config;
67
+ }
58
68
 
59
69
  declare const Onboarding: React.FC<OnboardingProps>;
60
70
 
61
- /**
62
- * Ensures default style values are available even when config or nested properties are missing.
63
- * Merges deeply and memoizes the result for consistent performance.
64
- */
65
- declare const useLocalConfig: (config?: Config) => Required<Config>;
71
+ declare const FocalLength: React.FC<FocalLengthProps>;
66
72
 
67
- export { Onboarding, type OnboardingProps, useLocalConfig };
73
+ export { FocalLength, type FocalLengthProps, Onboarding, type OnboardingProps };