@ai-ecoverse/slicc-spectrum 1.66.1 → 1.67.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/slicc-ui.js CHANGED
@@ -25152,8 +25152,10 @@ var SliccChanges = class extends ModelElement {
25152
25152
  this.uncopied = true;
25153
25153
  }
25154
25154
  }
25155
- #unavailable(text2) {
25156
- const { parts: parts2, codes } = commands(text2);
25155
+ #unavailable(text2, extra) {
25156
+ const found = commands(text2);
25157
+ const { parts: parts2 } = found;
25158
+ const codes = [.../* @__PURE__ */ new Set([...found.codes, ...extra])];
25157
25159
  return b`<div class="unavailable">
25158
25160
  <p data-unavailable>${parts2.map((part2) => typeof part2 === "string" ? part2 : b`<code>${part2.code}</code>`)}</p>
25159
25161
  ${codes.map(
@@ -25170,7 +25172,7 @@ var SliccChanges = class extends ModelElement {
25170
25172
  render() {
25171
25173
  const port = this.model ? changesOf(this.model) : null;
25172
25174
  const unavailable = port?.unavailable?.() ?? null;
25173
- if (unavailable) return this.#unavailable(unavailable);
25175
+ if (unavailable) return this.#unavailable(unavailable, port?.commands?.() ?? []);
25174
25176
  const changes2 = port?.changes() ?? [];
25175
25177
  return b`<div class="bar">
25176
25178
  <span class="summary">${changes2.length} pending ${changes2.length === 1 ? "change" : "changes"}</span>