@pipelex/mthds-ui 0.40.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.
@@ -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 `<script id="${MTHDS_SOURCES_EMBED_ID}"> entry ${index}`;
2179
+ return `${SOURCES} entry ${index}`;
2176
2180
  }
2177
2181
  function parseMthdsSourcesEmbed(raw) {
2178
2182
  if (!Array.isArray(raw)) {
2179
2183
  throw new Error(
2180
- `<script id="${MTHDS_SOURCES_EMBED_ID}"> must hold a JSON array of { "name", "content" } objects, one per .mthds file.`
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(`<script id="${MTHDS_SOURCES_EMBED_ID}"> lists no .mthds file.`);
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) => {