fansunited-widget-poll 2.15.0 → 2.16.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 +39 -0
- package/models/Labels/LabelsModel.d.ts +17 -0
- package/package.json +1 -1
- package/poll-manager.es.js +22691 -22155
- package/poll-manager.umd.js +323 -311
package/README.md
CHANGED
|
@@ -293,6 +293,23 @@ const labels = {
|
|
|
293
293
|
signInLabelInfoMessage: `Custom text displayed on the sign-in button. If empty, defaults to "Sign in to vote".`,
|
|
294
294
|
authenticationHandler: 'Authentication handler',
|
|
295
295
|
authenticationHandlerInfoMessage: 'JavaScript function code that executes when users click the sign-in button. To evaluate the function, provide only the function name. Example: showLoginModal() or window.openAuth(). The function is required otherwise the sign-in button will just log dummy message in the console.',
|
|
296
|
+
signInUrl: 'URL',
|
|
297
|
+
signInUrlInfoMessage: 'URL that users are redirected to when clicking the sign-in button.',
|
|
298
|
+
signInTarget: 'Target',
|
|
299
|
+
optionsLayout: 'Options layout',
|
|
300
|
+
optionsLayoutDescription: 'Configure the visual arrangement of answer options (2x2 grid, single row, or single column). By default the standard and overlay variants are set to single row and the split variant is set 2x2 grid view.',
|
|
301
|
+
syncWithProfile: 'Sync with profile',
|
|
302
|
+
syncWithProfileDescription: 'When enabled, the lead form data is synced with the user's profile data.',
|
|
303
|
+
configureAdditionalCta: 'Configure additional CTA',
|
|
304
|
+
configureAdditionalCtaTooltip: 'The additional CTA is shown after the user submits their answer.',
|
|
305
|
+
additionalCtaLabel: 'Label',
|
|
306
|
+
additionalCtaLabelInfoMessage: 'Custom text displayed on the additional CTA button.',
|
|
307
|
+
additionalCtaHandler: 'Handler',
|
|
308
|
+
additionalCtaHandlerInfoMessage: 'JavaScript function code that executes when users click the additional CTA button. To evaluate the function, provide only the function name. Example: redirectToHomePage().',
|
|
309
|
+
additionalCtaUrl: 'URL',
|
|
310
|
+
additionalCtaUrlInfoMessage: 'URL that users are redirected to when clicking the additional CTA button.',
|
|
311
|
+
additionalCtaTarget: 'Target',
|
|
312
|
+
copiedToClipboard: 'HTML div element copied to clipboard!',
|
|
296
313
|
configureSignIn: 'Configure sign-in options',
|
|
297
314
|
configureSignInDisabledMessage: `Configure sign-in options is enabled only when the authentication requirement is set to “Registered”.`,
|
|
298
315
|
enableMultipleChoice: 'Enable multiple choice',
|
|
@@ -568,6 +585,23 @@ Here is all information about **`LabelsModel`**:
|
|
|
568
585
|
| `signInLabelInfoMessage` | Info tooltip message for sign in label input | Custom text displayed on the sign-in button. If empty, defaults to "Sign in to vote". |
|
|
569
586
|
| `authenticationHandler` | Label for authentication handler | Authentication handler |
|
|
570
587
|
| `authenticationHandlerInfoMessage` | Info tooltip message for authentication handler | JavaScript function code that executes when users click the sign-in button. To evaluate the function, provide only the function name. Example: showLoginModal() or window.openAuth(). The function is required otherwise the sign-in button will just log dummy message in the console. |
|
|
588
|
+
| `signInUrl` | Label for sign in URL input | URL |
|
|
589
|
+
| `signInUrlInfoMessage` | Info tooltip message for sign in URL input | URL that users are redirected to when clicking the sign-in button. |
|
|
590
|
+
| `signInTarget` | Label for sign in target select | Target |
|
|
591
|
+
| `optionsLayout` | Label for options layout select | Options layout |
|
|
592
|
+
| `optionsLayoutDescription` | Description for options layout select | Configure the visual arrangement of answer options (2x2 grid, single row, or single column). By default the standard and overlay variants are set to single row and the split variant is set 2x2 grid view. |
|
|
593
|
+
| `syncWithProfile` | Label for sync with profile toggle switch | Sync with profile |
|
|
594
|
+
| `syncWithProfileDescription` | Description for sync with profile toggle switch | When enabled, the lead form data is synced with the user's profile data. |
|
|
595
|
+
| `configureAdditionalCta` | Label for configure additional CTA toggle switch | Configure additional CTA |
|
|
596
|
+
| `configureAdditionalCtaTooltip` | Tooltip for configure additional CTA toggle switch | The additional CTA is shown after the user submits their answer. |
|
|
597
|
+
| `additionalCtaLabel` | Label for additional CTA label input | Label |
|
|
598
|
+
| `additionalCtaLabelInfoMessage` | Info tooltip message for additional CTA label input | Custom text displayed on the additional CTA button. |
|
|
599
|
+
| `additionalCtaHandler` | Label for additional CTA handler input | Handler |
|
|
600
|
+
| `additionalCtaHandlerInfoMessage` | Info tooltip message for additional CTA handler input | JavaScript function code that executes when users click the additional CTA button. To evaluate the function, provide only the function name. Example: redirectToHomePage(). |
|
|
601
|
+
| `additionalCtaUrl` | Label for additional CTA URL input | URL |
|
|
602
|
+
| `additionalCtaUrlInfoMessage` | Info tooltip message for additional CTA URL input | URL that users are redirected to when clicking the additional CTA button. |
|
|
603
|
+
| `additionalCtaTarget` | Label for additional CTA target select | Target |
|
|
604
|
+
| `copiedToClipboard` | Toast info message when embed code is copied to clipboard | HTML div element copied to clipboard! |
|
|
571
605
|
| `configureSignIn` | Label for configure sign in switch | Configure sign-in options |
|
|
572
606
|
| `configureSignInDisabledMessage` | Info tooltiup message when configure sign in is disabled | Configure sign-in options is enabled only when the authentication requirement is set to “Registered”. |
|
|
573
607
|
| `enableMultipleChoice` | Label for enable multiple choice toggle switch | Enable multiple choice |
|
|
@@ -615,6 +649,11 @@ Here is all information about **`LabelsModel`**:
|
|
|
615
649
|
|
|
616
650
|
## Changelog
|
|
617
651
|
|
|
652
|
+
### 2.16.0 - 2025-11-26
|
|
653
|
+
|
|
654
|
+
- **Added**:
|
|
655
|
+
- New controls in Widget embed code accordion - additional cta options, new options in sign in, options layout and sync with profile in leads options
|
|
656
|
+
|
|
618
657
|
### 2.15.0 - 2025-01-01
|
|
619
658
|
|
|
620
659
|
- **Added:**
|
|
@@ -211,6 +211,23 @@ export default class LabelsModel {
|
|
|
211
211
|
signInLabelInfoMessage: string;
|
|
212
212
|
authenticationHandler: string;
|
|
213
213
|
authenticationHandlerInfoMessage: string;
|
|
214
|
+
signInUrl: string;
|
|
215
|
+
signInUrlInfoMessage: string;
|
|
216
|
+
signInTarget: string;
|
|
217
|
+
optionsLayout: string;
|
|
218
|
+
optionsLayoutDescription: string;
|
|
219
|
+
syncWithProfile: string;
|
|
220
|
+
syncWithProfileDescription: string;
|
|
221
|
+
configureAdditionalCta: string;
|
|
222
|
+
configureAdditionalCtaTooltip: string;
|
|
223
|
+
additionalCtaLabel: string;
|
|
224
|
+
additionalCtaLabelInfoMessage: string;
|
|
225
|
+
additionalCtaHandler: string;
|
|
226
|
+
additionalCtaHandlerInfoMessage: string;
|
|
227
|
+
additionalCtaUrl: string;
|
|
228
|
+
additionalCtaUrlInfoMessage: string;
|
|
229
|
+
additionalCtaTarget: string;
|
|
230
|
+
copiedToClipboard: string;
|
|
214
231
|
configureSignIn: string;
|
|
215
232
|
configureSignInDisabledMessage: string;
|
|
216
233
|
enableMultipleChoice: string;
|