@riboseinc/anafero-cli 0.0.58 → 0.0.60
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/bootstrap.css +26 -4
- package/bootstrap.css.map +3 -3
- package/bootstrap.js +8 -8
- package/bootstrap.js.map +3 -3
- package/build-site.css +26 -4
- package/build-site.mjs +30 -16
- package/package.json +1 -1
package/build-site.css
CHANGED
|
@@ -31748,13 +31748,13 @@ tbody.table_0cdc494a_hm005a_spectrum-Table-body .table_0cdc494a_hm005a_spectrum-
|
|
|
31748
31748
|
@media (prefers-color-scheme: light) {
|
|
31749
31749
|
& {
|
|
31750
31750
|
color-scheme: light;
|
|
31751
|
-
background: rgb(
|
|
31751
|
+
background: rgb(213, 213, 213);
|
|
31752
31752
|
}
|
|
31753
31753
|
}
|
|
31754
31754
|
@media (prefers-color-scheme: dark) {
|
|
31755
31755
|
& {
|
|
31756
31756
|
color-scheme: dark;
|
|
31757
|
-
background: rgb(
|
|
31757
|
+
background: rgb(0, 0, 0);
|
|
31758
31758
|
}
|
|
31759
31759
|
}
|
|
31760
31760
|
}
|
|
@@ -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
|
|
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 {
|
|
@@ -31892,6 +31896,11 @@ tbody.table_0cdc494a_hm005a_spectrum-Table-body .table_0cdc494a_hm005a_spectrum-
|
|
|
31892
31896
|
}
|
|
31893
31897
|
.style_navListView {
|
|
31894
31898
|
background: var(--spectrum-alias-background-color-default);
|
|
31899
|
+
background-image:
|
|
31900
|
+
linear-gradient(
|
|
31901
|
+
100deg,
|
|
31902
|
+
var(--spectrum-alias-background-color-default) 20%,
|
|
31903
|
+
var(--spectrum-alias-pasteboard-background-color) 180%);
|
|
31895
31904
|
border: none;
|
|
31896
31905
|
border-radius: 0;
|
|
31897
31906
|
.style_navListViewItemWithLink {
|
|
@@ -31916,9 +31925,22 @@ tbody.table_0cdc494a_hm005a_spectrum-Table-body .table_0cdc494a_hm005a_spectrum-
|
|
|
31916
31925
|
width: 58px;
|
|
31917
31926
|
display: flex;
|
|
31918
31927
|
flex-flow: column nowrap;
|
|
31919
|
-
background-color: var(--spectrum-alias-background-color
|
|
31928
|
+
background-color: var(--spectrum-alias-pasteboard-background-color);
|
|
31929
|
+
background-image:
|
|
31930
|
+
linear-gradient(
|
|
31931
|
+
91deg,
|
|
31932
|
+
var(--spectrum-alias-background-color-disabled) 10%,
|
|
31933
|
+
transparent 70%);
|
|
31920
31934
|
color: var(--spectrum-alias-text-color);
|
|
31921
31935
|
z-index: 22;
|
|
31936
|
+
&.style_browserBarExpanded {
|
|
31937
|
+
background-color: var(--spectrum-alias-background-color-default);
|
|
31938
|
+
background-image:
|
|
31939
|
+
linear-gradient(
|
|
31940
|
+
91deg,
|
|
31941
|
+
var(--spectrum-alias-background-color-disabled) 10%,
|
|
31942
|
+
transparent 70%);
|
|
31943
|
+
}
|
|
31922
31944
|
.style_browserBarTitle {
|
|
31923
31945
|
flex: 1;
|
|
31924
31946
|
overflow: hidden;
|
package/build-site.mjs
CHANGED
|
@@ -316548,6 +316548,7 @@ var style_default = {
|
|
|
316548
316548
|
navListView: "style_navListView",
|
|
316549
316549
|
navListViewItemWithLink: "style_navListViewItemWithLink",
|
|
316550
316550
|
browserBar: "style_browserBar",
|
|
316551
|
+
browserBarExpanded: "style_browserBarExpanded",
|
|
316551
316552
|
browserBarTitle: "style_browserBarTitle",
|
|
316552
316553
|
browserBarTitleLink: "style_browserBarTitleLink",
|
|
316553
316554
|
browserBarToolbar: "style_browserBarToolbar",
|
|
@@ -316583,7 +316584,10 @@ var BrowserBar = function({
|
|
|
316583
316584
|
}
|
|
316584
316585
|
return;
|
|
316585
316586
|
}, [!!loadProgress]);
|
|
316586
|
-
return /* @__PURE__ */ import_react124.default.createElement($7167f8da3cce35e4$export$2881499e37b75b9a, { theme: $bf24a13e98395dd3$export$bca14c5b3b88a9c9, ...providerProps }, /* @__PURE__ */ import_react124.default.createElement("div", { className:
|
|
316587
|
+
return /* @__PURE__ */ import_react124.default.createElement($7167f8da3cce35e4$export$2881499e37b75b9a, { theme: $bf24a13e98395dd3$export$bca14c5b3b88a9c9, ...providerProps }, /* @__PURE__ */ import_react124.default.createElement("div", { className: `
|
|
316588
|
+
${style_default.browserBar}
|
|
316589
|
+
${activeBrowsingMode ? style_default.browserBarExpanded : ""}
|
|
316590
|
+
` }, /* @__PURE__ */ import_react124.default.createElement("header", { className: style_default.browserBarTitle }, /* @__PURE__ */ import_react124.default.createElement("h1", null, /* @__PURE__ */ import_react124.default.createElement("a", { href: rootURL, className: style_default.browserBarTitleLink }, title))), showToolbar ? /* @__PURE__ */ import_react124.default.createElement(
|
|
316587
316591
|
$13c3c67164f4d5be$export$4c260019440d418f,
|
|
316588
316592
|
{
|
|
316589
316593
|
"aria-label": "Tools",
|
|
@@ -316845,7 +316849,7 @@ var Resource = import_react127.default.forwardRef(function({
|
|
|
316845
316849
|
className: `${style_default.resource} ${className ?? ""}`,
|
|
316846
316850
|
"aria-selected": ariaSelected
|
|
316847
316851
|
},
|
|
316848
|
-
!hideBreadcrumbs ? /* @__PURE__ */ import_react127.default.createElement(ResourceBreadcrumbs, { parents: resourceNav.breadcrumbs }) : null,
|
|
316852
|
+
!hideBreadcrumbs && resourceNav.breadcrumbs.length > 0 ? /* @__PURE__ */ import_react127.default.createElement(ResourceBreadcrumbs, { parents: resourceNav.breadcrumbs }) : null,
|
|
316849
316853
|
content.content ? /* @__PURE__ */ import_react127.default.createElement(ResourceHelmet, { ...content.content }) : null,
|
|
316850
316854
|
/* @__PURE__ */ import_react127.default.createElement(
|
|
316851
316855
|
Layout,
|
|
@@ -316898,8 +316902,9 @@ function processAttributes(el, locateResource, reverseResource, onIntegrityViola
|
|
|
316898
316902
|
el.setAttribute("id", inferredID);
|
|
316899
316903
|
} else if (["href", "src"].includes(attr.name)) {
|
|
316900
316904
|
const isHTTPHref = attr.name === "href" && attr.value.startsWith("http");
|
|
316905
|
+
const isMailtoHref = attr.name === "href" && attr.value.startsWith("mailto:");
|
|
316901
316906
|
const isDataSrc = attr.name === "src" && attr.value.startsWith("data:");
|
|
316902
|
-
if (!isHTTPHref && !isDataSrc) {
|
|
316907
|
+
if (!isHTTPHref && !isDataSrc && !isMailtoHref) {
|
|
316903
316908
|
let resolvedResourcePath;
|
|
316904
316909
|
try {
|
|
316905
316910
|
resolvedResourcePath = locateResource(attr.value);
|
|
@@ -317216,6 +317221,7 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
|
|
|
317216
317221
|
if (!cache3.has(`graphs/${resourceURI}`)) {
|
|
317217
317222
|
cache3.add(`graphs/${resourceURI}`, []);
|
|
317218
317223
|
const contentAdapter = getAdapter(resourceURI);
|
|
317224
|
+
const seen = /* @__PURE__ */ new Set();
|
|
317219
317225
|
const queue = [resourceURI];
|
|
317220
317226
|
while (queue.length > 0) {
|
|
317221
317227
|
const currentResource = queue.pop();
|
|
@@ -317233,9 +317239,19 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
|
|
|
317233
317239
|
target
|
|
317234
317240
|
])
|
|
317235
317241
|
);
|
|
317236
|
-
const
|
|
317242
|
+
const rels = relations.filter(({ target }) => isURIString(target)).filter(
|
|
317237
317243
|
(rel) => !isInPageHierarchy(rel.target) && !contentAdapter.crossReferences?.(rel)
|
|
317238
|
-
).filter((rel) => !queue.includes(rel.target))
|
|
317244
|
+
).filter((rel) => !queue.includes(rel.target));
|
|
317245
|
+
const newTargets = [];
|
|
317246
|
+
for (const rel of rels) {
|
|
317247
|
+
const seenKey = JSON.stringify({ currentResource, rel });
|
|
317248
|
+
if (!seen.has(seenKey)) {
|
|
317249
|
+
seen.add(seenKey);
|
|
317250
|
+
newTargets.push(rel.target);
|
|
317251
|
+
} else {
|
|
317252
|
+
console.warn("Duplicate rel", currentResource, rel);
|
|
317253
|
+
}
|
|
317254
|
+
}
|
|
317239
317255
|
queue.push(...newTargets);
|
|
317240
317256
|
}
|
|
317241
317257
|
}
|
|
@@ -317310,10 +317326,12 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
|
|
|
317310
317326
|
function* generateAllPaths() {
|
|
317311
317327
|
for (const path3 of cache3.iterate("all-paths")) {
|
|
317312
317328
|
const resourceURI = getCachedResourceURIForPath(path3);
|
|
317329
|
+
const graph = getResourceGraph(resourceURI);
|
|
317313
317330
|
yield {
|
|
317314
317331
|
path: path3,
|
|
317315
317332
|
resourceURI,
|
|
317316
317333
|
meta: describeResource(resourceURI),
|
|
317334
|
+
graph,
|
|
317317
317335
|
directDescendants: cache3.has(`${path3}/direct-descendants`) ? cache3.list(`${path3}/direct-descendants`).map((path4) => {
|
|
317318
317336
|
const res = getCachedResourceURIForPath(path4);
|
|
317319
317337
|
return [`/${path4}`, res, describeResource(res)];
|
|
@@ -317575,7 +317593,7 @@ ${inject.head ?? ""}`;
|
|
|
317575
317593
|
let done11 = 0;
|
|
317576
317594
|
const [allPathProgress, pathSubtask] = reportProgress("build page content", { total: totalPaths, done: done11 });
|
|
317577
317595
|
const hierarchicalResources = reader.generatePaths();
|
|
317578
|
-
for (const { path: path3, resourceURI, meta, parentChain, directDescendants } of hierarchicalResources) {
|
|
317596
|
+
for (const { path: path3, resourceURI, meta, graph, parentChain, directDescendants } of hierarchicalResources) {
|
|
317579
317597
|
done11 += 1;
|
|
317580
317598
|
allPathProgress({ total: totalPaths, done: done11 });
|
|
317581
317599
|
if (path3.startsWith("/")) {
|
|
@@ -317588,21 +317606,21 @@ ${inject.head ?? ""}`;
|
|
|
317588
317606
|
}
|
|
317589
317607
|
const [pathProgress] = pathSubtask(`${resourceURI.replaceAll("|", ":")}`, { state: "resolving relations" });
|
|
317590
317608
|
const resourceMeta = meta;
|
|
317591
|
-
const relations =
|
|
317609
|
+
const relations = graph;
|
|
317592
317610
|
pathProgress({ state: "generating resource page content" });
|
|
317593
|
-
const content = function generateContent(uri, metadata,
|
|
317611
|
+
const content = function generateContent(uri, metadata, graph2) {
|
|
317594
317612
|
let result;
|
|
317595
317613
|
let content2;
|
|
317596
317614
|
const maybeAdapter = findContentAdapter(uri);
|
|
317597
317615
|
if (maybeAdapter) {
|
|
317598
317616
|
try {
|
|
317599
|
-
content2 = maybeAdapter[1].generateContent(
|
|
317617
|
+
content2 = maybeAdapter[1].generateContent(graph2) ?? null;
|
|
317600
317618
|
} catch (e3) {
|
|
317601
317619
|
console.error(
|
|
317602
317620
|
"Failed to generate resource content",
|
|
317603
317621
|
path3,
|
|
317604
317622
|
uri,
|
|
317605
|
-
|
|
317623
|
+
graph2.slice(0, 40).join("\n")
|
|
317606
317624
|
);
|
|
317607
317625
|
throw e3;
|
|
317608
317626
|
}
|
|
@@ -317649,7 +317667,7 @@ ${inject.head ?? ""}`;
|
|
|
317649
317667
|
if (reader.exists(inPageResourceID)) {
|
|
317650
317668
|
const pathWithFragment = `${path3}#${encodeURIComponent(inPageResourceID)}`;
|
|
317651
317669
|
const meta2 = reader.describe(inPageResourceID);
|
|
317652
|
-
const
|
|
317670
|
+
const graph2 = reader.resolve(inPageResourceID);
|
|
317653
317671
|
resourceMap[pathWithFragment] = inPageResourceID;
|
|
317654
317672
|
resourceGraph.push([inPageResourceID, "isDefinedBy", `${path3}/resource.json`]);
|
|
317655
317673
|
resourceDescriptions[inPageResourceID] = meta2;
|
|
@@ -317659,7 +317677,7 @@ ${inject.head ?? ""}`;
|
|
|
317659
317677
|
title: preprocessStringForIndexing(meta2.labelInPlainText),
|
|
317660
317678
|
lang: meta2.primaryLanguageID || "",
|
|
317661
317679
|
body: preprocessStringForIndexing(
|
|
317662
|
-
extractRelationsForIndexing(inPageResourceID,
|
|
317680
|
+
extractRelationsForIndexing(inPageResourceID, graph2, reader.exists).join("").trim()
|
|
317663
317681
|
)
|
|
317664
317682
|
};
|
|
317665
317683
|
}
|
|
@@ -317782,8 +317800,6 @@ ${inject.head ?? ""}`;
|
|
|
317782
317800
|
this.field("lang");
|
|
317783
317801
|
let done12 = 0;
|
|
317784
317802
|
const total = Object.keys(searchableResources.pages).length + Object.keys(searchableResources.resources).length;
|
|
317785
|
-
console.debug("Index pipeline functions during", this.pipeline._stack.map((f3) => f3.label));
|
|
317786
|
-
console.debug("Index search pipeline functions during", this.searchPipeline._stack.map((f3) => f3.label));
|
|
317787
317803
|
for (const entry of Object.values(searchableResources.pages)) {
|
|
317788
317804
|
done12 += 1;
|
|
317789
317805
|
indexProgress({ state: "adding entries for pages", total, done: done12 });
|
|
@@ -317795,8 +317811,6 @@ ${inject.head ?? ""}`;
|
|
|
317795
317811
|
this.add(entry);
|
|
317796
317812
|
}
|
|
317797
317813
|
});
|
|
317798
|
-
console.debug("Index pipeline functions after", lunrIndex.pipeline._stack.map((f3) => f3.label));
|
|
317799
|
-
console.debug("Index search pipeline functions after", lunrIndex.searchPipeline?._stack?.map((f3) => f3.label));
|
|
317800
317814
|
indexProgress(null);
|
|
317801
317815
|
yield { "/search-index.json": encoder.encode(JSON.stringify(lunrIndex, null, 4)) };
|
|
317802
317816
|
}
|