@digipair/skill-keycloak 0.11.2 → 0.11.4
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 +9 -9
- package/index.esm.js +9 -9
- package/package.json +1 -1
- package/schema.json +9 -0
package/index.cjs.js
CHANGED
|
@@ -23522,14 +23522,14 @@ function indent(str, spaces) {
|
|
|
23522
23522
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23523
23523
|
// match is required
|
|
23524
23524
|
if (!match) {
|
|
23525
|
-
return
|
|
23525
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23526
23526
|
v: nextMatch1
|
|
23527
23527
|
};
|
|
23528
23528
|
}
|
|
23529
23529
|
var token = match.token, offset = match.offset;
|
|
23530
23530
|
i1 += offset;
|
|
23531
23531
|
if (token === " ") {
|
|
23532
|
-
return
|
|
23532
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23533
23533
|
}
|
|
23534
23534
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
|
23535
23535
|
token
|
|
@@ -23548,7 +23548,7 @@ function indent(str, spaces) {
|
|
|
23548
23548
|
if (contextKeys.some(function(el) {
|
|
23549
23549
|
return el.startsWith(name);
|
|
23550
23550
|
})) {
|
|
23551
|
-
return
|
|
23551
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23552
23552
|
}
|
|
23553
23553
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23554
23554
|
return el === name;
|
|
@@ -23567,9 +23567,9 @@ function indent(str, spaces) {
|
|
|
23567
23567
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23568
23568
|
return el.startsWith(name);
|
|
23569
23569
|
})) {
|
|
23570
|
-
return
|
|
23570
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23571
23571
|
}
|
|
23572
|
-
return
|
|
23572
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23573
23573
|
v: nextMatch1
|
|
23574
23574
|
};
|
|
23575
23575
|
};
|
|
@@ -33897,8 +33897,8 @@ let KeycloakService = class KeycloakService {
|
|
|
33897
33897
|
}
|
|
33898
33898
|
async page(params, _pinsSettingsList, context) {
|
|
33899
33899
|
var _context_request_body;
|
|
33900
|
-
const { body, title = 'Digipair', favicon = 'https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1717769492/logo-digipair_oyvvxz.png?_s=public-apps', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', url = context.privates.KEYCLOAK_URL, realm = context.privates.KEYCLOAK_REALM, clientId = context.privates.KEYCLOAK_CLIENTID,
|
|
33901
|
-
const engineVersion =
|
|
33900
|
+
const { body, title = 'Digipair', favicon = 'https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1717769492/logo-digipair_oyvvxz.png?_s=public-apps', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', 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;
|
|
33901
|
+
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
33902
33902
|
const preparedData = {};
|
|
33903
33903
|
if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
|
|
33904
33904
|
var _pinsSettings_properties, _context_request_headers_authorization, _pinsSettings_properties1, _pinsSettings_properties2;
|
|
@@ -33936,7 +33936,7 @@ let KeycloakService = class KeycloakService {
|
|
|
33936
33936
|
import '${url}/js/keycloak.js';
|
|
33937
33937
|
import { config, executePinsList, generateElementFromPins } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
33938
33938
|
|
|
33939
|
-
const serverUrl = '${
|
|
33939
|
+
const serverUrl = '${factoryUrl}';
|
|
33940
33940
|
const keycloakService = ${this.skillKeycloak};
|
|
33941
33941
|
|
|
33942
33942
|
const originalFetch = window.fetch;
|
|
@@ -33976,7 +33976,7 @@ let KeycloakService = class KeycloakService {
|
|
|
33976
33976
|
keycloakService.login(),
|
|
33977
33977
|
};
|
|
33978
33978
|
|
|
33979
|
-
config.set('LIBRARIES', { '@digipair/skill-keycloak': skillWeb
|
|
33979
|
+
config.set('LIBRARIES', { '@digipair/skill-keycloak': skillWeb });
|
|
33980
33980
|
config.set('BASE_URL', '${baseUrl}');
|
|
33981
33981
|
|
|
33982
33982
|
// Keycloak initialization
|
package/index.esm.js
CHANGED
|
@@ -23493,14 +23493,14 @@ function indent(str, spaces) {
|
|
|
23493
23493
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23494
23494
|
// match is required
|
|
23495
23495
|
if (!match) {
|
|
23496
|
-
return
|
|
23496
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23497
23497
|
v: nextMatch1
|
|
23498
23498
|
};
|
|
23499
23499
|
}
|
|
23500
23500
|
var token = match.token, offset = match.offset;
|
|
23501
23501
|
i1 += offset;
|
|
23502
23502
|
if (token === " ") {
|
|
23503
|
-
return
|
|
23503
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23504
23504
|
}
|
|
23505
23505
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
|
23506
23506
|
token
|
|
@@ -23519,7 +23519,7 @@ function indent(str, spaces) {
|
|
|
23519
23519
|
if (contextKeys.some(function(el) {
|
|
23520
23520
|
return el.startsWith(name);
|
|
23521
23521
|
})) {
|
|
23522
|
-
return
|
|
23522
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23523
23523
|
}
|
|
23524
23524
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23525
23525
|
return el === name;
|
|
@@ -23538,9 +23538,9 @@ function indent(str, spaces) {
|
|
|
23538
23538
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23539
23539
|
return el.startsWith(name);
|
|
23540
23540
|
})) {
|
|
23541
|
-
return
|
|
23541
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23542
23542
|
}
|
|
23543
|
-
return
|
|
23543
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23544
23544
|
v: nextMatch1
|
|
23545
23545
|
};
|
|
23546
23546
|
};
|
|
@@ -33868,8 +33868,8 @@ let KeycloakService = class KeycloakService {
|
|
|
33868
33868
|
}
|
|
33869
33869
|
async page(params, _pinsSettingsList, context) {
|
|
33870
33870
|
var _context_request_body;
|
|
33871
|
-
const { body, title = 'Digipair', favicon = 'https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1717769492/logo-digipair_oyvvxz.png?_s=public-apps', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', url = context.privates.KEYCLOAK_URL, realm = context.privates.KEYCLOAK_REALM, clientId = context.privates.KEYCLOAK_CLIENTID,
|
|
33872
|
-
const engineVersion =
|
|
33871
|
+
const { body, title = 'Digipair', favicon = 'https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1717769492/logo-digipair_oyvvxz.png?_s=public-apps', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', 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;
|
|
33872
|
+
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
33873
33873
|
const preparedData = {};
|
|
33874
33874
|
if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
|
|
33875
33875
|
var _pinsSettings_properties, _context_request_headers_authorization, _pinsSettings_properties1, _pinsSettings_properties2;
|
|
@@ -33907,7 +33907,7 @@ let KeycloakService = class KeycloakService {
|
|
|
33907
33907
|
import '${url}/js/keycloak.js';
|
|
33908
33908
|
import { config, executePinsList, generateElementFromPins } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
33909
33909
|
|
|
33910
|
-
const serverUrl = '${
|
|
33910
|
+
const serverUrl = '${factoryUrl}';
|
|
33911
33911
|
const keycloakService = ${this.skillKeycloak};
|
|
33912
33912
|
|
|
33913
33913
|
const originalFetch = window.fetch;
|
|
@@ -33947,7 +33947,7 @@ let KeycloakService = class KeycloakService {
|
|
|
33947
33947
|
keycloakService.login(),
|
|
33948
33948
|
};
|
|
33949
33949
|
|
|
33950
|
-
config.set('LIBRARIES', { '@digipair/skill-keycloak': skillWeb
|
|
33950
|
+
config.set('LIBRARIES', { '@digipair/skill-keycloak': skillWeb });
|
|
33951
33951
|
config.set('BASE_URL', '${baseUrl}');
|
|
33952
33952
|
|
|
33953
33953
|
// Keycloak initialization
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -176,6 +176,15 @@
|
|
|
176
176
|
"type": "string"
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
|
+
{
|
|
180
|
+
"name": "factoryUrl",
|
|
181
|
+
"summary": "Adresse de la factory",
|
|
182
|
+
"required": false,
|
|
183
|
+
"description": "Adresse de la factory Digipair",
|
|
184
|
+
"schema": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
179
188
|
{
|
|
180
189
|
"name": "factoryInitialize",
|
|
181
190
|
"summary": "Lors de la l'initialisation coté factory",
|