fansunited-widget-client-configuration 1.3.0-RC1 → 1.4.0

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/README.md CHANGED
@@ -104,7 +104,7 @@ const labels = {
104
104
 
105
105
  const App = () => {
106
106
  return (
107
- <ClassicQuizManager
107
+ <ConfigurationManager
108
108
  fansUnitedApiKey={'your-api-key'}
109
109
  fansUnitedClientId={'your-client-id'}
110
110
  labels={labels}/>
@@ -146,4 +146,18 @@ Here is all information about **`LabelsModel`**:
146
146
  | `addPreference` | Add new preference button title | Add Preference |
147
147
  | `selectCategories` | Info text for selecting categories for new preference creation |Select categories for new preference |
148
148
  | `uniqueCategoriesIdErrorMessage` | Error validation message when new category added doesn't have unique ID | Categories' IDs must be unique! |
149
- | `uniquePreferencesIdErrorMessage` | Error validation message when new preference added doesn't have unique ID | Preferences' IDs must be unique! |
149
+ | `uniquePreferencesIdErrorMessage` | Error validation message when new preference added doesn't have unique ID | Preferences' IDs must be unique! |
150
+
151
+ ## Changelog
152
+
153
+ ### 1.4.0 - 2025-11-29
154
+
155
+ - **Added:**
156
+ - User-Centric Widgets configuration management tab with full CRUD operations
157
+ - Multi-tab configuration form with 6 sections: General, Firebase, Theme Options, Leads, Miscellaneous, and Legacy
158
+ - Raw JSON mode toggle for advanced configuration editing
159
+ - Integrated color pickers for theme customization
160
+ - Support for light and dark mode color schemes
161
+ - Customizable spacing scales, typography, border sizes, and border radius values
162
+ - Lead form configuration with field management and country code selection
163
+ - Firebase integration settings configuration
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ interface ClientApiKey {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ interface ConfigurationFormProps {
7
+ title: string;
8
+ description: string;
9
+ config: any;
10
+ clientApiKeys: ClientApiKey[];
11
+ onTitleChange: (value: string) => void;
12
+ onDescriptionChange: (value: string) => void;
13
+ onConfigChange: (config: any) => void;
14
+ onClose: () => void;
15
+ onSave: () => void;
16
+ isSubmitting: boolean;
17
+ isEditing: boolean;
18
+ }
19
+ declare const ConfigurationForm: React.FC<ConfigurationFormProps>;
20
+ export default ConfigurationForm;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface LeadsConfigurationProps {
3
+ config: any;
4
+ onConfigChange: (path: string[], value: any) => void;
5
+ getConfigValue: (path: string[], defaultValue?: any) => any;
6
+ }
7
+ declare const LeadsConfiguration: React.FC<LeadsConfigurationProps>;
8
+ export default LeadsConfiguration;
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface LegacyConfigurationProps {
3
+ config: any;
4
+ onConfigChange: (path: string[], value: any) => void;
5
+ getConfigValue: (path: string[], defaultValue?: any) => any;
6
+ }
7
+ declare const LegacyConfiguration: React.FC<LegacyConfigurationProps>;
8
+ export default LegacyConfiguration;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface MiscConfigurationProps {
3
+ onConfigChange: (path: string[], value: any) => void;
4
+ getConfigValue: (path: string[], defaultValue?: any) => any;
5
+ }
6
+ declare const MiscConfiguration: React.FC<MiscConfigurationProps>;
7
+ export default MiscConfiguration;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface ThemeOptionsConfigurationProps {
3
+ onConfigChange: (path: string[], value: any) => void;
4
+ getConfigValue: (path: string[], defaultValue?: any) => any;
5
+ }
6
+ declare const ThemeOptionsConfiguration: React.FC<ThemeOptionsConfigurationProps>;
7
+ export default ThemeOptionsConfiguration;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const UserCentricWidgets: React.FC;
3
+ export default UserCentricWidgets;
@@ -0,0 +1,182 @@
1
+ declare const defaultThemeOptions: {
2
+ mode: string;
3
+ spacingScale: {
4
+ '3xs': string;
5
+ '2xs': string;
6
+ xs: string;
7
+ sm: string;
8
+ md: string;
9
+ lg: string;
10
+ xl: string;
11
+ '2xl': string;
12
+ '3xl': string;
13
+ };
14
+ colorSchemes: {
15
+ light: {
16
+ palette: {
17
+ success: {
18
+ plainColor: string;
19
+ outlinedBorder: string;
20
+ };
21
+ danger: {
22
+ softBg: string;
23
+ plainColor: string;
24
+ outlinedBorder: string;
25
+ };
26
+ primary: {
27
+ plainColor: string;
28
+ outlinedBorder: string;
29
+ onPrimary: string;
30
+ primaryContainer: string;
31
+ };
32
+ warning: {
33
+ softBg: string;
34
+ plainColor: string;
35
+ };
36
+ neutral: {
37
+ softBg: string;
38
+ solidBg: string;
39
+ solidColor: string;
40
+ plainActiveBg: string;
41
+ outlinedBorder: string;
42
+ outlinedColor: string;
43
+ outlinedHoverBg: string;
44
+ plainHoverBg: string;
45
+ plainHoverColor: string;
46
+ plainColor: string;
47
+ solidHoverBg: string;
48
+ };
49
+ background: {
50
+ surface: string;
51
+ popup: string;
52
+ };
53
+ };
54
+ textPrimary: string;
55
+ textSecondary: string;
56
+ textColor: string;
57
+ textDisabled: string;
58
+ surface: string;
59
+ onSurface: string;
60
+ surfaceVariant: string;
61
+ surfaceTintDim: string;
62
+ surfaceInverse: string;
63
+ outlineEnabledBorder: string;
64
+ secondaryContainer: string;
65
+ };
66
+ dark: {
67
+ palette: {
68
+ primary: {
69
+ plainColor: string;
70
+ outlinedBorder: string;
71
+ onPrimary: string;
72
+ primaryContainer: string;
73
+ };
74
+ success: {
75
+ plainColor: string;
76
+ outlinedBorder: string;
77
+ };
78
+ danger: {
79
+ softBg: string;
80
+ plainColor: string;
81
+ outlinedBorder: string;
82
+ };
83
+ warning: {
84
+ softBg: string;
85
+ plainColor: string;
86
+ };
87
+ neutral: {
88
+ softBg: string;
89
+ solidBg: string;
90
+ solidColor: string;
91
+ plainActiveBg: string;
92
+ outlinedBorder: string;
93
+ outlinedColor: string;
94
+ outlinedHoverBg: string;
95
+ plainHoverBg: string;
96
+ plainHoverColor: string;
97
+ plainColor: string;
98
+ solidHoverBg: string;
99
+ };
100
+ background: {
101
+ surface: string;
102
+ popup: string;
103
+ };
104
+ };
105
+ textPrimary: string;
106
+ textSecondary: string;
107
+ textColor: string;
108
+ textDisabled: string;
109
+ surface: string;
110
+ onSurface: string;
111
+ surfaceVariant: string;
112
+ surfaceTintDim: string;
113
+ surfaceInverse: string;
114
+ outlineEnabledBorder: string;
115
+ secondaryContainer: string;
116
+ };
117
+ };
118
+ customFontFamily: {
119
+ light: {
120
+ primary: string;
121
+ secondary: string;
122
+ };
123
+ dark: {
124
+ primary: string;
125
+ secondary: string;
126
+ };
127
+ };
128
+ customRadius: {
129
+ light: {
130
+ none: string;
131
+ '2xs': string;
132
+ xs: string;
133
+ sm: string;
134
+ md: string;
135
+ lg: string;
136
+ xl: string;
137
+ '2xl': string;
138
+ full: string;
139
+ };
140
+ dark: {
141
+ none: string;
142
+ '2xs': string;
143
+ xs: string;
144
+ sm: string;
145
+ md: string;
146
+ lg: string;
147
+ xl: string;
148
+ '2xl': string;
149
+ full: string;
150
+ };
151
+ };
152
+ border: {
153
+ light: {
154
+ size: string;
155
+ };
156
+ dark: {
157
+ size: string;
158
+ };
159
+ };
160
+ imageBackgroundGradient: {
161
+ light: {
162
+ standard: string;
163
+ split: string;
164
+ };
165
+ dark: {
166
+ standard: string;
167
+ split: string;
168
+ overlay: string;
169
+ };
170
+ };
171
+ customBreakpoints: {
172
+ values: {
173
+ xs: number;
174
+ sm: number;
175
+ md: number;
176
+ lg: number;
177
+ xl: number;
178
+ xxl: number;
179
+ };
180
+ };
181
+ };
182
+ export default defaultThemeOptions;