@pipelex/mthds-ui 0.41.0 → 0.42.0
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/graph/react/index.js.map +1 -1
- package/dist/standalone/graph-standalone.html +127 -115
- package/dist/standalone/graph-viewer.css +1 -1
- package/dist/standalone/graph-viewer.js +126 -114
- package/dist/static-graph/index.js +7 -3
- package/dist/static-graph/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2171,17 +2171,21 @@ function orderMthdsSources(sources, preferred) {
|
|
|
2171
2171
|
|
|
2172
2172
|
// src/static-graph/mthdsSourcesEmbed.ts
|
|
2173
2173
|
var MTHDS_SOURCES_EMBED_ID = "mthds-sources";
|
|
2174
|
+
function embedSelector(id) {
|
|
2175
|
+
return `script#${id}`;
|
|
2176
|
+
}
|
|
2177
|
+
var SOURCES = embedSelector(MTHDS_SOURCES_EMBED_ID);
|
|
2174
2178
|
function describeEntry(index) {
|
|
2175
|
-
return
|
|
2179
|
+
return `${SOURCES} entry ${index}`;
|
|
2176
2180
|
}
|
|
2177
2181
|
function parseMthdsSourcesEmbed(raw) {
|
|
2178
2182
|
if (!Array.isArray(raw)) {
|
|
2179
2183
|
throw new Error(
|
|
2180
|
-
|
|
2184
|
+
`${SOURCES} must hold a JSON array of { "name", "content" } objects, one per .mthds file.`
|
|
2181
2185
|
);
|
|
2182
2186
|
}
|
|
2183
2187
|
if (raw.length === 0) {
|
|
2184
|
-
throw new Error(
|
|
2188
|
+
throw new Error(`${SOURCES} lists no .mthds file.`);
|
|
2185
2189
|
}
|
|
2186
2190
|
const seen = /* @__PURE__ */ new Set();
|
|
2187
2191
|
return raw.map((entry, index) => {
|