@digipair/skill-web-notification 0.65.0 → 0.65.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/index.cjs.js +4 -2
- package/index.esm.js +9 -7
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -28365,7 +28365,6 @@ function _instanceof(left, right) {
|
|
|
28365
28365
|
|
|
28366
28366
|
var toastify = toastify$1.exports;
|
|
28367
28367
|
|
|
28368
|
-
const BASE_URL = 'https://cdn.jsdelivr.net/npm';
|
|
28369
28368
|
const Toastify = toastify;
|
|
28370
28369
|
let NotificationService = class NotificationService {
|
|
28371
28370
|
async information(params, _pinsSettingsList, _context) {
|
|
@@ -28406,12 +28405,15 @@ let NotificationService = class NotificationService {
|
|
|
28406
28405
|
return window.alert(message);
|
|
28407
28406
|
}
|
|
28408
28407
|
constructor(){
|
|
28408
|
+
const globalInstance = typeof window === 'undefined' ? global : window;
|
|
28409
|
+
const config = globalInstance.__DIGIPAIR_CONFIG__;
|
|
28410
|
+
const version = '1.12.0';
|
|
28409
28411
|
let link = document.querySelector('#digipair-skill-web-notification-css');
|
|
28410
28412
|
if (!link) {
|
|
28411
28413
|
link = document.createElement('link');
|
|
28412
28414
|
link.id = 'digipair-skill-web-notification-css';
|
|
28413
28415
|
link.rel = 'stylesheet';
|
|
28414
|
-
link.href = `${BASE_URL}/toastify-js/src/toastify.min.css`;
|
|
28416
|
+
link.href = `${config.BASE_URL}/toastify-js@${version}/src/toastify.min.css`;
|
|
28415
28417
|
link.type = 'text/css';
|
|
28416
28418
|
document.head.appendChild(link);
|
|
28417
28419
|
}
|
package/index.esm.js
CHANGED
|
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
|
|
|
23899
23899
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23900
23900
|
// match is required
|
|
23901
23901
|
if (!match) {
|
|
23902
|
-
return
|
|
23902
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23903
23903
|
v: nextMatch1
|
|
23904
23904
|
};
|
|
23905
23905
|
}
|
|
23906
23906
|
var token = match.token, offset = match.offset;
|
|
23907
23907
|
i1 += offset;
|
|
23908
23908
|
if (token === " ") {
|
|
23909
|
-
return
|
|
23909
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23910
23910
|
}
|
|
23911
23911
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23912
23912
|
token
|
|
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
|
|
|
23925
23925
|
if (contextKeys.some(function(el) {
|
|
23926
23926
|
return el.startsWith(name);
|
|
23927
23927
|
})) {
|
|
23928
|
-
return
|
|
23928
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23929
23929
|
}
|
|
23930
23930
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23931
23931
|
return el === name;
|
|
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
|
|
|
23944
23944
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23945
23945
|
return el.startsWith(name);
|
|
23946
23946
|
})) {
|
|
23947
|
-
return
|
|
23947
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23948
23948
|
}
|
|
23949
|
-
return
|
|
23949
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23950
23950
|
v: nextMatch1
|
|
23951
23951
|
};
|
|
23952
23952
|
};
|
|
@@ -28343,7 +28343,6 @@ function _instanceof(left, right) {
|
|
|
28343
28343
|
|
|
28344
28344
|
var toastify = toastify$1.exports;
|
|
28345
28345
|
|
|
28346
|
-
const BASE_URL = 'https://cdn.jsdelivr.net/npm';
|
|
28347
28346
|
const Toastify = toastify;
|
|
28348
28347
|
let NotificationService = class NotificationService {
|
|
28349
28348
|
async information(params, _pinsSettingsList, _context) {
|
|
@@ -28384,12 +28383,15 @@ let NotificationService = class NotificationService {
|
|
|
28384
28383
|
return window.alert(message);
|
|
28385
28384
|
}
|
|
28386
28385
|
constructor(){
|
|
28386
|
+
const globalInstance = typeof window === 'undefined' ? global : window;
|
|
28387
|
+
const config = globalInstance.__DIGIPAIR_CONFIG__;
|
|
28388
|
+
const version = '1.12.0';
|
|
28387
28389
|
let link = document.querySelector('#digipair-skill-web-notification-css');
|
|
28388
28390
|
if (!link) {
|
|
28389
28391
|
link = document.createElement('link');
|
|
28390
28392
|
link.id = 'digipair-skill-web-notification-css';
|
|
28391
28393
|
link.rel = 'stylesheet';
|
|
28392
|
-
link.href = `${BASE_URL}/toastify-js/src/toastify.min.css`;
|
|
28394
|
+
link.href = `${config.BASE_URL}/toastify-js@${version}/src/toastify.min.css`;
|
|
28393
28395
|
link.type = 'text/css';
|
|
28394
28396
|
document.head.appendChild(link);
|
|
28395
28397
|
}
|