@digipair/skill-keycloak 0.103.0 → 0.103.1
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
CHANGED
@@ -16544,9 +16544,10 @@ 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 = [], confirmBeforeUnload = 'false', 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 = 'false', logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai', keycloakJsUrl = context.privates.KEYCLOAK_JS_URL || process.env['KEYCLOAK_JS_URL'] } = params;
|
16548
16548
|
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
16549
16549
|
const preparedData = {};
|
16550
|
+
const keycloakJs = keycloakJsUrl != null ? keycloakJsUrl : `${url}/js/keycloak.js`;
|
16550
16551
|
if (context.request.params[0] === '__digipair_www__') {
|
16551
16552
|
let result;
|
16552
16553
|
try {
|
@@ -16634,7 +16635,7 @@ let KeycloakService = class KeycloakService {
|
|
16634
16635
|
</head>
|
16635
16636
|
<body style="${styleBody}">
|
16636
16637
|
<script type="module">
|
16637
|
-
import '${
|
16638
|
+
import '${keycloakJs}';
|
16638
16639
|
import { config, executePinsList, generateElementFromPins, applyTemplate } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
16639
16640
|
|
16640
16641
|
const serverUrl = '${factoryUrl}';
|
package/index.esm.js
CHANGED
@@ -44578,9 +44578,10 @@ let KeycloakService = class KeycloakService {
|
|
44578
44578
|
}
|
44579
44579
|
async page(params, _pinsSettingsList, context) {
|
44580
44580
|
var _context_request_body;
|
44581
|
-
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 = 'false', logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai' } = params;
|
44581
|
+
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 = 'false', logged = [], unlogged = [], factoryUrl = context.privates.FACTORY_URL || process.env['FACTORY_URL'] || 'https://factory.digipair.ai', keycloakJsUrl = context.privates.KEYCLOAK_JS_URL || process.env['KEYCLOAK_JS_URL'] } = params;
|
44582
44582
|
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
44583
44583
|
const preparedData = {};
|
44584
|
+
const keycloakJs = keycloakJsUrl != null ? keycloakJsUrl : `${url}/js/keycloak.js`;
|
44584
44585
|
if (context.request.params[0] === '__digipair_www__') {
|
44585
44586
|
let result;
|
44586
44587
|
try {
|
@@ -44668,7 +44669,7 @@ let KeycloakService = class KeycloakService {
|
|
44668
44669
|
</head>
|
44669
44670
|
<body style="${styleBody}">
|
44670
44671
|
<script type="module">
|
44671
|
-
import '${
|
44672
|
+
import '${keycloakJs}';
|
44672
44673
|
import { config, executePinsList, generateElementFromPins, applyTemplate } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
44673
44674
|
|
44674
44675
|
const serverUrl = '${factoryUrl}';
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
@@ -289,6 +289,15 @@
|
|
289
289
|
"type": "string"
|
290
290
|
}
|
291
291
|
},
|
292
|
+
{
|
293
|
+
"name": "keycloakJsUrl",
|
294
|
+
"summary": "URL du Keycloak JS",
|
295
|
+
"required": false,
|
296
|
+
"description": "URL du script Keycloak JS à inclure dans la page (par défaut pris depuis le paramètre 'url')",
|
297
|
+
"schema": {
|
298
|
+
"type": "string"
|
299
|
+
}
|
300
|
+
},
|
292
301
|
{
|
293
302
|
"name": "factoryInitialize",
|
294
303
|
"summary": "Lors de l'initialisation coté factory",
|
package/schema.json
CHANGED
@@ -289,6 +289,15 @@
|
|
289
289
|
"type": "string"
|
290
290
|
}
|
291
291
|
},
|
292
|
+
{
|
293
|
+
"name": "keycloakJsUrl",
|
294
|
+
"summary": "Keycloak JS URL",
|
295
|
+
"required": false,
|
296
|
+
"description": "URL of the Keycloak JS script to include in the page (defaults to taken from the 'url' parameter)",
|
297
|
+
"schema": {
|
298
|
+
"type": "string"
|
299
|
+
}
|
300
|
+
},
|
292
301
|
{
|
293
302
|
"name": "factoryInitialize",
|
294
303
|
"summary": "During factory initialization",
|
File without changes
|
File without changes
|