@teipublisher/pb-components 2.12.0 → 2.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teipublisher/pb-components",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "Collection of webcomponents underlying TEI Publisher",
5
5
  "repository": "https://github.com/eeditiones/tei-publisher-components.git",
6
6
  "main": "index.html",
@@ -28,7 +28,7 @@
28
28
  "lint": "npm run lint:eslint && npm run lint:prettier",
29
29
  "format": "npm run format:eslint && npm run format:prettier",
30
30
  "clean": "npm run clean-lib && rimraf dist css images/leaflet demo/build docs",
31
- "clean-lib": "rimraf -g lib/leaflet* lib/paged* lib/web-midi-player.js lib/openseadragon*",
31
+ "clean-lib": "rimraf -g lib/leaflet* lib/paged* lib/web-midi-player.js lib/openseadragon* lib/airtable.browser.js",
32
32
  "prepare": "npm run docs && npm run build:production",
33
33
  "semantic-release": "semantic-release",
34
34
  "gh-pages": "node gh-pages.js"
@@ -68,6 +68,7 @@
68
68
  "@vaadin/vaadin-tabs": "^3.2.0",
69
69
  "@vaadin/vaadin-upload": "^4.4.0",
70
70
  "@webcomponents/webcomponentsjs": "latest",
71
+ "airtable": "^0.12.2",
71
72
  "animejs": "^3.2.0",
72
73
  "browser-fs-access": "^0.34.1",
73
74
  "construct-style-sheets-polyfill": "^3.1.0",
@@ -55,7 +55,7 @@ export class Airtable extends Registry {
55
55
 
56
56
  _init() {
57
57
  window.ESGlobalBridge.requestAvailability();
58
- const path = resolveURL('https://cdn.jsdelivr.net/npm/airtable@0.11.1/build/airtable.browser.js');
58
+ const path = resolveURL('../lib/airtable.browser.js');
59
59
  window.ESGlobalBridge.instance.load('airtable', path);
60
60
  window.addEventListener(
61
61
  'es-bridge-airtable-loaded',
@@ -149,11 +149,12 @@ export class Airtable extends Registry {
149
149
  });
150
150
  const regex = new RegExp(this.tokenizeChars);
151
151
  this.tokenize.forEach((key) => {
152
- strings = strings.concat(data[key].split(regex));
152
+ if (data[key]) {
153
+ strings = strings.concat(data[key].split(regex));
154
+ }
153
155
  });
154
156
  strings = strings.filter(tok => !/^\d+$/.test(tok));
155
157
  strings.sort((s1, s2) => s2.length - s1.length);
156
- console.log(strings);
157
158
  container.innerHTML = expandTemplate(this.infoExpr, data);
158
159
 
159
160
  resolve({