fansunited-widget-poll 2.20.1 → 2.21.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 +17 -1
- package/models/Features/Features.d.ts +2 -0
- package/models/Labels/LabelsModel.d.ts +6 -0
- package/package.json +1 -1
- package/poll-manager.es.js +20781 -19720
- package/poll-manager.umd.js +331 -321
- package/style.css +1 -1
package/README.md
CHANGED
|
@@ -361,7 +361,13 @@ const labels = {
|
|
|
361
361
|
rulesDisplayUrlInfoMessage: 'URL to open when the rules UI element is clicked',
|
|
362
362
|
rulesDisplayTarget: 'Target',
|
|
363
363
|
brandingTemplateLabel: 'Select branding',
|
|
364
|
-
brandingTemplatePlaceholder: 'Choose existing branding'
|
|
364
|
+
brandingTemplatePlaceholder: 'Choose existing branding',
|
|
365
|
+
selectAdContent: 'Select ad content',
|
|
366
|
+
selectRules: 'Select rules',
|
|
367
|
+
format: 'Format',
|
|
368
|
+
minify: 'Minify',
|
|
369
|
+
invalidJsonFormat: 'Invalid JSON format',
|
|
370
|
+
cannotMinifyInvalidJson: 'Cannot minify invalid JSON'
|
|
365
371
|
};
|
|
366
372
|
|
|
367
373
|
const App = () => {
|
|
@@ -662,9 +668,19 @@ Here is all information about **`LabelsModel`**:
|
|
|
662
668
|
| `rulesDisplayTarget` | Label for rules display target select | Target |
|
|
663
669
|
| `brandingTemplateLabel` | Label for branding menu selection | Select branding |
|
|
664
670
|
| `brandingTemplatePlaceholder` | Placeholder for branding menu selection | Choose existing branding |
|
|
671
|
+
| `selectAdContent` | Label for select ad content dropdown | Select ad content |
|
|
672
|
+
| `selectRules` | Label for select rules dropdown | Select rules |
|
|
673
|
+
| `format` | Label for format button in content editor | Format |
|
|
674
|
+
| `minify` | Label for minify button in content editor | Minify |
|
|
675
|
+
| `invalidJsonFormat` | Error message for invalid JSON format | Invalid JSON format |
|
|
676
|
+
| `cannotMinifyInvalidJson` | Error message when trying to minify invalid JSON | Cannot minify invalid JSON |
|
|
665
677
|
|
|
666
678
|
## Changelog
|
|
667
679
|
|
|
680
|
+
### 2.21.0 - 2026-02-17
|
|
681
|
+
- **Added**:
|
|
682
|
+
- Dropdown in Ad Content and Rules for selecting predefined content from info pages
|
|
683
|
+
|
|
668
684
|
### 2.20.0 - 2026-01-22
|
|
669
685
|
- **Improved**:
|
|
670
686
|
- Display category name for each question generated by AI in Football Post-Match Poll generation
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InfoPageModel } from 'fansunited-management-components';
|
|
1
2
|
import { IProfilePreferences } from '../Preferences/ProfilePreferences';
|
|
2
3
|
export interface IType {
|
|
3
4
|
id: string;
|
|
@@ -18,4 +19,5 @@ export default class Features {
|
|
|
18
19
|
authRequirement: string;
|
|
19
20
|
preferences: IProfilePreferences;
|
|
20
21
|
fullCoverageCompetitions: string[];
|
|
22
|
+
infoPages: InfoPageModel[];
|
|
21
23
|
}
|
|
@@ -279,5 +279,11 @@ export default class LabelsModel {
|
|
|
279
279
|
rulesDisplayTarget: string;
|
|
280
280
|
brandingTemplateLabel: string;
|
|
281
281
|
brandingTemplatePlaceholder: string;
|
|
282
|
+
selectAdContent: string;
|
|
283
|
+
selectRules: string;
|
|
284
|
+
format: string;
|
|
285
|
+
minify: string;
|
|
286
|
+
invalidJsonFormat: string;
|
|
287
|
+
cannotMinifyInvalidJson: string;
|
|
282
288
|
constructor(labels?: LabelsModel);
|
|
283
289
|
}
|