@digitalculture/ochre-sdk 0.4.12 → 0.4.13

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/dist/index.cjs CHANGED
@@ -316,6 +316,9 @@ function parseStringDocumentItem(item, footnotes) {
316
316
  return `<TooltipSpan type="externalDocument" ${linkContent !== null ? `content="${linkContent}"` : ""}>${itemString}</TooltipSpan>`;
317
317
  }
318
318
  }
319
+ case "webpage": {
320
+ return `<ExternalLink href="${linkResource.href}" type="webpage" ${linkContent !== null ? `content="${linkContent}"` : ""}>${itemString}</ExternalLink>`;
321
+ }
319
322
  default: {
320
323
  return "";
321
324
  }
package/dist/index.d.cts CHANGED
@@ -1028,6 +1028,7 @@ type OchreLinkItem = {
1028
1028
  widthPreview?: number;
1029
1029
  height?: number;
1030
1030
  width?: number;
1031
+ href?: string;
1031
1032
  };
1032
1033
 
1033
1034
  /**
package/dist/index.d.ts CHANGED
@@ -1028,6 +1028,7 @@ type OchreLinkItem = {
1028
1028
  widthPreview?: number;
1029
1029
  height?: number;
1030
1030
  width?: number;
1031
+ href?: string;
1031
1032
  };
1032
1033
 
1033
1034
  /**
package/dist/index.js CHANGED
@@ -239,6 +239,9 @@ function parseStringDocumentItem(item, footnotes) {
239
239
  return `<TooltipSpan type="externalDocument" ${linkContent !== null ? `content="${linkContent}"` : ""}>${itemString}</TooltipSpan>`;
240
240
  }
241
241
  }
242
+ case "webpage": {
243
+ return `<ExternalLink href="${linkResource.href}" type="webpage" ${linkContent !== null ? `content="${linkContent}"` : ""}>${itemString}</ExternalLink>`;
244
+ }
242
245
  default: {
243
246
  return "";
244
247
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",