@digipair/skill-keycloak 0.65.11 → 0.66.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/index.cjs.js +10 -1
- package/index.esm.js +15 -6
- package/package.json +1 -1
- package/schema.fr.json +12 -0
- package/schema.json +12 -0
package/index.cjs.js
CHANGED
|
@@ -16544,7 +16544,7 @@ let KeycloakService = class KeycloakService {
|
|
|
16544
16544
|
}
|
|
16545
16545
|
async page(params, _pinsSettingsList, context) {
|
|
16546
16546
|
var _context_request_body;
|
|
16547
|
-
const { body, head, ssr = false, styleHtml = '', styleBody = '', url = context.privates.KEYCLOAK_URL, realm = context.privates.KEYCLOAK_REALM, clientId = context.privates.KEYCLOAK_CLIENTID, factoryInitialize = [], browserInitialize = [], browserLoad = [], logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai' } = params;
|
|
16547
|
+
const { body, head, ssr = false, styleHtml = '', styleBody = '', url = context.privates.KEYCLOAK_URL, realm = context.privates.KEYCLOAK_REALM, clientId = context.privates.KEYCLOAK_CLIENTID, factoryInitialize = [], browserInitialize = [], browserLoad = [], confirmBeforeUnload = [], logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai' } = params;
|
|
16548
16548
|
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
16549
16549
|
const preparedData = {};
|
|
16550
16550
|
if (context.request.params[0] === '__digipair_www__') {
|
|
@@ -16714,6 +16714,15 @@ let KeycloakService = class KeycloakService {
|
|
|
16714
16714
|
setTimeout(async () => {
|
|
16715
16715
|
await executePinsList(${JSON.stringify(this.prepareBrowserPinsSettings('browserLoad', browserLoad))}, context);
|
|
16716
16716
|
}, 1);
|
|
16717
|
+
|
|
16718
|
+
window.addEventListener('beforeunload', function (event) {
|
|
16719
|
+
const showConfirmationMessage = await executePinsList(${JSON.stringify(this.prepareBrowserPinsSettings('confirmBeforeUnload', confirmBeforeUnload))}, context);
|
|
16720
|
+
|
|
16721
|
+
if (showConfirmationMessage) {
|
|
16722
|
+
event.preventDefault();
|
|
16723
|
+
event.returnValue = '';
|
|
16724
|
+
}
|
|
16725
|
+
});
|
|
16717
16726
|
</script>
|
|
16718
16727
|
|
|
16719
16728
|
${ssr ? await this.pins2html(body, context) : ''}
|
package/index.esm.js
CHANGED
|
@@ -23907,14 +23907,14 @@ function indent(str, spaces) {
|
|
|
23907
23907
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23908
23908
|
// match is required
|
|
23909
23909
|
if (!match) {
|
|
23910
|
-
return
|
|
23910
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23911
23911
|
v: nextMatch1
|
|
23912
23912
|
};
|
|
23913
23913
|
}
|
|
23914
23914
|
var token = match.token, offset = match.offset;
|
|
23915
23915
|
i1 += offset;
|
|
23916
23916
|
if (token === " ") {
|
|
23917
|
-
return
|
|
23917
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23918
23918
|
}
|
|
23919
23919
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
|
23920
23920
|
token
|
|
@@ -23933,7 +23933,7 @@ function indent(str, spaces) {
|
|
|
23933
23933
|
if (contextKeys.some(function(el) {
|
|
23934
23934
|
return el.startsWith(name);
|
|
23935
23935
|
})) {
|
|
23936
|
-
return
|
|
23936
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23937
23937
|
}
|
|
23938
23938
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23939
23939
|
return el === name;
|
|
@@ -23952,9 +23952,9 @@ function indent(str, spaces) {
|
|
|
23952
23952
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23953
23953
|
return el.startsWith(name);
|
|
23954
23954
|
})) {
|
|
23955
|
-
return
|
|
23955
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23956
23956
|
}
|
|
23957
|
-
return
|
|
23957
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23958
23958
|
v: nextMatch1
|
|
23959
23959
|
};
|
|
23960
23960
|
};
|
|
@@ -44572,7 +44572,7 @@ let KeycloakService = class KeycloakService {
|
|
|
44572
44572
|
}
|
|
44573
44573
|
async page(params, _pinsSettingsList, context) {
|
|
44574
44574
|
var _context_request_body;
|
|
44575
|
-
const { body, head, ssr = false, styleHtml = '', styleBody = '', url = context.privates.KEYCLOAK_URL, realm = context.privates.KEYCLOAK_REALM, clientId = context.privates.KEYCLOAK_CLIENTID, factoryInitialize = [], browserInitialize = [], browserLoad = [], logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai' } = params;
|
|
44575
|
+
const { body, head, ssr = false, styleHtml = '', styleBody = '', url = context.privates.KEYCLOAK_URL, realm = context.privates.KEYCLOAK_REALM, clientId = context.privates.KEYCLOAK_CLIENTID, factoryInitialize = [], browserInitialize = [], browserLoad = [], confirmBeforeUnload = [], logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai' } = params;
|
|
44576
44576
|
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
44577
44577
|
const preparedData = {};
|
|
44578
44578
|
if (context.request.params[0] === '__digipair_www__') {
|
|
@@ -44742,6 +44742,15 @@ let KeycloakService = class KeycloakService {
|
|
|
44742
44742
|
setTimeout(async () => {
|
|
44743
44743
|
await executePinsList(${JSON.stringify(this.prepareBrowserPinsSettings('browserLoad', browserLoad))}, context);
|
|
44744
44744
|
}, 1);
|
|
44745
|
+
|
|
44746
|
+
window.addEventListener('beforeunload', function (event) {
|
|
44747
|
+
const showConfirmationMessage = await executePinsList(${JSON.stringify(this.prepareBrowserPinsSettings('confirmBeforeUnload', confirmBeforeUnload))}, context);
|
|
44748
|
+
|
|
44749
|
+
if (showConfirmationMessage) {
|
|
44750
|
+
event.preventDefault();
|
|
44751
|
+
event.returnValue = '';
|
|
44752
|
+
}
|
|
44753
|
+
});
|
|
44745
44754
|
</script>
|
|
44746
44755
|
|
|
44747
44756
|
${ssr ? await this.pins2html(body, context) : ''}
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -260,6 +260,18 @@
|
|
|
260
260
|
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "confirmBeforeUnload",
|
|
266
|
+
"summary": "Confirmation avant de quitter",
|
|
267
|
+
"required": false,
|
|
268
|
+
"description": "Message de confirmation avant de quitter la page",
|
|
269
|
+
"schema": {
|
|
270
|
+
"type": "array",
|
|
271
|
+
"items": {
|
|
272
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
263
275
|
}
|
|
264
276
|
]
|
|
265
277
|
},
|
package/schema.json
CHANGED
|
@@ -260,6 +260,18 @@
|
|
|
260
260
|
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "confirmBeforeUnload",
|
|
266
|
+
"summary": "Confirmation before leaving the page",
|
|
267
|
+
"required": false,
|
|
268
|
+
"description": "Confirmation message before leaving the page",
|
|
269
|
+
"schema": {
|
|
270
|
+
"type": "array",
|
|
271
|
+
"items": {
|
|
272
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
263
275
|
}
|
|
264
276
|
]
|
|
265
277
|
},
|