@riboseinc/anafero-cli 0.0.44 → 0.0.46
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 +4 -0
- package/bootstrap.css.map +2 -2
- package/bootstrap.js +9 -2
- package/bootstrap.js.map +2 -2
- package/build-site.css +4 -0
- package/build-site.mjs +30 -15
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.46.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.44.tgz +0 -0
package/build-site.css
CHANGED
|
@@ -31102,6 +31102,10 @@ tbody.vars_bd693cb4_hm005a_spectrum-Table-body .vars_bd693cb4_hm005a_spectrum-Ta
|
|
|
31102
31102
|
margin-bottom: 10px;
|
|
31103
31103
|
}
|
|
31104
31104
|
.style_resource {
|
|
31105
|
+
::highlight(search-results) {
|
|
31106
|
+
background-color: #f06;
|
|
31107
|
+
color: white;
|
|
31108
|
+
}
|
|
31105
31109
|
padding: 0 2em 2em;
|
|
31106
31110
|
font-size: 16px;
|
|
31107
31111
|
font-weight: 330;
|
package/build-site.mjs
CHANGED
|
@@ -313148,7 +313148,8 @@ init_cjs_shim();
|
|
|
313148
313148
|
var import_react123 = __toESM(require_react(), 1);
|
|
313149
313149
|
var ResourceNavigationContext = (0, import_react123.createContext)({
|
|
313150
313150
|
locateResource: (uri) => "",
|
|
313151
|
-
resolvePlainTitle: async (uri, signal) => uri
|
|
313151
|
+
resolvePlainTitle: async (uri, signal) => uri,
|
|
313152
|
+
requestedResourceURI: void 0
|
|
313152
313153
|
});
|
|
313153
313154
|
|
|
313154
313155
|
// ../anafero/moduleRef.mts
|
|
@@ -316260,6 +316261,8 @@ var ResourceHelmet = function(props) {
|
|
|
316260
316261
|
var reactKeysPlugin = reactKeys();
|
|
316261
316262
|
var Resource = import_react127.default.forwardRef(function({
|
|
316262
316263
|
className,
|
|
316264
|
+
requestedResourceURI,
|
|
316265
|
+
searchQueryText,
|
|
316263
316266
|
useDependency,
|
|
316264
316267
|
locateResource,
|
|
316265
316268
|
document: document2,
|
|
@@ -316391,7 +316394,11 @@ var Resource = import_react127.default.forwardRef(function({
|
|
|
316391
316394
|
dangerouslySetInnerHTML: { __html: preRenderedHTML }
|
|
316392
316395
|
}
|
|
316393
316396
|
) : /* @__PURE__ */ import_react127.default.createElement(import_react127.default.Fragment, null, "\u2026");
|
|
316394
|
-
const mainView = somethingStillLoading || typeof window?.document?.createElement === "undefined" ? fallback : /* @__PURE__ */ import_react127.default.createElement(ResourceNavigationContext.Provider, { value: {
|
|
316397
|
+
const mainView = somethingStillLoading || typeof window?.document?.createElement === "undefined" ? fallback : /* @__PURE__ */ import_react127.default.createElement(ResourceNavigationContext.Provider, { value: {
|
|
316398
|
+
locateResource,
|
|
316399
|
+
resolvePlainTitle,
|
|
316400
|
+
requestedResourceURI
|
|
316401
|
+
} }, /* @__PURE__ */ import_react127.default.createElement(ErrorBoundaryWithCustomView_default, { fallback }, /* @__PURE__ */ import_react127.default.createElement(
|
|
316395
316402
|
ProseMirror,
|
|
316396
316403
|
{
|
|
316397
316404
|
defaultState: initialState3,
|
|
@@ -316507,17 +316514,21 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
|
|
|
316507
316514
|
async function expandURI(uri) {
|
|
316508
316515
|
const originalURI2 = originalURIs[uri];
|
|
316509
316516
|
const isFileURI = (originalURI2 ?? uri).startsWith("file:");
|
|
316517
|
+
console.debug("Expanding URI", uri, originalURI2, entryPointURI2);
|
|
316510
316518
|
let expanded;
|
|
316511
316519
|
if (isFileURI) {
|
|
316512
|
-
const
|
|
316520
|
+
const normalizedFileURI = originalURI2 ?? normalizeFileURI(
|
|
316521
|
+
uri,
|
|
316522
|
+
uri === entryPointURI2 ? void 0 : entryPointURI2
|
|
316523
|
+
);
|
|
316513
316524
|
try {
|
|
316514
|
-
resourceReaders[
|
|
316515
|
-
const canonicalRootResourceURI = resourceReaders[
|
|
316516
|
-
canonicalURIs[
|
|
316517
|
-
originalURIs[canonicalRootResourceURI] =
|
|
316525
|
+
resourceReaders[normalizedFileURI] ??= await startReader(normalizedFileURI);
|
|
316526
|
+
const canonicalRootResourceURI = resourceReaders[normalizedFileURI]?.getCanonicalRootURI?.() ?? uri;
|
|
316527
|
+
canonicalURIs[normalizedFileURI] = canonicalRootResourceURI;
|
|
316528
|
+
originalURIs[canonicalRootResourceURI] = normalizedFileURI;
|
|
316518
316529
|
expanded = canonicalRootResourceURI;
|
|
316519
316530
|
} catch (e3) {
|
|
316520
|
-
expanded =
|
|
316531
|
+
expanded = normalizedFileURI;
|
|
316521
316532
|
}
|
|
316522
316533
|
} else {
|
|
316523
316534
|
expanded = `${uri}---${entryPointURI2}`;
|
|
@@ -316577,16 +316588,13 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
|
|
|
316577
316588
|
seenEntryPoints
|
|
316578
316589
|
);
|
|
316579
316590
|
} else {
|
|
316591
|
+
console.warn("Unable to follow relation", relation.target, originalURI2);
|
|
316580
316592
|
cache3.add(
|
|
316581
316593
|
"unresolved-relations",
|
|
316582
316594
|
[[subject, relation.predicate, relation.target]]
|
|
316583
316595
|
);
|
|
316584
|
-
console.debug(
|
|
316585
|
-
"Not processing relations for",
|
|
316586
|
-
relation.target,
|
|
316587
|
-
originalURI2
|
|
316588
|
-
);
|
|
316589
316596
|
}
|
|
316597
|
+
} else {
|
|
316590
316598
|
}
|
|
316591
316599
|
} else {
|
|
316592
316600
|
console.debug("URI relation is seen again", relation.target);
|
|
@@ -316837,10 +316845,17 @@ var makeContentReader = async function(entryPointURI, storeAdapters, findContent
|
|
|
316837
316845
|
function isValidPathComponent(val) {
|
|
316838
316846
|
return val.indexOf("/") < 0 && val.indexOf(":") < 0 && val.indexOf("#") < 0;
|
|
316839
316847
|
}
|
|
316840
|
-
function
|
|
316848
|
+
function normalizeFileURI(rawFileURI, baseFileURI) {
|
|
316849
|
+
const fileURI = rawFileURI.startsWith("./") ? rawFileURI.split("./")[1] : rawFileURI;
|
|
316850
|
+
if (fileURI.startsWith("./") || fileURI.startsWith("../")) {
|
|
316851
|
+
throw new Error("Malformed file URI");
|
|
316852
|
+
}
|
|
316853
|
+
if (baseFileURI === void 0) {
|
|
316854
|
+
return fileURI;
|
|
316855
|
+
}
|
|
316841
316856
|
const baseFilePath = baseFileURI.startsWith("file:") ? baseFileURI.split("file:")[1] : void 0;
|
|
316842
316857
|
if (!baseFilePath) {
|
|
316843
|
-
throw new Error("Trying to
|
|
316858
|
+
throw new Error("Trying to normalize a file: URI, but base URI is not using that scheme");
|
|
316844
316859
|
}
|
|
316845
316860
|
const filePath = fileURI.split("file:")[1];
|
|
316846
316861
|
const dirname3 = baseFilePath.indexOf("/") >= 1 ? baseFilePath.slice(0, baseFilePath.lastIndexOf("/")) : "";
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|