@riboseinc/anafero-cli 0.0.59 → 0.0.61

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/build-site.css CHANGED
@@ -31869,7 +31869,11 @@ tbody.table_0cdc494a_hm005a_spectrum-Table-body .table_0cdc494a_hm005a_spectrum-
31869
31869
  var(--spectrum-alias-highlight-hover) 2rem);
31870
31870
  color: var(--spectrum-accent-color-1300);
31871
31871
  > li {
31872
- display: inline-block;
31872
+ display: inline;
31873
+ word-break: keep-all;
31874
+ overflow-wrap: break-word;
31875
+ white-space-collapse: collapse;
31876
+ text-wrap-style: balance;
31873
31877
  > a {
31874
31878
  &:link,
31875
31879
  &:visited {
package/build-site.mjs CHANGED
@@ -316902,8 +316902,9 @@ function processAttributes(el, locateResource, reverseResource, onIntegrityViola
316902
316902
  el.setAttribute("id", inferredID);
316903
316903
  } else if (["href", "src"].includes(attr.name)) {
316904
316904
  const isHTTPHref = attr.name === "href" && attr.value.startsWith("http");
316905
+ const isMailtoHref = attr.name === "href" && attr.value.startsWith("mailto:");
316905
316906
  const isDataSrc = attr.name === "src" && attr.value.startsWith("data:");
316906
- if (!isHTTPHref && !isDataSrc) {
316907
+ if (!isHTTPHref && !isDataSrc && !isMailtoHref) {
316907
316908
  let resolvedResourcePath;
316908
316909
  try {
316909
316910
  resolvedResourcePath = locateResource(attr.value);
@@ -316991,6 +316992,9 @@ function normalizeString(path3, allowAboveRoot = false, separator = "/", isPathS
316991
316992
  }
316992
316993
 
316993
316994
  // ../anafero/ContentReader.mts
316995
+ function isExternalReference(uri) {
316996
+ return uri.startsWith("http") || uri.startsWith("mailto:") || uri.startsWith("ftp:");
316997
+ }
316994
316998
  var makeContentReader = async function(entryPointURI, storeAdapters, findContentAdapter, { fetchBlob, reportProgress, decodeXML, cache: cache3 }) {
316995
316999
  const canonicalURIs = {};
316996
317000
  const originalURIs = {};
@@ -317044,7 +317048,11 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
317044
317048
  expanded = normalizedFileURI;
317045
317049
  }
317046
317050
  } else {
317047
- expanded = uri;
317051
+ if (isExternalReference(uri)) {
317052
+ expanded = uri;
317053
+ } else {
317054
+ expanded = `${uri}@${entryPointURI2}`;
317055
+ }
317048
317056
  }
317049
317057
  return expanded;
317050
317058
  }
@@ -317248,7 +317256,11 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
317248
317256
  seen.add(seenKey);
317249
317257
  newTargets.push(rel.target);
317250
317258
  } else {
317251
- console.warn("Duplicate rel", currentResource, rel);
317259
+ console.warn(
317260
+ "Omitting from graph a duplicate relation from",
317261
+ currentResource,
317262
+ rel
317263
+ );
317252
317264
  }
317253
317265
  }
317254
317266
  queue.push(...newTargets);
@@ -317642,11 +317654,12 @@ ${inject.head ?? ""}`;
317642
317654
  meta,
317643
317655
  relations
317644
317656
  );
317645
- pathProgress({ state: "generating page content & assets" });
317657
+ pathProgress({ state: "updating artifacts" });
317646
317658
  if (content?.content) {
317647
317659
  if (meta.primaryLanguageID) {
317648
317660
  allLanguages.add(meta.primaryLanguageID);
317649
317661
  }
317662
+ pathProgress({ state: "indexing page resource" });
317650
317663
  resourceMap[path3] = resourceURI;
317651
317664
  resourceGraph.push([resourceURI, "isDefinedBy", `${path3}/resource.json`]);
317652
317665
  resourceDescriptions[resourceURI] = resourceMeta;
@@ -317658,7 +317671,7 @@ ${inject.head ?? ""}`;
317658
317671
  extractRelationsForIndexing(resourceURI, relations, reader.exists).join("").trim()
317659
317672
  )
317660
317673
  };
317661
- pathProgress({ state: "processing on-page subresources" });
317674
+ pathProgress({ state: "indexing on-page subresources" });
317662
317675
  const describedResourceIDs = gatherDescribedResourcesFromJsonifiedProseMirrorNode(
317663
317676
  content.content.contentDoc
317664
317677
  );
@@ -317688,7 +317701,7 @@ ${inject.head ?? ""}`;
317688
317701
  );
317689
317702
  }
317690
317703
  }
317691
- pathProgress({ state: "processing resource assets" });
317704
+ pathProgress({ state: "indexing referenced assets" });
317692
317705
  for (const [, , o2] of relations) {
317693
317706
  if (o2.startsWith("file:")) {
317694
317707
  const filePath = o2.split("file:")[1];
@@ -317711,6 +317724,7 @@ ${inject.head ?? ""}`;
317711
317724
  }
317712
317725
  }
317713
317726
  }
317727
+ pathProgress({ state: "outputting assets" });
317714
317728
  const resourceAssetGenerator = generateResourceAssets(
317715
317729
  resourceURI,
317716
317730
  relations,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riboseinc/anafero-cli",
3
3
  "type": "module",
4
- "version": "0.0.59",
4
+ "version": "0.0.61",
5
5
  "packageManager": "yarn@4.5.0",
6
6
  "bin": {
7
7
  "build-site": "build-site.mjs"