@ai-ecoverse/slicc-spectrum 1.49.0 → 1.49.1

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
@@ -19639,16 +19639,13 @@ function requiresText(item2, all2) {
19639
19639
  const found = all2.find((other) => other.id === id);
19640
19640
  return { label: found?.label ?? id, missing: found?.version === null };
19641
19641
  });
19642
- if (!needs.length) return null;
19643
- if (item2.version === null) {
19644
- const present = needs.filter((need) => !need.missing).map((need) => need.label);
19645
- const missing = needs.filter((need) => need.missing).map((need) => need.label);
19646
- return [
19647
- present.length ? `Needs ${list2(present)}` : "",
19648
- missing.length ? `Installs ${list2(missing)} too` : ""
19649
- ].filter(Boolean).join("; ");
19650
- }
19651
- return `Needs ${list2(needs.map((need) => need.missing ? `${need.label} (not installed)` : need.label))}`;
19642
+ const present = needs.filter((need) => !need.missing).map((need) => need.label);
19643
+ const missing = needs.filter((need) => need.missing).map((need) => need.label);
19644
+ const parts2 = [
19645
+ present.length ? `Uses ${list2(present)}` : "",
19646
+ item2.version === null && missing.length ? `Installs ${list2(missing)} too` : ""
19647
+ ].filter(Boolean);
19648
+ return parts2.length ? parts2.join("; ") : null;
19652
19649
  }
19653
19650
  var snapshot = (items) => new Map(items.map(({ id, state: state2, error }) => [id, { state: state2, error }]));
19654
19651
  function settled(failures, before, after) {
@@ -19885,6 +19882,20 @@ var SliccUpdates = class extends ModelElement {
19885
19882
  line-height: var(--swc-line-height-200);
19886
19883
  overflow-wrap: anywhere;
19887
19884
  }
19885
+ .warnings {
19886
+ display: flex;
19887
+ flex-direction: column;
19888
+ gap: var(--swc-spacing-75);
19889
+ font-size: var(--swc-font-size-75);
19890
+ line-height: var(--swc-line-height-200);
19891
+ overflow-wrap: anywhere;
19892
+ --swc-icon-color: var(--swc-notice-visual-color);
19893
+ }
19894
+ .warnings span {
19895
+ display: flex;
19896
+ align-items: flex-start;
19897
+ gap: var(--swc-spacing-75);
19898
+ }
19888
19899
  .commands {
19889
19900
  display: flex;
19890
19901
  flex-wrap: wrap;
@@ -20121,6 +20132,9 @@ var SliccUpdates = class extends ModelElement {
20121
20132
  <p class="description">${item2.description}</p>
20122
20133
  ${this.#packageMeta(item2, all2)}
20123
20134
  ${item2.notes?.length ? b`<p class="notes" data-notes>${item2.notes.map((note) => b`<span>${note}</span>`)}</p>` : A}
20135
+ ${item2.warnings?.length ? b`<p class="warnings" data-warnings>${item2.warnings.map(
20136
+ (warning) => b`<span><swc-icon-alert-triangle size="s" aria-hidden="true"></swc-icon-alert-triangle>${warning}</span>`
20137
+ )}</p>` : A}
20124
20138
  ${item2.commands.length ? b`<p class="commands"><span class="hidden">Commands: </span>${item2.commands.map(
20125
20139
  (command2) => b`<code>${command2}</code>`
20126
20140
  )}</p>` : A}