web-manager 3.1.35 → 3.1.37
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/index.js +35 -30
- package/package.json +1 -1
package/index.js
CHANGED
@@ -93,6 +93,11 @@ function Manager() {
|
|
93
93
|
brand: {
|
94
94
|
name: 'default'
|
95
95
|
},
|
96
|
+
contact: {
|
97
|
+
emailSupport: '',
|
98
|
+
emailBusiness: '',
|
99
|
+
},
|
100
|
+
validRedirectHosts: [],
|
96
101
|
// preferences: {
|
97
102
|
// // firebase: {
|
98
103
|
// // enabled: false
|
@@ -490,20 +495,20 @@ function Manager() {
|
|
490
495
|
// saveToStorage: false
|
491
496
|
// },
|
492
497
|
pushNotifications: {
|
493
|
-
autoRequest: 60 // how long to wait before auto ask, 0 to disable
|
498
|
+
autoRequest: 60, // how long to wait before auto ask, 0 to disable
|
494
499
|
},
|
495
500
|
serviceWorker: {
|
496
|
-
path: ''
|
501
|
+
path: '',
|
497
502
|
},
|
498
503
|
initChecks: {
|
499
|
-
features: [] // an array of javascript and dom features to check for (NIY)
|
504
|
+
features: [], // an array of javascript and dom features to check for (NIY)
|
500
505
|
},
|
501
506
|
auth: {
|
502
507
|
state: 'default', // required, prohibited, default
|
503
508
|
sends: {
|
504
|
-
required:
|
505
|
-
prohibited:
|
506
|
-
}
|
509
|
+
required: tempUrl + '/signup/',
|
510
|
+
prohibited: tempUrl + '/',
|
511
|
+
},
|
507
512
|
},
|
508
513
|
popup: {
|
509
514
|
enabled: true,
|
@@ -512,9 +517,9 @@ function Manager() {
|
|
512
517
|
message: '',
|
513
518
|
btn_ok: {
|
514
519
|
text: '',
|
515
|
-
link: ''
|
516
|
-
}
|
517
|
-
}
|
520
|
+
link: '',
|
521
|
+
},
|
522
|
+
},
|
518
523
|
},
|
519
524
|
libraries: {
|
520
525
|
firebase_app: {
|
@@ -527,8 +532,8 @@ function Manager() {
|
|
527
532
|
projectId: '',
|
528
533
|
storageBucket: '',
|
529
534
|
messagingSenderId: '',
|
530
|
-
appId: ''
|
531
|
-
}
|
535
|
+
appId: '',
|
536
|
+
},
|
532
537
|
},
|
533
538
|
firebase_firestore: {
|
534
539
|
enabled: true,
|
@@ -543,14 +548,14 @@ function Manager() {
|
|
543
548
|
load: false,
|
544
549
|
},
|
545
550
|
lazysizes: {
|
546
|
-
enabled: true
|
551
|
+
enabled: true,
|
547
552
|
},
|
548
553
|
sentry: {
|
549
554
|
enabled: true,
|
550
555
|
config: {
|
551
556
|
dsn: '',
|
552
|
-
release: ''
|
553
|
-
}
|
557
|
+
release: '',
|
558
|
+
},
|
554
559
|
},
|
555
560
|
chatsy: {
|
556
561
|
enabled: true,
|
@@ -561,9 +566,9 @@ function Manager() {
|
|
561
566
|
openChatButton: {
|
562
567
|
background: '#237afc',
|
563
568
|
text: '#ffffff',
|
564
|
-
}
|
569
|
+
},
|
565
570
|
},
|
566
|
-
}
|
571
|
+
},
|
567
572
|
},
|
568
573
|
cookieconsent: {
|
569
574
|
enabled: true,
|
@@ -571,12 +576,12 @@ function Manager() {
|
|
571
576
|
palette: {
|
572
577
|
popup: {
|
573
578
|
background: '#237afc',
|
574
|
-
text: '#ffffff'
|
579
|
+
text: '#ffffff',
|
575
580
|
},
|
576
581
|
button: {
|
577
582
|
background: '#fff',
|
578
|
-
text: '#237afc'
|
579
|
-
}
|
583
|
+
text: '#237afc',
|
584
|
+
},
|
580
585
|
},
|
581
586
|
theme: 'classic',
|
582
587
|
position: 'bottom-left',
|
@@ -588,10 +593,10 @@ function Manager() {
|
|
588
593
|
// link: 'Learn more',
|
589
594
|
// href: '' || This.properties.global.urlRoot + '/cookies/',
|
590
595
|
// href: (tempUrl + '/cookies/')
|
591
|
-
}
|
592
|
-
}
|
593
|
-
}
|
594
|
-
}
|
596
|
+
},
|
597
|
+
},
|
598
|
+
},
|
599
|
+
},
|
595
600
|
};
|
596
601
|
|
597
602
|
var options_user = {};
|
@@ -624,14 +629,10 @@ function Manager() {
|
|
624
629
|
This.properties.global.url = configuration.global.url;
|
625
630
|
This.properties.global.cacheBreaker = configuration.global.cacheBreaker;
|
626
631
|
This.properties.global.brand.name = configuration.global.brand.name;
|
632
|
+
This.properties.global.contact.emailSupport = configuration.global.contact.emailSupport;
|
633
|
+
This.properties.global.contact.emailBusiness = configuration.global.contact.emailBusiness;
|
634
|
+
This.properties.global.validRedirectHosts = configuration.global.validRedirectHosts;
|
627
635
|
This.properties.meta.environment = utilities.get(configuration, 'global.settings.debug.environment', This.properties.meta.environment);
|
628
|
-
|
629
|
-
// This.properties.global.cacheBreaker = This.properties.meta.environment === 'development'
|
630
|
-
// ? new Date().getTime()
|
631
|
-
// : This.properties.global.cacheBreaker;
|
632
|
-
// This.log('Config: ', options_user);
|
633
|
-
|
634
|
-
// parse query stringify
|
635
636
|
This.properties.page.queryString = new URLSearchParams(window.location.search);
|
636
637
|
var pageQueryString = This.properties.page.queryString
|
637
638
|
var pagePathname = window.location.pathname;
|
@@ -1643,10 +1644,14 @@ function Manager() {
|
|
1643
1644
|
}
|
1644
1645
|
|
1645
1646
|
Manager.prototype.isValidRedirectUrl = function (url) {
|
1647
|
+
var self = this;
|
1648
|
+
|
1646
1649
|
var returnUrlObject = new URL(decodeURIComponent(url));
|
1647
1650
|
var currentUrlObject = new URL(window.location.href);
|
1651
|
+
|
1648
1652
|
return returnUrlObject.host === currentUrlObject.host
|
1649
1653
|
|| returnUrlObject.protocol === this.properties.global.app + ':'
|
1654
|
+
|| self.properties.global.validRedirectHosts.includes(returnUrlObject.host)
|
1650
1655
|
}
|
1651
1656
|
|
1652
1657
|
// Manager.prototype.performance = function() {
|
package/package.json
CHANGED