@everymatrix/user-action-controller 1.56.0 → 1.56.3
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/dist/cjs/{index-acdc077f.js → index-5068b4b4.js} +73 -210
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/player-user-consents_2.cjs.entry.js +19 -57
- package/dist/cjs/user-action-controller.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/user-action-controller/user-action-controller.js +15 -47
- package/dist/esm/{index-82e2d554.js → index-5b001d30.js} +73 -210
- package/dist/esm/loader.js +2 -2
- package/dist/esm/player-user-consents_2.entry.js +19 -57
- package/dist/esm/user-action-controller.js +3 -3
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/user-action-controller/p-1091a4ea.entry.js +1 -0
- package/dist/user-action-controller/p-21db0506.js +2 -0
- package/dist/user-action-controller/user-action-controller.esm.js +1 -1
- package/package.json +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +0 -2
- package/dist/user-action-controller/p-839810ba.entry.js +0 -1
- package/dist/user-action-controller/p-e2754eb5.js +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-5068b4b4.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-action-controller.cjs.js', document.baseURI).href));
|
|
@@ -4,29 +4,25 @@ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../.
|
|
|
4
4
|
import "../../../../../player-user-consents/dist/types/index";
|
|
5
5
|
export class UserActionController {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
//for now this variable is hardcoded bcs we have terms and conditions and privacy policy mandatory and we dont receive with these new functionality the mandatory actions
|
|
8
|
+
this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
|
|
9
|
+
this.userActions = [];
|
|
10
|
+
this.consentTitles = {
|
|
11
|
+
termsandconditions: translate('termsAndConditionsTitle', this.lang),
|
|
12
|
+
sms: translate('smsTitle', this.lang),
|
|
13
|
+
emailmarketing: translate('emailMarketingTitle', this.lang),
|
|
14
|
+
privacypolicy: translate('privacyPolicyTitle', this.lang)
|
|
15
|
+
};
|
|
16
|
+
this.endpoint = undefined;
|
|
17
|
+
this.userSession = undefined;
|
|
18
|
+
this.userId = undefined;
|
|
10
19
|
this.lang = 'en';
|
|
11
|
-
|
|
12
|
-
* Select GM version
|
|
13
|
-
*/
|
|
20
|
+
this.includeSubmitButton = undefined;
|
|
14
21
|
this.gmVersion = '';
|
|
15
|
-
/**
|
|
16
|
-
* Translation url
|
|
17
|
-
*/
|
|
18
22
|
this.translationUrl = '';
|
|
19
|
-
/**
|
|
20
|
-
* Client custom styling via inline style
|
|
21
|
-
*/
|
|
22
23
|
this.clientStyling = '';
|
|
23
|
-
/**
|
|
24
|
-
* Client custom styling via url
|
|
25
|
-
*/
|
|
26
24
|
this.clientStylingUrl = '';
|
|
27
|
-
|
|
28
|
-
* Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
|
|
29
|
-
*/
|
|
25
|
+
this.mbSource = undefined;
|
|
30
26
|
this.queryFired = false;
|
|
31
27
|
this.readyActionsCount = 0;
|
|
32
28
|
this.activeUserActions = [];
|
|
@@ -34,15 +30,7 @@ export class UserActionController {
|
|
|
34
30
|
this.receivedQueryResponses = 0;
|
|
35
31
|
this.isLoading = true;
|
|
36
32
|
this.mandatoryActionsChecked = 0;
|
|
37
|
-
|
|
38
|
-
this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
|
|
39
|
-
this.userActions = [];
|
|
40
|
-
this.consentTitles = {
|
|
41
|
-
termsandconditions: translate('termsAndConditionsTitle', this.lang),
|
|
42
|
-
sms: translate('smsTitle', this.lang),
|
|
43
|
-
emailmarketing: translate('emailMarketingTitle', this.lang),
|
|
44
|
-
privacypolicy: translate('privacyPolicyTitle', this.lang)
|
|
45
|
-
};
|
|
33
|
+
this.mandatoryItems = undefined;
|
|
46
34
|
}
|
|
47
35
|
handleNewTranslations() {
|
|
48
36
|
getTranslations(this.translationUrl);
|
|
@@ -256,8 +244,6 @@ export class UserActionController {
|
|
|
256
244
|
"tags": [],
|
|
257
245
|
"text": "the endpoint required for the update call"
|
|
258
246
|
},
|
|
259
|
-
"getter": false,
|
|
260
|
-
"setter": false,
|
|
261
247
|
"attribute": "endpoint",
|
|
262
248
|
"reflect": true
|
|
263
249
|
},
|
|
@@ -275,8 +261,6 @@ export class UserActionController {
|
|
|
275
261
|
"tags": [],
|
|
276
262
|
"text": "user session required for the update call"
|
|
277
263
|
},
|
|
278
|
-
"getter": false,
|
|
279
|
-
"setter": false,
|
|
280
264
|
"attribute": "user-session",
|
|
281
265
|
"reflect": true
|
|
282
266
|
},
|
|
@@ -294,8 +278,6 @@ export class UserActionController {
|
|
|
294
278
|
"tags": [],
|
|
295
279
|
"text": "user id required for the update call"
|
|
296
280
|
},
|
|
297
|
-
"getter": false,
|
|
298
|
-
"setter": false,
|
|
299
281
|
"attribute": "user-id",
|
|
300
282
|
"reflect": true
|
|
301
283
|
},
|
|
@@ -313,8 +295,6 @@ export class UserActionController {
|
|
|
313
295
|
"tags": [],
|
|
314
296
|
"text": "Language"
|
|
315
297
|
},
|
|
316
|
-
"getter": false,
|
|
317
|
-
"setter": false,
|
|
318
298
|
"attribute": "lang",
|
|
319
299
|
"reflect": true,
|
|
320
300
|
"defaultValue": "'en'"
|
|
@@ -333,8 +313,6 @@ export class UserActionController {
|
|
|
333
313
|
"tags": [],
|
|
334
314
|
"text": "whether or not to include the submit button (in case we want to compose a different )"
|
|
335
315
|
},
|
|
336
|
-
"getter": false,
|
|
337
|
-
"setter": false,
|
|
338
316
|
"attribute": "include-submit-button",
|
|
339
317
|
"reflect": true
|
|
340
318
|
},
|
|
@@ -352,8 +330,6 @@ export class UserActionController {
|
|
|
352
330
|
"tags": [],
|
|
353
331
|
"text": "Select GM version"
|
|
354
332
|
},
|
|
355
|
-
"getter": false,
|
|
356
|
-
"setter": false,
|
|
357
333
|
"attribute": "gm-version",
|
|
358
334
|
"reflect": false,
|
|
359
335
|
"defaultValue": "''"
|
|
@@ -372,8 +348,6 @@ export class UserActionController {
|
|
|
372
348
|
"tags": [],
|
|
373
349
|
"text": "Translation url"
|
|
374
350
|
},
|
|
375
|
-
"getter": false,
|
|
376
|
-
"setter": false,
|
|
377
351
|
"attribute": "translation-url",
|
|
378
352
|
"reflect": true,
|
|
379
353
|
"defaultValue": "''"
|
|
@@ -392,8 +366,6 @@ export class UserActionController {
|
|
|
392
366
|
"tags": [],
|
|
393
367
|
"text": "Client custom styling via inline style"
|
|
394
368
|
},
|
|
395
|
-
"getter": false,
|
|
396
|
-
"setter": false,
|
|
397
369
|
"attribute": "client-styling",
|
|
398
370
|
"reflect": true,
|
|
399
371
|
"defaultValue": "''"
|
|
@@ -412,8 +384,6 @@ export class UserActionController {
|
|
|
412
384
|
"tags": [],
|
|
413
385
|
"text": "Client custom styling via url"
|
|
414
386
|
},
|
|
415
|
-
"getter": false,
|
|
416
|
-
"setter": false,
|
|
417
387
|
"attribute": "client-styling-url",
|
|
418
388
|
"reflect": true,
|
|
419
389
|
"defaultValue": "''"
|
|
@@ -432,8 +402,6 @@ export class UserActionController {
|
|
|
432
402
|
"tags": [],
|
|
433
403
|
"text": ""
|
|
434
404
|
},
|
|
435
|
-
"getter": false,
|
|
436
|
-
"setter": false,
|
|
437
405
|
"attribute": "mb-source",
|
|
438
406
|
"reflect": true
|
|
439
407
|
}
|