@riboseinc/anafero-cli 0.0.51 → 0.0.53

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
@@ -31889,15 +31889,17 @@ tbody.table_0cdc494a_hm005a_spectrum-Table-body .table_0cdc494a_hm005a_spectrum-
31889
31889
  background: var(--spectrum-alias-background-color-default);
31890
31890
  border: none;
31891
31891
  border-radius: 0;
31892
- .style_navListViewItemLink {
31892
+ .style_navListViewItemWithLink {
31893
31893
  white-space: nowrap;
31894
31894
  overflow: hidden;
31895
31895
  text-overflow: ellipsis;
31896
- &:link,
31897
- &:hover,
31898
- &:visited {
31899
- text-decoration: none;
31900
- color: inherit;
31896
+ & > a {
31897
+ &:link,
31898
+ &:hover,
31899
+ &:visited {
31900
+ text-decoration: none;
31901
+ color: inherit;
31902
+ }
31901
31903
  }
31902
31904
  }
31903
31905
  }
package/build-site.mjs CHANGED
@@ -44507,7 +44507,7 @@ var require_react_reconciler_development = __commonJS({
44507
44507
  var supportsTestSelectors = $$$hostConfig.supportsTestSelectors;
44508
44508
  var findFiberRoot = $$$hostConfig.findFiberRoot;
44509
44509
  var getBoundingRect = $$$hostConfig.getBoundingRect;
44510
- var getTextContent = $$$hostConfig.getTextContent;
44510
+ var getTextContent2 = $$$hostConfig.getTextContent;
44511
44511
  var isHiddenSubtree = $$$hostConfig.isHiddenSubtree;
44512
44512
  var matchAccessibilityRole = $$$hostConfig.matchAccessibilityRole;
44513
44513
  var setFocusIfFocusable = $$$hostConfig.setFocusIfFocusable;
@@ -55971,7 +55971,7 @@ var require_react_reconciler_development = __commonJS({
55971
55971
  break;
55972
55972
  case TEXT_TYPE:
55973
55973
  if (fiber.tag === HostComponent || fiber.tag === HostText) {
55974
- var textContent = getTextContent(fiber);
55974
+ var textContent = getTextContent2(fiber);
55975
55975
  if (textContent !== null && textContent.indexOf(selector.value) >= 0) {
55976
55976
  return true;
55977
55977
  }
@@ -313499,9 +313499,11 @@ __export(anafero_exports, {
313499
313499
  gatherDescribedResourcesFromJsonifiedProseMirrorNode: () => gatherDescribedResourcesFromJsonifiedProseMirrorNode,
313500
313500
  gatherTextFromJsonifiedProseMirrorNode: () => gatherTextFromJsonifiedProseMirrorNode,
313501
313501
  getAllParentPaths: () => getAllParentPaths,
313502
+ getTextContent: () => getTextContent,
313502
313503
  isURIString: () => isURIString,
313503
313504
  makeDummyInMemoryCache: () => makeDummyInMemoryCache,
313504
313505
  parseModuleRef: () => parseModuleRef,
313506
+ resolveChain: () => resolveChain,
313505
313507
  stripLeadingSlash: () => stripLeadingSlash,
313506
313508
  stripTrailingSlash: () => stripTrailingSlash,
313507
313509
  titleSchema: () => titleSchema
@@ -313568,6 +313570,9 @@ function getAllParentPaths(aPath) {
313568
313570
  return parents;
313569
313571
  }
313570
313572
 
313573
+ // ../anafero/util/graph-query.mts
313574
+ init_cjs_shim();
313575
+
313571
313576
  // ../anafero/URI.mts
313572
313577
  init_cjs_shim();
313573
313578
  function makeURI(input) {
@@ -313600,6 +313605,41 @@ function isURIString(input) {
313600
313605
  }
313601
313606
  var pattern2 = new RegExp("([A-Za-z][A-Za-z0-9+\\-.]{2,6}):(?:(//)(?:((?:[A-Za-z0-9\\-._~!$&'()*+,;=:]|%[0-9A-Fa-f]{2})*)@)?((?:\\[(?:(?:(?:(?:[0-9A-Fa-f]{1,4}:){6}|::(?:[0-9A-Fa-f]{1,4}:){5}|(?:[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,1}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){3}|(?:(?:[0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})?::(?:[0-9A-Fa-f]{1,4}:){2}|(?:(?:[0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}:|(?:(?:[0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})?::)(?:[0-9A-Fa-f]{1,4}:[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(?:(?:[0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})?::[0-9A-Fa-f]{1,4}|(?:(?:[0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})?::)|[Vv][0-9A-Fa-f]+\\.[A-Za-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-Za-z0-9\\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*))(?::([0-9]*))?((?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)|/((?:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)?)|((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})+(?:/(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@]|%[0-9A-Fa-f]{2})*)*)|)(?:\\?((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*))?(?:\\#((?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})*))?");
313602
313607
 
313608
+ // ../anafero/util/graph-query.mts
313609
+ function resolveChain(relations, chain, subj_) {
313610
+ if (chain.length === 1) {
313611
+ return relations.filter((rel) => rel[1] === chain[0] && (!subj_ || rel[0] === subj_)).map((rel) => [rel[0], rel[2]]);
313612
+ } else {
313613
+ return relations.filter((rel) => rel[1] === chain[0] && (!subj_ || rel[0] === subj_)).map((rel) => resolveChain(
313614
+ relations,
313615
+ chain.slice(1),
313616
+ rel[2]
313617
+ )).flat();
313618
+ }
313619
+ }
313620
+ function getTextContent(graph, subject, partPredicate) {
313621
+ const allSubparts = (
313622
+ // TODO: subject is really only used to resolve relations,
313623
+ // maybe this can be refactored out of this function.
313624
+ resolveChain(graph, ["hasPart"], subject).flatMap(([partID, partValue]) => {
313625
+ if (!isURIString(partValue)) {
313626
+ if (partValue.startsWith("data:")) {
313627
+ return [""];
313628
+ } else if (partPredicate && !partPredicate(partValue)) {
313629
+ return [""];
313630
+ } else if (partValue.trim() === "") {
313631
+ return [""];
313632
+ } else {
313633
+ return [partValue];
313634
+ }
313635
+ } else {
313636
+ return getTextContent(graph, partValue, partPredicate);
313637
+ }
313638
+ })
313639
+ );
313640
+ return allSubparts;
313641
+ }
313642
+
313603
313643
  // ../firelight-gui/loader.mts
313604
313644
  init_cjs_shim();
313605
313645
 
@@ -316490,7 +316530,7 @@ var style_default = {
316490
316530
  "is-disabled": "style_is-disabled",
316491
316531
  resourceBreadcrumbsNav: "style_resourceBreadcrumbsNav",
316492
316532
  navListView: "style_navListView",
316493
- navListViewItemLink: "style_navListViewItemLink",
316533
+ navListViewItemWithLink: "style_navListViewItemWithLink",
316494
316534
  browserBar: "style_browserBar",
316495
316535
  browserBarTitle: "style_browserBarTitle",
316496
316536
  browserBarTitleLink: "style_browserBarTitleLink",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riboseinc/anafero-cli",
3
3
  "type": "module",
4
- "version": "0.0.51",
4
+ "version": "0.0.53",
5
5
  "packageManager": "yarn@4.5.0",
6
6
  "bin": {
7
7
  "build-site": "build-site.mjs"
Binary file
Binary file