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 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-widget-poll",
3
- "version": "2.20.1",
3
+ "version": "2.21.0",
4
4
  "main": "poll-manager.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",