@kodaris/krubble-app-components 1.0.82 → 1.0.83

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.
@@ -7125,7 +7125,18 @@
7125
7125
  ${skill.description ? b `
7126
7126
  <span class="skill-card__desc">${skill.description}</span>
7127
7127
  ` : A}
7128
- ${global ? this._renderSkillToggle(skill) : A}
7128
+ ${global ? b `
7129
+ <div class="skill-card__footer" @click=${this._stopFooterClick}>
7130
+ <span class="skill-card__price">Free</span>
7131
+ <kr-button
7132
+ class="skill-card__install-btn"
7133
+ size="small"
7134
+ variant=${skill.enabled ? 'outline' : 'flat'}
7135
+ color=${skill.enabled ? 'secondary' : 'primary'}
7136
+ @click=${(e) => this._handleGlobalSkillEnable(skill, e)}
7137
+ >${skill.enabled ? 'Uninstall' : 'Install'}</kr-button>
7138
+ </div>
7139
+ ` : A}
7129
7140
  </div>
7130
7141
  `)}
7131
7142
  </div>
@@ -7135,31 +7146,6 @@
7135
7146
  _stopFooterClick(e) {
7136
7147
  e.stopPropagation();
7137
7148
  }
7138
- /**
7139
- * The install affordance on a global skill card: a footer row with an
7140
- * install/remove button. The button owns its own spinner via KRButton's
7141
- * showLoading()/showError() while the enable/disable request is in flight, so
7142
- * the async call has clear feedback. Clicks are stopped from bubbling so the
7143
- * button never also inserts the skill (the card body does that).
7144
- */
7145
- _renderSkillToggle(skill) {
7146
- const on = !!skill.enabled;
7147
- return b `
7148
- <div
7149
- class="skill-card__footer"
7150
- @click=${this._stopFooterClick}
7151
- >
7152
- <span class="skill-card__price">Free</span>
7153
- <kr-button
7154
- class="skill-card__install-btn"
7155
- size="small"
7156
- variant=${on ? 'outline' : 'flat'}
7157
- color=${on ? 'secondary' : 'primary'}
7158
- @click=${(e) => this._handleGlobalSkillEnable(skill, e)}
7159
- >${on ? 'Uninstall' : 'Install'}</kr-button>
7160
- </div>
7161
- `;
7162
- }
7163
7149
  /**
7164
7150
  * Render a user message, highlighting a leading `/skill-code` token (like the
7165
7151
  * way Claude highlights slash commands). The composer only inserts valid skill