@digipair/skill-web 0.47.4 → 0.47.5

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
@@ -16766,9 +16766,9 @@ let WebService = class WebService {
16766
16766
  }
16767
16767
  }
16768
16768
  async generateElementFromPins(pinsSettings, parent, dom) {
16769
- if (pinsSettings.library !== 'web') {
16770
- require(pinsSettings.library);
16771
- }
16769
+ // if (pinsSettings.library !== 'web') {
16770
+ // require(pinsSettings.library);
16771
+ // }
16772
16772
  const element = dom.window.document.createElement(pinsSettings.element);
16773
16773
  element.setAttribute('data-ssr', '1');
16774
16774
  // const settings = await preparePinsSettings(pinsSettings, context);
@@ -16790,7 +16790,7 @@ let WebService = class WebService {
16790
16790
  }
16791
16791
  async page(params, _pinsSettingsList, context) {
16792
16792
  var _context_request_body;
16793
- 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', factoryInitialize = [], browserInitialize = [], browserLoad = [] } = params;
16793
+ const { body, head, styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', factoryInitialize = [], browserInitialize = [], browserLoad = [] } = params;
16794
16794
  const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
16795
16795
  const preparedData = {};
16796
16796
  if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
@@ -16803,10 +16803,12 @@ let WebService = class WebService {
16803
16803
  <!DOCTYPE html>
16804
16804
  <html style="${styleHtml}">
16805
16805
  <head>
16806
- <meta charset="UTF-8" />
16807
- <title>${title}</title>
16808
- <meta name="viewport" content="width=device-width, initial-scale=1" />
16809
- <link rel="icon" type="image/x-icon" href="${favicon}">
16806
+ ${head ? await this.pins2html(head) : `
16807
+ <meta charset="UTF-8" />
16808
+ <title>Digipair</title>
16809
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
16810
+ <link rel="icon" type="image/x-icon" href="https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1717769492/logo-digipair_oyvvxz.png?_s=public-apps">
16811
+ `}
16810
16812
  </head>
16811
16813
  <body style="${styleBody}">
16812
16814
  <script type="module">
package/index.esm.js CHANGED
@@ -40586,14 +40586,14 @@ function indent(str, spaces) {
40586
40586
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
40587
40587
  // match is required
40588
40588
  if (!match) {
40589
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
40589
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
40590
40590
  v: nextMatch1
40591
40591
  };
40592
40592
  }
40593
40593
  var token = match.token, offset = match.offset;
40594
40594
  i1 += offset;
40595
40595
  if (token === " ") {
40596
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
40596
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
40597
40597
  }
40598
40598
  tokens1 = _to_consumable_array$1(tokens1).concat([
40599
40599
  token
@@ -40612,7 +40612,7 @@ function indent(str, spaces) {
40612
40612
  if (contextKeys.some(function(el) {
40613
40613
  return el.startsWith(name);
40614
40614
  })) {
40615
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
40615
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
40616
40616
  }
40617
40617
  if (dateTimeIdentifiers.some(function(el) {
40618
40618
  return el === name;
@@ -40631,9 +40631,9 @@ function indent(str, spaces) {
40631
40631
  if (dateTimeIdentifiers.some(function(el) {
40632
40632
  return el.startsWith(name);
40633
40633
  })) {
40634
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
40634
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
40635
40635
  }
40636
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
40636
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
40637
40637
  v: nextMatch1
40638
40638
  };
40639
40639
  };
@@ -44705,9 +44705,9 @@ let WebService = class WebService {
44705
44705
  }
44706
44706
  }
44707
44707
  async generateElementFromPins(pinsSettings, parent, dom) {
44708
- if (pinsSettings.library !== 'web') {
44709
- require(pinsSettings.library);
44710
- }
44708
+ // if (pinsSettings.library !== 'web') {
44709
+ // require(pinsSettings.library);
44710
+ // }
44711
44711
  const element = dom.window.document.createElement(pinsSettings.element);
44712
44712
  element.setAttribute('data-ssr', '1');
44713
44713
  // const settings = await preparePinsSettings(pinsSettings, context);
@@ -44729,7 +44729,7 @@ let WebService = class WebService {
44729
44729
  }
44730
44730
  async page(params, _pinsSettingsList, context) {
44731
44731
  var _context_request_body;
44732
- 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', factoryInitialize = [], browserInitialize = [], browserLoad = [] } = params;
44732
+ const { body, head, styleHtml = '', styleBody = '', baseUrl = 'https://cdn.jsdelivr.net/npm', factoryInitialize = [], browserInitialize = [], browserLoad = [] } = params;
44733
44733
  const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
44734
44734
  const preparedData = {};
44735
44735
  if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
@@ -44742,10 +44742,12 @@ let WebService = class WebService {
44742
44742
  <!DOCTYPE html>
44743
44743
  <html style="${styleHtml}">
44744
44744
  <head>
44745
- <meta charset="UTF-8" />
44746
- <title>${title}</title>
44747
- <meta name="viewport" content="width=device-width, initial-scale=1" />
44748
- <link rel="icon" type="image/x-icon" href="${favicon}">
44745
+ ${head ? await this.pins2html(head) : `
44746
+ <meta charset="UTF-8" />
44747
+ <title>Digipair</title>
44748
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
44749
+ <link rel="icon" type="image/x-icon" href="https://res.cloudinary.com/do87nxq3l/image/upload/fl_preserve_transparency/v1717769492/logo-digipair_oyvvxz.png?_s=public-apps">
44750
+ `}
44749
44751
  </head>
44750
44752
  <body style="${styleBody}">
44751
44753
  <script type="module">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web",
3
- "version": "0.47.4",
3
+ "version": "0.47.5",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"