@digipair/skill-web 0.4.24 → 0.4.25

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
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
23510
23510
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23511
23511
  // match is required
23512
23512
  if (!match) {
23513
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23513
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23514
23514
  v: nextMatch1
23515
23515
  };
23516
23516
  }
23517
23517
  var token = match.token, offset = match.offset;
23518
23518
  i1 += offset;
23519
23519
  if (token === " ") {
23520
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23520
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23521
23521
  }
23522
23522
  tokens1 = _to_consumable_array$1(tokens1).concat([
23523
23523
  token
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
23536
23536
  if (contextKeys.some(function(el) {
23537
23537
  return el.startsWith(name);
23538
23538
  })) {
23539
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23539
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23540
23540
  }
23541
23541
  if (dateTimeIdentifiers.some(function(el) {
23542
23542
  return el === name;
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
23555
23555
  if (dateTimeIdentifiers.some(function(el) {
23556
23556
  return el.startsWith(name);
23557
23557
  })) {
23558
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23558
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23559
23559
  }
23560
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23560
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23561
23561
  v: nextMatch1
23562
23562
  };
23563
23563
  };
@@ -27460,7 +27460,7 @@ const preparePinsSettings = async (settings, context)=>{
27460
27460
 
27461
27461
  let WebService = class WebService {
27462
27462
  async page(params, _pinsSettingsList, context) {
27463
- const { body, data = [], title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {} } = params;
27463
+ const { body, data = [], title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {} } = params;
27464
27464
  const engineVersion = libraries['@digipair/engine'] || 'latest';
27465
27465
  const preparedData = {};
27466
27466
  for (const item of data){
@@ -27468,13 +27468,13 @@ let WebService = class WebService {
27468
27468
  }
27469
27469
  const html = `
27470
27470
  <!DOCTYPE html>
27471
- <html>
27471
+ <html style=${styleHtml}>
27472
27472
  <head>
27473
27473
  <meta charset="UTF-8" />
27474
27474
  <title>${title}</title>
27475
27475
  <link rel="icon" type="image/x-icon" href="${favicon}">
27476
27476
  </head>
27477
- <body>
27477
+ <body style=${styleBody}>
27478
27478
  <script type="module">
27479
27479
  import { config, generateElementFromPins } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
27480
27480
 
package/index.esm.js CHANGED
@@ -27438,7 +27438,7 @@ const preparePinsSettings = async (settings, context)=>{
27438
27438
 
27439
27439
  let WebService = class WebService {
27440
27440
  async page(params, _pinsSettingsList, context) {
27441
- const { body, data = [], title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {} } = params;
27441
+ const { body, data = [], title = 'Digipair', favicon = 'https://www.digipair.ai/assets/images/favicon.ico', styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', libraries = {} } = params;
27442
27442
  const engineVersion = libraries['@digipair/engine'] || 'latest';
27443
27443
  const preparedData = {};
27444
27444
  for (const item of data){
@@ -27446,13 +27446,13 @@ let WebService = class WebService {
27446
27446
  }
27447
27447
  const html = `
27448
27448
  <!DOCTYPE html>
27449
- <html>
27449
+ <html style=${styleHtml}>
27450
27450
  <head>
27451
27451
  <meta charset="UTF-8" />
27452
27452
  <title>${title}</title>
27453
27453
  <link rel="icon" type="image/x-icon" href="${favicon}">
27454
27454
  </head>
27455
- <body>
27455
+ <body style=${styleBody}>
27456
27456
  <script type="module">
27457
27457
  import { config, generateElementFromPins } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
27458
27458
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web",
3
- "version": "0.4.24",
3
+ "version": "0.4.25",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.json CHANGED
@@ -81,21 +81,21 @@
81
81
  }
82
82
  },
83
83
  {
84
- "name": "baseUrl",
85
- "summary": "Adresse des librairies",
84
+ "name": "styleHtml",
85
+ "summary": "Style CSS du HTML",
86
86
  "required": false,
87
- "description": "Adresse de base des librairies front",
87
+ "description": "Style css de l'élément HTML",
88
88
  "schema": {
89
89
  "type": "string"
90
90
  }
91
91
  },
92
92
  {
93
- "name": "libraries",
94
- "summary": "Librairies",
93
+ "name": "styleBody",
94
+ "summary": "Style CSS du body",
95
95
  "required": false,
96
- "description": "Liste des libraries front à charger",
96
+ "description": "Style css de l'élément BODY",
97
97
  "schema": {
98
- "type": "object"
98
+ "type": "string"
99
99
  }
100
100
  }
101
101
  ]