fansunited-widget-client-configuration 1.5.0 → 1.6.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 +19512 -18671
- package/configuration-manager.umd.js +306 -306
- package/models/Labels/LabelsModel.d.ts +40 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,7 +132,47 @@ const labels = {
|
|
|
132
132
|
showFilters: 'Show filters',
|
|
133
133
|
searchSportal365ImagesErrorMessage: 'There was a problem with searching images from Sportal 365 API. Please try again',
|
|
134
134
|
previous: 'Previous',
|
|
135
|
-
next: 'Next'
|
|
135
|
+
next: 'Next',
|
|
136
|
+
add: 'Add',
|
|
137
|
+
branding: 'Branding',
|
|
138
|
+
noBrandingsFound: 'No brandings found',
|
|
139
|
+
createFirstBrandingTemplate: 'Create your first branding template to get started',
|
|
140
|
+
createBranding: 'Create Branding',
|
|
141
|
+
colors: 'Colors',
|
|
142
|
+
noColorsDefined: 'No colors defined',
|
|
143
|
+
image: 'image',
|
|
144
|
+
images: 'images',
|
|
145
|
+
noImages: 'No images',
|
|
146
|
+
url: 'URL',
|
|
147
|
+
urls: 'URLs',
|
|
148
|
+
noUrls: 'No URLs',
|
|
149
|
+
newBranding: 'New Branding',
|
|
150
|
+
deleteBranding: 'Delete',
|
|
151
|
+
deleteBrandingConfirmation: 'branding? This action cannot be undone.',
|
|
152
|
+
close: 'Close',
|
|
153
|
+
brandingCreatedMessage: 'Branding created successfully',
|
|
154
|
+
brandingUpdatedMessage: 'Branding updated successfully',
|
|
155
|
+
brandingDeletedMessage: 'Branding deleted successfully',
|
|
156
|
+
createBrandingErrorMessage: 'There was a problem creating branding. Please try again',
|
|
157
|
+
updateBrandingErrorMessage: 'There was a problem updating branding. Please try again',
|
|
158
|
+
deleteBrandingErrorMessage: 'There was a problem deleting branding. Please try again',
|
|
159
|
+
fetchBrandingsErrorMessage: 'There was a problem fetching brandings. Please try again',
|
|
160
|
+
mainLogo: 'Main Logo',
|
|
161
|
+
mobileLogo: 'Mobile logo',
|
|
162
|
+
backgroundImage: 'Background image',
|
|
163
|
+
mobileBackgroundImage: 'Mobile background image',
|
|
164
|
+
additionalImage: 'Additional image',
|
|
165
|
+
primaryColor: 'Primary color',
|
|
166
|
+
secondaryColor: 'Secondary color',
|
|
167
|
+
contentColor: 'Content color',
|
|
168
|
+
backgroundColor: 'Background color',
|
|
169
|
+
borderColor: 'Border color',
|
|
170
|
+
additionalColor: 'Additional color',
|
|
171
|
+
primaryUrl: 'Primary URL',
|
|
172
|
+
secondaryUrl: 'Secondary URL',
|
|
173
|
+
privacyPolicyUrl: 'Privacy policy URL',
|
|
174
|
+
termsAndConditionsUrl: 'Terms and conditions URL',
|
|
175
|
+
additionalUrl: 'Additional URL',
|
|
136
176
|
};
|
|
137
177
|
|
|
138
178
|
const App = () => {
|
|
@@ -207,9 +247,55 @@ Here is all information about **`LabelsModel`**:
|
|
|
207
247
|
| `searchSportal365ImagesErrorMessage` | Toast error message when searching Sportal365 images fails | There was a problem with searching images from Sportal 365 API. Please try again |
|
|
208
248
|
| `previous` | Label for previous page button in Sportal365 images pagination | Previous |
|
|
209
249
|
| `next` | Label for next page button in Sportal365 images pagination | Next |
|
|
250
|
+
| `add` | Label for add button | Add |
|
|
251
|
+
| `branding` | Label for branding tab | Branding |
|
|
252
|
+
| `noBrandingsFound` | Message when no brandings are found | No brandings found |
|
|
253
|
+
| `createFirstBrandingTemplate` | Helper text for creating first branding | Create your first branding template to get started |
|
|
254
|
+
| `createBranding` | Label for create branding button | Create Branding |
|
|
255
|
+
| `colors` | Label for colors section | Colors |
|
|
256
|
+
| `noColorsDefined` | Message when no colors are defined | No colors defined |
|
|
257
|
+
| `image` | Label for single image (singular) | image |
|
|
258
|
+
| `images` | Label for multiple images (plural) | images |
|
|
259
|
+
| `noImages` | Message when no images are present | No images |
|
|
260
|
+
| `url` | Label for single URL (singular) | URL |
|
|
261
|
+
| `urls` | Label for multiple URLs (plural) | URLs |
|
|
262
|
+
| `noUrls` | Message when no URLs are present | No URLs |
|
|
263
|
+
| `newBranding` | Title for new branding modal | New Branding |
|
|
264
|
+
| `deleteBranding` | Label for delete branding action | Delete |
|
|
265
|
+
| `deleteBrandingConfirmation` | Confirmation message for deleting branding | branding? This action cannot be undone. |
|
|
266
|
+
| `close` | Label for close button | Close |
|
|
267
|
+
| `brandingCreatedMessage` | Toast success message when branding is created | Branding created successfully |
|
|
268
|
+
| `brandingUpdatedMessage` | Toast success message when branding is updated | Branding updated successfully |
|
|
269
|
+
| `brandingDeletedMessage` | Toast success message when branding is deleted | Branding deleted successfully |
|
|
270
|
+
| `createBrandingErrorMessage` | Toast error message when creating branding fails | There was a problem creating branding. Please try again |
|
|
271
|
+
| `updateBrandingErrorMessage` | Toast error message when updating branding fails | There was a problem updating branding. Please try again |
|
|
272
|
+
| `deleteBrandingErrorMessage` | Toast error message when deleting branding fails | There was a problem deleting branding. Please try again |
|
|
273
|
+
| `fetchBrandingsErrorMessage` | Toast error message when fetching brandings fails | There was a problem fetching brandings. Please try again |
|
|
274
|
+
| `primaryColor` | Label for primary color input in branding accordion | Primary color |
|
|
275
|
+
| `secondaryColor` | Label for secondary color input in branding accordion | Secondary color |
|
|
276
|
+
| `contentColor` | Label for content color input in branding accordion | Content color |
|
|
277
|
+
| `backgroundColor` | Label for background color input in branding accordion | Background color |
|
|
278
|
+
| `borderColor` | Label for border color input in branding accordion | Border color |
|
|
279
|
+
| `additionalColor` | Label for additional color input in branding accordion | Additional color |
|
|
280
|
+
| `primaryUrl` | Label for primary url input in branding accordion | Primary URL |
|
|
281
|
+
| `secondaryUrl` | Label for secondary url input in branding accordion | Secondary URL |
|
|
282
|
+
| `privacyPolicyUrl` | Label for privacy policy url input in branding accordion | Privacy policy URL |
|
|
283
|
+
| `termsAndConditionsUrl` | Label for terms and conditions url input in branding accordion | Terms and conditions URL |
|
|
284
|
+
| `additionalUrl` | Label for additional url input in branding accordion | Additional URL |
|
|
285
|
+
| `mainLogo` | Label for main logo input in branding accordion | Main Logo |
|
|
286
|
+
| `mobileLogo` | Label for mobile logo input in branding accordion | Mobile logo |
|
|
287
|
+
| `backgroundImage` | Label for background image input in branding accordion | Background image |
|
|
288
|
+
| `mobileBackgroundImage` | Label for mobile background image input in branding accordion | Mobile background image |
|
|
289
|
+
| `additionalImage` | Label for additional image input in branding accordion | Additional image |
|
|
210
290
|
|
|
211
291
|
## Changelog
|
|
212
292
|
|
|
293
|
+
### 1.6.0 - 2026-01-09
|
|
294
|
+
|
|
295
|
+
- **Added:**
|
|
296
|
+
- Branding management with card based list view and modal based form
|
|
297
|
+
- Ability to copy the configuration ID of User-Centric Widgets to clipboard
|
|
298
|
+
|
|
213
299
|
### 1.5.0 - 2025-12-23
|
|
214
300
|
|
|
215
301
|
- **Added:**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IBranding } from 'fansunited-management-components/src/models/IBranding';
|
|
3
|
+
interface BrandingFormProps {
|
|
4
|
+
name: string;
|
|
5
|
+
branding: IBranding;
|
|
6
|
+
onNameChange: (value: string) => void;
|
|
7
|
+
onBrandingChange: (branding: IBranding) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
onSave: () => void;
|
|
10
|
+
isSubmitting: boolean;
|
|
11
|
+
isEditing: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const BrandingForm: React.FC<BrandingFormProps>;
|
|
14
|
+
export default BrandingForm;
|