fansunited-widget-client-configuration 1.5.0 → 1.7.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 +87 -1
- package/components/Tabs/Branding.d.ts +3 -0
- package/components/Tabs/BrandingForm.d.ts +14 -0
- package/components/Tabs/UserCentricWidgets/ConfigurationForm.d.ts +1 -0
- package/configuration-manager.es.js +20289 -19364
- package/configuration-manager.umd.js +306 -306
- package/models/Labels/LabelsModel.d.ts +40 -0
- package/package.json +1 -1
- package/utils/errorHandler.d.ts +27 -0
|
@@ -57,5 +57,45 @@ export default class LabelsModel {
|
|
|
57
57
|
searchSportal365ImagesErrorMessage: string;
|
|
58
58
|
previous: string;
|
|
59
59
|
next: string;
|
|
60
|
+
add: string;
|
|
61
|
+
branding: string;
|
|
62
|
+
noBrandingsFound: string;
|
|
63
|
+
createFirstBrandingTemplate: string;
|
|
64
|
+
createBranding: string;
|
|
65
|
+
colors: string;
|
|
66
|
+
noColorsDefined: string;
|
|
67
|
+
image: string;
|
|
68
|
+
images: string;
|
|
69
|
+
noImages: string;
|
|
70
|
+
url: string;
|
|
71
|
+
urls: string;
|
|
72
|
+
noUrls: string;
|
|
73
|
+
newBranding: string;
|
|
74
|
+
deleteBranding: string;
|
|
75
|
+
deleteBrandingConfirmation: string;
|
|
76
|
+
close: string;
|
|
77
|
+
brandingCreatedMessage: string;
|
|
78
|
+
brandingUpdatedMessage: string;
|
|
79
|
+
brandingDeletedMessage: string;
|
|
80
|
+
createBrandingErrorMessage: string;
|
|
81
|
+
updateBrandingErrorMessage: string;
|
|
82
|
+
deleteBrandingErrorMessage: string;
|
|
83
|
+
fetchBrandingsErrorMessage: string;
|
|
84
|
+
mainLogo: string;
|
|
85
|
+
mobileLogo: string;
|
|
86
|
+
backgroundImage: string;
|
|
87
|
+
mobileBackgroundImage: string;
|
|
88
|
+
additionalImage: string;
|
|
89
|
+
primaryColor: string;
|
|
90
|
+
secondaryColor: string;
|
|
91
|
+
contentColor: string;
|
|
92
|
+
backgroundColor: string;
|
|
93
|
+
borderColor: string;
|
|
94
|
+
additionalColor: string;
|
|
95
|
+
primaryUrl: string;
|
|
96
|
+
secondaryUrl: string;
|
|
97
|
+
privacyPolicyUrl: string;
|
|
98
|
+
termsAndConditionsUrl: string;
|
|
99
|
+
additionalUrl: string;
|
|
60
100
|
constructor(labels?: LabelsModel);
|
|
61
101
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface APIErrorResponse {
|
|
2
|
+
error: {
|
|
3
|
+
code: number;
|
|
4
|
+
status: string;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Extracts the appropriate error message from an API error response
|
|
10
|
+
*
|
|
11
|
+
* @param errorData - The parsed API error response object
|
|
12
|
+
* @param fallbackMessage - The generic error message to use for 500 errors or when API message is unavailable
|
|
13
|
+
* @returns The error message to display
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const response = await https.getWidgetConfigurations();
|
|
17
|
+
* const data = await response.json();
|
|
18
|
+
*
|
|
19
|
+
* if (response.ok) {
|
|
20
|
+
* // handle success data
|
|
21
|
+
* } else {
|
|
22
|
+
* const errorMessage = getErrorMessage(data, 'Failed to fetch configurations');
|
|
23
|
+
* displayToast('danger', errorMessage);
|
|
24
|
+
* }
|
|
25
|
+
*/
|
|
26
|
+
export declare function getErrorMessage(errorData: APIErrorResponse, fallbackMessage: string): string;
|
|
27
|
+
export {};
|